@janbox/storefront-builder 1.0.7 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/anchor-target-BlOvysAr.js +2329 -0
- package/dist/color-picker-popover-B3AVFuei.js +201 -0
- package/dist/components/composer/dataset.d.ts +1 -0
- package/dist/constants/index.d.ts +1 -0
- package/dist/countdown-timer.node-j79tvSTR.js +826 -0
- package/dist/date-picker-B4Rju7gG.js +115 -0
- package/dist/{countdown-timer.node-CGKz1DZI.js → dialog-header-DPLOS7TT.js} +2209 -3174
- package/dist/dropzone-Dbfed3jK.js +490 -0
- package/dist/editor/hooks/index.d.ts +1 -1
- package/dist/editor/lib/index.d.ts +2 -2
- package/dist/editor/toolbars.js +336 -0
- package/dist/editor/types/index.d.ts +0 -2
- package/dist/editor/ui/button/button.d.ts +2 -3
- package/dist/editor/ui/icon-button/icon-button.d.ts +1 -2
- package/dist/editor/ui.js +110 -0
- package/dist/editor.js +273 -269
- package/dist/index-BbiQ0n_-.js +4 -0
- package/dist/index-C9Q0Iqvf.js +4447 -0
- package/dist/index.js +369 -107
- package/dist/lib/container/container.inspector/container.inspector.d.ts +1 -0
- package/dist/lib/container/container.inspector/index.d.ts +1 -0
- package/dist/lib/container/container.node/container.node.d.ts +2 -0
- package/dist/lib/container/container.node/index.d.ts +3 -0
- package/dist/lib/container/container.node/types.d.ts +2 -0
- package/dist/lib/container/index.d.ts +2 -0
- package/dist/lib/index.d.ts +1 -0
- package/dist/style.css +1 -1
- package/dist/templates.js +185 -189
- package/dist/{tooltip-Coblboaw.js → tooltip-KbIHELP2.js} +1 -1
- package/package.json +12 -4
- package/dist/index-Bvy64nrI.js +0 -4
- package/dist/index-Du5uN6Rq.js +0 -6015
- /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
1
|
import { jsx as n, Fragment as ye, jsxs as k } from "@emotion/react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import { useNode as
|
|
4
|
-
import {
|
|
2
|
+
import { N as we, v as fe, i as ze, m as _e, V as Ge, S as qe, G as Ue, e as Ze, h as Qe, F as Ye, l as Ke, d as Xe, j as Je, I as et, L as tt, t as rt, s as nt, B as ot, a as st, g as it, f as ct, n as at } from "./countdown-timer.node-j79tvSTR.js";
|
|
3
|
+
import { useNode as lt, ROOT_NODE as W, serializeNode as dt } from "@craftjs/core";
|
|
4
|
+
import { f as re, c as ht, e as ut, u as F, r as L, a as Le, i as wt } from "./color-picker-popover-B3AVFuei.js";
|
|
5
|
+
import { useRef as Ie, useState as O, useEffect as G, createElement as Ee, Fragment as ee, Suspense as ft } from "react";
|
|
5
6
|
import "flat";
|
|
6
|
-
import { throttle as
|
|
7
|
+
import { throttle as pt, isFunction as pe, isNumber as me } from "lodash-es";
|
|
7
8
|
import "@janbox/storefront-ui";
|
|
8
|
-
import {
|
|
9
|
-
import { a6 as Un } from "./index-Du5uN6Rq.js";
|
|
9
|
+
import { D as mt, a as gt, H as kt, P as vt, k as bt, i as Ct, G as xt, c as Nt, g as yt, F as Lt, M as It, b as Et, h as St, I as Mt, L as At, U as jt, T as Rt, B as $t, A as Tt, f as Dt, e as Pt, d as Se, C as Me } from "./index-C9Q0Iqvf.js";
|
|
10
10
|
import "@janbox/storefront-ui/hooks";
|
|
11
|
-
import { ThemeProvider as
|
|
11
|
+
import { ThemeProvider as Bt, FLOATING_Z_INDEX as Ft, breakpoint as Wt } from "@janbox/storefront-ui/theme";
|
|
12
12
|
import "@janbox/storefront-ui/utils";
|
|
13
|
-
import {
|
|
13
|
+
import { G as Ht, c as D, l as R, W as E, d as Ae, m as je, e as Ot, v as Vt, F as zt, C as _t, P as Gt } from "./dialog-header-DPLOS7TT.js";
|
|
14
|
+
import { useFloating as qt, autoUpdate as Ut, flip as Zt, size as Qt, useHover as Yt, safePolygon as Kt, useFocus as Xt, useDismiss as Jt, useRole as er, useInteractions as tr, FloatingPortal as Re } from "@floating-ui/react";
|
|
14
15
|
import "react-use";
|
|
15
16
|
import "react-colorful";
|
|
16
17
|
import "overlayscrollbars-react";
|
|
@@ -22,13 +23,15 @@ import "@tiptap/extension-text-style";
|
|
|
22
23
|
import "@tiptap/react";
|
|
23
24
|
import "@tiptap/react/menus";
|
|
24
25
|
import "@tiptap/starter-kit";
|
|
25
|
-
import
|
|
26
|
-
import { CacheProvider as
|
|
26
|
+
import rr, { useFrame as nr } from "react-frame-component";
|
|
27
|
+
import { CacheProvider as or, Global as sr, createElement as ir } from "@emotion/react";
|
|
27
28
|
import "@hello-pangea/dnd";
|
|
29
|
+
import { useToggle as $e } from "usehooks-ts";
|
|
28
30
|
import "clsx";
|
|
29
31
|
import "tailwind-merge";
|
|
30
|
-
import "
|
|
31
|
-
import {
|
|
32
|
+
import { w as ne, x as cr, y as ar, z as ge } from "./anchor-target-BlOvysAr.js";
|
|
33
|
+
import { E as Yn } from "./anchor-target-BlOvysAr.js";
|
|
34
|
+
import { a as lr, l as dr, j as hr, h as ke, i as ur, k as ve, W as ce, A as Te } from "./dropzone-Dbfed3jK.js";
|
|
32
35
|
import { Layers as wr, useLayer as fr } from "@craftjs/layers";
|
|
33
36
|
class pr {
|
|
34
37
|
constructor() {
|
|
@@ -57,15 +60,15 @@ class pr {
|
|
|
57
60
|
*
|
|
58
61
|
* @public
|
|
59
62
|
*/
|
|
60
|
-
start(t,
|
|
63
|
+
start(t, o) {
|
|
61
64
|
this.componentControls.forEach((r) => {
|
|
62
|
-
r.start(t.nativeEvent || t,
|
|
65
|
+
r.start(t.nativeEvent || t, o);
|
|
63
66
|
});
|
|
64
67
|
}
|
|
65
68
|
}
|
|
66
69
|
const mr = () => new pr();
|
|
67
70
|
function gr() {
|
|
68
|
-
return
|
|
71
|
+
return Ht(mr);
|
|
69
72
|
}
|
|
70
73
|
function kr(e) {
|
|
71
74
|
if (e.sheet)
|
|
@@ -79,12 +82,12 @@ function vr(e) {
|
|
|
79
82
|
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
83
|
}
|
|
81
84
|
var br = /* @__PURE__ */ (function() {
|
|
82
|
-
function e(
|
|
85
|
+
function e(o) {
|
|
83
86
|
var r = this;
|
|
84
87
|
this._insertTag = function(i) {
|
|
85
|
-
var
|
|
86
|
-
r.tags.length === 0 ? r.insertionPoint ?
|
|
87
|
-
}, this.isSpeedy =
|
|
88
|
+
var s;
|
|
89
|
+
r.tags.length === 0 ? r.insertionPoint ? s = r.insertionPoint.nextSibling : r.prepend ? s = r.container.firstChild : s = r.before : s = r.tags[r.tags.length - 1].nextSibling, r.container.insertBefore(i, s), r.tags.push(i);
|
|
90
|
+
}, 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
91
|
}
|
|
89
92
|
var t = e.prototype;
|
|
90
93
|
return t.hydrate = function(r) {
|
|
@@ -93,9 +96,9 @@ var br = /* @__PURE__ */ (function() {
|
|
|
93
96
|
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(vr(this));
|
|
94
97
|
var i = this.tags[this.tags.length - 1];
|
|
95
98
|
if (this.isSpeedy) {
|
|
96
|
-
var
|
|
99
|
+
var s = kr(i);
|
|
97
100
|
try {
|
|
98
|
-
|
|
101
|
+
s.insertRule(r, s.cssRules.length);
|
|
99
102
|
} catch {
|
|
100
103
|
}
|
|
101
104
|
} else
|
|
@@ -107,7 +110,7 @@ var br = /* @__PURE__ */ (function() {
|
|
|
107
110
|
return (i = r.parentNode) == null ? void 0 : i.removeChild(r);
|
|
108
111
|
}), this.tags = [], this.ctr = 0;
|
|
109
112
|
}, e;
|
|
110
|
-
})(), S = "-ms-", te = "-moz-", p = "-webkit-",
|
|
113
|
+
})(), S = "-ms-", te = "-moz-", p = "-webkit-", De = "comm", de = "rule", he = "decl", Cr = "@import", Pe = "@keyframes", xr = "@layer", Nr = Math.abs, oe = String.fromCharCode, yr = Object.assign;
|
|
111
114
|
function Lr(e, t) {
|
|
112
115
|
return I(e, 0) ^ 45 ? (((t << 2 ^ I(e, 0)) << 2 ^ I(e, 1)) << 2 ^ I(e, 2)) << 2 ^ I(e, 3) : 0;
|
|
113
116
|
}
|
|
@@ -117,8 +120,8 @@ function Be(e) {
|
|
|
117
120
|
function Ir(e, t) {
|
|
118
121
|
return (e = t.exec(e)) ? e[0] : e;
|
|
119
122
|
}
|
|
120
|
-
function m(e, t,
|
|
121
|
-
return e.replace(t,
|
|
123
|
+
function m(e, t, o) {
|
|
124
|
+
return e.replace(t, o);
|
|
122
125
|
}
|
|
123
126
|
function ae(e, t) {
|
|
124
127
|
return e.indexOf(t);
|
|
@@ -126,8 +129,8 @@ function ae(e, t) {
|
|
|
126
129
|
function I(e, t) {
|
|
127
130
|
return e.charCodeAt(t) | 0;
|
|
128
131
|
}
|
|
129
|
-
function q(e, t,
|
|
130
|
-
return e.slice(t,
|
|
132
|
+
function q(e, t, o) {
|
|
133
|
+
return e.slice(t, o);
|
|
131
134
|
}
|
|
132
135
|
function T(e) {
|
|
133
136
|
return e.length;
|
|
@@ -141,30 +144,30 @@ function Y(e, t) {
|
|
|
141
144
|
function Er(e, t) {
|
|
142
145
|
return e.map(t).join("");
|
|
143
146
|
}
|
|
144
|
-
var
|
|
145
|
-
function ie(e, t,
|
|
146
|
-
return { value: e, root: t, parent:
|
|
147
|
+
var se = 1, V = 1, Fe = 0, A = 0, N = 0, z = "";
|
|
148
|
+
function ie(e, t, o, r, i, s, h) {
|
|
149
|
+
return { value: e, root: t, parent: o, type: r, props: i, children: s, line: se, column: V, length: h, return: "" };
|
|
147
150
|
}
|
|
148
|
-
function
|
|
151
|
+
function _(e, t) {
|
|
149
152
|
return yr(ie("", null, null, "", null, null, 0), e, { length: -e.length }, t);
|
|
150
153
|
}
|
|
151
154
|
function Sr() {
|
|
152
155
|
return N;
|
|
153
156
|
}
|
|
154
157
|
function Mr() {
|
|
155
|
-
return N =
|
|
158
|
+
return N = A > 0 ? I(z, --A) : 0, V--, N === 10 && (V = 1, se--), N;
|
|
156
159
|
}
|
|
157
|
-
function
|
|
158
|
-
return N =
|
|
160
|
+
function j() {
|
|
161
|
+
return N = A < Fe ? I(z, A++) : 0, V++, N === 10 && (V = 1, se++), N;
|
|
159
162
|
}
|
|
160
|
-
function
|
|
161
|
-
return I(
|
|
163
|
+
function P() {
|
|
164
|
+
return I(z, A);
|
|
162
165
|
}
|
|
163
|
-
function
|
|
164
|
-
return
|
|
166
|
+
function K() {
|
|
167
|
+
return A;
|
|
165
168
|
}
|
|
166
169
|
function Z(e, t) {
|
|
167
|
-
return q(
|
|
170
|
+
return q(z, e, t);
|
|
168
171
|
}
|
|
169
172
|
function U(e) {
|
|
170
173
|
switch (e) {
|
|
@@ -205,30 +208,30 @@ function U(e) {
|
|
|
205
208
|
return 0;
|
|
206
209
|
}
|
|
207
210
|
function We(e) {
|
|
208
|
-
return
|
|
211
|
+
return se = V = 1, Fe = T(z = e), A = 0, [];
|
|
209
212
|
}
|
|
210
213
|
function He(e) {
|
|
211
|
-
return
|
|
214
|
+
return z = "", e;
|
|
212
215
|
}
|
|
213
|
-
function
|
|
214
|
-
return Be(Z(
|
|
216
|
+
function X(e) {
|
|
217
|
+
return Be(Z(A - 1, le(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
215
218
|
}
|
|
216
|
-
function
|
|
217
|
-
for (; (N =
|
|
218
|
-
|
|
219
|
+
function Ar(e) {
|
|
220
|
+
for (; (N = P()) && N < 33; )
|
|
221
|
+
j();
|
|
219
222
|
return U(e) > 2 || U(N) > 3 ? "" : " ";
|
|
220
223
|
}
|
|
221
|
-
function
|
|
222
|
-
for (; --t &&
|
|
224
|
+
function jr(e, t) {
|
|
225
|
+
for (; --t && j() && !(N < 48 || N > 102 || N > 57 && N < 65 || N > 70 && N < 97); )
|
|
223
226
|
;
|
|
224
|
-
return Z(e,
|
|
227
|
+
return Z(e, K() + (t < 6 && P() == 32 && j() == 32));
|
|
225
228
|
}
|
|
226
229
|
function le(e) {
|
|
227
|
-
for (;
|
|
230
|
+
for (; j(); )
|
|
228
231
|
switch (N) {
|
|
229
232
|
// ] ) " '
|
|
230
233
|
case e:
|
|
231
|
-
return
|
|
234
|
+
return A;
|
|
232
235
|
// " '
|
|
233
236
|
case 34:
|
|
234
237
|
case 39:
|
|
@@ -240,57 +243,57 @@ function le(e) {
|
|
|
240
243
|
break;
|
|
241
244
|
// \
|
|
242
245
|
case 92:
|
|
243
|
-
|
|
246
|
+
j();
|
|
244
247
|
break;
|
|
245
248
|
}
|
|
246
|
-
return
|
|
249
|
+
return A;
|
|
247
250
|
}
|
|
248
|
-
function
|
|
249
|
-
for (;
|
|
250
|
-
if (e + N === 84 &&
|
|
251
|
+
function Rr(e, t) {
|
|
252
|
+
for (; j() && e + N !== 57; )
|
|
253
|
+
if (e + N === 84 && P() === 47)
|
|
251
254
|
break;
|
|
252
|
-
return "/*" + Z(t,
|
|
255
|
+
return "/*" + Z(t, A - 1) + "*" + oe(e === 47 ? e : j());
|
|
253
256
|
}
|
|
254
|
-
function
|
|
255
|
-
for (; !U(
|
|
256
|
-
|
|
257
|
-
return Z(e,
|
|
257
|
+
function $r(e) {
|
|
258
|
+
for (; !U(P()); )
|
|
259
|
+
j();
|
|
260
|
+
return Z(e, A);
|
|
258
261
|
}
|
|
259
262
|
function Tr(e) {
|
|
260
263
|
return He(J("", null, null, null, [""], e = We(e), 0, [0], e));
|
|
261
264
|
}
|
|
262
|
-
function J(e, t,
|
|
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 =
|
|
264
|
-
switch (w = x, x =
|
|
265
|
+
function J(e, t, o, r, i, s, h, c, u) {
|
|
266
|
+
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 = s, $ = r, C = M; y; )
|
|
267
|
+
switch (w = x, x = j()) {
|
|
265
268
|
// (
|
|
266
269
|
case 40:
|
|
267
270
|
if (w != 108 && I(C, a - 1) == 58) {
|
|
268
|
-
ae(C += m(
|
|
271
|
+
ae(C += m(X(x), "&", "&\f"), "&\f") != -1 && (g = -1);
|
|
269
272
|
break;
|
|
270
273
|
}
|
|
271
274
|
// " ' [
|
|
272
275
|
case 34:
|
|
273
276
|
case 39:
|
|
274
277
|
case 91:
|
|
275
|
-
C +=
|
|
278
|
+
C += X(x);
|
|
276
279
|
break;
|
|
277
280
|
// \t \n \r \s
|
|
278
281
|
case 9:
|
|
279
282
|
case 10:
|
|
280
283
|
case 13:
|
|
281
284
|
case 32:
|
|
282
|
-
C +=
|
|
285
|
+
C += Ar(w);
|
|
283
286
|
break;
|
|
284
287
|
// \
|
|
285
288
|
case 92:
|
|
286
|
-
C +=
|
|
289
|
+
C += jr(K() - 1, 7);
|
|
287
290
|
continue;
|
|
288
291
|
// /
|
|
289
292
|
case 47:
|
|
290
|
-
switch (
|
|
293
|
+
switch (P()) {
|
|
291
294
|
case 42:
|
|
292
295
|
case 47:
|
|
293
|
-
Y(
|
|
296
|
+
Y(Dr(Rr(j(), K()), t, o), u);
|
|
294
297
|
break;
|
|
295
298
|
default:
|
|
296
299
|
C += "/";
|
|
@@ -310,16 +313,16 @@ function J(e, t, s, r, i, o, h, c, u) {
|
|
|
310
313
|
y = 0;
|
|
311
314
|
// ;
|
|
312
315
|
case 59 + l:
|
|
313
|
-
g == -1 && (C = m(C, /\f/g, "")), v > 0 && T(C) - a && Y(v > 32 ? Ce(C + ";", r,
|
|
316
|
+
g == -1 && (C = m(C, /\f/g, "")), v > 0 && T(C) - a && Y(v > 32 ? Ce(C + ";", r, o, a - 1) : Ce(m(C, " ", "") + ";", r, o, a - 2), u);
|
|
314
317
|
break;
|
|
315
318
|
// @ ;
|
|
316
319
|
case 59:
|
|
317
320
|
C += ";";
|
|
318
321
|
// { rule/at-rule
|
|
319
322
|
default:
|
|
320
|
-
if (Y(
|
|
323
|
+
if (Y($ = be(C, t, o, b, l, i, c, M, Q = [], B = [], a), s), x === 123)
|
|
321
324
|
if (l === 0)
|
|
322
|
-
J(C, t,
|
|
325
|
+
J(C, t, $, $, Q, s, a, c, B);
|
|
323
326
|
else
|
|
324
327
|
switch (f === 99 && I(C, 3) === 110 ? 100 : f) {
|
|
325
328
|
// d l m s
|
|
@@ -327,10 +330,10 @@ function J(e, t, s, r, i, o, h, c, u) {
|
|
|
327
330
|
case 108:
|
|
328
331
|
case 109:
|
|
329
332
|
case 115:
|
|
330
|
-
J(e,
|
|
333
|
+
J(e, $, $, r && Y(be(e, $, $, 0, 0, i, c, M, i, Q = [], a), B), i, B, a, c, r ? Q : B);
|
|
331
334
|
break;
|
|
332
335
|
default:
|
|
333
|
-
J(C,
|
|
336
|
+
J(C, $, $, $, [""], B, 0, c, B);
|
|
334
337
|
}
|
|
335
338
|
}
|
|
336
339
|
b = l = v = 0, d = g = 1, M = C = "", a = h;
|
|
@@ -345,7 +348,7 @@ function J(e, t, s, r, i, o, h, c, u) {
|
|
|
345
348
|
else if (x == 125 && d++ == 0 && Mr() == 125)
|
|
346
349
|
continue;
|
|
347
350
|
}
|
|
348
|
-
switch (C +=
|
|
351
|
+
switch (C += oe(x), x * d) {
|
|
349
352
|
// &
|
|
350
353
|
case 38:
|
|
351
354
|
g = l > 0 ? 1 : (C += "\f", -1);
|
|
@@ -356,53 +359,53 @@ function J(e, t, s, r, i, o, h, c, u) {
|
|
|
356
359
|
break;
|
|
357
360
|
// @
|
|
358
361
|
case 64:
|
|
359
|
-
|
|
362
|
+
P() === 45 && (C += X(j())), f = P(), l = a = T(M = C += $r(K())), x++;
|
|
360
363
|
break;
|
|
361
364
|
// -
|
|
362
365
|
case 45:
|
|
363
366
|
w === 45 && T(C) == 2 && (d = 0);
|
|
364
367
|
}
|
|
365
368
|
}
|
|
366
|
-
return
|
|
369
|
+
return s;
|
|
367
370
|
}
|
|
368
|
-
function be(e, t,
|
|
369
|
-
for (var a = i - 1, f = i === 0 ?
|
|
371
|
+
function be(e, t, o, r, i, s, h, c, u, b, l) {
|
|
372
|
+
for (var a = i - 1, f = i === 0 ? s : [""], v = ue(f), w = 0, d = 0, y = 0; w < r; ++w)
|
|
370
373
|
for (var g = 0, x = q(e, a + 1, a = Nr(d = h[w])), M = e; g < v; ++g)
|
|
371
374
|
(M = Be(d > 0 ? f[g] + " " + x : m(x, /&\f/g, f[g]))) && (u[y++] = M);
|
|
372
|
-
return ie(e, t,
|
|
375
|
+
return ie(e, t, o, i === 0 ? de : c, u, b, l);
|
|
373
376
|
}
|
|
374
|
-
function
|
|
375
|
-
return ie(e, t,
|
|
377
|
+
function Dr(e, t, o) {
|
|
378
|
+
return ie(e, t, o, De, oe(Sr()), q(e, 2, -2), 0);
|
|
376
379
|
}
|
|
377
|
-
function Ce(e, t,
|
|
378
|
-
return ie(e, t,
|
|
380
|
+
function Ce(e, t, o, r) {
|
|
381
|
+
return ie(e, t, o, he, q(e, 0, r), q(e, r + 1, -1), r);
|
|
379
382
|
}
|
|
380
383
|
function H(e, t) {
|
|
381
|
-
for (var
|
|
382
|
-
|
|
383
|
-
return
|
|
384
|
+
for (var o = "", r = ue(e), i = 0; i < r; i++)
|
|
385
|
+
o += t(e[i], i, e, t) || "";
|
|
386
|
+
return o;
|
|
384
387
|
}
|
|
385
|
-
function
|
|
388
|
+
function Pr(e, t, o, r) {
|
|
386
389
|
switch (e.type) {
|
|
387
390
|
case xr:
|
|
388
391
|
if (e.children.length) break;
|
|
389
392
|
case Cr:
|
|
390
393
|
case he:
|
|
391
394
|
return e.return = e.return || e.value;
|
|
392
|
-
case Pe:
|
|
393
|
-
return "";
|
|
394
395
|
case De:
|
|
396
|
+
return "";
|
|
397
|
+
case Pe:
|
|
395
398
|
return e.return = e.value + "{" + H(e.children, r) + "}";
|
|
396
399
|
case de:
|
|
397
400
|
e.value = e.props.join(",");
|
|
398
401
|
}
|
|
399
|
-
return T(
|
|
402
|
+
return T(o = H(e.children, r)) ? e.return = e.value + "{" + o + "}" : "";
|
|
400
403
|
}
|
|
401
404
|
function Br(e) {
|
|
402
405
|
var t = ue(e);
|
|
403
|
-
return function(
|
|
406
|
+
return function(o, r, i, s) {
|
|
404
407
|
for (var h = "", c = 0; c < t; c++)
|
|
405
|
-
h += e[c](
|
|
408
|
+
h += e[c](o, r, i, s) || "";
|
|
406
409
|
return h;
|
|
407
410
|
};
|
|
408
411
|
}
|
|
@@ -411,52 +414,52 @@ function Fr(e) {
|
|
|
411
414
|
t.root || (t = t.return) && e(t);
|
|
412
415
|
};
|
|
413
416
|
}
|
|
414
|
-
var Wr = function(t,
|
|
415
|
-
for (var i = 0,
|
|
416
|
-
|
|
417
|
-
return Z(t,
|
|
418
|
-
}, Hr = function(t,
|
|
417
|
+
var Wr = function(t, o, r) {
|
|
418
|
+
for (var i = 0, s = 0; i = s, s = P(), i === 38 && s === 12 && (o[r] = 1), !U(s); )
|
|
419
|
+
j();
|
|
420
|
+
return Z(t, A);
|
|
421
|
+
}, Hr = function(t, o) {
|
|
419
422
|
var r = -1, i = 44;
|
|
420
423
|
do
|
|
421
424
|
switch (U(i)) {
|
|
422
425
|
case 0:
|
|
423
|
-
i === 38 &&
|
|
426
|
+
i === 38 && P() === 12 && (o[r] = 1), t[r] += Wr(A - 1, o, r);
|
|
424
427
|
break;
|
|
425
428
|
case 2:
|
|
426
|
-
t[r] +=
|
|
429
|
+
t[r] += X(i);
|
|
427
430
|
break;
|
|
428
431
|
case 4:
|
|
429
432
|
if (i === 44) {
|
|
430
|
-
t[++r] =
|
|
433
|
+
t[++r] = P() === 58 ? "&\f" : "", o[r] = t[r].length;
|
|
431
434
|
break;
|
|
432
435
|
}
|
|
433
436
|
// fallthrough
|
|
434
437
|
default:
|
|
435
|
-
t[r] +=
|
|
438
|
+
t[r] += oe(i);
|
|
436
439
|
}
|
|
437
|
-
while (i =
|
|
440
|
+
while (i = j());
|
|
438
441
|
return t;
|
|
439
|
-
}, Or = function(t,
|
|
440
|
-
return He(Hr(We(t),
|
|
442
|
+
}, Or = function(t, o) {
|
|
443
|
+
return He(Hr(We(t), o));
|
|
441
444
|
}, xe = /* @__PURE__ */ new WeakMap(), Vr = function(t) {
|
|
442
445
|
if (!(t.type !== "rule" || !t.parent || // positive .length indicates that this rule contains pseudo
|
|
443
446
|
// negative .length indicates that this rule has been already prefixed
|
|
444
447
|
t.length < 1)) {
|
|
445
|
-
for (var
|
|
448
|
+
for (var o = t.value, r = t.parent, i = t.column === r.column && t.line === r.line; r.type !== "rule"; )
|
|
446
449
|
if (r = r.parent, !r) return;
|
|
447
|
-
if (!(t.props.length === 1 &&
|
|
450
|
+
if (!(t.props.length === 1 && o.charCodeAt(0) !== 58 && !xe.get(r)) && !i) {
|
|
448
451
|
xe.set(t, !0);
|
|
449
|
-
for (var
|
|
452
|
+
for (var s = [], h = Or(o, s), c = r.props, u = 0, b = 0; u < h.length; u++)
|
|
450
453
|
for (var l = 0; l < c.length; l++, b++)
|
|
451
|
-
t.props[b] =
|
|
454
|
+
t.props[b] = s[u] ? h[u].replace(/&\f/g, c[l]) : c[l] + " " + h[u];
|
|
452
455
|
}
|
|
453
456
|
}
|
|
454
|
-
},
|
|
457
|
+
}, zr = function(t) {
|
|
455
458
|
if (t.type === "decl") {
|
|
456
|
-
var
|
|
459
|
+
var o = t.value;
|
|
457
460
|
// charcode for l
|
|
458
|
-
|
|
459
|
-
|
|
461
|
+
o.charCodeAt(0) === 108 && // charcode for b
|
|
462
|
+
o.charCodeAt(2) === 98 && (t.return = "", t.value = "");
|
|
460
463
|
}
|
|
461
464
|
};
|
|
462
465
|
function Oe(e, t) {
|
|
@@ -601,60 +604,60 @@ function Oe(e, t) {
|
|
|
601
604
|
}
|
|
602
605
|
return e;
|
|
603
606
|
}
|
|
604
|
-
var
|
|
607
|
+
var _r = function(t, o, r, i) {
|
|
605
608
|
if (t.length > -1 && !t.return) switch (t.type) {
|
|
606
609
|
case he:
|
|
607
610
|
t.return = Oe(t.value, t.length);
|
|
608
611
|
break;
|
|
609
|
-
case
|
|
610
|
-
return H([
|
|
612
|
+
case Pe:
|
|
613
|
+
return H([_(t, {
|
|
611
614
|
value: m(t.value, "@", "@" + p)
|
|
612
615
|
})], i);
|
|
613
616
|
case de:
|
|
614
|
-
if (t.length) return Er(t.props, function(
|
|
615
|
-
switch (Ir(
|
|
617
|
+
if (t.length) return Er(t.props, function(s) {
|
|
618
|
+
switch (Ir(s, /(::plac\w+|:read-\w+)/)) {
|
|
616
619
|
// :read-(only|write)
|
|
617
620
|
case ":read-only":
|
|
618
621
|
case ":read-write":
|
|
619
|
-
return H([
|
|
620
|
-
props: [m(
|
|
622
|
+
return H([_(t, {
|
|
623
|
+
props: [m(s, /:(read-\w+)/, ":" + te + "$1")]
|
|
621
624
|
})], i);
|
|
622
625
|
// :placeholder
|
|
623
626
|
case "::placeholder":
|
|
624
|
-
return H([
|
|
625
|
-
props: [m(
|
|
626
|
-
}),
|
|
627
|
-
props: [m(
|
|
628
|
-
}),
|
|
629
|
-
props: [m(
|
|
627
|
+
return H([_(t, {
|
|
628
|
+
props: [m(s, /:(plac\w+)/, ":" + p + "input-$1")]
|
|
629
|
+
}), _(t, {
|
|
630
|
+
props: [m(s, /:(plac\w+)/, ":" + te + "$1")]
|
|
631
|
+
}), _(t, {
|
|
632
|
+
props: [m(s, /:(plac\w+)/, S + "input-$1")]
|
|
630
633
|
})], i);
|
|
631
634
|
}
|
|
632
635
|
return "";
|
|
633
636
|
});
|
|
634
637
|
}
|
|
635
|
-
}, Gr = [
|
|
636
|
-
var
|
|
637
|
-
if (
|
|
638
|
+
}, Gr = [_r], qr = function(t) {
|
|
639
|
+
var o = t.key;
|
|
640
|
+
if (o === "css") {
|
|
638
641
|
var r = document.querySelectorAll("style[data-emotion]:not([data-s])");
|
|
639
642
|
Array.prototype.forEach.call(r, function(d) {
|
|
640
643
|
var y = d.getAttribute("data-emotion");
|
|
641
644
|
y.indexOf(" ") !== -1 && (document.head.appendChild(d), d.setAttribute("data-s", ""));
|
|
642
645
|
});
|
|
643
646
|
}
|
|
644
|
-
var i = t.stylisPlugins || Gr,
|
|
647
|
+
var i = t.stylisPlugins || Gr, s = {}, h, c = [];
|
|
645
648
|
h = t.container || document.head, Array.prototype.forEach.call(
|
|
646
649
|
// this means we will ignore elements which don't have a space in them which
|
|
647
650
|
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
|
648
|
-
document.querySelectorAll('style[data-emotion^="' +
|
|
651
|
+
document.querySelectorAll('style[data-emotion^="' + o + ' "]'),
|
|
649
652
|
function(d) {
|
|
650
653
|
for (var y = d.getAttribute("data-emotion").split(" "), g = 1; g < y.length; g++)
|
|
651
|
-
|
|
654
|
+
s[y[g]] = !0;
|
|
652
655
|
c.push(d);
|
|
653
656
|
}
|
|
654
657
|
);
|
|
655
|
-
var u, b = [Vr,
|
|
658
|
+
var u, b = [Vr, zr];
|
|
656
659
|
{
|
|
657
|
-
var l, a = [
|
|
660
|
+
var l, a = [Pr, Fr(function(d) {
|
|
658
661
|
l.insert(d);
|
|
659
662
|
})], f = Br(b.concat(i, a)), v = function(y) {
|
|
660
663
|
return H(Tr(y), f);
|
|
@@ -664,9 +667,9 @@ var zr = function(t, s, r, i) {
|
|
|
664
667
|
};
|
|
665
668
|
}
|
|
666
669
|
var w = {
|
|
667
|
-
key:
|
|
670
|
+
key: o,
|
|
668
671
|
sheet: new br({
|
|
669
|
-
key:
|
|
672
|
+
key: o,
|
|
670
673
|
container: h,
|
|
671
674
|
nonce: t.nonce,
|
|
672
675
|
speedy: t.speedy,
|
|
@@ -674,19 +677,19 @@ var zr = function(t, s, r, i) {
|
|
|
674
677
|
insertionPoint: t.insertionPoint
|
|
675
678
|
}),
|
|
676
679
|
nonce: t.nonce,
|
|
677
|
-
inserted:
|
|
680
|
+
inserted: s,
|
|
678
681
|
registered: {},
|
|
679
682
|
insert: u
|
|
680
683
|
};
|
|
681
684
|
return w.sheet.hydrate(c), w;
|
|
682
685
|
};
|
|
683
|
-
const Ve = ({ children: e, viewport: t, containerProps:
|
|
684
|
-
const r =
|
|
686
|
+
const Ve = ({ children: e, viewport: t, containerProps: o }) => {
|
|
687
|
+
const r = Ie(null), { theme: i } = re(), [s, h] = O({
|
|
685
688
|
width: 0,
|
|
686
689
|
height: 0
|
|
687
690
|
});
|
|
688
691
|
G(() => {
|
|
689
|
-
const w =
|
|
692
|
+
const w = pt((y) => {
|
|
690
693
|
const g = y.at(0)?.target;
|
|
691
694
|
if (!g) return;
|
|
692
695
|
const { width: x, height: M } = g.getBoundingClientRect();
|
|
@@ -697,20 +700,20 @@ const Ve = ({ children: e, viewport: t, containerProps: s }) => {
|
|
|
697
700
|
}, 200), d = new ResizeObserver(w);
|
|
698
701
|
return r.current && d.observe(r.current), () => d.disconnect();
|
|
699
702
|
}, []);
|
|
700
|
-
const c = pe(t?.width) ? t.width(
|
|
701
|
-
return /* @__PURE__ */ n("div", { ...
|
|
703
|
+
const c = pe(t?.width) ? t.width(s.width) : t?.width, u = pe(t?.height) ? t.height(s.height) : t?.height, b = me(c) ? s.width / c : 1, l = me(u) ? s.height / u : 1, a = Math.min(b, l, 1), f = (u ?? s.height / a) || 0, v = (c ?? s.width / a) || 0;
|
|
704
|
+
return /* @__PURE__ */ n("div", { ...o, className: D("tw:w-full tw:h-full tw:p-2 tw:bg-ic-ink-1s", o?.className), children: /* @__PURE__ */ n("div", { className: D("tw:w-full tw:h-full tw:overflow-hidden tw:relative"), ref: r, children: /* @__PURE__ */ n(
|
|
702
705
|
"div",
|
|
703
706
|
{
|
|
704
707
|
style: {
|
|
705
708
|
transform: `scale(${a})`,
|
|
706
709
|
width: v,
|
|
707
710
|
height: f,
|
|
708
|
-
marginLeft: (
|
|
709
|
-
marginTop: (
|
|
711
|
+
marginLeft: (s.width - v) / 2,
|
|
712
|
+
marginTop: (s.height - f) / 2
|
|
710
713
|
},
|
|
711
714
|
className: "tw:absolute",
|
|
712
715
|
children: /* @__PURE__ */ n(
|
|
713
|
-
|
|
716
|
+
rr,
|
|
714
717
|
{
|
|
715
718
|
sandbox: "allow-same-origin allow-scripts allow-popups allow-presentation",
|
|
716
719
|
allow: "autoplay; encrypted-media",
|
|
@@ -722,22 +725,22 @@ const Ve = ({ children: e, viewport: t, containerProps: s }) => {
|
|
|
722
725
|
}
|
|
723
726
|
) }) });
|
|
724
727
|
}, Ur = ({ children: e, theme: t }) => {
|
|
725
|
-
const { document:
|
|
728
|
+
const { document: o, window: r } = nr(), [i, s] = O(!1), h = Ie(window.customElements.define.bind(window.customElements));
|
|
726
729
|
G(() => {
|
|
727
730
|
const u = h.current;
|
|
728
731
|
return r && (window.customElements.define = function(b, l, a) {
|
|
729
732
|
window.customElements.get(b) || r.customElements.define(b, l, a), u(b, l, a);
|
|
730
|
-
}),
|
|
733
|
+
}), o?.head.replaceWith(document.head.cloneNode(!0)), s(!0), () => {
|
|
731
734
|
window.customElements.define = u;
|
|
732
735
|
};
|
|
733
|
-
}, [
|
|
736
|
+
}, [o, r]);
|
|
734
737
|
const c = qr({
|
|
735
738
|
key: "css",
|
|
736
|
-
container:
|
|
739
|
+
container: o?.head
|
|
737
740
|
});
|
|
738
|
-
return i ? /* @__PURE__ */ n(ye, { children: /* @__PURE__ */ k(
|
|
741
|
+
return i ? /* @__PURE__ */ n(ye, { children: /* @__PURE__ */ k(or, { value: c, children: [
|
|
739
742
|
/* @__PURE__ */ n(
|
|
740
|
-
|
|
743
|
+
sr,
|
|
741
744
|
{
|
|
742
745
|
styles: {
|
|
743
746
|
".frame-content": {
|
|
@@ -758,43 +761,44 @@ const Ve = ({ children: e, viewport: t, containerProps: s }) => {
|
|
|
758
761
|
}
|
|
759
762
|
}
|
|
760
763
|
),
|
|
761
|
-
/* @__PURE__ */ n(
|
|
764
|
+
/* @__PURE__ */ n(Bt, { theme: t, children: e })
|
|
762
765
|
] }) }) : null;
|
|
763
766
|
}, Zr = ({ render: e }) => {
|
|
764
|
-
const { id: t, renderer:
|
|
765
|
-
resolvedId:
|
|
766
|
-
renderer:
|
|
767
|
+
const { id: t, renderer: o } = lt((s) => ({
|
|
768
|
+
resolvedId: ut(s),
|
|
769
|
+
renderer: ht(s).renderer
|
|
767
770
|
})), {
|
|
768
771
|
queryParams: { mode: r }
|
|
769
|
-
} = ne(), { isActive: i } = F((
|
|
772
|
+
} = ne(), { isActive: i } = F((s, h) => ({
|
|
770
773
|
isActive: h.getEvent("selected").contains(t) && t !== W
|
|
771
774
|
}));
|
|
772
|
-
return
|
|
775
|
+
return o ? Ee(o, { render: e }) : /* @__PURE__ */ k(ee, { children: [
|
|
773
776
|
i && r === "full" && /* @__PURE__ */ k(ee, { children: [
|
|
774
|
-
/* @__PURE__ */ n(
|
|
775
|
-
/* @__PURE__ */ n(
|
|
777
|
+
/* @__PURE__ */ n(mt, {}),
|
|
778
|
+
/* @__PURE__ */ n(gt, {})
|
|
776
779
|
] }),
|
|
777
780
|
e
|
|
778
781
|
] });
|
|
779
782
|
};
|
|
780
|
-
L(
|
|
781
|
-
L(
|
|
782
|
-
L(
|
|
783
|
-
L(
|
|
784
|
-
L(
|
|
785
|
-
L(
|
|
786
|
-
L(
|
|
787
|
-
L(
|
|
788
|
-
L(
|
|
789
|
-
L(
|
|
790
|
-
L(
|
|
791
|
-
L(
|
|
792
|
-
L(
|
|
793
|
-
L(
|
|
794
|
-
L(
|
|
795
|
-
L(
|
|
796
|
-
L(
|
|
797
|
-
L(
|
|
783
|
+
L(ze, { inspector: kt });
|
|
784
|
+
L(_e, { inspector: vt });
|
|
785
|
+
L(Ge, { inspector: bt });
|
|
786
|
+
L(qe, { inspector: Ct });
|
|
787
|
+
L(Ue, { inspector: xt });
|
|
788
|
+
L(Ze, { inspector: Nt });
|
|
789
|
+
L(Qe, { inspector: yt });
|
|
790
|
+
L(Ye, { inspector: Lt });
|
|
791
|
+
L(Ke, { inspector: It });
|
|
792
|
+
L(Xe, { inspector: Et });
|
|
793
|
+
L(Je, { inspector: St });
|
|
794
|
+
L(et, { inspector: Mt });
|
|
795
|
+
L(tt, { inspector: At });
|
|
796
|
+
L(rt, { inspector: jt });
|
|
797
|
+
L(nt, { inspector: Rt });
|
|
798
|
+
L(ot, { inspector: $t });
|
|
799
|
+
L(st, { inspector: Tt });
|
|
800
|
+
L(it, { inspector: Dt });
|
|
801
|
+
L(ct, { inspector: Pt });
|
|
798
802
|
const Ne = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
799
803
|
<path d="M8 5L5 8L8 11" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
800
804
|
<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"/>
|
|
@@ -811,25 +815,25 @@ const Ne = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
811
815
|
<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
816
|
<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
817
|
</svg>
|
|
814
|
-
`,
|
|
818
|
+
`, Kr = '<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>', Xr = () => {
|
|
815
819
|
const {
|
|
816
820
|
queryParams: { mode: e, screen: t },
|
|
817
|
-
setQueryParams:
|
|
818
|
-
} = ne(), [r, i] = O(!1), { handlers:
|
|
821
|
+
setQueryParams: o
|
|
822
|
+
} = ne(), [r, i] = O(!1), { handlers: s } = re(), { actions: h, canRedo: c, canUndo: u, query: b } = F((w, d) => ({
|
|
819
823
|
enabled: w.options.enabled,
|
|
820
824
|
canUndo: d.history.canUndo(),
|
|
821
825
|
canRedo: d.history.canRedo()
|
|
822
826
|
})), l = (w) => {
|
|
823
|
-
|
|
827
|
+
o({
|
|
824
828
|
screen: w
|
|
825
829
|
});
|
|
826
830
|
}, a = () => {
|
|
827
|
-
|
|
831
|
+
o({ mode: e === "full" ? "compact" : "full" });
|
|
828
832
|
}, f = () => {
|
|
829
|
-
|
|
833
|
+
s.close();
|
|
830
834
|
}, v = async () => {
|
|
831
835
|
try {
|
|
832
|
-
return h.selectNode(),
|
|
836
|
+
return h.selectNode(), s.submit(b.getSerializedNodes());
|
|
833
837
|
} catch {
|
|
834
838
|
} finally {
|
|
835
839
|
i(!1);
|
|
@@ -838,20 +842,20 @@ const Ne = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
838
842
|
return /* @__PURE__ */ k(
|
|
839
843
|
"div",
|
|
840
844
|
{
|
|
841
|
-
className:
|
|
845
|
+
className: D(
|
|
842
846
|
"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
847
|
),
|
|
844
848
|
children: [
|
|
845
849
|
/* @__PURE__ */ k("div", { className: "tw:flex tw:items-center tw:gap-3", children: [
|
|
846
|
-
/* @__PURE__ */ n(
|
|
847
|
-
/* @__PURE__ */ n(
|
|
850
|
+
/* @__PURE__ */ n(R, { size: "32", onClick: f, children: /* @__PURE__ */ n(E, { source: Kr }) }),
|
|
851
|
+
/* @__PURE__ */ n(lr, { onSelectionChange: l, value: t, children: cr.map(({ icon: w, size: d }) => /* @__PURE__ */ n(R, { value: d, children: /* @__PURE__ */ n(E, { source: w }) }, d)) }),
|
|
848
852
|
/* @__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(
|
|
850
|
-
/* @__PURE__ */ n(
|
|
853
|
+
/* @__PURE__ */ n(R, { onClick: h.history.undo, disabled: !u, children: /* @__PURE__ */ n(E, { source: Ne }) }),
|
|
854
|
+
/* @__PURE__ */ n(R, { onClick: h.history.redo, disabled: !c, children: /* @__PURE__ */ n(E, { source: Ne, className: "tw:rotate-180" }) })
|
|
851
855
|
] }),
|
|
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(
|
|
856
|
+
/* @__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(R, { onClick: a, children: /* @__PURE__ */ n(E, { source: e === "full" ? Yr : Qr }) }) })
|
|
853
857
|
] }),
|
|
854
|
-
/* @__PURE__ */ n("div", { className: "tw:flex tw:items-center tw:gap-3", children: /* @__PURE__ */ n(
|
|
858
|
+
/* @__PURE__ */ n("div", { className: "tw:flex tw:items-center tw:gap-3", children: /* @__PURE__ */ n(Ae, { isLoading: r, onClick: v, children: "Save" }) })
|
|
855
859
|
]
|
|
856
860
|
}
|
|
857
861
|
);
|
|
@@ -863,82 +867,82 @@ const Ne = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
863
867
|
<path d="M15 6L9 12L15 18" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
864
868
|
</svg>
|
|
865
869
|
`, 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(
|
|
867
|
-
/* @__PURE__ */ k(
|
|
868
|
-
/* @__PURE__ */ k(
|
|
869
|
-
/* @__PURE__ */ n(
|
|
870
|
-
/* @__PURE__ */ n(
|
|
870
|
+
/* @__PURE__ */ n("div", { className: "tw:flex tw:items-center tw:p-2 tw:gap-3", children: /* @__PURE__ */ n(je, { fullWidth: !0, placeholder: "Search...", prefix: /* @__PURE__ */ n(E, { source: Jr }) }) }),
|
|
871
|
+
/* @__PURE__ */ k(dr, { defaultIndex: 1, className: "tw:flex-1 tw:overflow-hidden tw:border-t tw:border-ic-white-1s", children: [
|
|
872
|
+
/* @__PURE__ */ k(hr, { children: [
|
|
873
|
+
/* @__PURE__ */ n(ke, { className: "tw:flex-1", children: "Sections" }),
|
|
874
|
+
/* @__PURE__ */ n(ke, { className: "tw:flex-1", children: "Elements" })
|
|
871
875
|
] }),
|
|
872
|
-
/* @__PURE__ */ k(
|
|
873
|
-
/* @__PURE__ */ n(
|
|
874
|
-
/* @__PURE__ */ n(
|
|
876
|
+
/* @__PURE__ */ k(ur, { className: "tw:flex-1 tw:overflow-hidden", children: [
|
|
877
|
+
/* @__PURE__ */ n(ve, { children: /* @__PURE__ */ n(ce, { className: "tw:h-full tw:py-2", children: t?.map((o, r) => /* @__PURE__ */ n(nn, { group: o }, r)) }) }),
|
|
878
|
+
/* @__PURE__ */ n(ve, { className: "tw:h-full tw:overflow-hidden", children: /* @__PURE__ */ n(ce, { className: "tw:h-full tw:py-2", children: e?.map((o, r) => /* @__PURE__ */ n(rn, { group: o }, r)) }) })
|
|
875
879
|
] })
|
|
876
880
|
] })
|
|
877
881
|
] }), rn = ({ group: e }) => {
|
|
878
|
-
const [t,
|
|
882
|
+
const [t, o] = $e(!0), { actions: r, connectors: i } = F();
|
|
879
883
|
return /* @__PURE__ */ k("div", { className: "tw:flex tw:flex-col tw:text-sm", children: [
|
|
880
|
-
/* @__PURE__ */ n(
|
|
884
|
+
/* @__PURE__ */ n(Ae, { onClick: o, className: "tw:bg-transparent", children: /* @__PURE__ */ k("div", { className: "tw:flex tw:items-center tw:justify-between tw:flex-1 tw:text-sm", children: [
|
|
881
885
|
e.name,
|
|
882
886
|
/* @__PURE__ */ n(
|
|
883
887
|
E,
|
|
884
888
|
{
|
|
885
|
-
source:
|
|
886
|
-
className:
|
|
889
|
+
source: Te,
|
|
890
|
+
className: D("tw:transition-transform", {
|
|
887
891
|
"tw:rotate-180": !t
|
|
888
892
|
})
|
|
889
893
|
}
|
|
890
894
|
)
|
|
891
895
|
] }) }),
|
|
892
|
-
/* @__PURE__ */ n(
|
|
896
|
+
/* @__PURE__ */ n(Ot, { 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((s, h) => /* @__PURE__ */ k("div", { className: "tw:space-y-1", children: [
|
|
893
897
|
/* @__PURE__ */ n(
|
|
894
898
|
"div",
|
|
895
899
|
{
|
|
896
|
-
className:
|
|
900
|
+
className: D(
|
|
897
901
|
"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
902
|
"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
903
|
"tw:after:absolute tw:after:inset-0 tw:after:content-empty tw:after:bg-ic-white-1s"
|
|
900
904
|
),
|
|
901
905
|
ref: (c) => {
|
|
902
|
-
c && i.create(c,
|
|
906
|
+
c && i.create(c, s.template, {
|
|
903
907
|
onCreate(u) {
|
|
904
|
-
(typeof
|
|
908
|
+
(typeof s.autoFocus == "function" ? s.autoFocus(u) : s.autoFocus) && r.selectNode(u.rootNodeId), s.onCreate?.(u);
|
|
905
909
|
}
|
|
906
910
|
});
|
|
907
911
|
},
|
|
908
|
-
children: /* @__PURE__ */ n(
|
|
912
|
+
children: /* @__PURE__ */ n(Vt, { width: void 0, height: void 0, ...s.icon })
|
|
909
913
|
}
|
|
910
914
|
),
|
|
911
|
-
/* @__PURE__ */ n("p", { className: "tw:text-xs tw:mx-auto tw:text-center", children:
|
|
915
|
+
/* @__PURE__ */ n("p", { className: "tw:text-xs tw:mx-auto tw:text-center", children: s.name })
|
|
912
916
|
] }, h)) }) })
|
|
913
917
|
] });
|
|
914
918
|
}, nn = ({ group: e }) => {
|
|
915
|
-
const [t,
|
|
919
|
+
const [t, o] = O(!1), { refs: r, floatingStyles: i, context: s } = qt({
|
|
916
920
|
open: t,
|
|
917
|
-
onOpenChange:
|
|
921
|
+
onOpenChange: o,
|
|
918
922
|
placement: "right-start",
|
|
919
923
|
middleware: [
|
|
920
|
-
|
|
921
|
-
|
|
924
|
+
Zt(),
|
|
925
|
+
Qt({
|
|
922
926
|
apply({ elements: f }) {
|
|
923
927
|
const v = {
|
|
924
|
-
zIndex: `${
|
|
928
|
+
zIndex: `${Ft}`,
|
|
925
929
|
height: `${f.reference.getBoundingClientRect().height}px`
|
|
926
930
|
};
|
|
927
931
|
Object.assign(f.floating.style, v);
|
|
928
932
|
}
|
|
929
933
|
})
|
|
930
934
|
],
|
|
931
|
-
whileElementsMounted:
|
|
935
|
+
whileElementsMounted: Ut
|
|
932
936
|
});
|
|
933
937
|
G(() => {
|
|
934
938
|
r.setPositionReference(document.querySelector("aside"));
|
|
935
939
|
}, [r]);
|
|
936
|
-
const h =
|
|
940
|
+
const h = Yt(s, { move: !1, handleClose: Kt() }), c = Xt(s), u = Jt(s), b = er(s), { getReferenceProps: l, getFloatingProps: a } = tr([h, c, u, b]);
|
|
937
941
|
return /* @__PURE__ */ k(ee, { children: [
|
|
938
942
|
/* @__PURE__ */ k(
|
|
939
943
|
"button",
|
|
940
944
|
{
|
|
941
|
-
className:
|
|
945
|
+
className: D(
|
|
942
946
|
"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
947
|
"tw:hover:text-ic-white-6s tw:hover:bg-ic-white-1s tw:hover:font-medium"
|
|
944
948
|
),
|
|
@@ -951,13 +955,13 @@ const Ne = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
951
955
|
]
|
|
952
956
|
}
|
|
953
957
|
),
|
|
954
|
-
t && /* @__PURE__ */ n(
|
|
958
|
+
t && /* @__PURE__ */ n(Re, { 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
959
|
/* @__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__ */
|
|
960
|
+
/* @__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__ */ ir(on, { ...f, key: v })) }) })
|
|
957
961
|
] }) }) })
|
|
958
962
|
] });
|
|
959
|
-
},
|
|
960
|
-
const [, r] = O(!1), i = re(), { actions:
|
|
963
|
+
}, on = ({ template: e, autoFocus: t = !0, onCreate: o }) => {
|
|
964
|
+
const [, r] = O(!1), i = re(), { actions: s, connectors: h, resolver: c, query: u } = F((l) => ({
|
|
961
965
|
resolver: l.options.resolver
|
|
962
966
|
})), b = O(() => {
|
|
963
967
|
const l = typeof e == "function" ? e() : e;
|
|
@@ -965,7 +969,7 @@ const Ne = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
965
969
|
"rootNodeId" in l ? a = l : a = u.parseReactElement(l).toNodeTree();
|
|
966
970
|
const { rootNodeId: f, nodes: v } = a, w = {};
|
|
967
971
|
return Object.entries(v).forEach(([d, y]) => {
|
|
968
|
-
const g =
|
|
972
|
+
const g = dt(y.data, c), x = d === f ? W : d;
|
|
969
973
|
w[x] = {
|
|
970
974
|
...g,
|
|
971
975
|
parent: g.parent === f ? W : g.parent,
|
|
@@ -980,7 +984,7 @@ const Ne = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
980
984
|
ref: (l) => {
|
|
981
985
|
l && h.create(l, e, {
|
|
982
986
|
onCreate(a) {
|
|
983
|
-
t &&
|
|
987
|
+
t && s.selectNode(a.rootNodeId), o?.(a);
|
|
984
988
|
}
|
|
985
989
|
});
|
|
986
990
|
},
|
|
@@ -994,13 +998,13 @@ const Ne = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
994
998
|
backgroundColor: i.theme.palette.background.default
|
|
995
999
|
}
|
|
996
1000
|
},
|
|
997
|
-
viewport: { width:
|
|
998
|
-
children: /* @__PURE__ */ n(
|
|
1001
|
+
viewport: { width: Wt.md.minWidth },
|
|
1002
|
+
children: /* @__PURE__ */ n(Se, { resolver: c, children: /* @__PURE__ */ n(Me, { data: b }) })
|
|
999
1003
|
}
|
|
1000
1004
|
) }) })
|
|
1001
1005
|
}
|
|
1002
1006
|
);
|
|
1003
|
-
},
|
|
1007
|
+
}, sn = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1004
1008
|
<path d="M12.5 2H9.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1005
1009
|
<path d="M2 9.5V12.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1006
1010
|
<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"/>
|
|
@@ -1019,37 +1023,37 @@ const Ne = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
1019
1023
|
<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
1024
|
</svg>
|
|
1021
1025
|
`, an = (e) => {
|
|
1022
|
-
const { query: t, actions:
|
|
1026
|
+
const { query: t, actions: o } = F(), {
|
|
1023
1027
|
id: r,
|
|
1024
1028
|
expanded: i,
|
|
1025
|
-
actions:
|
|
1029
|
+
actions: s,
|
|
1026
1030
|
displayName: h,
|
|
1027
1031
|
children: c,
|
|
1028
1032
|
depth: u
|
|
1029
1033
|
} = fr((v) => ({
|
|
1030
1034
|
expanded: v.expanded,
|
|
1031
|
-
displayName:
|
|
1035
|
+
displayName: Le(t.node(v.id).get())
|
|
1032
1036
|
})), { selected: b, selectable: l } = F((v, w) => {
|
|
1033
1037
|
const d = w.node(r).get();
|
|
1034
1038
|
return {
|
|
1035
1039
|
selected: w.getEvent("selected").contains(r),
|
|
1036
1040
|
nodeDOM: d.dom,
|
|
1037
|
-
selectable:
|
|
1041
|
+
selectable: wt(d)
|
|
1038
1042
|
};
|
|
1039
1043
|
});
|
|
1040
1044
|
G(() => {
|
|
1041
|
-
r === W &&
|
|
1042
|
-
}, [
|
|
1045
|
+
r === W && s.setExpandedState(!0);
|
|
1046
|
+
}, [s, r]), G(() => {
|
|
1043
1047
|
if (c.length === 0) return;
|
|
1044
1048
|
c.some((w) => {
|
|
1045
1049
|
const d = t.getEvent("selected").all();
|
|
1046
1050
|
return d.includes(w) ? !0 : t.node(w).descendants(!0).some((g) => d.includes(g));
|
|
1047
|
-
}) &&
|
|
1048
|
-
}, [c,
|
|
1051
|
+
}) && s.setExpandedState(!0);
|
|
1052
|
+
}, [c, s, t]);
|
|
1049
1053
|
const a = () => {
|
|
1050
|
-
|
|
1054
|
+
o.selectNode(r);
|
|
1051
1055
|
}, f = (v) => {
|
|
1052
|
-
v.stopPropagation(),
|
|
1056
|
+
v.stopPropagation(), s.toggleLayer();
|
|
1053
1057
|
};
|
|
1054
1058
|
return /* @__PURE__ */ k(
|
|
1055
1059
|
"div",
|
|
@@ -1063,7 +1067,7 @@ const Ne = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
1063
1067
|
style: {
|
|
1064
1068
|
paddingLeft: Math.max(0, u - 1) * 16
|
|
1065
1069
|
},
|
|
1066
|
-
className:
|
|
1070
|
+
className: D(
|
|
1067
1071
|
"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
1072
|
{
|
|
1069
1073
|
hidden: r === W,
|
|
@@ -1072,20 +1076,20 @@ const Ne = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
1072
1076
|
}
|
|
1073
1077
|
),
|
|
1074
1078
|
children: [
|
|
1075
|
-
c.length ? /* @__PURE__ */ n(
|
|
1079
|
+
c.length ? /* @__PURE__ */ n(R, { className: "tw:pointer-events-auto", onClick: f, children: /* @__PURE__ */ n(
|
|
1076
1080
|
E,
|
|
1077
1081
|
{
|
|
1078
|
-
className:
|
|
1082
|
+
className: D("tw:transition-transform tw:-rotate-90", {
|
|
1079
1083
|
"tw:rotate-0": i
|
|
1080
1084
|
}),
|
|
1081
1085
|
size: 16,
|
|
1082
|
-
source:
|
|
1086
|
+
source: Te
|
|
1083
1087
|
}
|
|
1084
1088
|
) }) : /* @__PURE__ */ n("div", { className: "tw:p-1", children: /* @__PURE__ */ n(E, { size: 16, source: cn }) }),
|
|
1085
1089
|
/* @__PURE__ */ n(
|
|
1086
1090
|
"span",
|
|
1087
1091
|
{
|
|
1088
|
-
className:
|
|
1092
|
+
className: D("tw:flex-1 tw:truncate", {
|
|
1089
1093
|
"tw:text-ic-white-3s": !l
|
|
1090
1094
|
}),
|
|
1091
1095
|
children: h
|
|
@@ -1099,29 +1103,29 @@ const Ne = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
1099
1103
|
}
|
|
1100
1104
|
);
|
|
1101
1105
|
}, ln = ({ onClose: e }) => {
|
|
1102
|
-
const t = gr(),
|
|
1106
|
+
const t = gr(), o = (r) => {
|
|
1103
1107
|
t.start(r);
|
|
1104
1108
|
};
|
|
1105
|
-
return /* @__PURE__ */ n(
|
|
1106
|
-
|
|
1109
|
+
return /* @__PURE__ */ n(Re, { children: /* @__PURE__ */ k(
|
|
1110
|
+
zt.div,
|
|
1107
1111
|
{
|
|
1108
1112
|
drag: !0,
|
|
1109
1113
|
dragControls: t,
|
|
1110
1114
|
dragListener: !1,
|
|
1111
1115
|
style: { zIndex: 1e5, width: 320, height: 400, top: 80, right: 40 },
|
|
1112
|
-
className: "tw:fixed tw:rounded-
|
|
1116
|
+
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
1117
|
children: [
|
|
1114
1118
|
/* @__PURE__ */ k(
|
|
1115
1119
|
"div",
|
|
1116
1120
|
{
|
|
1117
|
-
onPointerDown:
|
|
1121
|
+
onPointerDown: o,
|
|
1118
1122
|
className: "tw:py-2 tw:cursor-grab tw:flex tw:items-center tw:justify-between tw:px-4",
|
|
1119
1123
|
children: [
|
|
1120
1124
|
/* @__PURE__ */ k("div", { className: "tw:flex tw:items-center tw:gap-2", children: [
|
|
1121
|
-
/* @__PURE__ */ n(E, { source:
|
|
1125
|
+
/* @__PURE__ */ n(E, { source: sn }),
|
|
1122
1126
|
/* @__PURE__ */ n("p", { className: "tw:text-sm tw:font-medium", children: "Layers" })
|
|
1123
1127
|
] }),
|
|
1124
|
-
/* @__PURE__ */ n(
|
|
1128
|
+
/* @__PURE__ */ n(R, { onClick: e, children: /* @__PURE__ */ n(E, { source: _t }) })
|
|
1125
1129
|
]
|
|
1126
1130
|
}
|
|
1127
1131
|
),
|
|
@@ -1140,13 +1144,13 @@ const Ne = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
1140
1144
|
<path d="M10 17L5 12" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1141
1145
|
</svg>
|
|
1142
1146
|
`, un = ({ insert: e }) => {
|
|
1143
|
-
const [t,
|
|
1147
|
+
const [t, o] = $e(!1), {
|
|
1144
1148
|
queryParams: {
|
|
1145
1149
|
action: r = "insert"
|
|
1146
1150
|
/* Insert */
|
|
1147
1151
|
},
|
|
1148
1152
|
setQueryParams: i
|
|
1149
|
-
} = ne(), { actions:
|
|
1153
|
+
} = ne(), { actions: s, isDeletable: h, focusedNode: c } = F((a, f) => {
|
|
1150
1154
|
const v = f.getEvent("selected").first(), w = v ? f.node(v) : null;
|
|
1151
1155
|
return {
|
|
1152
1156
|
enabled: a.options.enabled,
|
|
@@ -1154,12 +1158,12 @@ const Ne = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
1154
1158
|
focusedNode: w?.get()
|
|
1155
1159
|
};
|
|
1156
1160
|
}), u = () => {
|
|
1157
|
-
|
|
1161
|
+
s.selectNode();
|
|
1158
1162
|
}, b = (a) => {
|
|
1159
|
-
|
|
1163
|
+
s.delete(a.currentTarget.value);
|
|
1160
1164
|
}, l = (a) => {
|
|
1161
1165
|
const f = a.currentTarget.value;
|
|
1162
|
-
f === "layers" ?
|
|
1166
|
+
f === "layers" ? o() : (u(), i({
|
|
1163
1167
|
action: f
|
|
1164
1168
|
}));
|
|
1165
1169
|
};
|
|
@@ -1168,7 +1172,7 @@ const Ne = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
1168
1172
|
/* @__PURE__ */ k("div", { className: "tw:px-1 tw:flex tw:flex-col tw:gap-1", children: [
|
|
1169
1173
|
!!e && /* @__PURE__ */ k(ye, { children: [
|
|
1170
1174
|
/* @__PURE__ */ n(
|
|
1171
|
-
|
|
1175
|
+
R,
|
|
1172
1176
|
{
|
|
1173
1177
|
tooltip: {
|
|
1174
1178
|
content: "Insert",
|
|
@@ -1178,13 +1182,13 @@ const Ne = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
1178
1182
|
value: "insert",
|
|
1179
1183
|
className: "tw:relative",
|
|
1180
1184
|
size: "32",
|
|
1181
|
-
children: /* @__PURE__ */ n(E, { source:
|
|
1185
|
+
children: /* @__PURE__ */ n(E, { source: Gt })
|
|
1182
1186
|
}
|
|
1183
1187
|
),
|
|
1184
1188
|
/* @__PURE__ */ n("hr", { className: "tw:border-ic-white-2s" })
|
|
1185
1189
|
] }),
|
|
1186
1190
|
/* @__PURE__ */ n(
|
|
1187
|
-
|
|
1191
|
+
R,
|
|
1188
1192
|
{
|
|
1189
1193
|
tooltip: {
|
|
1190
1194
|
content: "Layers",
|
|
@@ -1201,49 +1205,49 @@ const Ne = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
1201
1205
|
/* @__PURE__ */ k(
|
|
1202
1206
|
"div",
|
|
1203
1207
|
{
|
|
1204
|
-
className:
|
|
1208
|
+
className: D("tw:relative tw:flex tw:flex-col tw:border-l tw:border-ic-white-1s tw:w-72 tw:overflow-auto"),
|
|
1205
1209
|
children: [
|
|
1206
1210
|
!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
1211
|
!!c?.related?.inspector && /* @__PURE__ */ k("div", { className: "tw:flex tw:flex-col tw:flex-1 tw:overflow-hidden", children: [
|
|
1208
1212
|
/* @__PURE__ */ k("div", { className: "tw:flex tw:items-center tw:gap-2 tw:px-2 tw:py-2", children: [
|
|
1209
|
-
/* @__PURE__ */ n(
|
|
1210
|
-
/* @__PURE__ */ n("div", { className: "tw:flex-1 tw:overflow-hidden", children: /* @__PURE__ */ n(
|
|
1211
|
-
h && /* @__PURE__ */ n(
|
|
1213
|
+
/* @__PURE__ */ n(R, { onClick: u, children: /* @__PURE__ */ n(E, { source: hn }) }),
|
|
1214
|
+
/* @__PURE__ */ n("div", { className: "tw:flex-1 tw:overflow-hidden", children: /* @__PURE__ */ n(je, { fullWidth: !0, value: Le(c), size: "32" }) }),
|
|
1215
|
+
h && /* @__PURE__ */ n(R, { value: c.id, onClick: b, children: /* @__PURE__ */ n(E, { className: "tw:text-ic-red-4s", source: ar }) })
|
|
1212
1216
|
] }),
|
|
1213
|
-
/* @__PURE__ */ n("div", { className: "tw:flex-1 tw:overflow-auto tw:border-t tw:border-ic-white-1s scrollbar-hidden", children: /* @__PURE__ */ n(
|
|
1217
|
+
/* @__PURE__ */ n("div", { className: "tw:flex-1 tw:overflow-auto tw:border-t tw:border-ic-white-1s scrollbar-hidden", children: /* @__PURE__ */ n(ft, { fallback: null, children: Ee(c.related.inspector) }) })
|
|
1214
1218
|
] })
|
|
1215
1219
|
]
|
|
1216
1220
|
}
|
|
1217
1221
|
)
|
|
1218
1222
|
] }),
|
|
1219
|
-
t && /* @__PURE__ */ n(ln, { onClose:
|
|
1223
|
+
t && /* @__PURE__ */ n(ln, { onClose: o })
|
|
1220
1224
|
] });
|
|
1221
|
-
},
|
|
1225
|
+
}, Un = ({ theme: e, insert: t, resolver: o, handlers: r }) => {
|
|
1222
1226
|
const {
|
|
1223
1227
|
queryParams: { screen: i }
|
|
1224
1228
|
} = ne();
|
|
1225
1229
|
return re({
|
|
1226
1230
|
theme: e,
|
|
1227
1231
|
handlers: r
|
|
1228
|
-
}), /* @__PURE__ */ n(
|
|
1229
|
-
/* @__PURE__ */ n(
|
|
1232
|
+
}), /* @__PURE__ */ n(Se, { enabled: !0, onRender: Zr, resolver: o, 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: [
|
|
1233
|
+
/* @__PURE__ */ n(Xr, {}),
|
|
1230
1234
|
/* @__PURE__ */ k("div", { className: "tw:flex-1 tw:overflow-hidden tw:flex", children: [
|
|
1231
1235
|
/* @__PURE__ */ n(un, { insert: t }),
|
|
1232
1236
|
/* @__PURE__ */ n(
|
|
1233
1237
|
Ve,
|
|
1234
1238
|
{
|
|
1235
1239
|
viewport: {
|
|
1236
|
-
width: (
|
|
1240
|
+
width: (s) => i === "lg" ? Math.max(s, ge[i]) : ge[i]
|
|
1237
1241
|
},
|
|
1238
|
-
children: /* @__PURE__ */ n(
|
|
1242
|
+
children: /* @__PURE__ */ n(Me, { children: /* @__PURE__ */ n(at, {}) })
|
|
1239
1243
|
}
|
|
1240
1244
|
)
|
|
1241
1245
|
] })
|
|
1242
1246
|
] }) });
|
|
1243
1247
|
};
|
|
1244
1248
|
export {
|
|
1245
|
-
|
|
1249
|
+
Un as Editor,
|
|
1246
1250
|
re as useEditor,
|
|
1247
1251
|
ne as useEditorQueryParams,
|
|
1248
|
-
|
|
1252
|
+
Yn as useEditorResponsive
|
|
1249
1253
|
};
|