@janbox/storefront-builder 2.0.1 → 2.0.3
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/{dialog-header-DPLOS7TT.js → countdown-timer.node-CZrTzirS.js} +3939 -2463
- package/dist/editor/components/index.d.ts +0 -1
- package/dist/editor/hooks/index.d.ts +0 -12
- package/dist/editor/hooks/use-editor.d.ts +6 -2
- package/dist/editor/index.d.ts +4 -0
- package/dist/editor/lib/index.d.ts +6 -4
- package/dist/editor/toolbars/css-font-weight/index.d.ts +9 -0
- package/dist/editor/toolbars/{width/width.d.ts → css-width/index.d.ts} +5 -5
- package/dist/editor/toolbars/html-anchor-target/index.d.ts +7 -0
- package/dist/editor/toolbars/index.d.ts +3 -3
- package/dist/editor/toolbars/text-align/index.d.ts +9 -1
- 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.js +1471 -739
- package/dist/index-B1b2lC5K.js +4 -0
- package/dist/index-CdI5y-ul.js +8326 -0
- package/dist/index.js +176 -334
- package/dist/style.css +1 -1
- package/dist/templates.js +27 -31
- package/dist/theme/index.d.ts +293 -0
- package/dist/tooltip-npH7aBjY.js +75 -0
- package/dist/utils/common.d.ts +0 -2
- package/package.json +1 -11
- package/dist/anchor-target-BlOvysAr.js +0 -2329
- package/dist/color-picker-popover-B3AVFuei.js +0 -201
- 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/editor/components/toolbar-container.d.ts +0 -1
- package/dist/editor/toolbars/anchor-target/anchor-target.d.ts +0 -7
- package/dist/editor/toolbars/anchor-target/index.d.ts +0 -1
- package/dist/editor/toolbars/font-weight/dataset.d.ts +0 -5
- package/dist/editor/toolbars/font-weight/font-weight.d.ts +0 -9
- package/dist/editor/toolbars/font-weight/index.d.ts +0 -1
- package/dist/editor/toolbars/text-align/text-align.d.ts +0 -8
- package/dist/editor/toolbars/width/index.d.ts +0 -1
- package/dist/editor/toolbars.js +0 -336
- package/dist/editor/ui.js +0 -110
- package/dist/index-BbiQ0n_-.js +0 -4
- package/dist/index-CwrFnubn.js +0 -4448
- package/dist/tooltip-KbIHELP2.js +0 -65
package/dist/editor.js
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { jsx as n, jsxs as g, Fragment as je } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { Z as y2, _ as M2, $ as L2, t as p, a0 as I2, g as U, a1 as Ce, a2 as Te, a3 as Se, Q as T2, a4 as _e, a5 as E, a6 as M, b as ve, M as Fe, a7 as S2, a8 as N2, a9 as A2, aa as Oe, K as E2, N as B2, f as O, X as S, H as ze, P as ae, V as Ze, S as xe, G as $e, a as ge, m as Ge, F as fe, q as be, B as Ue, I as qe, n as Ye, L as Xe, y as R2, x as Ke, j as Je, A as Qe, l as e2, C as t2, ab as n2, c as V2, d as W2, e as P2, r as r2, p as o2, s as D2, v as H2, T as j2, w as _2, ac as s2, ad as F2, ae as O2, af as z2, ag as Z2, E as i2, O as $2, R as G2 } from "./countdown-timer.node-CZrTzirS.js";
|
|
3
|
+
import { ah as pr, ai as Cr, aj as gr, ak as fr, al as wr, am as mr, an as kr, ao as vr, ap as xr, aq as br, ar as yr, as as Mr, at as Lr, au as Ir, av as Tr } from "./countdown-timer.node-CZrTzirS.js";
|
|
4
|
+
import { useNode as U2, ROOT_NODE as z, serializeNode as q2 } from "@craftjs/core";
|
|
5
|
+
import { isValidElement as Y2, useState as H, useRef as de, useEffect as K, createElement as a2, Fragment as ce, Suspense as X2 } from "react";
|
|
6
6
|
import "flat";
|
|
7
|
-
import { throttle as
|
|
7
|
+
import { throttle as K2, isFunction as Ne, isNumber as J, isNil as Z, isString as Ae, isEqual as J2, times as F } from "lodash-es";
|
|
8
8
|
import "@janbox/storefront-ui";
|
|
9
|
-
import { D as
|
|
10
|
-
import "
|
|
11
|
-
import { ThemeProvider as Ye, getColorVar as N2, FLOATING_Z_INDEX as Qe, breakpoint as Xe } from "@janbox/storefront-ui/theme";
|
|
9
|
+
import { W as ye, X as q, Y as c2, Z as Q2, _ as et, $ as tt, a0 as nt, a1 as rt, a2 as ot, a3 as st, a4 as it, a5 as at, D as ct, a as lt, H as dt, P as ht, l as ut, i as pt, G as Ct, c as gt, g as ft, F as wt, M as mt, b as kt, h as vt, I as xt, L as bt, U as yt, j as Mt, B as Lt, A as It, f as Tt, e as St, a6 as Nt, a7 as At, R as k, d as l2, C as d2, a8 as h2, a9 as Et, aa as Ee } from "./index-CdI5y-ul.js";
|
|
10
|
+
import { ab as Nr, ac as Ar, ad as Er, ae as Br, af as Rr, ag as Vr, ah as Wr, ai as Pr, aj as Dr, ak as Hr, al as jr, am as _r, an as Fr, ao as Or, ap as zr, aq as Zr, ar as $r, as as Gr, at as Ur, au as qr, av as Yr, aw as Xr, ax as Kr, ay as Jr, az as Qr, aA as eo, aB as to, aC as no, T as ro, aD as oo, aE as so, aF as io, aG as ao, aH as co, aI as lo, aJ as ho, aK as uo, aL as po, aM as Co, aN as go, aO as fo } from "./index-CdI5y-ul.js";
|
|
12
11
|
import "@janbox/storefront-ui/utils";
|
|
13
|
-
import
|
|
14
|
-
import {
|
|
12
|
+
import "@janbox/storefront-ui/hooks";
|
|
13
|
+
import { CacheProvider as Bt, Global as Rt, createElement as Vt } from "@emotion/react";
|
|
14
|
+
import { useFloating as Wt, autoUpdate as Pt, flip as Dt, size as Ht, useHover as jt, safePolygon as _t, useFocus as Ft, useDismiss as Ot, useRole as zt, useInteractions as Zt, FloatingPortal as u2 } from "@floating-ui/react";
|
|
15
15
|
import "react-use";
|
|
16
|
+
import { FLOATING_Z_INDEX as p2, ThemeProvider as $t, getColorVar as Be, breakpoint as Gt } from "@janbox/storefront-ui/theme";
|
|
16
17
|
import "react-colorful";
|
|
17
18
|
import "overlayscrollbars-react";
|
|
18
19
|
import "@tanstack/react-virtual";
|
|
@@ -23,18 +24,13 @@ 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 Ut, { useFrame as qt } from "react-frame-component";
|
|
28
28
|
import "@hello-pangea/dnd";
|
|
29
|
-
import { useToggle as
|
|
30
|
-
import "
|
|
31
|
-
import "
|
|
32
|
-
import {
|
|
33
|
-
|
|
34
|
-
import { a as x1, W as re, A as ne } from "./dropzone-Dbfed3jK.js";
|
|
35
|
-
import b1 from "dayjs";
|
|
36
|
-
import { Layers as y1, useLayer as N1 } from "@craftjs/layers";
|
|
37
|
-
class M1 {
|
|
29
|
+
import { useToggle as C2 } from "usehooks-ts";
|
|
30
|
+
import Yt from "dayjs";
|
|
31
|
+
import { Layers as Xt, useLayer as Kt } from "@craftjs/layers";
|
|
32
|
+
import { W as mo } from "./tooltip-npH7aBjY.js";
|
|
33
|
+
class Jt {
|
|
38
34
|
constructor() {
|
|
39
35
|
this.componentControls = /* @__PURE__ */ new Set();
|
|
40
36
|
}
|
|
@@ -62,115 +58,251 @@ class M1 {
|
|
|
62
58
|
* @public
|
|
63
59
|
*/
|
|
64
60
|
start(t, o) {
|
|
65
|
-
this.componentControls.forEach((
|
|
66
|
-
|
|
61
|
+
this.componentControls.forEach((r) => {
|
|
62
|
+
r.start(t.nativeEvent || t, o);
|
|
67
63
|
});
|
|
68
64
|
}
|
|
69
65
|
}
|
|
70
|
-
const
|
|
71
|
-
function
|
|
72
|
-
return
|
|
66
|
+
const Qt = () => new Jt();
|
|
67
|
+
function e1() {
|
|
68
|
+
return y2(Qt);
|
|
73
69
|
}
|
|
74
|
-
|
|
70
|
+
const Qn = ({ width: e = 600, children: t, ...o }) => /* @__PURE__ */ n(
|
|
71
|
+
M2,
|
|
72
|
+
{
|
|
73
|
+
dismissProps: {
|
|
74
|
+
enabled: !0
|
|
75
|
+
},
|
|
76
|
+
...o,
|
|
77
|
+
children: /* @__PURE__ */ g(
|
|
78
|
+
L2,
|
|
79
|
+
{
|
|
80
|
+
floatingOverlayProps: {
|
|
81
|
+
disabled: !1,
|
|
82
|
+
className: "grid place-items-center p-4 sm:p-5 md:p-6",
|
|
83
|
+
lockScroll: !0,
|
|
84
|
+
style: {
|
|
85
|
+
zIndex: p2
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
css: { display: "flex", overflow: "hidden", flexDirection: "column", maxWidth: "100%", maxHeight: "100%" },
|
|
89
|
+
children: [
|
|
90
|
+
/* @__PURE__ */ n(
|
|
91
|
+
"div",
|
|
92
|
+
{
|
|
93
|
+
css: {
|
|
94
|
+
backdropFilter: "blur(2px)",
|
|
95
|
+
position: "fixed",
|
|
96
|
+
inset: 0,
|
|
97
|
+
pointerEvents: "none",
|
|
98
|
+
backgroundColor: "rgba(0, 0, 0, 0.4)"
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
),
|
|
102
|
+
/* @__PURE__ */ n(
|
|
103
|
+
"div",
|
|
104
|
+
{
|
|
105
|
+
css: {
|
|
106
|
+
width: e,
|
|
107
|
+
display: "flex",
|
|
108
|
+
position: "relative",
|
|
109
|
+
paddingBlock: 8,
|
|
110
|
+
flexDirection: "column",
|
|
111
|
+
overflow: "hidden",
|
|
112
|
+
borderRadius: 8,
|
|
113
|
+
backgroundColor: p.palette.ink["6s"],
|
|
114
|
+
maxWidth: "100%",
|
|
115
|
+
color: "white"
|
|
116
|
+
},
|
|
117
|
+
children: t
|
|
118
|
+
}
|
|
119
|
+
)
|
|
120
|
+
]
|
|
121
|
+
}
|
|
122
|
+
)
|
|
123
|
+
}
|
|
124
|
+
), er = () => I2(), tr = ({ ref: e, ...t }) => /* @__PURE__ */ n(
|
|
125
|
+
ye,
|
|
126
|
+
{
|
|
127
|
+
css: { paddingBlock: 12, paddingInline: 20, flex: 1, overflow: "auto", ...p.text.xs },
|
|
128
|
+
...t,
|
|
129
|
+
ref: e
|
|
130
|
+
}
|
|
131
|
+
), nr = ({ required: e, children: t, ...o }) => /* @__PURE__ */ g("div", { css: { marginBottom: 6, display: "flex", width: "fit-content" }, ...o, children: [
|
|
132
|
+
Y2(t) ? t : /* @__PURE__ */ n("label", { children: t }),
|
|
133
|
+
e && /* @__PURE__ */ n("span", { css: { color: p.palette.red["6s"] }, children: " *" })
|
|
134
|
+
] }), rr = () => {
|
|
135
|
+
const [e, t] = H(0), [o, r] = H(!1), i = de(null), s = (f, d) => {
|
|
136
|
+
if (!i.current) return 0;
|
|
137
|
+
const h = i.current.getBoundingClientRect(), u = h.left + h.width / 2, m = h.top + h.height / 2, w = f - u, C = d - m;
|
|
138
|
+
return (Math.atan2(C, w) * (180 / Math.PI) + 360) % 360;
|
|
139
|
+
};
|
|
140
|
+
return /* @__PURE__ */ g(
|
|
141
|
+
"div",
|
|
142
|
+
{
|
|
143
|
+
style: {
|
|
144
|
+
textAlign: "center",
|
|
145
|
+
marginTop: "50px",
|
|
146
|
+
userSelect: "none"
|
|
147
|
+
},
|
|
148
|
+
onMouseMove: (f) => {
|
|
149
|
+
if (o) {
|
|
150
|
+
const d = s(f.clientX, f.clientY);
|
|
151
|
+
t(Math.round(d));
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
onMouseUp: () => {
|
|
155
|
+
r(!1);
|
|
156
|
+
},
|
|
157
|
+
children: [
|
|
158
|
+
/* @__PURE__ */ g("h3", { children: [
|
|
159
|
+
"Chọn độ: ",
|
|
160
|
+
e,
|
|
161
|
+
"°"
|
|
162
|
+
] }),
|
|
163
|
+
/* @__PURE__ */ g(
|
|
164
|
+
"svg",
|
|
165
|
+
{
|
|
166
|
+
ref: i,
|
|
167
|
+
width: "200",
|
|
168
|
+
height: "200",
|
|
169
|
+
viewBox: "0 0 200 200",
|
|
170
|
+
onMouseDown: (f) => {
|
|
171
|
+
r(!0);
|
|
172
|
+
const d = s(f.clientX, f.clientY);
|
|
173
|
+
t(Math.round(d));
|
|
174
|
+
},
|
|
175
|
+
style: { cursor: "grab" },
|
|
176
|
+
children: [
|
|
177
|
+
/* @__PURE__ */ n("circle", { cx: "100", cy: "100", r: "90", fill: "#EAEAEA", stroke: "#CCC", strokeWidth: "2" }),
|
|
178
|
+
/* @__PURE__ */ n(
|
|
179
|
+
"line",
|
|
180
|
+
{
|
|
181
|
+
x1: "100",
|
|
182
|
+
y1: "100",
|
|
183
|
+
x2: 100 + 90 * Math.cos((e - 90) * (Math.PI / 180)),
|
|
184
|
+
y2: 100 + 90 * Math.sin((e - 90) * (Math.PI / 180)),
|
|
185
|
+
stroke: "#007BFF",
|
|
186
|
+
strokeWidth: "2"
|
|
187
|
+
}
|
|
188
|
+
),
|
|
189
|
+
/* @__PURE__ */ n(
|
|
190
|
+
"circle",
|
|
191
|
+
{
|
|
192
|
+
cx: 100 + 90 * Math.cos((e - 90) * (Math.PI / 180)),
|
|
193
|
+
cy: 100 + 90 * Math.sin((e - 90) * (Math.PI / 180)),
|
|
194
|
+
r: "8",
|
|
195
|
+
fill: "#007BFF",
|
|
196
|
+
style: { cursor: "grab" }
|
|
197
|
+
}
|
|
198
|
+
)
|
|
199
|
+
]
|
|
200
|
+
}
|
|
201
|
+
)
|
|
202
|
+
]
|
|
203
|
+
}
|
|
204
|
+
);
|
|
205
|
+
};
|
|
206
|
+
function t1(e) {
|
|
75
207
|
if (e.sheet)
|
|
76
208
|
return e.sheet;
|
|
77
209
|
for (var t = 0; t < document.styleSheets.length; t++)
|
|
78
210
|
if (document.styleSheets[t].ownerNode === e)
|
|
79
211
|
return document.styleSheets[t];
|
|
80
212
|
}
|
|
81
|
-
function
|
|
213
|
+
function n1(e) {
|
|
82
214
|
var t = document.createElement("style");
|
|
83
215
|
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
216
|
}
|
|
85
|
-
var
|
|
217
|
+
var r1 = /* @__PURE__ */ (function() {
|
|
86
218
|
function e(o) {
|
|
87
|
-
var
|
|
219
|
+
var r = this;
|
|
88
220
|
this._insertTag = function(i) {
|
|
89
221
|
var s;
|
|
90
|
-
|
|
222
|
+
r.tags.length === 0 ? r.insertionPoint ? s = r.insertionPoint.nextSibling : r.prepend ? s = r.container.firstChild : s = r.before : s = r.tags[r.tags.length - 1].nextSibling, r.container.insertBefore(i, s), r.tags.push(i);
|
|
91
223
|
}, this.isSpeedy = o.speedy === void 0 ? !0 : o.speedy, this.tags = [], this.ctr = 0, this.nonce = o.nonce, this.key = o.key, this.container = o.container, this.prepend = o.prepend, this.insertionPoint = o.insertionPoint, this.before = null;
|
|
92
224
|
}
|
|
93
225
|
var t = e.prototype;
|
|
94
|
-
return t.hydrate = function(
|
|
95
|
-
|
|
96
|
-
}, t.insert = function(
|
|
97
|
-
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(
|
|
226
|
+
return t.hydrate = function(r) {
|
|
227
|
+
r.forEach(this._insertTag);
|
|
228
|
+
}, t.insert = function(r) {
|
|
229
|
+
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(n1(this));
|
|
98
230
|
var i = this.tags[this.tags.length - 1];
|
|
99
231
|
if (this.isSpeedy) {
|
|
100
|
-
var s =
|
|
232
|
+
var s = t1(i);
|
|
101
233
|
try {
|
|
102
|
-
s.insertRule(
|
|
234
|
+
s.insertRule(r, s.cssRules.length);
|
|
103
235
|
} catch {
|
|
104
236
|
}
|
|
105
237
|
} else
|
|
106
|
-
i.appendChild(document.createTextNode(
|
|
238
|
+
i.appendChild(document.createTextNode(r));
|
|
107
239
|
this.ctr++;
|
|
108
240
|
}, t.flush = function() {
|
|
109
|
-
this.tags.forEach(function(
|
|
241
|
+
this.tags.forEach(function(r) {
|
|
110
242
|
var i;
|
|
111
|
-
return (i =
|
|
243
|
+
return (i = r.parentNode) == null ? void 0 : i.removeChild(r);
|
|
112
244
|
}), this.tags = [], this.ctr = 0;
|
|
113
245
|
}, e;
|
|
114
|
-
})(),
|
|
115
|
-
function
|
|
116
|
-
return
|
|
246
|
+
})(), A = "-ms-", le = "-moz-", v = "-webkit-", g2 = "comm", Me = "rule", Le = "decl", o1 = "@import", f2 = "@keyframes", s1 = "@layer", i1 = Math.abs, he = String.fromCharCode, a1 = Object.assign;
|
|
247
|
+
function c1(e, t) {
|
|
248
|
+
return N(e, 0) ^ 45 ? (((t << 2 ^ N(e, 0)) << 2 ^ N(e, 1)) << 2 ^ N(e, 2)) << 2 ^ N(e, 3) : 0;
|
|
117
249
|
}
|
|
118
|
-
function
|
|
250
|
+
function w2(e) {
|
|
119
251
|
return e.trim();
|
|
120
252
|
}
|
|
121
|
-
function
|
|
253
|
+
function l1(e, t) {
|
|
122
254
|
return (e = t.exec(e)) ? e[0] : e;
|
|
123
255
|
}
|
|
124
|
-
function
|
|
256
|
+
function x(e, t, o) {
|
|
125
257
|
return e.replace(t, o);
|
|
126
258
|
}
|
|
127
|
-
function
|
|
259
|
+
function we(e, t) {
|
|
128
260
|
return e.indexOf(t);
|
|
129
261
|
}
|
|
130
|
-
function
|
|
262
|
+
function N(e, t) {
|
|
131
263
|
return e.charCodeAt(t) | 0;
|
|
132
264
|
}
|
|
133
|
-
function
|
|
265
|
+
function Q(e, t, o) {
|
|
134
266
|
return e.slice(t, o);
|
|
135
267
|
}
|
|
136
|
-
function
|
|
268
|
+
function P(e) {
|
|
137
269
|
return e.length;
|
|
138
270
|
}
|
|
139
|
-
function
|
|
271
|
+
function Ie(e) {
|
|
140
272
|
return e.length;
|
|
141
273
|
}
|
|
142
|
-
function
|
|
274
|
+
function re(e, t) {
|
|
143
275
|
return t.push(e), e;
|
|
144
276
|
}
|
|
145
|
-
function
|
|
277
|
+
function d1(e, t) {
|
|
146
278
|
return e.map(t).join("");
|
|
147
279
|
}
|
|
148
|
-
var
|
|
149
|
-
function
|
|
150
|
-
return { value: e, root: t, parent: o, type:
|
|
280
|
+
var ue = 1, G = 1, m2 = 0, R = 0, T = 0, Y = "";
|
|
281
|
+
function pe(e, t, o, r, i, s, c) {
|
|
282
|
+
return { value: e, root: t, parent: o, type: r, props: i, children: s, line: ue, column: G, length: c, return: "" };
|
|
151
283
|
}
|
|
152
|
-
function
|
|
153
|
-
return
|
|
284
|
+
function X(e, t) {
|
|
285
|
+
return a1(pe("", null, null, "", null, null, 0), e, { length: -e.length }, t);
|
|
154
286
|
}
|
|
155
|
-
function
|
|
156
|
-
return
|
|
287
|
+
function h1() {
|
|
288
|
+
return T;
|
|
157
289
|
}
|
|
158
|
-
function
|
|
159
|
-
return
|
|
290
|
+
function u1() {
|
|
291
|
+
return T = R > 0 ? N(Y, --R) : 0, G--, T === 10 && (G = 1, ue--), T;
|
|
160
292
|
}
|
|
161
|
-
function
|
|
162
|
-
return
|
|
293
|
+
function V() {
|
|
294
|
+
return T = R < m2 ? N(Y, R++) : 0, G++, T === 10 && (G = 1, ue++), T;
|
|
163
295
|
}
|
|
164
|
-
function
|
|
165
|
-
return
|
|
296
|
+
function D() {
|
|
297
|
+
return N(Y, R);
|
|
166
298
|
}
|
|
167
|
-
function
|
|
168
|
-
return
|
|
299
|
+
function oe() {
|
|
300
|
+
return R;
|
|
169
301
|
}
|
|
170
|
-
function
|
|
171
|
-
return
|
|
302
|
+
function te(e, t) {
|
|
303
|
+
return Q(Y, e, t);
|
|
172
304
|
}
|
|
173
|
-
function
|
|
305
|
+
function ee(e) {
|
|
174
306
|
switch (e) {
|
|
175
307
|
// \0 \t \n \r \s whitespace token
|
|
176
308
|
case 0:
|
|
@@ -208,254 +340,254 @@ function Y(e) {
|
|
|
208
340
|
}
|
|
209
341
|
return 0;
|
|
210
342
|
}
|
|
211
|
-
function
|
|
212
|
-
return
|
|
343
|
+
function k2(e) {
|
|
344
|
+
return ue = G = 1, m2 = P(Y = e), R = 0, [];
|
|
213
345
|
}
|
|
214
|
-
function
|
|
215
|
-
return
|
|
346
|
+
function v2(e) {
|
|
347
|
+
return Y = "", e;
|
|
216
348
|
}
|
|
217
|
-
function
|
|
218
|
-
return
|
|
349
|
+
function se(e) {
|
|
350
|
+
return w2(te(R - 1, me(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
219
351
|
}
|
|
220
|
-
function
|
|
221
|
-
for (; (
|
|
222
|
-
|
|
223
|
-
return
|
|
352
|
+
function p1(e) {
|
|
353
|
+
for (; (T = D()) && T < 33; )
|
|
354
|
+
V();
|
|
355
|
+
return ee(e) > 2 || ee(T) > 3 ? "" : " ";
|
|
224
356
|
}
|
|
225
|
-
function
|
|
226
|
-
for (; --t &&
|
|
357
|
+
function C1(e, t) {
|
|
358
|
+
for (; --t && V() && !(T < 48 || T > 102 || T > 57 && T < 65 || T > 70 && T < 97); )
|
|
227
359
|
;
|
|
228
|
-
return
|
|
360
|
+
return te(e, oe() + (t < 6 && D() == 32 && V() == 32));
|
|
229
361
|
}
|
|
230
|
-
function
|
|
231
|
-
for (;
|
|
232
|
-
switch (
|
|
362
|
+
function me(e) {
|
|
363
|
+
for (; V(); )
|
|
364
|
+
switch (T) {
|
|
233
365
|
// ] ) " '
|
|
234
366
|
case e:
|
|
235
|
-
return
|
|
367
|
+
return R;
|
|
236
368
|
// " '
|
|
237
369
|
case 34:
|
|
238
370
|
case 39:
|
|
239
|
-
e !== 34 && e !== 39 &&
|
|
371
|
+
e !== 34 && e !== 39 && me(T);
|
|
240
372
|
break;
|
|
241
373
|
// (
|
|
242
374
|
case 40:
|
|
243
|
-
e === 41 &&
|
|
375
|
+
e === 41 && me(e);
|
|
244
376
|
break;
|
|
245
377
|
// \
|
|
246
378
|
case 92:
|
|
247
|
-
|
|
379
|
+
V();
|
|
248
380
|
break;
|
|
249
381
|
}
|
|
250
|
-
return
|
|
382
|
+
return R;
|
|
251
383
|
}
|
|
252
|
-
function
|
|
253
|
-
for (;
|
|
254
|
-
if (e +
|
|
384
|
+
function g1(e, t) {
|
|
385
|
+
for (; V() && e + T !== 57; )
|
|
386
|
+
if (e + T === 84 && D() === 47)
|
|
255
387
|
break;
|
|
256
|
-
return "/*" +
|
|
388
|
+
return "/*" + te(t, R - 1) + "*" + he(e === 47 ? e : V());
|
|
257
389
|
}
|
|
258
|
-
function
|
|
259
|
-
for (; !
|
|
260
|
-
|
|
261
|
-
return
|
|
390
|
+
function f1(e) {
|
|
391
|
+
for (; !ee(D()); )
|
|
392
|
+
V();
|
|
393
|
+
return te(e, R);
|
|
262
394
|
}
|
|
263
|
-
function
|
|
264
|
-
return
|
|
395
|
+
function w1(e) {
|
|
396
|
+
return v2(ie("", null, null, null, [""], e = k2(e), 0, [0], e));
|
|
265
397
|
}
|
|
266
|
-
function
|
|
267
|
-
for (var
|
|
268
|
-
switch (
|
|
398
|
+
function ie(e, t, o, r, i, s, c, a, l) {
|
|
399
|
+
for (var f = 0, d = 0, h = c, u = 0, m = 0, w = 0, C = 1, L = 1, b = 1, I = 0, B = "", ne = i, j = s, W = r, y = B; L; )
|
|
400
|
+
switch (w = I, I = V()) {
|
|
269
401
|
// (
|
|
270
402
|
case 40:
|
|
271
|
-
if (
|
|
272
|
-
|
|
403
|
+
if (w != 108 && N(y, h - 1) == 58) {
|
|
404
|
+
we(y += x(se(I), "&", "&\f"), "&\f") != -1 && (b = -1);
|
|
273
405
|
break;
|
|
274
406
|
}
|
|
275
407
|
// " ' [
|
|
276
408
|
case 34:
|
|
277
409
|
case 39:
|
|
278
410
|
case 91:
|
|
279
|
-
|
|
411
|
+
y += se(I);
|
|
280
412
|
break;
|
|
281
413
|
// \t \n \r \s
|
|
282
414
|
case 9:
|
|
283
415
|
case 10:
|
|
284
416
|
case 13:
|
|
285
417
|
case 32:
|
|
286
|
-
|
|
418
|
+
y += p1(w);
|
|
287
419
|
break;
|
|
288
420
|
// \
|
|
289
421
|
case 92:
|
|
290
|
-
|
|
422
|
+
y += C1(oe() - 1, 7);
|
|
291
423
|
continue;
|
|
292
424
|
// /
|
|
293
425
|
case 47:
|
|
294
|
-
switch (
|
|
426
|
+
switch (D()) {
|
|
295
427
|
case 42:
|
|
296
428
|
case 47:
|
|
297
|
-
|
|
429
|
+
re(m1(g1(V(), oe()), t, o), l);
|
|
298
430
|
break;
|
|
299
431
|
default:
|
|
300
|
-
|
|
432
|
+
y += "/";
|
|
301
433
|
}
|
|
302
434
|
break;
|
|
303
435
|
// {
|
|
304
|
-
case 123 *
|
|
305
|
-
|
|
436
|
+
case 123 * C:
|
|
437
|
+
a[f++] = P(y) * b;
|
|
306
438
|
// } ; \0
|
|
307
|
-
case 125 *
|
|
439
|
+
case 125 * C:
|
|
308
440
|
case 59:
|
|
309
441
|
case 0:
|
|
310
|
-
switch (
|
|
442
|
+
switch (I) {
|
|
311
443
|
// \0 }
|
|
312
444
|
case 0:
|
|
313
445
|
case 125:
|
|
314
|
-
|
|
446
|
+
L = 0;
|
|
315
447
|
// ;
|
|
316
|
-
case 59 +
|
|
317
|
-
|
|
448
|
+
case 59 + d:
|
|
449
|
+
b == -1 && (y = x(y, /\f/g, "")), m > 0 && P(y) - h && re(m > 32 ? Ve(y + ";", r, o, h - 1) : Ve(x(y, " ", "") + ";", r, o, h - 2), l);
|
|
318
450
|
break;
|
|
319
451
|
// @ ;
|
|
320
452
|
case 59:
|
|
321
|
-
|
|
453
|
+
y += ";";
|
|
322
454
|
// { rule/at-rule
|
|
323
455
|
default:
|
|
324
|
-
if (
|
|
325
|
-
if (
|
|
326
|
-
|
|
456
|
+
if (re(W = Re(y, t, o, f, d, i, a, B, ne = [], j = [], h), s), I === 123)
|
|
457
|
+
if (d === 0)
|
|
458
|
+
ie(y, t, W, W, ne, s, h, a, j);
|
|
327
459
|
else
|
|
328
|
-
switch (
|
|
460
|
+
switch (u === 99 && N(y, 3) === 110 ? 100 : u) {
|
|
329
461
|
// d l m s
|
|
330
462
|
case 100:
|
|
331
463
|
case 108:
|
|
332
464
|
case 109:
|
|
333
465
|
case 115:
|
|
334
|
-
|
|
466
|
+
ie(e, W, W, r && re(Re(e, W, W, 0, 0, i, a, B, i, ne = [], h), j), i, j, h, a, r ? ne : j);
|
|
335
467
|
break;
|
|
336
468
|
default:
|
|
337
|
-
|
|
469
|
+
ie(y, W, W, W, [""], j, 0, a, j);
|
|
338
470
|
}
|
|
339
471
|
}
|
|
340
|
-
|
|
472
|
+
f = d = m = 0, C = b = 1, B = y = "", h = c;
|
|
341
473
|
break;
|
|
342
474
|
// :
|
|
343
475
|
case 58:
|
|
344
|
-
|
|
476
|
+
h = 1 + P(y), m = w;
|
|
345
477
|
default:
|
|
346
|
-
if (
|
|
347
|
-
if (
|
|
348
|
-
--
|
|
349
|
-
else if (
|
|
478
|
+
if (C < 1) {
|
|
479
|
+
if (I == 123)
|
|
480
|
+
--C;
|
|
481
|
+
else if (I == 125 && C++ == 0 && u1() == 125)
|
|
350
482
|
continue;
|
|
351
483
|
}
|
|
352
|
-
switch (
|
|
484
|
+
switch (y += he(I), I * C) {
|
|
353
485
|
// &
|
|
354
486
|
case 38:
|
|
355
|
-
|
|
487
|
+
b = d > 0 ? 1 : (y += "\f", -1);
|
|
356
488
|
break;
|
|
357
489
|
// ,
|
|
358
490
|
case 44:
|
|
359
|
-
|
|
491
|
+
a[f++] = (P(y) - 1) * b, b = 1;
|
|
360
492
|
break;
|
|
361
493
|
// @
|
|
362
494
|
case 64:
|
|
363
|
-
|
|
495
|
+
D() === 45 && (y += se(V())), u = D(), d = h = P(B = y += f1(oe())), I++;
|
|
364
496
|
break;
|
|
365
497
|
// -
|
|
366
498
|
case 45:
|
|
367
|
-
|
|
499
|
+
w === 45 && P(y) == 2 && (C = 0);
|
|
368
500
|
}
|
|
369
501
|
}
|
|
370
502
|
return s;
|
|
371
503
|
}
|
|
372
|
-
function
|
|
373
|
-
for (var
|
|
374
|
-
for (var
|
|
375
|
-
(
|
|
376
|
-
return
|
|
504
|
+
function Re(e, t, o, r, i, s, c, a, l, f, d) {
|
|
505
|
+
for (var h = i - 1, u = i === 0 ? s : [""], m = Ie(u), w = 0, C = 0, L = 0; w < r; ++w)
|
|
506
|
+
for (var b = 0, I = Q(e, h + 1, h = i1(C = c[w])), B = e; b < m; ++b)
|
|
507
|
+
(B = w2(C > 0 ? u[b] + " " + I : x(I, /&\f/g, u[b]))) && (l[L++] = B);
|
|
508
|
+
return pe(e, t, o, i === 0 ? Me : a, l, f, d);
|
|
377
509
|
}
|
|
378
|
-
function
|
|
379
|
-
return
|
|
510
|
+
function m1(e, t, o) {
|
|
511
|
+
return pe(e, t, o, g2, he(h1()), Q(e, 2, -2), 0);
|
|
380
512
|
}
|
|
381
|
-
function
|
|
382
|
-
return
|
|
513
|
+
function Ve(e, t, o, r) {
|
|
514
|
+
return pe(e, t, o, Le, Q(e, 0, r), Q(e, r + 1, -1), r);
|
|
383
515
|
}
|
|
384
|
-
function
|
|
385
|
-
for (var o = "",
|
|
516
|
+
function $(e, t) {
|
|
517
|
+
for (var o = "", r = Ie(e), i = 0; i < r; i++)
|
|
386
518
|
o += t(e[i], i, e, t) || "";
|
|
387
519
|
return o;
|
|
388
520
|
}
|
|
389
|
-
function
|
|
521
|
+
function k1(e, t, o, r) {
|
|
390
522
|
switch (e.type) {
|
|
391
|
-
case
|
|
523
|
+
case s1:
|
|
392
524
|
if (e.children.length) break;
|
|
393
|
-
case
|
|
394
|
-
case
|
|
525
|
+
case o1:
|
|
526
|
+
case Le:
|
|
395
527
|
return e.return = e.return || e.value;
|
|
396
|
-
case oe:
|
|
397
|
-
return "";
|
|
398
|
-
case se:
|
|
399
|
-
return e.return = e.value + "{" + O(e.children, n) + "}";
|
|
400
528
|
case g2:
|
|
529
|
+
return "";
|
|
530
|
+
case f2:
|
|
531
|
+
return e.return = e.value + "{" + $(e.children, r) + "}";
|
|
532
|
+
case Me:
|
|
401
533
|
e.value = e.props.join(",");
|
|
402
534
|
}
|
|
403
|
-
return
|
|
535
|
+
return P(o = $(e.children, r)) ? e.return = e.value + "{" + o + "}" : "";
|
|
404
536
|
}
|
|
405
|
-
function
|
|
406
|
-
var t =
|
|
407
|
-
return function(o,
|
|
408
|
-
for (var
|
|
409
|
-
|
|
410
|
-
return
|
|
537
|
+
function v1(e) {
|
|
538
|
+
var t = Ie(e);
|
|
539
|
+
return function(o, r, i, s) {
|
|
540
|
+
for (var c = "", a = 0; a < t; a++)
|
|
541
|
+
c += e[a](o, r, i, s) || "";
|
|
542
|
+
return c;
|
|
411
543
|
};
|
|
412
544
|
}
|
|
413
|
-
function
|
|
545
|
+
function x1(e) {
|
|
414
546
|
return function(t) {
|
|
415
547
|
t.root || (t = t.return) && e(t);
|
|
416
548
|
};
|
|
417
549
|
}
|
|
418
|
-
var
|
|
419
|
-
for (var i = 0, s = 0; i = s, s =
|
|
420
|
-
|
|
421
|
-
return
|
|
422
|
-
},
|
|
423
|
-
var
|
|
550
|
+
var b1 = function(t, o, r) {
|
|
551
|
+
for (var i = 0, s = 0; i = s, s = D(), i === 38 && s === 12 && (o[r] = 1), !ee(s); )
|
|
552
|
+
V();
|
|
553
|
+
return te(t, R);
|
|
554
|
+
}, y1 = function(t, o) {
|
|
555
|
+
var r = -1, i = 44;
|
|
424
556
|
do
|
|
425
|
-
switch (
|
|
557
|
+
switch (ee(i)) {
|
|
426
558
|
case 0:
|
|
427
|
-
i === 38 &&
|
|
559
|
+
i === 38 && D() === 12 && (o[r] = 1), t[r] += b1(R - 1, o, r);
|
|
428
560
|
break;
|
|
429
561
|
case 2:
|
|
430
|
-
t[
|
|
562
|
+
t[r] += se(i);
|
|
431
563
|
break;
|
|
432
564
|
case 4:
|
|
433
565
|
if (i === 44) {
|
|
434
|
-
t[++
|
|
566
|
+
t[++r] = D() === 58 ? "&\f" : "", o[r] = t[r].length;
|
|
435
567
|
break;
|
|
436
568
|
}
|
|
437
569
|
// fallthrough
|
|
438
570
|
default:
|
|
439
|
-
t[
|
|
571
|
+
t[r] += he(i);
|
|
440
572
|
}
|
|
441
|
-
while (i =
|
|
573
|
+
while (i = V());
|
|
442
574
|
return t;
|
|
443
|
-
},
|
|
444
|
-
return
|
|
445
|
-
},
|
|
575
|
+
}, M1 = function(t, o) {
|
|
576
|
+
return v2(y1(k2(t), o));
|
|
577
|
+
}, We = /* @__PURE__ */ new WeakMap(), L1 = function(t) {
|
|
446
578
|
if (!(t.type !== "rule" || !t.parent || // positive .length indicates that this rule contains pseudo
|
|
447
579
|
// negative .length indicates that this rule has been already prefixed
|
|
448
580
|
t.length < 1)) {
|
|
449
|
-
for (var o = t.value,
|
|
450
|
-
if (
|
|
451
|
-
if (!(t.props.length === 1 && o.charCodeAt(0) !== 58 && !
|
|
452
|
-
|
|
453
|
-
for (var s = [],
|
|
454
|
-
for (var
|
|
455
|
-
t.props[
|
|
581
|
+
for (var o = t.value, r = t.parent, i = t.column === r.column && t.line === r.line; r.type !== "rule"; )
|
|
582
|
+
if (r = r.parent, !r) return;
|
|
583
|
+
if (!(t.props.length === 1 && o.charCodeAt(0) !== 58 && !We.get(r)) && !i) {
|
|
584
|
+
We.set(t, !0);
|
|
585
|
+
for (var s = [], c = M1(o, s), a = r.props, l = 0, f = 0; l < c.length; l++)
|
|
586
|
+
for (var d = 0; d < a.length; d++, f++)
|
|
587
|
+
t.props[f] = s[l] ? c[l].replace(/&\f/g, a[d]) : a[d] + " " + c[l];
|
|
456
588
|
}
|
|
457
589
|
}
|
|
458
|
-
},
|
|
590
|
+
}, I1 = function(t) {
|
|
459
591
|
if (t.type === "decl") {
|
|
460
592
|
var o = t.value;
|
|
461
593
|
// charcode for l
|
|
@@ -463,11 +595,11 @@ var Y1 = function(t, o, n) {
|
|
|
463
595
|
o.charCodeAt(2) === 98 && (t.return = "", t.value = "");
|
|
464
596
|
}
|
|
465
597
|
};
|
|
466
|
-
function
|
|
467
|
-
switch (
|
|
598
|
+
function x2(e, t) {
|
|
599
|
+
switch (c1(e, t)) {
|
|
468
600
|
// color-adjust
|
|
469
601
|
case 5103:
|
|
470
|
-
return
|
|
602
|
+
return v + "print-" + e + e;
|
|
471
603
|
// animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
|
|
472
604
|
case 5737:
|
|
473
605
|
case 4201:
|
|
@@ -497,58 +629,58 @@ function de(e, t) {
|
|
|
497
629
|
case 5365:
|
|
498
630
|
case 5621:
|
|
499
631
|
case 3829:
|
|
500
|
-
return
|
|
632
|
+
return v + e + e;
|
|
501
633
|
// appearance, user-select, transform, hyphens, text-size-adjust
|
|
502
634
|
case 5349:
|
|
503
635
|
case 4246:
|
|
504
636
|
case 4810:
|
|
505
637
|
case 6968:
|
|
506
638
|
case 2756:
|
|
507
|
-
return
|
|
639
|
+
return v + e + le + e + A + e + e;
|
|
508
640
|
// flex, flex-direction
|
|
509
641
|
case 6828:
|
|
510
642
|
case 4268:
|
|
511
|
-
return
|
|
643
|
+
return v + e + A + e + e;
|
|
512
644
|
// order
|
|
513
645
|
case 6165:
|
|
514
|
-
return
|
|
646
|
+
return v + e + A + "flex-" + e + e;
|
|
515
647
|
// align-items
|
|
516
648
|
case 5187:
|
|
517
|
-
return
|
|
649
|
+
return v + e + x(e, /(\w+).+(:[^]+)/, v + "box-$1$2" + A + "flex-$1$2") + e;
|
|
518
650
|
// align-self
|
|
519
651
|
case 5443:
|
|
520
|
-
return
|
|
652
|
+
return v + e + A + "flex-item-" + x(e, /flex-|-self/, "") + e;
|
|
521
653
|
// align-content
|
|
522
654
|
case 4675:
|
|
523
|
-
return
|
|
655
|
+
return v + e + A + "flex-line-pack" + x(e, /align-content|flex-|-self/, "") + e;
|
|
524
656
|
// flex-shrink
|
|
525
657
|
case 5548:
|
|
526
|
-
return
|
|
658
|
+
return v + e + A + x(e, "shrink", "negative") + e;
|
|
527
659
|
// flex-basis
|
|
528
660
|
case 5292:
|
|
529
|
-
return
|
|
661
|
+
return v + e + A + x(e, "basis", "preferred-size") + e;
|
|
530
662
|
// flex-grow
|
|
531
663
|
case 6060:
|
|
532
|
-
return
|
|
664
|
+
return v + "box-" + x(e, "-grow", "") + v + e + A + x(e, "grow", "positive") + e;
|
|
533
665
|
// transition
|
|
534
666
|
case 4554:
|
|
535
|
-
return
|
|
667
|
+
return v + x(e, /([^-])(transform)/g, "$1" + v + "$2") + e;
|
|
536
668
|
// cursor
|
|
537
669
|
case 6187:
|
|
538
|
-
return
|
|
670
|
+
return x(x(x(e, /(zoom-|grab)/, v + "$1"), /(image-set)/, v + "$1"), e, "") + e;
|
|
539
671
|
// background, background-image
|
|
540
672
|
case 5495:
|
|
541
673
|
case 3959:
|
|
542
|
-
return
|
|
674
|
+
return x(e, /(image-set\([^]*)/, v + "$1$`$1");
|
|
543
675
|
// justify-content
|
|
544
676
|
case 4968:
|
|
545
|
-
return
|
|
677
|
+
return x(x(e, /(.+:)(flex-)?(.*)/, v + "box-pack:$3" + A + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + v + e + e;
|
|
546
678
|
// (margin|padding)-inline-(start|end)
|
|
547
679
|
case 4095:
|
|
548
680
|
case 3583:
|
|
549
681
|
case 4068:
|
|
550
682
|
case 2532:
|
|
551
|
-
return
|
|
683
|
+
return x(e, /(.+)-inline(.+)/, v + "$1$2") + e;
|
|
552
684
|
// (min|max)?(width|height|inline-size|block-size)
|
|
553
685
|
case 8116:
|
|
554
686
|
case 7059:
|
|
@@ -562,116 +694,116 @@ function de(e, t) {
|
|
|
562
694
|
case 5789:
|
|
563
695
|
case 5021:
|
|
564
696
|
case 4765:
|
|
565
|
-
if (
|
|
697
|
+
if (P(e) - 1 - t > 6) switch (N(e, t + 1)) {
|
|
566
698
|
// (m)ax-content, (m)in-content
|
|
567
699
|
case 109:
|
|
568
|
-
if (
|
|
700
|
+
if (N(e, t + 4) !== 45) break;
|
|
569
701
|
// (f)ill-available, (f)it-content
|
|
570
702
|
case 102:
|
|
571
|
-
return
|
|
703
|
+
return x(e, /(.+:)(.+)-([^]+)/, "$1" + v + "$2-$3$1" + le + (N(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
572
704
|
// (s)tretch
|
|
573
705
|
case 115:
|
|
574
|
-
return ~
|
|
706
|
+
return ~we(e, "stretch") ? x2(x(e, "stretch", "fill-available"), t) + e : e;
|
|
575
707
|
}
|
|
576
708
|
break;
|
|
577
709
|
// position: sticky
|
|
578
710
|
case 4949:
|
|
579
|
-
if (
|
|
711
|
+
if (N(e, t + 1) !== 115) break;
|
|
580
712
|
// display: (flex|inline-flex)
|
|
581
713
|
case 6444:
|
|
582
|
-
switch (
|
|
714
|
+
switch (N(e, P(e) - 3 - (~we(e, "!important") && 10))) {
|
|
583
715
|
// stic(k)y
|
|
584
716
|
case 107:
|
|
585
|
-
return
|
|
717
|
+
return x(e, ":", ":" + v) + e;
|
|
586
718
|
// (inline-)?fl(e)x
|
|
587
719
|
case 101:
|
|
588
|
-
return
|
|
720
|
+
return x(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + v + (N(e, 14) === 45 ? "inline-" : "") + "box$3$1" + v + "$2$3$1" + A + "$2box$3") + e;
|
|
589
721
|
}
|
|
590
722
|
break;
|
|
591
723
|
// writing-mode
|
|
592
724
|
case 5936:
|
|
593
|
-
switch (
|
|
725
|
+
switch (N(e, t + 11)) {
|
|
594
726
|
// vertical-l(r)
|
|
595
727
|
case 114:
|
|
596
|
-
return
|
|
728
|
+
return v + e + A + x(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
|
|
597
729
|
// vertical-r(l)
|
|
598
730
|
case 108:
|
|
599
|
-
return
|
|
731
|
+
return v + e + A + x(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
|
|
600
732
|
// horizontal(-)tb
|
|
601
733
|
case 45:
|
|
602
|
-
return
|
|
734
|
+
return v + e + A + x(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
|
|
603
735
|
}
|
|
604
|
-
return
|
|
736
|
+
return v + e + A + e + e;
|
|
605
737
|
}
|
|
606
738
|
return e;
|
|
607
739
|
}
|
|
608
|
-
var
|
|
740
|
+
var T1 = function(t, o, r, i) {
|
|
609
741
|
if (t.length > -1 && !t.return) switch (t.type) {
|
|
610
|
-
case
|
|
611
|
-
t.return =
|
|
742
|
+
case Le:
|
|
743
|
+
t.return = x2(t.value, t.length);
|
|
612
744
|
break;
|
|
613
|
-
case
|
|
614
|
-
return
|
|
615
|
-
value:
|
|
745
|
+
case f2:
|
|
746
|
+
return $([X(t, {
|
|
747
|
+
value: x(t.value, "@", "@" + v)
|
|
616
748
|
})], i);
|
|
617
|
-
case
|
|
618
|
-
if (t.length) return
|
|
619
|
-
switch (
|
|
749
|
+
case Me:
|
|
750
|
+
if (t.length) return d1(t.props, function(s) {
|
|
751
|
+
switch (l1(s, /(::plac\w+|:read-\w+)/)) {
|
|
620
752
|
// :read-(only|write)
|
|
621
753
|
case ":read-only":
|
|
622
754
|
case ":read-write":
|
|
623
|
-
return
|
|
624
|
-
props: [
|
|
755
|
+
return $([X(t, {
|
|
756
|
+
props: [x(s, /:(read-\w+)/, ":" + le + "$1")]
|
|
625
757
|
})], i);
|
|
626
758
|
// :placeholder
|
|
627
759
|
case "::placeholder":
|
|
628
|
-
return
|
|
629
|
-
props: [
|
|
630
|
-
}),
|
|
631
|
-
props: [
|
|
632
|
-
}),
|
|
633
|
-
props: [
|
|
760
|
+
return $([X(t, {
|
|
761
|
+
props: [x(s, /:(plac\w+)/, ":" + v + "input-$1")]
|
|
762
|
+
}), X(t, {
|
|
763
|
+
props: [x(s, /:(plac\w+)/, ":" + le + "$1")]
|
|
764
|
+
}), X(t, {
|
|
765
|
+
props: [x(s, /:(plac\w+)/, A + "input-$1")]
|
|
634
766
|
})], i);
|
|
635
767
|
}
|
|
636
768
|
return "";
|
|
637
769
|
});
|
|
638
770
|
}
|
|
639
|
-
},
|
|
771
|
+
}, S1 = [T1], N1 = function(t) {
|
|
640
772
|
var o = t.key;
|
|
641
773
|
if (o === "css") {
|
|
642
|
-
var
|
|
643
|
-
Array.prototype.forEach.call(
|
|
644
|
-
var
|
|
645
|
-
|
|
774
|
+
var r = document.querySelectorAll("style[data-emotion]:not([data-s])");
|
|
775
|
+
Array.prototype.forEach.call(r, function(C) {
|
|
776
|
+
var L = C.getAttribute("data-emotion");
|
|
777
|
+
L.indexOf(" ") !== -1 && (document.head.appendChild(C), C.setAttribute("data-s", ""));
|
|
646
778
|
});
|
|
647
779
|
}
|
|
648
|
-
var i = t.stylisPlugins ||
|
|
649
|
-
|
|
780
|
+
var i = t.stylisPlugins || S1, s = {}, c, a = [];
|
|
781
|
+
c = t.container || document.head, Array.prototype.forEach.call(
|
|
650
782
|
// this means we will ignore elements which don't have a space in them which
|
|
651
783
|
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
|
652
784
|
document.querySelectorAll('style[data-emotion^="' + o + ' "]'),
|
|
653
|
-
function(
|
|
654
|
-
for (var
|
|
655
|
-
s[
|
|
656
|
-
|
|
785
|
+
function(C) {
|
|
786
|
+
for (var L = C.getAttribute("data-emotion").split(" "), b = 1; b < L.length; b++)
|
|
787
|
+
s[L[b]] = !0;
|
|
788
|
+
a.push(C);
|
|
657
789
|
}
|
|
658
790
|
);
|
|
659
|
-
var
|
|
791
|
+
var l, f = [L1, I1];
|
|
660
792
|
{
|
|
661
|
-
var
|
|
662
|
-
|
|
663
|
-
})],
|
|
664
|
-
return
|
|
793
|
+
var d, h = [k1, x1(function(C) {
|
|
794
|
+
d.insert(C);
|
|
795
|
+
})], u = v1(f.concat(i, h)), m = function(L) {
|
|
796
|
+
return $(w1(L), u);
|
|
665
797
|
};
|
|
666
|
-
|
|
667
|
-
|
|
798
|
+
l = function(L, b, I, B) {
|
|
799
|
+
d = I, m(L ? L + "{" + b.styles + "}" : b.styles), B && (w.inserted[b.name] = !0);
|
|
668
800
|
};
|
|
669
801
|
}
|
|
670
|
-
var
|
|
802
|
+
var w = {
|
|
671
803
|
key: o,
|
|
672
|
-
sheet: new
|
|
804
|
+
sheet: new r1({
|
|
673
805
|
key: o,
|
|
674
|
-
container:
|
|
806
|
+
container: c,
|
|
675
807
|
nonce: t.nonce,
|
|
676
808
|
speedy: t.speedy,
|
|
677
809
|
prepend: t.prepend,
|
|
@@ -680,68 +812,68 @@ var et = function(t, o, n, i) {
|
|
|
680
812
|
nonce: t.nonce,
|
|
681
813
|
inserted: s,
|
|
682
814
|
registered: {},
|
|
683
|
-
insert:
|
|
815
|
+
insert: l
|
|
684
816
|
};
|
|
685
|
-
return
|
|
817
|
+
return w.sheet.hydrate(a), w;
|
|
686
818
|
};
|
|
687
|
-
const
|
|
688
|
-
const
|
|
819
|
+
const b2 = ({ children: e, viewport: t, containerProps: o }) => {
|
|
820
|
+
const r = de(null), { theme: i } = U(), [s, c] = H({
|
|
689
821
|
width: 0,
|
|
690
822
|
height: 0
|
|
691
823
|
});
|
|
692
|
-
|
|
693
|
-
const
|
|
694
|
-
const
|
|
695
|
-
if (!
|
|
696
|
-
const { width:
|
|
697
|
-
|
|
698
|
-
width:
|
|
699
|
-
height:
|
|
824
|
+
K(() => {
|
|
825
|
+
const w = K2((L) => {
|
|
826
|
+
const b = L.at(0)?.target;
|
|
827
|
+
if (!b) return;
|
|
828
|
+
const { width: I, height: B } = b.getBoundingClientRect();
|
|
829
|
+
c(() => ({
|
|
830
|
+
width: I,
|
|
831
|
+
height: B
|
|
700
832
|
}));
|
|
701
|
-
}, 200),
|
|
702
|
-
return
|
|
833
|
+
}, 200), C = new ResizeObserver(w);
|
|
834
|
+
return r.current && C.observe(r.current), () => C.disconnect();
|
|
703
835
|
}, []);
|
|
704
|
-
const
|
|
705
|
-
return /* @__PURE__ */
|
|
836
|
+
const a = Ne(t?.width) ? t.width(s.width) : t?.width, l = Ne(t?.height) ? t.height(s.height) : t?.height, f = J(a) ? s.width / a : 1, d = J(l) ? s.height / l : 1, h = Math.min(f, d, 1), u = (l ?? s.height / h) || 0, m = (a ?? s.width / h) || 0;
|
|
837
|
+
return /* @__PURE__ */ n("div", { ...o, css: { padding: 8, width: "100%", height: "100%", backgroundColor: Ce.ink["1s"] }, children: /* @__PURE__ */ n("div", { css: { position: "relative", overflow: "hidden", width: "100%", height: "100%" }, ref: r, children: /* @__PURE__ */ n(
|
|
706
838
|
"div",
|
|
707
839
|
{
|
|
708
840
|
style: {
|
|
709
|
-
transform: `scale(${
|
|
710
|
-
width:
|
|
711
|
-
height:
|
|
712
|
-
marginLeft: (s.width -
|
|
713
|
-
marginTop: (s.height -
|
|
841
|
+
transform: `scale(${h})`,
|
|
842
|
+
width: m,
|
|
843
|
+
height: u,
|
|
844
|
+
marginLeft: (s.width - m) / 2,
|
|
845
|
+
marginTop: (s.height - u) / 2
|
|
714
846
|
},
|
|
715
|
-
|
|
716
|
-
children: /* @__PURE__ */
|
|
717
|
-
|
|
847
|
+
css: { position: "absolute" },
|
|
848
|
+
children: /* @__PURE__ */ n(
|
|
849
|
+
Ut,
|
|
718
850
|
{
|
|
719
851
|
sandbox: "allow-same-origin allow-scripts allow-popups allow-presentation",
|
|
720
852
|
allow: "autoplay; encrypted-media",
|
|
721
|
-
width:
|
|
722
|
-
height:
|
|
723
|
-
children: /* @__PURE__ */
|
|
853
|
+
width: a ?? "100%",
|
|
854
|
+
height: l ?? "100%",
|
|
855
|
+
children: /* @__PURE__ */ n(A1, { theme: i, children: e })
|
|
724
856
|
}
|
|
725
857
|
)
|
|
726
858
|
}
|
|
727
859
|
) }) });
|
|
728
|
-
},
|
|
729
|
-
const { document: o, window:
|
|
730
|
-
|
|
731
|
-
const
|
|
732
|
-
return
|
|
733
|
-
window.customElements.get(
|
|
860
|
+
}, A1 = ({ children: e, theme: t }) => {
|
|
861
|
+
const { document: o, window: r } = qt(), [i, s] = H(!1), c = de(window.customElements.define.bind(window.customElements));
|
|
862
|
+
K(() => {
|
|
863
|
+
const l = c.current;
|
|
864
|
+
return r && (window.customElements.define = function(f, d, h) {
|
|
865
|
+
window.customElements.get(f) || r.customElements.define(f, d, h), l(f, d, h);
|
|
734
866
|
}), o?.head.replaceWith(document.head.cloneNode(!0)), s(!0), () => {
|
|
735
|
-
window.customElements.define =
|
|
867
|
+
window.customElements.define = l;
|
|
736
868
|
};
|
|
737
|
-
}, [o,
|
|
738
|
-
const
|
|
869
|
+
}, [o, r]);
|
|
870
|
+
const a = N1({
|
|
739
871
|
key: "css",
|
|
740
872
|
container: o?.head
|
|
741
873
|
});
|
|
742
|
-
return i ? /* @__PURE__ */
|
|
743
|
-
/* @__PURE__ */
|
|
744
|
-
|
|
874
|
+
return i ? /* @__PURE__ */ n(je, { children: /* @__PURE__ */ g(Bt, { value: a, children: [
|
|
875
|
+
/* @__PURE__ */ n(
|
|
876
|
+
Rt,
|
|
745
877
|
{
|
|
746
878
|
styles: {
|
|
747
879
|
".frame-content": {
|
|
@@ -750,61 +882,337 @@ const he = ({ children: e, viewport: t, containerProps: o }) => {
|
|
|
750
882
|
minHeight: "100vh",
|
|
751
883
|
justifyContent: "center"
|
|
752
884
|
},
|
|
753
|
-
[`& *[${
|
|
885
|
+
[`& *[${Te.DATA_NODE_DROP_TARGET}=${Se.True}]`]: {
|
|
754
886
|
outlineWidth: 1,
|
|
755
887
|
outlineStyle: "solid",
|
|
756
888
|
outlineOffset: -1,
|
|
757
889
|
outlineColor: "green"
|
|
758
890
|
},
|
|
759
|
-
[`& *[${
|
|
891
|
+
[`& *[${Te.DATA_NODE_DROP_TARGET_ERROR}=${Se.True}]`]: {
|
|
760
892
|
outlineColor: "red"
|
|
761
893
|
}
|
|
762
894
|
}
|
|
763
895
|
}
|
|
764
896
|
),
|
|
765
|
-
/* @__PURE__ */
|
|
897
|
+
/* @__PURE__ */ n($t, { theme: t, children: e })
|
|
766
898
|
] }) }) : null;
|
|
767
|
-
}
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
899
|
+
};
|
|
900
|
+
var _ = /* @__PURE__ */ ((e) => (e[e.Pixels = 0] = "Pixels", e[e.Unitless = 1] = "Unitless", e))(_ || {});
|
|
901
|
+
const E1 = [
|
|
902
|
+
{
|
|
903
|
+
label: "Pixels",
|
|
904
|
+
value: 0
|
|
905
|
+
/* Pixels */
|
|
906
|
+
},
|
|
907
|
+
{
|
|
908
|
+
label: "Unitless",
|
|
909
|
+
value: 1
|
|
910
|
+
/* Unitless */
|
|
911
|
+
}
|
|
912
|
+
], or = ({ name: e, responsive: t = !0, value: o, onChange: r }) => {
|
|
913
|
+
const i = J(o?.lineHeight) ? _.Unitless : _.Pixels, s = i === _.Unitless ? 0.1 : 1, c = T2(o?.lineHeight, "float"), a = ({ unit: u, value: m }) => {
|
|
914
|
+
if (Z(m)) {
|
|
915
|
+
r?.({
|
|
916
|
+
lineHeight: u === _.Unitless ? 1 : m
|
|
917
|
+
});
|
|
918
|
+
return;
|
|
919
|
+
}
|
|
920
|
+
r?.({
|
|
921
|
+
lineHeight: u === _.Unitless ? Number(m.toFixed(1)) : `${m}px`
|
|
922
|
+
});
|
|
923
|
+
}, l = (u) => {
|
|
924
|
+
a({ unit: Number(u.target.value) });
|
|
925
|
+
}, f = (u) => {
|
|
926
|
+
const m = isNaN(u.target.valueAsNumber) ? void 0 : u.target.valueAsNumber;
|
|
927
|
+
a({ unit: i, value: m });
|
|
928
|
+
}, d = (u) => {
|
|
929
|
+
u.stopPropagation(), !Z(c) && a({ unit: i, value: Math.max(c + s, 0) });
|
|
930
|
+
}, h = (u) => {
|
|
931
|
+
u.stopPropagation(), !Z(c) && a({ unit: i, value: Math.max(c - s, 0) });
|
|
932
|
+
};
|
|
933
|
+
return /* @__PURE__ */ g("div", { css: { display: "flex", flexDirection: "column", gap: 8 }, children: [
|
|
934
|
+
/* @__PURE__ */ n(q, { responsive: t, name: e ?? "Line height", children: /* @__PURE__ */ n("div", { css: { display: "flex", alignItems: "center", gap: 4 }, children: E1.map((u) => /* @__PURE__ */ n(
|
|
935
|
+
_e,
|
|
936
|
+
{
|
|
937
|
+
onChange: l,
|
|
938
|
+
checked: u.value === i,
|
|
939
|
+
value: u.value,
|
|
940
|
+
name: "toolbar-line-height",
|
|
941
|
+
children: u.label
|
|
942
|
+
},
|
|
943
|
+
u.value
|
|
944
|
+
)) }) }),
|
|
945
|
+
/* @__PURE__ */ n("div", { css: { display: "flex", justifyContent: "flex-end" }, children: /* @__PURE__ */ n("div", { css: { width: "50%" }, children: /* @__PURE__ */ n(
|
|
946
|
+
c2,
|
|
947
|
+
{
|
|
948
|
+
fractionDigits: 1,
|
|
949
|
+
type: i === _.Unitless ? "decimal" : "integer",
|
|
950
|
+
value: c ?? "",
|
|
951
|
+
onChange: f,
|
|
952
|
+
prefix: /* @__PURE__ */ n(E, { disabled: J(c) && c <= 0, onClick: h, children: /* @__PURE__ */ n(M, { source: Fe }) }),
|
|
953
|
+
suffix: /* @__PURE__ */ n(E, { onClick: d, children: /* @__PURE__ */ n(M, { source: ve }) }),
|
|
954
|
+
mode: "onBlur",
|
|
955
|
+
css: { textAlign: "center" },
|
|
956
|
+
placeholder: "normal"
|
|
957
|
+
}
|
|
958
|
+
) }) })
|
|
959
|
+
] });
|
|
960
|
+
}, sr = ({ name: e, responsive: t = !0, value: o, onChange: r }) => {
|
|
961
|
+
const i = (a) => {
|
|
962
|
+
const l = isNaN(a.target.valueAsNumber) ? void 0 : a.target.valueAsNumber;
|
|
963
|
+
r?.({
|
|
964
|
+
...o,
|
|
965
|
+
fontSize: l
|
|
966
|
+
});
|
|
967
|
+
}, s = (a) => {
|
|
968
|
+
a.stopPropagation();
|
|
969
|
+
const l = Ae(o?.fontSize) ? void 0 : o?.fontSize;
|
|
970
|
+
r?.({
|
|
971
|
+
...o,
|
|
972
|
+
fontSize: Z(l) ? 16 : l + 1
|
|
973
|
+
});
|
|
974
|
+
}, c = (a) => {
|
|
975
|
+
a.stopPropagation();
|
|
976
|
+
const l = Ae(o?.fontSize) ? void 0 : o?.fontSize;
|
|
977
|
+
r?.({
|
|
978
|
+
...o,
|
|
979
|
+
fontSize: Z(l) ? 16 : Math.max(l - 1, 0)
|
|
980
|
+
});
|
|
981
|
+
};
|
|
982
|
+
return /* @__PURE__ */ n(q, { responsive: t, name: e ?? "Font size", children: /* @__PURE__ */ n("div", { css: { width: "50%" }, children: /* @__PURE__ */ n(
|
|
983
|
+
c2,
|
|
984
|
+
{
|
|
985
|
+
onCanPlay: i,
|
|
986
|
+
mode: "onBlur",
|
|
987
|
+
css: { textAlign: "center" },
|
|
988
|
+
placeholder: "inherit",
|
|
989
|
+
value: o?.fontSize ?? "",
|
|
990
|
+
prefix: /* @__PURE__ */ n(E, { disabled: J(o?.fontSize) && o.fontSize <= 0, onClick: c, children: /* @__PURE__ */ n(M, { source: Fe }) }),
|
|
991
|
+
suffix: /* @__PURE__ */ n(E, { onClick: s, children: /* @__PURE__ */ n(M, { source: ve }) })
|
|
992
|
+
}
|
|
993
|
+
) }) });
|
|
994
|
+
}, Pe = [
|
|
995
|
+
{
|
|
996
|
+
label: "Block",
|
|
997
|
+
value: "block"
|
|
998
|
+
},
|
|
999
|
+
{
|
|
1000
|
+
label: "Inline",
|
|
1001
|
+
value: "inline"
|
|
1002
|
+
},
|
|
1003
|
+
{
|
|
1004
|
+
label: "Inline Block",
|
|
1005
|
+
value: "inline-block"
|
|
1006
|
+
},
|
|
1007
|
+
{
|
|
1008
|
+
label: "Flex",
|
|
1009
|
+
value: "flex"
|
|
1010
|
+
},
|
|
1011
|
+
{
|
|
1012
|
+
label: "Inline Flex",
|
|
1013
|
+
value: "flex"
|
|
1014
|
+
},
|
|
1015
|
+
{
|
|
1016
|
+
label: "Grid",
|
|
1017
|
+
value: "grid"
|
|
1018
|
+
},
|
|
1019
|
+
{
|
|
1020
|
+
label: "Inline Grid",
|
|
1021
|
+
value: "inline-grid"
|
|
1022
|
+
}
|
|
1023
|
+
], ir = ({
|
|
1024
|
+
name: e,
|
|
1025
|
+
responsive: t = !1,
|
|
1026
|
+
availableDisplays: o,
|
|
1027
|
+
onChange: r,
|
|
1028
|
+
value: i
|
|
1029
|
+
}) => {
|
|
1030
|
+
const s = Z(o) ? Pe : Pe.filter((a) => o.includes(a.value)), c = (a) => {
|
|
1031
|
+
r?.({ display: a });
|
|
1032
|
+
};
|
|
1033
|
+
return /* @__PURE__ */ n(q, { name: e ?? "Display", responsive: t, children: /* @__PURE__ */ n(
|
|
1034
|
+
Q2,
|
|
1035
|
+
{
|
|
1036
|
+
css: {
|
|
1037
|
+
width: "50%"
|
|
1038
|
+
},
|
|
1039
|
+
placement: "bottom-end",
|
|
1040
|
+
placeholder: "default",
|
|
1041
|
+
options: s,
|
|
1042
|
+
value: i?.display ?? null,
|
|
1043
|
+
onChange: c
|
|
1044
|
+
}
|
|
1045
|
+
) });
|
|
1046
|
+
}, ar = ({ value: e, onChange: t, name: o, responsive: r = !1 }) => {
|
|
1047
|
+
const i = {
|
|
1048
|
+
flexBasis: e?.flexBasis ?? "auto",
|
|
1049
|
+
flexGrow: e?.flexGrow ?? 0,
|
|
1050
|
+
flexShrink: e?.flexShrink ?? 1
|
|
1051
|
+
}, s = [
|
|
1052
|
+
{
|
|
1053
|
+
label: "Auto fit",
|
|
1054
|
+
value: 0,
|
|
1055
|
+
rawValue: {
|
|
1056
|
+
flexBasis: "auto",
|
|
1057
|
+
flexGrow: 0,
|
|
1058
|
+
flexShrink: 1
|
|
1059
|
+
}
|
|
1060
|
+
},
|
|
1061
|
+
{
|
|
1062
|
+
label: "Auto fill",
|
|
1063
|
+
value: 1,
|
|
1064
|
+
rawValue: {
|
|
1065
|
+
flexBasis: "0%",
|
|
1066
|
+
flexGrow: 1,
|
|
1067
|
+
flexShrink: 1
|
|
1068
|
+
}
|
|
1069
|
+
}
|
|
1070
|
+
], c = s.find((l) => J2(l.rawValue, i))?.value, a = (l) => {
|
|
1071
|
+
const f = s.find((d) => d.value === Number(l.target.value));
|
|
1072
|
+
f && t?.(f.rawValue);
|
|
1073
|
+
};
|
|
1074
|
+
return /* @__PURE__ */ n(q, { name: o ?? "Content", responsive: r, children: /* @__PURE__ */ n("div", { css: { display: "inline-flex", alignItems: "center", gap: 8 }, children: s.map((l) => /* @__PURE__ */ n(
|
|
1075
|
+
_e,
|
|
1076
|
+
{
|
|
1077
|
+
checked: l.value === c,
|
|
1078
|
+
value: l.value,
|
|
1079
|
+
onChange: a,
|
|
1080
|
+
children: l.label
|
|
1081
|
+
},
|
|
1082
|
+
l.value
|
|
1083
|
+
)) }) });
|
|
1084
|
+
}, cr = ({ name: e, value: t, onChange: o, responsive: r = !0 }) => {
|
|
1085
|
+
const i = de(null), s = (c) => {
|
|
1086
|
+
o?.({
|
|
1087
|
+
minWidth: c
|
|
1088
|
+
});
|
|
1089
|
+
};
|
|
1090
|
+
return /* @__PURE__ */ n(q, { name: e ?? "Min width", responsive: r, children: /* @__PURE__ */ n("div", { css: { position: "relative", width: "50%" }, children: /* @__PURE__ */ n(
|
|
1091
|
+
et,
|
|
1092
|
+
{
|
|
1093
|
+
fullWidth: !0,
|
|
1094
|
+
wrapRef: i,
|
|
1095
|
+
placeholder: "0",
|
|
1096
|
+
value: t?.minWidth,
|
|
1097
|
+
onChange: s,
|
|
1098
|
+
defaultValue: {
|
|
1099
|
+
"%": 100
|
|
1100
|
+
}
|
|
1101
|
+
}
|
|
1102
|
+
) }) });
|
|
1103
|
+
}, lr = ({ value: e, onChange: t }) => {
|
|
1104
|
+
const [o, r] = H(!1), i = (c) => {
|
|
1105
|
+
t?.({ ...e, sizeVariant: c });
|
|
1106
|
+
}, s = (c) => {
|
|
1107
|
+
t?.({
|
|
1108
|
+
...e,
|
|
1109
|
+
css: {
|
|
1110
|
+
...e?.css,
|
|
1111
|
+
...c
|
|
1112
|
+
}
|
|
1113
|
+
});
|
|
1114
|
+
};
|
|
1115
|
+
return /* @__PURE__ */ n(q, { name: "Text style", children: /* @__PURE__ */ g(S2, { open: o, onOpenChange: r, placement: "right", children: [
|
|
1116
|
+
/* @__PURE__ */ n(N2, { children: /* @__PURE__ */ g(
|
|
1117
|
+
"button",
|
|
1118
|
+
{
|
|
1119
|
+
css: [
|
|
1120
|
+
{
|
|
1121
|
+
display: "flex",
|
|
1122
|
+
paddingInline: 8,
|
|
1123
|
+
alignItems: "center",
|
|
1124
|
+
gap: 8,
|
|
1125
|
+
borderRadius: 6,
|
|
1126
|
+
textAlign: "left",
|
|
1127
|
+
width: "50%",
|
|
1128
|
+
height: 32,
|
|
1129
|
+
backgroundColor: p.palette.white["1s"],
|
|
1130
|
+
overflow: "hidden",
|
|
1131
|
+
textOverflow: "ellipsis",
|
|
1132
|
+
whiteSpace: "nowrap",
|
|
1133
|
+
...p.text.xs
|
|
1134
|
+
},
|
|
1135
|
+
o && { backgroundColor: p.palette.black["7s"] }
|
|
1136
|
+
],
|
|
1137
|
+
children: [
|
|
1138
|
+
/* @__PURE__ */ n(M, { css: { color: "white" }, source: tt }),
|
|
1139
|
+
/* @__PURE__ */ n("span", { children: "Auto" })
|
|
1140
|
+
]
|
|
1141
|
+
}
|
|
1142
|
+
) }),
|
|
1143
|
+
/* @__PURE__ */ n(A2, { children: /* @__PURE__ */ g("div", { style: { width: 280 }, children: [
|
|
1144
|
+
/* @__PURE__ */ g("div", { css: { display: "flex", justifyContent: "space-between", alignItems: "center", gap: 8 }, children: [
|
|
1145
|
+
/* @__PURE__ */ n("div", { css: { fontWeight: 500 }, children: "Text style" }),
|
|
1146
|
+
/* @__PURE__ */ n(nt, { children: /* @__PURE__ */ n(E, { children: /* @__PURE__ */ n(M, { source: Oe }) }) })
|
|
1147
|
+
] }),
|
|
1148
|
+
/* @__PURE__ */ n("hr", { css: { marginBlock: 8, borderColor: p.palette.white["1s"] } }),
|
|
1149
|
+
/* @__PURE__ */ g("div", { css: { display: "flex", flexDirection: "column", gap: 12 }, children: [
|
|
1150
|
+
/* @__PURE__ */ n(rt, { value: e?.sizeVariant, onChange: i }),
|
|
1151
|
+
/* @__PURE__ */ n(ot, { value: { color: e?.css?.color }, onChange: s }),
|
|
1152
|
+
/* @__PURE__ */ n(
|
|
1153
|
+
st,
|
|
1154
|
+
{
|
|
1155
|
+
name: "Style",
|
|
1156
|
+
value: {
|
|
1157
|
+
fontWeight: e?.css?.fontWeight,
|
|
1158
|
+
fontStyle: e?.css?.fontStyle,
|
|
1159
|
+
textDecorationLine: e?.css?.textDecorationLine
|
|
1160
|
+
},
|
|
1161
|
+
onChange: s
|
|
1162
|
+
}
|
|
1163
|
+
),
|
|
1164
|
+
/* @__PURE__ */ n(it, { value: { fontWeight: e?.css?.fontWeight }, onChange: s }),
|
|
1165
|
+
/* @__PURE__ */ n(
|
|
1166
|
+
at,
|
|
1167
|
+
{
|
|
1168
|
+
value: {
|
|
1169
|
+
textTransform: e?.css?.textTransform
|
|
1170
|
+
},
|
|
1171
|
+
onChange: s
|
|
1172
|
+
}
|
|
1173
|
+
)
|
|
1174
|
+
] })
|
|
1175
|
+
] }) })
|
|
1176
|
+
] }) });
|
|
1177
|
+
}, B1 = ({ render: e }) => {
|
|
1178
|
+
const { id: t, renderer: o } = U2((s) => ({
|
|
1179
|
+
resolvedId: B2(s),
|
|
1180
|
+
renderer: E2(s).renderer
|
|
1181
|
+
})), { mode: r } = U(), { isActive: i } = O((s, c) => ({
|
|
1182
|
+
isActive: c.getEvent("selected").contains(t) && t !== z
|
|
775
1183
|
}));
|
|
776
|
-
return o ?
|
|
777
|
-
i &&
|
|
778
|
-
/* @__PURE__ */
|
|
779
|
-
/* @__PURE__ */
|
|
1184
|
+
return o ? a2(o, { render: e }) : /* @__PURE__ */ g(ce, { children: [
|
|
1185
|
+
i && r === "full" && /* @__PURE__ */ g(ce, { children: [
|
|
1186
|
+
/* @__PURE__ */ n(ct, {}),
|
|
1187
|
+
/* @__PURE__ */ n(lt, {})
|
|
780
1188
|
] }),
|
|
781
1189
|
e
|
|
782
1190
|
] });
|
|
783
1191
|
};
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
const
|
|
1192
|
+
S(ze, { inspector: dt });
|
|
1193
|
+
S(ae, { inspector: ht });
|
|
1194
|
+
S(Ze, { inspector: ut });
|
|
1195
|
+
S(xe, { inspector: pt });
|
|
1196
|
+
S($e, { inspector: Ct });
|
|
1197
|
+
S(ge, { inspector: gt });
|
|
1198
|
+
S(Ge, { inspector: ft });
|
|
1199
|
+
S(fe, { inspector: wt });
|
|
1200
|
+
S(be, { inspector: mt });
|
|
1201
|
+
S(Ue, { inspector: kt });
|
|
1202
|
+
S(qe, { inspector: vt });
|
|
1203
|
+
S(Ye, { inspector: xt });
|
|
1204
|
+
S(Xe, { inspector: bt });
|
|
1205
|
+
S(R2, { inspector: yt });
|
|
1206
|
+
S(Ke, { inspector: Mt });
|
|
1207
|
+
S(Je, { inspector: Lt });
|
|
1208
|
+
S(Qe, { inspector: It });
|
|
1209
|
+
S(e2, { inspector: Tt });
|
|
1210
|
+
S(t2, { inspector: St });
|
|
1211
|
+
const De = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
804
1212
|
<path d="M8 5L5 8L8 11" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
805
1213
|
<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
1214
|
</svg>
|
|
807
|
-
`,
|
|
1215
|
+
`, R1 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
808
1216
|
<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
1217
|
<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
1218
|
<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,95 +1220,123 @@ const S2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
812
1220
|
<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
1221
|
<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
1222
|
</svg>
|
|
815
|
-
`,
|
|
1223
|
+
`, V1 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
816
1224
|
<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
1225
|
<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
1226
|
</svg>
|
|
819
|
-
`,
|
|
820
|
-
const {
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
})), l = (h) => {
|
|
828
|
-
o({
|
|
829
|
-
screen: h
|
|
830
|
-
});
|
|
831
|
-
}, a = () => {
|
|
1227
|
+
`, W1 = '<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>', P1 = () => {
|
|
1228
|
+
const { mode: e, screen: t, setState: o, handlers: r } = U(), [i, s] = H(!1), { actions: c, canRedo: a, canUndo: l, query: f } = O((w, C) => ({
|
|
1229
|
+
enabled: w.options.enabled,
|
|
1230
|
+
canUndo: C.history.canUndo(),
|
|
1231
|
+
canRedo: C.history.canRedo()
|
|
1232
|
+
})), d = (w) => {
|
|
1233
|
+
o({ screen: w });
|
|
1234
|
+
}, h = () => {
|
|
832
1235
|
o({ mode: e === "full" ? "compact" : "full" });
|
|
833
|
-
},
|
|
834
|
-
|
|
835
|
-
},
|
|
1236
|
+
}, u = () => {
|
|
1237
|
+
r.close();
|
|
1238
|
+
}, m = async () => {
|
|
836
1239
|
try {
|
|
837
|
-
return
|
|
1240
|
+
return c.selectNode(), r.submit(f.getSerializedNodes());
|
|
838
1241
|
} catch {
|
|
839
1242
|
} finally {
|
|
840
|
-
|
|
1243
|
+
s(!1);
|
|
841
1244
|
}
|
|
842
1245
|
};
|
|
843
1246
|
return /* @__PURE__ */ g(
|
|
844
1247
|
"div",
|
|
845
1248
|
{
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
1249
|
+
css: {
|
|
1250
|
+
display: "flex",
|
|
1251
|
+
padding: 8,
|
|
1252
|
+
alignItems: "center",
|
|
1253
|
+
gap: 16,
|
|
1254
|
+
justifyContent: "space-between",
|
|
1255
|
+
backgroundColor: p.palette.ink["6s"],
|
|
1256
|
+
color: p.palette.white["6s"],
|
|
1257
|
+
...p.text.sm
|
|
1258
|
+
},
|
|
849
1259
|
children: [
|
|
850
|
-
/* @__PURE__ */ g("div", {
|
|
851
|
-
/* @__PURE__ */
|
|
852
|
-
/* @__PURE__ */
|
|
853
|
-
/* @__PURE__ */ g(
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
1260
|
+
/* @__PURE__ */ g("div", { css: { display: "flex", alignItems: "center", gap: 12 }, children: [
|
|
1261
|
+
/* @__PURE__ */ n(E, { size: "32", onClick: u, children: /* @__PURE__ */ n(M, { source: W1 }) }),
|
|
1262
|
+
/* @__PURE__ */ n(Nt, { onSelectionChange: d, value: t, children: At.map(({ icon: w, size: C }) => /* @__PURE__ */ n(E, { value: C, children: /* @__PURE__ */ n(M, { source: w }) }, C)) }),
|
|
1263
|
+
/* @__PURE__ */ g(
|
|
1264
|
+
"div",
|
|
1265
|
+
{
|
|
1266
|
+
css: {
|
|
1267
|
+
padding: 4,
|
|
1268
|
+
display: "flex",
|
|
1269
|
+
alignItems: "center",
|
|
1270
|
+
gap: 8,
|
|
1271
|
+
borderRadius: 8,
|
|
1272
|
+
backgroundColor: p.palette.white["1s"]
|
|
1273
|
+
},
|
|
1274
|
+
children: [
|
|
1275
|
+
/* @__PURE__ */ n(E, { onClick: c.history.undo, disabled: !l, children: /* @__PURE__ */ n(M, { source: De }) }),
|
|
1276
|
+
/* @__PURE__ */ n(E, { onClick: c.history.redo, disabled: !a, children: /* @__PURE__ */ n(M, { source: De, css: { transform: "rotate(180deg)" } }) })
|
|
1277
|
+
]
|
|
1278
|
+
}
|
|
1279
|
+
),
|
|
1280
|
+
/* @__PURE__ */ n(
|
|
1281
|
+
"div",
|
|
1282
|
+
{
|
|
1283
|
+
css: {
|
|
1284
|
+
padding: 4,
|
|
1285
|
+
display: "flex",
|
|
1286
|
+
alignItems: "center",
|
|
1287
|
+
gap: 8,
|
|
1288
|
+
borderRadius: 8,
|
|
1289
|
+
backgroundColor: p.palette.white["1s"]
|
|
1290
|
+
},
|
|
1291
|
+
children: /* @__PURE__ */ n(E, { onClick: h, children: /* @__PURE__ */ n(M, { source: e === "full" ? V1 : R1 }) })
|
|
1292
|
+
}
|
|
1293
|
+
)
|
|
858
1294
|
] }),
|
|
859
|
-
/* @__PURE__ */
|
|
1295
|
+
/* @__PURE__ */ n("div", { css: { display: "flex", alignItems: "center", gap: 12 }, children: /* @__PURE__ */ n(n2, { isLoading: i, onClick: m, children: "Save" }) })
|
|
860
1296
|
]
|
|
861
1297
|
}
|
|
862
1298
|
);
|
|
863
|
-
},
|
|
1299
|
+
}, D1 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
864
1300
|
<path d="M20 19.9997L16.3763 16.376" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
865
1301
|
<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
1302
|
</svg>
|
|
867
|
-
`,
|
|
1303
|
+
`, H1 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
868
1304
|
<path d="M15 6L9 12L15 18" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
869
1305
|
</svg>
|
|
870
|
-
`,
|
|
1306
|
+
`, j1 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
871
1307
|
<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
1308
|
<path d="M13.5 20.9998V12" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
873
1309
|
<path d="M9.50011 11.9998V3" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
874
1310
|
<path d="M20.9999 12H3.00024" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
875
1311
|
</svg>
|
|
876
|
-
`,
|
|
1312
|
+
`, _1 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
877
1313
|
<rect x="3" y="3" width="18" height="18" rx="2" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
878
1314
|
<path d="M3 12H21" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
879
1315
|
<path d="M12 21V3" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
880
1316
|
</svg>
|
|
881
|
-
`,
|
|
1317
|
+
`, He = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
882
1318
|
<path d="M3 6V18" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
883
1319
|
<path d="M21 6V18" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
884
1320
|
<path d="M6 21H18" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
885
1321
|
<path d="M6 3H18" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
886
1322
|
</svg>
|
|
887
|
-
`,
|
|
1323
|
+
`, F1 = {
|
|
888
1324
|
name: "Layout",
|
|
889
1325
|
templates: [
|
|
890
1326
|
{
|
|
891
1327
|
name: "Container",
|
|
892
|
-
template: /* @__PURE__ */
|
|
893
|
-
icon: { source:
|
|
1328
|
+
template: /* @__PURE__ */ n(k, { is: t2 }),
|
|
1329
|
+
icon: { source: He, height: 32 }
|
|
894
1330
|
},
|
|
895
1331
|
{
|
|
896
1332
|
name: "Block",
|
|
897
|
-
template: /* @__PURE__ */
|
|
898
|
-
icon: { source:
|
|
1333
|
+
template: /* @__PURE__ */ n(k, { is: Je }),
|
|
1334
|
+
icon: { source: He, height: 32 }
|
|
899
1335
|
},
|
|
900
1336
|
{
|
|
901
1337
|
name: "Grid",
|
|
902
1338
|
template: /* @__PURE__ */ g(
|
|
903
|
-
|
|
1339
|
+
k,
|
|
904
1340
|
{
|
|
905
1341
|
cols: 2,
|
|
906
1342
|
sx: {
|
|
@@ -910,43 +1346,43 @@ const S2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
910
1346
|
paddingTop: 16,
|
|
911
1347
|
paddingBottom: 16
|
|
912
1348
|
},
|
|
913
|
-
is:
|
|
1349
|
+
is: $e,
|
|
914
1350
|
children: [
|
|
915
|
-
/* @__PURE__ */
|
|
916
|
-
/* @__PURE__ */
|
|
1351
|
+
/* @__PURE__ */ n(k, { is: ge, canvas: !0 }),
|
|
1352
|
+
/* @__PURE__ */ n(k, { is: ge, canvas: !0 })
|
|
917
1353
|
]
|
|
918
1354
|
}
|
|
919
1355
|
),
|
|
920
|
-
icon: { source:
|
|
1356
|
+
icon: { source: _1, height: 32 }
|
|
921
1357
|
},
|
|
922
1358
|
{
|
|
923
1359
|
name: "Flex",
|
|
924
|
-
template: /* @__PURE__ */ g(
|
|
925
|
-
/* @__PURE__ */
|
|
926
|
-
|
|
1360
|
+
template: /* @__PURE__ */ g(k, { is: Ge, sx: { columnGap: 8, rowGap: 8, paddingTop: 16, paddingBottom: 16 }, children: [
|
|
1361
|
+
/* @__PURE__ */ n(
|
|
1362
|
+
k,
|
|
927
1363
|
{
|
|
928
1364
|
sx: {
|
|
929
1365
|
width: "40%"
|
|
930
1366
|
},
|
|
931
|
-
is:
|
|
1367
|
+
is: fe,
|
|
932
1368
|
canvas: !0
|
|
933
1369
|
}
|
|
934
1370
|
),
|
|
935
|
-
/* @__PURE__ */
|
|
936
|
-
|
|
1371
|
+
/* @__PURE__ */ n(
|
|
1372
|
+
k,
|
|
937
1373
|
{
|
|
938
1374
|
sx: {
|
|
939
1375
|
width: "60%"
|
|
940
1376
|
},
|
|
941
|
-
is:
|
|
1377
|
+
is: fe,
|
|
942
1378
|
canvas: !0
|
|
943
1379
|
}
|
|
944
1380
|
)
|
|
945
1381
|
] }),
|
|
946
|
-
icon: { source:
|
|
1382
|
+
icon: { source: j1, height: 32 }
|
|
947
1383
|
}
|
|
948
1384
|
]
|
|
949
|
-
},
|
|
1385
|
+
}, O1 = `<svg width="98" height="56" viewBox="0 0 98 56" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
950
1386
|
<rect x="4" y="4" width="57" height="6" rx="3" fill="currentColor"></rect>
|
|
951
1387
|
<rect x="2" y="4" width="57" height="6" rx="3" fill="currentColor"></rect>
|
|
952
1388
|
<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,15 +1392,15 @@ const S2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
956
1392
|
<rect x="4" y="46" width="57" height="6" rx="3" fill="currentColor"></rect>
|
|
957
1393
|
<rect x="2" y="46" width="57" height="6" rx="3" fill="currentColor"></rect>
|
|
958
1394
|
<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>`,
|
|
1395
|
+
</svg>`, z1 = "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", Z1 = "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", $1 = {
|
|
960
1396
|
name: "Content list",
|
|
961
1397
|
templates: [
|
|
962
1398
|
{
|
|
963
1399
|
name: "Accordion",
|
|
964
|
-
template: /* @__PURE__ */
|
|
965
|
-
|
|
1400
|
+
template: /* @__PURE__ */ n(
|
|
1401
|
+
k,
|
|
966
1402
|
{
|
|
967
|
-
is:
|
|
1403
|
+
is: Qe,
|
|
968
1404
|
accordionSummaryProps: {
|
|
969
1405
|
sx: {
|
|
970
1406
|
paddingTop: 8,
|
|
@@ -973,8 +1409,8 @@ const S2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
973
1409
|
expandIcon: {
|
|
974
1410
|
position: "right",
|
|
975
1411
|
source: {
|
|
976
|
-
expanded:
|
|
977
|
-
collapsed:
|
|
1412
|
+
expanded: Z1,
|
|
1413
|
+
collapsed: z1
|
|
978
1414
|
}
|
|
979
1415
|
}
|
|
980
1416
|
},
|
|
@@ -985,23 +1421,23 @@ const S2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
985
1421
|
}
|
|
986
1422
|
},
|
|
987
1423
|
openMode: "single",
|
|
988
|
-
children:
|
|
989
|
-
/* @__PURE__ */
|
|
990
|
-
|
|
1424
|
+
children: F(3).map((e) => /* @__PURE__ */ g(k, { defaultOpen: e === 0, is: V2, children: [
|
|
1425
|
+
/* @__PURE__ */ n(k, { is: W2, children: /* @__PURE__ */ n(
|
|
1426
|
+
k,
|
|
991
1427
|
{
|
|
992
1428
|
sizeVariant: "base",
|
|
993
|
-
is:
|
|
1429
|
+
is: ae,
|
|
994
1430
|
dangerouslySetInnerHTML: { __html: `Accordion ${e + 1}` }
|
|
995
1431
|
}
|
|
996
1432
|
) }),
|
|
997
|
-
/* @__PURE__ */
|
|
998
|
-
|
|
1433
|
+
/* @__PURE__ */ n(k, { is: P2, children: /* @__PURE__ */ n(
|
|
1434
|
+
k,
|
|
999
1435
|
{
|
|
1000
1436
|
sx: {
|
|
1001
1437
|
paddingTop: 8,
|
|
1002
1438
|
paddingBottom: 8
|
|
1003
1439
|
},
|
|
1004
|
-
is:
|
|
1440
|
+
is: ae,
|
|
1005
1441
|
dangerouslySetInnerHTML: {
|
|
1006
1442
|
__html: `Content for accordion ${e + 1}`
|
|
1007
1443
|
}
|
|
@@ -1010,22 +1446,22 @@ const S2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
1010
1446
|
] }, e))
|
|
1011
1447
|
}
|
|
1012
1448
|
),
|
|
1013
|
-
icon: { source:
|
|
1449
|
+
icon: { source: O1, height: 40 }
|
|
1014
1450
|
}
|
|
1015
1451
|
]
|
|
1016
|
-
},
|
|
1452
|
+
}, ke = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1017
1453
|
<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
1454
|
<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
1455
|
</svg>
|
|
1020
|
-
`,
|
|
1456
|
+
`, G1 = {
|
|
1021
1457
|
name: "Interactive",
|
|
1022
1458
|
templates: [
|
|
1023
1459
|
{
|
|
1024
1460
|
name: "Carousel",
|
|
1025
|
-
template: /* @__PURE__ */
|
|
1026
|
-
|
|
1461
|
+
template: /* @__PURE__ */ n(
|
|
1462
|
+
k,
|
|
1027
1463
|
{
|
|
1028
|
-
is:
|
|
1464
|
+
is: xe,
|
|
1029
1465
|
slidesPerView: 2,
|
|
1030
1466
|
spaceBetween: 8,
|
|
1031
1467
|
md: {
|
|
@@ -1034,38 +1470,38 @@ const S2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
1034
1470
|
lg: {
|
|
1035
1471
|
slidesPerView: 4
|
|
1036
1472
|
},
|
|
1037
|
-
children:
|
|
1038
|
-
|
|
1473
|
+
children: F(6).map((e) => /* @__PURE__ */ n(
|
|
1474
|
+
k,
|
|
1039
1475
|
{
|
|
1040
1476
|
custom: {
|
|
1041
1477
|
displayName: `Slide ${e + 1}`
|
|
1042
1478
|
},
|
|
1043
|
-
is:
|
|
1479
|
+
is: r2,
|
|
1044
1480
|
canvas: !0
|
|
1045
1481
|
},
|
|
1046
1482
|
e
|
|
1047
1483
|
))
|
|
1048
1484
|
}
|
|
1049
1485
|
),
|
|
1050
|
-
icon: { source:
|
|
1486
|
+
icon: { source: ke, height: 32 }
|
|
1051
1487
|
},
|
|
1052
1488
|
{
|
|
1053
1489
|
name: "Marquee",
|
|
1054
|
-
template: /* @__PURE__ */
|
|
1055
|
-
|
|
1490
|
+
template: /* @__PURE__ */ n(k, { is: be, children: F(10).map((e) => /* @__PURE__ */ n(
|
|
1491
|
+
k,
|
|
1056
1492
|
{
|
|
1057
1493
|
canvas: !0,
|
|
1058
1494
|
custom: {
|
|
1059
1495
|
displayName: `Marquee Item ${e + 1}`
|
|
1060
1496
|
},
|
|
1061
|
-
is:
|
|
1497
|
+
is: o2
|
|
1062
1498
|
},
|
|
1063
1499
|
e
|
|
1064
1500
|
)) }),
|
|
1065
|
-
icon: { source:
|
|
1501
|
+
icon: { source: ke, height: 32 }
|
|
1066
1502
|
}
|
|
1067
1503
|
]
|
|
1068
|
-
},
|
|
1504
|
+
}, U1 = `<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
1505
|
<style type="text/css">
|
|
1070
1506
|
.st0{fill:currentColor;}
|
|
1071
1507
|
</style>
|
|
@@ -1094,31 +1530,31 @@ const S2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
1094
1530
|
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
1531
|
C372.362,303.664,369.538,300.836,364.556,300.836z"/>
|
|
1096
1532
|
</g>
|
|
1097
|
-
</svg>`,
|
|
1533
|
+
</svg>`, q1 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1098
1534
|
<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
1535
|
<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
1536
|
<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
1537
|
<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
1538
|
</svg>
|
|
1103
|
-
`,
|
|
1539
|
+
`, Y1 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1104
1540
|
<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
1541
|
<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
1542
|
<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
1543
|
<path d="M21 20H9" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1108
1544
|
<path d="M3 20H6" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1109
1545
|
</svg>
|
|
1110
|
-
`,
|
|
1546
|
+
`, X1 = {
|
|
1111
1547
|
name: "Media",
|
|
1112
1548
|
templates: [
|
|
1113
1549
|
{
|
|
1114
1550
|
name: "Image",
|
|
1115
|
-
template: /* @__PURE__ */
|
|
1116
|
-
icon: { source:
|
|
1551
|
+
template: /* @__PURE__ */ n(k, { src: "https://ucarecdn.com/ee6d5074-1640-4cc7-8933-47c8589c3dee/-/format/auto/", is: qe }),
|
|
1552
|
+
icon: { source: q1, height: 32 }
|
|
1117
1553
|
},
|
|
1118
1554
|
{
|
|
1119
1555
|
name: "Video",
|
|
1120
|
-
template: /* @__PURE__ */
|
|
1121
|
-
|
|
1556
|
+
template: /* @__PURE__ */ n(
|
|
1557
|
+
Ze,
|
|
1122
1558
|
{
|
|
1123
1559
|
sx: {
|
|
1124
1560
|
aspectRatio: "16 / 9"
|
|
@@ -1126,21 +1562,21 @@ const S2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
1126
1562
|
src: "https://cdn.shopify.com/videos/c/o/v/2cd3deb506b54b009063f7270ab5cf2e.mp4"
|
|
1127
1563
|
}
|
|
1128
1564
|
),
|
|
1129
|
-
icon: { source:
|
|
1565
|
+
icon: { source: Y1, height: 32 }
|
|
1130
1566
|
},
|
|
1131
1567
|
{
|
|
1132
1568
|
name: "Icon",
|
|
1133
|
-
template: /* @__PURE__ */
|
|
1134
|
-
icon: { source:
|
|
1569
|
+
template: /* @__PURE__ */ n(k, { source: ke, is: Ye }),
|
|
1570
|
+
icon: { source: U1, height: 32 }
|
|
1135
1571
|
}
|
|
1136
1572
|
]
|
|
1137
|
-
},
|
|
1573
|
+
}, K1 = `<svg width="24" height="24" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1138
1574
|
<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>`,
|
|
1575
|
+
</svg>`, J1 = `<svg fill="currentColor" width="120" height="120" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg">
|
|
1140
1576
|
<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
1577
|
<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
1578
|
<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>`,
|
|
1579
|
+
</svg>`, Q1 = `<svg width="126" height="80" viewBox="0 0 126 80" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1144
1580
|
<g clip-path="url(#clip0_10250_27631)">
|
|
1145
1581
|
<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
1582
|
<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 +1594,41 @@ const S2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
1158
1594
|
<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
1595
|
</clipPath>
|
|
1160
1596
|
</defs>
|
|
1161
|
-
</svg>`,
|
|
1597
|
+
</svg>`, en = `<svg width="96" height="48" viewBox="0 0 96 48" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1162
1598
|
<rect x="8" y="30" width="32" height="2" fill="currentColor"></rect>
|
|
1163
1599
|
<rect x="8" y="12" width="32" height="8" rx="4" fill="currentColor"></rect>
|
|
1164
1600
|
<rect x="56" y="12" width="32" height="8" rx="4" fill="currentColor"></rect>
|
|
1165
|
-
</svg>`,
|
|
1601
|
+
</svg>`, tn = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1166
1602
|
<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
1603
|
<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
1604
|
</svg>
|
|
1169
|
-
`,
|
|
1605
|
+
`, nn = {
|
|
1170
1606
|
name: "Interactive",
|
|
1171
1607
|
templates: [
|
|
1172
1608
|
{
|
|
1173
1609
|
name: "Button",
|
|
1174
|
-
template: /* @__PURE__ */
|
|
1175
|
-
|
|
1610
|
+
template: /* @__PURE__ */ n(
|
|
1611
|
+
k,
|
|
1176
1612
|
{
|
|
1177
1613
|
dangerouslySetInnerHTML: {
|
|
1178
1614
|
__html: "Button"
|
|
1179
1615
|
},
|
|
1180
|
-
is:
|
|
1616
|
+
is: Ue
|
|
1181
1617
|
}
|
|
1182
1618
|
),
|
|
1183
|
-
icon: { source:
|
|
1619
|
+
icon: { source: K1, height: 32 }
|
|
1184
1620
|
},
|
|
1185
1621
|
{
|
|
1186
1622
|
name: "Link",
|
|
1187
|
-
template: /* @__PURE__ */
|
|
1188
|
-
icon: { source:
|
|
1623
|
+
template: /* @__PURE__ */ n(k, { is: Xe }),
|
|
1624
|
+
icon: { source: tn, height: 32 }
|
|
1189
1625
|
},
|
|
1190
1626
|
{
|
|
1191
1627
|
name: "Carousel",
|
|
1192
|
-
template: /* @__PURE__ */
|
|
1193
|
-
|
|
1628
|
+
template: /* @__PURE__ */ n(
|
|
1629
|
+
k,
|
|
1194
1630
|
{
|
|
1195
|
-
is:
|
|
1631
|
+
is: xe,
|
|
1196
1632
|
slidesPerView: 2,
|
|
1197
1633
|
spaceBetween: 8,
|
|
1198
1634
|
md: {
|
|
@@ -1201,33 +1637,33 @@ const S2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
1201
1637
|
lg: {
|
|
1202
1638
|
slidesPerView: 4
|
|
1203
1639
|
},
|
|
1204
|
-
children:
|
|
1640
|
+
children: F(6).map((e) => /* @__PURE__ */ n(k, { is: r2, canvas: !0 }, e))
|
|
1205
1641
|
}
|
|
1206
1642
|
),
|
|
1207
|
-
icon: { source:
|
|
1643
|
+
icon: { source: J1, height: 32 }
|
|
1208
1644
|
},
|
|
1209
1645
|
{
|
|
1210
1646
|
name: "Marquee",
|
|
1211
|
-
template: /* @__PURE__ */
|
|
1212
|
-
icon: { source:
|
|
1647
|
+
template: /* @__PURE__ */ n(k, { is: be, children: F(10).map((e) => /* @__PURE__ */ n(k, { canvas: !0, is: o2 }, e)) }),
|
|
1648
|
+
icon: { source: Q1, height: 32 }
|
|
1213
1649
|
},
|
|
1214
1650
|
{
|
|
1215
1651
|
name: "Tabs",
|
|
1216
1652
|
template: /* @__PURE__ */ g(
|
|
1217
|
-
|
|
1653
|
+
k,
|
|
1218
1654
|
{
|
|
1219
|
-
is:
|
|
1655
|
+
is: Ke,
|
|
1220
1656
|
sx: {
|
|
1221
1657
|
width: "100%"
|
|
1222
1658
|
},
|
|
1223
1659
|
children: [
|
|
1224
|
-
/* @__PURE__ */
|
|
1660
|
+
/* @__PURE__ */ n(k, { is: D2, children: F(3).map((e) => {
|
|
1225
1661
|
const t = `Tab ${e + 1}`;
|
|
1226
|
-
return /* @__PURE__ */
|
|
1227
|
-
|
|
1662
|
+
return /* @__PURE__ */ n(
|
|
1663
|
+
k,
|
|
1228
1664
|
{
|
|
1229
1665
|
canvas: !0,
|
|
1230
|
-
is:
|
|
1666
|
+
is: H2,
|
|
1231
1667
|
dangerouslySetInnerHTML: {
|
|
1232
1668
|
__html: t
|
|
1233
1669
|
}
|
|
@@ -1235,28 +1671,28 @@ const S2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
1235
1671
|
e
|
|
1236
1672
|
);
|
|
1237
1673
|
}) }),
|
|
1238
|
-
/* @__PURE__ */
|
|
1674
|
+
/* @__PURE__ */ n(k, { is: j2, children: F(3).map((e) => /* @__PURE__ */ n(k, { canvas: !0, is: _2 }, e)) })
|
|
1239
1675
|
]
|
|
1240
1676
|
}
|
|
1241
1677
|
),
|
|
1242
|
-
icon: { source:
|
|
1678
|
+
icon: { source: en, height: 40 }
|
|
1243
1679
|
}
|
|
1244
1680
|
]
|
|
1245
|
-
},
|
|
1681
|
+
}, rn = `<svg fill="currentColor" width="24" height="24" viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg">
|
|
1246
1682
|
<title>h</title>
|
|
1247
1683
|
<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
1684
|
</svg>
|
|
1249
|
-
`,
|
|
1685
|
+
`, on = `<svg fill="currentColor" width="24" height="24" viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg">
|
|
1250
1686
|
<title>p</title>
|
|
1251
1687
|
<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
1688
|
</svg>
|
|
1253
|
-
`,
|
|
1689
|
+
`, sn = {
|
|
1254
1690
|
name: "Text",
|
|
1255
1691
|
templates: [
|
|
1256
1692
|
{
|
|
1257
1693
|
name: "Heading",
|
|
1258
|
-
template: /* @__PURE__ */
|
|
1259
|
-
|
|
1694
|
+
template: /* @__PURE__ */ n(
|
|
1695
|
+
k,
|
|
1260
1696
|
{
|
|
1261
1697
|
dangerouslySetInnerHTML: {
|
|
1262
1698
|
__html: "Your heading text goes here"
|
|
@@ -1264,41 +1700,41 @@ const S2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
1264
1700
|
as: "h2",
|
|
1265
1701
|
sizeVariant: "4xl",
|
|
1266
1702
|
md: { sizeVariant: "5xl" },
|
|
1267
|
-
is:
|
|
1703
|
+
is: ze
|
|
1268
1704
|
}
|
|
1269
1705
|
),
|
|
1270
|
-
icon: { source:
|
|
1706
|
+
icon: { source: rn, height: 32 }
|
|
1271
1707
|
},
|
|
1272
1708
|
{
|
|
1273
1709
|
name: "Paragraph",
|
|
1274
|
-
template: /* @__PURE__ */
|
|
1275
|
-
|
|
1710
|
+
template: /* @__PURE__ */ n(
|
|
1711
|
+
k,
|
|
1276
1712
|
{
|
|
1277
1713
|
dangerouslySetInnerHTML: {
|
|
1278
1714
|
__html: "Replace this text with your content"
|
|
1279
1715
|
},
|
|
1280
|
-
is:
|
|
1716
|
+
is: ae
|
|
1281
1717
|
}
|
|
1282
1718
|
),
|
|
1283
|
-
icon: { source:
|
|
1719
|
+
icon: { source: on, height: 32 }
|
|
1284
1720
|
}
|
|
1285
1721
|
]
|
|
1286
|
-
},
|
|
1722
|
+
}, an = `<svg width="96" height="48" viewBox="0 0 96 48" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1287
1723
|
<path opacity="0.96" d="M6.66797 28.1193C6.02592 28.1193 5.47905 27.9446 5.02734 27.5952C4.57564 27.2429 4.23047 26.733 3.99183 26.0653C3.7532 25.3949 3.63388 24.5852 3.63388 23.6364C3.63388 22.6932 3.7532 21.8878 3.99183 21.2202C4.23331 20.5497 4.5799 20.0384 5.03161 19.6861C5.48615 19.331 6.03161 19.1534 6.66797 19.1534C7.30433 19.1534 7.84837 19.331 8.30007 19.6861C8.75462 20.0384 9.10121 20.5497 9.33984 21.2202C9.58132 21.8878 9.70206 22.6932 9.70206 23.6364C9.70206 24.5852 9.58274 25.3949 9.34411 26.0653C9.10547 26.733 8.7603 27.2429 8.30859 27.5952C7.85689 27.9446 7.31001 28.1193 6.66797 28.1193ZM6.66797 27.1818C7.30433 27.1818 7.79865 26.875 8.15092 26.2614C8.5032 25.6477 8.67933 24.7727 8.67933 23.6364C8.67933 22.8807 8.59837 22.2372 8.43643 21.706C8.27734 21.1747 8.04723 20.7699 7.74609 20.4915C7.4478 20.2131 7.08842 20.0739 6.66797 20.0739C6.03729 20.0739 5.54439 20.3849 5.18928 21.0071C4.83416 21.6264 4.65661 22.5028 4.65661 23.6364C4.65661 24.392 4.73615 25.0341 4.89524 25.5625C5.05433 26.0909 5.28303 26.4929 5.58132 26.7685C5.88246 27.044 6.24467 27.1818 6.66797 27.1818ZM14.168 28.1193C13.5259 28.1193 12.979 27.9446 12.5273 27.5952C12.0756 27.2429 11.7305 26.733 11.4918 26.0653C11.2532 25.3949 11.1339 24.5852 11.1339 23.6364C11.1339 22.6932 11.2532 21.8878 11.4918 21.2202C11.7333 20.5497 12.0799 20.0384 12.5316 19.6861C12.9862 19.331 13.5316 19.1534 14.168 19.1534C14.8043 19.1534 15.3484 19.331 15.8001 19.6861C16.2546 20.0384 16.6012 20.5497 16.8398 21.2202C17.0813 21.8878 17.2021 22.6932 17.2021 23.6364C17.2021 24.5852 17.0827 25.3949 16.8441 26.0653C16.6055 26.733 16.2603 27.2429 15.8086 27.5952C15.3569 27.9446 14.81 28.1193 14.168 28.1193ZM14.168 27.1818C14.8043 27.1818 15.2987 26.875 15.6509 26.2614C16.0032 25.6477 16.1793 24.7727 16.1793 23.6364C16.1793 22.8807 16.0984 22.2372 15.9364 21.706C15.7773 21.1747 15.5472 20.7699 15.2461 20.4915C14.9478 20.2131 14.5884 20.0739 14.168 20.0739C13.5373 20.0739 13.0444 20.3849 12.6893 21.0071C12.3342 21.6264 12.1566 22.5028 12.1566 23.6364C12.1566 24.392 12.2362 25.0341 12.3952 25.5625C12.5543 26.0909 12.783 26.4929 13.0813 26.7685C13.3825 27.044 13.7447 27.1818 14.168 27.1818ZM22.9464 26.8835C22.7362 26.8835 22.5558 26.8082 22.4052 26.6577C22.2546 26.5071 22.1793 26.3267 22.1793 26.1165C22.1793 25.9062 22.2546 25.7259 22.4052 25.5753C22.5558 25.4247 22.7362 25.3494 22.9464 25.3494C23.1566 25.3494 23.337 25.4247 23.4876 25.5753C23.6381 25.7259 23.7134 25.9062 23.7134 26.1165C23.7134 26.2557 23.6779 26.3835 23.6069 26.5C23.5387 26.6165 23.4464 26.7102 23.3299 26.7812C23.2163 26.8494 23.0884 26.8835 22.9464 26.8835ZM22.9464 22.4688C22.7362 22.4688 22.5558 22.3935 22.4052 22.2429C22.2546 22.0923 22.1793 21.9119 22.1793 21.7017C22.1793 21.4915 22.2546 21.3111 22.4052 21.1605C22.5558 21.0099 22.7362 20.9347 22.9464 20.9347C23.1566 20.9347 23.337 21.0099 23.4876 21.1605C23.6381 21.3111 23.7134 21.4915 23.7134 21.7017C23.7134 21.8409 23.6779 21.9688 23.6069 22.0852C23.5387 22.2017 23.4464 22.2955 23.3299 22.3665C23.2163 22.4347 23.0884 22.4688 22.9464 22.4688ZM31.7227 28.1193C31.0806 28.1193 30.5337 27.9446 30.082 27.5952C29.6303 27.2429 29.2852 26.733 29.0465 26.0653C28.8079 25.3949 28.6886 24.5852 28.6886 23.6364C28.6886 22.6932 28.8079 21.8878 29.0465 21.2202C29.288 20.5497 29.6346 20.0384 30.0863 19.6861C30.5408 19.331 31.0863 19.1534 31.7227 19.1534C32.359 19.1534 32.9031 19.331 33.3548 19.6861C33.8093 20.0384 34.1559 20.5497 34.3945 21.2202C34.636 21.8878 34.7567 22.6932 34.7567 23.6364C34.7567 24.5852 34.6374 25.3949 34.3988 26.0653C34.1602 26.733 33.815 27.2429 33.3633 27.5952C32.9116 27.9446 32.3647 28.1193 31.7227 28.1193ZM31.7227 27.1818C32.359 27.1818 32.8533 26.875 33.2056 26.2614C33.5579 25.6477 33.734 24.7727 33.734 23.6364C33.734 22.8807 33.6531 22.2372 33.4911 21.706C33.332 21.1747 33.1019 20.7699 32.8008 20.4915C32.5025 20.2131 32.1431 20.0739 31.7227 20.0739C31.092 20.0739 30.5991 20.3849 30.244 21.0071C29.8888 21.6264 29.7113 22.5028 29.7113 23.6364C29.7113 24.392 29.7908 25.0341 29.9499 25.5625C30.109 26.0909 30.3377 26.4929 30.636 26.7685C30.9371 27.044 31.2994 27.1818 31.7227 27.1818ZM39.2227 28.1193C38.5806 28.1193 38.0337 27.9446 37.582 27.5952C37.1303 27.2429 36.7852 26.733 36.5465 26.0653C36.3079 25.3949 36.1886 24.5852 36.1886 23.6364C36.1886 22.6932 36.3079 21.8878 36.5465 21.2202C36.788 20.5497 37.1346 20.0384 37.5863 19.6861C38.0408 19.331 38.5863 19.1534 39.2227 19.1534C39.859 19.1534 40.4031 19.331 40.8548 19.6861C41.3093 20.0384 41.6559 20.5497 41.8945 21.2202C42.136 21.8878 42.2567 22.6932 42.2567 23.6364C42.2567 24.5852 42.1374 25.3949 41.8988 26.0653C41.6602 26.733 41.315 27.2429 40.8633 27.5952C40.4116 27.9446 39.8647 28.1193 39.2227 28.1193ZM39.2227 27.1818C39.859 27.1818 40.3533 26.875 40.7056 26.2614C41.0579 25.6477 41.234 24.7727 41.234 23.6364C41.234 22.8807 41.1531 22.2372 40.9911 21.706C40.832 21.1747 40.6019 20.7699 40.3008 20.4915C40.0025 20.2131 39.6431 20.0739 39.2227 20.0739C38.592 20.0739 38.0991 20.3849 37.744 21.0071C37.3888 21.6264 37.2113 22.5028 37.2113 23.6364C37.2113 24.392 37.2908 25.0341 37.4499 25.5625C37.609 26.0909 37.8377 26.4929 38.136 26.7685C38.4371 27.044 38.7994 27.1818 39.2227 27.1818ZM48.0011 26.8835C47.7908 26.8835 47.6104 26.8082 47.4599 26.6577C47.3093 26.5071 47.234 26.3267 47.234 26.1165C47.234 25.9062 47.3093 25.7259 47.4599 25.5753C47.6104 25.4247 47.7908 25.3494 48.0011 25.3494C48.2113 25.3494 48.3917 25.4247 48.5423 25.5753C48.6928 25.7259 48.7681 25.9062 48.7681 26.1165C48.7681 26.2557 48.7326 26.3835 48.6616 26.5C48.5934 26.6165 48.5011 26.7102 48.3846 26.7812C48.271 26.8494 48.1431 26.8835 48.0011 26.8835ZM48.0011 22.4688C47.7908 22.4688 47.6104 22.3935 47.4599 22.2429C47.3093 22.0923 47.234 21.9119 47.234 21.7017C47.234 21.4915 47.3093 21.3111 47.4599 21.1605C47.6104 21.0099 47.7908 20.9347 48.0011 20.9347C48.2113 20.9347 48.3917 21.0099 48.5423 21.1605C48.6928 21.3111 48.7681 21.4915 48.7681 21.7017C48.7681 21.8409 48.7326 21.9688 48.6616 22.0852C48.5934 22.2017 48.5011 22.2955 48.3846 22.3665C48.271 22.4347 48.1431 22.4688 48.0011 22.4688ZM56.7773 28.1193C56.1353 28.1193 55.5884 27.9446 55.1367 27.5952C54.685 27.2429 54.3398 26.733 54.1012 26.0653C53.8626 25.3949 53.7433 24.5852 53.7433 23.6364C53.7433 22.6932 53.8626 21.8878 54.1012 21.2202C54.3427 20.5497 54.6893 20.0384 55.141 19.6861C55.5955 19.331 56.141 19.1534 56.7773 19.1534C57.4137 19.1534 57.9577 19.331 58.4094 19.6861C58.864 20.0384 59.2106 20.5497 59.4492 21.2202C59.6907 21.8878 59.8114 22.6932 59.8114 23.6364C59.8114 24.5852 59.6921 25.3949 59.4535 26.0653C59.2148 26.733 58.8697 27.2429 58.418 27.5952C57.9663 27.9446 57.4194 28.1193 56.7773 28.1193ZM56.7773 27.1818C57.4137 27.1818 57.908 26.875 58.2603 26.2614C58.6126 25.6477 58.7887 24.7727 58.7887 23.6364C58.7887 22.8807 58.7077 22.2372 58.5458 21.706C58.3867 21.1747 58.1566 20.7699 57.8555 20.4915C57.5572 20.2131 57.1978 20.0739 56.7773 20.0739C56.1467 20.0739 55.6538 20.3849 55.2987 21.0071C54.9435 21.6264 54.766 22.5028 54.766 23.6364C54.766 24.392 54.8455 25.0341 55.0046 25.5625C55.1637 26.0909 55.3924 26.4929 55.6907 26.7685C55.9918 27.044 56.354 27.1818 56.7773 27.1818ZM64.2773 28.1193C63.6353 28.1193 63.0884 27.9446 62.6367 27.5952C62.185 27.2429 61.8398 26.733 61.6012 26.0653C61.3626 25.3949 61.2433 24.5852 61.2433 23.6364C61.2433 22.6932 61.3626 21.8878 61.6012 21.2202C61.8427 20.5497 62.1893 20.0384 62.641 19.6861C63.0955 19.331 63.641 19.1534 64.2773 19.1534C64.9137 19.1534 65.4577 19.331 65.9094 19.6861C66.364 20.0384 66.7106 20.5497 66.9492 21.2202C67.1907 21.8878 67.3114 22.6932 67.3114 23.6364C67.3114 24.5852 67.1921 25.3949 66.9535 26.0653C66.7148 26.733 66.3697 27.2429 65.918 27.5952C65.4663 27.9446 64.9194 28.1193 64.2773 28.1193ZM64.2773 27.1818C64.9137 27.1818 65.408 26.875 65.7603 26.2614C66.1126 25.6477 66.2887 24.7727 66.2887 23.6364C66.2887 22.8807 66.2077 22.2372 66.0458 21.706C65.8867 21.1747 65.6566 20.7699 65.3555 20.4915C65.0572 20.2131 64.6978 20.0739 64.2773 20.0739C63.6467 20.0739 63.1538 20.3849 62.7987 21.0071C62.4435 21.6264 62.266 22.5028 62.266 23.6364C62.266 24.392 62.3455 25.0341 62.5046 25.5625C62.6637 26.0909 62.8924 26.4929 63.1907 26.7685C63.4918 27.044 63.854 27.1818 64.2773 27.1818ZM73.0558 26.8835C72.8455 26.8835 72.6651 26.8082 72.5146 26.6577C72.364 26.5071 72.2887 26.3267 72.2887 26.1165C72.2887 25.9062 72.364 25.7259 72.5146 25.5753C72.6651 25.4247 72.8455 25.3494 73.0558 25.3494C73.266 25.3494 73.4464 25.4247 73.5969 25.5753C73.7475 25.7259 73.8228 25.9062 73.8228 26.1165C73.8228 26.2557 73.7873 26.3835 73.7163 26.5C73.6481 26.6165 73.5558 26.7102 73.4393 26.7812C73.3256 26.8494 73.1978 26.8835 73.0558 26.8835ZM73.0558 22.4688C72.8455 22.4688 72.6651 22.3935 72.5146 22.2429C72.364 22.0923 72.2887 21.9119 72.2887 21.7017C72.2887 21.4915 72.364 21.3111 72.5146 21.1605C72.6651 21.0099 72.8455 20.9347 73.0558 20.9347C73.266 20.9347 73.4464 21.0099 73.5969 21.1605C73.7475 21.3111 73.8228 21.4915 73.8228 21.7017C73.8228 21.8409 73.7873 21.9688 73.7163 22.0852C73.6481 22.2017 73.5558 22.2955 73.4393 22.3665C73.3256 22.4347 73.1978 22.4688 73.0558 22.4688ZM81.832 28.1193C81.19 28.1193 80.6431 27.9446 80.1914 27.5952C79.7397 27.2429 79.3945 26.733 79.1559 26.0653C78.9173 25.3949 78.7979 24.5852 78.7979 23.6364C78.7979 22.6932 78.9173 21.8878 79.1559 21.2202C79.3974 20.5497 79.744 20.0384 80.1957 19.6861C80.6502 19.331 81.1957 19.1534 81.832 19.1534C82.4684 19.1534 83.0124 19.331 83.4641 19.6861C83.9187 20.0384 84.2653 20.5497 84.5039 21.2202C84.7454 21.8878 84.8661 22.6932 84.8661 23.6364C84.8661 24.5852 84.7468 25.3949 84.5082 26.0653C84.2695 26.733 83.9244 27.2429 83.4727 27.5952C83.021 27.9446 82.4741 28.1193 81.832 28.1193ZM81.832 27.1818C82.4684 27.1818 82.9627 26.875 83.315 26.2614C83.6673 25.6477 83.8434 24.7727 83.8434 23.6364C83.8434 22.8807 83.7624 22.2372 83.6005 21.706C83.4414 21.1747 83.2113 20.7699 82.9102 20.4915C82.6119 20.2131 82.2525 20.0739 81.832 20.0739C81.2013 20.0739 80.7085 20.3849 80.3533 21.0071C79.9982 21.6264 79.8207 22.5028 79.8207 23.6364C79.8207 24.392 79.9002 25.0341 80.0593 25.5625C80.2184 26.0909 80.4471 26.4929 80.7454 26.7685C81.0465 27.044 81.4087 27.1818 81.832 27.1818ZM89.332 28.1193C88.69 28.1193 88.1431 27.9446 87.6914 27.5952C87.2397 27.2429 86.8945 26.733 86.6559 26.0653C86.4173 25.3949 86.2979 24.5852 86.2979 23.6364C86.2979 22.6932 86.4173 21.8878 86.6559 21.2202C86.8974 20.5497 87.244 20.0384 87.6957 19.6861C88.1502 19.331 88.6957 19.1534 89.332 19.1534C89.9684 19.1534 90.5124 19.331 90.9641 19.6861C91.4187 20.0384 91.7653 20.5497 92.0039 21.2202C92.2454 21.8878 92.3661 22.6932 92.3661 23.6364C92.3661 24.5852 92.2468 25.3949 92.0082 26.0653C91.7695 26.733 91.4244 27.2429 90.9727 27.5952C90.521 27.9446 89.9741 28.1193 89.332 28.1193ZM89.332 27.1818C89.9684 27.1818 90.4627 26.875 90.815 26.2614C91.1673 25.6477 91.3434 24.7727 91.3434 23.6364C91.3434 22.8807 91.2624 22.2372 91.1005 21.706C90.9414 21.1747 90.7113 20.7699 90.4102 20.4915C90.1119 20.2131 89.7525 20.0739 89.332 20.0739C88.7013 20.0739 88.2085 20.3849 87.8533 21.0071C87.4982 21.6264 87.3207 22.5028 87.3207 23.6364C87.3207 24.392 87.4002 25.0341 87.5593 25.5625C87.7184 26.0909 87.9471 26.4929 88.2454 26.7685C88.5465 27.044 88.9087 27.1818 89.332 27.1818Z" fill="#F9F9F9"/>
|
|
1288
1724
|
</svg>
|
|
1289
|
-
`,
|
|
1725
|
+
`, cn = {
|
|
1290
1726
|
name: "Utilities",
|
|
1291
1727
|
templates: [
|
|
1292
1728
|
{
|
|
1293
1729
|
name: "Countdown timer",
|
|
1294
|
-
template: /* @__PURE__ */
|
|
1295
|
-
|
|
1730
|
+
template: /* @__PURE__ */ n(
|
|
1731
|
+
k,
|
|
1296
1732
|
{
|
|
1297
|
-
is:
|
|
1733
|
+
is: e2,
|
|
1298
1734
|
omit: {
|
|
1299
1735
|
days: !0
|
|
1300
1736
|
},
|
|
1301
|
-
date:
|
|
1737
|
+
date: Yt().add(1, "week").toDate(),
|
|
1302
1738
|
sx: {
|
|
1303
1739
|
justifyContent: "center",
|
|
1304
1740
|
columnGap: 8,
|
|
@@ -1310,7 +1746,7 @@ const S2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
1310
1746
|
},
|
|
1311
1747
|
unitItemProps: {
|
|
1312
1748
|
sx: {
|
|
1313
|
-
backgroundColor:
|
|
1749
|
+
backgroundColor: Be("neutral.100"),
|
|
1314
1750
|
borderTopLeftRadius: 8,
|
|
1315
1751
|
borderTopRightRadius: 8,
|
|
1316
1752
|
borderBottomLeftRadius: 8,
|
|
@@ -1332,7 +1768,7 @@ const S2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
1332
1768
|
},
|
|
1333
1769
|
captionProps: {
|
|
1334
1770
|
sx: {
|
|
1335
|
-
color:
|
|
1771
|
+
color: Be("neutral.500")
|
|
1336
1772
|
}
|
|
1337
1773
|
},
|
|
1338
1774
|
units: [
|
|
@@ -1355,154 +1791,250 @@ const S2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
1355
1791
|
]
|
|
1356
1792
|
}
|
|
1357
1793
|
),
|
|
1358
|
-
icon: { source:
|
|
1794
|
+
icon: { source: an, height: 48 }
|
|
1359
1795
|
}
|
|
1360
1796
|
]
|
|
1361
|
-
},
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
],
|
|
1797
|
+
}, ln = [
|
|
1798
|
+
sn,
|
|
1799
|
+
F1,
|
|
1800
|
+
X1,
|
|
1801
|
+
nn,
|
|
1802
|
+
G1,
|
|
1803
|
+
$1,
|
|
1804
|
+
cn
|
|
1805
|
+
], dn = '<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>', hn = {
|
|
1370
1806
|
name: "Basics",
|
|
1371
|
-
icon: { source:
|
|
1372
|
-
renderer: () => /* @__PURE__ */
|
|
1373
|
-
},
|
|
1374
|
-
const t = [
|
|
1375
|
-
return /* @__PURE__ */ g("div", {
|
|
1376
|
-
/* @__PURE__ */
|
|
1377
|
-
/* @__PURE__ */
|
|
1807
|
+
icon: { source: dn },
|
|
1808
|
+
renderer: () => /* @__PURE__ */ n(pn, { elementGroups: ln })
|
|
1809
|
+
}, un = ({ groups: e }) => {
|
|
1810
|
+
const t = [hn, ...e ?? []];
|
|
1811
|
+
return /* @__PURE__ */ g("div", { css: { display: "flex", flexDirection: "column", height: "100%" }, children: [
|
|
1812
|
+
/* @__PURE__ */ n("div", { css: { display: "flex", padding: 8, alignItems: "center", gap: 12 }, children: /* @__PURE__ */ n(s2, { fullWidth: !0, placeholder: "Search...", prefix: /* @__PURE__ */ n(M, { source: D1 }) }) }),
|
|
1813
|
+
/* @__PURE__ */ n(
|
|
1814
|
+
ye,
|
|
1815
|
+
{
|
|
1816
|
+
css: {
|
|
1817
|
+
paddingBlock: 8,
|
|
1818
|
+
borderTopWidth: 1,
|
|
1819
|
+
borderTopStyle: "solid",
|
|
1820
|
+
borderColor: p.palette.white["1s"],
|
|
1821
|
+
flex: 1
|
|
1822
|
+
},
|
|
1823
|
+
children: t.map((o, r) => /* @__PURE__ */ n(gn, { group: o }, r))
|
|
1824
|
+
}
|
|
1825
|
+
)
|
|
1378
1826
|
] });
|
|
1379
|
-
},
|
|
1380
|
-
const [t, o] =
|
|
1381
|
-
return /* @__PURE__ */ g("div", {
|
|
1382
|
-
/* @__PURE__ */
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1827
|
+
}, pn = ({ elementGroups: e }) => /* @__PURE__ */ n("div", { css: { display: "flex", flexDirection: "column", gap: 8 }, children: e.map((t, o) => /* @__PURE__ */ n(Cn, { group: t }, o)) }), Cn = ({ group: e }) => {
|
|
1828
|
+
const [t, o] = C2(!0), { actions: r, connectors: i } = O();
|
|
1829
|
+
return /* @__PURE__ */ g("div", { css: { display: "flex", flexDirection: "column", ...p.text.sm }, children: [
|
|
1830
|
+
/* @__PURE__ */ n(n2, { onClick: o, css: { paddingInline: 0, backgroundColor: "transparent" }, children: /* @__PURE__ */ g(
|
|
1831
|
+
"div",
|
|
1832
|
+
{
|
|
1833
|
+
css: { display: "flex", alignItems: "center", justifyContent: "space-between", flex: 1, ...p.text.sm },
|
|
1834
|
+
children: [
|
|
1835
|
+
e.name,
|
|
1836
|
+
/* @__PURE__ */ n(
|
|
1837
|
+
M,
|
|
1838
|
+
{
|
|
1839
|
+
source: h2,
|
|
1840
|
+
css: [{ transition: "transform" }, !t && { transform: "rotate(180deg)" }]
|
|
1841
|
+
}
|
|
1842
|
+
)
|
|
1843
|
+
]
|
|
1844
|
+
}
|
|
1845
|
+
) }),
|
|
1846
|
+
/* @__PURE__ */ n(F2, { open: t, children: /* @__PURE__ */ n("div", { css: { display: "grid", paddingBlock: 8, gap: 16, gridTemplateColumns: "repeat(2, minmax(0, 1fr))" }, children: e.templates?.map((s, c) => /* @__PURE__ */ g("div", { css: { display: "flex", flexDirection: "column", gap: 4 }, children: [
|
|
1847
|
+
/* @__PURE__ */ n(
|
|
1396
1848
|
"div",
|
|
1397
1849
|
{
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1850
|
+
css: {
|
|
1851
|
+
position: "relative",
|
|
1852
|
+
display: "flex",
|
|
1853
|
+
padding: 4,
|
|
1854
|
+
borderRadius: 8,
|
|
1855
|
+
backgroundColor: p.palette.ink["6s"],
|
|
1856
|
+
color: p.palette.white["5s"],
|
|
1857
|
+
pointerEvents: "auto",
|
|
1858
|
+
overflow: "hidden",
|
|
1859
|
+
flexDirection: "column",
|
|
1860
|
+
gap: 4,
|
|
1861
|
+
alignItems: "center",
|
|
1862
|
+
justifyContent: "center",
|
|
1863
|
+
cursor: "grabbing",
|
|
1864
|
+
opacity: 1,
|
|
1865
|
+
aspectRatio: "16 / 9",
|
|
1866
|
+
transition: "transform",
|
|
1867
|
+
"&:hover": { transform: "scale(1.05)" },
|
|
1868
|
+
"&::after": {
|
|
1869
|
+
content: '""',
|
|
1870
|
+
position: "absolute",
|
|
1871
|
+
inset: 0,
|
|
1872
|
+
backgroundColor: p.palette.white["1s"]
|
|
1873
|
+
}
|
|
1874
|
+
},
|
|
1875
|
+
ref: (a) => {
|
|
1876
|
+
a && i.create(a, s.template, {
|
|
1877
|
+
onCreate(l) {
|
|
1878
|
+
(typeof s.autoFocus == "function" ? s.autoFocus(l) : s.autoFocus) && r.selectNode(l.rootNodeId), s.onCreate?.(l);
|
|
1407
1879
|
}
|
|
1408
1880
|
});
|
|
1409
1881
|
},
|
|
1410
|
-
children: s.icon && /* @__PURE__ */
|
|
1882
|
+
children: s.icon && /* @__PURE__ */ n(O2, { width: void 0, height: void 0, ...s.icon })
|
|
1411
1883
|
}
|
|
1412
1884
|
),
|
|
1413
|
-
/* @__PURE__ */
|
|
1414
|
-
] },
|
|
1885
|
+
/* @__PURE__ */ n("p", { css: { marginInline: "auto", textAlign: "center", ...z2.xs }, children: s.name })
|
|
1886
|
+
] }, c)) }) })
|
|
1415
1887
|
] });
|
|
1416
|
-
},
|
|
1417
|
-
const [t, o] =
|
|
1888
|
+
}, gn = ({ group: e }) => {
|
|
1889
|
+
const [t, o] = H(!1), { refs: r, floatingStyles: i, context: s } = Wt({
|
|
1418
1890
|
open: t,
|
|
1419
1891
|
onOpenChange: o,
|
|
1420
1892
|
placement: "right-start",
|
|
1421
1893
|
middleware: [
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
apply({ elements:
|
|
1425
|
-
const
|
|
1426
|
-
zIndex: `${
|
|
1427
|
-
height: `${
|
|
1894
|
+
Dt(),
|
|
1895
|
+
Ht({
|
|
1896
|
+
apply({ elements: m }) {
|
|
1897
|
+
const w = {
|
|
1898
|
+
zIndex: `${p2}`,
|
|
1899
|
+
height: `${m.reference.getBoundingClientRect().height}px`
|
|
1428
1900
|
};
|
|
1429
|
-
Object.assign(
|
|
1901
|
+
Object.assign(m.floating.style, w);
|
|
1430
1902
|
}
|
|
1431
1903
|
})
|
|
1432
1904
|
],
|
|
1433
|
-
whileElementsMounted:
|
|
1905
|
+
whileElementsMounted: Pt
|
|
1434
1906
|
});
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
}, [
|
|
1438
|
-
const
|
|
1439
|
-
return /* @__PURE__ */ g(
|
|
1907
|
+
K(() => {
|
|
1908
|
+
r.setPositionReference(document.querySelector("aside"));
|
|
1909
|
+
}, [r]);
|
|
1910
|
+
const c = jt(s, { move: !1, handleClose: _t() }), a = Ft(s), l = Ot(s), f = zt(s), { getReferenceProps: d, getFloatingProps: h } = Zt([c, a, l, f]), u = e.renderer;
|
|
1911
|
+
return /* @__PURE__ */ g(ce, { children: [
|
|
1440
1912
|
/* @__PURE__ */ g(
|
|
1441
1913
|
"button",
|
|
1442
1914
|
{
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1915
|
+
css: {
|
|
1916
|
+
display: "flex",
|
|
1917
|
+
padding: 8,
|
|
1918
|
+
alignItems: "center",
|
|
1919
|
+
gap: 8,
|
|
1920
|
+
borderRadius: 8,
|
|
1921
|
+
textAlign: "left",
|
|
1922
|
+
width: "100%",
|
|
1923
|
+
color: p.palette.white["5s"],
|
|
1924
|
+
"&:hover": {
|
|
1925
|
+
color: p.palette.white["6s"],
|
|
1926
|
+
backgroundColor: p.palette.white["1s"],
|
|
1927
|
+
fontWeight: 500
|
|
1928
|
+
}
|
|
1929
|
+
},
|
|
1930
|
+
...d(),
|
|
1931
|
+
ref: r.setReference,
|
|
1449
1932
|
children: [
|
|
1450
|
-
e.icon && /* @__PURE__ */
|
|
1451
|
-
/* @__PURE__ */
|
|
1452
|
-
|
|
1933
|
+
e.icon && /* @__PURE__ */ n("div", { css: { padding: 6, borderRadius: 8, backgroundColor: p.palette.white["1s"] }, children: /* @__PURE__ */ n(M, { ...e.icon }) }),
|
|
1934
|
+
/* @__PURE__ */ n(
|
|
1935
|
+
"span",
|
|
1936
|
+
{
|
|
1937
|
+
css: {
|
|
1938
|
+
overflow: "hidden",
|
|
1939
|
+
textOverflow: "ellipsis",
|
|
1940
|
+
whiteSpace: "nowrap",
|
|
1941
|
+
flex: 1
|
|
1942
|
+
},
|
|
1943
|
+
children: e.name
|
|
1944
|
+
}
|
|
1945
|
+
),
|
|
1946
|
+
/* @__PURE__ */ n(M, { css: { transform: "rotate(180deg)" }, source: H1 })
|
|
1453
1947
|
]
|
|
1454
1948
|
}
|
|
1455
1949
|
),
|
|
1456
|
-
t && /* @__PURE__ */
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1950
|
+
t && /* @__PURE__ */ n(u2, { children: /* @__PURE__ */ n("div", { style: i, ...h(), ref: r.setFloating, children: /* @__PURE__ */ g(
|
|
1951
|
+
"div",
|
|
1952
|
+
{
|
|
1953
|
+
css: {
|
|
1954
|
+
display: "flex",
|
|
1955
|
+
flexDirection: "column",
|
|
1956
|
+
height: "100%",
|
|
1957
|
+
backgroundColor: p.palette.ink["6s"],
|
|
1958
|
+
color: p.palette.white["6s"],
|
|
1959
|
+
borderLeftWidth: 1,
|
|
1960
|
+
borderLeftStyle: "solid",
|
|
1961
|
+
borderTopWidth: 1,
|
|
1962
|
+
borderTopStyle: "solid",
|
|
1963
|
+
borderColor: p.palette.white["2s"],
|
|
1964
|
+
...p.text.sm
|
|
1965
|
+
},
|
|
1966
|
+
children: [
|
|
1967
|
+
/* @__PURE__ */ n("div", { css: { display: "flex", paddingInline: 8, alignItems: "center", height: 48 }, children: /* @__PURE__ */ n("h6", { css: { fontWeight: 500 }, children: e.name }) }),
|
|
1968
|
+
/* @__PURE__ */ n(ye, { css: { paddingInline: 12, flex: 1 }, children: u ? /* @__PURE__ */ n(u, {}) : /* @__PURE__ */ n("div", { css: { display: "flex", flexDirection: "column", gap: 16 }, children: e.templates?.map((m, w) => /* @__PURE__ */ Vt(fn, { ...m, key: w })) }) })
|
|
1969
|
+
]
|
|
1970
|
+
}
|
|
1971
|
+
) }) })
|
|
1460
1972
|
] });
|
|
1461
|
-
},
|
|
1462
|
-
const [,
|
|
1463
|
-
resolver:
|
|
1464
|
-
})),
|
|
1465
|
-
const
|
|
1466
|
-
let
|
|
1467
|
-
"rootNodeId" in
|
|
1468
|
-
const { rootNodeId:
|
|
1469
|
-
return Object.entries(
|
|
1470
|
-
const
|
|
1471
|
-
|
|
1472
|
-
...
|
|
1473
|
-
parent:
|
|
1474
|
-
nodes:
|
|
1973
|
+
}, fn = ({ template: e, autoFocus: t = !0, onCreate: o }) => {
|
|
1974
|
+
const [, r] = H(!1), i = U(), { actions: s, connectors: c, resolver: a, query: l } = O((d) => ({
|
|
1975
|
+
resolver: d.options.resolver
|
|
1976
|
+
})), f = H(() => {
|
|
1977
|
+
const d = typeof e == "function" ? e() : e;
|
|
1978
|
+
let h;
|
|
1979
|
+
"rootNodeId" in d ? h = d : h = l.parseReactElement(d).toNodeTree();
|
|
1980
|
+
const { rootNodeId: u, nodes: m } = h, w = {};
|
|
1981
|
+
return Object.entries(m).forEach(([C, L]) => {
|
|
1982
|
+
const b = q2(L.data, a), I = C === u ? z : C;
|
|
1983
|
+
w[I] = {
|
|
1984
|
+
...b,
|
|
1985
|
+
parent: b.parent === u ? z : b.parent,
|
|
1986
|
+
nodes: b.nodes?.map((B) => B === u ? z : B)
|
|
1475
1987
|
};
|
|
1476
|
-
}),
|
|
1988
|
+
}), w;
|
|
1477
1989
|
})[0];
|
|
1478
|
-
return /* @__PURE__ */
|
|
1990
|
+
return /* @__PURE__ */ n(
|
|
1479
1991
|
"div",
|
|
1480
1992
|
{
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1993
|
+
css: {
|
|
1994
|
+
borderRadius: 8,
|
|
1995
|
+
overflow: "hidden",
|
|
1996
|
+
cursor: "grab",
|
|
1997
|
+
borderStyle: "solid",
|
|
1998
|
+
borderWidth: 1,
|
|
1999
|
+
borderColor: p.palette.white["1s"]
|
|
2000
|
+
},
|
|
2001
|
+
ref: (d) => {
|
|
2002
|
+
d && c.create(d, e, {
|
|
2003
|
+
onCreate(h) {
|
|
2004
|
+
(typeof t == "function" ? t(h) : t) && s.selectNode(h.rootNodeId), o?.(h);
|
|
1486
2005
|
}
|
|
1487
2006
|
});
|
|
1488
2007
|
},
|
|
1489
|
-
onDragStart: () =>
|
|
1490
|
-
onDragEnd: () =>
|
|
1491
|
-
children: /* @__PURE__ */
|
|
1492
|
-
|
|
2008
|
+
onDragStart: () => r(!0),
|
|
2009
|
+
onDragEnd: () => r(!1),
|
|
2010
|
+
children: /* @__PURE__ */ n(
|
|
2011
|
+
"div",
|
|
1493
2012
|
{
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
2013
|
+
css: {
|
|
2014
|
+
position: "relative",
|
|
2015
|
+
borderRadius: 8,
|
|
2016
|
+
overflow: "hidden",
|
|
2017
|
+
pointerEvents: "none",
|
|
2018
|
+
width: 240,
|
|
2019
|
+
aspectRatio: "16 / 9"
|
|
1498
2020
|
},
|
|
1499
|
-
|
|
1500
|
-
|
|
2021
|
+
children: /* @__PURE__ */ n("div", { css: { position: "absolute", inset: 0 }, children: /* @__PURE__ */ n(
|
|
2022
|
+
b2,
|
|
2023
|
+
{
|
|
2024
|
+
containerProps: {
|
|
2025
|
+
style: {
|
|
2026
|
+
backgroundColor: i.theme.palette.background.default
|
|
2027
|
+
}
|
|
2028
|
+
},
|
|
2029
|
+
viewport: { width: Gt.md.minWidth },
|
|
2030
|
+
children: /* @__PURE__ */ n(l2, { resolver: a, children: /* @__PURE__ */ n(d2, { data: f }) })
|
|
2031
|
+
}
|
|
2032
|
+
) })
|
|
1501
2033
|
}
|
|
1502
|
-
)
|
|
2034
|
+
)
|
|
1503
2035
|
}
|
|
1504
2036
|
);
|
|
1505
|
-
},
|
|
2037
|
+
}, wn = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1506
2038
|
<path d="M12.5 2H9.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1507
2039
|
<path d="M2 9.5V12.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1508
2040
|
<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,239 +2045,439 @@ const S2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
1513
2045
|
<path d="M2 17V18C2 19.105 2.895 20 4 20H5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1514
2046
|
<path d="M20 5V4C20 2.895 19.105 2 18 2H17" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1515
2047
|
</svg>
|
|
1516
|
-
`,
|
|
2048
|
+
`, mn = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1517
2049
|
<circle cx="6.49771" cy="5.49762" r="2.50104" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1518
2050
|
<circle cx="6.49771" cy="18.503" r="2.50104" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1519
2051
|
<path d="M6.49771 7.99854V16.0019" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1520
2052
|
<circle cx="17.5023" cy="13.0006" r="2.50104" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1521
2053
|
<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
2054
|
</svg>
|
|
1523
|
-
`,
|
|
1524
|
-
const { query: t, actions: o } =
|
|
1525
|
-
id:
|
|
2055
|
+
`, kn = (e) => {
|
|
2056
|
+
const { query: t, actions: o } = O(), {
|
|
2057
|
+
id: r,
|
|
1526
2058
|
expanded: i,
|
|
1527
2059
|
actions: s,
|
|
1528
|
-
displayName:
|
|
1529
|
-
children:
|
|
1530
|
-
depth:
|
|
1531
|
-
} =
|
|
1532
|
-
expanded:
|
|
1533
|
-
displayName:
|
|
1534
|
-
})), { selected:
|
|
1535
|
-
const
|
|
2060
|
+
displayName: c,
|
|
2061
|
+
children: a,
|
|
2062
|
+
depth: l
|
|
2063
|
+
} = Kt((m) => ({
|
|
2064
|
+
expanded: m.expanded,
|
|
2065
|
+
displayName: i2(t.node(m.id).get())
|
|
2066
|
+
})), { selected: f, selectable: d } = O((m, w) => {
|
|
2067
|
+
const C = w.node(r).get();
|
|
1536
2068
|
return {
|
|
1537
|
-
selected:
|
|
1538
|
-
nodeDOM:
|
|
1539
|
-
selectable:
|
|
2069
|
+
selected: w.getEvent("selected").contains(r),
|
|
2070
|
+
nodeDOM: C.dom,
|
|
2071
|
+
selectable: $2(C)
|
|
1540
2072
|
};
|
|
1541
2073
|
});
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
}, [s,
|
|
1545
|
-
if (
|
|
1546
|
-
|
|
1547
|
-
const
|
|
1548
|
-
return
|
|
2074
|
+
K(() => {
|
|
2075
|
+
r === z && s.setExpandedState(!0);
|
|
2076
|
+
}, [s, r]), K(() => {
|
|
2077
|
+
if (a.length === 0) return;
|
|
2078
|
+
a.some((w) => {
|
|
2079
|
+
const C = t.getEvent("selected").all();
|
|
2080
|
+
return C.includes(w) ? !0 : t.node(w).descendants(!0).some((b) => C.includes(b));
|
|
1549
2081
|
}) && s.setExpandedState(!0);
|
|
1550
|
-
}, [
|
|
1551
|
-
const
|
|
1552
|
-
o.selectNode(
|
|
1553
|
-
},
|
|
1554
|
-
|
|
2082
|
+
}, [a, s, t]);
|
|
2083
|
+
const h = () => {
|
|
2084
|
+
o.selectNode(r);
|
|
2085
|
+
}, u = (m) => {
|
|
2086
|
+
m.stopPropagation(), s.toggleLayer();
|
|
1555
2087
|
};
|
|
1556
2088
|
return /* @__PURE__ */ g(
|
|
1557
2089
|
"div",
|
|
1558
2090
|
{
|
|
1559
|
-
|
|
2091
|
+
css: { paddingBlock: 4 },
|
|
1560
2092
|
children: [
|
|
1561
2093
|
/* @__PURE__ */ g(
|
|
1562
2094
|
"div",
|
|
1563
2095
|
{
|
|
1564
|
-
onClick:
|
|
2096
|
+
onClick: h,
|
|
1565
2097
|
style: {
|
|
1566
|
-
paddingLeft: Math.max(0,
|
|
2098
|
+
paddingLeft: Math.max(0, l - 1) * 16
|
|
1567
2099
|
},
|
|
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",
|
|
2100
|
+
css: [
|
|
1570
2101
|
{
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
2102
|
+
display: "flex",
|
|
2103
|
+
paddingRight: 8,
|
|
2104
|
+
paddingBlock: 4,
|
|
2105
|
+
alignItems: "center",
|
|
2106
|
+
gap: 2,
|
|
2107
|
+
borderWidth: 1,
|
|
2108
|
+
borderStyle: "solid",
|
|
2109
|
+
borderColor: p.palette.white["1s"],
|
|
2110
|
+
cursor: "pointer",
|
|
2111
|
+
borderRadius: 4,
|
|
2112
|
+
"&:hover": { backgroundColor: p.palette.white["1s"] }
|
|
2113
|
+
},
|
|
2114
|
+
!d && { pointerEvents: "none" },
|
|
2115
|
+
f && { backgroundColor: p.palette.black["7s"] },
|
|
2116
|
+
r === z && { display: "none" }
|
|
2117
|
+
],
|
|
1576
2118
|
children: [
|
|
1577
|
-
|
|
1578
|
-
|
|
2119
|
+
a.length ? /* @__PURE__ */ n(E, { css: { pointerEvents: "auto" }, onClick: u, children: /* @__PURE__ */ n(
|
|
2120
|
+
M,
|
|
1579
2121
|
{
|
|
1580
|
-
|
|
1581
|
-
"
|
|
1582
|
-
|
|
2122
|
+
css: [
|
|
2123
|
+
{ transition: "transform", transform: "rotate(-90deg)" },
|
|
2124
|
+
i && { transform: "rotate(0deg)" }
|
|
2125
|
+
],
|
|
1583
2126
|
size: 16,
|
|
1584
|
-
source:
|
|
2127
|
+
source: h2
|
|
1585
2128
|
}
|
|
1586
|
-
) }) : /* @__PURE__ */
|
|
1587
|
-
/* @__PURE__ */
|
|
2129
|
+
) }) : /* @__PURE__ */ n("div", { css: { padding: 4 }, children: /* @__PURE__ */ n(M, { size: 16, source: mn }) }),
|
|
2130
|
+
/* @__PURE__ */ n(
|
|
1588
2131
|
"span",
|
|
1589
2132
|
{
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
2133
|
+
css: [
|
|
2134
|
+
{
|
|
2135
|
+
overflow: "hidden",
|
|
2136
|
+
textOverflow: "ellipsis",
|
|
2137
|
+
whiteSpace: "nowrap",
|
|
2138
|
+
flex: 1
|
|
2139
|
+
},
|
|
2140
|
+
!d && { color: p.palette.white["3s"] }
|
|
2141
|
+
],
|
|
2142
|
+
children: c
|
|
1594
2143
|
}
|
|
1595
2144
|
)
|
|
1596
2145
|
]
|
|
1597
2146
|
}
|
|
1598
2147
|
),
|
|
1599
|
-
/* @__PURE__ */
|
|
2148
|
+
/* @__PURE__ */ n(
|
|
2149
|
+
"div",
|
|
2150
|
+
{
|
|
2151
|
+
css: {
|
|
2152
|
+
display: "flex",
|
|
2153
|
+
flexDirection: "column",
|
|
2154
|
+
gap: 4
|
|
2155
|
+
},
|
|
2156
|
+
children: e.children
|
|
2157
|
+
}
|
|
2158
|
+
)
|
|
1600
2159
|
]
|
|
1601
2160
|
}
|
|
1602
2161
|
);
|
|
1603
|
-
},
|
|
1604
|
-
const t =
|
|
1605
|
-
t.start(
|
|
2162
|
+
}, vn = ({ onClose: e }) => {
|
|
2163
|
+
const t = e1(), o = (r) => {
|
|
2164
|
+
t.start(r);
|
|
1606
2165
|
};
|
|
1607
|
-
return /* @__PURE__ */
|
|
1608
|
-
|
|
2166
|
+
return /* @__PURE__ */ n(u2, { children: /* @__PURE__ */ g(
|
|
2167
|
+
Z2.div,
|
|
1609
2168
|
{
|
|
1610
2169
|
drag: !0,
|
|
1611
2170
|
dragControls: t,
|
|
1612
2171
|
dragListener: !1,
|
|
1613
2172
|
style: { zIndex: 1e5, width: 320, height: 400, top: 80, right: 40 },
|
|
1614
|
-
|
|
2173
|
+
css: {
|
|
2174
|
+
position: "fixed",
|
|
2175
|
+
display: "flex",
|
|
2176
|
+
flexDirection: "column",
|
|
2177
|
+
borderRadius: 6,
|
|
2178
|
+
backgroundColor: p.palette.ink["6s"],
|
|
2179
|
+
borderWidth: 1,
|
|
2180
|
+
borderStyle: "solid",
|
|
2181
|
+
borderColor: p.palette.white["2s"],
|
|
2182
|
+
color: "white"
|
|
2183
|
+
},
|
|
1615
2184
|
children: [
|
|
1616
2185
|
/* @__PURE__ */ g(
|
|
1617
2186
|
"div",
|
|
1618
2187
|
{
|
|
1619
2188
|
onPointerDown: o,
|
|
1620
|
-
|
|
2189
|
+
css: {
|
|
2190
|
+
paddingBlock: 8,
|
|
2191
|
+
display: "flex",
|
|
2192
|
+
paddingInline: 16,
|
|
2193
|
+
alignItems: "center",
|
|
2194
|
+
justifyContent: "space-between",
|
|
2195
|
+
cursor: "grab"
|
|
2196
|
+
},
|
|
1621
2197
|
children: [
|
|
1622
|
-
/* @__PURE__ */ g("div", {
|
|
1623
|
-
/* @__PURE__ */
|
|
1624
|
-
/* @__PURE__ */
|
|
2198
|
+
/* @__PURE__ */ g("div", { css: { display: "flex", alignItems: "center", gap: 8 }, children: [
|
|
2199
|
+
/* @__PURE__ */ n(M, { source: wn }),
|
|
2200
|
+
/* @__PURE__ */ n(
|
|
2201
|
+
"p",
|
|
2202
|
+
{
|
|
2203
|
+
css: {
|
|
2204
|
+
...p.text.sm,
|
|
2205
|
+
fontWeight: 500
|
|
2206
|
+
},
|
|
2207
|
+
children: "Layers"
|
|
2208
|
+
}
|
|
2209
|
+
)
|
|
1625
2210
|
] }),
|
|
1626
|
-
/* @__PURE__ */
|
|
2211
|
+
/* @__PURE__ */ n(E, { onClick: e, children: /* @__PURE__ */ n(M, { source: Oe }) })
|
|
1627
2212
|
]
|
|
1628
2213
|
}
|
|
1629
2214
|
),
|
|
1630
|
-
/* @__PURE__ */
|
|
2215
|
+
/* @__PURE__ */ n(
|
|
2216
|
+
"div",
|
|
2217
|
+
{
|
|
2218
|
+
css: {
|
|
2219
|
+
padding: 8,
|
|
2220
|
+
overflow: "auto",
|
|
2221
|
+
borderTopWidth: 1,
|
|
2222
|
+
borderTopStyle: "solid",
|
|
2223
|
+
borderColor: p.palette.white["1s"],
|
|
2224
|
+
flex: 1
|
|
2225
|
+
},
|
|
2226
|
+
children: /* @__PURE__ */ n(Xt, { renderLayer: kn })
|
|
2227
|
+
}
|
|
2228
|
+
)
|
|
1631
2229
|
]
|
|
1632
2230
|
}
|
|
1633
2231
|
) });
|
|
1634
|
-
},
|
|
2232
|
+
}, xn = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1635
2233
|
<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
2234
|
<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
2235
|
<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
2236
|
</svg>
|
|
1639
|
-
`,
|
|
2237
|
+
`, bn = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1640
2238
|
<path d="M5 12H19" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1641
2239
|
<path d="M10 7L5 12" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1642
2240
|
<path d="M10 17L5 12" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1643
2241
|
</svg>
|
|
1644
|
-
`,
|
|
1645
|
-
const [t, o] =
|
|
1646
|
-
|
|
1647
|
-
action: n = "insert"
|
|
1648
|
-
/* Insert */
|
|
1649
|
-
},
|
|
1650
|
-
setQueryParams: i
|
|
1651
|
-
} = i2(), { actions: s, isDeletable: u, focusedNode: c } = $((a, m) => {
|
|
1652
|
-
const k = m.getEvent("selected").first(), h = k ? m.node(k) : null;
|
|
2242
|
+
`, yn = ({ insert: e }) => {
|
|
2243
|
+
const [t, o] = C2(!1), { action: r = "insert", setState: i } = U(), { actions: s, isDeletable: c, focusedNode: a } = O((h, u) => {
|
|
2244
|
+
const m = u.getEvent("selected").first(), w = m ? u.node(m) : null;
|
|
1653
2245
|
return {
|
|
1654
|
-
enabled:
|
|
1655
|
-
isDeletable: !!(
|
|
1656
|
-
focusedNode:
|
|
2246
|
+
enabled: h.options.enabled,
|
|
2247
|
+
isDeletable: !!(w?.isDeletable() && (w.get().data.custom?.deletable ?? !0)),
|
|
2248
|
+
focusedNode: w?.get()
|
|
1657
2249
|
};
|
|
1658
|
-
}),
|
|
2250
|
+
}), l = () => {
|
|
1659
2251
|
s.selectNode();
|
|
1660
|
-
},
|
|
1661
|
-
s.delete(
|
|
1662
|
-
},
|
|
1663
|
-
const
|
|
1664
|
-
|
|
1665
|
-
action: m
|
|
1666
|
-
}));
|
|
2252
|
+
}, f = (h) => {
|
|
2253
|
+
s.delete(h.currentTarget.value);
|
|
2254
|
+
}, d = (h) => {
|
|
2255
|
+
const u = h.currentTarget.value;
|
|
2256
|
+
u === "layers" ? o() : (l(), i({ action: u }));
|
|
1667
2257
|
};
|
|
1668
|
-
return /* @__PURE__ */ g(
|
|
1669
|
-
/* @__PURE__ */ g(
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
2258
|
+
return /* @__PURE__ */ g(ce, { children: [
|
|
2259
|
+
/* @__PURE__ */ g(
|
|
2260
|
+
"aside",
|
|
2261
|
+
{
|
|
2262
|
+
css: {
|
|
2263
|
+
display: "flex",
|
|
2264
|
+
position: "relative",
|
|
2265
|
+
alignItems: "stretch",
|
|
2266
|
+
backgroundColor: p.palette.ink["6s"],
|
|
2267
|
+
color: p.palette.white["6s"],
|
|
2268
|
+
borderTopWidth: 1,
|
|
2269
|
+
borderTopStyle: "solid",
|
|
2270
|
+
borderColor: p.palette.white["2s"],
|
|
2271
|
+
...p.text.sm
|
|
2272
|
+
},
|
|
2273
|
+
children: [
|
|
2274
|
+
/* @__PURE__ */ g("div", { css: { display: "flex", paddingInline: 4, flexDirection: "column", gap: 4 }, children: [
|
|
2275
|
+
!!e && /* @__PURE__ */ g(je, { children: [
|
|
2276
|
+
/* @__PURE__ */ n(
|
|
2277
|
+
E,
|
|
2278
|
+
{
|
|
2279
|
+
tooltip: {
|
|
2280
|
+
content: "Insert",
|
|
2281
|
+
placement: "right"
|
|
2282
|
+
},
|
|
2283
|
+
onClick: d,
|
|
2284
|
+
value: "insert",
|
|
2285
|
+
css: { position: "relative" },
|
|
2286
|
+
size: "32",
|
|
2287
|
+
children: /* @__PURE__ */ n(M, { source: ve })
|
|
2288
|
+
}
|
|
2289
|
+
),
|
|
2290
|
+
/* @__PURE__ */ n("hr", { css: { borderColor: p.palette.white["2s"] } })
|
|
2291
|
+
] }),
|
|
2292
|
+
/* @__PURE__ */ n(
|
|
2293
|
+
E,
|
|
2294
|
+
{
|
|
2295
|
+
tooltip: {
|
|
2296
|
+
content: "Layers",
|
|
2297
|
+
placement: "right"
|
|
2298
|
+
},
|
|
2299
|
+
onClick: d,
|
|
2300
|
+
value: "layers",
|
|
2301
|
+
css: { position: "relative" },
|
|
2302
|
+
size: "32",
|
|
2303
|
+
children: /* @__PURE__ */ n(M, { source: xn })
|
|
2304
|
+
}
|
|
2305
|
+
)
|
|
2306
|
+
] }),
|
|
2307
|
+
/* @__PURE__ */ g(
|
|
2308
|
+
"div",
|
|
1674
2309
|
{
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
2310
|
+
css: {
|
|
2311
|
+
position: "relative",
|
|
2312
|
+
display: "flex",
|
|
2313
|
+
flexDirection: "column",
|
|
2314
|
+
overflow: "auto",
|
|
2315
|
+
width: 288,
|
|
2316
|
+
borderLeftWidth: 1,
|
|
2317
|
+
borderLeftStyle: "solid",
|
|
2318
|
+
borderColor: p.palette.white["1s"]
|
|
1678
2319
|
},
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
2320
|
+
children: [
|
|
2321
|
+
!a?.related.inspector && /* @__PURE__ */ n("div", { css: { overflow: "auto", flex: 1 }, children: r === "insert" && !!e && /* @__PURE__ */ n(un, { groups: e.groups }) }),
|
|
2322
|
+
!!a?.related?.inspector && /* @__PURE__ */ g("div", { css: { display: "flex", flexDirection: "column", overflow: "hidden", flex: 1 }, children: [
|
|
2323
|
+
/* @__PURE__ */ g("div", { css: { display: "flex", paddingInline: 8, paddingBlock: 8, alignItems: "center", gap: 8 }, children: [
|
|
2324
|
+
/* @__PURE__ */ n(E, { onClick: l, children: /* @__PURE__ */ n(M, { source: bn }) }),
|
|
2325
|
+
/* @__PURE__ */ n("div", { css: { overflow: "hidden", flex: 1 }, children: /* @__PURE__ */ n(s2, { fullWidth: !0, value: i2(a), size: "32" }) }),
|
|
2326
|
+
c && /* @__PURE__ */ n(E, { value: a.id, onClick: f, children: /* @__PURE__ */ n(M, { css: { color: p.palette.red["4s"] }, source: Et }) })
|
|
2327
|
+
] }),
|
|
2328
|
+
/* @__PURE__ */ n(
|
|
2329
|
+
"div",
|
|
2330
|
+
{
|
|
2331
|
+
css: {
|
|
2332
|
+
overflow: "auto",
|
|
2333
|
+
flex: 1,
|
|
2334
|
+
borderTopWidth: 1,
|
|
2335
|
+
borderTopStyle: "solid",
|
|
2336
|
+
borderColor: p.palette.white["1s"]
|
|
2337
|
+
},
|
|
2338
|
+
children: /* @__PURE__ */ n(X2, { fallback: null, children: a2(a.related.inspector) })
|
|
2339
|
+
}
|
|
2340
|
+
)
|
|
2341
|
+
] })
|
|
2342
|
+
]
|
|
1684
2343
|
}
|
|
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 })
|
|
2344
|
+
)
|
|
2345
|
+
]
|
|
2346
|
+
}
|
|
2347
|
+
),
|
|
2348
|
+
t && /* @__PURE__ */ n(vn, { onClose: o })
|
|
1722
2349
|
] });
|
|
1723
|
-
},
|
|
1724
|
-
const {
|
|
1725
|
-
queryParams: { screen: i }
|
|
1726
|
-
} = i2();
|
|
1727
|
-
return s2({
|
|
2350
|
+
}, dr = ({ theme: e, insert: t, resolver: o, handlers: r, serializedNodes: i, children: s }) => {
|
|
2351
|
+
const { screen: c } = U({
|
|
1728
2352
|
theme: e,
|
|
1729
|
-
handlers:
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
2353
|
+
handlers: r,
|
|
2354
|
+
mode: "full",
|
|
2355
|
+
screen: "xs"
|
|
2356
|
+
});
|
|
2357
|
+
return /* @__PURE__ */ n(l2, { enabled: !0, onRender: B1, resolver: o, children: /* @__PURE__ */ g(
|
|
2358
|
+
"div",
|
|
2359
|
+
{
|
|
2360
|
+
css: {
|
|
2361
|
+
display: "flex",
|
|
2362
|
+
flexDirection: "column",
|
|
2363
|
+
width: "100vw",
|
|
2364
|
+
height: "100vh",
|
|
2365
|
+
backgroundColor: Ce.ink["6s"],
|
|
2366
|
+
color: Ce.white["6s"]
|
|
2367
|
+
},
|
|
2368
|
+
children: [
|
|
2369
|
+
/* @__PURE__ */ n(P1, {}),
|
|
2370
|
+
/* @__PURE__ */ g("div", { css: { display: "flex", overflow: "hidden", flex: 1 }, children: [
|
|
2371
|
+
/* @__PURE__ */ n(yn, { insert: t }),
|
|
2372
|
+
/* @__PURE__ */ n(
|
|
2373
|
+
b2,
|
|
2374
|
+
{
|
|
2375
|
+
viewport: {
|
|
2376
|
+
width: (a) => c === "lg" ? Math.max(a, Ee[c]) : Ee[c]
|
|
2377
|
+
},
|
|
2378
|
+
children: /* @__PURE__ */ n(d2, { data: i, children: s || /* @__PURE__ */ n(G2, {}) })
|
|
2379
|
+
}
|
|
2380
|
+
)
|
|
2381
|
+
] })
|
|
2382
|
+
]
|
|
2383
|
+
}
|
|
2384
|
+
) });
|
|
1745
2385
|
};
|
|
1746
2386
|
export {
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
2387
|
+
Nr as AspectRatioToolbar,
|
|
2388
|
+
Ar as BackgroundToolbar,
|
|
2389
|
+
Er as BorderRadiusToolbar,
|
|
2390
|
+
Br as BorderToolbar,
|
|
2391
|
+
Rr as ChildNodesToolbar,
|
|
2392
|
+
pr as ColorPickerContent,
|
|
2393
|
+
Cr as ColorPickerPopover,
|
|
2394
|
+
gr as ColorPreview,
|
|
2395
|
+
ot as ColorToolbar,
|
|
2396
|
+
Vr as ColorVariantToolbar,
|
|
2397
|
+
Wr as ColumnGapToolbar,
|
|
2398
|
+
it as CssFontWeightToolbar,
|
|
2399
|
+
et as CssSizeInput,
|
|
2400
|
+
Pr as CssTextAlignToolbar,
|
|
2401
|
+
Dr as CssWidthToolbar,
|
|
2402
|
+
rr as DegreePicker,
|
|
2403
|
+
Hr as DisplayOnToolbar,
|
|
2404
|
+
ir as DisplayToolbar,
|
|
2405
|
+
dr as Editor,
|
|
2406
|
+
jr as FlexAlignItemsToolbar,
|
|
2407
|
+
ar as FlexToolbar,
|
|
2408
|
+
_r as FlexWrapToolbar,
|
|
2409
|
+
sr as FontSizeToolbar,
|
|
2410
|
+
b2 as FramePreview,
|
|
2411
|
+
Fr as GridAlignItemsToolbar,
|
|
2412
|
+
Or as HeightToolbar,
|
|
2413
|
+
zr as HtmlAnchorTargetToolbar,
|
|
2414
|
+
Zr as ImageSourceSelection,
|
|
2415
|
+
$r as JustifyContentToolbar,
|
|
2416
|
+
Gr as JustifyItemsToolbar,
|
|
2417
|
+
or as LineHeightToolbar,
|
|
2418
|
+
Ur as MarginToolbar,
|
|
2419
|
+
cr as MinWidthToolbar,
|
|
2420
|
+
qr as NumberField,
|
|
2421
|
+
Yr as NumberFieldMixOptions,
|
|
2422
|
+
Xr as ObjectFitToolbar,
|
|
2423
|
+
Kr as OrderToolbar,
|
|
2424
|
+
Jr as PaddingToolbar,
|
|
2425
|
+
Qr as RowGapToolbar,
|
|
2426
|
+
eo as SpacingToolbar,
|
|
2427
|
+
to as SvgSourceToolbar,
|
|
2428
|
+
no as TagNameToolbar,
|
|
2429
|
+
ro as TextInlineEditor,
|
|
2430
|
+
rt as TextSizeVariantToolbar,
|
|
2431
|
+
lr as TextStyleGroupToolbar,
|
|
2432
|
+
st as TextStyleToolbar,
|
|
2433
|
+
at as TextTransformToolbar,
|
|
2434
|
+
q as ToolbarField,
|
|
2435
|
+
oo as ToolbarGroup,
|
|
2436
|
+
n2 as WbButton,
|
|
2437
|
+
Nt as WbButtonGroup,
|
|
2438
|
+
F2 as WbCollapse,
|
|
2439
|
+
fr as WbColorPicker,
|
|
2440
|
+
so as WbDatePicker,
|
|
2441
|
+
Qn as WbDialog,
|
|
2442
|
+
tr as WbDialogBody,
|
|
2443
|
+
wr as WbDialogClose,
|
|
2444
|
+
mr as WbDialogFooter,
|
|
2445
|
+
kr as WbDialogHeader,
|
|
2446
|
+
io as WbDropzone,
|
|
2447
|
+
M2 as WbFloating,
|
|
2448
|
+
vr as WbFloatingClose,
|
|
2449
|
+
L2 as WbFloatingContent,
|
|
2450
|
+
xr as WbFloatingContext,
|
|
2451
|
+
nr as WbFormLabel,
|
|
2452
|
+
M as WbIcon,
|
|
2453
|
+
E as WbIconButton,
|
|
2454
|
+
s2 as WbInput,
|
|
2455
|
+
c2 as WbInputNumber,
|
|
2456
|
+
br as WbLoadingOverlay,
|
|
2457
|
+
ao as WbMenu,
|
|
2458
|
+
yr as WbMenuItem,
|
|
2459
|
+
Mr as WbMenuList,
|
|
2460
|
+
Lr as WbMenuTrigger,
|
|
2461
|
+
S2 as WbPopover,
|
|
2462
|
+
nt as WbPopoverClose,
|
|
2463
|
+
A2 as WbPopoverContent,
|
|
2464
|
+
N2 as WbPopoverTrigger,
|
|
2465
|
+
_e as WbRadioButton,
|
|
2466
|
+
ye as WbScrollView,
|
|
2467
|
+
Q2 as WbSelect,
|
|
2468
|
+
O2 as WbSvgLoader,
|
|
2469
|
+
Ir as WbSwitch,
|
|
2470
|
+
co as WbTab,
|
|
2471
|
+
lo as WbTabContent,
|
|
2472
|
+
ho as WbTabList,
|
|
2473
|
+
uo as WbTabPanel,
|
|
2474
|
+
po as WbTabs,
|
|
2475
|
+
Tr as WbTextarea,
|
|
2476
|
+
mo as WbTooltip,
|
|
2477
|
+
Co as WbVirtualizedList,
|
|
2478
|
+
go as textSizeVariantOptions,
|
|
2479
|
+
er as useDialogContext,
|
|
2480
|
+
U as useEditor,
|
|
2481
|
+
fo as useEditorResponsive,
|
|
2482
|
+
I2 as useWbFloatingContext
|
|
1751
2483
|
};
|