@janbox/storefront-builder 1.0.8 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/README.md +83 -110
  2. package/dist/anchor-target-BlOvysAr.js +2329 -0
  3. package/dist/color-picker-popover-B3AVFuei.js +201 -0
  4. package/dist/components/composer/dataset.d.ts +1 -0
  5. package/dist/constants/index.d.ts +1 -0
  6. package/dist/countdown-timer.node-OmDiT-pz.js +825 -0
  7. package/dist/date-picker-B4Rju7gG.js +115 -0
  8. package/dist/{countdown-timer.node-BwrDThFq.js → dialog-header-DPLOS7TT.js} +2209 -3174
  9. package/dist/dropzone-Dbfed3jK.js +490 -0
  10. package/dist/editor/hooks/index.d.ts +1 -1
  11. package/dist/editor/lib/index.d.ts +3 -3
  12. package/dist/editor/lib/sidebar/insert-action.d.ts +15 -22
  13. package/dist/editor/toolbars.js +336 -0
  14. package/dist/editor/types/index.d.ts +0 -2
  15. package/dist/editor/ui/button/button.d.ts +2 -3
  16. package/dist/editor/ui/icon-button/icon-button.d.ts +1 -2
  17. package/dist/editor/ui.js +110 -0
  18. package/dist/editor.js +1024 -522
  19. package/dist/index-BbiQ0n_-.js +4 -0
  20. package/dist/index-CwrFnubn.js +4448 -0
  21. package/dist/index.js +369 -107
  22. package/dist/lib/container/container.inspector/container.inspector.d.ts +1 -0
  23. package/dist/lib/container/container.inspector/index.d.ts +1 -0
  24. package/dist/lib/container/container.node/container.node.d.ts +2 -0
  25. package/dist/lib/container/container.node/index.d.ts +3 -0
  26. package/dist/lib/container/container.node/types.d.ts +2 -0
  27. package/dist/lib/container/index.d.ts +2 -0
  28. package/dist/lib/index.d.ts +1 -0
  29. package/dist/style.css +1 -1
  30. package/dist/templates/elements/carousel/index.d.ts +2 -2
  31. package/dist/templates/elements/content-list/index.d.ts +2 -2
  32. package/dist/templates/elements/interactive/index.d.ts +2 -2
  33. package/dist/templates/elements/layout/index.d.ts +2 -2
  34. package/dist/templates/elements/media/index.d.ts +2 -2
  35. package/dist/templates/elements/text/index.d.ts +2 -2
  36. package/dist/templates/elements/utilities/index.d.ts +2 -2
  37. package/dist/templates/index.d.ts +0 -1
  38. package/dist/templates/sections/faqs/index.d.ts +2 -2
  39. package/dist/templates/sections/guarantee/index.d.ts +2 -2
  40. package/dist/templates/sections/hero/index.d.ts +2 -2
  41. package/dist/templates.js +153 -656
  42. package/dist/{tooltip-W55T4oR8.js → tooltip-KbIHELP2.js} +1 -1
  43. package/package.json +11 -3
  44. package/dist/index-Br_MUhzZ.js +0 -6015
  45. package/dist/index-DGKFfr43.js +0 -4
  46. /package/dist/editor/hooks/{use-editor-state.d.ts → use-editor.d.ts} +0 -0
package/dist/editor.js CHANGED
@@ -1,16 +1,17 @@
1
- import { jsx as n, Fragment as ye, jsxs as k } from "@emotion/react/jsx-runtime";
2
- import { Q as _e, W as re, c as P, X as we, Y as fe, x as ze, y as Ge, N as F, J as L, i as qe, P as Ue, V as Ze, S as Qe, G as Ye, f as Xe, h as Ke, F as Je, l as et, e as tt, j as rt, I as nt, L as st, s as ot, r as it, B as ct, a as at, g as lt, Z as A, _ as E, $ as Le, a0 as Ie, a1 as dt, a2 as ht, a3 as ut, a4 as wt, v as Ee, z as ft, a5 as pt, m as mt } from "./countdown-timer.node-BwrDThFq.js";
3
- import { useNode as gt, ROOT_NODE as W, serializeNode as kt } from "@craftjs/core";
4
- import { useRef as Se, useState as O, useEffect as G, createElement as Me, Fragment as ee, Suspense as vt } from "react";
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";
5
6
  import "flat";
6
- import { throttle as bt, isFunction as pe, isNumber as me } from "lodash-es";
7
+ import { throttle as Ie, isFunction as b2, isNumber as y2, times as Z } from "lodash-es";
7
8
  import "@janbox/storefront-ui";
8
- import { Q as ne, R as Ct, W as xt, f as Nt, H as yt, h as Lt, P as It, k as Et, i as St, G as Mt, b as Rt, e as $t, F as At, M as jt, a as Tt, g as Pt, I as Dt, L as Bt, U as Ft, T as Wt, B as Ht, A as Ot, d as Vt, X as _t, Y as zt, Z as Gt, _ as qt, $ as ge, a0 as Ut, a1 as ke, a2 as ce, a3 as Re, c as $e, C as Ae, a4 as Zt, a5 as ve } from "./index-Br_MUhzZ.js";
9
- import { a6 as Un } from "./index-Br_MUhzZ.js";
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";
10
10
  import "@janbox/storefront-ui/hooks";
11
- import { ThemeProvider as Qt, FLOATING_Z_INDEX as Yt, breakpoint as Xt } from "@janbox/storefront-ui/theme";
11
+ import { ThemeProvider as Ye, getColorVar as N2, FLOATING_Z_INDEX as Qe, breakpoint as Xe } from "@janbox/storefront-ui/theme";
12
12
  import "@janbox/storefront-ui/utils";
13
- import { useFloating as Kt, autoUpdate as Jt, flip as er, size as tr, useHover as rr, safePolygon as nr, useFocus as sr, useDismiss as or, useRole as ir, useInteractions as cr, FloatingPortal as je } from "@floating-ui/react";
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";
14
15
  import "react-use";
15
16
  import "react-colorful";
16
17
  import "overlayscrollbars-react";
@@ -22,15 +23,18 @@ import "@tiptap/extension-text-style";
22
23
  import "@tiptap/react";
23
24
  import "@tiptap/react/menus";
24
25
  import "@tiptap/starter-kit";
25
- import ar, { useFrame as lr } from "react-frame-component";
26
- import { CacheProvider as dr, Global as hr, createElement as ur } from "@emotion/react";
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
28
  import "@hello-pangea/dnd";
29
+ import { useToggle as te } from "usehooks-ts";
28
30
  import "clsx";
29
31
  import "tailwind-merge";
