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