@janbox/storefront-builder 2.0.19 → 2.0.20
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/components/composer/dataset.d.ts +1 -1
- package/dist/editor.js +450 -452
- package/dist/index-CX1ysbQd.js +59 -0
- package/dist/index-CYvdAWY4.js +4 -0
- package/dist/index.js +79 -81
- package/dist/templates.js +7 -9
- package/dist/toaster-BoEJoz-T.js +23865 -0
- package/package.json +1 -2
- package/dist/index-CAk0Z6SL.js +0 -60
- package/dist/index-DxdUdXU0.js +0 -4
- package/dist/toaster-j03A1kAt.js +0 -17829
package/dist/editor.js
CHANGED
|
@@ -1,27 +1,25 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { useImperativeHandle as cr, useMemo as lr, isValidElement as dr, useState as P, useRef as G, useEffect as V, Fragment as ie, Suspense as hr, createElement as Ye, useCallback as ur } from "react";
|
|
1
|
+
import { jsx as n, jsxs as w, Fragment as Fe } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { at as ft, au as bt, av as wt, aw as b, ax as kt, ay as ce, az as $, aA as fe, b as Te, B as Ie, a1 as mt, aB as J, aC as Oe, aD as Ct, aE as W, aF as I, as as He, ar as vt, aG as xt, aH as yt, aI as Tt, aJ as It, aK as Mt, aL as St, aM as Et, aN as $e, aO as Lt, aP as Wt, aQ as Nt, aR as Rt, aS as At, u as H, aT as Dt, aU as Bt, aV as oe, m as Pt, i as jt, G as Vt, l as Me, o as Ft, F as Se, s as Ot, V as Ht, I as $t, aW as _t, q as Gt, P as zt, aX as _e, aY as Ut, aZ as Zt, a_ as Yt, a$ as Xt, b0 as qt, b1 as _, b2 as Ge, b3 as Jt, b4 as Kt, b5 as ze, b6 as Qt, b7 as en, b8 as tn, a0 as Ue, Z as Ze, b9 as Ee, ba as nn, N as ke, bb as rn, bc as on, bd as sn, $ as an, be as Le, bf as cn } from "./toaster-BoEJoz-T.js";
|
|
3
|
+
import { bg as So, bh as Eo, bi as Lo, bj as Wo, bk as No, bl as Ro, bm as Ao, bn as Do, bo as Bo, bp as Po, bq as jo, br as Vo, bs as Fo, bt as Oo, bu as Ho, bv as $o, bw as _o, bx as Go, by as zo, bz as Uo, bA as Zo, bB as Yo, bC as Xo, bD as qo, bE as Jo, bF as Ko, bG as Qo, bH as es, bI as ts, bJ as ns, bK as rs, bL as os, bM as ss, bN as is, bO as as, bP as cs, bQ as ls, bR as ds, bS as hs, bT as us, bU as ps, bV as gs, bW as fs, bX as bs, bY as ws, bZ as ks, b_ as ms, b$ as Cs, c0 as vs, c1 as xs, c2 as ys, c3 as Ts, W as Is, c4 as Ms, c5 as Ss, c6 as Es, c7 as Ls, c8 as Ws } from "./toaster-BoEJoz-T.js";
|
|
4
|
+
import { throttle as ln, isFunction as We, isNumber as se, isNil as ee, isEqual as dn } from "lodash-es";
|
|
5
|
+
import { useImperativeHandle as hn, useMemo as un, isValidElement as pn, useState as P, useRef as z, useEffect as V, Fragment as ie, Suspense as gn, createElement as Ye, useCallback as fn } from "react";
|
|
7
6
|
import "flat";
|
|
8
|
-
import { FLOATING_Z_INDEX as Xe, ThemeProvider as
|
|
7
|
+
import { FLOATING_Z_INDEX as Xe, ThemeProvider as bn, breakpoint as wn, createTheme as Ne } from "@janbox/storefront-ui/theme";
|
|
9
8
|
import "@janbox/storefront-ui/hooks";
|
|
10
|
-
import { CacheProvider as
|
|
11
|
-
import { useFloatingParentNodeId as
|
|
9
|
+
import { CacheProvider as kn, Global as mn, createElement as Cn } from "@emotion/react";
|
|
10
|
+
import { useFloatingParentNodeId as vn, FloatingTree as xn, useFloating as le, autoUpdate as de, offset as qe, size as Je, flip as me, useClick as yn, useHover as Ke, useFocus as Qe, useDismiss as et, useRole as tt, useInteractions as nt, safePolygon as Tn, FloatingPortal as he } from "@floating-ui/react";
|
|
12
11
|
import "react-colorful";
|
|
13
12
|
import "overlayscrollbars-react";
|
|
14
13
|
import "@tanstack/react-virtual";
|
|
15
|
-
import
|
|
14
|
+
import In, { useFrame as Ce } from "react-frame-component";
|
|
16
15
|
import "react-dropzone";
|
|
17
16
|
import "react-datepicker";
|
|
18
|
-
import { a as
|
|
17
|
+
import { a as rt, C as ot } from "./index-CX1ysbQd.js";
|
|
19
18
|
import "@janbox/storefront-ui/utils";
|
|
20
19
|
import { useToggle as st } from "usehooks-ts";
|
|
21
20
|
import "@hello-pangea/dnd";
|
|
22
|
-
import { Layers as yr, useLayer as Tr } from "@craftjs/layers";
|
|
23
21
|
import "@janbox/storefront-ui";
|
|
24
|
-
class
|
|
22
|
+
class Mn {
|
|
25
23
|
constructor() {
|
|
26
24
|
this.componentControls = /* @__PURE__ */ new Set();
|
|
27
25
|
}
|
|
@@ -49,20 +47,20 @@ class Ir {
|
|
|
49
47
|
* @public
|
|
50
48
|
*/
|
|
51
49
|
start(t, o) {
|
|
52
|
-
this.componentControls.forEach((
|
|
53
|
-
|
|
50
|
+
this.componentControls.forEach((r) => {
|
|
51
|
+
r.start(t.nativeEvent || t, o);
|
|
54
52
|
});
|
|
55
53
|
}
|
|
56
54
|
}
|
|
57
|
-
const
|
|
58
|
-
function
|
|
59
|
-
return ft(
|
|
55
|
+
const Sn = () => new Mn();
|
|
56
|
+
function En() {
|
|
57
|
+
return ft(Sn);
|
|
60
58
|
}
|
|
61
|
-
const
|
|
59
|
+
const Ln = (e) => vn() ? /* @__PURE__ */ n(Re, { ...e }) : /* @__PURE__ */ n(xn, { children: /* @__PURE__ */ n(Re, { ...e }) }), Re = ({
|
|
62
60
|
open: e,
|
|
63
61
|
placement: t = "bottom",
|
|
64
62
|
onOpenChange: o,
|
|
65
|
-
dismissProps:
|
|
63
|
+
dismissProps: r = {
|
|
66
64
|
enabled: !1
|
|
67
65
|
},
|
|
68
66
|
children: i,
|
|
@@ -89,17 +87,17 @@ const Er = (e) => kr() ? /* @__PURE__ */ r(Re, { ...e }) : /* @__PURE__ */ r(mr,
|
|
|
89
87
|
whileElementsMounted: (...A) => de(...A, p),
|
|
90
88
|
elements: d
|
|
91
89
|
});
|
|
92
|
-
|
|
93
|
-
const { context: f } = g, h =
|
|
90
|
+
hn(c, () => g, [g]);
|
|
91
|
+
const { context: f } = g, h = yn(f, s), y = Ke(f, a), m = Qe(f, l), T = et(f, r), S = tt(f), F = nt([h, T, S, y, m]), j = un(
|
|
94
92
|
() => ({
|
|
95
93
|
...g,
|
|
96
|
-
...
|
|
94
|
+
...F
|
|
97
95
|
}),
|
|
98
|
-
[g,
|
|
96
|
+
[g, F]
|
|
99
97
|
);
|
|
100
|
-
return /* @__PURE__ */
|
|
101
|
-
},
|
|
102
|
-
|
|
98
|
+
return /* @__PURE__ */ n(bt.Provider, { value: j, children: i });
|
|
99
|
+
}, go = ({ width: e = 600, children: t, ...o }) => /* @__PURE__ */ n(
|
|
100
|
+
Ln,
|
|
103
101
|
{
|
|
104
102
|
dismissProps: {
|
|
105
103
|
enabled: !0
|
|
@@ -120,7 +118,7 @@ const Er = (e) => kr() ? /* @__PURE__ */ r(Re, { ...e }) : /* @__PURE__ */ r(mr,
|
|
|
120
118
|
},
|
|
121
119
|
css: { display: "flex", overflow: "hidden", flexDirection: "column", maxWidth: "100%", maxHeight: "100%" },
|
|
122
120
|
children: [
|
|
123
|
-
/* @__PURE__ */
|
|
121
|
+
/* @__PURE__ */ n(
|
|
124
122
|
"div",
|
|
125
123
|
{
|
|
126
124
|
css: {
|
|
@@ -132,7 +130,7 @@ const Er = (e) => kr() ? /* @__PURE__ */ r(Re, { ...e }) : /* @__PURE__ */ r(mr,
|
|
|
132
130
|
}
|
|
133
131
|
}
|
|
134
132
|
),
|
|
135
|
-
/* @__PURE__ */
|
|
133
|
+
/* @__PURE__ */ n(
|
|
136
134
|
"div",
|
|
137
135
|
{
|
|
138
136
|
css: {
|
|
@@ -154,18 +152,18 @@ const Er = (e) => kr() ? /* @__PURE__ */ r(Re, { ...e }) : /* @__PURE__ */ r(mr,
|
|
|
154
152
|
}
|
|
155
153
|
)
|
|
156
154
|
}
|
|
157
|
-
),
|
|
155
|
+
), fo = () => kt(), bo = ({ ref: e, ...t }) => /* @__PURE__ */ n(
|
|
158
156
|
ce,
|
|
159
157
|
{
|
|
160
158
|
css: { paddingBlock: 12, paddingInline: 20, flex: 1, overflow: "auto", ...b.text.xs },
|
|
161
159
|
...t,
|
|
162
160
|
ref: e
|
|
163
161
|
}
|
|
164
|
-
),
|
|
165
|
-
|
|
166
|
-
e && /* @__PURE__ */
|
|
167
|
-
] }),
|
|
168
|
-
const [e, t] = P(0), [o,
|
|
162
|
+
), wo = ({ required: e, children: t, ...o }) => /* @__PURE__ */ w("div", { css: { marginBottom: 6, display: "flex", width: "fit-content" }, ...o, children: [
|
|
163
|
+
pn(t) ? t : /* @__PURE__ */ n("label", { children: t }),
|
|
164
|
+
e && /* @__PURE__ */ n("span", { css: { color: b.palette.red["6s"] }, children: " *" })
|
|
165
|
+
] }), ko = () => {
|
|
166
|
+
const [e, t] = P(0), [o, r] = P(!1), i = z(null), s = (k, u) => {
|
|
169
167
|
if (!i.current) return 0;
|
|
170
168
|
const p = i.current.getBoundingClientRect(), c = p.left + p.width / 2, g = p.top + p.height / 2, f = k - c, h = u - g;
|
|
171
169
|
return (Math.atan2(h, f) * (180 / Math.PI) + 360) % 360;
|
|
@@ -185,7 +183,7 @@ const Er = (e) => kr() ? /* @__PURE__ */ r(Re, { ...e }) : /* @__PURE__ */ r(mr,
|
|
|
185
183
|
}
|
|
186
184
|
},
|
|
187
185
|
onMouseUp: () => {
|
|
188
|
-
|
|
186
|
+
r(!1);
|
|
189
187
|
},
|
|
190
188
|
children: [
|
|
191
189
|
/* @__PURE__ */ w("h3", { children: [
|
|
@@ -201,14 +199,14 @@ const Er = (e) => kr() ? /* @__PURE__ */ r(Re, { ...e }) : /* @__PURE__ */ r(mr,
|
|
|
201
199
|
height: "200",
|
|
202
200
|
viewBox: "0 0 200 200",
|
|
203
201
|
onMouseDown: (k) => {
|
|
204
|
-
|
|
202
|
+
r(!0);
|
|
205
203
|
const u = s(k.clientX, k.clientY);
|
|
206
204
|
t(Math.round(u));
|
|
207
205
|
},
|
|
208
206
|
style: { cursor: "grab" },
|
|
209
207
|
children: [
|
|
210
|
-
/* @__PURE__ */
|
|
211
|
-
/* @__PURE__ */
|
|
208
|
+
/* @__PURE__ */ n("circle", { cx: "100", cy: "100", r: "90", fill: "#EAEAEA", stroke: "#CCC", strokeWidth: "2" }),
|
|
209
|
+
/* @__PURE__ */ n(
|
|
212
210
|
"line",
|
|
213
211
|
{
|
|
214
212
|
x1: "100",
|
|
@@ -219,7 +217,7 @@ const Er = (e) => kr() ? /* @__PURE__ */ r(Re, { ...e }) : /* @__PURE__ */ r(mr,
|
|
|
219
217
|
strokeWidth: "2"
|
|
220
218
|
}
|
|
221
219
|
),
|
|
222
|
-
/* @__PURE__ */
|
|
220
|
+
/* @__PURE__ */ n(
|
|
223
221
|
"circle",
|
|
224
222
|
{
|
|
225
223
|
cx: 100 + 90 * Math.cos((e - 90) * (Math.PI / 180)),
|
|
@@ -236,54 +234,54 @@ const Er = (e) => kr() ? /* @__PURE__ */ r(Re, { ...e }) : /* @__PURE__ */ r(mr,
|
|
|
236
234
|
}
|
|
237
235
|
);
|
|
238
236
|
};
|
|
239
|
-
function
|
|
237
|
+
function Wn(e) {
|
|
240
238
|
if (e.sheet)
|
|
241
239
|
return e.sheet;
|
|
242
240
|
for (var t = 0; t < document.styleSheets.length; t++)
|
|
243
241
|
if (document.styleSheets[t].ownerNode === e)
|
|
244
242
|
return document.styleSheets[t];
|
|
245
243
|
}
|
|
246
|
-
function
|
|
244
|
+
function Nn(e) {
|
|
247
245
|
var t = document.createElement("style");
|
|
248
246
|
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;
|
|
249
247
|
}
|
|
250
|
-
var
|
|
248
|
+
var Rn = /* @__PURE__ */ (function() {
|
|
251
249
|
function e(o) {
|
|
252
|
-
var
|
|
250
|
+
var r = this;
|
|
253
251
|
this._insertTag = function(i) {
|
|
254
252
|
var s;
|
|
255
|
-
|
|
253
|
+
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);
|
|
256
254
|
}, 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;
|
|
257
255
|
}
|
|
258
256
|
var t = e.prototype;
|
|
259
|
-
return t.hydrate = function(
|
|
260
|
-
|
|
261
|
-
}, t.insert = function(
|
|
262
|
-
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(
|
|
257
|
+
return t.hydrate = function(r) {
|
|
258
|
+
r.forEach(this._insertTag);
|
|
259
|
+
}, t.insert = function(r) {
|
|
260
|
+
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(Nn(this));
|
|
263
261
|
var i = this.tags[this.tags.length - 1];
|
|
264
262
|
if (this.isSpeedy) {
|
|
265
|
-
var s =
|
|
263
|
+
var s = Wn(i);
|
|
266
264
|
try {
|
|
267
|
-
s.insertRule(
|
|
265
|
+
s.insertRule(r, s.cssRules.length);
|
|
268
266
|
} catch {
|
|
269
267
|
}
|
|
270
268
|
} else
|
|
271
|
-
i.appendChild(document.createTextNode(
|
|
269
|
+
i.appendChild(document.createTextNode(r));
|
|
272
270
|
this.ctr++;
|
|
273
271
|
}, t.flush = function() {
|
|
274
|
-
this.tags.forEach(function(
|
|
272
|
+
this.tags.forEach(function(r) {
|
|
275
273
|
var i;
|
|
276
|
-
return (i =
|
|
274
|
+
return (i = r.parentNode) == null ? void 0 : i.removeChild(r);
|
|
277
275
|
}), this.tags = [], this.ctr = 0;
|
|
278
276
|
}, e;
|
|
279
|
-
})(), L = "-ms-", ae = "-moz-", C = "-webkit-", it = "comm", ve = "rule", xe = "decl",
|
|
280
|
-
function
|
|
277
|
+
})(), L = "-ms-", ae = "-moz-", C = "-webkit-", it = "comm", ve = "rule", xe = "decl", An = "@import", at = "@keyframes", Dn = "@layer", Bn = Math.abs, ue = String.fromCharCode, Pn = Object.assign;
|
|
278
|
+
function jn(e, t) {
|
|
281
279
|
return E(e, 0) ^ 45 ? (((t << 2 ^ E(e, 0)) << 2 ^ E(e, 1)) << 2 ^ E(e, 2)) << 2 ^ E(e, 3) : 0;
|
|
282
280
|
}
|
|
283
281
|
function ct(e) {
|
|
284
282
|
return e.trim();
|
|
285
283
|
}
|
|
286
|
-
function
|
|
284
|
+
function Vn(e, t) {
|
|
287
285
|
return (e = t.exec(e)) ? e[0] : e;
|
|
288
286
|
}
|
|
289
287
|
function v(e, t, o) {
|
|
@@ -307,20 +305,20 @@ function ye(e) {
|
|
|
307
305
|
function Q(e, t) {
|
|
308
306
|
return t.push(e), e;
|
|
309
307
|
}
|
|
310
|
-
function
|
|
308
|
+
function Fn(e, t) {
|
|
311
309
|
return e.map(t).join("");
|
|
312
310
|
}
|
|
313
311
|
var pe = 1, U = 1, lt = 0, N = 0, M = 0, Z = "";
|
|
314
|
-
function ge(e, t, o,
|
|
315
|
-
return { value: e, root: t, parent: o, type:
|
|
312
|
+
function ge(e, t, o, r, i, s, l) {
|
|
313
|
+
return { value: e, root: t, parent: o, type: r, props: i, children: s, line: pe, column: U, length: l, return: "" };
|
|
316
314
|
}
|
|
317
315
|
function Y(e, t) {
|
|
318
|
-
return
|
|
316
|
+
return Pn(ge("", null, null, "", null, null, 0), e, { length: -e.length }, t);
|
|
319
317
|
}
|
|
320
|
-
function
|
|
318
|
+
function On() {
|
|
321
319
|
return M;
|
|
322
320
|
}
|
|
323
|
-
function
|
|
321
|
+
function Hn() {
|
|
324
322
|
return M = N > 0 ? E(Z, --N) : 0, U--, M === 10 && (U = 1, pe--), M;
|
|
325
323
|
}
|
|
326
324
|
function R() {
|
|
@@ -379,15 +377,15 @@ function dt(e) {
|
|
|
379
377
|
function ht(e) {
|
|
380
378
|
return Z = "", e;
|
|
381
379
|
}
|
|
382
|
-
function
|
|
380
|
+
function ne(e) {
|
|
383
381
|
return ct(K(N - 1, we(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
384
382
|
}
|
|
385
|
-
function
|
|
383
|
+
function $n(e) {
|
|
386
384
|
for (; (M = B()) && M < 33; )
|
|
387
385
|
R();
|
|
388
386
|
return q(e) > 2 || q(M) > 3 ? "" : " ";
|
|
389
387
|
}
|
|
390
|
-
function
|
|
388
|
+
function _n(e, t) {
|
|
391
389
|
for (; --t && R() && !(M < 48 || M > 102 || M > 57 && M < 65 || M > 70 && M < 97); )
|
|
392
390
|
;
|
|
393
391
|
return K(e, te() + (t < 6 && B() == 32 && R() == 32));
|
|
@@ -414,52 +412,52 @@ function we(e) {
|
|
|
414
412
|
}
|
|
415
413
|
return N;
|
|
416
414
|
}
|
|
417
|
-
function
|
|
415
|
+
function Gn(e, t) {
|
|
418
416
|
for (; R() && e + M !== 57; )
|
|
419
417
|
if (e + M === 84 && B() === 47)
|
|
420
418
|
break;
|
|
421
419
|
return "/*" + K(t, N - 1) + "*" + ue(e === 47 ? e : R());
|
|
422
420
|
}
|
|
423
|
-
function
|
|
421
|
+
function zn(e) {
|
|
424
422
|
for (; !q(B()); )
|
|
425
423
|
R();
|
|
426
424
|
return K(e, N);
|
|
427
425
|
}
|
|
428
|
-
function
|
|
429
|
-
return ht(
|
|
426
|
+
function Un(e) {
|
|
427
|
+
return ht(re("", null, null, null, [""], e = dt(e), 0, [0], e));
|
|
430
428
|
}
|
|
431
|
-
function
|
|
432
|
-
for (var k = 0, u = 0, p = l, c = 0, g = 0, f = 0, h = 1, y = 1, m = 1, T = 0, S = "",
|
|
429
|
+
function re(e, t, o, r, i, s, l, a, d) {
|
|
430
|
+
for (var k = 0, u = 0, p = l, c = 0, g = 0, f = 0, h = 1, y = 1, m = 1, T = 0, S = "", F = i, j = s, A = r, x = S; y; )
|
|
433
431
|
switch (f = T, T = R()) {
|
|
434
432
|
// (
|
|
435
433
|
case 40:
|
|
436
434
|
if (f != 108 && E(x, p - 1) == 58) {
|
|
437
|
-
be(x += v(
|
|
435
|
+
be(x += v(ne(T), "&", "&\f"), "&\f") != -1 && (m = -1);
|
|
438
436
|
break;
|
|
439
437
|
}
|
|
440
438
|
// " ' [
|
|
441
439
|
case 34:
|
|
442
440
|
case 39:
|
|
443
441
|
case 91:
|
|
444
|
-
x +=
|
|
442
|
+
x += ne(T);
|
|
445
443
|
break;
|
|
446
444
|
// \t \n \r \s
|
|
447
445
|
case 9:
|
|
448
446
|
case 10:
|
|
449
447
|
case 13:
|
|
450
448
|
case 32:
|
|
451
|
-
x +=
|
|
449
|
+
x += $n(f);
|
|
452
450
|
break;
|
|
453
451
|
// \
|
|
454
452
|
case 92:
|
|
455
|
-
x +=
|
|
453
|
+
x += _n(te() - 1, 7);
|
|
456
454
|
continue;
|
|
457
455
|
// /
|
|
458
456
|
case 47:
|
|
459
457
|
switch (B()) {
|
|
460
458
|
case 42:
|
|
461
459
|
case 47:
|
|
462
|
-
Q(
|
|
460
|
+
Q(Zn(Gn(R(), te()), t, o), d);
|
|
463
461
|
break;
|
|
464
462
|
default:
|
|
465
463
|
x += "/";
|
|
@@ -479,16 +477,16 @@ function ne(e, t, o, n, i, s, l, a, d) {
|
|
|
479
477
|
y = 0;
|
|
480
478
|
// ;
|
|
481
479
|
case 59 + u:
|
|
482
|
-
m == -1 && (x = v(x, /\f/g, "")), g > 0 && D(x) - p && Q(g > 32 ? De(x + ";",
|
|
480
|
+
m == -1 && (x = v(x, /\f/g, "")), g > 0 && D(x) - p && Q(g > 32 ? De(x + ";", r, o, p - 1) : De(v(x, " ", "") + ";", r, o, p - 2), d);
|
|
483
481
|
break;
|
|
484
482
|
// @ ;
|
|
485
483
|
case 59:
|
|
486
484
|
x += ";";
|
|
487
485
|
// { rule/at-rule
|
|
488
486
|
default:
|
|
489
|
-
if (Q(A = Ae(x, t, o, k, u, i, a, S,
|
|
487
|
+
if (Q(A = Ae(x, t, o, k, u, i, a, S, F = [], j = [], p), s), T === 123)
|
|
490
488
|
if (u === 0)
|
|
491
|
-
|
|
489
|
+
re(x, t, A, A, F, s, p, a, j);
|
|
492
490
|
else
|
|
493
491
|
switch (c === 99 && E(x, 3) === 110 ? 100 : c) {
|
|
494
492
|
// d l m s
|
|
@@ -496,10 +494,10 @@ function ne(e, t, o, n, i, s, l, a, d) {
|
|
|
496
494
|
case 108:
|
|
497
495
|
case 109:
|
|
498
496
|
case 115:
|
|
499
|
-
|
|
497
|
+
re(e, A, A, r && Q(Ae(e, A, A, 0, 0, i, a, S, i, F = [], p), j), i, j, p, a, r ? F : j);
|
|
500
498
|
break;
|
|
501
499
|
default:
|
|
502
|
-
|
|
500
|
+
re(x, A, A, A, [""], j, 0, a, j);
|
|
503
501
|
}
|
|
504
502
|
}
|
|
505
503
|
k = u = g = 0, h = m = 1, S = x = "", p = l;
|
|
@@ -511,7 +509,7 @@ function ne(e, t, o, n, i, s, l, a, d) {
|
|
|
511
509
|
if (h < 1) {
|
|
512
510
|
if (T == 123)
|
|
513
511
|
--h;
|
|
514
|
-
else if (T == 125 && h++ == 0 &&
|
|
512
|
+
else if (T == 125 && h++ == 0 && Hn() == 125)
|
|
515
513
|
continue;
|
|
516
514
|
}
|
|
517
515
|
switch (x += ue(T), T * h) {
|
|
@@ -525,7 +523,7 @@ function ne(e, t, o, n, i, s, l, a, d) {
|
|
|
525
523
|
break;
|
|
526
524
|
// @
|
|
527
525
|
case 64:
|
|
528
|
-
B() === 45 && (x +=
|
|
526
|
+
B() === 45 && (x += ne(R())), c = B(), u = p = D(S = x += zn(te())), T++;
|
|
529
527
|
break;
|
|
530
528
|
// -
|
|
531
529
|
case 45:
|
|
@@ -534,93 +532,93 @@ function ne(e, t, o, n, i, s, l, a, d) {
|
|
|
534
532
|
}
|
|
535
533
|
return s;
|
|
536
534
|
}
|
|
537
|
-
function Ae(e, t, o,
|
|
538
|
-
for (var p = i - 1, c = i === 0 ? s : [""], g = ye(c), f = 0, h = 0, y = 0; f <
|
|
539
|
-
for (var m = 0, T = X(e, p + 1, p =
|
|
535
|
+
function Ae(e, t, o, r, i, s, l, a, d, k, u) {
|
|
536
|
+
for (var p = i - 1, c = i === 0 ? s : [""], g = ye(c), f = 0, h = 0, y = 0; f < r; ++f)
|
|
537
|
+
for (var m = 0, T = X(e, p + 1, p = Bn(h = l[f])), S = e; m < g; ++m)
|
|
540
538
|
(S = ct(h > 0 ? c[m] + " " + T : v(T, /&\f/g, c[m]))) && (d[y++] = S);
|
|
541
539
|
return ge(e, t, o, i === 0 ? ve : a, d, k, u);
|
|
542
540
|
}
|
|
543
|
-
function
|
|
544
|
-
return ge(e, t, o, it, ue(
|
|
541
|
+
function Zn(e, t, o) {
|
|
542
|
+
return ge(e, t, o, it, ue(On()), X(e, 2, -2), 0);
|
|
545
543
|
}
|
|
546
|
-
function De(e, t, o,
|
|
547
|
-
return ge(e, t, o, xe, X(e, 0,
|
|
544
|
+
function De(e, t, o, r) {
|
|
545
|
+
return ge(e, t, o, xe, X(e, 0, r), X(e, r + 1, -1), r);
|
|
548
546
|
}
|
|
549
|
-
function
|
|
550
|
-
for (var o = "",
|
|
547
|
+
function G(e, t) {
|
|
548
|
+
for (var o = "", r = ye(e), i = 0; i < r; i++)
|
|
551
549
|
o += t(e[i], i, e, t) || "";
|
|
552
550
|
return o;
|
|
553
551
|
}
|
|
554
|
-
function
|
|
552
|
+
function Yn(e, t, o, r) {
|
|
555
553
|
switch (e.type) {
|
|
556
|
-
case
|
|
554
|
+
case Dn:
|
|
557
555
|
if (e.children.length) break;
|
|
558
|
-
case
|
|
556
|
+
case An:
|
|
559
557
|
case xe:
|
|
560
558
|
return e.return = e.return || e.value;
|
|
561
559
|
case it:
|
|
562
560
|
return "";
|
|
563
561
|
case at:
|
|
564
|
-
return e.return = e.value + "{" +
|
|
562
|
+
return e.return = e.value + "{" + G(e.children, r) + "}";
|
|
565
563
|
case ve:
|
|
566
564
|
e.value = e.props.join(",");
|
|
567
565
|
}
|
|
568
|
-
return D(o =
|
|
566
|
+
return D(o = G(e.children, r)) ? e.return = e.value + "{" + o + "}" : "";
|
|
569
567
|
}
|
|
570
|
-
function
|
|
568
|
+
function Xn(e) {
|
|
571
569
|
var t = ye(e);
|
|
572
|
-
return function(o,
|
|
570
|
+
return function(o, r, i, s) {
|
|
573
571
|
for (var l = "", a = 0; a < t; a++)
|
|
574
|
-
l += e[a](o,
|
|
572
|
+
l += e[a](o, r, i, s) || "";
|
|
575
573
|
return l;
|
|
576
574
|
};
|
|
577
575
|
}
|
|
578
|
-
function
|
|
576
|
+
function qn(e) {
|
|
579
577
|
return function(t) {
|
|
580
578
|
t.root || (t = t.return) && e(t);
|
|
581
579
|
};
|
|
582
580
|
}
|
|
583
|
-
var
|
|
584
|
-
for (var i = 0, s = 0; i = s, s = B(), i === 38 && s === 12 && (o[
|
|
581
|
+
var Jn = function(t, o, r) {
|
|
582
|
+
for (var i = 0, s = 0; i = s, s = B(), i === 38 && s === 12 && (o[r] = 1), !q(s); )
|
|
585
583
|
R();
|
|
586
584
|
return K(t, N);
|
|
587
|
-
},
|
|
588
|
-
var
|
|
585
|
+
}, Kn = function(t, o) {
|
|
586
|
+
var r = -1, i = 44;
|
|
589
587
|
do
|
|
590
588
|
switch (q(i)) {
|
|
591
589
|
case 0:
|
|
592
|
-
i === 38 && B() === 12 && (o[
|
|
590
|
+
i === 38 && B() === 12 && (o[r] = 1), t[r] += Jn(N - 1, o, r);
|
|
593
591
|
break;
|
|
594
592
|
case 2:
|
|
595
|
-
t[
|
|
593
|
+
t[r] += ne(i);
|
|
596
594
|
break;
|
|
597
595
|
case 4:
|
|
598
596
|
if (i === 44) {
|
|
599
|
-
t[++
|
|
597
|
+
t[++r] = B() === 58 ? "&\f" : "", o[r] = t[r].length;
|
|
600
598
|
break;
|
|
601
599
|
}
|
|
602
600
|
// fallthrough
|
|
603
601
|
default:
|
|
604
|
-
t[
|
|
602
|
+
t[r] += ue(i);
|
|
605
603
|
}
|
|
606
604
|
while (i = R());
|
|
607
605
|
return t;
|
|
608
|
-
},
|
|
609
|
-
return ht(
|
|
610
|
-
}, Be = /* @__PURE__ */ new WeakMap(),
|
|
606
|
+
}, Qn = function(t, o) {
|
|
607
|
+
return ht(Kn(dt(t), o));
|
|
608
|
+
}, Be = /* @__PURE__ */ new WeakMap(), er = function(t) {
|
|
611
609
|
if (!(t.type !== "rule" || !t.parent || // positive .length indicates that this rule contains pseudo
|
|
612
610
|
// negative .length indicates that this rule has been already prefixed
|
|
613
611
|
t.length < 1)) {
|
|
614
|
-
for (var o = t.value,
|
|
615
|
-
if (
|
|
616
|
-
if (!(t.props.length === 1 && o.charCodeAt(0) !== 58 && !Be.get(
|
|
612
|
+
for (var o = t.value, r = t.parent, i = t.column === r.column && t.line === r.line; r.type !== "rule"; )
|
|
613
|
+
if (r = r.parent, !r) return;
|
|
614
|
+
if (!(t.props.length === 1 && o.charCodeAt(0) !== 58 && !Be.get(r)) && !i) {
|
|
617
615
|
Be.set(t, !0);
|
|
618
|
-
for (var s = [], l =
|
|
616
|
+
for (var s = [], l = Qn(o, s), a = r.props, d = 0, k = 0; d < l.length; d++)
|
|
619
617
|
for (var u = 0; u < a.length; u++, k++)
|
|
620
618
|
t.props[k] = s[d] ? l[d].replace(/&\f/g, a[u]) : a[u] + " " + l[d];
|
|
621
619
|
}
|
|
622
620
|
}
|
|
623
|
-
},
|
|
621
|
+
}, tr = function(t) {
|
|
624
622
|
if (t.type === "decl") {
|
|
625
623
|
var o = t.value;
|
|
626
624
|
// charcode for l
|
|
@@ -629,7 +627,7 @@ var qr = function(t, o, n) {
|
|
|
629
627
|
}
|
|
630
628
|
};
|
|
631
629
|
function ut(e, t) {
|
|
632
|
-
switch (
|
|
630
|
+
switch (jn(e, t)) {
|
|
633
631
|
// color-adjust
|
|
634
632
|
case 5103:
|
|
635
633
|
return C + "print-" + e + e;
|
|
@@ -770,27 +768,27 @@ function ut(e, t) {
|
|
|
770
768
|
}
|
|
771
769
|
return e;
|
|
772
770
|
}
|
|
773
|
-
var
|
|
771
|
+
var nr = function(t, o, r, i) {
|
|
774
772
|
if (t.length > -1 && !t.return) switch (t.type) {
|
|
775
773
|
case xe:
|
|
776
774
|
t.return = ut(t.value, t.length);
|
|
777
775
|
break;
|
|
778
776
|
case at:
|
|
779
|
-
return
|
|
777
|
+
return G([Y(t, {
|
|
780
778
|
value: v(t.value, "@", "@" + C)
|
|
781
779
|
})], i);
|
|
782
780
|
case ve:
|
|
783
|
-
if (t.length) return
|
|
784
|
-
switch (
|
|
781
|
+
if (t.length) return Fn(t.props, function(s) {
|
|
782
|
+
switch (Vn(s, /(::plac\w+|:read-\w+)/)) {
|
|
785
783
|
// :read-(only|write)
|
|
786
784
|
case ":read-only":
|
|
787
785
|
case ":read-write":
|
|
788
|
-
return
|
|
786
|
+
return G([Y(t, {
|
|
789
787
|
props: [v(s, /:(read-\w+)/, ":" + ae + "$1")]
|
|
790
788
|
})], i);
|
|
791
789
|
// :placeholder
|
|
792
790
|
case "::placeholder":
|
|
793
|
-
return
|
|
791
|
+
return G([Y(t, {
|
|
794
792
|
props: [v(s, /:(plac\w+)/, ":" + C + "input-$1")]
|
|
795
793
|
}), Y(t, {
|
|
796
794
|
props: [v(s, /:(plac\w+)/, ":" + ae + "$1")]
|
|
@@ -801,16 +799,16 @@ var tn = function(t, o, n, i) {
|
|
|
801
799
|
return "";
|
|
802
800
|
});
|
|
803
801
|
}
|
|
804
|
-
},
|
|
802
|
+
}, rr = [nr], or = function(t) {
|
|
805
803
|
var o = t.key;
|
|
806
804
|
if (o === "css") {
|
|
807
|
-
var
|
|
808
|
-
Array.prototype.forEach.call(
|
|
805
|
+
var r = document.querySelectorAll("style[data-emotion]:not([data-s])");
|
|
806
|
+
Array.prototype.forEach.call(r, function(h) {
|
|
809
807
|
var y = h.getAttribute("data-emotion");
|
|
810
808
|
y.indexOf(" ") !== -1 && (document.head.appendChild(h), h.setAttribute("data-s", ""));
|
|
811
809
|
});
|
|
812
810
|
}
|
|
813
|
-
var i = t.stylisPlugins ||
|
|
811
|
+
var i = t.stylisPlugins || rr, s = {}, l, a = [];
|
|
814
812
|
l = t.container || document.head, Array.prototype.forEach.call(
|
|
815
813
|
// this means we will ignore elements which don't have a space in them which
|
|
816
814
|
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
|
@@ -821,12 +819,12 @@ var tn = function(t, o, n, i) {
|
|
|
821
819
|
a.push(h);
|
|
822
820
|
}
|
|
823
821
|
);
|
|
824
|
-
var d, k = [
|
|
822
|
+
var d, k = [er, tr];
|
|
825
823
|
{
|
|
826
|
-
var u, p = [
|
|
824
|
+
var u, p = [Yn, qn(function(h) {
|
|
827
825
|
u.insert(h);
|
|
828
|
-
})], c =
|
|
829
|
-
return
|
|
826
|
+
})], c = Xn(k.concat(i, p)), g = function(y) {
|
|
827
|
+
return G(Un(y), c);
|
|
830
828
|
};
|
|
831
829
|
d = function(y, m, T, S) {
|
|
832
830
|
u = T, g(y ? y + "{" + m.styles + "}" : m.styles), S && (f.inserted[m.name] = !0);
|
|
@@ -834,7 +832,7 @@ var tn = function(t, o, n, i) {
|
|
|
834
832
|
}
|
|
835
833
|
var f = {
|
|
836
834
|
key: o,
|
|
837
|
-
sheet: new
|
|
835
|
+
sheet: new Rn({
|
|
838
836
|
key: o,
|
|
839
837
|
container: l,
|
|
840
838
|
nonce: t.nonce,
|
|
@@ -850,12 +848,12 @@ var tn = function(t, o, n, i) {
|
|
|
850
848
|
return f.sheet.hydrate(a), f;
|
|
851
849
|
};
|
|
852
850
|
const pt = ({ children: e, viewport: t, containerProps: o }) => {
|
|
853
|
-
const
|
|
851
|
+
const r = z(null), { theme: i } = $(), [s, l] = P({
|
|
854
852
|
width: 0,
|
|
855
853
|
height: 0
|
|
856
854
|
});
|
|
857
855
|
V(() => {
|
|
858
|
-
const f =
|
|
856
|
+
const f = ln((y) => {
|
|
859
857
|
const m = y.at(0)?.target;
|
|
860
858
|
if (!m) return;
|
|
861
859
|
const { width: T, height: S } = m.getBoundingClientRect();
|
|
@@ -864,10 +862,10 @@ const pt = ({ children: e, viewport: t, containerProps: o }) => {
|
|
|
864
862
|
height: S
|
|
865
863
|
}));
|
|
866
864
|
}, 200), h = new ResizeObserver(f);
|
|
867
|
-
return
|
|
865
|
+
return r.current && h.observe(r.current), () => h.disconnect();
|
|
868
866
|
}, []);
|
|
869
867
|
const a = We(t?.width) ? t.width(s.width) : t?.width, d = We(t?.height) ? t.height(s.height) : t?.height, k = se(a) ? s.width / a : 1, u = se(d) ? s.height / d : 1, p = Math.min(k, u, 1), c = (d ?? s.height / p) || 0, g = (a ?? s.width / p) || 0;
|
|
870
|
-
return /* @__PURE__ */
|
|
868
|
+
return /* @__PURE__ */ n("div", { ...o, css: { padding: 8, width: "100%", height: "100%", backgroundColor: fe.ink["1s"] }, children: /* @__PURE__ */ n("div", { css: { position: "relative", overflow: "hidden", width: "100%", height: "100%" }, ref: r, children: /* @__PURE__ */ n(
|
|
871
869
|
"div",
|
|
872
870
|
{
|
|
873
871
|
style: {
|
|
@@ -878,35 +876,35 @@ const pt = ({ children: e, viewport: t, containerProps: o }) => {
|
|
|
878
876
|
marginTop: (s.height - c) / 2
|
|
879
877
|
},
|
|
880
878
|
css: { position: "absolute" },
|
|
881
|
-
children: /* @__PURE__ */
|
|
882
|
-
|
|
879
|
+
children: /* @__PURE__ */ n(
|
|
880
|
+
In,
|
|
883
881
|
{
|
|
884
882
|
sandbox: "allow-same-origin allow-scripts allow-popups allow-presentation",
|
|
885
883
|
allow: "autoplay; encrypted-media",
|
|
886
884
|
width: a ?? "100%",
|
|
887
885
|
height: d ?? "100%",
|
|
888
|
-
children: /* @__PURE__ */
|
|
886
|
+
children: /* @__PURE__ */ n(sr, { theme: i, children: e })
|
|
889
887
|
}
|
|
890
888
|
)
|
|
891
889
|
}
|
|
892
890
|
) }) });
|
|
893
|
-
},
|
|
894
|
-
const { document: o, window:
|
|
891
|
+
}, sr = ({ children: e, theme: t }) => {
|
|
892
|
+
const { document: o, window: r } = Ce(), [i, s] = P(!1), l = z(window.customElements.define.bind(window.customElements));
|
|
895
893
|
V(() => {
|
|
896
894
|
const d = l.current;
|
|
897
|
-
return
|
|
898
|
-
window.customElements.get(k) ||
|
|
895
|
+
return r && (window.customElements.define = function(k, u, p) {
|
|
896
|
+
window.customElements.get(k) || r.customElements.define(k, u, p), d(k, u, p);
|
|
899
897
|
}), o?.head.replaceWith(document.head.cloneNode(!0)), s(!0), () => {
|
|
900
898
|
window.customElements.define = d;
|
|
901
899
|
};
|
|
902
|
-
}, [o,
|
|
903
|
-
const a =
|
|
900
|
+
}, [o, r]);
|
|
901
|
+
const a = or({
|
|
904
902
|
key: "css",
|
|
905
903
|
container: o?.head
|
|
906
904
|
});
|
|
907
|
-
return i ? /* @__PURE__ */
|
|
908
|
-
/* @__PURE__ */
|
|
909
|
-
|
|
905
|
+
return i ? /* @__PURE__ */ n(Fe, { children: /* @__PURE__ */ w(kn, { value: a, children: [
|
|
906
|
+
/* @__PURE__ */ n(
|
|
907
|
+
mn,
|
|
910
908
|
{
|
|
911
909
|
styles: {
|
|
912
910
|
".frame-content": {
|
|
@@ -927,11 +925,11 @@ const pt = ({ children: e, viewport: t, containerProps: o }) => {
|
|
|
927
925
|
}
|
|
928
926
|
}
|
|
929
927
|
),
|
|
930
|
-
/* @__PURE__ */
|
|
928
|
+
/* @__PURE__ */ n(bn, { root: o?.body, theme: t, children: e })
|
|
931
929
|
] }) }) : null;
|
|
932
930
|
};
|
|
933
|
-
var
|
|
934
|
-
const
|
|
931
|
+
var O = /* @__PURE__ */ ((e) => (e[e.Pixels = 0] = "Pixels", e[e.Unitless = 1] = "Unitless", e))(O || {});
|
|
932
|
+
const ir = [
|
|
935
933
|
{
|
|
936
934
|
label: "Pixels",
|
|
937
935
|
value: 0
|
|
@@ -942,16 +940,16 @@ const sn = [
|
|
|
942
940
|
value: 1
|
|
943
941
|
/* Unitless */
|
|
944
942
|
}
|
|
945
|
-
],
|
|
946
|
-
const i = se(o?.lineHeight) ?
|
|
943
|
+
], mo = ({ name: e, responsive: t = !0, value: o, onChange: r }) => {
|
|
944
|
+
const i = se(o?.lineHeight) ? O.Unitless : O.Pixels, s = i === O.Unitless ? 0.1 : 1, l = mt(o?.lineHeight, "float"), a = ({ unit: c, value: g }) => {
|
|
947
945
|
if (ee(g)) {
|
|
948
|
-
|
|
949
|
-
lineHeight: c ===
|
|
946
|
+
r?.({
|
|
947
|
+
lineHeight: c === O.Unitless ? 1 : g
|
|
950
948
|
});
|
|
951
949
|
return;
|
|
952
950
|
}
|
|
953
|
-
|
|
954
|
-
lineHeight: c ===
|
|
951
|
+
r?.({
|
|
952
|
+
lineHeight: c === O.Unitless ? Number(g.toFixed(1)) : `${g}px`
|
|
955
953
|
});
|
|
956
954
|
}, d = (c) => {
|
|
957
955
|
a({ unit: Number(c.target.value) });
|
|
@@ -964,8 +962,8 @@ const sn = [
|
|
|
964
962
|
c.stopPropagation(), !ee(l) && a({ unit: i, value: Math.max(l - s, 0) });
|
|
965
963
|
};
|
|
966
964
|
return /* @__PURE__ */ w("div", { css: { display: "flex", flexDirection: "column", gap: 8 }, children: [
|
|
967
|
-
/* @__PURE__ */
|
|
968
|
-
|
|
965
|
+
/* @__PURE__ */ n(J, { responsive: t, name: e ?? "Line height", children: /* @__PURE__ */ n("div", { css: { display: "flex", alignItems: "center", gap: 4 }, children: ir.map((c) => /* @__PURE__ */ n(
|
|
966
|
+
Oe,
|
|
969
967
|
{
|
|
970
968
|
onChange: d,
|
|
971
969
|
checked: c.value === i,
|
|
@@ -975,15 +973,15 @@ const sn = [
|
|
|
975
973
|
},
|
|
976
974
|
c.value
|
|
977
975
|
)) }) }),
|
|
978
|
-
/* @__PURE__ */
|
|
976
|
+
/* @__PURE__ */ n("div", { css: { display: "flex", justifyContent: "flex-end" }, children: /* @__PURE__ */ n("div", { css: { width: "50%" }, children: /* @__PURE__ */ n(
|
|
979
977
|
Ct,
|
|
980
978
|
{
|
|
981
979
|
fractionDigits: 1,
|
|
982
|
-
type: i ===
|
|
980
|
+
type: i === O.Unitless ? "decimal" : "integer",
|
|
983
981
|
value: l ?? "",
|
|
984
982
|
onChange: k,
|
|
985
|
-
prefix: /* @__PURE__ */
|
|
986
|
-
suffix: /* @__PURE__ */
|
|
983
|
+
prefix: /* @__PURE__ */ n(W, { disabled: se(l) && l <= 0, onClick: p, children: /* @__PURE__ */ n(I, { source: vt }) }),
|
|
984
|
+
suffix: /* @__PURE__ */ n(W, { onClick: u, children: /* @__PURE__ */ n(I, { source: He }) }),
|
|
987
985
|
mode: "onBlur",
|
|
988
986
|
css: { textAlign: "center" },
|
|
989
987
|
placeholder: "normal"
|
|
@@ -1019,17 +1017,17 @@ const sn = [
|
|
|
1019
1017
|
label: "Inline Grid",
|
|
1020
1018
|
value: "inline-grid"
|
|
1021
1019
|
}
|
|
1022
|
-
],
|
|
1020
|
+
], Co = ({
|
|
1023
1021
|
name: e,
|
|
1024
1022
|
responsive: t = !1,
|
|
1025
1023
|
availableDisplays: o,
|
|
1026
|
-
onChange:
|
|
1024
|
+
onChange: r,
|
|
1027
1025
|
value: i
|
|
1028
1026
|
}) => {
|
|
1029
1027
|
const s = ee(o) ? Pe : Pe.filter((a) => o.includes(a.value)), l = (a) => {
|
|
1030
|
-
|
|
1028
|
+
r?.({ display: a });
|
|
1031
1029
|
};
|
|
1032
|
-
return /* @__PURE__ */
|
|
1030
|
+
return /* @__PURE__ */ n(J, { name: e ?? "Display", responsive: t, children: /* @__PURE__ */ n(
|
|
1033
1031
|
xt,
|
|
1034
1032
|
{
|
|
1035
1033
|
css: {
|
|
@@ -1042,7 +1040,7 @@ const sn = [
|
|
|
1042
1040
|
onChange: l
|
|
1043
1041
|
}
|
|
1044
1042
|
) });
|
|
1045
|
-
},
|
|
1043
|
+
}, vo = ({ value: e, onChange: t, name: o, responsive: r = !1 }) => {
|
|
1046
1044
|
const i = {
|
|
1047
1045
|
flexBasis: e?.flexBasis ?? "auto",
|
|
1048
1046
|
flexGrow: e?.flexGrow ?? 0,
|
|
@@ -1066,12 +1064,12 @@ const sn = [
|
|
|
1066
1064
|
flexShrink: 1
|
|
1067
1065
|
}
|
|
1068
1066
|
}
|
|
1069
|
-
], l = s.find((d) =>
|
|
1067
|
+
], l = s.find((d) => dn(d.rawValue, i))?.value, a = (d) => {
|
|
1070
1068
|
const k = s.find((u) => u.value === Number(d.target.value));
|
|
1071
1069
|
k && t?.(k.rawValue);
|
|
1072
1070
|
};
|
|
1073
|
-
return /* @__PURE__ */
|
|
1074
|
-
|
|
1071
|
+
return /* @__PURE__ */ n(J, { name: o ?? "Content", responsive: r, children: /* @__PURE__ */ n("div", { css: { display: "inline-flex", alignItems: "center", gap: 8 }, children: s.map((d) => /* @__PURE__ */ n(
|
|
1072
|
+
Oe,
|
|
1075
1073
|
{
|
|
1076
1074
|
checked: d.value === l,
|
|
1077
1075
|
value: d.value,
|
|
@@ -1080,13 +1078,13 @@ const sn = [
|
|
|
1080
1078
|
},
|
|
1081
1079
|
d.value
|
|
1082
1080
|
)) }) });
|
|
1083
|
-
},
|
|
1084
|
-
const i =
|
|
1081
|
+
}, xo = ({ name: e, value: t, onChange: o, responsive: r = !0 }) => {
|
|
1082
|
+
const i = z(null), s = (l) => {
|
|
1085
1083
|
o?.({
|
|
1086
1084
|
minWidth: l
|
|
1087
1085
|
});
|
|
1088
1086
|
};
|
|
1089
|
-
return /* @__PURE__ */
|
|
1087
|
+
return /* @__PURE__ */ n(J, { name: e ?? "Min width", responsive: r, children: /* @__PURE__ */ n("div", { css: { position: "relative", width: "50%" }, children: /* @__PURE__ */ n(
|
|
1090
1088
|
yt,
|
|
1091
1089
|
{
|
|
1092
1090
|
fullWidth: !0,
|
|
@@ -1099,8 +1097,8 @@ const sn = [
|
|
|
1099
1097
|
}
|
|
1100
1098
|
}
|
|
1101
1099
|
) }) });
|
|
1102
|
-
},
|
|
1103
|
-
const [o,
|
|
1100
|
+
}, yo = ({ value: e, onChange: t }) => {
|
|
1101
|
+
const [o, r] = P(!1), i = (l) => {
|
|
1104
1102
|
t?.({ ...e, sizeVariant: l });
|
|
1105
1103
|
}, s = (l) => {
|
|
1106
1104
|
t?.({
|
|
@@ -1111,8 +1109,8 @@ const sn = [
|
|
|
1111
1109
|
}
|
|
1112
1110
|
});
|
|
1113
1111
|
};
|
|
1114
|
-
return /* @__PURE__ */
|
|
1115
|
-
/* @__PURE__ */
|
|
1112
|
+
return /* @__PURE__ */ n(J, { name: "Text style", children: /* @__PURE__ */ w(Tt, { open: o, onOpenChange: r, placement: "right", children: [
|
|
1113
|
+
/* @__PURE__ */ n(It, { children: /* @__PURE__ */ w(
|
|
1116
1114
|
"button",
|
|
1117
1115
|
{
|
|
1118
1116
|
css: [
|
|
@@ -1134,21 +1132,21 @@ const sn = [
|
|
|
1134
1132
|
o && { backgroundColor: b.palette.black["7s"] }
|
|
1135
1133
|
],
|
|
1136
1134
|
children: [
|
|
1137
|
-
/* @__PURE__ */
|
|
1138
|
-
/* @__PURE__ */
|
|
1135
|
+
/* @__PURE__ */ n(I, { css: { color: "white" }, source: Mt }),
|
|
1136
|
+
/* @__PURE__ */ n("span", { children: "Auto" })
|
|
1139
1137
|
]
|
|
1140
1138
|
}
|
|
1141
1139
|
) }),
|
|
1142
|
-
/* @__PURE__ */
|
|
1140
|
+
/* @__PURE__ */ n(St, { children: /* @__PURE__ */ w("div", { style: { width: 280 }, children: [
|
|
1143
1141
|
/* @__PURE__ */ w("div", { css: { display: "flex", justifyContent: "space-between", alignItems: "center", gap: 8 }, children: [
|
|
1144
|
-
/* @__PURE__ */
|
|
1145
|
-
/* @__PURE__ */
|
|
1142
|
+
/* @__PURE__ */ n("div", { css: { fontWeight: 500 }, children: "Text style" }),
|
|
1143
|
+
/* @__PURE__ */ n(Et, { children: /* @__PURE__ */ n(W, { children: /* @__PURE__ */ n(I, { source: $e }) }) })
|
|
1146
1144
|
] }),
|
|
1147
|
-
/* @__PURE__ */
|
|
1145
|
+
/* @__PURE__ */ n("hr", { css: { marginBlock: 8, borderColor: b.palette.white["1s"] } }),
|
|
1148
1146
|
/* @__PURE__ */ w("div", { css: { display: "flex", flexDirection: "column", gap: 12 }, children: [
|
|
1149
|
-
/* @__PURE__ */
|
|
1150
|
-
/* @__PURE__ */
|
|
1151
|
-
/* @__PURE__ */
|
|
1147
|
+
/* @__PURE__ */ n(Lt, { value: e?.sizeVariant, onChange: i }),
|
|
1148
|
+
/* @__PURE__ */ n(Wt, { value: { color: e?.css?.color }, onChange: s }),
|
|
1149
|
+
/* @__PURE__ */ n(
|
|
1152
1150
|
Nt,
|
|
1153
1151
|
{
|
|
1154
1152
|
name: "Style",
|
|
@@ -1160,8 +1158,8 @@ const sn = [
|
|
|
1160
1158
|
onChange: s
|
|
1161
1159
|
}
|
|
1162
1160
|
),
|
|
1163
|
-
/* @__PURE__ */
|
|
1164
|
-
/* @__PURE__ */
|
|
1161
|
+
/* @__PURE__ */ n(Rt, { value: { fontWeight: e?.css?.fontWeight }, onChange: s }),
|
|
1162
|
+
/* @__PURE__ */ n(
|
|
1165
1163
|
At,
|
|
1166
1164
|
{
|
|
1167
1165
|
value: {
|
|
@@ -1177,7 +1175,7 @@ const sn = [
|
|
|
1177
1175
|
<path d="M8 5L5 8L8 11" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1178
1176
|
<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"/>
|
|
1179
1177
|
</svg>
|
|
1180
|
-
`,
|
|
1178
|
+
`, ar = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1181
1179
|
<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"/>
|
|
1182
1180
|
<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"/>
|
|
1183
1181
|
<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"/>
|
|
@@ -1185,12 +1183,12 @@ const sn = [
|
|
|
1185
1183
|
<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"/>
|
|
1186
1184
|
<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"/>
|
|
1187
1185
|
</svg>
|
|
1188
|
-
`,
|
|
1186
|
+
`, cr = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1189
1187
|
<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"/>
|
|
1190
1188
|
<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"/>
|
|
1191
1189
|
</svg>
|
|
1192
|
-
`,
|
|
1193
|
-
const { mode: e, screen: t, setState: o, handlers:
|
|
1190
|
+
`, lr = '<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>', dr = () => {
|
|
1191
|
+
const { mode: e, screen: t, setState: o, handlers: r } = $(), [i, s] = P(!1), { actions: l, canRedo: a, canUndo: d, query: k } = H((f, h) => ({
|
|
1194
1192
|
enabled: f.options.enabled,
|
|
1195
1193
|
canUndo: h.history.canUndo(),
|
|
1196
1194
|
canRedo: h.history.canRedo()
|
|
@@ -1199,10 +1197,10 @@ const sn = [
|
|
|
1199
1197
|
}, p = () => {
|
|
1200
1198
|
o({ mode: e === "full" ? "compact" : "full" });
|
|
1201
1199
|
}, c = () => {
|
|
1202
|
-
|
|
1200
|
+
r.close();
|
|
1203
1201
|
}, g = async () => {
|
|
1204
1202
|
try {
|
|
1205
|
-
s(!0), l.selectNode(), await
|
|
1203
|
+
s(!0), l.selectNode(), await r.submit(k.getSerializedNodes());
|
|
1206
1204
|
} finally {
|
|
1207
1205
|
s(!1);
|
|
1208
1206
|
}
|
|
@@ -1222,8 +1220,8 @@ const sn = [
|
|
|
1222
1220
|
},
|
|
1223
1221
|
children: [
|
|
1224
1222
|
/* @__PURE__ */ w("div", { css: { display: "flex", alignItems: "center", gap: 12 }, children: [
|
|
1225
|
-
/* @__PURE__ */
|
|
1226
|
-
/* @__PURE__ */
|
|
1223
|
+
/* @__PURE__ */ n(W, { size: "32", onClick: c, children: /* @__PURE__ */ n(I, { source: lr }) }),
|
|
1224
|
+
/* @__PURE__ */ n(Dt, { onSelectionChange: u, value: t, children: Bt.map(({ icon: f, size: h }) => /* @__PURE__ */ n(W, { value: h, children: /* @__PURE__ */ n(I, { source: f }) }, h)) }),
|
|
1227
1225
|
/* @__PURE__ */ w(
|
|
1228
1226
|
"div",
|
|
1229
1227
|
{
|
|
@@ -1236,12 +1234,12 @@ const sn = [
|
|
|
1236
1234
|
backgroundColor: b.palette.white["1s"]
|
|
1237
1235
|
},
|
|
1238
1236
|
children: [
|
|
1239
|
-
/* @__PURE__ */
|
|
1240
|
-
/* @__PURE__ */
|
|
1237
|
+
/* @__PURE__ */ n(W, { onClick: l.history.undo, disabled: !d, children: /* @__PURE__ */ n(I, { source: je }) }),
|
|
1238
|
+
/* @__PURE__ */ n(W, { onClick: l.history.redo, disabled: !a, children: /* @__PURE__ */ n(I, { source: je, css: { transform: "rotate(180deg)" } }) })
|
|
1241
1239
|
]
|
|
1242
1240
|
}
|
|
1243
1241
|
),
|
|
1244
|
-
/* @__PURE__ */
|
|
1242
|
+
/* @__PURE__ */ n(
|
|
1245
1243
|
"div",
|
|
1246
1244
|
{
|
|
1247
1245
|
css: {
|
|
@@ -1252,28 +1250,28 @@ const sn = [
|
|
|
1252
1250
|
borderRadius: 8,
|
|
1253
1251
|
backgroundColor: b.palette.white["1s"]
|
|
1254
1252
|
},
|
|
1255
|
-
children: /* @__PURE__ */
|
|
1253
|
+
children: /* @__PURE__ */ n(W, { onClick: p, children: /* @__PURE__ */ n(I, { source: e === "full" ? cr : ar }) })
|
|
1256
1254
|
}
|
|
1257
1255
|
)
|
|
1258
1256
|
] }),
|
|
1259
|
-
/* @__PURE__ */
|
|
1257
|
+
/* @__PURE__ */ n("div", { css: { display: "flex", alignItems: "center", gap: 12 }, children: /* @__PURE__ */ n(oe, { isLoading: i, onClick: g, children: "Save" }) })
|
|
1260
1258
|
]
|
|
1261
1259
|
}
|
|
1262
1260
|
);
|
|
1263
|
-
},
|
|
1261
|
+
}, hr = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1264
1262
|
<path d="M20 19.9997L16.3763 16.376" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1265
1263
|
<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"/>
|
|
1266
1264
|
</svg>
|
|
1267
|
-
`,
|
|
1265
|
+
`, ur = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1268
1266
|
<path d="M15 6L9 12L15 18" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1269
1267
|
</svg>
|
|
1270
|
-
`,
|
|
1268
|
+
`, pr = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1271
1269
|
<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"/>
|
|
1272
1270
|
<path d="M13.5 20.9998V12" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1273
1271
|
<path d="M9.50011 11.9998V3" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1274
1272
|
<path d="M20.9999 12H3.00024" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1275
1273
|
</svg>
|
|
1276
|
-
`,
|
|
1274
|
+
`, gr = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1277
1275
|
<rect x="3" y="3" width="18" height="18" rx="2" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1278
1276
|
<path d="M3 12H21" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1279
1277
|
<path d="M12 21V3" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
@@ -1284,17 +1282,17 @@ const sn = [
|
|
|
1284
1282
|
<path d="M6 21H18" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1285
1283
|
<path d="M6 3H18" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1286
1284
|
</svg>
|
|
1287
|
-
`,
|
|
1285
|
+
`, fr = {
|
|
1288
1286
|
name: "Layout",
|
|
1289
1287
|
templates: [
|
|
1290
1288
|
{
|
|
1291
1289
|
name: "Container",
|
|
1292
|
-
template: /* @__PURE__ */
|
|
1290
|
+
template: /* @__PURE__ */ n(Pt, {}),
|
|
1293
1291
|
icon: { source: Ve, height: 32 }
|
|
1294
1292
|
},
|
|
1295
1293
|
{
|
|
1296
1294
|
name: "Block",
|
|
1297
|
-
template: /* @__PURE__ */
|
|
1295
|
+
template: /* @__PURE__ */ n(jt, {}),
|
|
1298
1296
|
icon: { source: Ve, height: 32 }
|
|
1299
1297
|
},
|
|
1300
1298
|
{
|
|
@@ -1311,17 +1309,17 @@ const sn = [
|
|
|
1311
1309
|
paddingBottom: 16
|
|
1312
1310
|
},
|
|
1313
1311
|
children: [
|
|
1314
|
-
/* @__PURE__ */
|
|
1315
|
-
/* @__PURE__ */
|
|
1312
|
+
/* @__PURE__ */ n(Me, {}),
|
|
1313
|
+
/* @__PURE__ */ n(Me, {})
|
|
1316
1314
|
]
|
|
1317
1315
|
}
|
|
1318
1316
|
),
|
|
1319
|
-
icon: { source:
|
|
1317
|
+
icon: { source: gr, height: 32 }
|
|
1320
1318
|
},
|
|
1321
1319
|
{
|
|
1322
1320
|
name: "Flex",
|
|
1323
|
-
template: /* @__PURE__ */ w(
|
|
1324
|
-
/* @__PURE__ */
|
|
1321
|
+
template: /* @__PURE__ */ w(Ft, { sx: { columnGap: 8, rowGap: 8, paddingTop: 16, paddingBottom: 16 }, children: [
|
|
1322
|
+
/* @__PURE__ */ n(
|
|
1325
1323
|
Se,
|
|
1326
1324
|
{
|
|
1327
1325
|
sx: {
|
|
@@ -1329,7 +1327,7 @@ const sn = [
|
|
|
1329
1327
|
}
|
|
1330
1328
|
}
|
|
1331
1329
|
),
|
|
1332
|
-
/* @__PURE__ */
|
|
1330
|
+
/* @__PURE__ */ n(
|
|
1333
1331
|
Se,
|
|
1334
1332
|
{
|
|
1335
1333
|
sx: {
|
|
@@ -1338,10 +1336,10 @@ const sn = [
|
|
|
1338
1336
|
}
|
|
1339
1337
|
)
|
|
1340
1338
|
] }),
|
|
1341
|
-
icon: { source:
|
|
1339
|
+
icon: { source: pr, height: 32 }
|
|
1342
1340
|
}
|
|
1343
1341
|
]
|
|
1344
|
-
},
|
|
1342
|
+
}, br = `<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">
|
|
1345
1343
|
<style type="text/css">
|
|
1346
1344
|
.st0{fill:currentColor;}
|
|
1347
1345
|
</style>
|
|
@@ -1370,30 +1368,30 @@ const sn = [
|
|
|
1370
1368
|
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
|
|
1371
1369
|
C372.362,303.664,369.538,300.836,364.556,300.836z"/>
|
|
1372
1370
|
</g>
|
|
1373
|
-
</svg>`,
|
|
1371
|
+
</svg>`, wr = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1374
1372
|
<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"/>
|
|
1375
1373
|
<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"/>
|
|
1376
1374
|
<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"/>
|
|
1377
1375
|
<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"/>
|
|
1378
1376
|
</svg>
|
|
1379
|
-
`,
|
|
1377
|
+
`, kr = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1380
1378
|
<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"/>
|
|
1381
1379
|
<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"/>
|
|
1382
1380
|
<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"/>
|
|
1383
1381
|
<path d="M21 20H9" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1384
1382
|
<path d="M3 20H6" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1385
1383
|
</svg>
|
|
1386
|
-
`,
|
|
1384
|
+
`, mr = {
|
|
1387
1385
|
name: "Media",
|
|
1388
1386
|
templates: [
|
|
1389
1387
|
{
|
|
1390
1388
|
name: "Image",
|
|
1391
|
-
template: /* @__PURE__ */
|
|
1392
|
-
icon: { source:
|
|
1389
|
+
template: /* @__PURE__ */ n(Ot, { src: "https://ucarecdn.com/ee6d5074-1640-4cc7-8933-47c8589c3dee/-/format/auto/" }),
|
|
1390
|
+
icon: { source: wr, height: 32 }
|
|
1393
1391
|
},
|
|
1394
1392
|
{
|
|
1395
1393
|
name: "Video",
|
|
1396
|
-
template: /* @__PURE__ */
|
|
1394
|
+
template: /* @__PURE__ */ n(
|
|
1397
1395
|
Ht,
|
|
1398
1396
|
{
|
|
1399
1397
|
sx: {
|
|
@@ -1402,53 +1400,53 @@ const sn = [
|
|
|
1402
1400
|
src: "https://cdn.shopify.com/videos/c/o/v/2cd3deb506b54b009063f7270ab5cf2e.mp4"
|
|
1403
1401
|
}
|
|
1404
1402
|
),
|
|
1405
|
-
icon: { source:
|
|
1403
|
+
icon: { source: kr, height: 32 }
|
|
1406
1404
|
},
|
|
1407
1405
|
{
|
|
1408
1406
|
name: "Icon",
|
|
1409
|
-
template: /* @__PURE__ */
|
|
1410
|
-
icon: { source:
|
|
1407
|
+
template: /* @__PURE__ */ n($t, { source: _t }),
|
|
1408
|
+
icon: { source: br, height: 32 }
|
|
1411
1409
|
}
|
|
1412
1410
|
]
|
|
1413
|
-
},
|
|
1411
|
+
}, Cr = `<svg fill="currentColor" width="24" height="24" viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg">
|
|
1414
1412
|
<title>h</title>
|
|
1415
1413
|
<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"/>
|
|
1416
1414
|
</svg>
|
|
1417
|
-
`,
|
|
1415
|
+
`, vr = `<svg fill="currentColor" width="24" height="24" viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg">
|
|
1418
1416
|
<title>p</title>
|
|
1419
1417
|
<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"/>
|
|
1420
1418
|
</svg>
|
|
1421
|
-
`,
|
|
1419
|
+
`, xr = {
|
|
1422
1420
|
name: "Text",
|
|
1423
1421
|
templates: [
|
|
1424
1422
|
{
|
|
1425
1423
|
name: "Heading",
|
|
1426
|
-
template: /* @__PURE__ */
|
|
1427
|
-
icon: { source:
|
|
1424
|
+
template: /* @__PURE__ */ n(Gt, { as: "h2", sizeVariant: "4xl", md: { sizeVariant: "5xl" }, children: "Your heading text goes here" }),
|
|
1425
|
+
icon: { source: Cr, height: 32 }
|
|
1428
1426
|
},
|
|
1429
1427
|
{
|
|
1430
1428
|
name: "Paragraph",
|
|
1431
|
-
template: /* @__PURE__ */
|
|
1432
|
-
icon: { source:
|
|
1429
|
+
template: /* @__PURE__ */ n(zt, { children: "Replace this text with your content" }),
|
|
1430
|
+
icon: { source: vr, height: 32 }
|
|
1433
1431
|
}
|
|
1434
1432
|
]
|
|
1435
|
-
},
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1433
|
+
}, yr = [
|
|
1434
|
+
fr,
|
|
1435
|
+
xr,
|
|
1436
|
+
mr,
|
|
1439
1437
|
Ut,
|
|
1440
1438
|
Zt,
|
|
1441
1439
|
Yt,
|
|
1442
1440
|
Xt
|
|
1443
|
-
],
|
|
1441
|
+
], Tr = '<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>', Ir = {
|
|
1444
1442
|
name: "Basics",
|
|
1445
|
-
icon: { source:
|
|
1446
|
-
renderer: () => /* @__PURE__ */
|
|
1447
|
-
},
|
|
1448
|
-
const t = [
|
|
1443
|
+
icon: { source: Tr },
|
|
1444
|
+
renderer: () => /* @__PURE__ */ n(Sr, { elementGroups: yr })
|
|
1445
|
+
}, Mr = ({ groups: e }) => {
|
|
1446
|
+
const t = [Ir, ...e ?? []];
|
|
1449
1447
|
return /* @__PURE__ */ w("div", { css: { display: "flex", flexDirection: "column", height: "100%" }, children: [
|
|
1450
|
-
/* @__PURE__ */
|
|
1451
|
-
/* @__PURE__ */
|
|
1448
|
+
/* @__PURE__ */ n("div", { css: { display: "flex", padding: 8, alignItems: "center", gap: 12 }, children: /* @__PURE__ */ n(_e, { fullWidth: !0, placeholder: "Search...", prefix: /* @__PURE__ */ n(I, { source: hr }) }) }),
|
|
1449
|
+
/* @__PURE__ */ n(
|
|
1452
1450
|
ce,
|
|
1453
1451
|
{
|
|
1454
1452
|
css: {
|
|
@@ -1458,31 +1456,31 @@ const sn = [
|
|
|
1458
1456
|
borderColor: b.palette.white["1s"],
|
|
1459
1457
|
flex: 1
|
|
1460
1458
|
},
|
|
1461
|
-
children: t.map((o,
|
|
1459
|
+
children: t.map((o, r) => /* @__PURE__ */ n(Lr, { group: o }, r))
|
|
1462
1460
|
}
|
|
1463
1461
|
)
|
|
1464
1462
|
] });
|
|
1465
|
-
},
|
|
1466
|
-
const [t, o] = st(!0), { actions:
|
|
1463
|
+
}, Sr = ({ elementGroups: e }) => /* @__PURE__ */ n("div", { css: { display: "flex", flexDirection: "column", gap: 8 }, children: e.map((t, o) => /* @__PURE__ */ n(Er, { group: t }, o)) }), Er = ({ group: e }) => {
|
|
1464
|
+
const [t, o] = st(!0), { actions: r, connectors: i } = H();
|
|
1467
1465
|
return /* @__PURE__ */ w("div", { css: { display: "flex", flexDirection: "column", ...b.text.sm }, children: [
|
|
1468
|
-
/* @__PURE__ */
|
|
1466
|
+
/* @__PURE__ */ n(oe, { onClick: o, css: { paddingInline: 0, backgroundColor: "transparent" }, children: /* @__PURE__ */ w(
|
|
1469
1467
|
"div",
|
|
1470
1468
|
{
|
|
1471
1469
|
css: { display: "flex", alignItems: "center", justifyContent: "space-between", flex: 1, ...b.text.sm },
|
|
1472
1470
|
children: [
|
|
1473
1471
|
e.name,
|
|
1474
|
-
/* @__PURE__ */
|
|
1472
|
+
/* @__PURE__ */ n(
|
|
1475
1473
|
I,
|
|
1476
1474
|
{
|
|
1477
|
-
source:
|
|
1475
|
+
source: Ge,
|
|
1478
1476
|
css: [{ transition: "transform" }, !t && { transform: "rotate(180deg)" }]
|
|
1479
1477
|
}
|
|
1480
1478
|
)
|
|
1481
1479
|
]
|
|
1482
1480
|
}
|
|
1483
1481
|
) }),
|
|
1484
|
-
/* @__PURE__ */
|
|
1485
|
-
/* @__PURE__ */
|
|
1482
|
+
/* @__PURE__ */ n(Jt, { open: t, children: /* @__PURE__ */ n("div", { css: { display: "grid", paddingBlock: 8, gap: 16, gridTemplateColumns: "repeat(2, minmax(0, 1fr))" }, children: e.templates?.map((s, l) => /* @__PURE__ */ w("div", { css: { display: "flex", flexDirection: "column", gap: 4 }, children: [
|
|
1483
|
+
/* @__PURE__ */ n(
|
|
1486
1484
|
"div",
|
|
1487
1485
|
{
|
|
1488
1486
|
css: {
|
|
@@ -1513,18 +1511,18 @@ const sn = [
|
|
|
1513
1511
|
ref: (a) => {
|
|
1514
1512
|
a && i.create(a, s.template, {
|
|
1515
1513
|
onCreate(d) {
|
|
1516
|
-
(typeof s.autoFocus == "function" ? s.autoFocus(d) : s.autoFocus) &&
|
|
1514
|
+
(typeof s.autoFocus == "function" ? s.autoFocus(d) : s.autoFocus) && r.selectNode(d.rootNodeId), s.onCreate?.(d);
|
|
1517
1515
|
}
|
|
1518
1516
|
});
|
|
1519
1517
|
},
|
|
1520
|
-
children: s.icon && /* @__PURE__ */
|
|
1518
|
+
children: s.icon && /* @__PURE__ */ n(Kt, { width: void 0, height: void 0, ...s.icon })
|
|
1521
1519
|
}
|
|
1522
1520
|
),
|
|
1523
|
-
/* @__PURE__ */
|
|
1521
|
+
/* @__PURE__ */ n("p", { css: { marginInline: "auto", textAlign: "center", ...ze.xs }, children: s.name })
|
|
1524
1522
|
] }, l)) }) })
|
|
1525
1523
|
] });
|
|
1526
|
-
},
|
|
1527
|
-
const [t, o] = P(!1), { refs:
|
|
1524
|
+
}, Lr = ({ group: e }) => {
|
|
1525
|
+
const [t, o] = P(!1), { refs: r, floatingStyles: i, context: s } = le({
|
|
1528
1526
|
open: t,
|
|
1529
1527
|
onOpenChange: o,
|
|
1530
1528
|
placement: "right-start",
|
|
@@ -1543,9 +1541,9 @@ const sn = [
|
|
|
1543
1541
|
whileElementsMounted: de
|
|
1544
1542
|
});
|
|
1545
1543
|
V(() => {
|
|
1546
|
-
|
|
1547
|
-
}, [
|
|
1548
|
-
const l = Ke(s, { move: !1, handleClose:
|
|
1544
|
+
r.setPositionReference(document.querySelector("aside"));
|
|
1545
|
+
}, [r]);
|
|
1546
|
+
const l = Ke(s, { move: !1, handleClose: Tn() }), a = Qe(s), d = et(s), k = tt(s), { getReferenceProps: u, getFloatingProps: p } = nt([l, a, d, k]), c = e.renderer;
|
|
1549
1547
|
return /* @__PURE__ */ w(ie, { children: [
|
|
1550
1548
|
/* @__PURE__ */ w(
|
|
1551
1549
|
"button",
|
|
@@ -1566,10 +1564,10 @@ const sn = [
|
|
|
1566
1564
|
}
|
|
1567
1565
|
},
|
|
1568
1566
|
...u(),
|
|
1569
|
-
ref:
|
|
1567
|
+
ref: r.setReference,
|
|
1570
1568
|
children: [
|
|
1571
|
-
e.icon && /* @__PURE__ */
|
|
1572
|
-
/* @__PURE__ */
|
|
1569
|
+
e.icon && /* @__PURE__ */ n("div", { css: { padding: 6, borderRadius: 8, backgroundColor: b.palette.white["1s"] }, children: /* @__PURE__ */ n(I, { ...e.icon }) }),
|
|
1570
|
+
/* @__PURE__ */ n(
|
|
1573
1571
|
"span",
|
|
1574
1572
|
{
|
|
1575
1573
|
css: {
|
|
@@ -1581,11 +1579,11 @@ const sn = [
|
|
|
1581
1579
|
children: e.name
|
|
1582
1580
|
}
|
|
1583
1581
|
),
|
|
1584
|
-
/* @__PURE__ */
|
|
1582
|
+
/* @__PURE__ */ n(I, { css: { transform: "rotate(180deg)" }, source: ur })
|
|
1585
1583
|
]
|
|
1586
1584
|
}
|
|
1587
1585
|
),
|
|
1588
|
-
t && /* @__PURE__ */
|
|
1586
|
+
t && /* @__PURE__ */ n(he, { children: /* @__PURE__ */ n("div", { style: i, ...p(), ref: r.setFloating, children: /* @__PURE__ */ w(
|
|
1589
1587
|
"div",
|
|
1590
1588
|
{
|
|
1591
1589
|
css: {
|
|
@@ -1602,14 +1600,14 @@ const sn = [
|
|
|
1602
1600
|
...b.text.sm
|
|
1603
1601
|
},
|
|
1604
1602
|
children: [
|
|
1605
|
-
/* @__PURE__ */
|
|
1606
|
-
/* @__PURE__ */
|
|
1603
|
+
/* @__PURE__ */ n("div", { css: { display: "flex", paddingInline: 8, alignItems: "center", height: 48 }, children: /* @__PURE__ */ n("h6", { css: { fontWeight: 500 }, children: e.name }) }),
|
|
1604
|
+
/* @__PURE__ */ n(ce, { css: { paddingInline: 12, flex: 1 }, children: c ? /* @__PURE__ */ n(c, {}) : /* @__PURE__ */ n("div", { css: { display: "flex", flexDirection: "column", gap: 16 }, children: e.templates?.map((g, f) => /* @__PURE__ */ Cn(Wr, { ...g, key: f })) }) })
|
|
1607
1605
|
]
|
|
1608
1606
|
}
|
|
1609
1607
|
) }) })
|
|
1610
1608
|
] });
|
|
1611
|
-
},
|
|
1612
|
-
const [,
|
|
1609
|
+
}, Wr = ({ template: e, autoFocus: t = !0, onCreate: o }) => {
|
|
1610
|
+
const [, r] = P(!1), i = $(), { actions: s, connectors: l, resolver: a, query: d } = H((u) => ({
|
|
1613
1611
|
resolver: u.options.resolver
|
|
1614
1612
|
})), k = P(() => {
|
|
1615
1613
|
const u = typeof e == "function" ? e() : e;
|
|
@@ -1617,7 +1615,7 @@ const sn = [
|
|
|
1617
1615
|
"rootNodeId" in u ? p = u : p = d.parseReactElement(u).toNodeTree();
|
|
1618
1616
|
const { rootNodeId: c, nodes: g } = p, f = {};
|
|
1619
1617
|
return Object.entries(g).forEach(([h, y]) => {
|
|
1620
|
-
const m =
|
|
1618
|
+
const m = qt(y.data, a), T = h === c ? _ : h;
|
|
1621
1619
|
f[T] = {
|
|
1622
1620
|
...m,
|
|
1623
1621
|
parent: m.parent === c ? _ : m.parent,
|
|
@@ -1625,7 +1623,7 @@ const sn = [
|
|
|
1625
1623
|
};
|
|
1626
1624
|
}), f;
|
|
1627
1625
|
})[0];
|
|
1628
|
-
return /* @__PURE__ */
|
|
1626
|
+
return /* @__PURE__ */ n(
|
|
1629
1627
|
"div",
|
|
1630
1628
|
{
|
|
1631
1629
|
css: {
|
|
@@ -1643,9 +1641,9 @@ const sn = [
|
|
|
1643
1641
|
}
|
|
1644
1642
|
});
|
|
1645
1643
|
},
|
|
1646
|
-
onDragStart: () =>
|
|
1647
|
-
onDragEnd: () =>
|
|
1648
|
-
children: /* @__PURE__ */
|
|
1644
|
+
onDragStart: () => r(!0),
|
|
1645
|
+
onDragEnd: () => r(!1),
|
|
1646
|
+
children: /* @__PURE__ */ n(
|
|
1649
1647
|
"div",
|
|
1650
1648
|
{
|
|
1651
1649
|
css: {
|
|
@@ -1656,7 +1654,7 @@ const sn = [
|
|
|
1656
1654
|
width: 240,
|
|
1657
1655
|
aspectRatio: "16 / 9"
|
|
1658
1656
|
},
|
|
1659
|
-
children: /* @__PURE__ */
|
|
1657
|
+
children: /* @__PURE__ */ n("div", { css: { position: "absolute", inset: 0 }, children: /* @__PURE__ */ n(
|
|
1660
1658
|
pt,
|
|
1661
1659
|
{
|
|
1662
1660
|
containerProps: {
|
|
@@ -1664,15 +1662,15 @@ const sn = [
|
|
|
1664
1662
|
backgroundColor: i.theme.palette.background.default
|
|
1665
1663
|
}
|
|
1666
1664
|
},
|
|
1667
|
-
viewport: { width:
|
|
1668
|
-
children: /* @__PURE__ */
|
|
1665
|
+
viewport: { width: wn.md.minWidth },
|
|
1666
|
+
children: /* @__PURE__ */ n(rt, { resolver: a, children: /* @__PURE__ */ n(ot, { data: k }) })
|
|
1669
1667
|
}
|
|
1670
1668
|
) })
|
|
1671
1669
|
}
|
|
1672
1670
|
)
|
|
1673
1671
|
}
|
|
1674
1672
|
);
|
|
1675
|
-
},
|
|
1673
|
+
}, Nr = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1676
1674
|
<path d="M12.5 2H9.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1677
1675
|
<path d="M2 9.5V12.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1678
1676
|
<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"/>
|
|
@@ -1683,35 +1681,35 @@ const sn = [
|
|
|
1683
1681
|
<path d="M2 17V18C2 19.105 2.895 20 4 20H5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1684
1682
|
<path d="M20 5V4C20 2.895 19.105 2 18 2H17" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1685
1683
|
</svg>
|
|
1686
|
-
`,
|
|
1684
|
+
`, Rr = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1687
1685
|
<circle cx="6.49771" cy="5.49762" r="2.50104" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1688
1686
|
<circle cx="6.49771" cy="18.503" r="2.50104" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1689
1687
|
<path d="M6.49771 7.99854V16.0019" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1690
1688
|
<circle cx="17.5023" cy="13.0006" r="2.50104" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1691
1689
|
<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"/>
|
|
1692
1690
|
</svg>
|
|
1693
|
-
`,
|
|
1691
|
+
`, Ar = (e) => {
|
|
1694
1692
|
const { query: t, actions: o } = H(), {
|
|
1695
|
-
id:
|
|
1693
|
+
id: r,
|
|
1696
1694
|
expanded: i,
|
|
1697
1695
|
actions: s,
|
|
1698
1696
|
displayName: l,
|
|
1699
1697
|
children: a,
|
|
1700
1698
|
depth: d
|
|
1701
|
-
} =
|
|
1699
|
+
} = tn((g) => ({
|
|
1702
1700
|
expanded: g.expanded,
|
|
1703
|
-
displayName:
|
|
1701
|
+
displayName: Ze(t.node(g.id).get())
|
|
1704
1702
|
})), { selected: k, selectable: u } = H((g, f) => {
|
|
1705
|
-
const h = f.node(
|
|
1703
|
+
const h = f.node(r).get();
|
|
1706
1704
|
return {
|
|
1707
|
-
selected: f.getEvent("selected").contains(
|
|
1705
|
+
selected: f.getEvent("selected").contains(r),
|
|
1708
1706
|
nodeDOM: h.dom,
|
|
1709
|
-
selectable:
|
|
1707
|
+
selectable: Ue(h)
|
|
1710
1708
|
};
|
|
1711
1709
|
});
|
|
1712
1710
|
V(() => {
|
|
1713
|
-
|
|
1714
|
-
}, [s,
|
|
1711
|
+
r === _ && s.setExpandedState(!0);
|
|
1712
|
+
}, [s, r]), V(() => {
|
|
1715
1713
|
if (a.length === 0) return;
|
|
1716
1714
|
a.some((f) => {
|
|
1717
1715
|
const h = t.getEvent("selected").all();
|
|
@@ -1719,7 +1717,7 @@ const sn = [
|
|
|
1719
1717
|
}) && s.setExpandedState(!0);
|
|
1720
1718
|
}, [a, s, t]);
|
|
1721
1719
|
const p = () => {
|
|
1722
|
-
o.selectNode(
|
|
1720
|
+
o.selectNode(r);
|
|
1723
1721
|
}, c = (g) => {
|
|
1724
1722
|
g.stopPropagation(), s.toggleLayer();
|
|
1725
1723
|
};
|
|
@@ -1751,10 +1749,10 @@ const sn = [
|
|
|
1751
1749
|
},
|
|
1752
1750
|
!u && { pointerEvents: "none" },
|
|
1753
1751
|
k && { backgroundColor: b.palette.black["7s"] },
|
|
1754
|
-
|
|
1752
|
+
r === _ && { display: "none" }
|
|
1755
1753
|
],
|
|
1756
1754
|
children: [
|
|
1757
|
-
a.length ? /* @__PURE__ */
|
|
1755
|
+
a.length ? /* @__PURE__ */ n(W, { css: { pointerEvents: "auto" }, onClick: c, children: /* @__PURE__ */ n(
|
|
1758
1756
|
I,
|
|
1759
1757
|
{
|
|
1760
1758
|
css: [
|
|
@@ -1762,10 +1760,10 @@ const sn = [
|
|
|
1762
1760
|
i && { transform: "rotate(0deg)" }
|
|
1763
1761
|
],
|
|
1764
1762
|
size: 16,
|
|
1765
|
-
source:
|
|
1763
|
+
source: Ge
|
|
1766
1764
|
}
|
|
1767
|
-
) }) : /* @__PURE__ */
|
|
1768
|
-
/* @__PURE__ */
|
|
1765
|
+
) }) : /* @__PURE__ */ n("div", { css: { padding: 4 }, children: /* @__PURE__ */ n(I, { size: 16, source: Rr }) }),
|
|
1766
|
+
/* @__PURE__ */ n(
|
|
1769
1767
|
"span",
|
|
1770
1768
|
{
|
|
1771
1769
|
css: [
|
|
@@ -1783,7 +1781,7 @@ const sn = [
|
|
|
1783
1781
|
]
|
|
1784
1782
|
}
|
|
1785
1783
|
),
|
|
1786
|
-
/* @__PURE__ */
|
|
1784
|
+
/* @__PURE__ */ n(
|
|
1787
1785
|
"div",
|
|
1788
1786
|
{
|
|
1789
1787
|
css: {
|
|
@@ -1797,12 +1795,12 @@ const sn = [
|
|
|
1797
1795
|
]
|
|
1798
1796
|
}
|
|
1799
1797
|
);
|
|
1800
|
-
},
|
|
1801
|
-
const t =
|
|
1802
|
-
t.start(
|
|
1798
|
+
}, Dr = ({ onClose: e }) => {
|
|
1799
|
+
const t = En(), o = (r) => {
|
|
1800
|
+
t.start(r);
|
|
1803
1801
|
};
|
|
1804
|
-
return /* @__PURE__ */
|
|
1805
|
-
|
|
1802
|
+
return /* @__PURE__ */ n(he, { children: /* @__PURE__ */ w(
|
|
1803
|
+
Qt.div,
|
|
1806
1804
|
{
|
|
1807
1805
|
drag: !0,
|
|
1808
1806
|
dragControls: t,
|
|
@@ -1834,8 +1832,8 @@ const sn = [
|
|
|
1834
1832
|
},
|
|
1835
1833
|
children: [
|
|
1836
1834
|
/* @__PURE__ */ w("div", { css: { display: "flex", alignItems: "center", gap: 8 }, children: [
|
|
1837
|
-
/* @__PURE__ */
|
|
1838
|
-
/* @__PURE__ */
|
|
1835
|
+
/* @__PURE__ */ n(I, { source: Nr }),
|
|
1836
|
+
/* @__PURE__ */ n(
|
|
1839
1837
|
"p",
|
|
1840
1838
|
{
|
|
1841
1839
|
css: {
|
|
@@ -1846,11 +1844,11 @@ const sn = [
|
|
|
1846
1844
|
}
|
|
1847
1845
|
)
|
|
1848
1846
|
] }),
|
|
1849
|
-
/* @__PURE__ */
|
|
1847
|
+
/* @__PURE__ */ n(W, { onClick: e, children: /* @__PURE__ */ n(I, { source: $e }) })
|
|
1850
1848
|
]
|
|
1851
1849
|
}
|
|
1852
1850
|
),
|
|
1853
|
-
/* @__PURE__ */
|
|
1851
|
+
/* @__PURE__ */ n(
|
|
1854
1852
|
"div",
|
|
1855
1853
|
{
|
|
1856
1854
|
css: {
|
|
@@ -1861,7 +1859,7 @@ const sn = [
|
|
|
1861
1859
|
borderColor: b.palette.white["1s"],
|
|
1862
1860
|
flex: 1
|
|
1863
1861
|
},
|
|
1864
|
-
children: /* @__PURE__ */
|
|
1862
|
+
children: /* @__PURE__ */ n(en, { renderLayer: Ar })
|
|
1865
1863
|
}
|
|
1866
1864
|
)
|
|
1867
1865
|
]
|
|
@@ -1877,10 +1875,10 @@ const sn = [
|
|
|
1877
1875
|
blue: "Blue",
|
|
1878
1876
|
neutral: "Neutral",
|
|
1879
1877
|
violet: "Violet"
|
|
1880
|
-
},
|
|
1881
|
-
const e = $(), t = !!e.handlers.saveTheme, o = e.theme.palette,
|
|
1878
|
+
}, Br = ["primary", "secondary"], Pr = Object.keys(gt), jr = [100, 200, 300, 400, 500, 600, 700, 800], Vr = () => {
|
|
1879
|
+
const e = $(), t = !!e.handlers.saveTheme, o = e.theme.palette, r = z(e.theme), i = z(!1);
|
|
1882
1880
|
V(() => {
|
|
1883
|
-
const c =
|
|
1881
|
+
const c = r.current;
|
|
1884
1882
|
return () => {
|
|
1885
1883
|
i.current || e.setState({ theme: c });
|
|
1886
1884
|
};
|
|
@@ -1913,11 +1911,11 @@ const sn = [
|
|
|
1913
1911
|
k(!1);
|
|
1914
1912
|
}
|
|
1915
1913
|
}, p = () => {
|
|
1916
|
-
e.setState({ theme:
|
|
1914
|
+
e.setState({ theme: r.current, action: void 0 });
|
|
1917
1915
|
};
|
|
1918
1916
|
return /* @__PURE__ */ w("div", { css: { display: "flex", flexDirection: "column", height: "100%" }, children: [
|
|
1919
|
-
/* @__PURE__ */
|
|
1920
|
-
/* @__PURE__ */
|
|
1917
|
+
/* @__PURE__ */ n("div", { css: { display: "flex", padding: 8, alignItems: "center" }, children: /* @__PURE__ */ n("h6", { css: { fontWeight: 500 }, children: "Palette" }) }),
|
|
1918
|
+
/* @__PURE__ */ n(
|
|
1921
1919
|
ce,
|
|
1922
1920
|
{
|
|
1923
1921
|
css: {
|
|
@@ -1928,13 +1926,13 @@ const sn = [
|
|
|
1928
1926
|
borderColor: b.palette.white["1s"],
|
|
1929
1927
|
flex: 1
|
|
1930
1928
|
},
|
|
1931
|
-
children: /* @__PURE__ */
|
|
1932
|
-
const g = s(c), f =
|
|
1929
|
+
children: /* @__PURE__ */ n("div", { css: { display: "flex", flexDirection: "column", gap: 12 }, children: Pr.map((c) => {
|
|
1930
|
+
const g = s(c), f = Br.includes(c);
|
|
1933
1931
|
return /* @__PURE__ */ w("div", { css: { display: "flex", flexDirection: "column", gap: 4 }, children: [
|
|
1934
|
-
/* @__PURE__ */
|
|
1932
|
+
/* @__PURE__ */ n("p", { css: { ...ze.xs, color: b.palette.white["4s"] }, children: gt[c] }),
|
|
1935
1933
|
/* @__PURE__ */ w("div", { css: { display: "flex", alignItems: "center", gap: 8 }, children: [
|
|
1936
1934
|
t && f && /* @__PURE__ */ w("div", { css: { display: "flex", gap: 4 }, children: [
|
|
1937
|
-
/* @__PURE__ */
|
|
1935
|
+
/* @__PURE__ */ n(
|
|
1938
1936
|
Ee,
|
|
1939
1937
|
{
|
|
1940
1938
|
hidePalette: !0,
|
|
@@ -1943,7 +1941,7 @@ const sn = [
|
|
|
1943
1941
|
placement: "right-start"
|
|
1944
1942
|
}
|
|
1945
1943
|
),
|
|
1946
|
-
/* @__PURE__ */
|
|
1944
|
+
/* @__PURE__ */ n(
|
|
1947
1945
|
Ee,
|
|
1948
1946
|
{
|
|
1949
1947
|
hidePalette: !0,
|
|
@@ -1953,7 +1951,7 @@ const sn = [
|
|
|
1953
1951
|
}
|
|
1954
1952
|
)
|
|
1955
1953
|
] }),
|
|
1956
|
-
/* @__PURE__ */
|
|
1954
|
+
/* @__PURE__ */ n(
|
|
1957
1955
|
"div",
|
|
1958
1956
|
{
|
|
1959
1957
|
css: {
|
|
@@ -1961,7 +1959,7 @@ const sn = [
|
|
|
1961
1959
|
gap: 4,
|
|
1962
1960
|
flex: 1
|
|
1963
1961
|
},
|
|
1964
|
-
children:
|
|
1962
|
+
children: jr.map((h) => /* @__PURE__ */ n(
|
|
1965
1963
|
"div",
|
|
1966
1964
|
{
|
|
1967
1965
|
css: {
|
|
@@ -1974,7 +1972,7 @@ const sn = [
|
|
|
1974
1972
|
borderColor: b.palette.white["3s"]
|
|
1975
1973
|
},
|
|
1976
1974
|
title: `${c}.${h}`,
|
|
1977
|
-
children: /* @__PURE__ */
|
|
1975
|
+
children: /* @__PURE__ */ n(
|
|
1978
1976
|
"div",
|
|
1979
1977
|
{
|
|
1980
1978
|
css: { width: "100%", height: "100%", borderRadius: 1 },
|
|
@@ -2003,29 +2001,29 @@ const sn = [
|
|
|
2003
2001
|
borderColor: b.palette.white["1s"]
|
|
2004
2002
|
},
|
|
2005
2003
|
children: [
|
|
2006
|
-
/* @__PURE__ */
|
|
2007
|
-
/* @__PURE__ */
|
|
2004
|
+
/* @__PURE__ */ n(oe, { variant: "text", onClick: p, disabled: d, css: { flex: 1 }, children: "Cancel" }),
|
|
2005
|
+
/* @__PURE__ */ n(oe, { onClick: u, isLoading: d, css: { flex: 1 }, children: d ? "Saving..." : "Save" })
|
|
2008
2006
|
]
|
|
2009
2007
|
}
|
|
2010
2008
|
)
|
|
2011
2009
|
] });
|
|
2012
|
-
},
|
|
2010
|
+
}, Fr = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2013
2011
|
<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"/>
|
|
2014
2012
|
<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"/>
|
|
2015
2013
|
<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"/>
|
|
2016
2014
|
</svg>
|
|
2017
|
-
`,
|
|
2015
|
+
`, Or = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2018
2016
|
<path d="M5 12H19" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
2019
2017
|
<path d="M10 7L5 12" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
2020
2018
|
<path d="M10 17L5 12" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
2021
2019
|
</svg>
|
|
2022
|
-
`,
|
|
2020
|
+
`, Hr = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2023
2021
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M20.221 4.29206V4.29206C19.438 3.50906 18.183 3.46806 17.35 4.19606L9.31298 11.2281C8.44198 11.9901 8.39798 13.3291 9.21598 14.1471L10.365 15.2961C11.183 16.1141 12.523 16.0691 13.284 15.1991L20.316 7.16206C21.045 6.33006 21.003 5.07506 20.221 4.29206V4.29206Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
2024
2022
|
<path d="M10.87 9.87012L14.65 13.6501" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
2025
2023
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M3.59903 20.3231H7.30203C10.287 20.3231 11.782 16.7141 9.67103 14.6031V14.6031C8.11903 13.0511 5.48303 13.6221 4.71303 15.6771L3.19103 19.7351C3.08503 20.0201 3.29503 20.3231 3.59903 20.3231Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
2026
2024
|
</svg>
|
|
2027
|
-
`, $
|
|
2028
|
-
const [t, o] = st(!1), { action:
|
|
2025
|
+
`, $r = ({ insert: e }) => {
|
|
2026
|
+
const [t, o] = st(!1), { action: r = "insert", setState: i } = $(), { actions: s, isDeletable: l, focusedNode: a } = H((p, c) => {
|
|
2029
2027
|
const g = c.getEvent("selected").first(), f = g ? c.node(g) : null;
|
|
2030
2028
|
return {
|
|
2031
2029
|
enabled: p.options.enabled,
|
|
@@ -2057,8 +2055,8 @@ const sn = [
|
|
|
2057
2055
|
},
|
|
2058
2056
|
children: [
|
|
2059
2057
|
/* @__PURE__ */ w("div", { css: { display: "flex", paddingInline: 4, flexDirection: "column", gap: 4 }, children: [
|
|
2060
|
-
!!e && /* @__PURE__ */ w(
|
|
2061
|
-
/* @__PURE__ */
|
|
2058
|
+
!!e && /* @__PURE__ */ w(Fe, { children: [
|
|
2059
|
+
/* @__PURE__ */ n(
|
|
2062
2060
|
W,
|
|
2063
2061
|
{
|
|
2064
2062
|
tooltip: {
|
|
@@ -2069,12 +2067,12 @@ const sn = [
|
|
|
2069
2067
|
value: "insert",
|
|
2070
2068
|
css: { position: "relative" },
|
|
2071
2069
|
size: "32",
|
|
2072
|
-
children: /* @__PURE__ */
|
|
2070
|
+
children: /* @__PURE__ */ n(I, { source: He })
|
|
2073
2071
|
}
|
|
2074
2072
|
),
|
|
2075
|
-
/* @__PURE__ */
|
|
2073
|
+
/* @__PURE__ */ n("hr", { css: { borderColor: b.palette.white["2s"] } })
|
|
2076
2074
|
] }),
|
|
2077
|
-
/* @__PURE__ */
|
|
2075
|
+
/* @__PURE__ */ n(
|
|
2078
2076
|
W,
|
|
2079
2077
|
{
|
|
2080
2078
|
tooltip: {
|
|
@@ -2085,11 +2083,11 @@ const sn = [
|
|
|
2085
2083
|
value: "layers",
|
|
2086
2084
|
css: { position: "relative" },
|
|
2087
2085
|
size: "32",
|
|
2088
|
-
children: /* @__PURE__ */
|
|
2086
|
+
children: /* @__PURE__ */ n(I, { source: Fr })
|
|
2089
2087
|
}
|
|
2090
2088
|
),
|
|
2091
|
-
/* @__PURE__ */
|
|
2092
|
-
/* @__PURE__ */
|
|
2089
|
+
/* @__PURE__ */ n("hr", { css: { borderColor: b.palette.white["2s"] } }),
|
|
2090
|
+
/* @__PURE__ */ n(
|
|
2093
2091
|
W,
|
|
2094
2092
|
{
|
|
2095
2093
|
tooltip: {
|
|
@@ -2100,7 +2098,7 @@ const sn = [
|
|
|
2100
2098
|
value: "theme",
|
|
2101
2099
|
css: { position: "relative" },
|
|
2102
2100
|
size: "32",
|
|
2103
|
-
children: /* @__PURE__ */
|
|
2101
|
+
children: /* @__PURE__ */ n(I, { source: Hr })
|
|
2104
2102
|
}
|
|
2105
2103
|
)
|
|
2106
2104
|
] }),
|
|
@@ -2118,15 +2116,15 @@ const sn = [
|
|
|
2118
2116
|
borderColor: b.palette.white["1s"]
|
|
2119
2117
|
},
|
|
2120
2118
|
children: [
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2119
|
+
r === "theme" && /* @__PURE__ */ n("div", { css: { overflow: "auto", flex: 1 }, children: /* @__PURE__ */ n(Vr, {}) }),
|
|
2120
|
+
r !== "theme" && !a?.related.inspector && /* @__PURE__ */ n("div", { css: { overflow: "auto", flex: 1 }, children: r === "insert" && !!e && /* @__PURE__ */ n(Mr, { groups: e.groups }) }),
|
|
2121
|
+
r !== "theme" && !!a?.related?.inspector && /* @__PURE__ */ w("div", { css: { display: "flex", flexDirection: "column", overflow: "hidden", flex: 1 }, children: [
|
|
2124
2122
|
/* @__PURE__ */ w("div", { css: { display: "flex", paddingInline: 8, paddingBlock: 8, alignItems: "center", gap: 8 }, children: [
|
|
2125
|
-
/* @__PURE__ */
|
|
2126
|
-
/* @__PURE__ */
|
|
2127
|
-
l && /* @__PURE__ */
|
|
2123
|
+
/* @__PURE__ */ n(W, { onClick: d, children: /* @__PURE__ */ n(I, { source: Or }) }),
|
|
2124
|
+
/* @__PURE__ */ n("div", { css: { overflow: "hidden", flex: 1 }, children: /* @__PURE__ */ n(_e, { fullWidth: !0, value: Ze(a), size: "32" }) }),
|
|
2125
|
+
l && /* @__PURE__ */ n(W, { value: a.id, onClick: k, children: /* @__PURE__ */ n(I, { css: { color: b.palette.red["4s"] }, source: nn }) })
|
|
2128
2126
|
] }),
|
|
2129
|
-
/* @__PURE__ */
|
|
2127
|
+
/* @__PURE__ */ n(
|
|
2130
2128
|
"div",
|
|
2131
2129
|
{
|
|
2132
2130
|
css: {
|
|
@@ -2136,7 +2134,7 @@ const sn = [
|
|
|
2136
2134
|
borderTopStyle: "solid",
|
|
2137
2135
|
borderColor: b.palette.white["1s"]
|
|
2138
2136
|
},
|
|
2139
|
-
children: /* @__PURE__ */
|
|
2137
|
+
children: /* @__PURE__ */ n(gn, { fallback: null, children: Ye(a.related.inspector) })
|
|
2140
2138
|
}
|
|
2141
2139
|
)
|
|
2142
2140
|
] })
|
|
@@ -2146,12 +2144,12 @@ const sn = [
|
|
|
2146
2144
|
]
|
|
2147
2145
|
}
|
|
2148
2146
|
),
|
|
2149
|
-
t && /* @__PURE__ */
|
|
2147
|
+
t && /* @__PURE__ */ n(Dr, { onClose: o })
|
|
2150
2148
|
] });
|
|
2151
|
-
},
|
|
2149
|
+
}, _r = () => {
|
|
2152
2150
|
const { dom: e } = ke((s) => ({
|
|
2153
2151
|
dom: s.dom
|
|
2154
|
-
})), { document: t } = Ce(), { floatingStyles: o, refs:
|
|
2152
|
+
})), { document: t } = Ce(), { floatingStyles: o, refs: r } = le({
|
|
2155
2153
|
open: !0,
|
|
2156
2154
|
strategy: "fixed",
|
|
2157
2155
|
placement: "bottom-start",
|
|
@@ -2172,10 +2170,10 @@ const sn = [
|
|
|
2172
2170
|
whileElementsMounted: de
|
|
2173
2171
|
});
|
|
2174
2172
|
V(() => {
|
|
2175
|
-
|
|
2176
|
-
}, [e,
|
|
2177
|
-
const i =
|
|
2178
|
-
return e ? /* @__PURE__ */
|
|
2173
|
+
r.setReference(e);
|
|
2174
|
+
}, [e, r]);
|
|
2175
|
+
const i = fn((s) => r.setFloating(s), [r]);
|
|
2176
|
+
return e ? /* @__PURE__ */ n(he, { root: t?.body, children: /* @__PURE__ */ n(
|
|
2179
2177
|
"div",
|
|
2180
2178
|
{
|
|
2181
2179
|
ref: i,
|
|
@@ -2189,22 +2187,22 @@ const sn = [
|
|
|
2189
2187
|
}
|
|
2190
2188
|
}
|
|
2191
2189
|
) }) : null;
|
|
2192
|
-
},
|
|
2190
|
+
}, Gr = ({ render: e }) => {
|
|
2193
2191
|
const { id: t, toolbar: o } = ke((s) => ({
|
|
2194
|
-
toolbar:
|
|
2195
|
-
})), { mode:
|
|
2196
|
-
const a = l.getEvent("selected").contains(t) && t !== _, d = a ?
|
|
2192
|
+
toolbar: an(s).toolbar
|
|
2193
|
+
})), { mode: r } = $(), { isActiveSelectable: i } = H((s, l) => {
|
|
2194
|
+
const a = l.getEvent("selected").contains(t) && t !== _, d = a ? Ue(l.node(t).get()) : !1;
|
|
2197
2195
|
return { isActiveSelectable: a && d };
|
|
2198
2196
|
});
|
|
2199
2197
|
return /* @__PURE__ */ w(ie, { children: [
|
|
2200
|
-
i &&
|
|
2201
|
-
/* @__PURE__ */
|
|
2202
|
-
/* @__PURE__ */
|
|
2198
|
+
i && r === "full" && /* @__PURE__ */ w(ie, { children: [
|
|
2199
|
+
/* @__PURE__ */ n(zr, { children: o ? Ye(o) : /* @__PURE__ */ n(Ur, {}) }),
|
|
2200
|
+
/* @__PURE__ */ n(_r, {})
|
|
2203
2201
|
] }),
|
|
2204
2202
|
e
|
|
2205
2203
|
] });
|
|
2206
|
-
},
|
|
2207
|
-
const { dom: t } = ke((s) => ({ dom: s.dom })), { document: o } = Ce(), { floatingStyles:
|
|
2204
|
+
}, zr = ({ children: e }) => {
|
|
2205
|
+
const { dom: t } = ke((s) => ({ dom: s.dom })), { document: o } = Ce(), { floatingStyles: r, refs: i } = le({
|
|
2208
2206
|
open: !0,
|
|
2209
2207
|
placement: "bottom-start",
|
|
2210
2208
|
middleware: [me(), qe(4)],
|
|
@@ -2212,7 +2210,7 @@ const sn = [
|
|
|
2212
2210
|
});
|
|
2213
2211
|
return V(() => {
|
|
2214
2212
|
i.setReference(t);
|
|
2215
|
-
}, [t, i]), t ? /* @__PURE__ */
|
|
2213
|
+
}, [t, i]), t ? /* @__PURE__ */ n(he, { root: o?.body, children: /* @__PURE__ */ n(
|
|
2216
2214
|
"div",
|
|
2217
2215
|
{
|
|
2218
2216
|
css: {
|
|
@@ -2223,11 +2221,11 @@ const sn = [
|
|
|
2223
2221
|
borderRadius: 4
|
|
2224
2222
|
},
|
|
2225
2223
|
ref: i.setFloating,
|
|
2226
|
-
style:
|
|
2224
|
+
style: r,
|
|
2227
2225
|
children: e
|
|
2228
2226
|
}
|
|
2229
2227
|
) }) : null;
|
|
2230
|
-
},
|
|
2228
|
+
}, Ur = () => /* @__PURE__ */ w(
|
|
2231
2229
|
"div",
|
|
2232
2230
|
{
|
|
2233
2231
|
css: {
|
|
@@ -2236,28 +2234,28 @@ const sn = [
|
|
|
2236
2234
|
gap: 4
|
|
2237
2235
|
},
|
|
2238
2236
|
children: [
|
|
2239
|
-
/* @__PURE__ */
|
|
2240
|
-
/* @__PURE__ */
|
|
2241
|
-
/* @__PURE__ */
|
|
2237
|
+
/* @__PURE__ */ n(rn, {}),
|
|
2238
|
+
/* @__PURE__ */ n(on, {}),
|
|
2239
|
+
/* @__PURE__ */ n(sn, {})
|
|
2242
2240
|
]
|
|
2243
2241
|
}
|
|
2244
|
-
),
|
|
2242
|
+
), To = ({
|
|
2245
2243
|
theme: e,
|
|
2246
2244
|
insert: t,
|
|
2247
2245
|
resolver: o,
|
|
2248
|
-
handlers:
|
|
2246
|
+
handlers: r,
|
|
2249
2247
|
serializedNodes: i,
|
|
2250
2248
|
variableDefinitions: s,
|
|
2251
2249
|
children: l
|
|
2252
2250
|
}) => {
|
|
2253
2251
|
const { screen: a } = $({
|
|
2254
2252
|
theme: e,
|
|
2255
|
-
handlers:
|
|
2253
|
+
handlers: r,
|
|
2256
2254
|
mode: "full",
|
|
2257
2255
|
screen: "xs",
|
|
2258
2256
|
variableDefinitions: s
|
|
2259
2257
|
});
|
|
2260
|
-
return /* @__PURE__ */ w(
|
|
2258
|
+
return /* @__PURE__ */ w(rt, { enabled: !0, onRender: Gr, resolver: o, children: [
|
|
2261
2259
|
/* @__PURE__ */ w(
|
|
2262
2260
|
"div",
|
|
2263
2261
|
{
|
|
@@ -2270,125 +2268,125 @@ const sn = [
|
|
|
2270
2268
|
color: fe.white["6s"]
|
|
2271
2269
|
},
|
|
2272
2270
|
children: [
|
|
2273
|
-
/* @__PURE__ */
|
|
2271
|
+
/* @__PURE__ */ n(dr, {}),
|
|
2274
2272
|
/* @__PURE__ */ w("div", { css: { display: "flex", overflow: "hidden", flex: 1 }, children: [
|
|
2275
|
-
/* @__PURE__ */
|
|
2276
|
-
/* @__PURE__ */
|
|
2273
|
+
/* @__PURE__ */ n($r, { insert: t }),
|
|
2274
|
+
/* @__PURE__ */ n(
|
|
2277
2275
|
pt,
|
|
2278
2276
|
{
|
|
2279
2277
|
viewport: {
|
|
2280
2278
|
width: (d) => a === "lg" ? Math.max(d, Le[a]) : Le[a]
|
|
2281
2279
|
},
|
|
2282
|
-
children: i ? /* @__PURE__ */
|
|
2280
|
+
children: i ? /* @__PURE__ */ n(ot, { data: i }) : l
|
|
2283
2281
|
}
|
|
2284
2282
|
)
|
|
2285
2283
|
] })
|
|
2286
2284
|
]
|
|
2287
2285
|
}
|
|
2288
2286
|
),
|
|
2289
|
-
/* @__PURE__ */
|
|
2287
|
+
/* @__PURE__ */ n(cn, {})
|
|
2290
2288
|
] });
|
|
2291
2289
|
};
|
|
2292
2290
|
export {
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2291
|
+
So as AspectRatioToolbar,
|
|
2292
|
+
Eo as BackgroundToolbar,
|
|
2293
|
+
Lo as BorderRadiusToolbar,
|
|
2294
|
+
Wo as BorderToolbar,
|
|
2295
|
+
No as ChildNodesToolbar,
|
|
2296
|
+
Ro as ColorPickerContent,
|
|
2299
2297
|
Ee as ColorPickerPopover,
|
|
2300
|
-
|
|
2298
|
+
Ao as ColorPreview,
|
|
2301
2299
|
Wt as ColorToolbar,
|
|
2302
|
-
|
|
2303
|
-
|
|
2300
|
+
Do as ColorVariantToolbar,
|
|
2301
|
+
Bo as ColumnGapToolbar,
|
|
2304
2302
|
Rt as CssFontWeightToolbar,
|
|
2305
2303
|
yt as CssSizeInput,
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2304
|
+
Po as CssTextAlignToolbar,
|
|
2305
|
+
jo as CssWidthToolbar,
|
|
2306
|
+
ko as DegreePicker,
|
|
2307
|
+
Co as DisplayToolbar,
|
|
2308
|
+
To as Editor,
|
|
2309
|
+
Vo as FlexAlignItemsToolbar,
|
|
2310
|
+
vo as FlexToolbar,
|
|
2311
|
+
Fo as FlexWrapToolbar,
|
|
2312
|
+
Oo as FontSizeToolbar,
|
|
2315
2313
|
pt as FramePreview,
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2314
|
+
Ho as GridAlignItemsToolbar,
|
|
2315
|
+
$o as HeightToolbar,
|
|
2316
|
+
_o as HtmlAnchorTargetToolbar,
|
|
2317
|
+
Go as ImageSourceSelection,
|
|
2318
|
+
zo as InsertInlineToolbar,
|
|
2319
|
+
Uo as InsertLinkToolbar,
|
|
2320
|
+
Zo as JustifyContentToolbar,
|
|
2321
|
+
Yo as JustifyItemsToolbar,
|
|
2322
|
+
mo as LineHeightToolbar,
|
|
2323
|
+
Xo as MarginToolbar,
|
|
2324
|
+
xo as MinWidthToolbar,
|
|
2325
|
+
sn as NodeDeleteToolbar,
|
|
2326
|
+
rn as NodeDragToolbar,
|
|
2327
|
+
on as NodeNameToolbar,
|
|
2328
|
+
qo as NumberField,
|
|
2329
|
+
Jo as NumberFieldMixOptions,
|
|
2330
|
+
Ko as ObjectFitToolbar,
|
|
2331
|
+
Qo as OrderToolbar,
|
|
2332
|
+
es as PaddingToolbar,
|
|
2333
|
+
ts as RowGapToolbar,
|
|
2334
|
+
ns as SvgSourceToolbar,
|
|
2335
|
+
rs as TagNameToolbar,
|
|
2338
2336
|
Lt as TextSizeVariantToolbar,
|
|
2339
|
-
|
|
2337
|
+
yo as TextStyleGroupToolbar,
|
|
2340
2338
|
Nt as TextStyleToolbar,
|
|
2341
2339
|
At as TextTransformToolbar,
|
|
2342
2340
|
J as ToolbarField,
|
|
2343
|
-
|
|
2344
|
-
|
|
2341
|
+
os as ToolbarGroup,
|
|
2342
|
+
ss as VisibilityToolbar,
|
|
2345
2343
|
oe as WbButton,
|
|
2346
2344
|
Dt as WbButtonGroup,
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2345
|
+
Jt as WbCollapse,
|
|
2346
|
+
is as WbColorPicker,
|
|
2347
|
+
as as WbDatePicker,
|
|
2348
|
+
go as WbDialog,
|
|
2349
|
+
bo as WbDialogBody,
|
|
2350
|
+
cs as WbDialogClose,
|
|
2351
|
+
ls as WbDialogFooter,
|
|
2352
|
+
ds as WbDialogHeader,
|
|
2353
|
+
hs as WbDropzone,
|
|
2354
|
+
Ln as WbFloating,
|
|
2355
|
+
us as WbFloatingClose,
|
|
2358
2356
|
wt as WbFloatingContent,
|
|
2359
2357
|
bt as WbFloatingContext,
|
|
2360
|
-
|
|
2358
|
+
wo as WbFormLabel,
|
|
2361
2359
|
I as WbIcon,
|
|
2362
2360
|
W as WbIconButton,
|
|
2363
2361
|
_e as WbInput,
|
|
2364
2362
|
Ct as WbInputNumber,
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2363
|
+
ps as WbLoadingOverlay,
|
|
2364
|
+
gs as WbMenu,
|
|
2365
|
+
fs as WbMenuItem,
|
|
2366
|
+
bs as WbMenuList,
|
|
2367
|
+
ws as WbMenuTrigger,
|
|
2370
2368
|
Tt as WbPopover,
|
|
2371
2369
|
Et as WbPopoverClose,
|
|
2372
2370
|
St as WbPopoverContent,
|
|
2373
2371
|
It as WbPopoverTrigger,
|
|
2374
|
-
|
|
2372
|
+
Oe as WbRadioButton,
|
|
2375
2373
|
ce as WbScrollView,
|
|
2376
2374
|
xt as WbSelect,
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2375
|
+
Kt as WbSvgLoader,
|
|
2376
|
+
ks as WbSwitch,
|
|
2377
|
+
ms as WbTab,
|
|
2378
|
+
Cs as WbTabContent,
|
|
2379
|
+
vs as WbTabList,
|
|
2380
|
+
xs as WbTabPanel,
|
|
2381
|
+
ys as WbTabs,
|
|
2382
|
+
Ts as WbTextarea,
|
|
2383
|
+
Is as WbTooltip,
|
|
2384
|
+
Ms as WbVirtualizedList,
|
|
2385
|
+
Ss as pushToast,
|
|
2386
|
+
Es as textSizeVariantOptions,
|
|
2387
|
+
fo as useDialogContext,
|
|
2390
2388
|
$ as useEditor,
|
|
2391
|
-
|
|
2392
|
-
|
|
2389
|
+
Ls as useEditorResponsive,
|
|
2390
|
+
Ws as useInlineEditable,
|
|
2393
2391
|
kt as useWbFloatingContext
|
|
2394
2392
|
};
|