30
- import "react-router";
31
- import { useToggle as Te } from "usehooks-ts";
32
- import { Layers as wr, useLayer as fr } from "@craftjs/layers";
33
- class pr {
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 {
34
38
  constructor() {
35
39
  this.componentControls = /* @__PURE__ */ new Set();
36
40
  }
@@ -57,116 +61,116 @@ class pr {
57
61
  *
58
62
  * @public
59
63
  */
60
- start(t, s) {
61
- this.componentControls.forEach((r) => {
62
- r.start(t.nativeEvent || t, s);
64
+ start(t, o) {
65
+ this.componentControls.forEach((n) => {
66
+ n.start(t.nativeEvent || t, o);
63
67
  });
64
68
  }
65
69
  }
66
- const mr = () => new pr();
67
- function gr() {
68
- return _e(mr);
70
+ const L1 = () => new M1();
71
+ function I1() {
72
+ return Ke(L1);
69
73
  }
70
- function kr(e) {
74
+ function E1(e) {
71
75
  if (e.sheet)
72
76
  return e.sheet;
73
77
  for (var t = 0; t < document.styleSheets.length; t++)
74
78
  if (document.styleSheets[t].ownerNode === e)
75
79
  return document.styleSheets[t];
76
80
  }
77
- function vr(e) {
81
+ function S1(e) {
78
82
  var t = document.createElement("style");
79
83
  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;
80
84
  }
81
- var br = /* @__PURE__ */ (function() {
82
- function e(s) {
83
- var r = this;
85
+ var T1 = /* @__PURE__ */ (function() {
86
+ function e(o) {
87
+ var n = this;
84
88
  this._insertTag = function(i) {
85
- var o;
86
- r.tags.length === 0 ? r.insertionPoint ? o = r.insertionPoint.nextSibling : r.prepend ? o = r.container.firstChild : o = r.before : o = r.tags[r.tags.length - 1].nextSibling, r.container.insertBefore(i, o), r.tags.push(i);
87
- }, this.isSpeedy = s.speedy === void 0 ? !0 : s.speedy, this.tags = [], this.ctr = 0, this.nonce = s.nonce, this.key = s.key, this.container = s.container, this.prepend = s.prepend, this.insertionPoint = s.insertionPoint, this.before = null;
89
+ var s;
90
+ n.tags.length === 0 ? n.insertionPoint ? s = n.insertionPoint.nextSibling : n.prepend ? s = n.container.firstChild : s = n.before : s = n.tags[n.tags.length - 1].nextSibling, n.container.insertBefore(i, s), n.tags.push(i);
91
+ }, this.isSpeedy = o.speedy === void 0 ? !0 : o.speedy, this.tags = [], this.ctr = 0, this.nonce = o.nonce, this.key = o.key, this.container = o.container, this.prepend = o.prepend, this.insertionPoint = o.insertionPoint, this.before = null;
88
92
  }
89
93
  var t = e.prototype;
90
- return t.hydrate = function(r) {
91
- r.forEach(this._insertTag);
92
- }, t.insert = function(r) {
93
- this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(vr(this));
94
+ return t.hydrate = function(n) {
95
+ n.forEach(this._insertTag);
96
+ }, t.insert = function(n) {
97
+ this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(S1(this));
94
98
  var i = this.tags[this.tags.length - 1];
95
99
  if (this.isSpeedy) {
96
- var o = kr(i);
100
+ var s = E1(i);
97
101
  try {
98
- o.insertRule(r, o.cssRules.length);
102
+ s.insertRule(n, s.cssRules.length);
99
103
  } catch {
100
104
  }
101
105
  } else
102
- i.appendChild(document.createTextNode(r));
106
+ i.appendChild(document.createTextNode(n));
103
107
  this.ctr++;
104
108
  }, t.flush = function() {
105
- this.tags.forEach(function(r) {
109
+ this.tags.forEach(function(n) {
106
110
  var i;
107
- return (i = r.parentNode) == null ? void 0 : i.removeChild(r);
111
+ return (i = n.parentNode) == null ? void 0 : i.removeChild(n);
108
112
  }), this.tags = [], this.ctr = 0;
109
113
  }, e;
110
- })(), S = "-ms-", te = "-moz-", p = "-webkit-", Pe = "comm", de = "rule", he = "decl", Cr = "@import", De = "@keyframes", xr = "@layer", Nr = Math.abs, se = String.fromCharCode, yr = Object.assign;
111
- function Lr(e, t) {
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) {
112
116
  return I(e, 0) ^ 45 ? (((t << 2 ^ I(e, 0)) << 2 ^ I(e, 1)) << 2 ^ I(e, 2)) << 2 ^ I(e, 3) : 0;
113
117
  }
114
- function Be(e) {
118
+ function ie(e) {
115
119
  return e.trim();
116
120
  }
117
- function Ir(e, t) {
121
+ function B1(e, t) {
118
122
  return (e = t.exec(e)) ? e[0] : e;
119
123
  }
120
- function m(e, t, s) {
121
- return e.replace(t, s);
124
+ function f(e, t, o) {
125
+ return e.replace(t, o);
122
126
  }
123
- function ae(e, t) {
127
+ function u2(e, t) {
124
128
  return e.indexOf(t);
125
129
  }
126
130
  function I(e, t) {
127
131
  return e.charCodeAt(t) | 0;
128
132
  }
129
- function q(e, t, s) {
130
- return e.slice(t, s);
133
+ function q(e, t, o) {
134
+ return e.slice(t, o);
131
135
  }
132
- function T(e) {
136
+ function H(e) {
133
137
  return e.length;
134
138
  }
135
- function ue(e) {
139
+ function k2(e) {
136
140
  return e.length;
137
141
  }
138
- function Y(e, t) {
142
+ function K(e, t) {
139
143
  return t.push(e), e;
140
144
  }
141
- function Er(e, t) {
145
+ function _1(e, t) {
142
146
  return e.map(t).join("");
143
147
  }
144
- var oe = 1, V = 1, Fe = 0, R = 0, N = 0, _ = "";
145
- function ie(e, t, s, r, i, o, h) {
146
- return { value: e, root: t, parent: s, type: r, props: i, children: o, line: oe, column: V, length: h, return: "" };
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: "" };
147
151
  }
148
- function z(e, t) {
149
- return yr(ie("", null, null, "", null, null, 0), e, { length: -e.length }, t);
152
+ function U(e, t) {
153
+ return R1(l2("", null, null, "", null, null, 0), e, { length: -e.length }, t);
150
154
  }
151
- function Sr() {
155
+ function P1() {
152
156
  return N;
153
157
  }
154
- function Mr() {
155
- return N = R > 0 ? I(_, --R) : 0, V--, N === 10 && (V = 1, oe--), N;
158
+ function Z1() {
159
+ return N = V > 0 ? I(z, --V) : 0, F--, N === 10 && (F = 1, a2--), N;
156
160
  }
157
- function $() {
158
- return N = R < Fe ? I(_, R++) : 0, V++, N === 10 && (V = 1, oe++), N;
161
+ function j() {
162
+ return N = V < ce ? I(z, V++) : 0, F++, N === 10 && (F = 1, a2++), N;
159
163
  }
160
- function D() {
161
- return I(_, R);
164
+ function _() {
165
+ return I(z, V);
162
166
  }
163
- function X() {
164
- return R;
167
+ function J() {
168
+ return V;
165
169
  }
166
- function Z(e, t) {
167
- return q(_, e, t);
170
+ function Q(e, t) {
171
+ return q(z, e, t);
168
172
  }
169
- function U(e) {
173
+ function Y(e) {
170
174
  switch (e) {
171
175
  // \0 \t \n \r \s whitespace token
172
176
  case 0:
@@ -204,263 +208,263 @@ function U(e) {
204
208
  }
205
209
  return 0;
206
210
  }
207
- function We(e) {
208
- return oe = V = 1, Fe = T(_ = e), R = 0, [];
211
+ function ae(e) {
212
+ return a2 = F = 1, ce = H(z = e), V = 0, [];
209
213
  }
210
- function He(e) {
211
- return _ = "", e;
214
+ function le(e) {
215
+ return z = "", e;
212
216
  }
213
- function K(e) {
214
- return Be(Z(R - 1, le(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
217
+ function e2(e) {
218
+ return ie(Q(V - 1, w2(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
215
219
  }
216
- function Rr(e) {
217
- for (; (N = D()) && N < 33; )
218
- $();
219
- return U(e) > 2 || U(N) > 3 ? "" : " ";
220
+ function $1(e) {
221
+ for (; (N = _()) && N < 33; )
222
+ j();
223
+ return Y(e) > 2 || Y(N) > 3 ? "" : " ";
220
224
  }
221
- function $r(e, t) {
222
- for (; --t && $() && !(N < 48 || N > 102 || N > 57 && N < 65 || N > 70 && N < 97); )
225
+ function D1(e, t) {
226
+ for (; --t && j() && !(N < 48 || N > 102 || N > 57 && N < 65 || N > 70 && N < 97); )
223
227
  ;
224
- return Z(e, X() + (t < 6 && D() == 32 && $() == 32));
228
+ return Q(e, J() + (t < 6 && _() == 32 && j() == 32));
225
229
  }
226
- function le(e) {
227
- for (; $(); )
230
+ function w2(e) {
231
+ for (; j(); )
228
232
  switch (N) {
229
233
  // ] ) " '
230
234
  case e:
231
- return R;
235
+ return V;
232
236
  // " '
233
237
  case 34:
234
238
  case 39:
235
- e !== 34 && e !== 39 && le(N);
239
+ e !== 34 && e !== 39 && w2(N);
236
240
  break;
237
241
  // (
238
242
  case 40:
239
- e === 41 && le(e);
243
+ e === 41 && w2(e);
240
244
  break;
241
245
  // \
242
246
  case 92:
243
- $();
247
+ j();
244
248
  break;
245
249
  }
246
- return R;
250
+ return V;
247
251
  }
248
- function Ar(e, t) {
249
- for (; $() && e + N !== 57; )
250
- if (e + N === 84 && D() === 47)
252
+ function O1(e, t) {
253
+ for (; j() && e + N !== 57; )
254
+ if (e + N === 84 && _() === 47)
251
255
  break;
252
- return "/*" + Z(t, R - 1) + "*" + se(e === 47 ? e : $());
256
+ return "/*" + Q(t, V - 1) + "*" + c2(e === 47 ? e : j());
253
257
  }
254
- function jr(e) {
255
- for (; !U(D()); )
256
- $();
257
- return Z(e, R);
258
+ function G1(e) {
259
+ for (; !Y(_()); )
260
+ j();
261
+ return Q(e, V);
258
262
  }
259
- function Tr(e) {
260
- return He(J("", null, null, null, [""], e = We(e), 0, [0], e));
263
+ function F1(e) {
264
+ return le(t2("", null, null, null, [""], e = ae(e), 0, [0], e));
261
265
  }
262
- function J(e, t, s, r, i, o, h, c, u) {
263
- for (var b = 0, l = 0, a = h, f = 0, v = 0, w = 0, d = 1, y = 1, g = 1, x = 0, M = "", Q = i, B = o, j = r, C = M; y; )
264
- switch (w = x, x = $()) {
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()) {
265
269
  // (
266
270
  case 40:
267
- if (w != 108 && I(C, a - 1) == 58) {
268
- ae(C += m(K(x), "&", "&\f"), "&\f") != -1 && (g = -1);
271
+ if (h != 108 && I(b, a - 1) == 58) {
272
+ u2(b += f(e2(y), "&", "&\f"), "&\f") != -1 && (v = -1);
269
273
  break;
270
274
  }
271
275
  // " ' [
272
276
  case 34:
273
277
  case 39:
274
278
  case 91:
275
- C += K(x);
279
+ b += e2(y);
276
280
  break;
277
281
  // \t \n \r \s
278
282
  case 9:
279
283
  case 10:
280
284
  case 13:
281
285
  case 32:
282
- C += Rr(w);
286
+ b += $1(h);
283
287
  break;
284
288
  // \
285
289
  case 92:
286
- C += $r(X() - 1, 7);
290
+ b += D1(J() - 1, 7);
287
291
  continue;
288
292
  // /
289
293
  case 47:
290
- switch (D()) {
294
+ switch (_()) {
291
295
  case 42:
292
296
  case 47:
293
- Y(Pr(Ar($(), X()), t, s), u);
297
+ K(z1(O1(j(), J()), t, o), w);
294
298
  break;
295
299
  default:
296
- C += "/";
300
+ b += "/";
297
301
  }
298
302
  break;
299
303
  // {
300
304
  case 123 * d:
301
- c[b++] = T(C) * g;
305
+ c[x++] = H(b) * v;
302
306
  // } ; \0
303
307
  case 125 * d:
304
308
  case 59:
305
309
  case 0:
306
- switch (x) {
310
+ switch (y) {
307
311
  // \0 }
308
312
  case 0:
309
313
  case 125:
310
- y = 0;
314
+ M = 0;
311
315
  // ;
312
316
  case 59 + l:
313
- g == -1 && (C = m(C, /\f/g, "")), v > 0 && T(C) - a && Y(v > 32 ? Ce(C + ";", r, s, a - 1) : Ce(m(C, " ", "") + ";", r, s, a - 2), u);
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
318
  break;
315
319
  // @ ;
316
320
  case 59:
317
- C += ";";
321
+ b += ";";
318
322
  // { rule/at-rule
319
323
  default:
320
- if (Y(j = be(C, t, s, b, l, i, c, M, Q = [], B = [], a), o), x === 123)
324
+ if (K(R = L2(b, t, o, x, l, i, c, T, X = [], P = [], a), s), y === 123)
321
325
  if (l === 0)
322
- J(C, t, j, j, Q, o, a, c, B);
326
+ t2(b, t, R, R, X, s, a, c, P);
323
327
  else
324
- switch (f === 99 && I(C, 3) === 110 ? 100 : f) {
328
+ switch (m === 99 && I(b, 3) === 110 ? 100 : m) {
325
329
  // d l m s
326
330
  case 100:
327
331
  case 108:
328
332
  case 109:
329
333
  case 115:
330
- J(e, j, j, r && Y(be(e, j, j, 0, 0, i, c, M, i, Q = [], a), B), i, B, a, c, r ? Q : B);
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);
331
335
  break;
332
336
  default:
333
- J(C, j, j, j, [""], B, 0, c, B);
337
+ t2(b, R, R, R, [""], P, 0, c, P);
334
338
  }
335
339
  }
336
- b = l = v = 0, d = g = 1, M = C = "", a = h;
340
+ x = l = k = 0, d = v = 1, T = b = "", a = u;
337
341
  break;
338
342
  // :
339
343
  case 58:
340
- a = 1 + T(C), v = w;
344
+ a = 1 + H(b), k = h;
341
345
  default:
342
346
  if (d < 1) {
343
- if (x == 123)
347
+ if (y == 123)
344
348
  --d;
345
- else if (x == 125 && d++ == 0 && Mr() == 125)
349
+ else if (y == 125 && d++ == 0 && Z1() == 125)
346
350
  continue;
347
351
  }
348
- switch (C += se(x), x * d) {
352
+ switch (b += c2(y), y * d) {
349
353
  // &
350
354
  case 38:
351
- g = l > 0 ? 1 : (C += "\f", -1);
355
+ v = l > 0 ? 1 : (b += "\f", -1);
352
356
  break;
353
357
  // ,
354
358
  case 44:
355
- c[b++] = (T(C) - 1) * g, g = 1;
359
+ c[x++] = (H(b) - 1) * v, v = 1;
356
360
  break;
357
361
  // @
358
362
  case 64:
359
- D() === 45 && (C += K($())), f = D(), l = a = T(M = C += jr(X())), x++;
363
+ _() === 45 && (b += e2(j())), m = _(), l = a = H(T = b += G1(J())), y++;
360
364
  break;
361
365
  // -
362
366
  case 45:
363
- w === 45 && T(C) == 2 && (d = 0);
367
+ h === 45 && H(b) == 2 && (d = 0);
364
368
  }
365
369
  }
366
- return o;
370
+ return s;
367
371
  }
368
- function be(e, t, s, r, i, o, h, c, u, b, l) {
369
- for (var a = i - 1, f = i === 0 ? o : [""], v = ue(f), w = 0, d = 0, y = 0; w < r; ++w)
370
- for (var g = 0, x = q(e, a + 1, a = Nr(d = h[w])), M = e; g < v; ++g)
371
- (M = Be(d > 0 ? f[g] + " " + x : m(x, /&\f/g, f[g]))) && (u[y++] = M);
372
- return ie(e, t, s, i === 0 ? de : c, u, b, l);
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);
373
377
  }
374
- function Pr(e, t, s) {
375
- return ie(e, t, s, Pe, se(Sr()), q(e, 2, -2), 0);
378
+ function z1(e, t, o) {
379
+ return l2(e, t, o, oe, c2(P1()), q(e, 2, -2), 0);
376
380
  }
377
- function Ce(e, t, s, r) {
378
- return ie(e, t, s, he, q(e, 0, r), q(e, r + 1, -1), r);
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
383
  }
380
- function H(e, t) {
381
- for (var s = "", r = ue(e), i = 0; i < r; i++)
382
- s += t(e[i], i, e, t) || "";
383
- return s;
384
+ function O(e, t) {
385
+ for (var o = "", n = k2(e), i = 0; i < n; i++)
386
+ o += t(e[i], i, e, t) || "";
387
+ return o;
384
388
  }
385
- function Dr(e, t, s, r) {
389
+ function U1(e, t, o, n) {
386
390
  switch (e.type) {
387
- case xr:
391
+ case j1:
388
392
  if (e.children.length) break;
389
- case Cr:
390
- case he:
393
+ case V1:
394
+ case m2:
391
395
  return e.return = e.return || e.value;
392
- case Pe:
396
+ case oe:
393
397
  return "";
394
- case De:
395
- return e.return = e.value + "{" + H(e.children, r) + "}";
396
- case de:
398
+ case se:
399
+ return e.return = e.value + "{" + O(e.children, n) + "}";
400
+ case g2:
397
401
  e.value = e.props.join(",");
398
402
  }
399
- return T(s = H(e.children, r)) ? e.return = e.value + "{" + s + "}" : "";
403
+ return H(o = O(e.children, n)) ? e.return = e.value + "{" + o + "}" : "";
400
404
  }
401
- function Br(e) {
402
- var t = ue(e);
403
- return function(s, r, i, o) {
404
- for (var h = "", c = 0; c < t; c++)
405
- h += e[c](s, r, i, o) || "";
406
- return h;
405
+ function W1(e) {
406
+ var t = k2(e);
407
+ 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;
407
411
  };
408
412
  }
409
- function Fr(e) {
413
+ function q1(e) {
410
414
  return function(t) {
411
415
  t.root || (t = t.return) && e(t);
412
416
  };
413
417
  }
414
- var Wr = function(t, s, r) {
415
- for (var i = 0, o = 0; i = o, o = D(), i === 38 && o === 12 && (s[r] = 1), !U(o); )
416
- $();
417
- return Z(t, R);
418
- }, Hr = function(t, s) {
419
- var r = -1, i = 44;
418
+ var Y1 = function(t, o, n) {
419
+ for (var i = 0, s = 0; i = s, s = _(), i === 38 && s === 12 && (o[n] = 1), !Y(s); )
420
+ j();
421
+ return Q(t, V);
422
+ }, Q1 = function(t, o) {
423
+ var n = -1, i = 44;
420
424
  do
421
- switch (U(i)) {
425
+ switch (Y(i)) {
422
426
  case 0:
423
- i === 38 && D() === 12 && (s[r] = 1), t[r] += Wr(R - 1, s, r);
427
+ i === 38 && _() === 12 && (o[n] = 1), t[n] += Y1(V - 1, o, n);
424
428
  break;
425
429
  case 2:
426
- t[r] += K(i);
430
+ t[n] += e2(i);
427
431
  break;
428
432
  case 4:
429
433
  if (i === 44) {
430
- t[++r] = D() === 58 ? "&\f" : "", s[r] = t[r].length;
434
+ t[++n] = _() === 58 ? "&\f" : "", o[n] = t[n].length;
431
435
  break;
432
436
  }
433
437
  // fallthrough
434
438
  default:
435
- t[r] += se(i);
439
+ t[n] += c2(i);
436
440
  }
437
- while (i = $());
441
+ while (i = j());
438
442
  return t;
439
- }, Or = function(t, s) {
440
- return He(Hr(We(t), s));
441
- }, xe = /* @__PURE__ */ new WeakMap(), Vr = function(t) {
443
+ }, X1 = function(t, o) {
444
+ return le(Q1(ae(t), o));
445
+ }, E2 = /* @__PURE__ */ new WeakMap(), K1 = function(t) {
442
446
  if (!(t.type !== "rule" || !t.parent || // positive .length indicates that this rule contains pseudo
443
447
  // negative .length indicates that this rule has been already prefixed
444
448
  t.length < 1)) {
445
- for (var s = t.value, r = t.parent, i = t.column === r.column && t.line === r.line; r.type !== "rule"; )
446
- if (r = r.parent, !r) return;
447
- if (!(t.props.length === 1 && s.charCodeAt(0) !== 58 && !xe.get(r)) && !i) {
448
- xe.set(t, !0);
449
- for (var o = [], h = Or(s, o), c = r.props, u = 0, b = 0; u < h.length; u++)
450
- for (var l = 0; l < c.length; l++, b++)
451
- t.props[b] = o[u] ? h[u].replace(/&\f/g, c[l]) : c[l] + " " + h[u];
449
+ for (var o = t.value, n = t.parent, i = t.column === n.column && t.line === n.line; n.type !== "rule"; )
450
+ 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];
452
456
  }
453
457
  }
454
- }, _r = function(t) {
458
+ }, J1 = function(t) {
455
459
  if (t.type === "decl") {
456
- var s = t.value;
460
+ var o = t.value;
457
461
  // charcode for l
458
- s.charCodeAt(0) === 108 && // charcode for b
459
- s.charCodeAt(2) === 98 && (t.return = "", t.value = "");
462
+ o.charCodeAt(0) === 108 && // charcode for b
463
+ o.charCodeAt(2) === 98 && (t.return = "", t.value = "");
460
464
  }
461
465
  };
462
- function Oe(e, t) {
463
- switch (Lr(e, t)) {
466
+ function de(e, t) {
467
+ switch (H1(e, t)) {
464
468
  // color-adjust
465
469
  case 5103:
466
470
  return p + "print-" + e + e;
@@ -500,7 +504,7 @@ function Oe(e, t) {
500
504
  case 4810:
501
505
  case 6968:
502
506
  case 2756:
503
- return p + e + te + e + S + e + e;
507
+ return p + e + o2 + e + S + e + e;
504
508
  // flex, flex-direction
505
509
  case 6828:
506
510
  case 4268:
@@ -510,41 +514,41 @@ function Oe(e, t) {
510
514
  return p + e + S + "flex-" + e + e;
511
515
  // align-items
512
516
  case 5187:
513
- return p + e + m(e, /(\w+).+(:[^]+)/, p + "box-$1$2" + S + "flex-$1$2") + e;
517
+ return p + e + f(e, /(\w+).+(:[^]+)/, p + "box-$1$2" + S + "flex-$1$2") + e;
514
518
  // align-self
515
519
  case 5443:
516
- return p + e + S + "flex-item-" + m(e, /flex-|-self/, "") + e;
520
+ return p + e + S + "flex-item-" + f(e, /flex-|-self/, "") + e;
517
521
  // align-content
518
522
  case 4675:
519
- return p + e + S + "flex-line-pack" + m(e, /align-content|flex-|-self/, "") + e;
523
+ return p + e + S + "flex-line-pack" + f(e, /align-content|flex-|-self/, "") + e;
520
524
  // flex-shrink
521
525
  case 5548:
522
- return p + e + S + m(e, "shrink", "negative") + e;
526
+ return p + e + S + f(e, "shrink", "negative") + e;
523
527
  // flex-basis
524
528
  case 5292:
525
- return p + e + S + m(e, "basis", "preferred-size") + e;
529
+ return p + e + S + f(e, "basis", "preferred-size") + e;
526
530
  // flex-grow
527
531
  case 6060:
528
- return p + "box-" + m(e, "-grow", "") + p + e + S + m(e, "grow", "positive") + e;
532
+ return p + "box-" + f(e, "-grow", "") + p + e + S + f(e, "grow", "positive") + e;
529
533
  // transition
530
534
  case 4554:
531
- return p + m(e, /([^-])(transform)/g, "$1" + p + "$2") + e;
535
+ return p + f(e, /([^-])(transform)/g, "$1" + p + "$2") + e;
532
536
  // cursor
533
537
  case 6187:
534
- return m(m(m(e, /(zoom-|grab)/, p + "$1"), /(image-set)/, p + "$1"), e, "") + e;
538
+ return f(f(f(e, /(zoom-|grab)/, p + "$1"), /(image-set)/, p + "$1"), e, "") + e;
535
539
  // background, background-image
536
540
  case 5495:
537
541
  case 3959:
538
- return m(e, /(image-set\([^]*)/, p + "$1$`$1");
542
+ return f(e, /(image-set\([^]*)/, p + "$1$`$1");
539
543
  // justify-content
540
544
  case 4968:
541
- return m(m(e, /(.+:)(flex-)?(.*)/, p + "box-pack:$3" + S + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + p + e + e;
545
+ return f(f(e, /(.+:)(flex-)?(.*)/, p + "box-pack:$3" + S + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + p + e + e;
542
546
  // (margin|padding)-inline-(start|end)
543
547
  case 4095:
544
548
  case 3583:
545
549
  case 4068:
546
550
  case 2532:
547
- return m(e, /(.+)-inline(.+)/, p + "$1$2") + e;
551
+ return f(e, /(.+)-inline(.+)/, p + "$1$2") + e;
548
552
  // (min|max)?(width|height|inline-size|block-size)
549
553
  case 8116:
550
554
  case 7059:
@@ -558,16 +562,16 @@ function Oe(e, t) {
558
562
  case 5789:
559
563
  case 5021:
560
564
  case 4765:
561
- if (T(e) - 1 - t > 6) switch (I(e, t + 1)) {
565
+ if (H(e) - 1 - t > 6) switch (I(e, t + 1)) {
562
566
  // (m)ax-content, (m)in-content
563
567
  case 109:
564
568
  if (I(e, t + 4) !== 45) break;
565
569
  // (f)ill-available, (f)it-content
566
570
  case 102:
567
- return m(e, /(.+:)(.+)-([^]+)/, "$1" + p + "$2-$3$1" + te + (I(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
571
+ return f(e, /(.+:)(.+)-([^]+)/, "$1" + p + "$2-$3$1" + o2 + (I(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
568
572
  // (s)tretch
569
573
  case 115:
570
- return ~ae(e, "stretch") ? Oe(m(e, "stretch", "fill-available"), t) + e : e;
574
+ return ~u2(e, "stretch") ? de(f(e, "stretch", "fill-available"), t) + e : e;
571
575
  }
572
576
  break;
573
577
  // position: sticky
@@ -575,13 +579,13 @@ function Oe(e, t) {
575
579
  if (I(e, t + 1) !== 115) break;
576
580
  // display: (flex|inline-flex)
577
581
  case 6444:
578
- switch (I(e, T(e) - 3 - (~ae(e, "!important") && 10))) {
582
+ switch (I(e, H(e) - 3 - (~u2(e, "!important") && 10))) {
579
583
  // stic(k)y
580
584
  case 107:
581
- return m(e, ":", ":" + p) + e;
585
+ return f(e, ":", ":" + p) + e;
582
586
  // (inline-)?fl(e)x
583
587
  case 101:
584
- return m(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + p + (I(e, 14) === 45 ? "inline-" : "") + "box$3$1" + p + "$2$3$1" + S + "$2box$3") + e;
588
+ return f(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + p + (I(e, 14) === 45 ? "inline-" : "") + "box$3$1" + p + "$2$3$1" + S + "$2box$3") + e;
585
589
  }
586
590
  break;
587
591
  // writing-mode
@@ -589,155 +593,155 @@ function Oe(e, t) {
589
593
  switch (I(e, t + 11)) {
590
594
  // vertical-l(r)
591
595
  case 114:
592
- return p + e + S + m(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
596
+ return p + e + S + f(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
593
597
  // vertical-r(l)
594
598
  case 108:
595
- return p + e + S + m(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
599
+ return p + e + S + f(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
596
600
  // horizontal(-)tb
597
601
  case 45:
598
- return p + e + S + m(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
602
+ return p + e + S + f(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
599
603
  }
600
604
  return p + e + S + e + e;
601
605
  }
602
606
  return e;
603
607
  }
604
- var zr = function(t, s, r, i) {
608
+ var et = function(t, o, n, i) {
605
609
  if (t.length > -1 && !t.return) switch (t.type) {
606
- case he:
607
- t.return = Oe(t.value, t.length);
610
+ case m2:
611
+ t.return = de(t.value, t.length);
608
612
  break;
609
- case De:
610
- return H([z(t, {
611
- value: m(t.value, "@", "@" + p)
613
+ case se:
614
+ return O([U(t, {
615
+ value: f(t.value, "@", "@" + p)
612
616
  })], i);
613
- case de:
614
- if (t.length) return Er(t.props, function(o) {
615
- switch (Ir(o, /(::plac\w+|:read-\w+)/)) {
617
+ case g2:
618
+ if (t.length) return _1(t.props, function(s) {
619
+ switch (B1(s, /(::plac\w+|:read-\w+)/)) {
616
620
  // :read-(only|write)
617
621
  case ":read-only":
618
622
  case ":read-write":
619
- return H([z(t, {
620
- props: [m(o, /:(read-\w+)/, ":" + te + "$1")]
623
+ return O([U(t, {
624
+ props: [f(s, /:(read-\w+)/, ":" + o2 + "$1")]
621
625
  })], i);
622
626
  // :placeholder
623
627
  case "::placeholder":
624
- return H([z(t, {
625
- props: [m(o, /:(plac\w+)/, ":" + p + "input-$1")]
626
- }), z(t, {
627
- props: [m(o, /:(plac\w+)/, ":" + te + "$1")]
628
- }), z(t, {
629
- props: [m(o, /:(plac\w+)/, S + "input-$1")]
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")]
630
634
  })], i);
631
635
  }
632
636
  return "";
633
637
  });
634
638
  }
635
- }, Gr = [zr], qr = function(t) {
636
- var s = t.key;
637
- if (s === "css") {
638
- var r = document.querySelectorAll("style[data-emotion]:not([data-s])");
639
- Array.prototype.forEach.call(r, function(d) {
640
- var y = d.getAttribute("data-emotion");
641
- y.indexOf(" ") !== -1 && (document.head.appendChild(d), d.setAttribute("data-s", ""));
639
+ }, tt = [et], rt = function(t) {
640
+ var o = t.key;
641
+ if (o === "css") {
642
+ 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", ""));
642
646
  });
643
647
  }
644
- var i = t.stylisPlugins || Gr, o = {}, h, c = [];
645
- h = t.container || document.head, Array.prototype.forEach.call(
648
+ var i = t.stylisPlugins || tt, s = {}, u, c = [];
649
+ u = t.container || document.head, Array.prototype.forEach.call(
646
650
  // this means we will ignore elements which don't have a space in them which
647
651
  // means that the style elements we're looking at are only Emotion 11 server-rendered style elements
648
- document.querySelectorAll('style[data-emotion^="' + s + ' "]'),
652
+ document.querySelectorAll('style[data-emotion^="' + o + ' "]'),
649
653
  function(d) {
650
- for (var y = d.getAttribute("data-emotion").split(" "), g = 1; g < y.length; g++)
651
- o[y[g]] = !0;
654
+ for (var M = d.getAttribute("data-emotion").split(" "), v = 1; v < M.length; v++)
655
+ s[M[v]] = !0;
652
656
  c.push(d);
653
657
  }
654
658
  );
655
- var u, b = [Vr, _r];
659
+ var w, x = [K1, J1];
656
660
  {
657
- var l, a = [Dr, Fr(function(d) {
661
+ var l, a = [U1, q1(function(d) {
658
662
  l.insert(d);
659
- })], f = Br(b.concat(i, a)), v = function(y) {
660
- return H(Tr(y), f);
663
+ })], m = W1(x.concat(i, a)), k = function(M) {
664
+ return O(F1(M), m);
661
665
  };
662
- u = function(y, g, x, M) {
663
- l = x, v(y ? y + "{" + g.styles + "}" : g.styles), M && (w.inserted[g.name] = !0);
666
+ w = function(M, v, y, T) {
667
+ l = y, k(M ? M + "{" + v.styles + "}" : v.styles), T && (h.inserted[v.name] = !0);
664
668
  };
665
669
  }
666
- var w = {
667
- key: s,
668
- sheet: new br({
669
- key: s,
670
- container: h,
670
+ var h = {
671
+ key: o,
672
+ sheet: new T1({
673
+ key: o,
674
+ container: u,
671
675
  nonce: t.nonce,
672
676
  speedy: t.speedy,
673
677
  prepend: t.prepend,
674
678
  insertionPoint: t.insertionPoint
675
679
  }),
676
680
  nonce: t.nonce,
677
- inserted: o,
681
+ inserted: s,
678
682
  registered: {},
679
- insert: u
683
+ insert: w
680
684
  };
681
- return w.sheet.hydrate(c), w;
685
+ return h.sheet.hydrate(c), h;
682
686
  };
683
- const Ve = ({ children: e, viewport: t, containerProps: s }) => {
684
- const r = Se(null), { theme: i } = re(), [o, h] = O({
687
+ const he = ({ children: e, viewport: t, containerProps: o }) => {
688
+ const n = q2(null), { theme: i } = s2(), [s, u] = G({
685
689
  width: 0,
686
690
  height: 0
687
691
  });
688
- G(() => {
689
- const w = bt((y) => {
690
- const g = y.at(0)?.target;
691
- if (!g) return;
692
- const { width: x, height: M } = g.getBoundingClientRect();
693
- h(() => ({
694
- width: x,
695
- height: M
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
696
700
  }));
697
- }, 200), d = new ResizeObserver(w);
698
- return r.current && d.observe(r.current), () => d.disconnect();
701
+ }, 200), d = new ResizeObserver(h);
702
+ return n.current && d.observe(n.current), () => d.disconnect();
699
703
  }, []);
700
- const c = pe(t?.width) ? t.width(o.width) : t?.width, u = pe(t?.height) ? t.height(o.height) : t?.height, b = me(c) ? o.width / c : 1, l = me(u) ? o.height / u : 1, a = Math.min(b, l, 1), f = (u ?? o.height / a) || 0, v = (c ?? o.width / a) || 0;
701
- return /* @__PURE__ */ n("div", { ...s, className: P("tw:w-full tw:h-full tw:p-2 tw:bg-ic-ink-1s", s?.className), children: /* @__PURE__ */ n("div", { className: P("tw:w-full tw:h-full tw:overflow-hidden tw:relative"), ref: r, children: /* @__PURE__ */ n(
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
706
  "div",
703
707
  {
704
708
  style: {
705
709
  transform: `scale(${a})`,
706
- width: v,
707
- height: f,
708
- marginLeft: (o.width - v) / 2,
709
- marginTop: (o.height - f) / 2
710
+ width: k,
711
+ height: m,
712
+ marginLeft: (s.width - k) / 2,
713
+ marginTop: (s.height - m) / 2
710
714
  },
711
715
  className: "tw:absolute",
712
- children: /* @__PURE__ */ n(
713
- ar,
716
+ children: /* @__PURE__ */ r(
717
+ C1,
714
718
  {
715
719
  sandbox: "allow-same-origin allow-scripts allow-popups allow-presentation",
716
720
  allow: "autoplay; encrypted-media",
717
721
  width: c ?? "100%",
718
- height: u ?? "100%",
719
- children: /* @__PURE__ */ n(Ur, { theme: i, children: e })
722
+ height: w ?? "100%",
723
+ children: /* @__PURE__ */ r(nt, { theme: i, children: e })
720
724
  }
721
725
  )
722
726
  }
723
727
  ) }) });
724
- }, Ur = ({ children: e, theme: t }) => {
725
- const { document: s, window: r } = lr(), [i, o] = O(!1), h = Se(window.customElements.define.bind(window.customElements));
726
- G(() => {
727
- const u = h.current;
728
- return r && (window.customElements.define = function(b, l, a) {
729
- window.customElements.get(b) || r.customElements.define(b, l, a), u(b, l, a);
730
- }), s?.head.replaceWith(document.head.cloneNode(!0)), o(!0), () => {
731
- window.customElements.define = u;
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);
734
+ }), o?.head.replaceWith(document.head.cloneNode(!0)), s(!0), () => {
735
+ window.customElements.define = w;
732
736
  };
733
- }, [s, r]);
734
- const c = qr({
737
+ }, [o, n]);
738
+ const c = rt({
735
739
  key: "css",
736
- container: s?.head
740
+ container: o?.head
737
741
  });
738
- return i ? /* @__PURE__ */ n(ye, { children: /* @__PURE__ */ k(dr, { value: c, children: [
739
- /* @__PURE__ */ n(
740
- hr,
742
+ return i ? /* @__PURE__ */ r(V2, { children: /* @__PURE__ */ g(f1, { value: c, children: [
743
+ /* @__PURE__ */ r(
744
+ g1,
741
745
  {
742
746
  styles: {
743
747
  ".frame-content": {
@@ -746,60 +750,61 @@ const Ve = ({ children: e, viewport: t, containerProps: s }) => {
746
750
  minHeight: "100vh",
747
751
  justifyContent: "center"
748
752
  },
749
- [`& *[${we.DATA_NODE_DROP_TARGET}=${fe.True}]`]: {
753
+ [`& *[${v2.DATA_NODE_DROP_TARGET}=${x2.True}]`]: {
750
754
  outlineWidth: 1,
751
755
  outlineStyle: "solid",
752
756
  outlineOffset: -1,
753
757
  outlineColor: "green"
754
758
  },
755
- [`& *[${we.DATA_NODE_DROP_TARGET_ERROR}=${fe.True}]`]: {
759
+ [`& *[${v2.DATA_NODE_DROP_TARGET_ERROR}=${x2.True}]`]: {
756
760
  outlineColor: "red"
757
761
  }
758
762
  }
759
763
  }
760
764
  ),
761
- /* @__PURE__ */ n(Qt, { theme: t, children: e })
765
+ /* @__PURE__ */ r(Ye, { theme: t, children: e })
762
766
  ] }) }) : null;
763
- }, Zr = ({ render: e }) => {
764
- const { id: t, renderer: s } = gt((o) => ({
765
- resolvedId: Ge(o),
766
- renderer: ze(o).renderer
767
+ }, ot = ({ render: e }) => {
768
+ const { id: t, renderer: o } = xe((s) => ({
769
+ resolvedId: Ne(s),
770
+ renderer: ye(s).renderer
767
771
  })), {
768
- queryParams: { mode: r }
769
- } = ne(), { isActive: i } = F((o, h) => ({
770
- isActive: h.getEvent("selected").contains(t) && t !== W
772
+ queryParams: { mode: n }
773
+ } = i2(), { isActive: i } = $((s, u) => ({
774
+ isActive: u.getEvent("selected").contains(t) && t !== D
771
775
  }));
772
- return s ? Me(s, { render: e }) : /* @__PURE__ */ k(ee, { children: [
773
- i && r === "full" && /* @__PURE__ */ k(ee, { children: [
774
- /* @__PURE__ */ n(Ct, {}),
775
- /* @__PURE__ */ n(xt, {})
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, {})
776
780
  ] }),
777
781
  e
778
782
  ] });
779
783
  };
780
- L(qe, { inspector: yt, renderer: Nt });
781
- L(Ue, { inspector: It, renderer: Lt });
782
- L(Ze, { inspector: Et });
783
- L(Qe, { inspector: St });
784
- L(Ye, { inspector: Mt });
785
- L(Xe, { inspector: Rt });
786
- L(Ke, { inspector: $t });
787
- L(Je, { inspector: At });
788
- L(et, { inspector: jt });
789
- L(tt, { inspector: Tt });
790
- L(rt, { inspector: Pt });
791
- L(nt, { inspector: Dt });
792
- L(st, { inspector: Bt });
793
- L(ot, { inspector: Ft });
794
- L(it, { inspector: Wt });
795
- L(ct, { inspector: Ht });
796
- L(at, { inspector: Ot });
797
- L(lt, { inspector: Vt });
798
- const Ne = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
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">
799
804
  <path d="M8 5L5 8L8 11" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
800
805
  <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"/>
801
806
  </svg>
802
- `, Qr = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
807
+ `, st = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
803
808
  <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"/>
804
809
  <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"/>
805
810
  <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"/>
@@ -807,200 +812,697 @@ const Ne = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
807
812
  <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"/>
808
813
  <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"/>
809
814
  </svg>
810
- `, Yr = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
815
+ `, it = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
811
816
  <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"/>
812
817
  <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"/>
813
818
  </svg>
814
- `, Xr = '<svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" class=""><path d="M9.75 3C8.50736 3 7.5 4.00736 7.5 5.25C7.5 5.66421 7.83579 6 8.25 6C8.66421 6 9 5.66421 9 5.25C9 4.83579 9.33579 4.5 9.75 4.5H13.75C14.1642 4.5 14.5 4.83579 14.5 5.25V14.75C14.5 15.1642 14.1642 15.5 13.75 15.5H9.75C9.33579 15.5 9 15.1642 9 14.75C9 14.3358 8.66421 14 8.25 14C7.83579 14 7.5 14.3358 7.5 14.75C7.5 15.9926 8.50736 17 9.75 17H13.75C14.9926 17 16 15.9926 16 14.75V5.25C16 4.00736 14.9926 3 13.75 3H9.75Z" fill="currentColor"></path><path d="M12.25 10.75C12.6642 10.75 13 10.4142 13 10C13 9.58579 12.6642 9.25 12.25 9.25L6.56066 9.25L7.53033 8.28033C7.82322 7.98744 7.82322 7.51256 7.53033 7.21967C7.23744 6.92678 6.76256 6.92678 6.46967 7.21967L4.21967 9.46967C4.07902 9.61032 4 9.80109 4 10C4 10.1989 4.07902 10.3897 4.21967 10.5303L6.46967 12.7803C6.76256 13.0732 7.23744 13.0732 7.53033 12.7803C7.82322 12.4874 7.82322 12.0126 7.53033 11.7197L6.56066 10.75H12.25Z" fill="currentColor"></path></svg>', Kr = () => {
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 = () => {
815
820
  const {
816
821
  queryParams: { mode: e, screen: t },
817
- setQueryParams: s
818
- } = ne(), [r, i] = O(!1), { handlers: o } = re(), { actions: h, canRedo: c, canUndo: u, query: b } = F((w, d) => ({
819
- enabled: w.options.enabled,
822
+ setQueryParams: o
823
+ } = i2(), [n, i] = G(!1), { handlers: s } = s2(), { actions: u, canRedo: c, canUndo: w, query: x } = $((h, d) => ({
824
+ enabled: h.options.enabled,
820
825
  canUndo: d.history.canUndo(),
821
826
  canRedo: d.history.canRedo()
822
- })), l = (w) => {
823
- s({
824
- screen: w
827
+ })), l = (h) => {
828
+ o({
829
+ screen: h
825
830
  });
826
831
  }, a = () => {
827
- s({ mode: e === "full" ? "compact" : "full" });
828
- }, f = () => {
829
- o.close();
830
- }, v = async () => {
832
+ o({ mode: e === "full" ? "compact" : "full" });
833
+ }, m = () => {
834
+ s.close();
835
+ }, k = async () => {
831
836
  try {
832
- return h.selectNode(), o.submit(b.getSerializedNodes());
837
+ return u.selectNode(), s.submit(x.getSerializedNodes());
833
838
  } catch {
834
839
  } finally {
835
840
  i(!1);
836
841
  }
837
842
  };
838
- return /* @__PURE__ */ k(
843
+ return /* @__PURE__ */ g(
839
844
  "div",
840
845
  {
841
- className: P(
846
+ className: B(
842
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"
843
848
  ),
844
849
  children: [
845
- /* @__PURE__ */ k("div", { className: "tw:flex tw:items-center tw:gap-3", children: [
846
- /* @__PURE__ */ n(A, { size: "32", onClick: f, children: /* @__PURE__ */ n(E, { source: Xr }) }),
847
- /* @__PURE__ */ n(_t, { onSelectionChange: l, value: t, children: zt.map(({ icon: w, size: d }) => /* @__PURE__ */ n(A, { value: d, children: /* @__PURE__ */ n(E, { source: w }) }, d)) }),
848
- /* @__PURE__ */ k("div", { className: "tw:p-1 tw:flex tw:items-center tw:gap-2 tw:bg-ic-white-1s tw:rounded-lg", children: [
849
- /* @__PURE__ */ n(A, { onClick: h.history.undo, disabled: !u, children: /* @__PURE__ */ n(E, { source: Ne }) }),
850
- /* @__PURE__ */ n(A, { onClick: h.history.redo, disabled: !c, children: /* @__PURE__ */ n(E, { source: Ne, className: "tw:rotate-180" }) })
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" }) })
851
856
  ] }),
852
- /* @__PURE__ */ n("div", { className: "tw:p-1 tw:flex tw:items-center tw:gap-2 tw:bg-ic-white-1s tw:rounded-lg", children: /* @__PURE__ */ n(A, { onClick: a, children: /* @__PURE__ */ n(E, { source: e === "full" ? Yr : Qr }) }) })
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 }) }) })
853
858
  ] }),
854
- /* @__PURE__ */ n("div", { className: "tw:flex tw:items-center tw:gap-3", children: /* @__PURE__ */ n(Le, { isLoading: r, onClick: v, children: "Save" }) })
859
+ /* @__PURE__ */ r("div", { className: "tw:flex tw:items-center tw:gap-3", children: /* @__PURE__ */ r(K2, { isLoading: n, onClick: k, children: "Save" }) })
855
860
  ]
856
861
  }
857
862
  );
858
- }, Jr = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
863
+ }, lt = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
859
864
  <path d="M20 19.9997L16.3763 16.376" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
860
865
  <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"/>
861
866
  </svg>
862
- `, en = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
867
+ `, dt = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
863
868
  <path d="M15 6L9 12L15 18" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
864
869
  </svg>
865
- `, tn = ({ elements: e, sections: t }) => /* @__PURE__ */ k("div", { className: "tw:flex tw:flex-col tw:h-full", children: [
866
- /* @__PURE__ */ n("div", { className: "tw:flex tw:items-center tw:p-2 tw:gap-3", children: /* @__PURE__ */ n(Ie, { fullWidth: !0, placeholder: "Search...", prefix: /* @__PURE__ */ n(E, { source: Jr }) }) }),
867
- /* @__PURE__ */ k(Gt, { defaultIndex: 1, className: "tw:flex-1 tw:overflow-hidden tw:border-t tw:border-ic-white-1s", children: [
868
- /* @__PURE__ */ k(qt, { children: [
869
- /* @__PURE__ */ n(ge, { className: "tw:flex-1", children: "Sections" }),
870
- /* @__PURE__ */ n(ge, { className: "tw:flex-1", children: "Elements" })
871
- ] }),
872
- /* @__PURE__ */ k(Ut, { className: "tw:flex-1 tw:overflow-hidden", children: [
873
- /* @__PURE__ */ n(ke, { children: /* @__PURE__ */ n(ce, { className: "tw:h-full tw:py-2", children: t?.map((s, r) => /* @__PURE__ */ n(nn, { group: s }, r)) }) }),
874
- /* @__PURE__ */ n(ke, { className: "tw:h-full tw:overflow-hidden", children: /* @__PURE__ */ n(ce, { className: "tw:h-full tw:py-2", children: e?.map((s, r) => /* @__PURE__ */ n(rn, { group: s }, r)) }) })
875
- ] })
876
- ] })
877
- ] }), rn = ({ group: e }) => {
878
- const [t, s] = Te(!0), { actions: r, connectors: i } = F();
879
- return /* @__PURE__ */ k("div", { className: "tw:flex tw:flex-col tw:text-sm", children: [
880
- /* @__PURE__ */ n(Le, { onClick: s, className: "tw:bg-transparent", children: /* @__PURE__ */ k("div", { className: "tw:flex tw:items-center tw:justify-between tw:flex-1 tw:text-sm", children: [
870
+ `, ht = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
871
+ <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
+ <path d="M13.5 20.9998V12" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
873
+ <path d="M9.50011 11.9998V3" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
874
+ <path d="M20.9999 12H3.00024" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
875
+ </svg>
876
+ `, ut = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
877
+ <rect x="3" y="3" width="18" height="18" rx="2" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
878
+ <path d="M3 12H21" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
879
+ <path d="M12 21V3" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
880
+ </svg>
881
+ `, T2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
882
+ <path d="M3 6V18" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
883
+ <path d="M21 6V18" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
884
+ <path d="M6 21H18" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
885
+ <path d="M6 3H18" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
886
+ </svg>
887
+ `, wt = {
888
+ name: "Layout",
889
+ templates: [
890
+ {
891
+ name: "Container",
892
+ template: /* @__PURE__ */ r(C, { is: F2 }),
893
+ icon: { source: T2, height: 32 }
894
+ },
895
+ {
896
+ name: "Block",
897
+ template: /* @__PURE__ */ r(C, { is: D2 }),
898
+ icon: { source: T2, height: 32 }
899
+ },
900
+ {
901
+ name: "Grid",
902
+ template: /* @__PURE__ */ g(
903
+ C,
904
+ {
905
+ cols: 2,
906
+ sx: {
907
+ width: "100%",
908
+ columnGap: 8,
909
+ rowGap: 8,
910
+ paddingTop: 16,
911
+ paddingBottom: 16
912
+ },
913
+ is: R2,
914
+ children: [
915
+ /* @__PURE__ */ r(C, { is: d2, canvas: !0 }),
916
+ /* @__PURE__ */ r(C, { is: d2, canvas: !0 })
917
+ ]
918
+ }
919
+ ),
920
+ icon: { source: ut, height: 32 }
921
+ },
922
+ {
923
+ name: "Flex",
924
+ template: /* @__PURE__ */ g(C, { is: H2, sx: { columnGap: 8, rowGap: 8, paddingTop: 16, paddingBottom: 16 }, children: [
925
+ /* @__PURE__ */ r(
926
+ C,
927
+ {
928
+ sx: {
929
+ width: "40%"
930
+ },
931
+ is: h2,
932
+ canvas: !0
933
+ }
934
+ ),
935
+ /* @__PURE__ */ r(
936
+ C,
937
+ {
938
+ sx: {
939
+ width: "60%"
940
+ },
941
+ is: h2,
942
+ canvas: !0
943
+ }
944
+ )
945
+ ] }),
946
+ icon: { source: ht, height: 32 }
947
+ }
948
+ ]
949
+ }, Ct = `<svg width="98" height="56" viewBox="0 0 98 56" fill="none" xmlns="http://www.w3.org/2000/svg">
950
+ <rect x="4" y="4" width="57" height="6" rx="3" fill="currentColor"></rect>
951
+ <rect x="2" y="4" width="57" height="6" rx="3" fill="currentColor"></rect>
952
+ <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>
953
+ <rect x="4" y="25" width="57" height="6" rx="3" fill="currentColor"></rect>
954
+ <rect x="2" y="25" width="57" height="6" rx="3" fill="currentColor"></rect>
955
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M86.1302 26.6172C86.3037 26.4609 86.5851 26.4609 86.7587 26.6172L90 29.5343L93.2413 26.6172C93.4149 26.4609 93.6963 26.4609 93.8698 26.6172C94.0434 26.7734 94.0434 27.0266 93.8698 27.1828L90.3143 30.3828C90.1407 30.5391 89.8593 30.5391 89.6857 30.3828L86.1302 27.1828C85.9566 27.0266 85.9566 26.7734 86.1302 26.6172Z" fill="currentColor"></path>
956
+ <rect x="4" y="46" width="57" height="6" rx="3" fill="currentColor"></rect>
957
+ <rect x="2" y="46" width="57" height="6" rx="3" fill="currentColor"></rect>
958
+ <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 = {
960
+ name: "Content list",
961
+ templates: [
962
+ {
963
+ name: "Accordion",
964
+ template: /* @__PURE__ */ r(
965
+ C,
966
+ {
967
+ is: O2,
968
+ accordionSummaryProps: {
969
+ sx: {
970
+ paddingTop: 8,
971
+ paddingBottom: 8
972
+ },
973
+ expandIcon: {
974
+ position: "right",
975
+ source: {
976
+ expanded: ft,
977
+ collapsed: pt
978
+ }
979
+ }
980
+ },
981
+ accordionContentProps: {
982
+ sx: {
983
+ paddingTop: 4,
984
+ paddingBottom: 12
985
+ }
986
+ },
987
+ 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,
991
+ {
992
+ sizeVariant: "base",
993
+ is: r2,
994
+ dangerouslySetInnerHTML: { __html: `Accordion ${e + 1}` }
995
+ }
996
+ ) }),
997
+ /* @__PURE__ */ r(C, { is: pe, children: /* @__PURE__ */ r(
998
+ C,
999
+ {
1000
+ sx: {
1001
+ paddingTop: 8,
1002
+ paddingBottom: 8
1003
+ },
1004
+ is: r2,
1005
+ dangerouslySetInnerHTML: {
1006
+ __html: `Content for accordion ${e + 1}`
1007
+ }
1008
+ }
1009
+ ) })
1010
+ ] }, e))
1011
+ }
1012
+ ),
1013
+ icon: { source: Ct, height: 40 }
1014
+ }
1015
+ ]
1016
+ }, C2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
1017
+ <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
+ <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
+ </svg>
1020
+ `, mt = {
1021
+ name: "Interactive",
1022
+ templates: [
1023
+ {
1024
+ name: "Carousel",
1025
+ template: /* @__PURE__ */ r(
1026
+ C,
1027
+ {
1028
+ is: p2,
1029
+ slidesPerView: 2,
1030
+ spaceBetween: 8,
1031
+ md: {
1032
+ slidesPerView: 3
1033
+ },
1034
+ lg: {
1035
+ slidesPerView: 4
1036
+ },
1037
+ children: Z(6).map((e) => /* @__PURE__ */ r(
1038
+ C,
1039
+ {
1040
+ custom: {
1041
+ displayName: `Slide ${e + 1}`
1042
+ },
1043
+ is: z2,
1044
+ canvas: !0
1045
+ },
1046
+ e
1047
+ ))
1048
+ }
1049
+ ),
1050
+ icon: { source: C2, height: 32 }
1051
+ },
1052
+ {
1053
+ name: "Marquee",
1054
+ template: /* @__PURE__ */ r(C, { is: f2, children: Z(10).map((e) => /* @__PURE__ */ r(
1055
+ C,
1056
+ {
1057
+ canvas: !0,
1058
+ custom: {
1059
+ displayName: `Marquee Item ${e + 1}`
1060
+ },
1061
+ is: U2
1062
+ },
1063
+ e
1064
+ )) }),
1065
+ icon: { source: C2, height: 32 }
1066
+ }
1067
+ ]
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">
1069
+ <style type="text/css">
1070
+ .st0{fill:currentColor;}
1071
+ </style>
1072
+ <g>
1073
+ <path class="st0" d="M378.409,0H208.294h-13.176l-9.314,9.315L57.017,138.101l-9.314,9.315v13.176v265.513
1074
+ c0,47.36,38.528,85.896,85.895,85.896h244.811c47.361,0,85.888-38.535,85.888-85.896V85.896C464.297,38.528,425.77,0,378.409,0z
1075
+ M432.493,426.104c0,29.877-24.214,54.091-54.084,54.091H133.598c-29.877,0-54.091-24.214-54.091-54.091V160.592h83.717
1076
+ c24.884,0,45.07-20.179,45.07-45.071V31.804h170.114c29.87,0,54.084,24.214,54.084,54.091V426.104z"/>
1077
+ <path class="st0" d="M180.296,296.668l-4.846-0.67c-10.63-1.487-14.265-4.978-14.265-10.104c0-5.78,4.309-9.817,12.383-9.817
1078
+ c5.653,0,11.305,1.62,15.745,3.764c1.886,0.942,3.903,1.487,5.789,1.487c4.845,0,8.612-3.63,8.612-8.616
1079
+ c0-3.226-1.481-5.921-4.71-7.939c-5.384-3.372-15.476-6.06-25.572-6.06c-19.781,0-32.436,11.171-32.436,27.998
1080
+ c0,16.15,10.232,24.898,28.938,27.454l4.846,0.67c10.903,1.48,14.129,4.846,14.129,10.229c0,6.326-5.247,10.766-14.939,10.766
1081
+ c-6.727,0-12.111-1.745-19.645-5.921c-1.616-0.942-3.634-1.62-5.788-1.62c-5.115,0-8.885,3.91-8.885,8.756
1082
+ c0,3.226,1.616,6.326,4.713,8.344c6.054,3.764,15.878,7.8,28.798,7.8c23.823,0,35.934-12.24,35.934-28.795
1083
+ C209.097,307.84,199.273,299.356,180.296,296.668z"/>
1084
+ <path class="st0" d="M281.108,259.382c-4.577,0-7.939,2.43-9.556,7.674l-16.69,54.51h-0.402l-17.634-54.51
1085
+ c-1.745-5.244-4.978-7.674-9.551-7.674c-5.653,0-9.692,4.176-9.692,9.287c0,1.347,0.269,2.834,0.67,4.175l23.286,68.104
1086
+ c2.96,8.477,6.727,11.57,12.652,11.57c5.785,0,9.555-3.093,12.516-11.57l23.282-68.104c0.406-1.341,0.674-2.828,0.674-4.175
1087
+ C290.664,263.558,286.76,259.382,281.108,259.382z"/>
1088
+ <path class="st0" d="M364.556,300.836h-18.841c-5.114,0-8.344,3.1-8.344,7.806c0,4.713,3.23,7.814,8.344,7.814h6.193
1089
+ c0.538,0,0.803,0.258,0.803,0.803c0,3.505-0.265,6.598-1.075,9.014c-1.882,5.796-7.67,9.426-14.669,9.426
1090
+ c-7.943,0-12.921-3.903-14.939-10.096c-1.075-3.365-1.48-7.8-1.48-19.648c0-11.842,0.405-16.15,1.48-19.516
1091
+ c2.018-6.325,6.867-10.228,14.67-10.228c5.924,0,10.362,1.885,13.859,6.724c2.695,3.777,5.387,4.852,8.749,4.852
1092
+ c4.981,0,9.021-3.638,9.021-8.888c0-2.151-0.674-4.035-1.752-5.921c-4.842-8.204-15.071-14.264-29.877-14.264
1093
+ c-16.287,0-28.935,7.408-33.644,22.204c-2.022,6.466-2.559,11.576-2.559,25.038c0,13.454,0.538,18.573,2.559,25.031
1094
+ 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
+ C372.362,303.664,369.538,300.836,364.556,300.836z"/>
1096
+ </g>
1097
+ </svg>`, vt = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
1098
+ <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
+ <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
+ <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
+ <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
+ </svg>
1103
+ `, xt = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
1104
+ <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
+ <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
+ <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
+ <path d="M21 20H9" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
1108
+ <path d="M3 20H6" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
1109
+ </svg>
1110
+ `, bt = {
1111
+ name: "Media",
1112
+ templates: [
1113
+ {
1114
+ 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 }
1117
+ },
1118
+ {
1119
+ name: "Video",
1120
+ template: /* @__PURE__ */ r(
1121
+ A2,
1122
+ {
1123
+ sx: {
1124
+ aspectRatio: "16 / 9"
1125
+ },
1126
+ src: "https://cdn.shopify.com/videos/c/o/v/2cd3deb506b54b009063f7270ab5cf2e.mp4"
1127
+ }
1128
+ ),
1129
+ icon: { source: xt, height: 32 }
1130
+ },
1131
+ {
1132
+ name: "Icon",
1133
+ template: /* @__PURE__ */ r(C, { source: C2, is: P2 }),
1134
+ icon: { source: kt, height: 32 }
1135
+ }
1136
+ ]
1137
+ }, yt = `<svg width="24" height="24" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg">
1138
+ <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">
1140
+ <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
+ <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
+ <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">
1144
+ <g clip-path="url(#clip0_10250_27631)">
1145
+ <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
+ <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>
1147
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M48.1452 28C46.9604 28 46 28.9604 46 30.1452V49.8548C46 51.0396 46.9604 52 48.1452 52H81.8548C83.0396 52 84 51.0396 84 49.8548V30.1452C84 28.9604 83.0396 28 81.8548 28H48.1452ZM67.4204 37.493C67.2399 37.2145 66.9431 37.05 66.6263 37.05C66.3094 37.05 66.0086 37.2145 65.8321 37.493L62.3426 42.8761L61.2797 41.4797C61.0952 41.2392 60.8184 41.1 60.5296 41.1C60.2408 41.1 59.9601 41.2392 59.7796 41.4797L57.2126 44.8547C56.9799 45.1584 56.9358 45.5761 57.0963 45.9262C57.2567 46.2764 57.5936 46.5 57.9626 46.5H71.4394C71.7964 46.5 72.1253 46.2933 72.2897 45.96C72.4542 45.6267 72.4341 45.2259 72.2336 44.918L67.4204 37.493ZM58.9253 37.05C59.4359 37.05 59.9256 36.8366 60.2866 36.4569C60.6477 36.0771 60.8505 35.5621 60.8505 35.025C60.8505 34.4879 60.6477 33.9729 60.2866 33.5931C59.9256 33.2134 59.4359 33 58.9253 33C58.4146 33 57.9249 33.2134 57.5639 33.5931C57.2028 33.9729 57 34.4879 57 35.025C57 35.5621 57.2028 36.0771 57.5639 36.4569C57.9249 36.8366 58.4146 37.05 58.9253 37.05Z" fill="currentColor"></path>
1148
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M96.1452 28C94.9604 28 94 28.9604 94 30.1452V49.8548C94 51.0396 94.9604 52 96.1452 52H129.855C131.04 52 132 51.0396 132 49.8548V30.1452C132 28.9604 131.04 28 129.855 28H96.1452ZM115.42 37.493C115.24 37.2145 114.943 37.05 114.626 37.05C114.309 37.05 114.009 37.2145 113.832 37.493L110.343 42.8761L109.28 41.4797C109.095 41.2392 108.818 41.1 108.53 41.1C108.241 41.1 107.96 41.2392 107.78 41.4797L105.213 44.8547C104.98 45.1584 104.936 45.5761 105.096 45.9262C105.257 46.2764 105.594 46.5 105.963 46.5H119.439C119.796 46.5 120.125 46.2933 120.29 45.96C120.454 45.6267 120.434 45.2259 120.234 44.918L115.42 37.493ZM106.925 37.05C107.436 37.05 107.926 36.8366 108.287 36.4569C108.648 36.0771 108.851 35.5621 108.851 35.025C108.851 34.4879 108.648 33.9729 108.287 33.5931C107.926 33.2134 107.436 33 106.925 33C106.415 33 105.925 33.2134 105.564 33.5931C105.203 33.9729 105 34.4879 105 35.025C105 35.5621 105.203 36.0771 105.564 36.4569C105.925 36.8366 106.415 37.05 106.925 37.05Z" fill="url(#paint1_linear_10250_27631)"></path>
1149
+ </g>
1150
+ <defs>
1151
+ <linearGradient id="paint0_linear_10250_27631" x1="-0.190476" y1="40" x2="36" y2="40" gradientUnits="userSpaceOnUse">
1152
+ <stop offset="0.563469" stop-color="currentColor"></stop>
1153
+ </linearGradient>
1154
+ <linearGradient id="paint1_linear_10250_27631" x1="95.8095" y1="40" x2="132" y2="40" gradientUnits="userSpaceOnUse">
1155
+ <stop offset="0.254589" stop-color="currentColor"></stop>
1156
+ </linearGradient>
1157
+ <clipPath id="clip0_10250_27631">
1158
+ <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
+ </clipPath>
1160
+ </defs>
1161
+ </svg>`, Lt = `<svg width="96" height="48" viewBox="0 0 96 48" fill="none" xmlns="http://www.w3.org/2000/svg">
1162
+ <rect x="8" y="30" width="32" height="2" fill="currentColor"></rect>
1163
+ <rect x="8" y="12" width="32" height="8" rx="4" fill="currentColor"></rect>
1164
+ <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">
1166
+ <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
+ <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
+ </svg>
1169
+ `, Et = {
1170
+ name: "Interactive",
1171
+ templates: [
1172
+ {
1173
+ name: "Button",
1174
+ template: /* @__PURE__ */ r(
1175
+ C,
1176
+ {
1177
+ dangerouslySetInnerHTML: {
1178
+ __html: "Button"
1179
+ },
1180
+ is: B2
1181
+ }
1182
+ ),
1183
+ icon: { source: yt, height: 32 }
1184
+ },
1185
+ {
1186
+ name: "Link",
1187
+ template: /* @__PURE__ */ r(C, { is: Z2 }),
1188
+ icon: { source: It, height: 32 }
1189
+ },
1190
+ {
1191
+ name: "Carousel",
1192
+ template: /* @__PURE__ */ r(
1193
+ C,
1194
+ {
1195
+ is: p2,
1196
+ slidesPerView: 2,
1197
+ spaceBetween: 8,
1198
+ md: {
1199
+ slidesPerView: 3
1200
+ },
1201
+ lg: {
1202
+ slidesPerView: 4
1203
+ },
1204
+ children: Z(6).map((e) => /* @__PURE__ */ r(C, { is: z2, canvas: !0 }, e))
1205
+ }
1206
+ ),
1207
+ icon: { source: Nt, height: 32 }
1208
+ },
1209
+ {
1210
+ 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 }
1213
+ },
1214
+ {
1215
+ name: "Tabs",
1216
+ template: /* @__PURE__ */ g(
1217
+ C,
1218
+ {
1219
+ is: $2,
1220
+ sx: {
1221
+ width: "100%"
1222
+ },
1223
+ children: [
1224
+ /* @__PURE__ */ r(C, { is: fe, children: Z(3).map((e) => {
1225
+ const t = `Tab ${e + 1}`;
1226
+ return /* @__PURE__ */ r(
1227
+ C,
1228
+ {
1229
+ canvas: !0,
1230
+ is: ge,
1231
+ dangerouslySetInnerHTML: {
1232
+ __html: t
1233
+ }
1234
+ },
1235
+ e
1236
+ );
1237
+ }) }),
1238
+ /* @__PURE__ */ r(C, { is: me, children: Z(3).map((e) => /* @__PURE__ */ r(C, { canvas: !0, is: ke }, e)) })
1239
+ ]
1240
+ }
1241
+ ),
1242
+ icon: { source: Lt, height: 40 }
1243
+ }
1244
+ ]
1245
+ }, St = `<svg fill="currentColor" width="24" height="24" viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg">
1246
+ <title>h</title>
1247
+ <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
+ </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">
1250
+ <title>p</title>
1251
+ <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
+ </svg>
1253
+ `, Vt = {
1254
+ name: "Text",
1255
+ templates: [
1256
+ {
1257
+ name: "Heading",
1258
+ template: /* @__PURE__ */ r(
1259
+ C,
1260
+ {
1261
+ dangerouslySetInnerHTML: {
1262
+ __html: "Your heading text goes here"
1263
+ },
1264
+ as: "h2",
1265
+ sizeVariant: "4xl",
1266
+ md: { sizeVariant: "5xl" },
1267
+ is: j2
1268
+ }
1269
+ ),
1270
+ icon: { source: St, height: 32 }
1271
+ },
1272
+ {
1273
+ name: "Paragraph",
1274
+ template: /* @__PURE__ */ r(
1275
+ C,
1276
+ {
1277
+ dangerouslySetInnerHTML: {
1278
+ __html: "Replace this text with your content"
1279
+ },
1280
+ is: r2
1281
+ }
1282
+ ),
1283
+ icon: { source: Tt, height: 32 }
1284
+ }
1285
+ ]
1286
+ }, jt = `<svg width="96" height="48" viewBox="0 0 96 48" fill="none" xmlns="http://www.w3.org/2000/svg">
1287
+ <path opacity="0.96" d="M6.66797 28.1193C6.02592 28.1193 5.47905 27.9446 5.02734 27.5952C4.57564 27.2429 4.23047 26.733 3.99183 26.0653C3.7532 25.3949 3.63388 24.5852 3.63388 23.6364C3.63388 22.6932 3.7532 21.8878 3.99183 21.2202C4.23331 20.5497 4.5799 20.0384 5.03161 19.6861C5.48615 19.331 6.03161 19.1534 6.66797 19.1534C7.30433 19.1534 7.84837 19.331 8.30007 19.6861C8.75462 20.0384 9.10121 20.5497 9.33984 21.2202C9.58132 21.8878 9.70206 22.6932 9.70206 23.6364C9.70206 24.5852 9.58274 25.3949 9.34411 26.0653C9.10547 26.733 8.7603 27.2429 8.30859 27.5952C7.85689 27.9446 7.31001 28.1193 6.66797 28.1193ZM6.66797 27.1818C7.30433 27.1818 7.79865 26.875 8.15092 26.2614C8.5032 25.6477 8.67933 24.7727 8.67933 23.6364C8.67933 22.8807 8.59837 22.2372 8.43643 21.706C8.27734 21.1747 8.04723 20.7699 7.74609 20.4915C7.4478 20.2131 7.08842 20.0739 6.66797 20.0739C6.03729 20.0739 5.54439 20.3849 5.18928 21.0071C4.83416 21.6264 4.65661 22.5028 4.65661 23.6364C4.65661 24.392 4.73615 25.0341 4.89524 25.5625C5.05433 26.0909 5.28303 26.4929 5.58132 26.7685C5.88246 27.044 6.24467 27.1818 6.66797 27.1818ZM14.168 28.1193C13.5259 28.1193 12.979 27.9446 12.5273 27.5952C12.0756 27.2429 11.7305 26.733 11.4918 26.0653C11.2532 25.3949 11.1339 24.5852 11.1339 23.6364C11.1339 22.6932 11.2532 21.8878 11.4918 21.2202C11.7333 20.5497 12.0799 20.0384 12.5316 19.6861C12.9862 19.331 13.5316 19.1534 14.168 19.1534C14.8043 19.1534 15.3484 19.331 15.8001 19.6861C16.2546 20.0384 16.6012 20.5497 16.8398 21.2202C17.0813 21.8878 17.2021 22.6932 17.2021 23.6364C17.2021 24.5852 17.0827 25.3949 16.8441 26.0653C16.6055 26.733 16.2603 27.2429 15.8086 27.5952C15.3569 27.9446 14.81 28.1193 14.168 28.1193ZM14.168 27.1818C14.8043 27.1818 15.2987 26.875 15.6509 26.2614C16.0032 25.6477 16.1793 24.7727 16.1793 23.6364C16.1793 22.8807 16.0984 22.2372 15.9364 21.706C15.7773 21.1747 15.5472 20.7699 15.2461 20.4915C14.9478 20.2131 14.5884 20.0739 14.168 20.0739C13.5373 20.0739 13.0444 20.3849 12.6893 21.0071C12.3342 21.6264 12.1566 22.5028 12.1566 23.6364C12.1566 24.392 12.2362 25.0341 12.3952 25.5625C12.5543 26.0909 12.783 26.4929 13.0813 26.7685C13.3825 27.044 13.7447 27.1818 14.168 27.1818ZM22.9464 26.8835C22.7362 26.8835 22.5558 26.8082 22.4052 26.6577C22.2546 26.5071 22.1793 26.3267 22.1793 26.1165C22.1793 25.9062 22.2546 25.7259 22.4052 25.5753C22.5558 25.4247 22.7362 25.3494 22.9464 25.3494C23.1566 25.3494 23.337 25.4247 23.4876 25.5753C23.6381 25.7259 23.7134 25.9062 23.7134 26.1165C23.7134 26.2557 23.6779 26.3835 23.6069 26.5C23.5387 26.6165 23.4464 26.7102 23.3299 26.7812C23.2163 26.8494 23.0884 26.8835 22.9464 26.8835ZM22.9464 22.4688C22.7362 22.4688 22.5558 22.3935 22.4052 22.2429C22.2546 22.0923 22.1793 21.9119 22.1793 21.7017C22.1793 21.4915 22.2546 21.3111 22.4052 21.1605C22.5558 21.0099 22.7362 20.9347 22.9464 20.9347C23.1566 20.9347 23.337 21.0099 23.4876 21.1605C23.6381 21.3111 23.7134 21.4915 23.7134 21.7017C23.7134 21.8409 23.6779 21.9688 23.6069 22.0852C23.5387 22.2017 23.4464 22.2955 23.3299 22.3665C23.2163 22.4347 23.0884 22.4688 22.9464 22.4688ZM31.7227 28.1193C31.0806 28.1193 30.5337 27.9446 30.082 27.5952C29.6303 27.2429 29.2852 26.733 29.0465 26.0653C28.8079 25.3949 28.6886 24.5852 28.6886 23.6364C28.6886 22.6932 28.8079 21.8878 29.0465 21.2202C29.288 20.5497 29.6346 20.0384 30.0863 19.6861C30.5408 19.331 31.0863 19.1534 31.7227 19.1534C32.359 19.1534 32.9031 19.331 33.3548 19.6861C33.8093 20.0384 34.1559 20.5497 34.3945 21.2202C34.636 21.8878 34.7567 22.6932 34.7567 23.6364C34.7567 24.5852 34.6374 25.3949 34.3988 26.0653C34.1602 26.733 33.815 27.2429 33.3633 27.5952C32.9116 27.9446 32.3647 28.1193 31.7227 28.1193ZM31.7227 27.1818C32.359 27.1818 32.8533 26.875 33.2056 26.2614C33.5579 25.6477 33.734 24.7727 33.734 23.6364C33.734 22.8807 33.6531 22.2372 33.4911 21.706C33.332 21.1747 33.1019 20.7699 32.8008 20.4915C32.5025 20.2131 32.1431 20.0739 31.7227 20.0739C31.092 20.0739 30.5991 20.3849 30.244 21.0071C29.8888 21.6264 29.7113 22.5028 29.7113 23.6364C29.7113 24.392 29.7908 25.0341 29.9499 25.5625C30.109 26.0909 30.3377 26.4929 30.636 26.7685C30.9371 27.044 31.2994 27.1818 31.7227 27.1818ZM39.2227 28.1193C38.5806 28.1193 38.0337 27.9446 37.582 27.5952C37.1303 27.2429 36.7852 26.733 36.5465 26.0653C36.3079 25.3949 36.1886 24.5852 36.1886 23.6364C36.1886 22.6932 36.3079 21.8878 36.5465 21.2202C36.788 20.5497 37.1346 20.0384 37.5863 19.6861C38.0408 19.331 38.5863 19.1534 39.2227 19.1534C39.859 19.1534 40.4031 19.331 40.8548 19.6861C41.3093 20.0384 41.6559 20.5497 41.8945 21.2202C42.136 21.8878 42.2567 22.6932 42.2567 23.6364C42.2567 24.5852 42.1374 25.3949 41.8988 26.0653C41.6602 26.733 41.315 27.2429 40.8633 27.5952C40.4116 27.9446 39.8647 28.1193 39.2227 28.1193ZM39.2227 27.1818C39.859 27.1818 40.3533 26.875 40.7056 26.2614C41.0579 25.6477 41.234 24.7727 41.234 23.6364C41.234 22.8807 41.1531 22.2372 40.9911 21.706C40.832 21.1747 40.6019 20.7699 40.3008 20.4915C40.0025 20.2131 39.6431 20.0739 39.2227 20.0739C38.592 20.0739 38.0991 20.3849 37.744 21.0071C37.3888 21.6264 37.2113 22.5028 37.2113 23.6364C37.2113 24.392 37.2908 25.0341 37.4499 25.5625C37.609 26.0909 37.8377 26.4929 38.136 26.7685C38.4371 27.044 38.7994 27.1818 39.2227 27.1818ZM48.0011 26.8835C47.7908 26.8835 47.6104 26.8082 47.4599 26.6577C47.3093 26.5071 47.234 26.3267 47.234 26.1165C47.234 25.9062 47.3093 25.7259 47.4599 25.5753C47.6104 25.4247 47.7908 25.3494 48.0011 25.3494C48.2113 25.3494 48.3917 25.4247 48.5423 25.5753C48.6928 25.7259 48.7681 25.9062 48.7681 26.1165C48.7681 26.2557 48.7326 26.3835 48.6616 26.5C48.5934 26.6165 48.5011 26.7102 48.3846 26.7812C48.271 26.8494 48.1431 26.8835 48.0011 26.8835ZM48.0011 22.4688C47.7908 22.4688 47.6104 22.3935 47.4599 22.2429C47.3093 22.0923 47.234 21.9119 47.234 21.7017C47.234 21.4915 47.3093 21.3111 47.4599 21.1605C47.6104 21.0099 47.7908 20.9347 48.0011 20.9347C48.2113 20.9347 48.3917 21.0099 48.5423 21.1605C48.6928 21.3111 48.7681 21.4915 48.7681 21.7017C48.7681 21.8409 48.7326 21.9688 48.6616 22.0852C48.5934 22.2017 48.5011 22.2955 48.3846 22.3665C48.271 22.4347 48.1431 22.4688 48.0011 22.4688ZM56.7773 28.1193C56.1353 28.1193 55.5884 27.9446 55.1367 27.5952C54.685 27.2429 54.3398 26.733 54.1012 26.0653C53.8626 25.3949 53.7433 24.5852 53.7433 23.6364C53.7433 22.6932 53.8626 21.8878 54.1012 21.2202C54.3427 20.5497 54.6893 20.0384 55.141 19.6861C55.5955 19.331 56.141 19.1534 56.7773 19.1534C57.4137 19.1534 57.9577 19.331 58.4094 19.6861C58.864 20.0384 59.2106 20.5497 59.4492 21.2202C59.6907 21.8878 59.8114 22.6932 59.8114 23.6364C59.8114 24.5852 59.6921 25.3949 59.4535 26.0653C59.2148 26.733 58.8697 27.2429 58.418 27.5952C57.9663 27.9446 57.4194 28.1193 56.7773 28.1193ZM56.7773 27.1818C57.4137 27.1818 57.908 26.875 58.2603 26.2614C58.6126 25.6477 58.7887 24.7727 58.7887 23.6364C58.7887 22.8807 58.7077 22.2372 58.5458 21.706C58.3867 21.1747 58.1566 20.7699 57.8555 20.4915C57.5572 20.2131 57.1978 20.0739 56.7773 20.0739C56.1467 20.0739 55.6538 20.3849 55.2987 21.0071C54.9435 21.6264 54.766 22.5028 54.766 23.6364C54.766 24.392 54.8455 25.0341 55.0046 25.5625C55.1637 26.0909 55.3924 26.4929 55.6907 26.7685C55.9918 27.044 56.354 27.1818 56.7773 27.1818ZM64.2773 28.1193C63.6353 28.1193 63.0884 27.9446 62.6367 27.5952C62.185 27.2429 61.8398 26.733 61.6012 26.0653C61.3626 25.3949 61.2433 24.5852 61.2433 23.6364C61.2433 22.6932 61.3626 21.8878 61.6012 21.2202C61.8427 20.5497 62.1893 20.0384 62.641 19.6861C63.0955 19.331 63.641 19.1534 64.2773 19.1534C64.9137 19.1534 65.4577 19.331 65.9094 19.6861C66.364 20.0384 66.7106 20.5497 66.9492 21.2202C67.1907 21.8878 67.3114 22.6932 67.3114 23.6364C67.3114 24.5852 67.1921 25.3949 66.9535 26.0653C66.7148 26.733 66.3697 27.2429 65.918 27.5952C65.4663 27.9446 64.9194 28.1193 64.2773 28.1193ZM64.2773 27.1818C64.9137 27.1818 65.408 26.875 65.7603 26.2614C66.1126 25.6477 66.2887 24.7727 66.2887 23.6364C66.2887 22.8807 66.2077 22.2372 66.0458 21.706C65.8867 21.1747 65.6566 20.7699 65.3555 20.4915C65.0572 20.2131 64.6978 20.0739 64.2773 20.0739C63.6467 20.0739 63.1538 20.3849 62.7987 21.0071C62.4435 21.6264 62.266 22.5028 62.266 23.6364C62.266 24.392 62.3455 25.0341 62.5046 25.5625C62.6637 26.0909 62.8924 26.4929 63.1907 26.7685C63.4918 27.044 63.854 27.1818 64.2773 27.1818ZM73.0558 26.8835C72.8455 26.8835 72.6651 26.8082 72.5146 26.6577C72.364 26.5071 72.2887 26.3267 72.2887 26.1165C72.2887 25.9062 72.364 25.7259 72.5146 25.5753C72.6651 25.4247 72.8455 25.3494 73.0558 25.3494C73.266 25.3494 73.4464 25.4247 73.5969 25.5753C73.7475 25.7259 73.8228 25.9062 73.8228 26.1165C73.8228 26.2557 73.7873 26.3835 73.7163 26.5C73.6481 26.6165 73.5558 26.7102 73.4393 26.7812C73.3256 26.8494 73.1978 26.8835 73.0558 26.8835ZM73.0558 22.4688C72.8455 22.4688 72.6651 22.3935 72.5146 22.2429C72.364 22.0923 72.2887 21.9119 72.2887 21.7017C72.2887 21.4915 72.364 21.3111 72.5146 21.1605C72.6651 21.0099 72.8455 20.9347 73.0558 20.9347C73.266 20.9347 73.4464 21.0099 73.5969 21.1605C73.7475 21.3111 73.8228 21.4915 73.8228 21.7017C73.8228 21.8409 73.7873 21.9688 73.7163 22.0852C73.6481 22.2017 73.5558 22.2955 73.4393 22.3665C73.3256 22.4347 73.1978 22.4688 73.0558 22.4688ZM81.832 28.1193C81.19 28.1193 80.6431 27.9446 80.1914 27.5952C79.7397 27.2429 79.3945 26.733 79.1559 26.0653C78.9173 25.3949 78.7979 24.5852 78.7979 23.6364C78.7979 22.6932 78.9173 21.8878 79.1559 21.2202C79.3974 20.5497 79.744 20.0384 80.1957 19.6861C80.6502 19.331 81.1957 19.1534 81.832 19.1534C82.4684 19.1534 83.0124 19.331 83.4641 19.6861C83.9187 20.0384 84.2653 20.5497 84.5039 21.2202C84.7454 21.8878 84.8661 22.6932 84.8661 23.6364C84.8661 24.5852 84.7468 25.3949 84.5082 26.0653C84.2695 26.733 83.9244 27.2429 83.4727 27.5952C83.021 27.9446 82.4741 28.1193 81.832 28.1193ZM81.832 27.1818C82.4684 27.1818 82.9627 26.875 83.315 26.2614C83.6673 25.6477 83.8434 24.7727 83.8434 23.6364C83.8434 22.8807 83.7624 22.2372 83.6005 21.706C83.4414 21.1747 83.2113 20.7699 82.9102 20.4915C82.6119 20.2131 82.2525 20.0739 81.832 20.0739C81.2013 20.0739 80.7085 20.3849 80.3533 21.0071C79.9982 21.6264 79.8207 22.5028 79.8207 23.6364C79.8207 24.392 79.9002 25.0341 80.0593 25.5625C80.2184 26.0909 80.4471 26.4929 80.7454 26.7685C81.0465 27.044 81.4087 27.1818 81.832 27.1818ZM89.332 28.1193C88.69 28.1193 88.1431 27.9446 87.6914 27.5952C87.2397 27.2429 86.8945 26.733 86.6559 26.0653C86.4173 25.3949 86.2979 24.5852 86.2979 23.6364C86.2979 22.6932 86.4173 21.8878 86.6559 21.2202C86.8974 20.5497 87.244 20.0384 87.6957 19.6861C88.1502 19.331 88.6957 19.1534 89.332 19.1534C89.9684 19.1534 90.5124 19.331 90.9641 19.6861C91.4187 20.0384 91.7653 20.5497 92.0039 21.2202C92.2454 21.8878 92.3661 22.6932 92.3661 23.6364C92.3661 24.5852 92.2468 25.3949 92.0082 26.0653C91.7695 26.733 91.4244 27.2429 90.9727 27.5952C90.521 27.9446 89.9741 28.1193 89.332 28.1193ZM89.332 27.1818C89.9684 27.1818 90.4627 26.875 90.815 26.2614C91.1673 25.6477 91.3434 24.7727 91.3434 23.6364C91.3434 22.8807 91.2624 22.2372 91.1005 21.706C90.9414 21.1747 90.7113 20.7699 90.4102 20.4915C90.1119 20.2131 89.7525 20.0739 89.332 20.0739C88.7013 20.0739 88.2085 20.3849 87.8533 21.0071C87.4982 21.6264 87.3207 22.5028 87.3207 23.6364C87.3207 24.392 87.4002 25.0341 87.5593 25.5625C87.7184 26.0909 87.9471 26.4929 88.2454 26.7685C88.5465 27.044 88.9087 27.1818 89.332 27.1818Z" fill="#F9F9F9"/>
1288
+ </svg>
1289
+ `, At = {
1290
+ name: "Utilities",
1291
+ templates: [
1292
+ {
1293
+ name: "Countdown timer",
1294
+ template: /* @__PURE__ */ r(
1295
+ C,
1296
+ {
1297
+ is: G2,
1298
+ omit: {
1299
+ days: !0
1300
+ },
1301
+ date: b1().add(1, "week").toDate(),
1302
+ sx: {
1303
+ justifyContent: "center",
1304
+ columnGap: 8,
1305
+ rowGap: 8,
1306
+ sm: {
1307
+ paddingLeft: 24,
1308
+ paddingRight: 24
1309
+ }
1310
+ },
1311
+ unitItemProps: {
1312
+ sx: {
1313
+ backgroundColor: N2("neutral.100"),
1314
+ borderTopLeftRadius: 8,
1315
+ borderTopRightRadius: 8,
1316
+ borderBottomLeftRadius: 8,
1317
+ borderBottomRightRadius: 8,
1318
+ paddingTop: 6,
1319
+ paddingRight: 16,
1320
+ paddingBottom: 6,
1321
+ paddingLeft: 16
1322
+ }
1323
+ },
1324
+ timeProps: {
1325
+ sx: {
1326
+ fontWeight: 600
1327
+ },
1328
+ sizeVariant: "xl",
1329
+ md: {
1330
+ sizeVariant: "2xl"
1331
+ }
1332
+ },
1333
+ captionProps: {
1334
+ sx: {
1335
+ color: N2("neutral.500")
1336
+ }
1337
+ },
1338
+ units: [
1339
+ {
1340
+ value: "days",
1341
+ caption: "Days"
1342
+ },
1343
+ {
1344
+ value: "hours",
1345
+ caption: "Hours"
1346
+ },
1347
+ {
1348
+ value: "minutes",
1349
+ caption: "Minutes"
1350
+ },
1351
+ {
1352
+ value: "seconds",
1353
+ caption: "Seconds"
1354
+ }
1355
+ ]
1356
+ }
1357
+ ),
1358
+ icon: { source: jt, height: 48 }
1359
+ }
1360
+ ]
1361
+ }, Rt = [
1362
+ Vt,
1363
+ wt,
1364
+ bt,
1365
+ Et,
1366
+ mt,
1367
+ gt,
1368
+ 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 = {
1370
+ 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)) })
1378
+ ] });
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: [
881
1383
  e.name,
882
- /* @__PURE__ */ n(
1384
+ /* @__PURE__ */ r(
883
1385
  E,
884
1386
  {
885
- source: Re,
886
- className: P("tw:transition-transform", {
1387
+ source: ne,
1388
+ className: B("tw:transition-transform", {
887
1389
  "tw:rotate-180": !t
888
1390
  })
889
1391
  }
890
1392
  )
891
1393
  ] }) }),
892
- /* @__PURE__ */ n(dt, { open: t, children: /* @__PURE__ */ n("div", { className: "tw:px-4 tw:py-2 tw:grid tw:grid-cols-2 tw:gap-4", children: e.elements.map((o, h) => /* @__PURE__ */ k("div", { className: "tw:space-y-1", children: [
893
- /* @__PURE__ */ n(
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: [
1395
+ /* @__PURE__ */ r(
894
1396
  "div",
895
1397
  {
896
- className: P(
1398
+ className: B(
897
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",
898
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",
899
1401
  "tw:after:absolute tw:after:inset-0 tw:after:content-empty tw:after:bg-ic-white-1s"
900
1402
  ),
901
1403
  ref: (c) => {
902
- c && i.create(c, o.template, {
903
- onCreate(u) {
904
- (typeof o.autoFocus == "function" ? o.autoFocus(u) : o.autoFocus) && r.selectNode(u.rootNodeId), o.onCreate?.(u);
1404
+ 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);
905
1407
  }
906
1408
  });
907
1409
  },
908
- children: /* @__PURE__ */ n(ht, { width: void 0, height: void 0, ...o.icon })
1410
+ children: s.icon && /* @__PURE__ */ r(e1, { width: void 0, height: void 0, ...s.icon })
909
1411
  }
910
1412
  ),
911
- /* @__PURE__ */ n("p", { className: "tw:text-xs tw:mx-auto tw:text-center", children: o.name })
912
- ] }, h)) }) })
1413
+ /* @__PURE__ */ r("p", { className: "tw:text-xs tw:mx-auto tw:text-center", children: s.name })
1414
+ ] }, u)) }) })
913
1415
  ] });
914
- }, nn = ({ group: e }) => {
915
- const [t, s] = O(!1), { refs: r, floatingStyles: i, context: o } = Kt({
1416
+ }, $t = ({ group: e }) => {
1417
+ const [t, o] = G(!1), { refs: n, floatingStyles: i, context: s } = o1({
916
1418
  open: t,
917
- onOpenChange: s,
1419
+ onOpenChange: o,
918
1420
  placement: "right-start",
919
1421
  middleware: [
920
- er(),
921
- tr({
922
- apply({ elements: f }) {
923
- const v = {
924
- zIndex: `${Yt}`,
925
- height: `${f.reference.getBoundingClientRect().height}px`
1422
+ i1(),
1423
+ c1({
1424
+ apply({ elements: k }) {
1425
+ const h = {
1426
+ zIndex: `${Qe}`,
1427
+ height: `${k.reference.getBoundingClientRect().height}px`
926
1428
  };
927
- Object.assign(f.floating.style, v);
1429
+ Object.assign(k.floating.style, h);
928
1430
  }
929
1431
  })
930
1432
  ],
931
- whileElementsMounted: Jt
1433
+ whileElementsMounted: s1
932
1434
  });
933
- G(() => {
934
- r.setPositionReference(document.querySelector("aside"));
935
- }, [r]);
936
- const h = rr(o, { move: !1, handleClose: nr() }), c = sr(o), u = or(o), b = ir(o), { getReferenceProps: l, getFloatingProps: a } = cr([h, c, u, b]);
937
- return /* @__PURE__ */ k(ee, { children: [
938
- /* @__PURE__ */ k(
1435
+ W(() => {
1436
+ n.setPositionReference(document.querySelector("aside"));
1437
+ }, [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(
939
1441
  "button",
940
1442
  {
941
- className: P(
1443
+ className: B(
942
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",
943
1445
  "tw:hover:text-ic-white-6s tw:hover:bg-ic-white-1s tw:hover:font-medium"
944
1446
  ),
945
1447
  ...l(),
946
- ref: r.setReference,
1448
+ ref: n.setReference,
947
1449
  children: [
948
- /* @__PURE__ */ n("div", { className: "tw:bg-ic-white-1s tw:p-1.5 tw:rounded-lg", children: /* @__PURE__ */ n(E, { ...e.icon }) }),
949
- /* @__PURE__ */ n("span", { className: "tw:flex-1 tw:truncate", children: e.name }),
950
- /* @__PURE__ */ n(E, { className: "tw:rotate-180", source: en })
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 })
951
1453
  ]
952
1454
  }
953
1455
  ),
954
- t && /* @__PURE__ */ n(je, { children: /* @__PURE__ */ n("div", { style: i, ...a(), ref: r.setFloating, children: /* @__PURE__ */ k("div", { className: "tw:h-full tw:flex tw:flex-col tw:border-l tw:border-t tw:border-ic-white-2s tw:bg-ic-ink-6s tw:text-ic-white-6s tw:text-sm", children: [
955
- /* @__PURE__ */ n("div", { className: "tw:h-12 tw:px-2 tw:flex tw:items-center", children: /* @__PURE__ */ n("h6", { className: "tw:font-medium", children: e.name }) }),
956
- /* @__PURE__ */ n(ce, { className: "tw:flex-1 tw:px-3", children: /* @__PURE__ */ n("div", { className: "tw:flex tw:flex-col tw:gap-4", children: e.sections.map((f, v) => /* @__PURE__ */ ur(sn, { ...f, key: v })) }) })
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 })) }) })
957
1459
  ] }) }) })
958
1460
  ] });
959
- }, sn = ({ template: e, autoFocus: t = !0, onCreate: s }) => {
960
- const [, r] = O(!1), i = re(), { actions: o, connectors: h, resolver: c, query: u } = F((l) => ({
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) => ({
961
1463
  resolver: l.options.resolver
962
- })), b = O(() => {
1464
+ })), x = G(() => {
963
1465
  const l = typeof e == "function" ? e() : e;
964
1466
  let a;
965
- "rootNodeId" in l ? a = l : a = u.parseReactElement(l).toNodeTree();
966
- const { rootNodeId: f, nodes: v } = a, w = {};
967
- return Object.entries(v).forEach(([d, y]) => {
968
- const g = kt(y.data, c), x = d === f ? W : d;
969
- w[x] = {
970
- ...g,
971
- parent: g.parent === f ? W : g.parent,
972
- nodes: g.nodes?.map((M) => M === f ? W : M)
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)
973
1475
  };
974
- }), w;
1476
+ }), h;
975
1477
  })[0];
976
- return /* @__PURE__ */ n(
1478
+ return /* @__PURE__ */ r(
977
1479
  "div",
978
1480
  {
979
1481
  className: "tw:cursor-grab tw:border tw:border-ic-white-1s tw:rounded-lg tw:overflow-hidden",
980
1482
  ref: (l) => {
981
- l && h.create(l, e, {
1483
+ l && u.create(l, e, {
982
1484
  onCreate(a) {
983
- t && o.selectNode(a.rootNodeId), s?.(a);
1485
+ (typeof t == "function" ? t(a) : t) && s.selectNode(a.rootNodeId), o?.(a);
984
1486
  }
985
1487
  });
986
1488
  },
987
- onDragStart: () => r(!0),
988
- onDragEnd: () => r(!1),
989
- children: /* @__PURE__ */ n("div", { className: "tw:relative tw:aspect-video tw:rounded-lg tw:overflow-hidden tw:w-60 tw:pointer-events-none", children: /* @__PURE__ */ n("div", { className: "tw:absolute tw:inset-0", children: /* @__PURE__ */ n(
990
- Ve,
1489
+ onDragStart: () => n(!0),
1490
+ 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,
991
1493
  {
992
1494
  containerProps: {
993
1495
  style: {
994
1496
  backgroundColor: i.theme.palette.background.default
995
1497
  }
996
1498
  },
997
- viewport: { width: Xt.md.minWidth },
998
- children: /* @__PURE__ */ n($e, { resolver: c, children: /* @__PURE__ */ n(Ae, { data: b }) })
1499
+ viewport: { width: Xe.md.minWidth },
1500
+ children: /* @__PURE__ */ r(Q2, { resolver: c, children: /* @__PURE__ */ r(X2, { data: x }) })
999
1501
  }
1000
1502
  ) }) })
1001
1503
  }
1002
1504
  );
1003
- }, on = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
1505
+ }, Ot = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
1004
1506
  <path d="M12.5 2H9.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
1005
1507
  <path d="M2 9.5V12.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
1006
1508
  <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"/>
@@ -1011,163 +1513,163 @@ const Ne = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
1011
1513
  <path d="M2 17V18C2 19.105 2.895 20 4 20H5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
1012
1514
  <path d="M20 5V4C20 2.895 19.105 2 18 2H17" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
1013
1515
  </svg>
1014
- `, cn = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
1516
+ `, Gt = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
1015
1517
  <circle cx="6.49771" cy="5.49762" r="2.50104" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
1016
1518
  <circle cx="6.49771" cy="18.503" r="2.50104" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
1017
1519
  <path d="M6.49771 7.99854V16.0019" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
1018
1520
  <circle cx="17.5023" cy="13.0006" r="2.50104" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
1019
1521
  <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"/>
1020
1522
  </svg>
1021
- `, an = (e) => {
1022
- const { query: t, actions: s } = F(), {
1023
- id: r,
1523
+ `, Ft = (e) => {
1524
+ const { query: t, actions: o } = $(), {
1525
+ id: n,
1024
1526
  expanded: i,
1025
- actions: o,
1026
- displayName: h,
1527
+ actions: s,
1528
+ displayName: u,
1027
1529
  children: c,
1028
- depth: u
1029
- } = fr((v) => ({
1030
- expanded: v.expanded,
1031
- displayName: Ee(t.node(v.id).get())
1032
- })), { selected: b, selectable: l } = F((v, w) => {
1033
- const d = w.node(r).get();
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();
1034
1536
  return {
1035
- selected: w.getEvent("selected").contains(r),
1537
+ selected: h.getEvent("selected").contains(n),
1036
1538
  nodeDOM: d.dom,
1037
- selectable: ft(d)
1539
+ selectable: Me(d)
1038
1540
  };
1039
1541
  });
1040
- G(() => {
1041
- r === W && o.setExpandedState(!0);
1042
- }, [o, r]), G(() => {
1542
+ W(() => {
1543
+ n === D && s.setExpandedState(!0);
1544
+ }, [s, n]), W(() => {
1043
1545
  if (c.length === 0) return;
1044
- c.some((w) => {
1546
+ c.some((h) => {
1045
1547
  const d = t.getEvent("selected").all();
1046
- return d.includes(w) ? !0 : t.node(w).descendants(!0).some((g) => d.includes(g));
1047
- }) && o.setExpandedState(!0);
1048
- }, [c, o, t]);
1548
+ return d.includes(h) ? !0 : t.node(h).descendants(!0).some((v) => d.includes(v));
1549
+ }) && s.setExpandedState(!0);
1550
+ }, [c, s, t]);
1049
1551
  const a = () => {
1050
- s.selectNode(r);
1051
- }, f = (v) => {
1052
- v.stopPropagation(), o.toggleLayer();
1552
+ o.selectNode(n);
1553
+ }, m = (k) => {
1554
+ k.stopPropagation(), s.toggleLayer();
1053
1555
  };
1054
- return /* @__PURE__ */ k(
1556
+ return /* @__PURE__ */ g(
1055
1557
  "div",
1056
1558
  {
1057
1559
  className: "tw:py-1",
1058
1560
  children: [
1059
- /* @__PURE__ */ k(
1561
+ /* @__PURE__ */ g(
1060
1562
  "div",
1061
1563
  {
1062
1564
  onClick: a,
1063
1565
  style: {
1064
- paddingLeft: Math.max(0, u - 1) * 16
1566
+ paddingLeft: Math.max(0, w - 1) * 16
1065
1567
  },
1066
- className: P(
1568
+ className: B(
1067
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",
1068
1570
  {
1069
- hidden: r === W,
1070
- "tw:bg-ic-black-7s": b,
1571
+ hidden: n === D,
1572
+ "tw:bg-ic-black-7s": x,
1071
1573
  "tw:pointer-events-none": !l
1072
1574
  }
1073
1575
  ),
1074
1576
  children: [
1075
- c.length ? /* @__PURE__ */ n(A, { className: "tw:pointer-events-auto", onClick: f, children: /* @__PURE__ */ n(
1577
+ c.length ? /* @__PURE__ */ r(A, { className: "tw:pointer-events-auto", onClick: m, children: /* @__PURE__ */ r(
1076
1578
  E,
1077
1579
  {
1078
- className: P("tw:transition-transform tw:-rotate-90", {
1580
+ className: B("tw:transition-transform tw:-rotate-90", {
1079
1581
  "tw:rotate-0": i
1080
1582
  }),
1081
1583
  size: 16,
1082
- source: Re
1584
+ source: ne
1083
1585
  }
1084
- ) }) : /* @__PURE__ */ n("div", { className: "tw:p-1", children: /* @__PURE__ */ n(E, { size: 16, source: cn }) }),
1085
- /* @__PURE__ */ n(
1586
+ ) }) : /* @__PURE__ */ r("div", { className: "tw:p-1", children: /* @__PURE__ */ r(E, { size: 16, source: Gt }) }),
1587
+ /* @__PURE__ */ r(
1086
1588
  "span",
1087
1589
  {
1088
- className: P("tw:flex-1 tw:truncate", {
1590
+ className: B("tw:flex-1 tw:truncate", {
1089
1591
  "tw:text-ic-white-3s": !l
1090
1592
  }),
1091
- children: h
1593
+ children: u
1092
1594
  }
1093
1595
  )
1094
1596
  ]
1095
1597
  }
1096
1598
  ),
1097
- /* @__PURE__ */ n("div", { className: "tw:space-y-1", children: e.children })
1599
+ /* @__PURE__ */ r("div", { className: "tw:space-y-1", children: e.children })
1098
1600
  ]
1099
1601
  }
1100
1602
  );
1101
- }, ln = ({ onClose: e }) => {
1102
- const t = gr(), s = (r) => {
1103
- t.start(r);
1603
+ }, zt = ({ onClose: e }) => {
1604
+ const t = I1(), o = (n) => {
1605
+ t.start(n);
1104
1606
  };
1105
- return /* @__PURE__ */ n(je, { children: /* @__PURE__ */ k(
1106
- ut.div,
1607
+ return /* @__PURE__ */ r(ee, { children: /* @__PURE__ */ g(
1608
+ t1.div,
1107
1609
  {
1108
1610
  drag: !0,
1109
1611
  dragControls: t,
1110
1612
  dragListener: !1,
1111
1613
  style: { zIndex: 1e5, width: 320, height: 400, top: 80, right: 40 },
1112
- className: "tw:fixed tw:rounded-2 tw:bg-ic-ink-6s tw:text-white tw:flex tw:flex-col tw:border tw:border-ic-white-2s",
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",
1113
1615
  children: [
1114
- /* @__PURE__ */ k(
1616
+ /* @__PURE__ */ g(
1115
1617
  "div",
1116
1618
  {
1117
- onPointerDown: s,
1619
+ onPointerDown: o,
1118
1620
  className: "tw:py-2 tw:cursor-grab tw:flex tw:items-center tw:justify-between tw:px-4",
1119
1621
  children: [
1120
- /* @__PURE__ */ k("div", { className: "tw:flex tw:items-center tw:gap-2", children: [
1121
- /* @__PURE__ */ n(E, { source: on }),
1122
- /* @__PURE__ */ n("p", { className: "tw:text-sm tw:font-medium", children: "Layers" })
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" })
1123
1625
  ] }),
1124
- /* @__PURE__ */ n(A, { onClick: e, children: /* @__PURE__ */ n(E, { source: wt }) })
1626
+ /* @__PURE__ */ r(A, { onClick: e, children: /* @__PURE__ */ r(E, { source: r1 }) })
1125
1627
  ]
1126
1628
  }
1127
1629
  ),
1128
- /* @__PURE__ */ n("div", { className: "tw:flex-1 tw:overflow-auto tw:border-t tw:border-ic-white-1s tw:p-2", children: /* @__PURE__ */ n(wr, { renderLayer: an }) })
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 }) })
1129
1631
  ]
1130
1632
  }
1131
1633
  ) });
1132
- }, dn = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
1634
+ }, Ut = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
1133
1635
  <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"/>
1134
1636
  <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"/>
1135
1637
  <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"/>
1136
1638
  </svg>
1137
- `, hn = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
1639
+ `, Wt = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
1138
1640
  <path d="M5 12H19" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
1139
1641
  <path d="M10 7L5 12" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
1140
1642
  <path d="M10 17L5 12" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
1141
1643
  </svg>
1142
- `, un = ({ insert: e }) => {
1143
- const [t, s] = Te(!1), {
1644
+ `, qt = ({ insert: e }) => {
1645
+ const [t, o] = te(!1), {
1144
1646
  queryParams: {
1145
- action: r = "insert"
1647
+ action: n = "insert"
1146
1648
  /* Insert */
1147
1649
  },
1148
1650
  setQueryParams: i
1149
- } = ne(), { actions: o, isDeletable: h, focusedNode: c } = F((a, f) => {
1150
- const v = f.getEvent("selected").first(), w = v ? f.node(v) : null;
1651
+ } = i2(), { actions: s, isDeletable: u, focusedNode: c } = $((a, m) => {
1652
+ const k = m.getEvent("selected").first(), h = k ? m.node(k) : null;
1151
1653
  return {
1152
1654
  enabled: a.options.enabled,
1153
- isDeletable: !!(w?.isDeletable() && (w.get().data.custom?.deletable ?? !0)),
1154
- focusedNode: w?.get()
1655
+ isDeletable: !!(h?.isDeletable() && (h.get().data.custom?.deletable ?? !0)),
1656
+ focusedNode: h?.get()
1155
1657
  };
1156
- }), u = () => {
1157
- o.selectNode();
1158
- }, b = (a) => {
1159
- o.delete(a.currentTarget.value);
1658
+ }), w = () => {
1659
+ s.selectNode();
1660
+ }, x = (a) => {
1661
+ s.delete(a.currentTarget.value);
1160
1662
  }, l = (a) => {
1161
- const f = a.currentTarget.value;
1162
- f === "layers" ? s() : (u(), i({
1163
- action: f
1663
+ const m = a.currentTarget.value;
1664
+ m === "layers" ? o() : (w(), i({
1665
+ action: m
1164
1666
  }));
1165
1667
  };
1166
- return /* @__PURE__ */ k(ee, { children: [
1167
- /* @__PURE__ */ k("aside", { className: "tw:flex tw:items-stretch tw:bg-ic-ink-6s tw:relative tw:border-t tw:border-ic-white-2s tw:text-ic-white-6s tw:text-sm", children: [
1168
- /* @__PURE__ */ k("div", { className: "tw:px-1 tw:flex tw:flex-col tw:gap-1", children: [
1169
- !!e && /* @__PURE__ */ k(ye, { children: [
1170
- /* @__PURE__ */ n(
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(
1171
1673
  A,
1172
1674
  {
1173
1675
  tooltip: {
@@ -1178,12 +1680,12 @@ const Ne = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
1178
1680
  value: "insert",
1179
1681
  className: "tw:relative",
1180
1682
  size: "32",
1181
- children: /* @__PURE__ */ n(E, { source: pt })
1683
+ children: /* @__PURE__ */ r(E, { source: n1 })
1182
1684
  }
1183
1685
  ),
1184
- /* @__PURE__ */ n("hr", { className: "tw:border-ic-white-2s" })
1686
+ /* @__PURE__ */ r("hr", { className: "tw:border-ic-white-2s" })
1185
1687
  ] }),
1186
- /* @__PURE__ */ n(
1688
+ /* @__PURE__ */ r(
1187
1689
  A,
1188
1690
  {
1189
1691
  tooltip: {
@@ -1194,56 +1696,56 @@ const Ne = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
1194
1696
  value: "layers",
1195
1697
  className: "tw:relative",
1196
1698
  size: "32",
1197
- children: /* @__PURE__ */ n(E, { source: dn })
1699
+ children: /* @__PURE__ */ r(E, { source: Ut })
1198
1700
  }
1199
1701
  )
1200
1702
  ] }),
1201
- /* @__PURE__ */ k(
1703
+ /* @__PURE__ */ g(
1202
1704
  "div",
1203
1705
  {
1204
- className: P("tw:relative tw:flex tw:flex-col tw:border-l tw:border-ic-white-1s tw:w-72 tw:overflow-auto"),
1706
+ className: B("tw:relative tw:flex tw:flex-col tw:border-l tw:border-ic-white-1s tw:w-72 tw:overflow-auto"),
1205
1707
  children: [
1206
- !c?.related.inspector && /* @__PURE__ */ n("div", { className: "tw:flex-1 tw:overflow-auto scrollbar", children: r === "insert" && !!e && /* @__PURE__ */ n(tn, { elements: e.elements, sections: e.sections }) }),
1207
- !!c?.related?.inspector && /* @__PURE__ */ k("div", { className: "tw:flex tw:flex-col tw:flex-1 tw:overflow-hidden", children: [
1208
- /* @__PURE__ */ k("div", { className: "tw:flex tw:items-center tw:gap-2 tw:px-2 tw:py-2", children: [
1209
- /* @__PURE__ */ n(A, { onClick: u, children: /* @__PURE__ */ n(E, { source: hn }) }),
1210
- /* @__PURE__ */ n("div", { className: "tw:flex-1 tw:overflow-hidden", children: /* @__PURE__ */ n(Ie, { fullWidth: !0, value: Ee(c), size: "32" }) }),
1211
- h && /* @__PURE__ */ n(A, { value: c.id, onClick: b, children: /* @__PURE__ */ n(E, { className: "tw:text-ic-red-4s", source: Zt }) })
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 }) })
1212
1714
  ] }),
1213
- /* @__PURE__ */ n("div", { className: "tw:flex-1 tw:overflow-auto tw:border-t tw:border-ic-white-1s scrollbar-hidden", children: /* @__PURE__ */ n(vt, { fallback: null, children: Me(c.related.inspector) }) })
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) }) })
1214
1716
  ] })
1215
1717
  ]
1216
1718
  }
1217
1719
  )
1218
1720
  ] }),
1219
- t && /* @__PURE__ */ n(ln, { onClose: s })
1721
+ t && /* @__PURE__ */ r(zt, { onClose: o })
1220
1722
  ] });
1221
- }, zn = ({ theme: e, insert: t, resolver: s, handlers: r }) => {
1723
+ }, T3 = ({ theme: e, insert: t, resolver: o, handlers: n }) => {
1222
1724
  const {
1223
1725
  queryParams: { screen: i }
1224
- } = ne();
1225
- return re({
1726
+ } = i2();
1727
+ return s2({
1226
1728
  theme: e,
1227
- handlers: r
1228
- }), /* @__PURE__ */ n($e, { enabled: !0, onRender: Zr, resolver: s, children: /* @__PURE__ */ k("div", { className: "tw:flex tw:flex-col tw:w-screen tw:h-screen tw:bg-ic-ink-6s tw:text-ic-white-6s", children: [
1229
- /* @__PURE__ */ n(Kr, {}),
1230
- /* @__PURE__ */ k("div", { className: "tw:flex-1 tw:overflow-hidden tw:flex", children: [
1231
- /* @__PURE__ */ n(un, { insert: t }),
1232
- /* @__PURE__ */ n(
1233
- Ve,
1729
+ 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,
1234
1736
  {
1235
1737
  viewport: {
1236
- width: (o) => i === "lg" ? Math.max(o, ve[i]) : ve[i]
1738
+ width: (s) => i === "lg" ? Math.max(s, M2[i]) : M2[i]
1237
1739
  },
1238
- children: /* @__PURE__ */ n(Ae, { children: /* @__PURE__ */ n(mt, {}) })
1740
+ children: /* @__PURE__ */ r(X2, { children: /* @__PURE__ */ r(ve, {}) })
1239
1741
  }
1240
1742
  )
1241
1743
  ] })
1242
1744
  ] }) });
1243
1745
  };
1244
1746
  export {
1245
- zn as Editor,
1246
- re as useEditor,
1247
- ne as useEditorQueryParams,
1248
- Un as useEditorResponsive
1747
+ T3 as Editor,
1748
+ s2 as useEditor,
1749
+ i2 as useEditorQueryParams,
1750
+ A3 as useEditorResponsive
1249
1751
  };