@janbox/storefront-builder 2.0.1 → 2.0.2

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 (36) hide show
  1. package/README.md +2 -2
  2. package/dist/anchor-target-CtXzdkBu.js +2918 -0
  3. package/dist/{color-picker-popover-B3AVFuei.js → color-picker-popover-XeaVfYS8.js} +104 -80
  4. package/dist/countdown-timer.node-Bh5fTSJ8.js +913 -0
  5. package/dist/date-picker-D9K6HWl-.js +157 -0
  6. package/dist/{dialog-header-DPLOS7TT.js → dialog-header-Bh3Dkw2q.js} +2440 -2122
  7. package/dist/dropzone-CF4CWXth.js +546 -0
  8. package/dist/editor/toolbars.js +171 -161
  9. package/dist/editor/ui/button-group/button-group.d.ts +1 -1
  10. package/dist/editor/ui/dialog/dialog-body/dialog-body.d.ts +1 -1
  11. package/dist/editor/ui/form-label/form-label.d.ts +1 -1
  12. package/dist/editor/ui/input/input.d.ts +1 -2
  13. package/dist/editor/ui/loading-overlay/loading-overlay.d.ts +1 -1
  14. package/dist/editor/ui/popover/popover-close.d.ts +1 -1
  15. package/dist/editor/ui/tabs/tab-content.d.ts +1 -1
  16. package/dist/editor/ui/tabs/tab-list.d.ts +2 -4
  17. package/dist/editor/ui/tabs/tab-panel.d.ts +1 -1
  18. package/dist/editor/ui/tabs/tab.d.ts +2 -5
  19. package/dist/editor/ui/tabs/tabs.d.ts +1 -1
  20. package/dist/editor/ui.js +82 -72
  21. package/dist/editor.js +822 -586
  22. package/dist/index-800HnUOi.js +4 -0
  23. package/dist/{index-CwrFnubn.js → index-CXyljfMv.js} +1729 -1584
  24. package/dist/index.js +287 -247
  25. package/dist/style.css +1 -1
  26. package/dist/templates.js +10 -12
  27. package/dist/theme/index.d.ts +293 -0
  28. package/dist/tooltip-CXOlTkGg.js +75 -0
  29. package/dist/utils/common.d.ts +0 -2
  30. package/package.json +1 -2
  31. package/dist/anchor-target-BlOvysAr.js +0 -2329
  32. package/dist/countdown-timer.node-OmDiT-pz.js +0 -825
  33. package/dist/date-picker-B4Rju7gG.js +0 -115
  34. package/dist/dropzone-Dbfed3jK.js +0 -490
  35. package/dist/index-BbiQ0n_-.js +0 -4
  36. package/dist/tooltip-KbIHELP2.js +0 -65
package/dist/editor.js CHANGED
@@ -1,17 +1,18 @@
1
- import { jsx as r, Fragment as V2, jsxs as g } from "@emotion/react/jsx-runtime";
2
- import { N as v2, t as x2, H as j2, P as r2, V as A2, S as p2, G as R2, a as d2, j as H2, F as h2, m as f2, B as B2, I as _2, k as P2, L as Z2, s as ue, r as $2, g as D2, A as O2, i as G2, C as F2, b as we, c as Ce, d as pe, n as z2, M as U2, o as fe, p as ge, T as me, q as ke, R as ve } from "./countdown-timer.node-OmDiT-pz.js";
3
- import { useNode as xe, ROOT_NODE as D, serializeNode as be } from "@craftjs/core";
4
- import { f as s2, c as ye, e as Ne, u as $, r as L, a as W2, i as Me } from "./color-picker-popover-B3AVFuei.js";
5
- import { useRef as q2, useState as G, useEffect as W, createElement as Y2, Fragment as n2, Suspense as Le } from "react";
1
+ import { jsx as r, Fragment as R2, jsxs as m } from "@emotion/react/jsx-runtime";
2
+ import { N as v2, t as x2, H as V2, P as r2, V as B2, S as g2, G as j2, a as l2, j as A2, F as h2, m as f2, B as H2, I as _2, k as P2, L as D2, s as ue, r as Z2, g as $2, A as O2, i as G2, C as W2, b as pe, c as Ce, d as ge, n as z2, M as F2, o as fe, p as we, T as me, q as ke, R as ve } from "./countdown-timer.node-Bh5fTSJ8.js";
3
+ import { useNode as xe, ROOT_NODE as $, serializeNode as be } from "@craftjs/core";
4
+ import { f as s2, c as ye, e as Le, u as Z, r as N, a as U2, i as Me } from "./color-picker-popover-XeaVfYS8.js";
5
+ import { useRef as q2, useState as G, useEffect as U, createElement as Y2, Fragment as n2, Suspense as Ie } from "react";
6
6
  import "flat";
7
- import { throttle as Ie, isFunction as b2, isNumber as y2, times as Z } from "lodash-es";
7
+ import { throttle as Ne, isFunction as b2, isNumber as y2, times as D } from "lodash-es";
8
8
  import "@janbox/storefront-ui";
9
- import { D as Ee, a as Se, H as Te, P as Ve, k as je, i as Ae, G as Re, c as He, g as Be, F as _e, M as Pe, b as Ze, h as $e, I as De, L as Oe, U as Ge, T as Fe, B as ze, A as Ue, f as We, e as qe, R as C, d as Q2, C as X2 } from "./index-CwrFnubn.js";
9
+ import { D as Se, a as Ee, H as Te, P as Re, k as Ve, i as Be, G as je, c as Ae, g as He, F as _e, M as Pe, b as De, h as Ze, I as $e, L as Oe, U as Ge, T as We, B as ze, A as Fe, f as Ue, e as qe, R as g, d as Q2, C as X2 } from "./index-CXyljfMv.js";
10
10
  import "@janbox/storefront-ui/hooks";
11
- import { ThemeProvider as Ye, getColorVar as N2, FLOATING_Z_INDEX as Qe, breakpoint as Xe } from "@janbox/storefront-ui/theme";
11
+ import { ThemeProvider as Ye, getColorVar as L2, FLOATING_Z_INDEX as Qe, breakpoint as Xe } from "@janbox/storefront-ui/theme";
12
12
  import "@janbox/storefront-ui/utils";
13
- import { G as Ke, c as B, l as A, W as E, d as K2, m as J2, e as Je, v as e1, F as t1, C as r1, P as n1 } from "./dialog-header-DPLOS7TT.js";
14
- import { useFloating as o1, autoUpdate as s1, flip as i1, size as c1, useHover as a1, safePolygon as l1, useFocus as d1, useDismiss as h1, useRole as u1, useInteractions as w1, FloatingPortal as ee } from "@floating-ui/react";
13
+ import { I as Ke, J as Je, t as u, k as j, W as E, c as K2, l as J2, d as e1, w as t1, z as r1, H as n1, C as o1, P as s1 } from "./dialog-header-Bh3Dkw2q.js";
14
+ import { CacheProvider as i1, Global as c1, createElement as a1 } from "@emotion/react";
15
+ import { useFloating as d1, autoUpdate as l1, flip as h1, size as u1, useHover as p1, safePolygon as C1, useFocus as g1, useDismiss as f1, useRole as w1, useInteractions as m1, FloatingPortal as ee } from "@floating-ui/react";
15
16
  import "react-use";
16
17
  import "react-colorful";
17
18
  import "overlayscrollbars-react";
@@ -23,18 +24,15 @@ import "@tiptap/extension-text-style";
23
24
  import "@tiptap/react";
24
25
  import "@tiptap/react/menus";
25
26
  import "@tiptap/starter-kit";
26
- import C1, { useFrame as p1 } from "react-frame-component";
27
- import { CacheProvider as f1, Global as g1, createElement as m1 } from "@emotion/react";
27
+ import k1, { useFrame as v1 } from "react-frame-component";
28
28
  import "@hello-pangea/dnd";
29
29
  import { useToggle as te } from "usehooks-ts";
30
- import "clsx";
31
- import "tailwind-merge";
32
- import { w as i2, x as k1, y as v1, z as M2 } from "./anchor-target-BlOvysAr.js";
33
- import { E as A3 } from "./anchor-target-BlOvysAr.js";
34
- import { a as x1, W as re, A as ne } from "./dropzone-Dbfed3jK.js";
35
- import b1 from "dayjs";
36
- import { Layers as y1, useLayer as N1 } from "@craftjs/layers";
37
- class M1 {
30
+ import { w as i2, x as x1, y as b1, z as M2 } from "./anchor-target-CtXzdkBu.js";
31
+ import { E as B3 } from "./anchor-target-CtXzdkBu.js";
32
+ import { a as y1, W as re, A as ne } from "./dropzone-CF4CWXth.js";
33
+ import L1 from "dayjs";
34
+ import { Layers as M1, useLayer as I1 } from "@craftjs/layers";
35
+ class N1 {
38
36
  constructor() {
39
37
  this.componentControls = /* @__PURE__ */ new Set();
40
38
  }
@@ -67,22 +65,22 @@ class M1 {
67
65
  });
68
66
  }
69
67
  }
70
- const L1 = () => new M1();
71
- function I1() {
72
- return Ke(L1);
68
+ const S1 = () => new N1();
69
+ function E1() {
70
+ return Ke(S1);
73
71
  }
74
- function E1(e) {
72
+ function T1(e) {
75
73
  if (e.sheet)
76
74
  return e.sheet;
77
75
  for (var t = 0; t < document.styleSheets.length; t++)
78
76
  if (document.styleSheets[t].ownerNode === e)
79
77
  return document.styleSheets[t];
80
78
  }
81
- function S1(e) {
79
+ function R1(e) {
82
80
  var t = document.createElement("style");
83
81
  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;
84
82
  }
85
- var T1 = /* @__PURE__ */ (function() {
83
+ var V1 = /* @__PURE__ */ (function() {
86
84
  function e(o) {
87
85
  var n = this;
88
86
  this._insertTag = function(i) {
@@ -94,10 +92,10 @@ var T1 = /* @__PURE__ */ (function() {
94
92
  return t.hydrate = function(n) {
95
93
  n.forEach(this._insertTag);
96
94
  }, t.insert = function(n) {
97
- this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(S1(this));
95
+ this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(R1(this));
98
96
  var i = this.tags[this.tags.length - 1];
99
97
  if (this.isSpeedy) {
100
- var s = E1(i);
98
+ var s = T1(i);
101
99
  try {
102
100
  s.insertRule(n, s.cssRules.length);
103
101
  } catch {
@@ -111,23 +109,23 @@ var T1 = /* @__PURE__ */ (function() {
111
109
  return (i = n.parentNode) == null ? void 0 : i.removeChild(n);
112
110
  }), this.tags = [], this.ctr = 0;
113
111
  }, e;
114
- })(), S = "-ms-", o2 = "-moz-", p = "-webkit-", oe = "comm", g2 = "rule", m2 = "decl", V1 = "@import", se = "@keyframes", j1 = "@layer", A1 = Math.abs, c2 = String.fromCharCode, R1 = Object.assign;
115
- function H1(e, t) {
116
- return I(e, 0) ^ 45 ? (((t << 2 ^ I(e, 0)) << 2 ^ I(e, 1)) << 2 ^ I(e, 2)) << 2 ^ I(e, 3) : 0;
112
+ })(), T = "-ms-", o2 = "-moz-", f = "-webkit-", oe = "comm", w2 = "rule", m2 = "decl", B1 = "@import", se = "@keyframes", j1 = "@layer", A1 = Math.abs, c2 = String.fromCharCode, H1 = Object.assign;
113
+ function _1(e, t) {
114
+ return S(e, 0) ^ 45 ? (((t << 2 ^ S(e, 0)) << 2 ^ S(e, 1)) << 2 ^ S(e, 2)) << 2 ^ S(e, 3) : 0;
117
115
  }
118
116
  function ie(e) {
119
117
  return e.trim();
120
118
  }
121
- function B1(e, t) {
119
+ function P1(e, t) {
122
120
  return (e = t.exec(e)) ? e[0] : e;
123
121
  }
124
- function f(e, t, o) {
122
+ function w(e, t, o) {
125
123
  return e.replace(t, o);
126
124
  }
127
125
  function u2(e, t) {
128
126
  return e.indexOf(t);
129
127
  }
130
- function I(e, t) {
128
+ function S(e, t) {
131
129
  return e.charCodeAt(t) | 0;
132
130
  }
133
131
  function q(e, t, o) {
@@ -142,27 +140,27 @@ function k2(e) {
142
140
  function K(e, t) {
143
141
  return t.push(e), e;
144
142
  }
145
- function _1(e, t) {
143
+ function D1(e, t) {
146
144
  return e.map(t).join("");
147
145
  }
148
- var a2 = 1, F = 1, ce = 0, V = 0, N = 0, z = "";
149
- function l2(e, t, o, n, i, s, u) {
150
- return { value: e, root: t, parent: o, type: n, props: i, children: s, line: a2, column: F, length: u, return: "" };
146
+ var a2 = 1, W = 1, ce = 0, V = 0, M = 0, z = "";
147
+ function d2(e, t, o, n, i, s, p) {
148
+ return { value: e, root: t, parent: o, type: n, props: i, children: s, line: a2, column: W, length: p, return: "" };
151
149
  }
152
- function U(e, t) {
153
- return R1(l2("", null, null, "", null, null, 0), e, { length: -e.length }, t);
154
- }
155
- function P1() {
156
- return N;
150
+ function F(e, t) {
151
+ return H1(d2("", null, null, "", null, null, 0), e, { length: -e.length }, t);
157
152
  }
158
153
  function Z1() {
159
- return N = V > 0 ? I(z, --V) : 0, F--, N === 10 && (F = 1, a2--), N;
154
+ return M;
155
+ }
156
+ function $1() {
157
+ return M = V > 0 ? S(z, --V) : 0, W--, M === 10 && (W = 1, a2--), M;
160
158
  }
161
- function j() {
162
- return N = V < ce ? I(z, V++) : 0, F++, N === 10 && (F = 1, a2++), N;
159
+ function B() {
160
+ return M = V < ce ? S(z, V++) : 0, W++, M === 10 && (W = 1, a2++), M;
163
161
  }
164
162
  function _() {
165
- return I(z, V);
163
+ return S(z, V);
166
164
  }
167
165
  function J() {
168
166
  return V;
@@ -209,222 +207,222 @@ function Y(e) {
209
207
  return 0;
210
208
  }
211
209
  function ae(e) {
212
- return a2 = F = 1, ce = H(z = e), V = 0, [];
210
+ return a2 = W = 1, ce = H(z = e), V = 0, [];
213
211
  }
214
- function le(e) {
212
+ function de(e) {
215
213
  return z = "", e;
216
214
  }
217
215
  function e2(e) {
218
- return ie(Q(V - 1, w2(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
216
+ return ie(Q(V - 1, p2(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
219
217
  }
220
- function $1(e) {
221
- for (; (N = _()) && N < 33; )
222
- j();
223
- return Y(e) > 2 || Y(N) > 3 ? "" : " ";
218
+ function O1(e) {
219
+ for (; (M = _()) && M < 33; )
220
+ B();
221
+ return Y(e) > 2 || Y(M) > 3 ? "" : " ";
224
222
  }
225
- function D1(e, t) {
226
- for (; --t && j() && !(N < 48 || N > 102 || N > 57 && N < 65 || N > 70 && N < 97); )
223
+ function G1(e, t) {
224
+ for (; --t && B() && !(M < 48 || M > 102 || M > 57 && M < 65 || M > 70 && M < 97); )
227
225
  ;
228
- return Q(e, J() + (t < 6 && _() == 32 && j() == 32));
226
+ return Q(e, J() + (t < 6 && _() == 32 && B() == 32));
229
227
  }
230
- function w2(e) {
231
- for (; j(); )
232
- switch (N) {
228
+ function p2(e) {
229
+ for (; B(); )
230
+ switch (M) {
233
231
  // ] ) " '
234
232
  case e:
235
233
  return V;
236
234
  // " '
237
235
  case 34:
238
236
  case 39:
239
- e !== 34 && e !== 39 && w2(N);
237
+ e !== 34 && e !== 39 && p2(M);
240
238
  break;
241
239
  // (
242
240
  case 40:
243
- e === 41 && w2(e);
241
+ e === 41 && p2(e);
244
242
  break;
245
243
  // \
246
244
  case 92:
247
- j();
245
+ B();
248
246
  break;
249
247
  }
250
248
  return V;
251
249
  }
252
- function O1(e, t) {
253
- for (; j() && e + N !== 57; )
254
- if (e + N === 84 && _() === 47)
250
+ function W1(e, t) {
251
+ for (; B() && e + M !== 57; )
252
+ if (e + M === 84 && _() === 47)
255
253
  break;
256
- return "/*" + Q(t, V - 1) + "*" + c2(e === 47 ? e : j());
254
+ return "/*" + Q(t, V - 1) + "*" + c2(e === 47 ? e : B());
257
255
  }
258
- function G1(e) {
256
+ function z1(e) {
259
257
  for (; !Y(_()); )
260
- j();
258
+ B();
261
259
  return Q(e, V);
262
260
  }
263
261
  function F1(e) {
264
- return le(t2("", null, null, null, [""], e = ae(e), 0, [0], e));
262
+ return de(t2("", null, null, null, [""], e = ae(e), 0, [0], e));
265
263
  }
266
- function t2(e, t, o, n, i, s, u, c, w) {
267
- for (var x = 0, l = 0, a = u, m = 0, k = 0, h = 0, d = 1, M = 1, v = 1, y = 0, T = "", X = i, P = s, R = n, b = T; M; )
268
- switch (h = y, y = j()) {
264
+ function t2(e, t, o, n, i, s, p, c, C) {
265
+ for (var b = 0, d = 0, a = p, k = 0, v = 0, h = 0, l = 1, I = 1, x = 1, L = 0, R = "", X = i, P = s, A = n, y = R; I; )
266
+ switch (h = L, L = B()) {
269
267
  // (
270
268
  case 40:
271
- if (h != 108 && I(b, a - 1) == 58) {
272
- u2(b += f(e2(y), "&", "&\f"), "&\f") != -1 && (v = -1);
269
+ if (h != 108 && S(y, a - 1) == 58) {
270
+ u2(y += w(e2(L), "&", "&\f"), "&\f") != -1 && (x = -1);
273
271
  break;
274
272
  }
275
273
  // " ' [
276
274
  case 34:
277
275
  case 39:
278
276
  case 91:
279
- b += e2(y);
277
+ y += e2(L);
280
278
  break;
281
279
  // \t \n \r \s
282
280
  case 9:
283
281
  case 10:
284
282
  case 13:
285
283
  case 32:
286
- b += $1(h);
284
+ y += O1(h);
287
285
  break;
288
286
  // \
289
287
  case 92:
290
- b += D1(J() - 1, 7);
288
+ y += G1(J() - 1, 7);
291
289
  continue;
292
290
  // /
293
291
  case 47:
294
292
  switch (_()) {
295
293
  case 42:
296
294
  case 47:
297
- K(z1(O1(j(), J()), t, o), w);
295
+ K(U1(W1(B(), J()), t, o), C);
298
296
  break;
299
297
  default:
300
- b += "/";
298
+ y += "/";
301
299
  }
302
300
  break;
303
301
  // {
304
- case 123 * d:
305
- c[x++] = H(b) * v;
302
+ case 123 * l:
303
+ c[b++] = H(y) * x;
306
304
  // } ; \0
307
- case 125 * d:
305
+ case 125 * l:
308
306
  case 59:
309
307
  case 0:
310
- switch (y) {
308
+ switch (L) {
311
309
  // \0 }
312
310
  case 0:
313
311
  case 125:
314
- M = 0;
312
+ I = 0;
315
313
  // ;
316
- case 59 + l:
317
- v == -1 && (b = f(b, /\f/g, "")), k > 0 && H(b) - a && K(k > 32 ? I2(b + ";", n, o, a - 1) : I2(f(b, " ", "") + ";", n, o, a - 2), w);
314
+ case 59 + d:
315
+ x == -1 && (y = w(y, /\f/g, "")), v > 0 && H(y) - a && K(v > 32 ? N2(y + ";", n, o, a - 1) : N2(w(y, " ", "") + ";", n, o, a - 2), C);
318
316
  break;
319
317
  // @ ;
320
318
  case 59:
321
- b += ";";
319
+ y += ";";
322
320
  // { rule/at-rule
323
321
  default:
324
- if (K(R = L2(b, t, o, x, l, i, c, T, X = [], P = [], a), s), y === 123)
325
- if (l === 0)
326
- t2(b, t, R, R, X, s, a, c, P);
322
+ if (K(A = I2(y, t, o, b, d, i, c, R, X = [], P = [], a), s), L === 123)
323
+ if (d === 0)
324
+ t2(y, t, A, A, X, s, a, c, P);
327
325
  else
328
- switch (m === 99 && I(b, 3) === 110 ? 100 : m) {
326
+ switch (k === 99 && S(y, 3) === 110 ? 100 : k) {
329
327
  // d l m s
330
328
  case 100:
331
329
  case 108:
332
330
  case 109:
333
331
  case 115:
334
- t2(e, R, R, n && K(L2(e, R, R, 0, 0, i, c, T, i, X = [], a), P), i, P, a, c, n ? X : P);
332
+ t2(e, A, A, n && K(I2(e, A, A, 0, 0, i, c, R, i, X = [], a), P), i, P, a, c, n ? X : P);
335
333
  break;
336
334
  default:
337
- t2(b, R, R, R, [""], P, 0, c, P);
335
+ t2(y, A, A, A, [""], P, 0, c, P);
338
336
  }
339
337
  }
340
- x = l = k = 0, d = v = 1, T = b = "", a = u;
338
+ b = d = v = 0, l = x = 1, R = y = "", a = p;
341
339
  break;
342
340
  // :
343
341
  case 58:
344
- a = 1 + H(b), k = h;
342
+ a = 1 + H(y), v = h;
345
343
  default:
346
- if (d < 1) {
347
- if (y == 123)
348
- --d;
349
- else if (y == 125 && d++ == 0 && Z1() == 125)
344
+ if (l < 1) {
345
+ if (L == 123)
346
+ --l;
347
+ else if (L == 125 && l++ == 0 && $1() == 125)
350
348
  continue;
351
349
  }
352
- switch (b += c2(y), y * d) {
350
+ switch (y += c2(L), L * l) {
353
351
  // &
354
352
  case 38:
355
- v = l > 0 ? 1 : (b += "\f", -1);
353
+ x = d > 0 ? 1 : (y += "\f", -1);
356
354
  break;
357
355
  // ,
358
356
  case 44:
359
- c[x++] = (H(b) - 1) * v, v = 1;
357
+ c[b++] = (H(y) - 1) * x, x = 1;
360
358
  break;
361
359
  // @
362
360
  case 64:
363
- _() === 45 && (b += e2(j())), m = _(), l = a = H(T = b += G1(J())), y++;
361
+ _() === 45 && (y += e2(B())), k = _(), d = a = H(R = y += z1(J())), L++;
364
362
  break;
365
363
  // -
366
364
  case 45:
367
- h === 45 && H(b) == 2 && (d = 0);
365
+ h === 45 && H(y) == 2 && (l = 0);
368
366
  }
369
367
  }
370
368
  return s;
371
369
  }
372
- function L2(e, t, o, n, i, s, u, c, w, x, l) {
373
- for (var a = i - 1, m = i === 0 ? s : [""], k = k2(m), h = 0, d = 0, M = 0; h < n; ++h)
374
- for (var v = 0, y = q(e, a + 1, a = A1(d = u[h])), T = e; v < k; ++v)
375
- (T = ie(d > 0 ? m[v] + " " + y : f(y, /&\f/g, m[v]))) && (w[M++] = T);
376
- return l2(e, t, o, i === 0 ? g2 : c, w, x, l);
370
+ function I2(e, t, o, n, i, s, p, c, C, b, d) {
371
+ for (var a = i - 1, k = i === 0 ? s : [""], v = k2(k), h = 0, l = 0, I = 0; h < n; ++h)
372
+ for (var x = 0, L = q(e, a + 1, a = A1(l = p[h])), R = e; x < v; ++x)
373
+ (R = ie(l > 0 ? k[x] + " " + L : w(L, /&\f/g, k[x]))) && (C[I++] = R);
374
+ return d2(e, t, o, i === 0 ? w2 : c, C, b, d);
377
375
  }
378
- function z1(e, t, o) {
379
- return l2(e, t, o, oe, c2(P1()), q(e, 2, -2), 0);
376
+ function U1(e, t, o) {
377
+ return d2(e, t, o, oe, c2(Z1()), q(e, 2, -2), 0);
380
378
  }
381
- function I2(e, t, o, n) {
382
- return l2(e, t, o, m2, q(e, 0, n), q(e, n + 1, -1), n);
379
+ function N2(e, t, o, n) {
380
+ return d2(e, t, o, m2, q(e, 0, n), q(e, n + 1, -1), n);
383
381
  }
384
382
  function O(e, t) {
385
383
  for (var o = "", n = k2(e), i = 0; i < n; i++)
386
384
  o += t(e[i], i, e, t) || "";
387
385
  return o;
388
386
  }
389
- function U1(e, t, o, n) {
387
+ function q1(e, t, o, n) {
390
388
  switch (e.type) {
391
389
  case j1:
392
390
  if (e.children.length) break;
393
- case V1:
391
+ case B1:
394
392
  case m2:
395
393
  return e.return = e.return || e.value;
396
394
  case oe:
397
395
  return "";
398
396
  case se:
399
397
  return e.return = e.value + "{" + O(e.children, n) + "}";
400
- case g2:
398
+ case w2:
401
399
  e.value = e.props.join(",");
402
400
  }
403
401
  return H(o = O(e.children, n)) ? e.return = e.value + "{" + o + "}" : "";
404
402
  }
405
- function W1(e) {
403
+ function Y1(e) {
406
404
  var t = k2(e);
407
405
  return function(o, n, i, s) {
408
- for (var u = "", c = 0; c < t; c++)
409
- u += e[c](o, n, i, s) || "";
410
- return u;
406
+ for (var p = "", c = 0; c < t; c++)
407
+ p += e[c](o, n, i, s) || "";
408
+ return p;
411
409
  };
412
410
  }
413
- function q1(e) {
411
+ function Q1(e) {
414
412
  return function(t) {
415
413
  t.root || (t = t.return) && e(t);
416
414
  };
417
415
  }
418
- var Y1 = function(t, o, n) {
416
+ var X1 = function(t, o, n) {
419
417
  for (var i = 0, s = 0; i = s, s = _(), i === 38 && s === 12 && (o[n] = 1), !Y(s); )
420
- j();
418
+ B();
421
419
  return Q(t, V);
422
- }, Q1 = function(t, o) {
420
+ }, K1 = function(t, o) {
423
421
  var n = -1, i = 44;
424
422
  do
425
423
  switch (Y(i)) {
426
424
  case 0:
427
- i === 38 && _() === 12 && (o[n] = 1), t[n] += Y1(V - 1, o, n);
425
+ i === 38 && _() === 12 && (o[n] = 1), t[n] += X1(V - 1, o, n);
428
426
  break;
429
427
  case 2:
430
428
  t[n] += e2(i);
@@ -438,24 +436,24 @@ var Y1 = function(t, o, n) {
438
436
  default:
439
437
  t[n] += c2(i);
440
438
  }
441
- while (i = j());
439
+ while (i = B());
442
440
  return t;
443
- }, X1 = function(t, o) {
444
- return le(Q1(ae(t), o));
445
- }, E2 = /* @__PURE__ */ new WeakMap(), K1 = function(t) {
441
+ }, J1 = function(t, o) {
442
+ return de(K1(ae(t), o));
443
+ }, S2 = /* @__PURE__ */ new WeakMap(), et = function(t) {
446
444
  if (!(t.type !== "rule" || !t.parent || // positive .length indicates that this rule contains pseudo
447
445
  // negative .length indicates that this rule has been already prefixed
448
446
  t.length < 1)) {
449
447
  for (var o = t.value, n = t.parent, i = t.column === n.column && t.line === n.line; n.type !== "rule"; )
450
448
  if (n = n.parent, !n) return;
451
- if (!(t.props.length === 1 && o.charCodeAt(0) !== 58 && !E2.get(n)) && !i) {
452
- E2.set(t, !0);
453
- for (var s = [], u = X1(o, s), c = n.props, w = 0, x = 0; w < u.length; w++)
454
- for (var l = 0; l < c.length; l++, x++)
455
- t.props[x] = s[w] ? u[w].replace(/&\f/g, c[l]) : c[l] + " " + u[w];
449
+ if (!(t.props.length === 1 && o.charCodeAt(0) !== 58 && !S2.get(n)) && !i) {
450
+ S2.set(t, !0);
451
+ for (var s = [], p = J1(o, s), c = n.props, C = 0, b = 0; C < p.length; C++)
452
+ for (var d = 0; d < c.length; d++, b++)
453
+ t.props[b] = s[C] ? p[C].replace(/&\f/g, c[d]) : c[d] + " " + p[C];
456
454
  }
457
455
  }
458
- }, J1 = function(t) {
456
+ }, tt = function(t) {
459
457
  if (t.type === "decl") {
460
458
  var o = t.value;
461
459
  // charcode for l
@@ -463,11 +461,11 @@ var Y1 = function(t, o, n) {
463
461
  o.charCodeAt(2) === 98 && (t.return = "", t.value = "");
464
462
  }
465
463
  };
466
- function de(e, t) {
467
- switch (H1(e, t)) {
464
+ function le(e, t) {
465
+ switch (_1(e, t)) {
468
466
  // color-adjust
469
467
  case 5103:
470
- return p + "print-" + e + e;
468
+ return f + "print-" + e + e;
471
469
  // animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
472
470
  case 5737:
473
471
  case 4201:
@@ -497,58 +495,58 @@ function de(e, t) {
497
495
  case 5365:
498
496
  case 5621:
499
497
  case 3829:
500
- return p + e + e;
498
+ return f + e + e;
501
499
  // appearance, user-select, transform, hyphens, text-size-adjust
502
500
  case 5349:
503
501
  case 4246:
504
502
  case 4810:
505
503
  case 6968:
506
504
  case 2756:
507
- return p + e + o2 + e + S + e + e;
505
+ return f + e + o2 + e + T + e + e;
508
506
  // flex, flex-direction
509
507
  case 6828:
510
508
  case 4268:
511
- return p + e + S + e + e;
509
+ return f + e + T + e + e;
512
510
  // order
513
511
  case 6165:
514
- return p + e + S + "flex-" + e + e;
512
+ return f + e + T + "flex-" + e + e;
515
513
  // align-items
516
514
  case 5187:
517
- return p + e + f(e, /(\w+).+(:[^]+)/, p + "box-$1$2" + S + "flex-$1$2") + e;
515
+ return f + e + w(e, /(\w+).+(:[^]+)/, f + "box-$1$2" + T + "flex-$1$2") + e;
518
516
  // align-self
519
517
  case 5443:
520
- return p + e + S + "flex-item-" + f(e, /flex-|-self/, "") + e;
518
+ return f + e + T + "flex-item-" + w(e, /flex-|-self/, "") + e;
521
519
  // align-content
522
520
  case 4675:
523
- return p + e + S + "flex-line-pack" + f(e, /align-content|flex-|-self/, "") + e;
521
+ return f + e + T + "flex-line-pack" + w(e, /align-content|flex-|-self/, "") + e;
524
522
  // flex-shrink
525
523
  case 5548:
526
- return p + e + S + f(e, "shrink", "negative") + e;
524
+ return f + e + T + w(e, "shrink", "negative") + e;
527
525
  // flex-basis
528
526
  case 5292:
529
- return p + e + S + f(e, "basis", "preferred-size") + e;
527
+ return f + e + T + w(e, "basis", "preferred-size") + e;
530
528
  // flex-grow
531
529
  case 6060:
532
- return p + "box-" + f(e, "-grow", "") + p + e + S + f(e, "grow", "positive") + e;
530
+ return f + "box-" + w(e, "-grow", "") + f + e + T + w(e, "grow", "positive") + e;
533
531
  // transition
534
532
  case 4554:
535
- return p + f(e, /([^-])(transform)/g, "$1" + p + "$2") + e;
533
+ return f + w(e, /([^-])(transform)/g, "$1" + f + "$2") + e;
536
534
  // cursor
537
535
  case 6187:
538
- return f(f(f(e, /(zoom-|grab)/, p + "$1"), /(image-set)/, p + "$1"), e, "") + e;
536
+ return w(w(w(e, /(zoom-|grab)/, f + "$1"), /(image-set)/, f + "$1"), e, "") + e;
539
537
  // background, background-image
540
538
  case 5495:
541
539
  case 3959:
542
- return f(e, /(image-set\([^]*)/, p + "$1$`$1");
540
+ return w(e, /(image-set\([^]*)/, f + "$1$`$1");
543
541
  // justify-content
544
542
  case 4968:
545
- return f(f(e, /(.+:)(flex-)?(.*)/, p + "box-pack:$3" + S + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + p + e + e;
543
+ return w(w(e, /(.+:)(flex-)?(.*)/, f + "box-pack:$3" + T + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + f + e + e;
546
544
  // (margin|padding)-inline-(start|end)
547
545
  case 4095:
548
546
  case 3583:
549
547
  case 4068:
550
548
  case 2532:
551
- return f(e, /(.+)-inline(.+)/, p + "$1$2") + e;
549
+ return w(e, /(.+)-inline(.+)/, f + "$1$2") + e;
552
550
  // (min|max)?(width|height|inline-size|block-size)
553
551
  case 8116:
554
552
  case 7059:
@@ -562,116 +560,116 @@ function de(e, t) {
562
560
  case 5789:
563
561
  case 5021:
564
562
  case 4765:
565
- if (H(e) - 1 - t > 6) switch (I(e, t + 1)) {
563
+ if (H(e) - 1 - t > 6) switch (S(e, t + 1)) {
566
564
  // (m)ax-content, (m)in-content
567
565
  case 109:
568
- if (I(e, t + 4) !== 45) break;
566
+ if (S(e, t + 4) !== 45) break;
569
567
  // (f)ill-available, (f)it-content
570
568
  case 102:
571
- return f(e, /(.+:)(.+)-([^]+)/, "$1" + p + "$2-$3$1" + o2 + (I(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
569
+ return w(e, /(.+:)(.+)-([^]+)/, "$1" + f + "$2-$3$1" + o2 + (S(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
572
570
  // (s)tretch
573
571
  case 115:
574
- return ~u2(e, "stretch") ? de(f(e, "stretch", "fill-available"), t) + e : e;
572
+ return ~u2(e, "stretch") ? le(w(e, "stretch", "fill-available"), t) + e : e;
575
573
  }
576
574
  break;
577
575
  // position: sticky
578
576
  case 4949:
579
- if (I(e, t + 1) !== 115) break;
577
+ if (S(e, t + 1) !== 115) break;
580
578
  // display: (flex|inline-flex)
581
579
  case 6444:
582
- switch (I(e, H(e) - 3 - (~u2(e, "!important") && 10))) {
580
+ switch (S(e, H(e) - 3 - (~u2(e, "!important") && 10))) {
583
581
  // stic(k)y
584
582
  case 107:
585
- return f(e, ":", ":" + p) + e;
583
+ return w(e, ":", ":" + f) + e;
586
584
  // (inline-)?fl(e)x
587
585
  case 101:
588
- return f(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + p + (I(e, 14) === 45 ? "inline-" : "") + "box$3$1" + p + "$2$3$1" + S + "$2box$3") + e;
586
+ return w(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + f + (S(e, 14) === 45 ? "inline-" : "") + "box$3$1" + f + "$2$3$1" + T + "$2box$3") + e;
589
587
  }
590
588
  break;
591
589
  // writing-mode
592
590
  case 5936:
593
- switch (I(e, t + 11)) {
591
+ switch (S(e, t + 11)) {
594
592
  // vertical-l(r)
595
593
  case 114:
596
- return p + e + S + f(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
594
+ return f + e + T + w(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
597
595
  // vertical-r(l)
598
596
  case 108:
599
- return p + e + S + f(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
597
+ return f + e + T + w(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
600
598
  // horizontal(-)tb
601
599
  case 45:
602
- return p + e + S + f(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
600
+ return f + e + T + w(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
603
601
  }
604
- return p + e + S + e + e;
602
+ return f + e + T + e + e;
605
603
  }
606
604
  return e;
607
605
  }
608
- var et = function(t, o, n, i) {
606
+ var rt = function(t, o, n, i) {
609
607
  if (t.length > -1 && !t.return) switch (t.type) {
610
608
  case m2:
611
- t.return = de(t.value, t.length);
609
+ t.return = le(t.value, t.length);
612
610
  break;
613
611
  case se:
614
- return O([U(t, {
615
- value: f(t.value, "@", "@" + p)
612
+ return O([F(t, {
613
+ value: w(t.value, "@", "@" + f)
616
614
  })], i);
617
- case g2:
618
- if (t.length) return _1(t.props, function(s) {
619
- switch (B1(s, /(::plac\w+|:read-\w+)/)) {
615
+ case w2:
616
+ if (t.length) return D1(t.props, function(s) {
617
+ switch (P1(s, /(::plac\w+|:read-\w+)/)) {
620
618
  // :read-(only|write)
621
619
  case ":read-only":
622
620
  case ":read-write":
623
- return O([U(t, {
624
- props: [f(s, /:(read-\w+)/, ":" + o2 + "$1")]
621
+ return O([F(t, {
622
+ props: [w(s, /:(read-\w+)/, ":" + o2 + "$1")]
625
623
  })], i);
626
624
  // :placeholder
627
625
  case "::placeholder":
628
- return O([U(t, {
629
- props: [f(s, /:(plac\w+)/, ":" + p + "input-$1")]
630
- }), U(t, {
631
- props: [f(s, /:(plac\w+)/, ":" + o2 + "$1")]
632
- }), U(t, {
633
- props: [f(s, /:(plac\w+)/, S + "input-$1")]
626
+ return O([F(t, {
627
+ props: [w(s, /:(plac\w+)/, ":" + f + "input-$1")]
628
+ }), F(t, {
629
+ props: [w(s, /:(plac\w+)/, ":" + o2 + "$1")]
630
+ }), F(t, {
631
+ props: [w(s, /:(plac\w+)/, T + "input-$1")]
634
632
  })], i);
635
633
  }
636
634
  return "";
637
635
  });
638
636
  }
639
- }, tt = [et], rt = function(t) {
637
+ }, nt = [rt], ot = function(t) {
640
638
  var o = t.key;
641
639
  if (o === "css") {
642
640
  var n = document.querySelectorAll("style[data-emotion]:not([data-s])");
643
- Array.prototype.forEach.call(n, function(d) {
644
- var M = d.getAttribute("data-emotion");
645
- M.indexOf(" ") !== -1 && (document.head.appendChild(d), d.setAttribute("data-s", ""));
641
+ Array.prototype.forEach.call(n, function(l) {
642
+ var I = l.getAttribute("data-emotion");
643
+ I.indexOf(" ") !== -1 && (document.head.appendChild(l), l.setAttribute("data-s", ""));
646
644
  });
647
645
  }
648
- var i = t.stylisPlugins || tt, s = {}, u, c = [];
649
- u = t.container || document.head, Array.prototype.forEach.call(
646
+ var i = t.stylisPlugins || nt, s = {}, p, c = [];
647
+ p = t.container || document.head, Array.prototype.forEach.call(
650
648
  // this means we will ignore elements which don't have a space in them which
651
649
  // means that the style elements we're looking at are only Emotion 11 server-rendered style elements
652
650
  document.querySelectorAll('style[data-emotion^="' + o + ' "]'),
653
- function(d) {
654
- for (var M = d.getAttribute("data-emotion").split(" "), v = 1; v < M.length; v++)
655
- s[M[v]] = !0;
656
- c.push(d);
651
+ function(l) {
652
+ for (var I = l.getAttribute("data-emotion").split(" "), x = 1; x < I.length; x++)
653
+ s[I[x]] = !0;
654
+ c.push(l);
657
655
  }
658
656
  );
659
- var w, x = [K1, J1];
657
+ var C, b = [et, tt];
660
658
  {
661
- var l, a = [U1, q1(function(d) {
662
- l.insert(d);
663
- })], m = W1(x.concat(i, a)), k = function(M) {
664
- return O(F1(M), m);
659
+ var d, a = [q1, Q1(function(l) {
660
+ d.insert(l);
661
+ })], k = Y1(b.concat(i, a)), v = function(I) {
662
+ return O(F1(I), k);
665
663
  };
666
- w = function(M, v, y, T) {
667
- l = y, k(M ? M + "{" + v.styles + "}" : v.styles), T && (h.inserted[v.name] = !0);
664
+ C = function(I, x, L, R) {
665
+ d = L, v(I ? I + "{" + x.styles + "}" : x.styles), R && (h.inserted[x.name] = !0);
668
666
  };
669
667
  }
670
668
  var h = {
671
669
  key: o,
672
- sheet: new T1({
670
+ sheet: new V1({
673
671
  key: o,
674
- container: u,
672
+ container: p,
675
673
  nonce: t.nonce,
676
674
  speedy: t.speedy,
677
675
  prepend: t.prepend,
@@ -680,68 +678,68 @@ var et = function(t, o, n, i) {
680
678
  nonce: t.nonce,
681
679
  inserted: s,
682
680
  registered: {},
683
- insert: w
681
+ insert: C
684
682
  };
685
683
  return h.sheet.hydrate(c), h;
686
684
  };
687
685
  const he = ({ children: e, viewport: t, containerProps: o }) => {
688
- const n = q2(null), { theme: i } = s2(), [s, u] = G({
686
+ const n = q2(null), { theme: i } = s2(), [s, p] = G({
689
687
  width: 0,
690
688
  height: 0
691
689
  });
692
- W(() => {
693
- const h = Ie((M) => {
694
- const v = M.at(0)?.target;
695
- if (!v) return;
696
- const { width: y, height: T } = v.getBoundingClientRect();
697
- u(() => ({
698
- width: y,
699
- height: T
690
+ U(() => {
691
+ const h = Ne((I) => {
692
+ const x = I.at(0)?.target;
693
+ if (!x) return;
694
+ const { width: L, height: R } = x.getBoundingClientRect();
695
+ p(() => ({
696
+ width: L,
697
+ height: R
700
698
  }));
701
- }, 200), d = new ResizeObserver(h);
702
- return n.current && d.observe(n.current), () => d.disconnect();
699
+ }, 200), l = new ResizeObserver(h);
700
+ return n.current && l.observe(n.current), () => l.disconnect();
703
701
  }, []);
704
- const c = b2(t?.width) ? t.width(s.width) : t?.width, w = b2(t?.height) ? t.height(s.height) : t?.height, x = y2(c) ? s.width / c : 1, l = y2(w) ? s.height / w : 1, a = Math.min(x, l, 1), m = (w ?? s.height / a) || 0, k = (c ?? s.width / a) || 0;
705
- return /* @__PURE__ */ r("div", { ...o, className: B("tw:w-full tw:h-full tw:p-2 tw:bg-ic-ink-1s", o?.className), children: /* @__PURE__ */ r("div", { className: B("tw:w-full tw:h-full tw:overflow-hidden tw:relative"), ref: n, children: /* @__PURE__ */ r(
702
+ const c = b2(t?.width) ? t.width(s.width) : t?.width, C = b2(t?.height) ? t.height(s.height) : t?.height, b = y2(c) ? s.width / c : 1, d = y2(C) ? s.height / C : 1, a = Math.min(b, d, 1), k = (C ?? s.height / a) || 0, v = (c ?? s.width / a) || 0;
703
+ return /* @__PURE__ */ r("div", { ...o, css: { padding: 8, width: "100%", height: "100%", backgroundColor: Je.ink["1s"] }, children: /* @__PURE__ */ r("div", { css: { position: "relative", overflow: "hidden", width: "100%", height: "100%" }, ref: n, children: /* @__PURE__ */ r(
706
704
  "div",
707
705
  {
708
706
  style: {
709
707
  transform: `scale(${a})`,
710
- width: k,
711
- height: m,
712
- marginLeft: (s.width - k) / 2,
713
- marginTop: (s.height - m) / 2
708
+ width: v,
709
+ height: k,
710
+ marginLeft: (s.width - v) / 2,
711
+ marginTop: (s.height - k) / 2
714
712
  },
715
- className: "tw:absolute",
713
+ css: { position: "absolute" },
716
714
  children: /* @__PURE__ */ r(
717
- C1,
715
+ k1,
718
716
  {
719
717
  sandbox: "allow-same-origin allow-scripts allow-popups allow-presentation",
720
718
  allow: "autoplay; encrypted-media",
721
719
  width: c ?? "100%",
722
- height: w ?? "100%",
723
- children: /* @__PURE__ */ r(nt, { theme: i, children: e })
720
+ height: C ?? "100%",
721
+ children: /* @__PURE__ */ r(st, { theme: i, children: e })
724
722
  }
725
723
  )
726
724
  }
727
725
  ) }) });
728
- }, nt = ({ children: e, theme: t }) => {
729
- const { document: o, window: n } = p1(), [i, s] = G(!1), u = q2(window.customElements.define.bind(window.customElements));
730
- W(() => {
731
- const w = u.current;
732
- return n && (window.customElements.define = function(x, l, a) {
733
- window.customElements.get(x) || n.customElements.define(x, l, a), w(x, l, a);
726
+ }, st = ({ children: e, theme: t }) => {
727
+ const { document: o, window: n } = v1(), [i, s] = G(!1), p = q2(window.customElements.define.bind(window.customElements));
728
+ U(() => {
729
+ const C = p.current;
730
+ return n && (window.customElements.define = function(b, d, a) {
731
+ window.customElements.get(b) || n.customElements.define(b, d, a), C(b, d, a);
734
732
  }), o?.head.replaceWith(document.head.cloneNode(!0)), s(!0), () => {
735
- window.customElements.define = w;
733
+ window.customElements.define = C;
736
734
  };
737
735
  }, [o, n]);
738
- const c = rt({
736
+ const c = ot({
739
737
  key: "css",
740
738
  container: o?.head
741
739
  });
742
- return i ? /* @__PURE__ */ r(V2, { children: /* @__PURE__ */ g(f1, { value: c, children: [
740
+ return i ? /* @__PURE__ */ r(R2, { children: /* @__PURE__ */ m(i1, { value: c, children: [
743
741
  /* @__PURE__ */ r(
744
- g1,
742
+ c1,
745
743
  {
746
744
  styles: {
747
745
  ".frame-content": {
@@ -764,47 +762,47 @@ const he = ({ children: e, viewport: t, containerProps: o }) => {
764
762
  ),
765
763
  /* @__PURE__ */ r(Ye, { theme: t, children: e })
766
764
  ] }) }) : null;
767
- }, ot = ({ render: e }) => {
765
+ }, it = ({ render: e }) => {
768
766
  const { id: t, renderer: o } = xe((s) => ({
769
- resolvedId: Ne(s),
767
+ resolvedId: Le(s),
770
768
  renderer: ye(s).renderer
771
769
  })), {
772
770
  queryParams: { mode: n }
773
- } = i2(), { isActive: i } = $((s, u) => ({
774
- isActive: u.getEvent("selected").contains(t) && t !== D
771
+ } = i2(), { isActive: i } = Z((s, p) => ({
772
+ isActive: p.getEvent("selected").contains(t) && t !== $
775
773
  }));
776
- return o ? Y2(o, { render: e }) : /* @__PURE__ */ g(n2, { children: [
777
- i && n === "full" && /* @__PURE__ */ g(n2, { children: [
778
- /* @__PURE__ */ r(Ee, {}),
779
- /* @__PURE__ */ r(Se, {})
774
+ return o ? Y2(o, { render: e }) : /* @__PURE__ */ m(n2, { children: [
775
+ i && n === "full" && /* @__PURE__ */ m(n2, { children: [
776
+ /* @__PURE__ */ r(Se, {}),
777
+ /* @__PURE__ */ r(Ee, {})
780
778
  ] }),
781
779
  e
782
780
  ] });
783
781
  };
784
- L(j2, { inspector: Te });
785
- L(r2, { inspector: Ve });
786
- L(A2, { inspector: je });
787
- L(p2, { inspector: Ae });
788
- L(R2, { inspector: Re });
789
- L(d2, { inspector: He });
790
- L(H2, { inspector: Be });
791
- L(h2, { inspector: _e });
792
- L(f2, { inspector: Pe });
793
- L(B2, { inspector: Ze });
794
- L(_2, { inspector: $e });
795
- L(P2, { inspector: De });
796
- L(Z2, { inspector: Oe });
797
- L(ue, { inspector: Ge });
798
- L($2, { inspector: Fe });
799
- L(D2, { inspector: ze });
800
- L(O2, { inspector: Ue });
801
- L(G2, { inspector: We });
802
- L(F2, { inspector: qe });
803
- const S2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
782
+ N(V2, { inspector: Te });
783
+ N(r2, { inspector: Re });
784
+ N(B2, { inspector: Ve });
785
+ N(g2, { inspector: Be });
786
+ N(j2, { inspector: je });
787
+ N(l2, { inspector: Ae });
788
+ N(A2, { inspector: He });
789
+ N(h2, { inspector: _e });
790
+ N(f2, { inspector: Pe });
791
+ N(H2, { inspector: De });
792
+ N(_2, { inspector: Ze });
793
+ N(P2, { inspector: $e });
794
+ N(D2, { inspector: Oe });
795
+ N(ue, { inspector: Ge });
796
+ N(Z2, { inspector: We });
797
+ N($2, { inspector: ze });
798
+ N(O2, { inspector: Fe });
799
+ N(G2, { inspector: Ue });
800
+ N(W2, { inspector: qe });
801
+ const E2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
804
802
  <path d="M8 5L5 8L8 11" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
805
803
  <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"/>
806
804
  </svg>
807
- `, st = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
805
+ `, ct = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
808
806
  <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"/>
809
807
  <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"/>
810
808
  <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"/>
@@ -812,68 +810,101 @@ const S2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
812
810
  <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"/>
813
811
  <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"/>
814
812
  </svg>
815
- `, it = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
813
+ `, at = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
816
814
  <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"/>
817
815
  <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"/>
818
816
  </svg>
819
- `, ct = '<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>', at = () => {
817
+ `, dt = '<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>', lt = () => {
820
818
  const {
821
819
  queryParams: { mode: e, screen: t },
822
820
  setQueryParams: o
823
- } = i2(), [n, i] = G(!1), { handlers: s } = s2(), { actions: u, canRedo: c, canUndo: w, query: x } = $((h, d) => ({
821
+ } = i2(), [n, i] = G(!1), { handlers: s } = s2(), { actions: p, canRedo: c, canUndo: C, query: b } = Z((h, l) => ({
824
822
  enabled: h.options.enabled,
825
- canUndo: d.history.canUndo(),
826
- canRedo: d.history.canRedo()
827
- })), l = (h) => {
823
+ canUndo: l.history.canUndo(),
824
+ canRedo: l.history.canRedo()
825
+ })), d = (h) => {
828
826
  o({
829
827
  screen: h
830
828
  });
831
829
  }, a = () => {
832
830
  o({ mode: e === "full" ? "compact" : "full" });
833
- }, m = () => {
831
+ }, k = () => {
834
832
  s.close();
835
- }, k = async () => {
833
+ }, v = async () => {
836
834
  try {
837
- return u.selectNode(), s.submit(x.getSerializedNodes());
835
+ return p.selectNode(), s.submit(b.getSerializedNodes());
838
836
  } catch {
839
837
  } finally {
840
838
  i(!1);
841
839
  }
842
840
  };
843
- return /* @__PURE__ */ g(
841
+ return /* @__PURE__ */ m(
844
842
  "div",
845
843
  {
846
- className: B(
847
- "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"
848
- ),
844
+ css: {
845
+ display: "flex",
846
+ padding: 8,
847
+ alignItems: "center",
848
+ gap: 16,
849
+ justifyContent: "space-between",
850
+ backgroundColor: u.palette.ink["6s"],
851
+ color: u.palette.white["6s"],
852
+ ...u.text.sm
853
+ },
849
854
  children: [
850
- /* @__PURE__ */ g("div", { className: "tw:flex tw:items-center tw:gap-3", children: [
851
- /* @__PURE__ */ r(A, { size: "32", onClick: m, children: /* @__PURE__ */ r(E, { source: ct }) }),
852
- /* @__PURE__ */ r(x1, { onSelectionChange: l, value: t, children: k1.map(({ icon: h, size: d }) => /* @__PURE__ */ r(A, { value: d, children: /* @__PURE__ */ r(E, { source: h }) }, d)) }),
853
- /* @__PURE__ */ g("div", { className: "tw:p-1 tw:flex tw:items-center tw:gap-2 tw:bg-ic-white-1s tw:rounded-lg", children: [
854
- /* @__PURE__ */ r(A, { onClick: u.history.undo, disabled: !w, children: /* @__PURE__ */ r(E, { source: S2 }) }),
855
- /* @__PURE__ */ r(A, { onClick: u.history.redo, disabled: !c, children: /* @__PURE__ */ r(E, { source: S2, className: "tw:rotate-180" }) })
856
- ] }),
857
- /* @__PURE__ */ r("div", { className: "tw:p-1 tw:flex tw:items-center tw:gap-2 tw:bg-ic-white-1s tw:rounded-lg", children: /* @__PURE__ */ r(A, { onClick: a, children: /* @__PURE__ */ r(E, { source: e === "full" ? it : st }) }) })
855
+ /* @__PURE__ */ m("div", { css: { display: "flex", alignItems: "center", gap: 12 }, children: [
856
+ /* @__PURE__ */ r(j, { size: "32", onClick: k, children: /* @__PURE__ */ r(E, { source: dt }) }),
857
+ /* @__PURE__ */ r(y1, { onSelectionChange: d, value: t, children: x1.map(({ icon: h, size: l }) => /* @__PURE__ */ r(j, { value: l, children: /* @__PURE__ */ r(E, { source: h }) }, l)) }),
858
+ /* @__PURE__ */ m(
859
+ "div",
860
+ {
861
+ css: {
862
+ padding: 4,
863
+ display: "flex",
864
+ alignItems: "center",
865
+ gap: 8,
866
+ borderRadius: 8,
867
+ backgroundColor: u.palette.white["1s"]
868
+ },
869
+ children: [
870
+ /* @__PURE__ */ r(j, { onClick: p.history.undo, disabled: !C, children: /* @__PURE__ */ r(E, { source: E2 }) }),
871
+ /* @__PURE__ */ r(j, { onClick: p.history.redo, disabled: !c, children: /* @__PURE__ */ r(E, { source: E2, css: { transform: "rotate(180deg)" } }) })
872
+ ]
873
+ }
874
+ ),
875
+ /* @__PURE__ */ r(
876
+ "div",
877
+ {
878
+ css: {
879
+ padding: 4,
880
+ display: "flex",
881
+ alignItems: "center",
882
+ gap: 8,
883
+ borderRadius: 8,
884
+ backgroundColor: u.palette.white["1s"]
885
+ },
886
+ children: /* @__PURE__ */ r(j, { onClick: a, children: /* @__PURE__ */ r(E, { source: e === "full" ? at : ct }) })
887
+ }
888
+ )
858
889
  ] }),
859
- /* @__PURE__ */ r("div", { className: "tw:flex tw:items-center tw:gap-3", children: /* @__PURE__ */ r(K2, { isLoading: n, onClick: k, children: "Save" }) })
890
+ /* @__PURE__ */ r("div", { css: { display: "flex", alignItems: "center", gap: 12 }, children: /* @__PURE__ */ r(K2, { isLoading: n, onClick: v, children: "Save" }) })
860
891
  ]
861
892
  }
862
893
  );
863
- }, lt = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
894
+ }, ht = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
864
895
  <path d="M20 19.9997L16.3763 16.376" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
865
896
  <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"/>
866
897
  </svg>
867
- `, dt = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
898
+ `, ut = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
868
899
  <path d="M15 6L9 12L15 18" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
869
900
  </svg>
870
- `, ht = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
901
+ `, pt = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
871
902
  <rect x="3.00024" y="3" width="17.9997" height="17.9997" rx="2" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
872
903
  <path d="M13.5 20.9998V12" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
873
904
  <path d="M9.50011 11.9998V3" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
874
905
  <path d="M20.9999 12H3.00024" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
875
906
  </svg>
876
- `, ut = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
907
+ `, Ct = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
877
908
  <rect x="3" y="3" width="18" height="18" rx="2" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
878
909
  <path d="M3 12H21" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
879
910
  <path d="M12 21V3" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
@@ -884,23 +915,23 @@ const S2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
884
915
  <path d="M6 21H18" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
885
916
  <path d="M6 3H18" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
886
917
  </svg>
887
- `, wt = {
918
+ `, gt = {
888
919
  name: "Layout",
889
920
  templates: [
890
921
  {
891
922
  name: "Container",
892
- template: /* @__PURE__ */ r(C, { is: F2 }),
923
+ template: /* @__PURE__ */ r(g, { is: W2 }),
893
924
  icon: { source: T2, height: 32 }
894
925
  },
895
926
  {
896
927
  name: "Block",
897
- template: /* @__PURE__ */ r(C, { is: D2 }),
928
+ template: /* @__PURE__ */ r(g, { is: $2 }),
898
929
  icon: { source: T2, height: 32 }
899
930
  },
900
931
  {
901
932
  name: "Grid",
902
- template: /* @__PURE__ */ g(
903
- C,
933
+ template: /* @__PURE__ */ m(
934
+ g,
904
935
  {
905
936
  cols: 2,
906
937
  sx: {
@@ -910,20 +941,20 @@ const S2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
910
941
  paddingTop: 16,
911
942
  paddingBottom: 16
912
943
  },
913
- is: R2,
944
+ is: j2,
914
945
  children: [
915
- /* @__PURE__ */ r(C, { is: d2, canvas: !0 }),
916
- /* @__PURE__ */ r(C, { is: d2, canvas: !0 })
946
+ /* @__PURE__ */ r(g, { is: l2, canvas: !0 }),
947
+ /* @__PURE__ */ r(g, { is: l2, canvas: !0 })
917
948
  ]
918
949
  }
919
950
  ),
920
- icon: { source: ut, height: 32 }
951
+ icon: { source: Ct, height: 32 }
921
952
  },
922
953
  {
923
954
  name: "Flex",
924
- template: /* @__PURE__ */ g(C, { is: H2, sx: { columnGap: 8, rowGap: 8, paddingTop: 16, paddingBottom: 16 }, children: [
955
+ template: /* @__PURE__ */ m(g, { is: A2, sx: { columnGap: 8, rowGap: 8, paddingTop: 16, paddingBottom: 16 }, children: [
925
956
  /* @__PURE__ */ r(
926
- C,
957
+ g,
927
958
  {
928
959
  sx: {
929
960
  width: "40%"
@@ -933,7 +964,7 @@ const S2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
933
964
  }
934
965
  ),
935
966
  /* @__PURE__ */ r(
936
- C,
967
+ g,
937
968
  {
938
969
  sx: {
939
970
  width: "60%"
@@ -943,10 +974,10 @@ const S2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
943
974
  }
944
975
  )
945
976
  ] }),
946
- icon: { source: ht, height: 32 }
977
+ icon: { source: pt, height: 32 }
947
978
  }
948
979
  ]
949
- }, Ct = `<svg width="98" height="56" viewBox="0 0 98 56" fill="none" xmlns="http://www.w3.org/2000/svg">
980
+ }, ft = `<svg width="98" height="56" viewBox="0 0 98 56" fill="none" xmlns="http://www.w3.org/2000/svg">
950
981
  <rect x="4" y="4" width="57" height="6" rx="3" fill="currentColor"></rect>
951
982
  <rect x="2" y="4" width="57" height="6" rx="3" fill="currentColor"></rect>
952
983
  <path fill-rule="evenodd" clip-rule="evenodd" d="M86.1302 5.61716C86.3037 5.46095 86.5851 5.46095 86.7587 5.61716L90 8.53431L93.2413 5.61716C93.4149 5.46095 93.6963 5.46095 93.8698 5.61716C94.0434 5.77337 94.0434 6.02663 93.8698 6.18284L90.3143 9.38284C90.1407 9.53905 89.8593 9.53905 89.6857 9.38284L86.1302 6.18284C85.9566 6.02663 85.9566 5.77337 86.1302 5.61716Z" fill="currentColor"></path>
@@ -956,13 +987,13 @@ const S2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
956
987
  <rect x="4" y="46" width="57" height="6" rx="3" fill="currentColor"></rect>
957
988
  <rect x="2" y="46" width="57" height="6" rx="3" fill="currentColor"></rect>
958
989
  <path fill-rule="evenodd" clip-rule="evenodd" d="M86.1302 47.6172C86.3037 47.4609 86.5851 47.4609 86.7587 47.6172L90 50.5343L93.2413 47.6172C93.4149 47.4609 93.6963 47.4609 93.8698 47.6172C94.0434 47.7734 94.0434 48.0266 93.8698 48.1828L90.3143 51.3828C90.1407 51.5391 89.8593 51.5391 89.6857 51.3828L86.1302 48.1828C85.9566 48.0266 85.9566 47.7734 86.1302 47.6172Z" fill="currentColor"></path>
959
- </svg>`, pt = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6%209L12%2015L18%209'%20stroke='currentColor'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", ft = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6%209L12%2015L18%209'%20transform='rotate(180%2012%2012)'%20stroke='currentColor'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", gt = {
990
+ </svg>`, wt = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6%209L12%2015L18%209'%20stroke='currentColor'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", mt = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6%209L12%2015L18%209'%20transform='rotate(180%2012%2012)'%20stroke='currentColor'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", kt = {
960
991
  name: "Content list",
961
992
  templates: [
962
993
  {
963
994
  name: "Accordion",
964
995
  template: /* @__PURE__ */ r(
965
- C,
996
+ g,
966
997
  {
967
998
  is: O2,
968
999
  accordionSummaryProps: {
@@ -973,8 +1004,8 @@ const S2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
973
1004
  expandIcon: {
974
1005
  position: "right",
975
1006
  source: {
976
- expanded: ft,
977
- collapsed: pt
1007
+ expanded: mt,
1008
+ collapsed: wt
978
1009
  }
979
1010
  }
980
1011
  },
@@ -985,17 +1016,17 @@ const S2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
985
1016
  }
986
1017
  },
987
1018
  openMode: "single",
988
- children: Z(3).map((e) => /* @__PURE__ */ g(C, { defaultOpen: e === 0, is: we, children: [
989
- /* @__PURE__ */ r(C, { is: Ce, children: /* @__PURE__ */ r(
990
- C,
1019
+ children: D(3).map((e) => /* @__PURE__ */ m(g, { defaultOpen: e === 0, is: pe, children: [
1020
+ /* @__PURE__ */ r(g, { is: Ce, children: /* @__PURE__ */ r(
1021
+ g,
991
1022
  {
992
1023
  sizeVariant: "base",
993
1024
  is: r2,
994
1025
  dangerouslySetInnerHTML: { __html: `Accordion ${e + 1}` }
995
1026
  }
996
1027
  ) }),
997
- /* @__PURE__ */ r(C, { is: pe, children: /* @__PURE__ */ r(
998
- C,
1028
+ /* @__PURE__ */ r(g, { is: ge, children: /* @__PURE__ */ r(
1029
+ g,
999
1030
  {
1000
1031
  sx: {
1001
1032
  paddingTop: 8,
@@ -1010,22 +1041,22 @@ const S2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
1010
1041
  ] }, e))
1011
1042
  }
1012
1043
  ),
1013
- icon: { source: Ct, height: 40 }
1044
+ icon: { source: ft, height: 40 }
1014
1045
  }
1015
1046
  ]
1016
1047
  }, C2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
1017
1048
  <path fill-rule="evenodd" clip-rule="evenodd" d="M20.3998 10.6645L13.6661 15.4669C12.6691 16.1777 11.3309 16.1777 10.3339 15.4669L3.60018 10.6645C3.2236 10.3962 3 9.96237 3 9.5C3 9.03763 3.2236 8.60381 3.60018 8.33553L10.3339 3.5331C11.3309 2.8223 12.6691 2.8223 13.6661 3.5331L20.3998 8.33553C20.7764 8.60381 21 9.03763 21 9.5C21 9.96237 20.7764 10.3962 20.3998 10.6645Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
1018
1049
  <path fill-rule="evenodd" clip-rule="evenodd" d="M20.3998 15.6645L13.6661 20.4669C12.6691 21.1777 11.3309 21.1777 10.3339 20.4669L3.60018 15.6645C3.2236 15.3962 3 14.9624 3 14.5C3 14.0376 3.2236 13.6038 3.60018 13.3355L10.3339 8.5331C11.3309 7.8223 12.6691 7.8223 13.6661 8.5331L20.3998 13.3355C20.7764 13.6038 21 14.0376 21 14.5C21 14.9624 20.7764 15.3962 20.3998 15.6645Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
1019
1050
  </svg>
1020
- `, mt = {
1051
+ `, vt = {
1021
1052
  name: "Interactive",
1022
1053
  templates: [
1023
1054
  {
1024
1055
  name: "Carousel",
1025
1056
  template: /* @__PURE__ */ r(
1026
- C,
1057
+ g,
1027
1058
  {
1028
- is: p2,
1059
+ is: g2,
1029
1060
  slidesPerView: 2,
1030
1061
  spaceBetween: 8,
1031
1062
  md: {
@@ -1034,8 +1065,8 @@ const S2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
1034
1065
  lg: {
1035
1066
  slidesPerView: 4
1036
1067
  },
1037
- children: Z(6).map((e) => /* @__PURE__ */ r(
1038
- C,
1068
+ children: D(6).map((e) => /* @__PURE__ */ r(
1069
+ g,
1039
1070
  {
1040
1071
  custom: {
1041
1072
  displayName: `Slide ${e + 1}`
@@ -1051,21 +1082,21 @@ const S2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
1051
1082
  },
1052
1083
  {
1053
1084
  name: "Marquee",
1054
- template: /* @__PURE__ */ r(C, { is: f2, children: Z(10).map((e) => /* @__PURE__ */ r(
1055
- C,
1085
+ template: /* @__PURE__ */ r(g, { is: f2, children: D(10).map((e) => /* @__PURE__ */ r(
1086
+ g,
1056
1087
  {
1057
1088
  canvas: !0,
1058
1089
  custom: {
1059
1090
  displayName: `Marquee Item ${e + 1}`
1060
1091
  },
1061
- is: U2
1092
+ is: F2
1062
1093
  },
1063
1094
  e
1064
1095
  )) }),
1065
1096
  icon: { source: C2, height: 32 }
1066
1097
  }
1067
1098
  ]
1068
- }, kt = `<svg height="24" width="24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 512 512" xml:space="preserve">
1099
+ }, xt = `<svg height="24" width="24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 512 512" xml:space="preserve">
1069
1100
  <style type="text/css">
1070
1101
  .st0{fill:currentColor;}
1071
1102
  </style>
@@ -1094,31 +1125,31 @@ const S2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
1094
1125
  c4.709,14.802,17.357,22.204,33.644,22.204c16.286,0,28.668-8.204,33.374-22.881c1.617-5.111,2.29-12.645,2.29-20.716v-0.95
1095
1126
  C372.362,303.664,369.538,300.836,364.556,300.836z"/>
1096
1127
  </g>
1097
- </svg>`, vt = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
1128
+ </svg>`, bt = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
1098
1129
  <path d="M20.64 15.3735L16.5187 11.2522C16.1434 10.8769 15.5357 10.8769 15.1613 11.2522L11.04 15.3735" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
1099
1130
  <path fill-rule="evenodd" clip-rule="evenodd" d="M17.76 20.1736H6.24C4.64928 20.1736 3.36 18.8843 3.36 17.2936V5.77355C3.36 4.18283 4.64928 2.89355 6.24 2.89355H17.76C19.3507 2.89355 20.64 4.18283 20.64 5.77355V17.2936C20.64 18.8843 19.3507 20.1736 17.76 20.1736Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
1100
1131
  <path d="M15.84 20.1734L9.79872 14.1321C9.42336 13.7567 8.81568 13.7567 8.44128 14.1321L3.78816 18.7852" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
1101
1132
  <path d="M9.37456 8.39927C9.51515 8.53986 9.51515 8.7678 9.37456 8.90839C9.23397 9.04898 9.00603 9.04898 8.86544 8.90839C8.72485 8.7678 8.72485 8.53986 8.86544 8.39927C9.00603 8.25868 9.23397 8.25868 9.37456 8.39927" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
1102
1133
  </svg>
1103
- `, xt = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
1134
+ `, yt = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
1104
1135
  <path fill-rule="evenodd" clip-rule="evenodd" d="M10.2939 12L14.6229 9.5L10.2939 7V12Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
1105
1136
  <path fill-rule="evenodd" clip-rule="evenodd" d="M19.889 3.38867H4.111C3.497 3.38867 3 3.88567 3 4.49967V14.4997C3 15.1137 3.497 15.6107 4.111 15.6107H19.889C20.503 15.6107 21 15.1137 21 14.4997V4.49967C21 3.88567 20.503 3.38867 19.889 3.38867Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
1106
1137
  <path d="M8.56066 18.9393C9.14645 19.5251 9.14645 20.4749 8.56066 21.0607C7.97487 21.6464 7.02513 21.6464 6.43934 21.0607C5.85355 20.4749 5.85355 19.5251 6.43934 18.9393C7.02513 18.3536 7.97487 18.3536 8.56066 18.9393" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
1107
1138
  <path d="M21 20H9" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
1108
1139
  <path d="M3 20H6" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
1109
1140
  </svg>
1110
- `, bt = {
1141
+ `, Lt = {
1111
1142
  name: "Media",
1112
1143
  templates: [
1113
1144
  {
1114
1145
  name: "Image",
1115
- template: /* @__PURE__ */ r(C, { src: "https://ucarecdn.com/ee6d5074-1640-4cc7-8933-47c8589c3dee/-/format/auto/", is: _2 }),
1116
- icon: { source: vt, height: 32 }
1146
+ template: /* @__PURE__ */ r(g, { src: "https://ucarecdn.com/ee6d5074-1640-4cc7-8933-47c8589c3dee/-/format/auto/", is: _2 }),
1147
+ icon: { source: bt, height: 32 }
1117
1148
  },
1118
1149
  {
1119
1150
  name: "Video",
1120
1151
  template: /* @__PURE__ */ r(
1121
- A2,
1152
+ B2,
1122
1153
  {
1123
1154
  sx: {
1124
1155
  aspectRatio: "16 / 9"
@@ -1126,21 +1157,21 @@ const S2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
1126
1157
  src: "https://cdn.shopify.com/videos/c/o/v/2cd3deb506b54b009063f7270ab5cf2e.mp4"
1127
1158
  }
1128
1159
  ),
1129
- icon: { source: xt, height: 32 }
1160
+ icon: { source: yt, height: 32 }
1130
1161
  },
1131
1162
  {
1132
1163
  name: "Icon",
1133
- template: /* @__PURE__ */ r(C, { source: C2, is: P2 }),
1134
- icon: { source: kt, height: 32 }
1164
+ template: /* @__PURE__ */ r(g, { source: C2, is: P2 }),
1165
+ icon: { source: xt, height: 32 }
1135
1166
  }
1136
1167
  ]
1137
- }, yt = `<svg width="24" height="24" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg">
1168
+ }, Mt = `<svg width="24" height="24" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg">
1138
1169
  <path d="M5.5 10V8.5M5.5 8.5V3.5C5.5 2.94772 5.94772 2.5 6.5 2.5C7.05228 2.5 7.5 2.94772 7.5 3.5V7.5H10.8529C11.7626 7.5 12.5 8.23741 12.5 9.14706V10C12.5 12.4853 10.4853 14.5 8 14.5H7.5C5.29086 14.5 3.5 12.7091 3.5 10.5C3.5 9.39543 4.39543 8.5 5.5 8.5ZM9 5.5H11C12.3807 5.5 13.5 4.38071 13.5 3C13.5 1.61929 12.3807 0.5 11 0.5H4C2.61929 0.5 1.5 1.61929 1.5 3C1.5 4.38071 2.61929 5.5 4 5.5" stroke="currentColor"/>
1139
- </svg>`, Nt = `<svg fill="currentColor" width="120" height="120" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg">
1170
+ </svg>`, It = `<svg fill="currentColor" width="120" height="120" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg">
1140
1171
  <path d="M76.26,37.7H73.57V64.63h2.69A3.75,3.75,0,0,0,80,60.89V41.44A3.75,3.75,0,0,0,76.26,37.7Z"/>
1141
1172
  <path d="M20,41.44V60.89a3.75,3.75,0,0,0,3.74,3.74h2.69V37.7H23.74A3.75,3.75,0,0,0,20,41.44Z"/>
1142
1173
  <path d="M66.46,34.33H33.54a3.75,3.75,0,0,0-3.74,3.74V64.26A3.75,3.75,0,0,0,33.54,68H66.46a3.75,3.75,0,0,0,3.74-3.74V38.07A3.75,3.75,0,0,0,66.46,34.33ZM60.89,61.27H37.77a1.21,1.21,0,0,1-1-1.83l7-12.19a.75.75,0,0,1,1.35,0l4.23,7.26a.81.81,0,0,0,1.35.07l3.44-4.94a.8.8,0,0,1,1.35,0l6.28,10A1,1,0,0,1,60.89,61.27Zm-.6-14.36a3.18,3.18,0,1,1,3.18-3.18A3.18,3.18,0,0,1,60.29,46.9Z"/>
1143
- </svg>`, Mt = `<svg width="126" height="80" viewBox="0 0 126 80" fill="none" xmlns="http://www.w3.org/2000/svg">
1174
+ </svg>`, Nt = `<svg width="126" height="80" viewBox="0 0 126 80" fill="none" xmlns="http://www.w3.org/2000/svg">
1144
1175
  <g clip-path="url(#clip0_10250_27631)">
1145
1176
  <path fill-rule="evenodd" clip-rule="evenodd" d="M0.145174 28C-1.03957 28 -2 28.9604 -2 30.1452V49.8548C-2 51.0396 -1.03957 52 0.145173 52H33.8548C35.0396 52 36 51.0396 36 49.8548V30.1452C36 28.9604 35.0396 28 33.8548 28H0.145174ZM19.4204 37.493C19.2399 37.2145 18.9431 37.05 18.6263 37.05C18.3094 37.05 18.0086 37.2145 17.8321 37.493L14.3426 42.8761L13.2797 41.4797C13.0952 41.2392 12.8184 41.1 12.5296 41.1C12.2408 41.1 11.9601 41.2392 11.7796 41.4797L9.21258 44.8547C8.97995 45.1584 8.93583 45.5761 9.09626 45.9262C9.2567 46.2764 9.59362 46.5 9.96263 46.5H23.4394C23.7964 46.5 24.1253 46.2933 24.2897 45.96C24.4542 45.6267 24.4341 45.2259 24.2336 44.918L19.4204 37.493ZM10.9253 37.05C11.4359 37.05 11.9256 36.8366 12.2866 36.4569C12.6477 36.0771 12.8505 35.5621 12.8505 35.025C12.8505 34.4879 12.6477 33.9729 12.2866 33.5931C11.9256 33.2134 11.4359 33 10.9253 33C10.4146 33 9.92495 33.2134 9.56389 33.5931C9.20284 33.9729 9 34.4879 9 35.025C9 35.5621 9.20284 36.0771 9.56389 36.4569C9.92495 36.8366 10.4146 37.05 10.9253 37.05Z" fill="currentColor"></path>
1146
1177
  <path fill-rule="evenodd" clip-rule="evenodd" d="M0.145174 28C-1.03957 28 -2 28.9604 -2 30.1452V49.8548C-2 51.0396 -1.03957 52 0.145173 52H33.8548C35.0396 52 36 51.0396 36 49.8548V30.1452C36 28.9604 35.0396 28 33.8548 28H0.145174ZM19.4204 37.493C19.2399 37.2145 18.9431 37.05 18.6263 37.05C18.3094 37.05 18.0086 37.2145 17.8321 37.493L14.3426 42.8761L13.2797 41.4797C13.0952 41.2392 12.8184 41.1 12.5296 41.1C12.2408 41.1 11.9601 41.2392 11.7796 41.4797L9.21258 44.8547C8.97995 45.1584 8.93583 45.5761 9.09626 45.9262C9.2567 46.2764 9.59362 46.5 9.96263 46.5H23.4394C23.7964 46.5 24.1253 46.2933 24.2897 45.96C24.4542 45.6267 24.4341 45.2259 24.2336 44.918L19.4204 37.493ZM10.9253 37.05C11.4359 37.05 11.9256 36.8366 12.2866 36.4569C12.6477 36.0771 12.8505 35.5621 12.8505 35.025C12.8505 34.4879 12.6477 33.9729 12.2866 33.5931C11.9256 33.2134 11.4359 33 10.9253 33C10.4146 33 9.92495 33.2134 9.56389 33.5931C9.20284 33.9729 9 34.4879 9 35.025C9 35.5621 9.20284 36.0771 9.56389 36.4569C9.92495 36.8366 10.4146 37.05 10.9253 37.05Z" fill="url(#paint0_linear_10250_27631)"></path>
@@ -1158,41 +1189,41 @@ const S2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
1158
1189
  <path d="M0 3C0 1.34315 1.34315 0 3 0H123C124.657 0 126 1.34315 126 3V77C126 78.6569 124.657 80 123 80H3C1.34315 80 0 78.6569 0 77V3Z" fill="white"></path>
1159
1190
  </clipPath>
1160
1191
  </defs>
1161
- </svg>`, Lt = `<svg width="96" height="48" viewBox="0 0 96 48" fill="none" xmlns="http://www.w3.org/2000/svg">
1192
+ </svg>`, St = `<svg width="96" height="48" viewBox="0 0 96 48" fill="none" xmlns="http://www.w3.org/2000/svg">
1162
1193
  <rect x="8" y="30" width="32" height="2" fill="currentColor"></rect>
1163
1194
  <rect x="8" y="12" width="32" height="8" rx="4" fill="currentColor"></rect>
1164
1195
  <rect x="56" y="12" width="32" height="8" rx="4" fill="currentColor"></rect>
1165
- </svg>`, It = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
1196
+ </svg>`, Et = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
1166
1197
  <path d="M15.964 6.03575C17.345 4.65475 19.583 4.65475 20.964 6.03575V6.03575C22.345 7.41675 22.345 9.65475 20.964 11.0357L15.085 16.9148C13.704 18.2958 11.466 18.2958 10.085 16.9148V16.9148C8.70401 15.5338 8.70401 13.2958 10.085 11.9148L10.964 11.0357" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
1167
1198
  <path d="M8.036 18.9636C6.655 20.3446 4.417 20.3446 3.036 18.9636V18.9636C1.655 17.5826 1.655 15.3446 3.036 13.9636L8.915 8.08458C10.296 6.70358 12.534 6.70358 13.915 8.08458V8.08458C15.296 9.46558 15.296 11.7036 13.915 13.0846L13 13.9996" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
1168
1199
  </svg>
1169
- `, Et = {
1200
+ `, Tt = {
1170
1201
  name: "Interactive",
1171
1202
  templates: [
1172
1203
  {
1173
1204
  name: "Button",
1174
1205
  template: /* @__PURE__ */ r(
1175
- C,
1206
+ g,
1176
1207
  {
1177
1208
  dangerouslySetInnerHTML: {
1178
1209
  __html: "Button"
1179
1210
  },
1180
- is: B2
1211
+ is: H2
1181
1212
  }
1182
1213
  ),
1183
- icon: { source: yt, height: 32 }
1214
+ icon: { source: Mt, height: 32 }
1184
1215
  },
1185
1216
  {
1186
1217
  name: "Link",
1187
- template: /* @__PURE__ */ r(C, { is: Z2 }),
1188
- icon: { source: It, height: 32 }
1218
+ template: /* @__PURE__ */ r(g, { is: D2 }),
1219
+ icon: { source: Et, height: 32 }
1189
1220
  },
1190
1221
  {
1191
1222
  name: "Carousel",
1192
1223
  template: /* @__PURE__ */ r(
1193
- C,
1224
+ g,
1194
1225
  {
1195
- is: p2,
1226
+ is: g2,
1196
1227
  slidesPerView: 2,
1197
1228
  spaceBetween: 8,
1198
1229
  md: {
@@ -1201,33 +1232,33 @@ const S2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
1201
1232
  lg: {
1202
1233
  slidesPerView: 4
1203
1234
  },
1204
- children: Z(6).map((e) => /* @__PURE__ */ r(C, { is: z2, canvas: !0 }, e))
1235
+ children: D(6).map((e) => /* @__PURE__ */ r(g, { is: z2, canvas: !0 }, e))
1205
1236
  }
1206
1237
  ),
1207
- icon: { source: Nt, height: 32 }
1238
+ icon: { source: It, height: 32 }
1208
1239
  },
1209
1240
  {
1210
1241
  name: "Marquee",
1211
- template: /* @__PURE__ */ r(C, { is: f2, children: Z(10).map((e) => /* @__PURE__ */ r(C, { canvas: !0, is: U2 }, e)) }),
1212
- icon: { source: Mt, height: 32 }
1242
+ template: /* @__PURE__ */ r(g, { is: f2, children: D(10).map((e) => /* @__PURE__ */ r(g, { canvas: !0, is: F2 }, e)) }),
1243
+ icon: { source: Nt, height: 32 }
1213
1244
  },
1214
1245
  {
1215
1246
  name: "Tabs",
1216
- template: /* @__PURE__ */ g(
1217
- C,
1247
+ template: /* @__PURE__ */ m(
1248
+ g,
1218
1249
  {
1219
- is: $2,
1250
+ is: Z2,
1220
1251
  sx: {
1221
1252
  width: "100%"
1222
1253
  },
1223
1254
  children: [
1224
- /* @__PURE__ */ r(C, { is: fe, children: Z(3).map((e) => {
1255
+ /* @__PURE__ */ r(g, { is: fe, children: D(3).map((e) => {
1225
1256
  const t = `Tab ${e + 1}`;
1226
1257
  return /* @__PURE__ */ r(
1227
- C,
1258
+ g,
1228
1259
  {
1229
1260
  canvas: !0,
1230
- is: ge,
1261
+ is: we,
1231
1262
  dangerouslySetInnerHTML: {
1232
1263
  __html: t
1233
1264
  }
@@ -1235,28 +1266,28 @@ const S2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
1235
1266
  e
1236
1267
  );
1237
1268
  }) }),
1238
- /* @__PURE__ */ r(C, { is: me, children: Z(3).map((e) => /* @__PURE__ */ r(C, { canvas: !0, is: ke }, e)) })
1269
+ /* @__PURE__ */ r(g, { is: me, children: D(3).map((e) => /* @__PURE__ */ r(g, { canvas: !0, is: ke }, e)) })
1239
1270
  ]
1240
1271
  }
1241
1272
  ),
1242
- icon: { source: Lt, height: 40 }
1273
+ icon: { source: St, height: 40 }
1243
1274
  }
1244
1275
  ]
1245
- }, St = `<svg fill="currentColor" width="24" height="24" viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg">
1276
+ }, Rt = `<svg fill="currentColor" width="24" height="24" viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg">
1246
1277
  <title>h</title>
1247
1278
  <path d="M25.264 3.993h-0.928c-0.442 0-0.8 0.358-0.801 0.8v9.952h-15.038v-9.952c-0-0.442-0.358-0.8-0.8-0.8h-0.928c-0.442 0-0.8 0.358-0.8 0.8v22.4c0 0.442 0.358 0.8 0.8 0.801h0.928c0.442-0.001 0.8-0.359 0.8-0.801v0-9.952h15.038v9.952c0.001 0.442 0.359 0.8 0.801 0.801h0.928c0.442-0.001 0.8-0.359 0.801-0.801v-22.4c-0.001-0.442-0.359-0.8-0.801-0.8h-0z"/>
1248
1279
  </svg>
1249
- `, Tt = `<svg fill="currentColor" width="24" height="24" viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg">
1280
+ `, Vt = `<svg fill="currentColor" width="24" height="24" viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg">
1250
1281
  <title>p</title>
1251
1282
  <path d="M24.223 6.397c-1.592-1.495-3.741-2.413-6.104-2.413-0.137 0-0.274 0.003-0.41 0.009l0.019-0.001h-8.416c-0.442 0-0.8 0.358-0.8 0.8v22.4c0 0.442 0.358 0.8 0.8 0.801h0.928c0.442-0.001 0.8-0.359 0.8-0.801v0-6.561h6.688c0.117 0.005 0.253 0.009 0.391 0.009 2.363 0 4.512-0.918 6.108-2.417l-0.005 0.004c1.521-1.457 2.466-3.504 2.466-5.772 0-0.050-0-0.101-0.001-0.151l0 0.008c0.001-0.042 0.001-0.093 0.001-0.143 0-2.268-0.945-4.316-2.463-5.771l-0.003-0.003zM11.040 6.521h6.624c0.12-0.008 0.259-0.012 0.4-0.012 1.678 0 3.208 0.636 4.361 1.68l-0.006-0.005c1.054 0.998 1.709 2.407 1.709 3.969 0 0.056-0.001 0.112-0.003 0.168l0-0.008c0.001 0.047 0.002 0.101 0.002 0.156 0 1.569-0.656 2.985-1.709 3.988l-0.002 0.002c-1.145 1.047-2.676 1.689-4.357 1.689-0.14 0-0.278-0.004-0.416-0.013l0.019 0.001h-6.624z"/>
1252
1283
  </svg>
1253
- `, Vt = {
1284
+ `, Bt = {
1254
1285
  name: "Text",
1255
1286
  templates: [
1256
1287
  {
1257
1288
  name: "Heading",
1258
1289
  template: /* @__PURE__ */ r(
1259
- C,
1290
+ g,
1260
1291
  {
1261
1292
  dangerouslySetInnerHTML: {
1262
1293
  __html: "Your heading text goes here"
@@ -1264,15 +1295,15 @@ const S2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
1264
1295
  as: "h2",
1265
1296
  sizeVariant: "4xl",
1266
1297
  md: { sizeVariant: "5xl" },
1267
- is: j2
1298
+ is: V2
1268
1299
  }
1269
1300
  ),
1270
- icon: { source: St, height: 32 }
1301
+ icon: { source: Rt, height: 32 }
1271
1302
  },
1272
1303
  {
1273
1304
  name: "Paragraph",
1274
1305
  template: /* @__PURE__ */ r(
1275
- C,
1306
+ g,
1276
1307
  {
1277
1308
  dangerouslySetInnerHTML: {
1278
1309
  __html: "Replace this text with your content"
@@ -1280,7 +1311,7 @@ const S2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
1280
1311
  is: r2
1281
1312
  }
1282
1313
  ),
1283
- icon: { source: Tt, height: 32 }
1314
+ icon: { source: Vt, height: 32 }
1284
1315
  }
1285
1316
  ]
1286
1317
  }, jt = `<svg width="96" height="48" viewBox="0 0 96 48" fill="none" xmlns="http://www.w3.org/2000/svg">
@@ -1292,13 +1323,13 @@ const S2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
1292
1323
  {
1293
1324
  name: "Countdown timer",
1294
1325
  template: /* @__PURE__ */ r(
1295
- C,
1326
+ g,
1296
1327
  {
1297
1328
  is: G2,
1298
1329
  omit: {
1299
1330
  days: !0
1300
1331
  },
1301
- date: b1().add(1, "week").toDate(),
1332
+ date: L1().add(1, "week").toDate(),
1302
1333
  sx: {
1303
1334
  justifyContent: "center",
1304
1335
  columnGap: 8,
@@ -1310,7 +1341,7 @@ const S2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
1310
1341
  },
1311
1342
  unitItemProps: {
1312
1343
  sx: {
1313
- backgroundColor: N2("neutral.100"),
1344
+ backgroundColor: L2("neutral.100"),
1314
1345
  borderTopLeftRadius: 8,
1315
1346
  borderTopRightRadius: 8,
1316
1347
  borderBottomLeftRadius: 8,
@@ -1332,7 +1363,7 @@ const S2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
1332
1363
  },
1333
1364
  captionProps: {
1334
1365
  sx: {
1335
- color: N2("neutral.500")
1366
+ color: L2("neutral.500")
1336
1367
  }
1337
1368
  },
1338
1369
  units: [
@@ -1358,129 +1389,212 @@ const S2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
1358
1389
  icon: { source: jt, height: 48 }
1359
1390
  }
1360
1391
  ]
1361
- }, Rt = [
1362
- Vt,
1363
- wt,
1364
- bt,
1365
- Et,
1366
- mt,
1392
+ }, Ht = [
1393
+ Bt,
1367
1394
  gt,
1395
+ Lt,
1396
+ Tt,
1397
+ vt,
1398
+ kt,
1368
1399
  At
1369
- ], Ht = '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="7" height="7"/><rect x="14" y="3" width="7" height="7"/><rect x="3" y="14" width="7" height="7"/><rect x="14" y="14" width="7" height="7"/></svg>', Bt = {
1400
+ ], _t = '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="7" height="7"/><rect x="14" y="3" width="7" height="7"/><rect x="3" y="14" width="7" height="7"/><rect x="14" y="14" width="7" height="7"/></svg>', Pt = {
1370
1401
  name: "Basics",
1371
- icon: { source: Ht },
1372
- renderer: () => /* @__PURE__ */ r(Pt, { elementGroups: Rt })
1373
- }, _t = ({ groups: e }) => {
1374
- const t = [Bt, ...e ?? []];
1375
- return /* @__PURE__ */ g("div", { className: "tw:flex tw:flex-col tw:h-full", children: [
1376
- /* @__PURE__ */ r("div", { className: "tw:flex tw:items-center tw:p-2 tw:gap-3", children: /* @__PURE__ */ r(J2, { fullWidth: !0, placeholder: "Search...", prefix: /* @__PURE__ */ r(E, { source: lt }) }) }),
1377
- /* @__PURE__ */ r(re, { className: "tw:flex-1 tw:py-2 tw:border-t tw:border-ic-white-1s", children: t.map((o, n) => /* @__PURE__ */ r($t, { group: o }, n)) })
1402
+ icon: { source: _t },
1403
+ renderer: () => /* @__PURE__ */ r(Zt, { elementGroups: Ht })
1404
+ }, Dt = ({ groups: e }) => {
1405
+ const t = [Pt, ...e ?? []];
1406
+ return /* @__PURE__ */ m("div", { css: { display: "flex", flexDirection: "column", height: "100%" }, children: [
1407
+ /* @__PURE__ */ r("div", { css: { display: "flex", padding: 8, alignItems: "center", gap: 12 }, children: /* @__PURE__ */ r(J2, { fullWidth: !0, placeholder: "Search...", prefix: /* @__PURE__ */ r(E, { source: ht }) }) }),
1408
+ /* @__PURE__ */ r(
1409
+ re,
1410
+ {
1411
+ css: {
1412
+ paddingBlock: 8,
1413
+ borderTopWidth: 1,
1414
+ borderTopStyle: "solid",
1415
+ borderColor: u.palette.white["1s"],
1416
+ flex: 1
1417
+ },
1418
+ children: t.map((o, n) => /* @__PURE__ */ r(Ot, { group: o }, n))
1419
+ }
1420
+ )
1378
1421
  ] });
1379
- }, Pt = ({ elementGroups: e }) => /* @__PURE__ */ r("div", { className: "tw:flex tw:flex-col tw:gap-2", children: e.map((t, o) => /* @__PURE__ */ r(Zt, { group: t }, o)) }), Zt = ({ group: e }) => {
1380
- const [t, o] = te(!0), { actions: n, connectors: i } = $();
1381
- return /* @__PURE__ */ g("div", { className: "tw:flex tw:flex-col tw:text-sm", children: [
1382
- /* @__PURE__ */ r(K2, { onClick: o, className: "tw:bg-transparent tw:px-0", children: /* @__PURE__ */ g("div", { className: "tw:flex tw:items-center tw:justify-between tw:flex-1 tw:text-sm", children: [
1383
- e.name,
1384
- /* @__PURE__ */ r(
1385
- E,
1386
- {
1387
- source: ne,
1388
- className: B("tw:transition-transform", {
1389
- "tw:rotate-180": !t
1390
- })
1391
- }
1392
- )
1393
- ] }) }),
1394
- /* @__PURE__ */ r(Je, { open: t, children: /* @__PURE__ */ r("div", { className: "tw:py-2 tw:grid tw:grid-cols-2 tw:gap-4", children: e.templates?.map((s, u) => /* @__PURE__ */ g("div", { className: "tw:space-y-1", children: [
1422
+ }, Zt = ({ elementGroups: e }) => /* @__PURE__ */ r("div", { css: { display: "flex", flexDirection: "column", gap: 8 }, children: e.map((t, o) => /* @__PURE__ */ r($t, { group: t }, o)) }), $t = ({ group: e }) => {
1423
+ const [t, o] = te(!0), { actions: n, connectors: i } = Z();
1424
+ return /* @__PURE__ */ m("div", { css: { display: "flex", flexDirection: "column", ...u.text.sm }, children: [
1425
+ /* @__PURE__ */ r(K2, { onClick: o, css: { paddingInline: 0, backgroundColor: "transparent" }, children: /* @__PURE__ */ m(
1426
+ "div",
1427
+ {
1428
+ css: { display: "flex", alignItems: "center", justifyContent: "space-between", flex: 1, ...u.text.sm },
1429
+ children: [
1430
+ e.name,
1431
+ /* @__PURE__ */ r(
1432
+ E,
1433
+ {
1434
+ source: ne,
1435
+ css: [{ transition: "transform" }, !t && { transform: "rotate(180deg)" }]
1436
+ }
1437
+ )
1438
+ ]
1439
+ }
1440
+ ) }),
1441
+ /* @__PURE__ */ r(e1, { open: t, children: /* @__PURE__ */ r("div", { css: { display: "grid", paddingBlock: 8, gap: 16, gridTemplateColumns: "repeat(2, minmax(0, 1fr))" }, children: e.templates?.map((s, p) => /* @__PURE__ */ m("div", { css: { display: "flex", flexDirection: "column", gap: 4 }, children: [
1395
1442
  /* @__PURE__ */ r(
1396
1443
  "div",
1397
1444
  {
1398
- className: B(
1399
- "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",
1400
- "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",
1401
- "tw:after:absolute tw:after:inset-0 tw:after:content-empty tw:after:bg-ic-white-1s"
1402
- ),
1445
+ css: {
1446
+ position: "relative",
1447
+ display: "flex",
1448
+ padding: 4,
1449
+ borderRadius: 8,
1450
+ backgroundColor: u.palette.ink["6s"],
1451
+ color: u.palette.white["5s"],
1452
+ pointerEvents: "auto",
1453
+ overflow: "hidden",
1454
+ flexDirection: "column",
1455
+ gap: 4,
1456
+ alignItems: "center",
1457
+ justifyContent: "center",
1458
+ cursor: "grabbing",
1459
+ opacity: 1,
1460
+ aspectRatio: "16 / 9",
1461
+ transition: "transform",
1462
+ "&:hover": { transform: "scale(1.05)" },
1463
+ "&::after": {
1464
+ content: '""',
1465
+ position: "absolute",
1466
+ inset: 0,
1467
+ backgroundColor: u.palette.white["1s"]
1468
+ }
1469
+ },
1403
1470
  ref: (c) => {
1404
1471
  c && i.create(c, s.template, {
1405
- onCreate(w) {
1406
- (typeof s.autoFocus == "function" ? s.autoFocus(w) : s.autoFocus) && n.selectNode(w.rootNodeId), s.onCreate?.(w);
1472
+ onCreate(C) {
1473
+ (typeof s.autoFocus == "function" ? s.autoFocus(C) : s.autoFocus) && n.selectNode(C.rootNodeId), s.onCreate?.(C);
1407
1474
  }
1408
1475
  });
1409
1476
  },
1410
- children: s.icon && /* @__PURE__ */ r(e1, { width: void 0, height: void 0, ...s.icon })
1477
+ children: s.icon && /* @__PURE__ */ r(t1, { width: void 0, height: void 0, ...s.icon })
1411
1478
  }
1412
1479
  ),
1413
- /* @__PURE__ */ r("p", { className: "tw:text-xs tw:mx-auto tw:text-center", children: s.name })
1414
- ] }, u)) }) })
1480
+ /* @__PURE__ */ r("p", { css: { marginInline: "auto", textAlign: "center", ...r1.xs }, children: s.name })
1481
+ ] }, p)) }) })
1415
1482
  ] });
1416
- }, $t = ({ group: e }) => {
1417
- const [t, o] = G(!1), { refs: n, floatingStyles: i, context: s } = o1({
1483
+ }, Ot = ({ group: e }) => {
1484
+ const [t, o] = G(!1), { refs: n, floatingStyles: i, context: s } = d1({
1418
1485
  open: t,
1419
1486
  onOpenChange: o,
1420
1487
  placement: "right-start",
1421
1488
  middleware: [
1422
- i1(),
1423
- c1({
1424
- apply({ elements: k }) {
1489
+ h1(),
1490
+ u1({
1491
+ apply({ elements: v }) {
1425
1492
  const h = {
1426
1493
  zIndex: `${Qe}`,
1427
- height: `${k.reference.getBoundingClientRect().height}px`
1494
+ height: `${v.reference.getBoundingClientRect().height}px`
1428
1495
  };
1429
- Object.assign(k.floating.style, h);
1496
+ Object.assign(v.floating.style, h);
1430
1497
  }
1431
1498
  })
1432
1499
  ],
1433
- whileElementsMounted: s1
1500
+ whileElementsMounted: l1
1434
1501
  });
1435
- W(() => {
1502
+ U(() => {
1436
1503
  n.setPositionReference(document.querySelector("aside"));
1437
1504
  }, [n]);
1438
- const u = a1(s, { move: !1, handleClose: l1() }), c = d1(s), w = h1(s), x = u1(s), { getReferenceProps: l, getFloatingProps: a } = w1([u, c, w, x]), m = e.renderer;
1439
- return /* @__PURE__ */ g(n2, { children: [
1440
- /* @__PURE__ */ g(
1505
+ const p = p1(s, { move: !1, handleClose: C1() }), c = g1(s), C = f1(s), b = w1(s), { getReferenceProps: d, getFloatingProps: a } = m1([p, c, C, b]), k = e.renderer;
1506
+ return /* @__PURE__ */ m(n2, { children: [
1507
+ /* @__PURE__ */ m(
1441
1508
  "button",
1442
1509
  {
1443
- className: B(
1444
- "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",
1445
- "tw:hover:text-ic-white-6s tw:hover:bg-ic-white-1s tw:hover:font-medium"
1446
- ),
1447
- ...l(),
1510
+ css: {
1511
+ display: "flex",
1512
+ padding: 8,
1513
+ alignItems: "center",
1514
+ gap: 8,
1515
+ borderRadius: 8,
1516
+ textAlign: "left",
1517
+ width: "100%",
1518
+ color: u.palette.white["5s"],
1519
+ "&:hover": {
1520
+ color: u.palette.white["6s"],
1521
+ backgroundColor: u.palette.white["1s"],
1522
+ fontWeight: 500
1523
+ }
1524
+ },
1525
+ ...d(),
1448
1526
  ref: n.setReference,
1449
1527
  children: [
1450
- e.icon && /* @__PURE__ */ r("div", { className: "tw:bg-ic-white-1s tw:p-1.5 tw:rounded-lg", children: /* @__PURE__ */ r(E, { ...e.icon }) }),
1451
- /* @__PURE__ */ r("span", { className: "tw:flex-1 tw:truncate", children: e.name }),
1452
- /* @__PURE__ */ r(E, { className: "tw:rotate-180", source: dt })
1528
+ e.icon && /* @__PURE__ */ r("div", { css: { padding: 6, borderRadius: 8, backgroundColor: u.palette.white["1s"] }, children: /* @__PURE__ */ r(E, { ...e.icon }) }),
1529
+ /* @__PURE__ */ r(
1530
+ "span",
1531
+ {
1532
+ css: {
1533
+ overflow: "hidden",
1534
+ textOverflow: "ellipsis",
1535
+ whiteSpace: "nowrap",
1536
+ flex: 1
1537
+ },
1538
+ children: e.name
1539
+ }
1540
+ ),
1541
+ /* @__PURE__ */ r(E, { css: { transform: "rotate(180deg)" }, source: ut })
1453
1542
  ]
1454
1543
  }
1455
1544
  ),
1456
- t && /* @__PURE__ */ r(ee, { children: /* @__PURE__ */ r("div", { style: i, ...a(), ref: n.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: [
1457
- /* @__PURE__ */ r("div", { className: "tw:h-12 tw:px-2 tw:flex tw:items-center", children: /* @__PURE__ */ r("h6", { className: "tw:font-medium", children: e.name }) }),
1458
- /* @__PURE__ */ r(re, { className: "tw:flex-1 tw:px-3", children: m ? /* @__PURE__ */ r(m, {}) : /* @__PURE__ */ r("div", { className: "tw:flex tw:flex-col tw:gap-4", children: e.templates?.map((k, h) => /* @__PURE__ */ m1(Dt, { ...k, key: h })) }) })
1459
- ] }) }) })
1545
+ t && /* @__PURE__ */ r(ee, { children: /* @__PURE__ */ r("div", { style: i, ...a(), ref: n.setFloating, children: /* @__PURE__ */ m(
1546
+ "div",
1547
+ {
1548
+ css: {
1549
+ display: "flex",
1550
+ flexDirection: "column",
1551
+ height: "100%",
1552
+ backgroundColor: u.palette.ink["6s"],
1553
+ color: u.palette.white["6s"],
1554
+ borderLeftWidth: 1,
1555
+ borderLeftStyle: "solid",
1556
+ borderTopWidth: 1,
1557
+ borderTopStyle: "solid",
1558
+ borderColor: u.palette.white["2s"],
1559
+ ...u.text.sm
1560
+ },
1561
+ children: [
1562
+ /* @__PURE__ */ r("div", { css: { display: "flex", paddingInline: 8, alignItems: "center", height: 48 }, children: /* @__PURE__ */ r("h6", { css: { fontWeight: 500 }, children: e.name }) }),
1563
+ /* @__PURE__ */ r(re, { css: { paddingInline: 12, flex: 1 }, children: k ? /* @__PURE__ */ r(k, {}) : /* @__PURE__ */ r("div", { css: { display: "flex", flexDirection: "column", gap: 16 }, children: e.templates?.map((v, h) => /* @__PURE__ */ a1(Gt, { ...v, key: h })) }) })
1564
+ ]
1565
+ }
1566
+ ) }) })
1460
1567
  ] });
1461
- }, Dt = ({ template: e, autoFocus: t = !0, onCreate: o }) => {
1462
- const [, n] = G(!1), i = s2(), { actions: s, connectors: u, resolver: c, query: w } = $((l) => ({
1463
- resolver: l.options.resolver
1464
- })), x = G(() => {
1465
- const l = typeof e == "function" ? e() : e;
1568
+ }, Gt = ({ template: e, autoFocus: t = !0, onCreate: o }) => {
1569
+ const [, n] = G(!1), i = s2(), { actions: s, connectors: p, resolver: c, query: C } = Z((d) => ({
1570
+ resolver: d.options.resolver
1571
+ })), b = G(() => {
1572
+ const d = typeof e == "function" ? e() : e;
1466
1573
  let a;
1467
- "rootNodeId" in l ? a = l : a = w.parseReactElement(l).toNodeTree();
1468
- const { rootNodeId: m, nodes: k } = a, h = {};
1469
- return Object.entries(k).forEach(([d, M]) => {
1470
- const v = be(M.data, c), y = d === m ? D : d;
1471
- h[y] = {
1472
- ...v,
1473
- parent: v.parent === m ? D : v.parent,
1474
- nodes: v.nodes?.map((T) => T === m ? D : T)
1574
+ "rootNodeId" in d ? a = d : a = C.parseReactElement(d).toNodeTree();
1575
+ const { rootNodeId: k, nodes: v } = a, h = {};
1576
+ return Object.entries(v).forEach(([l, I]) => {
1577
+ const x = be(I.data, c), L = l === k ? $ : l;
1578
+ h[L] = {
1579
+ ...x,
1580
+ parent: x.parent === k ? $ : x.parent,
1581
+ nodes: x.nodes?.map((R) => R === k ? $ : R)
1475
1582
  };
1476
1583
  }), h;
1477
1584
  })[0];
1478
1585
  return /* @__PURE__ */ r(
1479
1586
  "div",
1480
1587
  {
1481
- className: "tw:cursor-grab tw:border tw:border-ic-white-1s tw:rounded-lg tw:overflow-hidden",
1482
- ref: (l) => {
1483
- l && u.create(l, e, {
1588
+ css: {
1589
+ borderRadius: 8,
1590
+ overflow: "hidden",
1591
+ cursor: "grab",
1592
+ borderStyle: "solid",
1593
+ borderWidth: 1,
1594
+ borderColor: u.palette.white["1s"]
1595
+ },
1596
+ ref: (d) => {
1597
+ d && p.create(d, e, {
1484
1598
  onCreate(a) {
1485
1599
  (typeof t == "function" ? t(a) : t) && s.selectNode(a.rootNodeId), o?.(a);
1486
1600
  }
@@ -1488,21 +1602,34 @@ const S2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
1488
1602
  },
1489
1603
  onDragStart: () => n(!0),
1490
1604
  onDragEnd: () => n(!1),
1491
- children: /* @__PURE__ */ r("div", { className: "tw:relative tw:aspect-video tw:rounded-lg tw:overflow-hidden tw:w-60 tw:pointer-events-none", children: /* @__PURE__ */ r("div", { className: "tw:absolute tw:inset-0", children: /* @__PURE__ */ r(
1492
- he,
1605
+ children: /* @__PURE__ */ r(
1606
+ "div",
1493
1607
  {
1494
- containerProps: {
1495
- style: {
1496
- backgroundColor: i.theme.palette.background.default
1497
- }
1608
+ css: {
1609
+ position: "relative",
1610
+ borderRadius: 8,
1611
+ overflow: "hidden",
1612
+ pointerEvents: "none",
1613
+ width: 240,
1614
+ aspectRatio: "16 / 9"
1498
1615
  },
1499
- viewport: { width: Xe.md.minWidth },
1500
- children: /* @__PURE__ */ r(Q2, { resolver: c, children: /* @__PURE__ */ r(X2, { data: x }) })
1616
+ children: /* @__PURE__ */ r("div", { css: { position: "absolute", inset: 0 }, children: /* @__PURE__ */ r(
1617
+ he,
1618
+ {
1619
+ containerProps: {
1620
+ style: {
1621
+ backgroundColor: i.theme.palette.background.default
1622
+ }
1623
+ },
1624
+ viewport: { width: Xe.md.minWidth },
1625
+ children: /* @__PURE__ */ r(Q2, { resolver: c, children: /* @__PURE__ */ r(X2, { data: b }) })
1626
+ }
1627
+ ) })
1501
1628
  }
1502
- ) }) })
1629
+ )
1503
1630
  }
1504
1631
  );
1505
- }, Ot = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
1632
+ }, Wt = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
1506
1633
  <path d="M12.5 2H9.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
1507
1634
  <path d="M2 9.5V12.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
1508
1635
  <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"/>
@@ -1513,7 +1640,7 @@ const S2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
1513
1640
  <path d="M2 17V18C2 19.105 2.895 20 4 20H5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
1514
1641
  <path d="M20 5V4C20 2.895 19.105 2 18 2H17" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
1515
1642
  </svg>
1516
- `, Gt = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
1643
+ `, zt = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
1517
1644
  <circle cx="6.49771" cy="5.49762" r="2.50104" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
1518
1645
  <circle cx="6.49771" cy="18.503" r="2.50104" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
1519
1646
  <path d="M6.49771 7.99854V16.0019" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
@@ -1521,204 +1648,307 @@ const S2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
1521
1648
  <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"/>
1522
1649
  </svg>
1523
1650
  `, Ft = (e) => {
1524
- const { query: t, actions: o } = $(), {
1651
+ const { query: t, actions: o } = Z(), {
1525
1652
  id: n,
1526
1653
  expanded: i,
1527
1654
  actions: s,
1528
- displayName: u,
1655
+ displayName: p,
1529
1656
  children: c,
1530
- depth: w
1531
- } = N1((k) => ({
1532
- expanded: k.expanded,
1533
- displayName: W2(t.node(k.id).get())
1534
- })), { selected: x, selectable: l } = $((k, h) => {
1535
- const d = h.node(n).get();
1657
+ depth: C
1658
+ } = I1((v) => ({
1659
+ expanded: v.expanded,
1660
+ displayName: U2(t.node(v.id).get())
1661
+ })), { selected: b, selectable: d } = Z((v, h) => {
1662
+ const l = h.node(n).get();
1536
1663
  return {
1537
1664
  selected: h.getEvent("selected").contains(n),
1538
- nodeDOM: d.dom,
1539
- selectable: Me(d)
1665
+ nodeDOM: l.dom,
1666
+ selectable: Me(l)
1540
1667
  };
1541
1668
  });
1542
- W(() => {
1543
- n === D && s.setExpandedState(!0);
1544
- }, [s, n]), W(() => {
1669
+ U(() => {
1670
+ n === $ && s.setExpandedState(!0);
1671
+ }, [s, n]), U(() => {
1545
1672
  if (c.length === 0) return;
1546
1673
  c.some((h) => {
1547
- const d = t.getEvent("selected").all();
1548
- return d.includes(h) ? !0 : t.node(h).descendants(!0).some((v) => d.includes(v));
1674
+ const l = t.getEvent("selected").all();
1675
+ return l.includes(h) ? !0 : t.node(h).descendants(!0).some((x) => l.includes(x));
1549
1676
  }) && s.setExpandedState(!0);
1550
1677
  }, [c, s, t]);
1551
1678
  const a = () => {
1552
1679
  o.selectNode(n);
1553
- }, m = (k) => {
1554
- k.stopPropagation(), s.toggleLayer();
1680
+ }, k = (v) => {
1681
+ v.stopPropagation(), s.toggleLayer();
1555
1682
  };
1556
- return /* @__PURE__ */ g(
1683
+ return /* @__PURE__ */ m(
1557
1684
  "div",
1558
1685
  {
1559
- className: "tw:py-1",
1686
+ css: { paddingBlock: 4 },
1560
1687
  children: [
1561
- /* @__PURE__ */ g(
1688
+ /* @__PURE__ */ m(
1562
1689
  "div",
1563
1690
  {
1564
1691
  onClick: a,
1565
1692
  style: {
1566
- paddingLeft: Math.max(0, w - 1) * 16
1693
+ paddingLeft: Math.max(0, C - 1) * 16
1567
1694
  },
1568
- className: B(
1569
- "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",
1695
+ css: [
1570
1696
  {
1571
- hidden: n === D,
1572
- "tw:bg-ic-black-7s": x,
1573
- "tw:pointer-events-none": !l
1574
- }
1575
- ),
1697
+ display: "flex",
1698
+ paddingRight: 8,
1699
+ paddingBlock: 4,
1700
+ alignItems: "center",
1701
+ gap: 2,
1702
+ borderWidth: 1,
1703
+ borderStyle: "solid",
1704
+ borderColor: u.palette.white["1s"],
1705
+ cursor: "pointer",
1706
+ borderRadius: 4,
1707
+ "&:hover": { backgroundColor: u.palette.white["1s"] }
1708
+ },
1709
+ !d && { pointerEvents: "none" },
1710
+ b && { backgroundColor: u.palette.black["7s"] },
1711
+ n === $ && { display: "none" }
1712
+ ],
1576
1713
  children: [
1577
- c.length ? /* @__PURE__ */ r(A, { className: "tw:pointer-events-auto", onClick: m, children: /* @__PURE__ */ r(
1714
+ c.length ? /* @__PURE__ */ r(j, { css: { pointerEvents: "auto" }, onClick: k, children: /* @__PURE__ */ r(
1578
1715
  E,
1579
1716
  {
1580
- className: B("tw:transition-transform tw:-rotate-90", {
1581
- "tw:rotate-0": i
1582
- }),
1717
+ css: [
1718
+ { transition: "transform", transform: "rotate(-90deg)" },
1719
+ i && { transform: "rotate(0deg)" }
1720
+ ],
1583
1721
  size: 16,
1584
1722
  source: ne
1585
1723
  }
1586
- ) }) : /* @__PURE__ */ r("div", { className: "tw:p-1", children: /* @__PURE__ */ r(E, { size: 16, source: Gt }) }),
1724
+ ) }) : /* @__PURE__ */ r("div", { css: { padding: 4 }, children: /* @__PURE__ */ r(E, { size: 16, source: zt }) }),
1587
1725
  /* @__PURE__ */ r(
1588
1726
  "span",
1589
1727
  {
1590
- className: B("tw:flex-1 tw:truncate", {
1591
- "tw:text-ic-white-3s": !l
1592
- }),
1593
- children: u
1728
+ css: [
1729
+ {
1730
+ overflow: "hidden",
1731
+ textOverflow: "ellipsis",
1732
+ whiteSpace: "nowrap",
1733
+ flex: 1
1734
+ },
1735
+ !d && { color: u.palette.white["3s"] }
1736
+ ],
1737
+ children: p
1594
1738
  }
1595
1739
  )
1596
1740
  ]
1597
1741
  }
1598
1742
  ),
1599
- /* @__PURE__ */ r("div", { className: "tw:space-y-1", children: e.children })
1743
+ /* @__PURE__ */ r(
1744
+ "div",
1745
+ {
1746
+ css: {
1747
+ display: "flex",
1748
+ flexDirection: "column",
1749
+ gap: 4
1750
+ },
1751
+ children: e.children
1752
+ }
1753
+ )
1600
1754
  ]
1601
1755
  }
1602
1756
  );
1603
- }, zt = ({ onClose: e }) => {
1604
- const t = I1(), o = (n) => {
1757
+ }, Ut = ({ onClose: e }) => {
1758
+ const t = E1(), o = (n) => {
1605
1759
  t.start(n);
1606
1760
  };
1607
- return /* @__PURE__ */ r(ee, { children: /* @__PURE__ */ g(
1608
- t1.div,
1761
+ return /* @__PURE__ */ r(ee, { children: /* @__PURE__ */ m(
1762
+ n1.div,
1609
1763
  {
1610
1764
  drag: !0,
1611
1765
  dragControls: t,
1612
1766
  dragListener: !1,
1613
1767
  style: { zIndex: 1e5, width: 320, height: 400, top: 80, right: 40 },
1614
- className: "tw:fixed tw:rounded-md tw:bg-ic-ink-6s tw:text-white tw:flex tw:flex-col tw:border tw:border-ic-white-2s",
1768
+ css: {
1769
+ position: "fixed",
1770
+ display: "flex",
1771
+ flexDirection: "column",
1772
+ borderRadius: 6,
1773
+ backgroundColor: u.palette.ink["6s"],
1774
+ borderWidth: 1,
1775
+ borderStyle: "solid",
1776
+ borderColor: u.palette.white["2s"],
1777
+ color: "white"
1778
+ },
1615
1779
  children: [
1616
- /* @__PURE__ */ g(
1780
+ /* @__PURE__ */ m(
1617
1781
  "div",
1618
1782
  {
1619
1783
  onPointerDown: o,
1620
- className: "tw:py-2 tw:cursor-grab tw:flex tw:items-center tw:justify-between tw:px-4",
1784
+ css: {
1785
+ paddingBlock: 8,
1786
+ display: "flex",
1787
+ paddingInline: 16,
1788
+ alignItems: "center",
1789
+ justifyContent: "space-between",
1790
+ cursor: "grab"
1791
+ },
1621
1792
  children: [
1622
- /* @__PURE__ */ g("div", { className: "tw:flex tw:items-center tw:gap-2", children: [
1623
- /* @__PURE__ */ r(E, { source: Ot }),
1624
- /* @__PURE__ */ r("p", { className: "tw:text-sm tw:font-medium", children: "Layers" })
1793
+ /* @__PURE__ */ m("div", { css: { display: "flex", alignItems: "center", gap: 8 }, children: [
1794
+ /* @__PURE__ */ r(E, { source: Wt }),
1795
+ /* @__PURE__ */ r(
1796
+ "p",
1797
+ {
1798
+ css: {
1799
+ ...u.text.sm,
1800
+ fontWeight: 500
1801
+ },
1802
+ children: "Layers"
1803
+ }
1804
+ )
1625
1805
  ] }),
1626
- /* @__PURE__ */ r(A, { onClick: e, children: /* @__PURE__ */ r(E, { source: r1 }) })
1806
+ /* @__PURE__ */ r(j, { onClick: e, children: /* @__PURE__ */ r(E, { source: o1 }) })
1627
1807
  ]
1628
1808
  }
1629
1809
  ),
1630
- /* @__PURE__ */ r("div", { className: "tw:flex-1 tw:overflow-auto tw:border-t tw:border-ic-white-1s tw:p-2", children: /* @__PURE__ */ r(y1, { renderLayer: Ft }) })
1810
+ /* @__PURE__ */ r(
1811
+ "div",
1812
+ {
1813
+ css: {
1814
+ padding: 8,
1815
+ overflow: "auto",
1816
+ borderTopWidth: 1,
1817
+ borderTopStyle: "solid",
1818
+ borderColor: u.palette.white["1s"],
1819
+ flex: 1
1820
+ },
1821
+ children: /* @__PURE__ */ r(M1, { renderLayer: Ft })
1822
+ }
1823
+ )
1631
1824
  ]
1632
1825
  }
1633
1826
  ) });
1634
- }, Ut = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
1827
+ }, qt = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
1635
1828
  <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"/>
1636
1829
  <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"/>
1637
1830
  <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"/>
1638
1831
  </svg>
1639
- `, Wt = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
1832
+ `, Yt = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
1640
1833
  <path d="M5 12H19" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
1641
1834
  <path d="M10 7L5 12" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
1642
1835
  <path d="M10 17L5 12" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
1643
1836
  </svg>
1644
- `, qt = ({ insert: e }) => {
1837
+ `, Qt = ({ insert: e }) => {
1645
1838
  const [t, o] = te(!1), {
1646
1839
  queryParams: {
1647
1840
  action: n = "insert"
1648
1841
  /* Insert */
1649
1842
  },
1650
1843
  setQueryParams: i
1651
- } = i2(), { actions: s, isDeletable: u, focusedNode: c } = $((a, m) => {
1652
- const k = m.getEvent("selected").first(), h = k ? m.node(k) : null;
1844
+ } = i2(), { actions: s, isDeletable: p, focusedNode: c } = Z((a, k) => {
1845
+ const v = k.getEvent("selected").first(), h = v ? k.node(v) : null;
1653
1846
  return {
1654
1847
  enabled: a.options.enabled,
1655
1848
  isDeletable: !!(h?.isDeletable() && (h.get().data.custom?.deletable ?? !0)),
1656
1849
  focusedNode: h?.get()
1657
1850
  };
1658
- }), w = () => {
1851
+ }), C = () => {
1659
1852
  s.selectNode();
1660
- }, x = (a) => {
1853
+ }, b = (a) => {
1661
1854
  s.delete(a.currentTarget.value);
1662
- }, l = (a) => {
1663
- const m = a.currentTarget.value;
1664
- m === "layers" ? o() : (w(), i({
1665
- action: m
1855
+ }, d = (a) => {
1856
+ const k = a.currentTarget.value;
1857
+ k === "layers" ? o() : (C(), i({
1858
+ action: k
1666
1859
  }));
1667
1860
  };
1668
- return /* @__PURE__ */ g(n2, { children: [
1669
- /* @__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: [
1670
- /* @__PURE__ */ g("div", { className: "tw:px-1 tw:flex tw:flex-col tw:gap-1", children: [
1671
- !!e && /* @__PURE__ */ g(V2, { children: [
1672
- /* @__PURE__ */ r(
1673
- A,
1861
+ return /* @__PURE__ */ m(n2, { children: [
1862
+ /* @__PURE__ */ m(
1863
+ "aside",
1864
+ {
1865
+ css: {
1866
+ display: "flex",
1867
+ position: "relative",
1868
+ alignItems: "stretch",
1869
+ backgroundColor: u.palette.ink["6s"],
1870
+ color: u.palette.white["6s"],
1871
+ borderTopWidth: 1,
1872
+ borderTopStyle: "solid",
1873
+ borderColor: u.palette.white["2s"],
1874
+ ...u.text.sm
1875
+ },
1876
+ children: [
1877
+ /* @__PURE__ */ m("div", { css: { display: "flex", paddingInline: 4, flexDirection: "column", gap: 4 }, children: [
1878
+ !!e && /* @__PURE__ */ m(R2, { children: [
1879
+ /* @__PURE__ */ r(
1880
+ j,
1881
+ {
1882
+ tooltip: {
1883
+ content: "Insert",
1884
+ placement: "right"
1885
+ },
1886
+ onClick: d,
1887
+ value: "insert",
1888
+ css: { position: "relative" },
1889
+ size: "32",
1890
+ children: /* @__PURE__ */ r(E, { source: s1 })
1891
+ }
1892
+ ),
1893
+ /* @__PURE__ */ r("hr", { css: { borderColor: u.palette.white["2s"] } })
1894
+ ] }),
1895
+ /* @__PURE__ */ r(
1896
+ j,
1897
+ {
1898
+ tooltip: {
1899
+ content: "Layers",
1900
+ placement: "right"
1901
+ },
1902
+ onClick: d,
1903
+ value: "layers",
1904
+ css: { position: "relative" },
1905
+ size: "32",
1906
+ children: /* @__PURE__ */ r(E, { source: qt })
1907
+ }
1908
+ )
1909
+ ] }),
1910
+ /* @__PURE__ */ m(
1911
+ "div",
1674
1912
  {
1675
- tooltip: {
1676
- content: "Insert",
1677
- placement: "right"
1913
+ css: {
1914
+ position: "relative",
1915
+ display: "flex",
1916
+ flexDirection: "column",
1917
+ overflow: "auto",
1918
+ width: 288,
1919
+ borderLeftWidth: 1,
1920
+ borderLeftStyle: "solid",
1921
+ borderColor: u.palette.white["1s"]
1678
1922
  },
1679
- onClick: l,
1680
- value: "insert",
1681
- className: "tw:relative",
1682
- size: "32",
1683
- children: /* @__PURE__ */ r(E, { source: n1 })
1923
+ children: [
1924
+ !c?.related.inspector && /* @__PURE__ */ r("div", { css: { overflow: "auto", flex: 1 }, children: n === "insert" && !!e && /* @__PURE__ */ r(Dt, { groups: e.groups }) }),
1925
+ !!c?.related?.inspector && /* @__PURE__ */ m("div", { css: { display: "flex", flexDirection: "column", overflow: "hidden", flex: 1 }, children: [
1926
+ /* @__PURE__ */ m("div", { css: { display: "flex", paddingInline: 8, paddingBlock: 8, alignItems: "center", gap: 8 }, children: [
1927
+ /* @__PURE__ */ r(j, { onClick: C, children: /* @__PURE__ */ r(E, { source: Yt }) }),
1928
+ /* @__PURE__ */ r("div", { css: { overflow: "hidden", flex: 1 }, children: /* @__PURE__ */ r(J2, { fullWidth: !0, value: U2(c), size: "32" }) }),
1929
+ p && /* @__PURE__ */ r(j, { value: c.id, onClick: b, children: /* @__PURE__ */ r(E, { css: { color: u.palette.red["4s"] }, source: b1 }) })
1930
+ ] }),
1931
+ /* @__PURE__ */ r(
1932
+ "div",
1933
+ {
1934
+ css: {
1935
+ overflow: "auto",
1936
+ flex: 1,
1937
+ borderTopWidth: 1,
1938
+ borderTopStyle: "solid",
1939
+ borderColor: u.palette.white["1s"]
1940
+ },
1941
+ children: /* @__PURE__ */ r(Ie, { fallback: null, children: Y2(c.related.inspector) })
1942
+ }
1943
+ )
1944
+ ] })
1945
+ ]
1684
1946
  }
1685
- ),
1686
- /* @__PURE__ */ r("hr", { className: "tw:border-ic-white-2s" })
1687
- ] }),
1688
- /* @__PURE__ */ r(
1689
- A,
1690
- {
1691
- tooltip: {
1692
- content: "Layers",
1693
- placement: "right"
1694
- },
1695
- onClick: l,
1696
- value: "layers",
1697
- className: "tw:relative",
1698
- size: "32",
1699
- children: /* @__PURE__ */ r(E, { source: Ut })
1700
- }
1701
- )
1702
- ] }),
1703
- /* @__PURE__ */ g(
1704
- "div",
1705
- {
1706
- className: B("tw:relative tw:flex tw:flex-col tw:border-l tw:border-ic-white-1s tw:w-72 tw:overflow-auto"),
1707
- children: [
1708
- !c?.related.inspector && /* @__PURE__ */ r("div", { className: "tw:flex-1 tw:overflow-auto scrollbar", children: n === "insert" && !!e && /* @__PURE__ */ r(_t, { groups: e.groups }) }),
1709
- !!c?.related?.inspector && /* @__PURE__ */ g("div", { className: "tw:flex tw:flex-col tw:flex-1 tw:overflow-hidden", children: [
1710
- /* @__PURE__ */ g("div", { className: "tw:flex tw:items-center tw:gap-2 tw:px-2 tw:py-2", children: [
1711
- /* @__PURE__ */ r(A, { onClick: w, children: /* @__PURE__ */ r(E, { source: Wt }) }),
1712
- /* @__PURE__ */ r("div", { className: "tw:flex-1 tw:overflow-hidden", children: /* @__PURE__ */ r(J2, { fullWidth: !0, value: W2(c), size: "32" }) }),
1713
- u && /* @__PURE__ */ r(A, { value: c.id, onClick: x, children: /* @__PURE__ */ r(E, { className: "tw:text-ic-red-4s", source: v1 }) })
1714
- ] }),
1715
- /* @__PURE__ */ r("div", { className: "tw:flex-1 tw:overflow-auto tw:border-t tw:border-ic-white-1s scrollbar-hidden", children: /* @__PURE__ */ r(Le, { fallback: null, children: Y2(c.related.inspector) }) })
1716
- ] })
1717
- ]
1718
- }
1719
- )
1720
- ] }),
1721
- t && /* @__PURE__ */ r(zt, { onClose: o })
1947
+ )
1948
+ ]
1949
+ }
1950
+ ),
1951
+ t && /* @__PURE__ */ r(Ut, { onClose: o })
1722
1952
  ] });
1723
1953
  }, T3 = ({ theme: e, insert: t, resolver: o, handlers: n }) => {
1724
1954
  const {
@@ -1727,25 +1957,31 @@ const S2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
1727
1957
  return s2({
1728
1958
  theme: e,
1729
1959
  handlers: n
1730
- }), /* @__PURE__ */ r(Q2, { enabled: !0, onRender: ot, resolver: o, 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: [
1731
- /* @__PURE__ */ r(at, {}),
1732
- /* @__PURE__ */ g("div", { className: "tw:flex-1 tw:overflow-hidden tw:flex", children: [
1733
- /* @__PURE__ */ r(qt, { insert: t }),
1734
- /* @__PURE__ */ r(
1735
- he,
1736
- {
1737
- viewport: {
1738
- width: (s) => i === "lg" ? Math.max(s, M2[i]) : M2[i]
1739
- },
1740
- children: /* @__PURE__ */ r(X2, { children: /* @__PURE__ */ r(ve, {}) })
1741
- }
1742
- )
1743
- ] })
1744
- ] }) });
1960
+ }), /* @__PURE__ */ r(Q2, { enabled: !0, onRender: it, resolver: o, children: /* @__PURE__ */ m(
1961
+ "div",
1962
+ {
1963
+ css: { display: "flex", flexDirection: "column", width: "100vw", height: "100vh", backgroundColor: u.palette.ink["6s"], color: u.palette.white["6s"] },
1964
+ children: [
1965
+ /* @__PURE__ */ r(lt, {}),
1966
+ /* @__PURE__ */ m("div", { css: { display: "flex", overflow: "hidden", flex: 1 }, children: [
1967
+ /* @__PURE__ */ r(Qt, { insert: t }),
1968
+ /* @__PURE__ */ r(
1969
+ he,
1970
+ {
1971
+ viewport: {
1972
+ width: (s) => i === "lg" ? Math.max(s, M2[i]) : M2[i]
1973
+ },
1974
+ children: /* @__PURE__ */ r(X2, { children: /* @__PURE__ */ r(ve, {}) })
1975
+ }
1976
+ )
1977
+ ] })
1978
+ ]
1979
+ }
1980
+ ) });
1745
1981
  };
1746
1982
  export {
1747
1983
  T3 as Editor,
1748
1984
  s2 as useEditor,
1749
1985
  i2 as useEditorQueryParams,
1750
- A3 as useEditorResponsive
1986
+ B3 as useEditorResponsive
1751
1987
  };