@janbox/storefront-builder 2.0.2 → 2.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{dialog-header-Bh3Dkw2q.js → countdown-timer.node-CZA-i5xq.js} +3303 -2187
- 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/floating/wb-floating/types.d.ts +2 -2
- package/dist/editor/ui/floating/wb-floating/wb-floating.d.ts +2 -0
- package/dist/editor.js +1209 -673
- package/dist/hooks/use-composer.d.ts +464 -0
- package/dist/index-B58cYfCo.js +4 -0
- package/dist/index-ekIAycpt.js +8326 -0
- package/dist/index.js +173 -371
- package/dist/lib/accordion/accordion.node/helpers.d.ts +3 -0
- package/dist/lib/accordion-group/accordion-group.node/helpers.d.ts +3 -0
- package/dist/lib/box/box.node/helpers.d.ts +3 -0
- package/dist/lib/button/button.node/helpers.d.ts +3 -0
- package/dist/lib/cell/cell.node/helpers.d.ts +3 -0
- package/dist/lib/container/container.node/helpers.d.ts +3 -0
- package/dist/lib/countdown-timer/countdown-timer.node/helpers.d.ts +3 -0
- package/dist/lib/flex-item/flex-item.node/helpers.d.ts +3 -0
- package/dist/lib/flexbox/flexbox.node/helpers.d.ts +3 -0
- package/dist/lib/grid/grid.node/helpers.d.ts +3 -0
- package/dist/lib/heading/heading.node/helpers.d.ts +3 -0
- package/dist/lib/icon/icon.node/helpers.d.ts +3 -0
- package/dist/lib/image/image.node/helpers.d.ts +3 -0
- package/dist/lib/link/link.node/helpers.d.ts +3 -0
- package/dist/lib/list-item/list-item.node/helpers.d.ts +3 -0
- package/dist/lib/marquee/marquee.node/helpers.d.ts +3 -0
- package/dist/lib/paragraph/paragraph.node/helpers.d.ts +3 -0
- package/dist/lib/swiper/swiper.node/helpers.d.ts +3 -0
- package/dist/lib/tab/tab.node/helpers.d.ts +3 -0
- package/dist/lib/tab-panel/tab-panel.node/helpers.d.ts +3 -0
- package/dist/lib/tabs/tabs.node/helpers.d.ts +3 -0
- package/dist/lib/unordered-list/unordered-list.node/helpers.d.ts +3 -0
- package/dist/lib/video/video.node/helpers.d.ts +3 -0
- package/dist/templates.js +26 -28
- package/dist/{tooltip-CXOlTkGg.js → tooltip-BFrdgixm.js} +1 -1
- package/package.json +2 -10
- package/dist/anchor-target-CtXzdkBu.js +0 -2918
- package/dist/color-picker-popover-XeaVfYS8.js +0 -225
- package/dist/countdown-timer.node-Bh5fTSJ8.js +0 -913
- package/dist/date-picker-D9K6HWl-.js +0 -157
- package/dist/dropzone-CF4CWXth.js +0 -546
- 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 -346
- package/dist/editor/ui.js +0 -120
- package/dist/index-800HnUOi.js +0 -4
- package/dist/index-CXyljfMv.js +0 -4593
package/dist/editor.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { jsx as n, jsxs as m, Fragment as _e } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { Z as R2, _ as V2, $ as W2, t as w, a0 as P2, g as q, a1 as Ce, a2 as Te, a3 as Se, Q as H2, a4 as Fe, a5 as B, a6 as M, b as ve, M as Oe, a7 as D2, a8 as j2, a9 as _2, aa as ze, K as F2, N as O2, f as z, X as S, H as Ze, P as ae, V as $e, S as be, G as Ge, a as ge, m as Ue, F as fe, q as xe, B as qe, I as Ye, n as Xe, L as Ke, y as z2, x as Je, j as Qe, A as e2, l as t2, C as n2, ab as r2, c as Z2, d as $2, e as G2, r as o2, p as s2, s as U2, v as q2, T as Y2, w as X2, ac as i2, ad as K2, ae as J2, af as Q2, ag as et, E as a2, O as tt, R as nt } from "./countdown-timer.node-CZA-i5xq.js";
|
|
3
|
+
import { ah as br, ai as xr, aj as yr, ak as Mr, al as Ir, am as Lr, an as Tr, ao as Sr, ap as Nr, aq as Er, ar as Ar, as as Br, at as Rr, au as Vr } from "./countdown-timer.node-CZA-i5xq.js";
|
|
4
|
+
import { useNode as rt, ROOT_NODE as Z, serializeNode as ot } from "@craftjs/core";
|
|
5
|
+
import { useImperativeHandle as st, useMemo as it, isValidElement as at, useState as j, useRef as de, useEffect as J, createElement as c2, Fragment as ce, Suspense as ct } from "react";
|
|
6
6
|
import "flat";
|
|
7
|
-
import { throttle as
|
|
7
|
+
import { throttle as lt, isFunction as Ne, isNumber as Q, isNil as $, isString as Ee, isEqual as dt, times as O } from "lodash-es";
|
|
8
8
|
import "@janbox/storefront-ui";
|
|
9
|
-
import { D as
|
|
10
|
-
import "
|
|
11
|
-
import { ThemeProvider as Ye, getColorVar as L2, FLOATING_Z_INDEX as Qe, breakpoint as Xe } from "@janbox/storefront-ui/theme";
|
|
9
|
+
import { W as ye, X as Y, Y as l2, Z as ht, _ as ut, $ as pt, a0 as Ct, a1 as gt, a2 as ft, a3 as wt, a4 as mt, a5 as kt, D as vt, a as bt, H as xt, P as yt, l as Mt, i as It, G as Lt, c as Tt, g as St, F as Nt, M as Et, b as At, h as Bt, I as Rt, L as Vt, U as Wt, j as Pt, B as Ht, A as Dt, f as jt, e as _t, a6 as Ft, a7 as Ot, R as k, d as d2, C as h2, a8 as u2, a9 as zt, aa as Ae } from "./index-ekIAycpt.js";
|
|
10
|
+
import { ab as Pr, ac as Hr, ad as Dr, ae as jr, af as _r, ag as Fr, ah as Or, ai as zr, aj as Zr, ak as $r, al as Gr, am as Ur, an as qr, ao as Yr, ap as Xr, aq as Kr, ar as Jr, as as Qr, at as eo, au as to, av as no, aw as ro, ax as oo, ay as so, az as io, aA as ao, aB as co, aC as lo, T as ho, aD as uo, aE as po, aF as Co, aG as go, aH as fo, aI as wo, aJ as mo, aK as ko, aL as vo, aM as bo, aN as xo, aO as yo } from "./index-ekIAycpt.js";
|
|
12
11
|
import "@janbox/storefront-ui/utils";
|
|
13
|
-
import
|
|
14
|
-
import { CacheProvider as
|
|
15
|
-
import { useFloating as
|
|
12
|
+
import "@janbox/storefront-ui/hooks";
|
|
13
|
+
import { CacheProvider as Zt, Global as $t, createElement as Gt } from "@emotion/react";
|
|
14
|
+
import { useFloatingParentNodeId as Ut, FloatingTree as qt, useFloating as p2, autoUpdate as C2, offset as Yt, size as g2, flip as f2, useClick as Xt, useHover as w2, useFocus as m2, useDismiss as k2, useRole as v2, useInteractions as b2, safePolygon as Kt, FloatingPortal as x2 } from "@floating-ui/react";
|
|
16
15
|
import "react-use";
|
|
16
|
+
import { FLOATING_Z_INDEX as y2, ThemeProvider as Jt, getColorVar as Be, breakpoint as Qt } from "@janbox/storefront-ui/theme";
|
|
17
17
|
import "react-colorful";
|
|
18
18
|
import "overlayscrollbars-react";
|
|
19
19
|
import "@tanstack/react-virtual";
|
|
@@ -24,15 +24,13 @@ import "@tiptap/extension-text-style";
|
|
|
24
24
|
import "@tiptap/react";
|
|
25
25
|
import "@tiptap/react/menus";
|
|
26
26
|
import "@tiptap/starter-kit";
|
|
27
|
-
import
|
|
27
|
+
import e1, { useFrame as t1 } from "react-frame-component";
|
|
28
28
|
import "@hello-pangea/dnd";
|
|
29
|
-
import { useToggle as
|
|
30
|
-
import
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
|
|
34
|
-
import { Layers as M1, useLayer as I1 } from "@craftjs/layers";
|
|
35
|
-
class N1 {
|
|
29
|
+
import { useToggle as M2 } from "usehooks-ts";
|
|
30
|
+
import n1 from "dayjs";
|
|
31
|
+
import { Layers as r1, useLayer as o1 } from "@craftjs/layers";
|
|
32
|
+
import { W as Io } from "./tooltip-BFrdgixm.js";
|
|
33
|
+
class s1 {
|
|
36
34
|
constructor() {
|
|
37
35
|
this.componentControls = /* @__PURE__ */ new Set();
|
|
38
36
|
}
|
|
@@ -60,115 +58,291 @@ class N1 {
|
|
|
60
58
|
* @public
|
|
61
59
|
*/
|
|
62
60
|
start(t, o) {
|
|
63
|
-
this.componentControls.forEach((
|
|
64
|
-
|
|
61
|
+
this.componentControls.forEach((r) => {
|
|
62
|
+
r.start(t.nativeEvent || t, o);
|
|
65
63
|
});
|
|
66
64
|
}
|
|
67
65
|
}
|
|
68
|
-
const
|
|
69
|
-
function
|
|
70
|
-
return
|
|
66
|
+
const i1 = () => new s1();
|
|
67
|
+
function a1() {
|
|
68
|
+
return R2(i1);
|
|
71
69
|
}
|
|
72
|
-
|
|
70
|
+
const c1 = (e) => Ut() ? /* @__PURE__ */ n(Re, { ...e }) : /* @__PURE__ */ n(qt, { children: /* @__PURE__ */ n(Re, { ...e }) }), Re = ({
|
|
71
|
+
open: e,
|
|
72
|
+
placement: t = "bottom",
|
|
73
|
+
onOpenChange: o,
|
|
74
|
+
dismissProps: r = {
|
|
75
|
+
enabled: !1
|
|
76
|
+
},
|
|
77
|
+
children: i,
|
|
78
|
+
clickProps: s = {
|
|
79
|
+
enabled: !1
|
|
80
|
+
},
|
|
81
|
+
focusProps: c = {
|
|
82
|
+
enabled: !1
|
|
83
|
+
},
|
|
84
|
+
hoverProps: a = {
|
|
85
|
+
enabled: !1
|
|
86
|
+
},
|
|
87
|
+
elements: l,
|
|
88
|
+
offsetOptions: f = 4,
|
|
89
|
+
sizeOptions: d,
|
|
90
|
+
autoUpdateOptions: h,
|
|
91
|
+
ref: u
|
|
92
|
+
}) => {
|
|
93
|
+
const C = p2({
|
|
94
|
+
open: e,
|
|
95
|
+
onOpenChange: o,
|
|
96
|
+
placement: t,
|
|
97
|
+
middleware: [Yt(f), g2(d), f2()],
|
|
98
|
+
whileElementsMounted: (...W) => C2(...W, h),
|
|
99
|
+
elements: l
|
|
100
|
+
});
|
|
101
|
+
st(u, () => C, [C]);
|
|
102
|
+
const { context: p } = C, g = Xt(p, s), I = w2(p, a), v = m2(p, c), L = k2(p, r), N = v2(p), _ = b2([g, L, N, I, v]), D = it(
|
|
103
|
+
() => ({
|
|
104
|
+
...C,
|
|
105
|
+
..._
|
|
106
|
+
}),
|
|
107
|
+
[C, _]
|
|
108
|
+
);
|
|
109
|
+
return /* @__PURE__ */ n(V2.Provider, { value: D, children: i });
|
|
110
|
+
}, ar = ({ width: e = 600, children: t, ...o }) => /* @__PURE__ */ n(
|
|
111
|
+
c1,
|
|
112
|
+
{
|
|
113
|
+
dismissProps: {
|
|
114
|
+
enabled: !0
|
|
115
|
+
},
|
|
116
|
+
...o,
|
|
117
|
+
children: /* @__PURE__ */ m(
|
|
118
|
+
W2,
|
|
119
|
+
{
|
|
120
|
+
floatingOverlayProps: {
|
|
121
|
+
disabled: !1,
|
|
122
|
+
className: "grid place-items-center p-4 sm:p-5 md:p-6",
|
|
123
|
+
lockScroll: !0,
|
|
124
|
+
style: {
|
|
125
|
+
zIndex: y2
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
css: { display: "flex", overflow: "hidden", flexDirection: "column", maxWidth: "100%", maxHeight: "100%" },
|
|
129
|
+
children: [
|
|
130
|
+
/* @__PURE__ */ n(
|
|
131
|
+
"div",
|
|
132
|
+
{
|
|
133
|
+
css: {
|
|
134
|
+
backdropFilter: "blur(2px)",
|
|
135
|
+
position: "fixed",
|
|
136
|
+
inset: 0,
|
|
137
|
+
pointerEvents: "none",
|
|
138
|
+
backgroundColor: "rgba(0, 0, 0, 0.4)"
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
),
|
|
142
|
+
/* @__PURE__ */ n(
|
|
143
|
+
"div",
|
|
144
|
+
{
|
|
145
|
+
css: {
|
|
146
|
+
width: e,
|
|
147
|
+
display: "flex",
|
|
148
|
+
position: "relative",
|
|
149
|
+
paddingBlock: 8,
|
|
150
|
+
flexDirection: "column",
|
|
151
|
+
overflow: "hidden",
|
|
152
|
+
borderRadius: 8,
|
|
153
|
+
backgroundColor: w.palette.ink["6s"],
|
|
154
|
+
maxWidth: "100%",
|
|
155
|
+
color: "white"
|
|
156
|
+
},
|
|
157
|
+
children: t
|
|
158
|
+
}
|
|
159
|
+
)
|
|
160
|
+
]
|
|
161
|
+
}
|
|
162
|
+
)
|
|
163
|
+
}
|
|
164
|
+
), cr = () => P2(), lr = ({ ref: e, ...t }) => /* @__PURE__ */ n(
|
|
165
|
+
ye,
|
|
166
|
+
{
|
|
167
|
+
css: { paddingBlock: 12, paddingInline: 20, flex: 1, overflow: "auto", ...w.text.xs },
|
|
168
|
+
...t,
|
|
169
|
+
ref: e
|
|
170
|
+
}
|
|
171
|
+
), dr = ({ required: e, children: t, ...o }) => /* @__PURE__ */ m("div", { css: { marginBottom: 6, display: "flex", width: "fit-content" }, ...o, children: [
|
|
172
|
+
at(t) ? t : /* @__PURE__ */ n("label", { children: t }),
|
|
173
|
+
e && /* @__PURE__ */ n("span", { css: { color: w.palette.red["6s"] }, children: " *" })
|
|
174
|
+
] }), hr = () => {
|
|
175
|
+
const [e, t] = j(0), [o, r] = j(!1), i = de(null), s = (f, d) => {
|
|
176
|
+
if (!i.current) return 0;
|
|
177
|
+
const h = i.current.getBoundingClientRect(), u = h.left + h.width / 2, C = h.top + h.height / 2, p = f - u, g = d - C;
|
|
178
|
+
return (Math.atan2(g, p) * (180 / Math.PI) + 360) % 360;
|
|
179
|
+
};
|
|
180
|
+
return /* @__PURE__ */ m(
|
|
181
|
+
"div",
|
|
182
|
+
{
|
|
183
|
+
style: {
|
|
184
|
+
textAlign: "center",
|
|
185
|
+
marginTop: "50px",
|
|
186
|
+
userSelect: "none"
|
|
187
|
+
},
|
|
188
|
+
onMouseMove: (f) => {
|
|
189
|
+
if (o) {
|
|
190
|
+
const d = s(f.clientX, f.clientY);
|
|
191
|
+
t(Math.round(d));
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
onMouseUp: () => {
|
|
195
|
+
r(!1);
|
|
196
|
+
},
|
|
197
|
+
children: [
|
|
198
|
+
/* @__PURE__ */ m("h3", { children: [
|
|
199
|
+
"Chọn độ: ",
|
|
200
|
+
e,
|
|
201
|
+
"°"
|
|
202
|
+
] }),
|
|
203
|
+
/* @__PURE__ */ m(
|
|
204
|
+
"svg",
|
|
205
|
+
{
|
|
206
|
+
ref: i,
|
|
207
|
+
width: "200",
|
|
208
|
+
height: "200",
|
|
209
|
+
viewBox: "0 0 200 200",
|
|
210
|
+
onMouseDown: (f) => {
|
|
211
|
+
r(!0);
|
|
212
|
+
const d = s(f.clientX, f.clientY);
|
|
213
|
+
t(Math.round(d));
|
|
214
|
+
},
|
|
215
|
+
style: { cursor: "grab" },
|
|
216
|
+
children: [
|
|
217
|
+
/* @__PURE__ */ n("circle", { cx: "100", cy: "100", r: "90", fill: "#EAEAEA", stroke: "#CCC", strokeWidth: "2" }),
|
|
218
|
+
/* @__PURE__ */ n(
|
|
219
|
+
"line",
|
|
220
|
+
{
|
|
221
|
+
x1: "100",
|
|
222
|
+
y1: "100",
|
|
223
|
+
x2: 100 + 90 * Math.cos((e - 90) * (Math.PI / 180)),
|
|
224
|
+
y2: 100 + 90 * Math.sin((e - 90) * (Math.PI / 180)),
|
|
225
|
+
stroke: "#007BFF",
|
|
226
|
+
strokeWidth: "2"
|
|
227
|
+
}
|
|
228
|
+
),
|
|
229
|
+
/* @__PURE__ */ n(
|
|
230
|
+
"circle",
|
|
231
|
+
{
|
|
232
|
+
cx: 100 + 90 * Math.cos((e - 90) * (Math.PI / 180)),
|
|
233
|
+
cy: 100 + 90 * Math.sin((e - 90) * (Math.PI / 180)),
|
|
234
|
+
r: "8",
|
|
235
|
+
fill: "#007BFF",
|
|
236
|
+
style: { cursor: "grab" }
|
|
237
|
+
}
|
|
238
|
+
)
|
|
239
|
+
]
|
|
240
|
+
}
|
|
241
|
+
)
|
|
242
|
+
]
|
|
243
|
+
}
|
|
244
|
+
);
|
|
245
|
+
};
|
|
246
|
+
function l1(e) {
|
|
73
247
|
if (e.sheet)
|
|
74
248
|
return e.sheet;
|
|
75
249
|
for (var t = 0; t < document.styleSheets.length; t++)
|
|
76
250
|
if (document.styleSheets[t].ownerNode === e)
|
|
77
251
|
return document.styleSheets[t];
|
|
78
252
|
}
|
|
79
|
-
function
|
|
253
|
+
function d1(e) {
|
|
80
254
|
var t = document.createElement("style");
|
|
81
255
|
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;
|
|
82
256
|
}
|
|
83
|
-
var
|
|
257
|
+
var h1 = /* @__PURE__ */ (function() {
|
|
84
258
|
function e(o) {
|
|
85
|
-
var
|
|
259
|
+
var r = this;
|
|
86
260
|
this._insertTag = function(i) {
|
|
87
261
|
var s;
|
|
88
|
-
|
|
262
|
+
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);
|
|
89
263
|
}, 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;
|
|
90
264
|
}
|
|
91
265
|
var t = e.prototype;
|
|
92
|
-
return t.hydrate = function(
|
|
93
|
-
|
|
94
|
-
}, t.insert = function(
|
|
95
|
-
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(
|
|
266
|
+
return t.hydrate = function(r) {
|
|
267
|
+
r.forEach(this._insertTag);
|
|
268
|
+
}, t.insert = function(r) {
|
|
269
|
+
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(d1(this));
|
|
96
270
|
var i = this.tags[this.tags.length - 1];
|
|
97
271
|
if (this.isSpeedy) {
|
|
98
|
-
var s =
|
|
272
|
+
var s = l1(i);
|
|
99
273
|
try {
|
|
100
|
-
s.insertRule(
|
|
274
|
+
s.insertRule(r, s.cssRules.length);
|
|
101
275
|
} catch {
|
|
102
276
|
}
|
|
103
277
|
} else
|
|
104
|
-
i.appendChild(document.createTextNode(
|
|
278
|
+
i.appendChild(document.createTextNode(r));
|
|
105
279
|
this.ctr++;
|
|
106
280
|
}, t.flush = function() {
|
|
107
|
-
this.tags.forEach(function(
|
|
281
|
+
this.tags.forEach(function(r) {
|
|
108
282
|
var i;
|
|
109
|
-
return (i =
|
|
283
|
+
return (i = r.parentNode) == null ? void 0 : i.removeChild(r);
|
|
110
284
|
}), this.tags = [], this.ctr = 0;
|
|
111
285
|
}, e;
|
|
112
|
-
})(),
|
|
113
|
-
function
|
|
114
|
-
return
|
|
286
|
+
})(), A = "-ms-", le = "-moz-", b = "-webkit-", I2 = "comm", Me = "rule", Ie = "decl", u1 = "@import", L2 = "@keyframes", p1 = "@layer", C1 = Math.abs, he = String.fromCharCode, g1 = Object.assign;
|
|
287
|
+
function f1(e, t) {
|
|
288
|
+
return E(e, 0) ^ 45 ? (((t << 2 ^ E(e, 0)) << 2 ^ E(e, 1)) << 2 ^ E(e, 2)) << 2 ^ E(e, 3) : 0;
|
|
115
289
|
}
|
|
116
|
-
function
|
|
290
|
+
function T2(e) {
|
|
117
291
|
return e.trim();
|
|
118
292
|
}
|
|
119
|
-
function
|
|
293
|
+
function w1(e, t) {
|
|
120
294
|
return (e = t.exec(e)) ? e[0] : e;
|
|
121
295
|
}
|
|
122
|
-
function
|
|
296
|
+
function x(e, t, o) {
|
|
123
297
|
return e.replace(t, o);
|
|
124
298
|
}
|
|
125
|
-
function
|
|
299
|
+
function we(e, t) {
|
|
126
300
|
return e.indexOf(t);
|
|
127
301
|
}
|
|
128
|
-
function
|
|
302
|
+
function E(e, t) {
|
|
129
303
|
return e.charCodeAt(t) | 0;
|
|
130
304
|
}
|
|
131
|
-
function
|
|
305
|
+
function ee(e, t, o) {
|
|
132
306
|
return e.slice(t, o);
|
|
133
307
|
}
|
|
134
|
-
function
|
|
308
|
+
function P(e) {
|
|
135
309
|
return e.length;
|
|
136
310
|
}
|
|
137
|
-
function
|
|
311
|
+
function Le(e) {
|
|
138
312
|
return e.length;
|
|
139
313
|
}
|
|
140
|
-
function
|
|
314
|
+
function re(e, t) {
|
|
141
315
|
return t.push(e), e;
|
|
142
316
|
}
|
|
143
|
-
function
|
|
317
|
+
function m1(e, t) {
|
|
144
318
|
return e.map(t).join("");
|
|
145
319
|
}
|
|
146
|
-
var
|
|
147
|
-
function
|
|
148
|
-
return { value: e, root: t, parent: o, type:
|
|
320
|
+
var ue = 1, U = 1, S2 = 0, R = 0, T = 0, X = "";
|
|
321
|
+
function pe(e, t, o, r, i, s, c) {
|
|
322
|
+
return { value: e, root: t, parent: o, type: r, props: i, children: s, line: ue, column: U, length: c, return: "" };
|
|
149
323
|
}
|
|
150
|
-
function
|
|
151
|
-
return
|
|
324
|
+
function K(e, t) {
|
|
325
|
+
return g1(pe("", null, null, "", null, null, 0), e, { length: -e.length }, t);
|
|
152
326
|
}
|
|
153
|
-
function
|
|
154
|
-
return
|
|
327
|
+
function k1() {
|
|
328
|
+
return T;
|
|
155
329
|
}
|
|
156
|
-
function
|
|
157
|
-
return
|
|
330
|
+
function v1() {
|
|
331
|
+
return T = R > 0 ? E(X, --R) : 0, U--, T === 10 && (U = 1, ue--), T;
|
|
158
332
|
}
|
|
159
|
-
function
|
|
160
|
-
return
|
|
333
|
+
function V() {
|
|
334
|
+
return T = R < S2 ? E(X, R++) : 0, U++, T === 10 && (U = 1, ue++), T;
|
|
161
335
|
}
|
|
162
|
-
function
|
|
163
|
-
return
|
|
336
|
+
function H() {
|
|
337
|
+
return E(X, R);
|
|
164
338
|
}
|
|
165
|
-
function
|
|
166
|
-
return
|
|
339
|
+
function oe() {
|
|
340
|
+
return R;
|
|
167
341
|
}
|
|
168
|
-
function
|
|
169
|
-
return
|
|
342
|
+
function ne(e, t) {
|
|
343
|
+
return ee(X, e, t);
|
|
170
344
|
}
|
|
171
|
-
function
|
|
345
|
+
function te(e) {
|
|
172
346
|
switch (e) {
|
|
173
347
|
// \0 \t \n \r \s whitespace token
|
|
174
348
|
case 0:
|
|
@@ -206,103 +380,103 @@ function Y(e) {
|
|
|
206
380
|
}
|
|
207
381
|
return 0;
|
|
208
382
|
}
|
|
209
|
-
function
|
|
210
|
-
return
|
|
383
|
+
function N2(e) {
|
|
384
|
+
return ue = U = 1, S2 = P(X = e), R = 0, [];
|
|
211
385
|
}
|
|
212
|
-
function
|
|
213
|
-
return
|
|
386
|
+
function E2(e) {
|
|
387
|
+
return X = "", e;
|
|
214
388
|
}
|
|
215
|
-
function
|
|
216
|
-
return
|
|
389
|
+
function se(e) {
|
|
390
|
+
return T2(ne(R - 1, me(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
217
391
|
}
|
|
218
|
-
function
|
|
219
|
-
for (; (
|
|
220
|
-
|
|
221
|
-
return
|
|
392
|
+
function b1(e) {
|
|
393
|
+
for (; (T = H()) && T < 33; )
|
|
394
|
+
V();
|
|
395
|
+
return te(e) > 2 || te(T) > 3 ? "" : " ";
|
|
222
396
|
}
|
|
223
|
-
function
|
|
224
|
-
for (; --t &&
|
|
397
|
+
function x1(e, t) {
|
|
398
|
+
for (; --t && V() && !(T < 48 || T > 102 || T > 57 && T < 65 || T > 70 && T < 97); )
|
|
225
399
|
;
|
|
226
|
-
return
|
|
400
|
+
return ne(e, oe() + (t < 6 && H() == 32 && V() == 32));
|
|
227
401
|
}
|
|
228
|
-
function
|
|
229
|
-
for (;
|
|
230
|
-
switch (
|
|
402
|
+
function me(e) {
|
|
403
|
+
for (; V(); )
|
|
404
|
+
switch (T) {
|
|
231
405
|
// ] ) " '
|
|
232
406
|
case e:
|
|
233
|
-
return
|
|
407
|
+
return R;
|
|
234
408
|
// " '
|
|
235
409
|
case 34:
|
|
236
410
|
case 39:
|
|
237
|
-
e !== 34 && e !== 39 &&
|
|
411
|
+
e !== 34 && e !== 39 && me(T);
|
|
238
412
|
break;
|
|
239
413
|
// (
|
|
240
414
|
case 40:
|
|
241
|
-
e === 41 &&
|
|
415
|
+
e === 41 && me(e);
|
|
242
416
|
break;
|
|
243
417
|
// \
|
|
244
418
|
case 92:
|
|
245
|
-
|
|
419
|
+
V();
|
|
246
420
|
break;
|
|
247
421
|
}
|
|
248
|
-
return
|
|
422
|
+
return R;
|
|
249
423
|
}
|
|
250
|
-
function
|
|
251
|
-
for (;
|
|
252
|
-
if (e +
|
|
424
|
+
function y1(e, t) {
|
|
425
|
+
for (; V() && e + T !== 57; )
|
|
426
|
+
if (e + T === 84 && H() === 47)
|
|
253
427
|
break;
|
|
254
|
-
return "/*" +
|
|
428
|
+
return "/*" + ne(t, R - 1) + "*" + he(e === 47 ? e : V());
|
|
255
429
|
}
|
|
256
|
-
function
|
|
257
|
-
for (; !
|
|
258
|
-
|
|
259
|
-
return
|
|
430
|
+
function M1(e) {
|
|
431
|
+
for (; !te(H()); )
|
|
432
|
+
V();
|
|
433
|
+
return ne(e, R);
|
|
260
434
|
}
|
|
261
|
-
function
|
|
262
|
-
return
|
|
435
|
+
function I1(e) {
|
|
436
|
+
return E2(ie("", null, null, null, [""], e = N2(e), 0, [0], e));
|
|
263
437
|
}
|
|
264
|
-
function
|
|
265
|
-
for (var
|
|
266
|
-
switch (
|
|
438
|
+
function ie(e, t, o, r, i, s, c, a, l) {
|
|
439
|
+
for (var f = 0, d = 0, h = c, u = 0, C = 0, p = 0, g = 1, I = 1, v = 1, L = 0, N = "", _ = i, D = s, W = r, y = N; I; )
|
|
440
|
+
switch (p = L, L = V()) {
|
|
267
441
|
// (
|
|
268
442
|
case 40:
|
|
269
|
-
if (
|
|
270
|
-
|
|
443
|
+
if (p != 108 && E(y, h - 1) == 58) {
|
|
444
|
+
we(y += x(se(L), "&", "&\f"), "&\f") != -1 && (v = -1);
|
|
271
445
|
break;
|
|
272
446
|
}
|
|
273
447
|
// " ' [
|
|
274
448
|
case 34:
|
|
275
449
|
case 39:
|
|
276
450
|
case 91:
|
|
277
|
-
y +=
|
|
451
|
+
y += se(L);
|
|
278
452
|
break;
|
|
279
453
|
// \t \n \r \s
|
|
280
454
|
case 9:
|
|
281
455
|
case 10:
|
|
282
456
|
case 13:
|
|
283
457
|
case 32:
|
|
284
|
-
y +=
|
|
458
|
+
y += b1(p);
|
|
285
459
|
break;
|
|
286
460
|
// \
|
|
287
461
|
case 92:
|
|
288
|
-
y +=
|
|
462
|
+
y += x1(oe() - 1, 7);
|
|
289
463
|
continue;
|
|
290
464
|
// /
|
|
291
465
|
case 47:
|
|
292
|
-
switch (
|
|
466
|
+
switch (H()) {
|
|
293
467
|
case 42:
|
|
294
468
|
case 47:
|
|
295
|
-
|
|
469
|
+
re(L1(y1(V(), oe()), t, o), l);
|
|
296
470
|
break;
|
|
297
471
|
default:
|
|
298
472
|
y += "/";
|
|
299
473
|
}
|
|
300
474
|
break;
|
|
301
475
|
// {
|
|
302
|
-
case 123 *
|
|
303
|
-
|
|
476
|
+
case 123 * g:
|
|
477
|
+
a[f++] = P(y) * v;
|
|
304
478
|
// } ; \0
|
|
305
|
-
case 125 *
|
|
479
|
+
case 125 * g:
|
|
306
480
|
case 59:
|
|
307
481
|
case 0:
|
|
308
482
|
switch (L) {
|
|
@@ -312,148 +486,148 @@ function t2(e, t, o, n, i, s, p, c, C) {
|
|
|
312
486
|
I = 0;
|
|
313
487
|
// ;
|
|
314
488
|
case 59 + d:
|
|
315
|
-
|
|
489
|
+
v == -1 && (y = x(y, /\f/g, "")), C > 0 && P(y) - h && re(C > 32 ? We(y + ";", r, o, h - 1) : We(x(y, " ", "") + ";", r, o, h - 2), l);
|
|
316
490
|
break;
|
|
317
491
|
// @ ;
|
|
318
492
|
case 59:
|
|
319
493
|
y += ";";
|
|
320
494
|
// { rule/at-rule
|
|
321
495
|
default:
|
|
322
|
-
if (
|
|
496
|
+
if (re(W = Ve(y, t, o, f, d, i, a, N, _ = [], D = [], h), s), L === 123)
|
|
323
497
|
if (d === 0)
|
|
324
|
-
|
|
498
|
+
ie(y, t, W, W, _, s, h, a, D);
|
|
325
499
|
else
|
|
326
|
-
switch (
|
|
500
|
+
switch (u === 99 && E(y, 3) === 110 ? 100 : u) {
|
|
327
501
|
// d l m s
|
|
328
502
|
case 100:
|
|
329
503
|
case 108:
|
|
330
504
|
case 109:
|
|
331
505
|
case 115:
|
|
332
|
-
|
|
506
|
+
ie(e, W, W, r && re(Ve(e, W, W, 0, 0, i, a, N, i, _ = [], h), D), i, D, h, a, r ? _ : D);
|
|
333
507
|
break;
|
|
334
508
|
default:
|
|
335
|
-
|
|
509
|
+
ie(y, W, W, W, [""], D, 0, a, D);
|
|
336
510
|
}
|
|
337
511
|
}
|
|
338
|
-
|
|
512
|
+
f = d = C = 0, g = v = 1, N = y = "", h = c;
|
|
339
513
|
break;
|
|
340
514
|
// :
|
|
341
515
|
case 58:
|
|
342
|
-
|
|
516
|
+
h = 1 + P(y), C = p;
|
|
343
517
|
default:
|
|
344
|
-
if (
|
|
518
|
+
if (g < 1) {
|
|
345
519
|
if (L == 123)
|
|
346
|
-
--
|
|
347
|
-
else if (L == 125 &&
|
|
520
|
+
--g;
|
|
521
|
+
else if (L == 125 && g++ == 0 && v1() == 125)
|
|
348
522
|
continue;
|
|
349
523
|
}
|
|
350
|
-
switch (y +=
|
|
524
|
+
switch (y += he(L), L * g) {
|
|
351
525
|
// &
|
|
352
526
|
case 38:
|
|
353
|
-
|
|
527
|
+
v = d > 0 ? 1 : (y += "\f", -1);
|
|
354
528
|
break;
|
|
355
529
|
// ,
|
|
356
530
|
case 44:
|
|
357
|
-
|
|
531
|
+
a[f++] = (P(y) - 1) * v, v = 1;
|
|
358
532
|
break;
|
|
359
533
|
// @
|
|
360
534
|
case 64:
|
|
361
|
-
|
|
535
|
+
H() === 45 && (y += se(V())), u = H(), d = h = P(N = y += M1(oe())), L++;
|
|
362
536
|
break;
|
|
363
537
|
// -
|
|
364
538
|
case 45:
|
|
365
|
-
|
|
539
|
+
p === 45 && P(y) == 2 && (g = 0);
|
|
366
540
|
}
|
|
367
541
|
}
|
|
368
542
|
return s;
|
|
369
543
|
}
|
|
370
|
-
function
|
|
371
|
-
for (var
|
|
372
|
-
for (var
|
|
373
|
-
(
|
|
374
|
-
return
|
|
544
|
+
function Ve(e, t, o, r, i, s, c, a, l, f, d) {
|
|
545
|
+
for (var h = i - 1, u = i === 0 ? s : [""], C = Le(u), p = 0, g = 0, I = 0; p < r; ++p)
|
|
546
|
+
for (var v = 0, L = ee(e, h + 1, h = C1(g = c[p])), N = e; v < C; ++v)
|
|
547
|
+
(N = T2(g > 0 ? u[v] + " " + L : x(L, /&\f/g, u[v]))) && (l[I++] = N);
|
|
548
|
+
return pe(e, t, o, i === 0 ? Me : a, l, f, d);
|
|
375
549
|
}
|
|
376
|
-
function
|
|
377
|
-
return
|
|
550
|
+
function L1(e, t, o) {
|
|
551
|
+
return pe(e, t, o, I2, he(k1()), ee(e, 2, -2), 0);
|
|
378
552
|
}
|
|
379
|
-
function
|
|
380
|
-
return
|
|
553
|
+
function We(e, t, o, r) {
|
|
554
|
+
return pe(e, t, o, Ie, ee(e, 0, r), ee(e, r + 1, -1), r);
|
|
381
555
|
}
|
|
382
|
-
function
|
|
383
|
-
for (var o = "",
|
|
556
|
+
function G(e, t) {
|
|
557
|
+
for (var o = "", r = Le(e), i = 0; i < r; i++)
|
|
384
558
|
o += t(e[i], i, e, t) || "";
|
|
385
559
|
return o;
|
|
386
560
|
}
|
|
387
|
-
function
|
|
561
|
+
function T1(e, t, o, r) {
|
|
388
562
|
switch (e.type) {
|
|
389
|
-
case
|
|
563
|
+
case p1:
|
|
390
564
|
if (e.children.length) break;
|
|
391
|
-
case
|
|
392
|
-
case
|
|
565
|
+
case u1:
|
|
566
|
+
case Ie:
|
|
393
567
|
return e.return = e.return || e.value;
|
|
394
|
-
case
|
|
568
|
+
case I2:
|
|
395
569
|
return "";
|
|
396
|
-
case
|
|
397
|
-
return e.return = e.value + "{" +
|
|
398
|
-
case
|
|
570
|
+
case L2:
|
|
571
|
+
return e.return = e.value + "{" + G(e.children, r) + "}";
|
|
572
|
+
case Me:
|
|
399
573
|
e.value = e.props.join(",");
|
|
400
574
|
}
|
|
401
|
-
return
|
|
575
|
+
return P(o = G(e.children, r)) ? e.return = e.value + "{" + o + "}" : "";
|
|
402
576
|
}
|
|
403
|
-
function
|
|
404
|
-
var t =
|
|
405
|
-
return function(o,
|
|
406
|
-
for (var
|
|
407
|
-
|
|
408
|
-
return
|
|
577
|
+
function S1(e) {
|
|
578
|
+
var t = Le(e);
|
|
579
|
+
return function(o, r, i, s) {
|
|
580
|
+
for (var c = "", a = 0; a < t; a++)
|
|
581
|
+
c += e[a](o, r, i, s) || "";
|
|
582
|
+
return c;
|
|
409
583
|
};
|
|
410
584
|
}
|
|
411
|
-
function
|
|
585
|
+
function N1(e) {
|
|
412
586
|
return function(t) {
|
|
413
587
|
t.root || (t = t.return) && e(t);
|
|
414
588
|
};
|
|
415
589
|
}
|
|
416
|
-
var
|
|
417
|
-
for (var i = 0, s = 0; i = s, s =
|
|
418
|
-
|
|
419
|
-
return
|
|
420
|
-
},
|
|
421
|
-
var
|
|
590
|
+
var E1 = function(t, o, r) {
|
|
591
|
+
for (var i = 0, s = 0; i = s, s = H(), i === 38 && s === 12 && (o[r] = 1), !te(s); )
|
|
592
|
+
V();
|
|
593
|
+
return ne(t, R);
|
|
594
|
+
}, A1 = function(t, o) {
|
|
595
|
+
var r = -1, i = 44;
|
|
422
596
|
do
|
|
423
|
-
switch (
|
|
597
|
+
switch (te(i)) {
|
|
424
598
|
case 0:
|
|
425
|
-
i === 38 &&
|
|
599
|
+
i === 38 && H() === 12 && (o[r] = 1), t[r] += E1(R - 1, o, r);
|
|
426
600
|
break;
|
|
427
601
|
case 2:
|
|
428
|
-
t[
|
|
602
|
+
t[r] += se(i);
|
|
429
603
|
break;
|
|
430
604
|
case 4:
|
|
431
605
|
if (i === 44) {
|
|
432
|
-
t[++
|
|
606
|
+
t[++r] = H() === 58 ? "&\f" : "", o[r] = t[r].length;
|
|
433
607
|
break;
|
|
434
608
|
}
|
|
435
609
|
// fallthrough
|
|
436
610
|
default:
|
|
437
|
-
t[
|
|
611
|
+
t[r] += he(i);
|
|
438
612
|
}
|
|
439
|
-
while (i =
|
|
613
|
+
while (i = V());
|
|
440
614
|
return t;
|
|
441
|
-
},
|
|
442
|
-
return
|
|
443
|
-
},
|
|
615
|
+
}, B1 = function(t, o) {
|
|
616
|
+
return E2(A1(N2(t), o));
|
|
617
|
+
}, Pe = /* @__PURE__ */ new WeakMap(), R1 = function(t) {
|
|
444
618
|
if (!(t.type !== "rule" || !t.parent || // positive .length indicates that this rule contains pseudo
|
|
445
619
|
// negative .length indicates that this rule has been already prefixed
|
|
446
620
|
t.length < 1)) {
|
|
447
|
-
for (var o = t.value,
|
|
448
|
-
if (
|
|
449
|
-
if (!(t.props.length === 1 && o.charCodeAt(0) !== 58 && !
|
|
450
|
-
|
|
451
|
-
for (var s = [],
|
|
452
|
-
for (var d = 0; d <
|
|
453
|
-
t.props[
|
|
621
|
+
for (var o = t.value, r = t.parent, i = t.column === r.column && t.line === r.line; r.type !== "rule"; )
|
|
622
|
+
if (r = r.parent, !r) return;
|
|
623
|
+
if (!(t.props.length === 1 && o.charCodeAt(0) !== 58 && !Pe.get(r)) && !i) {
|
|
624
|
+
Pe.set(t, !0);
|
|
625
|
+
for (var s = [], c = B1(o, s), a = r.props, l = 0, f = 0; l < c.length; l++)
|
|
626
|
+
for (var d = 0; d < a.length; d++, f++)
|
|
627
|
+
t.props[f] = s[l] ? c[l].replace(/&\f/g, a[d]) : a[d] + " " + c[l];
|
|
454
628
|
}
|
|
455
629
|
}
|
|
456
|
-
},
|
|
630
|
+
}, V1 = function(t) {
|
|
457
631
|
if (t.type === "decl") {
|
|
458
632
|
var o = t.value;
|
|
459
633
|
// charcode for l
|
|
@@ -461,11 +635,11 @@ var X1 = function(t, o, n) {
|
|
|
461
635
|
o.charCodeAt(2) === 98 && (t.return = "", t.value = "");
|
|
462
636
|
}
|
|
463
637
|
};
|
|
464
|
-
function
|
|
465
|
-
switch (
|
|
638
|
+
function A2(e, t) {
|
|
639
|
+
switch (f1(e, t)) {
|
|
466
640
|
// color-adjust
|
|
467
641
|
case 5103:
|
|
468
|
-
return
|
|
642
|
+
return b + "print-" + e + e;
|
|
469
643
|
// animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
|
|
470
644
|
case 5737:
|
|
471
645
|
case 4201:
|
|
@@ -495,58 +669,58 @@ function le(e, t) {
|
|
|
495
669
|
case 5365:
|
|
496
670
|
case 5621:
|
|
497
671
|
case 3829:
|
|
498
|
-
return
|
|
672
|
+
return b + e + e;
|
|
499
673
|
// appearance, user-select, transform, hyphens, text-size-adjust
|
|
500
674
|
case 5349:
|
|
501
675
|
case 4246:
|
|
502
676
|
case 4810:
|
|
503
677
|
case 6968:
|
|
504
678
|
case 2756:
|
|
505
|
-
return
|
|
679
|
+
return b + e + le + e + A + e + e;
|
|
506
680
|
// flex, flex-direction
|
|
507
681
|
case 6828:
|
|
508
682
|
case 4268:
|
|
509
|
-
return
|
|
683
|
+
return b + e + A + e + e;
|
|
510
684
|
// order
|
|
511
685
|
case 6165:
|
|
512
|
-
return
|
|
686
|
+
return b + e + A + "flex-" + e + e;
|
|
513
687
|
// align-items
|
|
514
688
|
case 5187:
|
|
515
|
-
return
|
|
689
|
+
return b + e + x(e, /(\w+).+(:[^]+)/, b + "box-$1$2" + A + "flex-$1$2") + e;
|
|
516
690
|
// align-self
|
|
517
691
|
case 5443:
|
|
518
|
-
return
|
|
692
|
+
return b + e + A + "flex-item-" + x(e, /flex-|-self/, "") + e;
|
|
519
693
|
// align-content
|
|
520
694
|
case 4675:
|
|
521
|
-
return
|
|
695
|
+
return b + e + A + "flex-line-pack" + x(e, /align-content|flex-|-self/, "") + e;
|
|
522
696
|
// flex-shrink
|
|
523
697
|
case 5548:
|
|
524
|
-
return
|
|
698
|
+
return b + e + A + x(e, "shrink", "negative") + e;
|
|
525
699
|
// flex-basis
|
|
526
700
|
case 5292:
|
|
527
|
-
return
|
|
701
|
+
return b + e + A + x(e, "basis", "preferred-size") + e;
|
|
528
702
|
// flex-grow
|
|
529
703
|
case 6060:
|
|
530
|
-
return
|
|
704
|
+
return b + "box-" + x(e, "-grow", "") + b + e + A + x(e, "grow", "positive") + e;
|
|
531
705
|
// transition
|
|
532
706
|
case 4554:
|
|
533
|
-
return
|
|
707
|
+
return b + x(e, /([^-])(transform)/g, "$1" + b + "$2") + e;
|
|
534
708
|
// cursor
|
|
535
709
|
case 6187:
|
|
536
|
-
return
|
|
710
|
+
return x(x(x(e, /(zoom-|grab)/, b + "$1"), /(image-set)/, b + "$1"), e, "") + e;
|
|
537
711
|
// background, background-image
|
|
538
712
|
case 5495:
|
|
539
713
|
case 3959:
|
|
540
|
-
return
|
|
714
|
+
return x(e, /(image-set\([^]*)/, b + "$1$`$1");
|
|
541
715
|
// justify-content
|
|
542
716
|
case 4968:
|
|
543
|
-
return
|
|
717
|
+
return x(x(e, /(.+:)(flex-)?(.*)/, b + "box-pack:$3" + A + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + b + e + e;
|
|
544
718
|
// (margin|padding)-inline-(start|end)
|
|
545
719
|
case 4095:
|
|
546
720
|
case 3583:
|
|
547
721
|
case 4068:
|
|
548
722
|
case 2532:
|
|
549
|
-
return
|
|
723
|
+
return x(e, /(.+)-inline(.+)/, b + "$1$2") + e;
|
|
550
724
|
// (min|max)?(width|height|inline-size|block-size)
|
|
551
725
|
case 8116:
|
|
552
726
|
case 7059:
|
|
@@ -560,116 +734,116 @@ function le(e, t) {
|
|
|
560
734
|
case 5789:
|
|
561
735
|
case 5021:
|
|
562
736
|
case 4765:
|
|
563
|
-
if (
|
|
737
|
+
if (P(e) - 1 - t > 6) switch (E(e, t + 1)) {
|
|
564
738
|
// (m)ax-content, (m)in-content
|
|
565
739
|
case 109:
|
|
566
|
-
if (
|
|
740
|
+
if (E(e, t + 4) !== 45) break;
|
|
567
741
|
// (f)ill-available, (f)it-content
|
|
568
742
|
case 102:
|
|
569
|
-
return
|
|
743
|
+
return x(e, /(.+:)(.+)-([^]+)/, "$1" + b + "$2-$3$1" + le + (E(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
570
744
|
// (s)tretch
|
|
571
745
|
case 115:
|
|
572
|
-
return ~
|
|
746
|
+
return ~we(e, "stretch") ? A2(x(e, "stretch", "fill-available"), t) + e : e;
|
|
573
747
|
}
|
|
574
748
|
break;
|
|
575
749
|
// position: sticky
|
|
576
750
|
case 4949:
|
|
577
|
-
if (
|
|
751
|
+
if (E(e, t + 1) !== 115) break;
|
|
578
752
|
// display: (flex|inline-flex)
|
|
579
753
|
case 6444:
|
|
580
|
-
switch (
|
|
754
|
+
switch (E(e, P(e) - 3 - (~we(e, "!important") && 10))) {
|
|
581
755
|
// stic(k)y
|
|
582
756
|
case 107:
|
|
583
|
-
return
|
|
757
|
+
return x(e, ":", ":" + b) + e;
|
|
584
758
|
// (inline-)?fl(e)x
|
|
585
759
|
case 101:
|
|
586
|
-
return
|
|
760
|
+
return x(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + b + (E(e, 14) === 45 ? "inline-" : "") + "box$3$1" + b + "$2$3$1" + A + "$2box$3") + e;
|
|
587
761
|
}
|
|
588
762
|
break;
|
|
589
763
|
// writing-mode
|
|
590
764
|
case 5936:
|
|
591
|
-
switch (
|
|
765
|
+
switch (E(e, t + 11)) {
|
|
592
766
|
// vertical-l(r)
|
|
593
767
|
case 114:
|
|
594
|
-
return
|
|
768
|
+
return b + e + A + x(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
|
|
595
769
|
// vertical-r(l)
|
|
596
770
|
case 108:
|
|
597
|
-
return
|
|
771
|
+
return b + e + A + x(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
|
|
598
772
|
// horizontal(-)tb
|
|
599
773
|
case 45:
|
|
600
|
-
return
|
|
774
|
+
return b + e + A + x(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
|
|
601
775
|
}
|
|
602
|
-
return
|
|
776
|
+
return b + e + A + e + e;
|
|
603
777
|
}
|
|
604
778
|
return e;
|
|
605
779
|
}
|
|
606
|
-
var
|
|
780
|
+
var W1 = function(t, o, r, i) {
|
|
607
781
|
if (t.length > -1 && !t.return) switch (t.type) {
|
|
608
|
-
case
|
|
609
|
-
t.return =
|
|
782
|
+
case Ie:
|
|
783
|
+
t.return = A2(t.value, t.length);
|
|
610
784
|
break;
|
|
611
|
-
case
|
|
612
|
-
return
|
|
613
|
-
value:
|
|
785
|
+
case L2:
|
|
786
|
+
return G([K(t, {
|
|
787
|
+
value: x(t.value, "@", "@" + b)
|
|
614
788
|
})], i);
|
|
615
|
-
case
|
|
616
|
-
if (t.length) return
|
|
617
|
-
switch (
|
|
789
|
+
case Me:
|
|
790
|
+
if (t.length) return m1(t.props, function(s) {
|
|
791
|
+
switch (w1(s, /(::plac\w+|:read-\w+)/)) {
|
|
618
792
|
// :read-(only|write)
|
|
619
793
|
case ":read-only":
|
|
620
794
|
case ":read-write":
|
|
621
|
-
return
|
|
622
|
-
props: [
|
|
795
|
+
return G([K(t, {
|
|
796
|
+
props: [x(s, /:(read-\w+)/, ":" + le + "$1")]
|
|
623
797
|
})], i);
|
|
624
798
|
// :placeholder
|
|
625
799
|
case "::placeholder":
|
|
626
|
-
return
|
|
627
|
-
props: [
|
|
628
|
-
}),
|
|
629
|
-
props: [
|
|
630
|
-
}),
|
|
631
|
-
props: [
|
|
800
|
+
return G([K(t, {
|
|
801
|
+
props: [x(s, /:(plac\w+)/, ":" + b + "input-$1")]
|
|
802
|
+
}), K(t, {
|
|
803
|
+
props: [x(s, /:(plac\w+)/, ":" + le + "$1")]
|
|
804
|
+
}), K(t, {
|
|
805
|
+
props: [x(s, /:(plac\w+)/, A + "input-$1")]
|
|
632
806
|
})], i);
|
|
633
807
|
}
|
|
634
808
|
return "";
|
|
635
809
|
});
|
|
636
810
|
}
|
|
637
|
-
},
|
|
811
|
+
}, P1 = [W1], H1 = function(t) {
|
|
638
812
|
var o = t.key;
|
|
639
813
|
if (o === "css") {
|
|
640
|
-
var
|
|
641
|
-
Array.prototype.forEach.call(
|
|
642
|
-
var I =
|
|
643
|
-
I.indexOf(" ") !== -1 && (document.head.appendChild(
|
|
814
|
+
var r = document.querySelectorAll("style[data-emotion]:not([data-s])");
|
|
815
|
+
Array.prototype.forEach.call(r, function(g) {
|
|
816
|
+
var I = g.getAttribute("data-emotion");
|
|
817
|
+
I.indexOf(" ") !== -1 && (document.head.appendChild(g), g.setAttribute("data-s", ""));
|
|
644
818
|
});
|
|
645
819
|
}
|
|
646
|
-
var i = t.stylisPlugins ||
|
|
647
|
-
|
|
820
|
+
var i = t.stylisPlugins || P1, s = {}, c, a = [];
|
|
821
|
+
c = t.container || document.head, Array.prototype.forEach.call(
|
|
648
822
|
// this means we will ignore elements which don't have a space in them which
|
|
649
823
|
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
|
650
824
|
document.querySelectorAll('style[data-emotion^="' + o + ' "]'),
|
|
651
|
-
function(
|
|
652
|
-
for (var I =
|
|
653
|
-
s[I[
|
|
654
|
-
|
|
825
|
+
function(g) {
|
|
826
|
+
for (var I = g.getAttribute("data-emotion").split(" "), v = 1; v < I.length; v++)
|
|
827
|
+
s[I[v]] = !0;
|
|
828
|
+
a.push(g);
|
|
655
829
|
}
|
|
656
830
|
);
|
|
657
|
-
var
|
|
831
|
+
var l, f = [R1, V1];
|
|
658
832
|
{
|
|
659
|
-
var d,
|
|
660
|
-
d.insert(
|
|
661
|
-
})],
|
|
662
|
-
return
|
|
833
|
+
var d, h = [T1, N1(function(g) {
|
|
834
|
+
d.insert(g);
|
|
835
|
+
})], u = S1(f.concat(i, h)), C = function(I) {
|
|
836
|
+
return G(I1(I), u);
|
|
663
837
|
};
|
|
664
|
-
|
|
665
|
-
d = L,
|
|
838
|
+
l = function(I, v, L, N) {
|
|
839
|
+
d = L, C(I ? I + "{" + v.styles + "}" : v.styles), N && (p.inserted[v.name] = !0);
|
|
666
840
|
};
|
|
667
841
|
}
|
|
668
|
-
var
|
|
842
|
+
var p = {
|
|
669
843
|
key: o,
|
|
670
|
-
sheet: new
|
|
844
|
+
sheet: new h1({
|
|
671
845
|
key: o,
|
|
672
|
-
container:
|
|
846
|
+
container: c,
|
|
673
847
|
nonce: t.nonce,
|
|
674
848
|
speedy: t.speedy,
|
|
675
849
|
prepend: t.prepend,
|
|
@@ -678,68 +852,68 @@ var rt = function(t, o, n, i) {
|
|
|
678
852
|
nonce: t.nonce,
|
|
679
853
|
inserted: s,
|
|
680
854
|
registered: {},
|
|
681
|
-
insert:
|
|
855
|
+
insert: l
|
|
682
856
|
};
|
|
683
|
-
return
|
|
857
|
+
return p.sheet.hydrate(a), p;
|
|
684
858
|
};
|
|
685
|
-
const
|
|
686
|
-
const
|
|
859
|
+
const B2 = ({ children: e, viewport: t, containerProps: o }) => {
|
|
860
|
+
const r = de(null), { theme: i } = q(), [s, c] = j({
|
|
687
861
|
width: 0,
|
|
688
862
|
height: 0
|
|
689
863
|
});
|
|
690
|
-
|
|
691
|
-
const
|
|
692
|
-
const
|
|
693
|
-
if (!
|
|
694
|
-
const { width: L, height:
|
|
695
|
-
|
|
864
|
+
J(() => {
|
|
865
|
+
const p = lt((I) => {
|
|
866
|
+
const v = I.at(0)?.target;
|
|
867
|
+
if (!v) return;
|
|
868
|
+
const { width: L, height: N } = v.getBoundingClientRect();
|
|
869
|
+
c(() => ({
|
|
696
870
|
width: L,
|
|
697
|
-
height:
|
|
871
|
+
height: N
|
|
698
872
|
}));
|
|
699
|
-
}, 200),
|
|
700
|
-
return
|
|
873
|
+
}, 200), g = new ResizeObserver(p);
|
|
874
|
+
return r.current && g.observe(r.current), () => g.disconnect();
|
|
701
875
|
}, []);
|
|
702
|
-
const
|
|
703
|
-
return /* @__PURE__ */
|
|
876
|
+
const a = Ne(t?.width) ? t.width(s.width) : t?.width, l = Ne(t?.height) ? t.height(s.height) : t?.height, f = Q(a) ? s.width / a : 1, d = Q(l) ? s.height / l : 1, h = Math.min(f, d, 1), u = (l ?? s.height / h) || 0, C = (a ?? s.width / h) || 0;
|
|
877
|
+
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(
|
|
704
878
|
"div",
|
|
705
879
|
{
|
|
706
880
|
style: {
|
|
707
|
-
transform: `scale(${
|
|
708
|
-
width:
|
|
709
|
-
height:
|
|
710
|
-
marginLeft: (s.width -
|
|
711
|
-
marginTop: (s.height -
|
|
881
|
+
transform: `scale(${h})`,
|
|
882
|
+
width: C,
|
|
883
|
+
height: u,
|
|
884
|
+
marginLeft: (s.width - C) / 2,
|
|
885
|
+
marginTop: (s.height - u) / 2
|
|
712
886
|
},
|
|
713
887
|
css: { position: "absolute" },
|
|
714
|
-
children: /* @__PURE__ */
|
|
715
|
-
|
|
888
|
+
children: /* @__PURE__ */ n(
|
|
889
|
+
e1,
|
|
716
890
|
{
|
|
717
891
|
sandbox: "allow-same-origin allow-scripts allow-popups allow-presentation",
|
|
718
892
|
allow: "autoplay; encrypted-media",
|
|
719
|
-
width:
|
|
720
|
-
height:
|
|
721
|
-
children: /* @__PURE__ */
|
|
893
|
+
width: a ?? "100%",
|
|
894
|
+
height: l ?? "100%",
|
|
895
|
+
children: /* @__PURE__ */ n(D1, { theme: i, children: e })
|
|
722
896
|
}
|
|
723
897
|
)
|
|
724
898
|
}
|
|
725
899
|
) }) });
|
|
726
|
-
},
|
|
727
|
-
const { document: o, window:
|
|
728
|
-
|
|
729
|
-
const
|
|
730
|
-
return
|
|
731
|
-
window.customElements.get(
|
|
900
|
+
}, D1 = ({ children: e, theme: t }) => {
|
|
901
|
+
const { document: o, window: r } = t1(), [i, s] = j(!1), c = de(window.customElements.define.bind(window.customElements));
|
|
902
|
+
J(() => {
|
|
903
|
+
const l = c.current;
|
|
904
|
+
return r && (window.customElements.define = function(f, d, h) {
|
|
905
|
+
window.customElements.get(f) || r.customElements.define(f, d, h), l(f, d, h);
|
|
732
906
|
}), o?.head.replaceWith(document.head.cloneNode(!0)), s(!0), () => {
|
|
733
|
-
window.customElements.define =
|
|
907
|
+
window.customElements.define = l;
|
|
734
908
|
};
|
|
735
|
-
}, [o,
|
|
736
|
-
const
|
|
909
|
+
}, [o, r]);
|
|
910
|
+
const a = H1({
|
|
737
911
|
key: "css",
|
|
738
912
|
container: o?.head
|
|
739
913
|
});
|
|
740
|
-
return i ? /* @__PURE__ */
|
|
741
|
-
/* @__PURE__ */
|
|
742
|
-
|
|
914
|
+
return i ? /* @__PURE__ */ n(_e, { children: /* @__PURE__ */ m(Zt, { value: a, children: [
|
|
915
|
+
/* @__PURE__ */ n(
|
|
916
|
+
$t,
|
|
743
917
|
{
|
|
744
918
|
styles: {
|
|
745
919
|
".frame-content": {
|
|
@@ -748,61 +922,337 @@ const he = ({ children: e, viewport: t, containerProps: o }) => {
|
|
|
748
922
|
minHeight: "100vh",
|
|
749
923
|
justifyContent: "center"
|
|
750
924
|
},
|
|
751
|
-
[`& *[${
|
|
925
|
+
[`& *[${Te.DATA_NODE_DROP_TARGET}=${Se.True}]`]: {
|
|
752
926
|
outlineWidth: 1,
|
|
753
927
|
outlineStyle: "solid",
|
|
754
928
|
outlineOffset: -1,
|
|
755
929
|
outlineColor: "green"
|
|
756
930
|
},
|
|
757
|
-
[`& *[${
|
|
931
|
+
[`& *[${Te.DATA_NODE_DROP_TARGET_ERROR}=${Se.True}]`]: {
|
|
758
932
|
outlineColor: "red"
|
|
759
933
|
}
|
|
760
934
|
}
|
|
761
935
|
}
|
|
762
936
|
),
|
|
763
|
-
/* @__PURE__ */
|
|
937
|
+
/* @__PURE__ */ n(Jt, { theme: t, children: e })
|
|
764
938
|
] }) }) : null;
|
|
765
|
-
}
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
939
|
+
};
|
|
940
|
+
var F = /* @__PURE__ */ ((e) => (e[e.Pixels = 0] = "Pixels", e[e.Unitless = 1] = "Unitless", e))(F || {});
|
|
941
|
+
const j1 = [
|
|
942
|
+
{
|
|
943
|
+
label: "Pixels",
|
|
944
|
+
value: 0
|
|
945
|
+
/* Pixels */
|
|
946
|
+
},
|
|
947
|
+
{
|
|
948
|
+
label: "Unitless",
|
|
949
|
+
value: 1
|
|
950
|
+
/* Unitless */
|
|
951
|
+
}
|
|
952
|
+
], ur = ({ name: e, responsive: t = !0, value: o, onChange: r }) => {
|
|
953
|
+
const i = Q(o?.lineHeight) ? F.Unitless : F.Pixels, s = i === F.Unitless ? 0.1 : 1, c = H2(o?.lineHeight, "float"), a = ({ unit: u, value: C }) => {
|
|
954
|
+
if ($(C)) {
|
|
955
|
+
r?.({
|
|
956
|
+
lineHeight: u === F.Unitless ? 1 : C
|
|
957
|
+
});
|
|
958
|
+
return;
|
|
959
|
+
}
|
|
960
|
+
r?.({
|
|
961
|
+
lineHeight: u === F.Unitless ? Number(C.toFixed(1)) : `${C}px`
|
|
962
|
+
});
|
|
963
|
+
}, l = (u) => {
|
|
964
|
+
a({ unit: Number(u.target.value) });
|
|
965
|
+
}, f = (u) => {
|
|
966
|
+
const C = isNaN(u.target.valueAsNumber) ? void 0 : u.target.valueAsNumber;
|
|
967
|
+
a({ unit: i, value: C });
|
|
968
|
+
}, d = (u) => {
|
|
969
|
+
u.stopPropagation(), !$(c) && a({ unit: i, value: Math.max(c + s, 0) });
|
|
970
|
+
}, h = (u) => {
|
|
971
|
+
u.stopPropagation(), !$(c) && a({ unit: i, value: Math.max(c - s, 0) });
|
|
972
|
+
};
|
|
973
|
+
return /* @__PURE__ */ m("div", { css: { display: "flex", flexDirection: "column", gap: 8 }, children: [
|
|
974
|
+
/* @__PURE__ */ n(Y, { responsive: t, name: e ?? "Line height", children: /* @__PURE__ */ n("div", { css: { display: "flex", alignItems: "center", gap: 4 }, children: j1.map((u) => /* @__PURE__ */ n(
|
|
975
|
+
Fe,
|
|
976
|
+
{
|
|
977
|
+
onChange: l,
|
|
978
|
+
checked: u.value === i,
|
|
979
|
+
value: u.value,
|
|
980
|
+
name: "toolbar-line-height",
|
|
981
|
+
children: u.label
|
|
982
|
+
},
|
|
983
|
+
u.value
|
|
984
|
+
)) }) }),
|
|
985
|
+
/* @__PURE__ */ n("div", { css: { display: "flex", justifyContent: "flex-end" }, children: /* @__PURE__ */ n("div", { css: { width: "50%" }, children: /* @__PURE__ */ n(
|
|
986
|
+
l2,
|
|
987
|
+
{
|
|
988
|
+
fractionDigits: 1,
|
|
989
|
+
type: i === F.Unitless ? "decimal" : "integer",
|
|
990
|
+
value: c ?? "",
|
|
991
|
+
onChange: f,
|
|
992
|
+
prefix: /* @__PURE__ */ n(B, { disabled: Q(c) && c <= 0, onClick: h, children: /* @__PURE__ */ n(M, { source: Oe }) }),
|
|
993
|
+
suffix: /* @__PURE__ */ n(B, { onClick: d, children: /* @__PURE__ */ n(M, { source: ve }) }),
|
|
994
|
+
mode: "onBlur",
|
|
995
|
+
css: { textAlign: "center" },
|
|
996
|
+
placeholder: "normal"
|
|
997
|
+
}
|
|
998
|
+
) }) })
|
|
999
|
+
] });
|
|
1000
|
+
}, pr = ({ name: e, responsive: t = !0, value: o, onChange: r }) => {
|
|
1001
|
+
const i = (a) => {
|
|
1002
|
+
const l = isNaN(a.target.valueAsNumber) ? void 0 : a.target.valueAsNumber;
|
|
1003
|
+
r?.({
|
|
1004
|
+
...o,
|
|
1005
|
+
fontSize: l
|
|
1006
|
+
});
|
|
1007
|
+
}, s = (a) => {
|
|
1008
|
+
a.stopPropagation();
|
|
1009
|
+
const l = Ee(o?.fontSize) ? void 0 : o?.fontSize;
|
|
1010
|
+
r?.({
|
|
1011
|
+
...o,
|
|
1012
|
+
fontSize: $(l) ? 16 : l + 1
|
|
1013
|
+
});
|
|
1014
|
+
}, c = (a) => {
|
|
1015
|
+
a.stopPropagation();
|
|
1016
|
+
const l = Ee(o?.fontSize) ? void 0 : o?.fontSize;
|
|
1017
|
+
r?.({
|
|
1018
|
+
...o,
|
|
1019
|
+
fontSize: $(l) ? 16 : Math.max(l - 1, 0)
|
|
1020
|
+
});
|
|
1021
|
+
};
|
|
1022
|
+
return /* @__PURE__ */ n(Y, { responsive: t, name: e ?? "Font size", children: /* @__PURE__ */ n("div", { css: { width: "50%" }, children: /* @__PURE__ */ n(
|
|
1023
|
+
l2,
|
|
1024
|
+
{
|
|
1025
|
+
onCanPlay: i,
|
|
1026
|
+
mode: "onBlur",
|
|
1027
|
+
css: { textAlign: "center" },
|
|
1028
|
+
placeholder: "inherit",
|
|
1029
|
+
value: o?.fontSize ?? "",
|
|
1030
|
+
prefix: /* @__PURE__ */ n(B, { disabled: Q(o?.fontSize) && o.fontSize <= 0, onClick: c, children: /* @__PURE__ */ n(M, { source: Oe }) }),
|
|
1031
|
+
suffix: /* @__PURE__ */ n(B, { onClick: s, children: /* @__PURE__ */ n(M, { source: ve }) })
|
|
1032
|
+
}
|
|
1033
|
+
) }) });
|
|
1034
|
+
}, He = [
|
|
1035
|
+
{
|
|
1036
|
+
label: "Block",
|
|
1037
|
+
value: "block"
|
|
1038
|
+
},
|
|
1039
|
+
{
|
|
1040
|
+
label: "Inline",
|
|
1041
|
+
value: "inline"
|
|
1042
|
+
},
|
|
1043
|
+
{
|
|
1044
|
+
label: "Inline Block",
|
|
1045
|
+
value: "inline-block"
|
|
1046
|
+
},
|
|
1047
|
+
{
|
|
1048
|
+
label: "Flex",
|
|
1049
|
+
value: "flex"
|
|
1050
|
+
},
|
|
1051
|
+
{
|
|
1052
|
+
label: "Inline Flex",
|
|
1053
|
+
value: "flex"
|
|
1054
|
+
},
|
|
1055
|
+
{
|
|
1056
|
+
label: "Grid",
|
|
1057
|
+
value: "grid"
|
|
1058
|
+
},
|
|
1059
|
+
{
|
|
1060
|
+
label: "Inline Grid",
|
|
1061
|
+
value: "inline-grid"
|
|
1062
|
+
}
|
|
1063
|
+
], Cr = ({
|
|
1064
|
+
name: e,
|
|
1065
|
+
responsive: t = !1,
|
|
1066
|
+
availableDisplays: o,
|
|
1067
|
+
onChange: r,
|
|
1068
|
+
value: i
|
|
1069
|
+
}) => {
|
|
1070
|
+
const s = $(o) ? He : He.filter((a) => o.includes(a.value)), c = (a) => {
|
|
1071
|
+
r?.({ display: a });
|
|
1072
|
+
};
|
|
1073
|
+
return /* @__PURE__ */ n(Y, { name: e ?? "Display", responsive: t, children: /* @__PURE__ */ n(
|
|
1074
|
+
ht,
|
|
1075
|
+
{
|
|
1076
|
+
css: {
|
|
1077
|
+
width: "50%"
|
|
1078
|
+
},
|
|
1079
|
+
placement: "bottom-end",
|
|
1080
|
+
placeholder: "default",
|
|
1081
|
+
options: s,
|
|
1082
|
+
value: i?.display ?? null,
|
|
1083
|
+
onChange: c
|
|
1084
|
+
}
|
|
1085
|
+
) });
|
|
1086
|
+
}, gr = ({ value: e, onChange: t, name: o, responsive: r = !1 }) => {
|
|
1087
|
+
const i = {
|
|
1088
|
+
flexBasis: e?.flexBasis ?? "auto",
|
|
1089
|
+
flexGrow: e?.flexGrow ?? 0,
|
|
1090
|
+
flexShrink: e?.flexShrink ?? 1
|
|
1091
|
+
}, s = [
|
|
1092
|
+
{
|
|
1093
|
+
label: "Auto fit",
|
|
1094
|
+
value: 0,
|
|
1095
|
+
rawValue: {
|
|
1096
|
+
flexBasis: "auto",
|
|
1097
|
+
flexGrow: 0,
|
|
1098
|
+
flexShrink: 1
|
|
1099
|
+
}
|
|
1100
|
+
},
|
|
1101
|
+
{
|
|
1102
|
+
label: "Auto fill",
|
|
1103
|
+
value: 1,
|
|
1104
|
+
rawValue: {
|
|
1105
|
+
flexBasis: "0%",
|
|
1106
|
+
flexGrow: 1,
|
|
1107
|
+
flexShrink: 1
|
|
1108
|
+
}
|
|
1109
|
+
}
|
|
1110
|
+
], c = s.find((l) => dt(l.rawValue, i))?.value, a = (l) => {
|
|
1111
|
+
const f = s.find((d) => d.value === Number(l.target.value));
|
|
1112
|
+
f && t?.(f.rawValue);
|
|
1113
|
+
};
|
|
1114
|
+
return /* @__PURE__ */ n(Y, { name: o ?? "Content", responsive: r, children: /* @__PURE__ */ n("div", { css: { display: "inline-flex", alignItems: "center", gap: 8 }, children: s.map((l) => /* @__PURE__ */ n(
|
|
1115
|
+
Fe,
|
|
1116
|
+
{
|
|
1117
|
+
checked: l.value === c,
|
|
1118
|
+
value: l.value,
|
|
1119
|
+
onChange: a,
|
|
1120
|
+
children: l.label
|
|
1121
|
+
},
|
|
1122
|
+
l.value
|
|
1123
|
+
)) }) });
|
|
1124
|
+
}, fr = ({ name: e, value: t, onChange: o, responsive: r = !0 }) => {
|
|
1125
|
+
const i = de(null), s = (c) => {
|
|
1126
|
+
o?.({
|
|
1127
|
+
minWidth: c
|
|
1128
|
+
});
|
|
1129
|
+
};
|
|
1130
|
+
return /* @__PURE__ */ n(Y, { name: e ?? "Min width", responsive: r, children: /* @__PURE__ */ n("div", { css: { position: "relative", width: "50%" }, children: /* @__PURE__ */ n(
|
|
1131
|
+
ut,
|
|
1132
|
+
{
|
|
1133
|
+
fullWidth: !0,
|
|
1134
|
+
wrapRef: i,
|
|
1135
|
+
placeholder: "0",
|
|
1136
|
+
value: t?.minWidth,
|
|
1137
|
+
onChange: s,
|
|
1138
|
+
defaultValue: {
|
|
1139
|
+
"%": 100
|
|
1140
|
+
}
|
|
1141
|
+
}
|
|
1142
|
+
) }) });
|
|
1143
|
+
}, wr = ({ value: e, onChange: t }) => {
|
|
1144
|
+
const [o, r] = j(!1), i = (c) => {
|
|
1145
|
+
t?.({ ...e, sizeVariant: c });
|
|
1146
|
+
}, s = (c) => {
|
|
1147
|
+
t?.({
|
|
1148
|
+
...e,
|
|
1149
|
+
css: {
|
|
1150
|
+
...e?.css,
|
|
1151
|
+
...c
|
|
1152
|
+
}
|
|
1153
|
+
});
|
|
1154
|
+
};
|
|
1155
|
+
return /* @__PURE__ */ n(Y, { name: "Text style", children: /* @__PURE__ */ m(D2, { open: o, onOpenChange: r, placement: "right", children: [
|
|
1156
|
+
/* @__PURE__ */ n(j2, { children: /* @__PURE__ */ m(
|
|
1157
|
+
"button",
|
|
1158
|
+
{
|
|
1159
|
+
css: [
|
|
1160
|
+
{
|
|
1161
|
+
display: "flex",
|
|
1162
|
+
paddingInline: 8,
|
|
1163
|
+
alignItems: "center",
|
|
1164
|
+
gap: 8,
|
|
1165
|
+
borderRadius: 6,
|
|
1166
|
+
textAlign: "left",
|
|
1167
|
+
width: "50%",
|
|
1168
|
+
height: 32,
|
|
1169
|
+
backgroundColor: w.palette.white["1s"],
|
|
1170
|
+
overflow: "hidden",
|
|
1171
|
+
textOverflow: "ellipsis",
|
|
1172
|
+
whiteSpace: "nowrap",
|
|
1173
|
+
...w.text.xs
|
|
1174
|
+
},
|
|
1175
|
+
o && { backgroundColor: w.palette.black["7s"] }
|
|
1176
|
+
],
|
|
1177
|
+
children: [
|
|
1178
|
+
/* @__PURE__ */ n(M, { css: { color: "white" }, source: pt }),
|
|
1179
|
+
/* @__PURE__ */ n("span", { children: "Auto" })
|
|
1180
|
+
]
|
|
1181
|
+
}
|
|
1182
|
+
) }),
|
|
1183
|
+
/* @__PURE__ */ n(_2, { children: /* @__PURE__ */ m("div", { style: { width: 280 }, children: [
|
|
1184
|
+
/* @__PURE__ */ m("div", { css: { display: "flex", justifyContent: "space-between", alignItems: "center", gap: 8 }, children: [
|
|
1185
|
+
/* @__PURE__ */ n("div", { css: { fontWeight: 500 }, children: "Text style" }),
|
|
1186
|
+
/* @__PURE__ */ n(Ct, { children: /* @__PURE__ */ n(B, { children: /* @__PURE__ */ n(M, { source: ze }) }) })
|
|
1187
|
+
] }),
|
|
1188
|
+
/* @__PURE__ */ n("hr", { css: { marginBlock: 8, borderColor: w.palette.white["1s"] } }),
|
|
1189
|
+
/* @__PURE__ */ m("div", { css: { display: "flex", flexDirection: "column", gap: 12 }, children: [
|
|
1190
|
+
/* @__PURE__ */ n(gt, { value: e?.sizeVariant, onChange: i }),
|
|
1191
|
+
/* @__PURE__ */ n(ft, { value: { color: e?.css?.color }, onChange: s }),
|
|
1192
|
+
/* @__PURE__ */ n(
|
|
1193
|
+
wt,
|
|
1194
|
+
{
|
|
1195
|
+
name: "Style",
|
|
1196
|
+
value: {
|
|
1197
|
+
fontWeight: e?.css?.fontWeight,
|
|
1198
|
+
fontStyle: e?.css?.fontStyle,
|
|
1199
|
+
textDecorationLine: e?.css?.textDecorationLine
|
|
1200
|
+
},
|
|
1201
|
+
onChange: s
|
|
1202
|
+
}
|
|
1203
|
+
),
|
|
1204
|
+
/* @__PURE__ */ n(mt, { value: { fontWeight: e?.css?.fontWeight }, onChange: s }),
|
|
1205
|
+
/* @__PURE__ */ n(
|
|
1206
|
+
kt,
|
|
1207
|
+
{
|
|
1208
|
+
value: {
|
|
1209
|
+
textTransform: e?.css?.textTransform
|
|
1210
|
+
},
|
|
1211
|
+
onChange: s
|
|
1212
|
+
}
|
|
1213
|
+
)
|
|
1214
|
+
] })
|
|
1215
|
+
] }) })
|
|
1216
|
+
] }) });
|
|
1217
|
+
}, _1 = ({ render: e }) => {
|
|
1218
|
+
const { id: t, renderer: o } = rt((s) => ({
|
|
1219
|
+
resolvedId: O2(s),
|
|
1220
|
+
renderer: F2(s).renderer
|
|
1221
|
+
})), { mode: r } = q(), { isActive: i } = z((s, c) => ({
|
|
1222
|
+
isActive: c.getEvent("selected").contains(t) && t !== Z
|
|
773
1223
|
}));
|
|
774
|
-
return o ?
|
|
775
|
-
i &&
|
|
776
|
-
/* @__PURE__ */
|
|
777
|
-
/* @__PURE__ */
|
|
1224
|
+
return o ? c2(o, { render: e }) : /* @__PURE__ */ m(ce, { children: [
|
|
1225
|
+
i && r === "full" && /* @__PURE__ */ m(ce, { children: [
|
|
1226
|
+
/* @__PURE__ */ n(vt, {}),
|
|
1227
|
+
/* @__PURE__ */ n(bt, {})
|
|
778
1228
|
] }),
|
|
779
1229
|
e
|
|
780
1230
|
] });
|
|
781
1231
|
};
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
const
|
|
1232
|
+
S(Ze, { inspector: xt });
|
|
1233
|
+
S(ae, { inspector: yt });
|
|
1234
|
+
S($e, { inspector: Mt });
|
|
1235
|
+
S(be, { inspector: It });
|
|
1236
|
+
S(Ge, { inspector: Lt });
|
|
1237
|
+
S(ge, { inspector: Tt });
|
|
1238
|
+
S(Ue, { inspector: St });
|
|
1239
|
+
S(fe, { inspector: Nt });
|
|
1240
|
+
S(xe, { inspector: Et });
|
|
1241
|
+
S(qe, { inspector: At });
|
|
1242
|
+
S(Ye, { inspector: Bt });
|
|
1243
|
+
S(Xe, { inspector: Rt });
|
|
1244
|
+
S(Ke, { inspector: Vt });
|
|
1245
|
+
S(z2, { inspector: Wt });
|
|
1246
|
+
S(Je, { inspector: Pt });
|
|
1247
|
+
S(Qe, { inspector: Ht });
|
|
1248
|
+
S(e2, { inspector: Dt });
|
|
1249
|
+
S(t2, { inspector: jt });
|
|
1250
|
+
S(n2, { inspector: _t });
|
|
1251
|
+
const De = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
802
1252
|
<path d="M8 5L5 8L8 11" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
803
1253
|
<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"/>
|
|
804
1254
|
</svg>
|
|
805
|
-
`,
|
|
1255
|
+
`, F1 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
806
1256
|
<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"/>
|
|
807
1257
|
<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"/>
|
|
808
1258
|
<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"/>
|
|
@@ -810,32 +1260,27 @@ const E2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
810
1260
|
<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"/>
|
|
811
1261
|
<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"/>
|
|
812
1262
|
</svg>
|
|
813
|
-
`,
|
|
1263
|
+
`, O1 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
814
1264
|
<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"/>
|
|
815
1265
|
<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"/>
|
|
816
1266
|
</svg>
|
|
817
|
-
`,
|
|
818
|
-
const {
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
})), d = (h) => {
|
|
826
|
-
o({
|
|
827
|
-
screen: h
|
|
828
|
-
});
|
|
829
|
-
}, a = () => {
|
|
1267
|
+
`, z1 = '<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>', Z1 = () => {
|
|
1268
|
+
const { mode: e, screen: t, setState: o, handlers: r } = q(), [i, s] = j(!1), { actions: c, canRedo: a, canUndo: l, query: f } = z((p, g) => ({
|
|
1269
|
+
enabled: p.options.enabled,
|
|
1270
|
+
canUndo: g.history.canUndo(),
|
|
1271
|
+
canRedo: g.history.canRedo()
|
|
1272
|
+
})), d = (p) => {
|
|
1273
|
+
o({ screen: p });
|
|
1274
|
+
}, h = () => {
|
|
830
1275
|
o({ mode: e === "full" ? "compact" : "full" });
|
|
831
|
-
},
|
|
832
|
-
|
|
833
|
-
},
|
|
1276
|
+
}, u = () => {
|
|
1277
|
+
r.close();
|
|
1278
|
+
}, C = async () => {
|
|
834
1279
|
try {
|
|
835
|
-
return
|
|
1280
|
+
return c.selectNode(), r.submit(f.getSerializedNodes());
|
|
836
1281
|
} catch {
|
|
837
1282
|
} finally {
|
|
838
|
-
|
|
1283
|
+
s(!1);
|
|
839
1284
|
}
|
|
840
1285
|
};
|
|
841
1286
|
return /* @__PURE__ */ m(
|
|
@@ -847,14 +1292,14 @@ const E2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
847
1292
|
alignItems: "center",
|
|
848
1293
|
gap: 16,
|
|
849
1294
|
justifyContent: "space-between",
|
|
850
|
-
backgroundColor:
|
|
851
|
-
color:
|
|
852
|
-
...
|
|
1295
|
+
backgroundColor: w.palette.ink["6s"],
|
|
1296
|
+
color: w.palette.white["6s"],
|
|
1297
|
+
...w.text.sm
|
|
853
1298
|
},
|
|
854
1299
|
children: [
|
|
855
1300
|
/* @__PURE__ */ m("div", { css: { display: "flex", alignItems: "center", gap: 12 }, children: [
|
|
856
|
-
/* @__PURE__ */
|
|
857
|
-
/* @__PURE__ */
|
|
1301
|
+
/* @__PURE__ */ n(B, { size: "32", onClick: u, children: /* @__PURE__ */ n(M, { source: z1 }) }),
|
|
1302
|
+
/* @__PURE__ */ n(Ft, { onSelectionChange: d, value: t, children: Ot.map(({ icon: p, size: g }) => /* @__PURE__ */ n(B, { value: g, children: /* @__PURE__ */ n(M, { source: p }) }, g)) }),
|
|
858
1303
|
/* @__PURE__ */ m(
|
|
859
1304
|
"div",
|
|
860
1305
|
{
|
|
@@ -864,15 +1309,15 @@ const E2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
864
1309
|
alignItems: "center",
|
|
865
1310
|
gap: 8,
|
|
866
1311
|
borderRadius: 8,
|
|
867
|
-
backgroundColor:
|
|
1312
|
+
backgroundColor: w.palette.white["1s"]
|
|
868
1313
|
},
|
|
869
1314
|
children: [
|
|
870
|
-
/* @__PURE__ */
|
|
871
|
-
/* @__PURE__ */
|
|
1315
|
+
/* @__PURE__ */ n(B, { onClick: c.history.undo, disabled: !l, children: /* @__PURE__ */ n(M, { source: De }) }),
|
|
1316
|
+
/* @__PURE__ */ n(B, { onClick: c.history.redo, disabled: !a, children: /* @__PURE__ */ n(M, { source: De, css: { transform: "rotate(180deg)" } }) })
|
|
872
1317
|
]
|
|
873
1318
|
}
|
|
874
1319
|
),
|
|
875
|
-
/* @__PURE__ */
|
|
1320
|
+
/* @__PURE__ */ n(
|
|
876
1321
|
"div",
|
|
877
1322
|
{
|
|
878
1323
|
css: {
|
|
@@ -881,57 +1326,57 @@ const E2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
881
1326
|
alignItems: "center",
|
|
882
1327
|
gap: 8,
|
|
883
1328
|
borderRadius: 8,
|
|
884
|
-
backgroundColor:
|
|
1329
|
+
backgroundColor: w.palette.white["1s"]
|
|
885
1330
|
},
|
|
886
|
-
children: /* @__PURE__ */
|
|
1331
|
+
children: /* @__PURE__ */ n(B, { onClick: h, children: /* @__PURE__ */ n(M, { source: e === "full" ? O1 : F1 }) })
|
|
887
1332
|
}
|
|
888
1333
|
)
|
|
889
1334
|
] }),
|
|
890
|
-
/* @__PURE__ */
|
|
1335
|
+
/* @__PURE__ */ n("div", { css: { display: "flex", alignItems: "center", gap: 12 }, children: /* @__PURE__ */ n(r2, { isLoading: i, onClick: C, children: "Save" }) })
|
|
891
1336
|
]
|
|
892
1337
|
}
|
|
893
1338
|
);
|
|
894
|
-
},
|
|
1339
|
+
}, $1 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
895
1340
|
<path d="M20 19.9997L16.3763 16.376" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
896
1341
|
<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"/>
|
|
897
1342
|
</svg>
|
|
898
|
-
`,
|
|
1343
|
+
`, G1 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
899
1344
|
<path d="M15 6L9 12L15 18" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
900
1345
|
</svg>
|
|
901
|
-
`,
|
|
1346
|
+
`, U1 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
902
1347
|
<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"/>
|
|
903
1348
|
<path d="M13.5 20.9998V12" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
904
1349
|
<path d="M9.50011 11.9998V3" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
905
1350
|
<path d="M20.9999 12H3.00024" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
906
1351
|
</svg>
|
|
907
|
-
`,
|
|
1352
|
+
`, q1 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
908
1353
|
<rect x="3" y="3" width="18" height="18" rx="2" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
909
1354
|
<path d="M3 12H21" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
910
1355
|
<path d="M12 21V3" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
911
1356
|
</svg>
|
|
912
|
-
`,
|
|
1357
|
+
`, je = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
913
1358
|
<path d="M3 6V18" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
914
1359
|
<path d="M21 6V18" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
915
1360
|
<path d="M6 21H18" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
916
1361
|
<path d="M6 3H18" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
917
1362
|
</svg>
|
|
918
|
-
`,
|
|
1363
|
+
`, Y1 = {
|
|
919
1364
|
name: "Layout",
|
|
920
1365
|
templates: [
|
|
921
1366
|
{
|
|
922
1367
|
name: "Container",
|
|
923
|
-
template: /* @__PURE__ */
|
|
924
|
-
icon: { source:
|
|
1368
|
+
template: /* @__PURE__ */ n(k, { is: n2 }),
|
|
1369
|
+
icon: { source: je, height: 32 }
|
|
925
1370
|
},
|
|
926
1371
|
{
|
|
927
1372
|
name: "Block",
|
|
928
|
-
template: /* @__PURE__ */
|
|
929
|
-
icon: { source:
|
|
1373
|
+
template: /* @__PURE__ */ n(k, { is: Qe }),
|
|
1374
|
+
icon: { source: je, height: 32 }
|
|
930
1375
|
},
|
|
931
1376
|
{
|
|
932
1377
|
name: "Grid",
|
|
933
1378
|
template: /* @__PURE__ */ m(
|
|
934
|
-
|
|
1379
|
+
k,
|
|
935
1380
|
{
|
|
936
1381
|
cols: 2,
|
|
937
1382
|
sx: {
|
|
@@ -941,43 +1386,43 @@ const E2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
941
1386
|
paddingTop: 16,
|
|
942
1387
|
paddingBottom: 16
|
|
943
1388
|
},
|
|
944
|
-
is:
|
|
1389
|
+
is: Ge,
|
|
945
1390
|
children: [
|
|
946
|
-
/* @__PURE__ */
|
|
947
|
-
/* @__PURE__ */
|
|
1391
|
+
/* @__PURE__ */ n(k, { is: ge, canvas: !0 }),
|
|
1392
|
+
/* @__PURE__ */ n(k, { is: ge, canvas: !0 })
|
|
948
1393
|
]
|
|
949
1394
|
}
|
|
950
1395
|
),
|
|
951
|
-
icon: { source:
|
|
1396
|
+
icon: { source: q1, height: 32 }
|
|
952
1397
|
},
|
|
953
1398
|
{
|
|
954
1399
|
name: "Flex",
|
|
955
|
-
template: /* @__PURE__ */ m(
|
|
956
|
-
/* @__PURE__ */
|
|
957
|
-
|
|
1400
|
+
template: /* @__PURE__ */ m(k, { is: Ue, sx: { columnGap: 8, rowGap: 8, paddingTop: 16, paddingBottom: 16 }, children: [
|
|
1401
|
+
/* @__PURE__ */ n(
|
|
1402
|
+
k,
|
|
958
1403
|
{
|
|
959
1404
|
sx: {
|
|
960
1405
|
width: "40%"
|
|
961
1406
|
},
|
|
962
|
-
is:
|
|
1407
|
+
is: fe,
|
|
963
1408
|
canvas: !0
|
|
964
1409
|
}
|
|
965
1410
|
),
|
|
966
|
-
/* @__PURE__ */
|
|
967
|
-
|
|
1411
|
+
/* @__PURE__ */ n(
|
|
1412
|
+
k,
|
|
968
1413
|
{
|
|
969
1414
|
sx: {
|
|
970
1415
|
width: "60%"
|
|
971
1416
|
},
|
|
972
|
-
is:
|
|
1417
|
+
is: fe,
|
|
973
1418
|
canvas: !0
|
|
974
1419
|
}
|
|
975
1420
|
)
|
|
976
1421
|
] }),
|
|
977
|
-
icon: { source:
|
|
1422
|
+
icon: { source: U1, height: 32 }
|
|
978
1423
|
}
|
|
979
1424
|
]
|
|
980
|
-
},
|
|
1425
|
+
}, X1 = `<svg width="98" height="56" viewBox="0 0 98 56" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
981
1426
|
<rect x="4" y="4" width="57" height="6" rx="3" fill="currentColor"></rect>
|
|
982
1427
|
<rect x="2" y="4" width="57" height="6" rx="3" fill="currentColor"></rect>
|
|
983
1428
|
<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>
|
|
@@ -987,15 +1432,15 @@ const E2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
987
1432
|
<rect x="4" y="46" width="57" height="6" rx="3" fill="currentColor"></rect>
|
|
988
1433
|
<rect x="2" y="46" width="57" height="6" rx="3" fill="currentColor"></rect>
|
|
989
1434
|
<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>
|
|
990
|
-
</svg>`,
|
|
1435
|
+
</svg>`, K1 = "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", J1 = "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", Q1 = {
|
|
991
1436
|
name: "Content list",
|
|
992
1437
|
templates: [
|
|
993
1438
|
{
|
|
994
1439
|
name: "Accordion",
|
|
995
|
-
template: /* @__PURE__ */
|
|
996
|
-
|
|
1440
|
+
template: /* @__PURE__ */ n(
|
|
1441
|
+
k,
|
|
997
1442
|
{
|
|
998
|
-
is:
|
|
1443
|
+
is: e2,
|
|
999
1444
|
accordionSummaryProps: {
|
|
1000
1445
|
sx: {
|
|
1001
1446
|
paddingTop: 8,
|
|
@@ -1004,8 +1449,8 @@ const E2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
1004
1449
|
expandIcon: {
|
|
1005
1450
|
position: "right",
|
|
1006
1451
|
source: {
|
|
1007
|
-
expanded:
|
|
1008
|
-
collapsed:
|
|
1452
|
+
expanded: J1,
|
|
1453
|
+
collapsed: K1
|
|
1009
1454
|
}
|
|
1010
1455
|
}
|
|
1011
1456
|
},
|
|
@@ -1016,23 +1461,23 @@ const E2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
1016
1461
|
}
|
|
1017
1462
|
},
|
|
1018
1463
|
openMode: "single",
|
|
1019
|
-
children:
|
|
1020
|
-
/* @__PURE__ */
|
|
1021
|
-
|
|
1464
|
+
children: O(3).map((e) => /* @__PURE__ */ m(k, { defaultOpen: e === 0, is: Z2, children: [
|
|
1465
|
+
/* @__PURE__ */ n(k, { is: $2, children: /* @__PURE__ */ n(
|
|
1466
|
+
k,
|
|
1022
1467
|
{
|
|
1023
1468
|
sizeVariant: "base",
|
|
1024
|
-
is:
|
|
1469
|
+
is: ae,
|
|
1025
1470
|
dangerouslySetInnerHTML: { __html: `Accordion ${e + 1}` }
|
|
1026
1471
|
}
|
|
1027
1472
|
) }),
|
|
1028
|
-
/* @__PURE__ */
|
|
1029
|
-
|
|
1473
|
+
/* @__PURE__ */ n(k, { is: G2, children: /* @__PURE__ */ n(
|
|
1474
|
+
k,
|
|
1030
1475
|
{
|
|
1031
1476
|
sx: {
|
|
1032
1477
|
paddingTop: 8,
|
|
1033
1478
|
paddingBottom: 8
|
|
1034
1479
|
},
|
|
1035
|
-
is:
|
|
1480
|
+
is: ae,
|
|
1036
1481
|
dangerouslySetInnerHTML: {
|
|
1037
1482
|
__html: `Content for accordion ${e + 1}`
|
|
1038
1483
|
}
|
|
@@ -1041,22 +1486,22 @@ const E2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
1041
1486
|
] }, e))
|
|
1042
1487
|
}
|
|
1043
1488
|
),
|
|
1044
|
-
icon: { source:
|
|
1489
|
+
icon: { source: X1, height: 40 }
|
|
1045
1490
|
}
|
|
1046
1491
|
]
|
|
1047
|
-
},
|
|
1492
|
+
}, ke = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1048
1493
|
<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"/>
|
|
1049
1494
|
<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"/>
|
|
1050
1495
|
</svg>
|
|
1051
|
-
`,
|
|
1496
|
+
`, en = {
|
|
1052
1497
|
name: "Interactive",
|
|
1053
1498
|
templates: [
|
|
1054
1499
|
{
|
|
1055
1500
|
name: "Carousel",
|
|
1056
|
-
template: /* @__PURE__ */
|
|
1057
|
-
|
|
1501
|
+
template: /* @__PURE__ */ n(
|
|
1502
|
+
k,
|
|
1058
1503
|
{
|
|
1059
|
-
is:
|
|
1504
|
+
is: be,
|
|
1060
1505
|
slidesPerView: 2,
|
|
1061
1506
|
spaceBetween: 8,
|
|
1062
1507
|
md: {
|
|
@@ -1065,38 +1510,38 @@ const E2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
1065
1510
|
lg: {
|
|
1066
1511
|
slidesPerView: 4
|
|
1067
1512
|
},
|
|
1068
|
-
children:
|
|
1069
|
-
|
|
1513
|
+
children: O(6).map((e) => /* @__PURE__ */ n(
|
|
1514
|
+
k,
|
|
1070
1515
|
{
|
|
1071
1516
|
custom: {
|
|
1072
1517
|
displayName: `Slide ${e + 1}`
|
|
1073
1518
|
},
|
|
1074
|
-
is:
|
|
1519
|
+
is: o2,
|
|
1075
1520
|
canvas: !0
|
|
1076
1521
|
},
|
|
1077
1522
|
e
|
|
1078
1523
|
))
|
|
1079
1524
|
}
|
|
1080
1525
|
),
|
|
1081
|
-
icon: { source:
|
|
1526
|
+
icon: { source: ke, height: 32 }
|
|
1082
1527
|
},
|
|
1083
1528
|
{
|
|
1084
1529
|
name: "Marquee",
|
|
1085
|
-
template: /* @__PURE__ */
|
|
1086
|
-
|
|
1530
|
+
template: /* @__PURE__ */ n(k, { is: xe, children: O(10).map((e) => /* @__PURE__ */ n(
|
|
1531
|
+
k,
|
|
1087
1532
|
{
|
|
1088
1533
|
canvas: !0,
|
|
1089
1534
|
custom: {
|
|
1090
1535
|
displayName: `Marquee Item ${e + 1}`
|
|
1091
1536
|
},
|
|
1092
|
-
is:
|
|
1537
|
+
is: s2
|
|
1093
1538
|
},
|
|
1094
1539
|
e
|
|
1095
1540
|
)) }),
|
|
1096
|
-
icon: { source:
|
|
1541
|
+
icon: { source: ke, height: 32 }
|
|
1097
1542
|
}
|
|
1098
1543
|
]
|
|
1099
|
-
},
|
|
1544
|
+
}, tn = `<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">
|
|
1100
1545
|
<style type="text/css">
|
|
1101
1546
|
.st0{fill:currentColor;}
|
|
1102
1547
|
</style>
|
|
@@ -1125,31 +1570,31 @@ const E2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
1125
1570
|
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
|
|
1126
1571
|
C372.362,303.664,369.538,300.836,364.556,300.836z"/>
|
|
1127
1572
|
</g>
|
|
1128
|
-
</svg>`,
|
|
1573
|
+
</svg>`, nn = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1129
1574
|
<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"/>
|
|
1130
1575
|
<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"/>
|
|
1131
1576
|
<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"/>
|
|
1132
1577
|
<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"/>
|
|
1133
1578
|
</svg>
|
|
1134
|
-
`,
|
|
1579
|
+
`, rn = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1135
1580
|
<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"/>
|
|
1136
1581
|
<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"/>
|
|
1137
1582
|
<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"/>
|
|
1138
1583
|
<path d="M21 20H9" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1139
1584
|
<path d="M3 20H6" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1140
1585
|
</svg>
|
|
1141
|
-
`,
|
|
1586
|
+
`, on = {
|
|
1142
1587
|
name: "Media",
|
|
1143
1588
|
templates: [
|
|
1144
1589
|
{
|
|
1145
1590
|
name: "Image",
|
|
1146
|
-
template: /* @__PURE__ */
|
|
1147
|
-
icon: { source:
|
|
1591
|
+
template: /* @__PURE__ */ n(k, { src: "https://ucarecdn.com/ee6d5074-1640-4cc7-8933-47c8589c3dee/-/format/auto/", is: Ye }),
|
|
1592
|
+
icon: { source: nn, height: 32 }
|
|
1148
1593
|
},
|
|
1149
1594
|
{
|
|
1150
1595
|
name: "Video",
|
|
1151
|
-
template: /* @__PURE__ */
|
|
1152
|
-
|
|
1596
|
+
template: /* @__PURE__ */ n(
|
|
1597
|
+
$e,
|
|
1153
1598
|
{
|
|
1154
1599
|
sx: {
|
|
1155
1600
|
aspectRatio: "16 / 9"
|
|
@@ -1157,21 +1602,21 @@ const E2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
1157
1602
|
src: "https://cdn.shopify.com/videos/c/o/v/2cd3deb506b54b009063f7270ab5cf2e.mp4"
|
|
1158
1603
|
}
|
|
1159
1604
|
),
|
|
1160
|
-
icon: { source:
|
|
1605
|
+
icon: { source: rn, height: 32 }
|
|
1161
1606
|
},
|
|
1162
1607
|
{
|
|
1163
1608
|
name: "Icon",
|
|
1164
|
-
template: /* @__PURE__ */
|
|
1165
|
-
icon: { source:
|
|
1609
|
+
template: /* @__PURE__ */ n(k, { source: ke, is: Xe }),
|
|
1610
|
+
icon: { source: tn, height: 32 }
|
|
1166
1611
|
}
|
|
1167
1612
|
]
|
|
1168
|
-
},
|
|
1613
|
+
}, sn = `<svg width="24" height="24" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1169
1614
|
<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"/>
|
|
1170
|
-
</svg>`,
|
|
1615
|
+
</svg>`, an = `<svg fill="currentColor" width="120" height="120" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg">
|
|
1171
1616
|
<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"/>
|
|
1172
1617
|
<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"/>
|
|
1173
1618
|
<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"/>
|
|
1174
|
-
</svg>`,
|
|
1619
|
+
</svg>`, cn = `<svg width="126" height="80" viewBox="0 0 126 80" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1175
1620
|
<g clip-path="url(#clip0_10250_27631)">
|
|
1176
1621
|
<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>
|
|
1177
1622
|
<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>
|
|
@@ -1189,41 +1634,41 @@ const E2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
1189
1634
|
<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>
|
|
1190
1635
|
</clipPath>
|
|
1191
1636
|
</defs>
|
|
1192
|
-
</svg>`,
|
|
1637
|
+
</svg>`, ln = `<svg width="96" height="48" viewBox="0 0 96 48" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1193
1638
|
<rect x="8" y="30" width="32" height="2" fill="currentColor"></rect>
|
|
1194
1639
|
<rect x="8" y="12" width="32" height="8" rx="4" fill="currentColor"></rect>
|
|
1195
1640
|
<rect x="56" y="12" width="32" height="8" rx="4" fill="currentColor"></rect>
|
|
1196
|
-
</svg>`,
|
|
1641
|
+
</svg>`, dn = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1197
1642
|
<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"/>
|
|
1198
1643
|
<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"/>
|
|
1199
1644
|
</svg>
|
|
1200
|
-
`,
|
|
1645
|
+
`, hn = {
|
|
1201
1646
|
name: "Interactive",
|
|
1202
1647
|
templates: [
|
|
1203
1648
|
{
|
|
1204
1649
|
name: "Button",
|
|
1205
|
-
template: /* @__PURE__ */
|
|
1206
|
-
|
|
1650
|
+
template: /* @__PURE__ */ n(
|
|
1651
|
+
k,
|
|
1207
1652
|
{
|
|
1208
1653
|
dangerouslySetInnerHTML: {
|
|
1209
1654
|
__html: "Button"
|
|
1210
1655
|
},
|
|
1211
|
-
is:
|
|
1656
|
+
is: qe
|
|
1212
1657
|
}
|
|
1213
1658
|
),
|
|
1214
|
-
icon: { source:
|
|
1659
|
+
icon: { source: sn, height: 32 }
|
|
1215
1660
|
},
|
|
1216
1661
|
{
|
|
1217
1662
|
name: "Link",
|
|
1218
|
-
template: /* @__PURE__ */
|
|
1219
|
-
icon: { source:
|
|
1663
|
+
template: /* @__PURE__ */ n(k, { is: Ke }),
|
|
1664
|
+
icon: { source: dn, height: 32 }
|
|
1220
1665
|
},
|
|
1221
1666
|
{
|
|
1222
1667
|
name: "Carousel",
|
|
1223
|
-
template: /* @__PURE__ */
|
|
1224
|
-
|
|
1668
|
+
template: /* @__PURE__ */ n(
|
|
1669
|
+
k,
|
|
1225
1670
|
{
|
|
1226
|
-
is:
|
|
1671
|
+
is: be,
|
|
1227
1672
|
slidesPerView: 2,
|
|
1228
1673
|
spaceBetween: 8,
|
|
1229
1674
|
md: {
|
|
@@ -1232,33 +1677,33 @@ const E2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
1232
1677
|
lg: {
|
|
1233
1678
|
slidesPerView: 4
|
|
1234
1679
|
},
|
|
1235
|
-
children:
|
|
1680
|
+
children: O(6).map((e) => /* @__PURE__ */ n(k, { is: o2, canvas: !0 }, e))
|
|
1236
1681
|
}
|
|
1237
1682
|
),
|
|
1238
|
-
icon: { source:
|
|
1683
|
+
icon: { source: an, height: 32 }
|
|
1239
1684
|
},
|
|
1240
1685
|
{
|
|
1241
1686
|
name: "Marquee",
|
|
1242
|
-
template: /* @__PURE__ */
|
|
1243
|
-
icon: { source:
|
|
1687
|
+
template: /* @__PURE__ */ n(k, { is: xe, children: O(10).map((e) => /* @__PURE__ */ n(k, { canvas: !0, is: s2 }, e)) }),
|
|
1688
|
+
icon: { source: cn, height: 32 }
|
|
1244
1689
|
},
|
|
1245
1690
|
{
|
|
1246
1691
|
name: "Tabs",
|
|
1247
1692
|
template: /* @__PURE__ */ m(
|
|
1248
|
-
|
|
1693
|
+
k,
|
|
1249
1694
|
{
|
|
1250
|
-
is:
|
|
1695
|
+
is: Je,
|
|
1251
1696
|
sx: {
|
|
1252
1697
|
width: "100%"
|
|
1253
1698
|
},
|
|
1254
1699
|
children: [
|
|
1255
|
-
/* @__PURE__ */
|
|
1700
|
+
/* @__PURE__ */ n(k, { is: U2, children: O(3).map((e) => {
|
|
1256
1701
|
const t = `Tab ${e + 1}`;
|
|
1257
|
-
return /* @__PURE__ */
|
|
1258
|
-
|
|
1702
|
+
return /* @__PURE__ */ n(
|
|
1703
|
+
k,
|
|
1259
1704
|
{
|
|
1260
1705
|
canvas: !0,
|
|
1261
|
-
is:
|
|
1706
|
+
is: q2,
|
|
1262
1707
|
dangerouslySetInnerHTML: {
|
|
1263
1708
|
__html: t
|
|
1264
1709
|
}
|
|
@@ -1266,28 +1711,28 @@ const E2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
1266
1711
|
e
|
|
1267
1712
|
);
|
|
1268
1713
|
}) }),
|
|
1269
|
-
/* @__PURE__ */
|
|
1714
|
+
/* @__PURE__ */ n(k, { is: Y2, children: O(3).map((e) => /* @__PURE__ */ n(k, { canvas: !0, is: X2 }, e)) })
|
|
1270
1715
|
]
|
|
1271
1716
|
}
|
|
1272
1717
|
),
|
|
1273
|
-
icon: { source:
|
|
1718
|
+
icon: { source: ln, height: 40 }
|
|
1274
1719
|
}
|
|
1275
1720
|
]
|
|
1276
|
-
},
|
|
1721
|
+
}, un = `<svg fill="currentColor" width="24" height="24" viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg">
|
|
1277
1722
|
<title>h</title>
|
|
1278
1723
|
<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"/>
|
|
1279
1724
|
</svg>
|
|
1280
|
-
`,
|
|
1725
|
+
`, pn = `<svg fill="currentColor" width="24" height="24" viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg">
|
|
1281
1726
|
<title>p</title>
|
|
1282
1727
|
<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"/>
|
|
1283
1728
|
</svg>
|
|
1284
|
-
`,
|
|
1729
|
+
`, Cn = {
|
|
1285
1730
|
name: "Text",
|
|
1286
1731
|
templates: [
|
|
1287
1732
|
{
|
|
1288
1733
|
name: "Heading",
|
|
1289
|
-
template: /* @__PURE__ */
|
|
1290
|
-
|
|
1734
|
+
template: /* @__PURE__ */ n(
|
|
1735
|
+
k,
|
|
1291
1736
|
{
|
|
1292
1737
|
dangerouslySetInnerHTML: {
|
|
1293
1738
|
__html: "Your heading text goes here"
|
|
@@ -1295,41 +1740,41 @@ const E2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
1295
1740
|
as: "h2",
|
|
1296
1741
|
sizeVariant: "4xl",
|
|
1297
1742
|
md: { sizeVariant: "5xl" },
|
|
1298
|
-
is:
|
|
1743
|
+
is: Ze
|
|
1299
1744
|
}
|
|
1300
1745
|
),
|
|
1301
|
-
icon: { source:
|
|
1746
|
+
icon: { source: un, height: 32 }
|
|
1302
1747
|
},
|
|
1303
1748
|
{
|
|
1304
1749
|
name: "Paragraph",
|
|
1305
|
-
template: /* @__PURE__ */
|
|
1306
|
-
|
|
1750
|
+
template: /* @__PURE__ */ n(
|
|
1751
|
+
k,
|
|
1307
1752
|
{
|
|
1308
1753
|
dangerouslySetInnerHTML: {
|
|
1309
1754
|
__html: "Replace this text with your content"
|
|
1310
1755
|
},
|
|
1311
|
-
is:
|
|
1756
|
+
is: ae
|
|
1312
1757
|
}
|
|
1313
1758
|
),
|
|
1314
|
-
icon: { source:
|
|
1759
|
+
icon: { source: pn, height: 32 }
|
|
1315
1760
|
}
|
|
1316
1761
|
]
|
|
1317
|
-
},
|
|
1762
|
+
}, gn = `<svg width="96" height="48" viewBox="0 0 96 48" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1318
1763
|
<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"/>
|
|
1319
1764
|
</svg>
|
|
1320
|
-
`,
|
|
1765
|
+
`, fn = {
|
|
1321
1766
|
name: "Utilities",
|
|
1322
1767
|
templates: [
|
|
1323
1768
|
{
|
|
1324
1769
|
name: "Countdown timer",
|
|
1325
|
-
template: /* @__PURE__ */
|
|
1326
|
-
|
|
1770
|
+
template: /* @__PURE__ */ n(
|
|
1771
|
+
k,
|
|
1327
1772
|
{
|
|
1328
|
-
is:
|
|
1773
|
+
is: t2,
|
|
1329
1774
|
omit: {
|
|
1330
1775
|
days: !0
|
|
1331
1776
|
},
|
|
1332
|
-
date:
|
|
1777
|
+
date: n1().add(1, "week").toDate(),
|
|
1333
1778
|
sx: {
|
|
1334
1779
|
justifyContent: "center",
|
|
1335
1780
|
columnGap: 8,
|
|
@@ -1341,7 +1786,7 @@ const E2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
1341
1786
|
},
|
|
1342
1787
|
unitItemProps: {
|
|
1343
1788
|
sx: {
|
|
1344
|
-
backgroundColor:
|
|
1789
|
+
backgroundColor: Be("neutral.100"),
|
|
1345
1790
|
borderTopLeftRadius: 8,
|
|
1346
1791
|
borderTopRightRadius: 8,
|
|
1347
1792
|
borderBottomLeftRadius: 8,
|
|
@@ -1363,7 +1808,7 @@ const E2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
1363
1808
|
},
|
|
1364
1809
|
captionProps: {
|
|
1365
1810
|
sx: {
|
|
1366
|
-
color:
|
|
1811
|
+
color: Be("neutral.500")
|
|
1367
1812
|
}
|
|
1368
1813
|
},
|
|
1369
1814
|
units: [
|
|
@@ -1386,60 +1831,60 @@ const E2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
1386
1831
|
]
|
|
1387
1832
|
}
|
|
1388
1833
|
),
|
|
1389
|
-
icon: { source:
|
|
1834
|
+
icon: { source: gn, height: 48 }
|
|
1390
1835
|
}
|
|
1391
1836
|
]
|
|
1392
|
-
},
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
],
|
|
1837
|
+
}, wn = [
|
|
1838
|
+
Cn,
|
|
1839
|
+
Y1,
|
|
1840
|
+
on,
|
|
1841
|
+
hn,
|
|
1842
|
+
en,
|
|
1843
|
+
Q1,
|
|
1844
|
+
fn
|
|
1845
|
+
], mn = '<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>', kn = {
|
|
1401
1846
|
name: "Basics",
|
|
1402
|
-
icon: { source:
|
|
1403
|
-
renderer: () => /* @__PURE__ */
|
|
1404
|
-
},
|
|
1405
|
-
const t = [
|
|
1847
|
+
icon: { source: mn },
|
|
1848
|
+
renderer: () => /* @__PURE__ */ n(bn, { elementGroups: wn })
|
|
1849
|
+
}, vn = ({ groups: e }) => {
|
|
1850
|
+
const t = [kn, ...e ?? []];
|
|
1406
1851
|
return /* @__PURE__ */ m("div", { css: { display: "flex", flexDirection: "column", height: "100%" }, children: [
|
|
1407
|
-
/* @__PURE__ */
|
|
1408
|
-
/* @__PURE__ */
|
|
1409
|
-
|
|
1852
|
+
/* @__PURE__ */ n("div", { css: { display: "flex", padding: 8, alignItems: "center", gap: 12 }, children: /* @__PURE__ */ n(i2, { fullWidth: !0, placeholder: "Search...", prefix: /* @__PURE__ */ n(M, { source: $1 }) }) }),
|
|
1853
|
+
/* @__PURE__ */ n(
|
|
1854
|
+
ye,
|
|
1410
1855
|
{
|
|
1411
1856
|
css: {
|
|
1412
1857
|
paddingBlock: 8,
|
|
1413
1858
|
borderTopWidth: 1,
|
|
1414
1859
|
borderTopStyle: "solid",
|
|
1415
|
-
borderColor:
|
|
1860
|
+
borderColor: w.palette.white["1s"],
|
|
1416
1861
|
flex: 1
|
|
1417
1862
|
},
|
|
1418
|
-
children: t.map((o,
|
|
1863
|
+
children: t.map((o, r) => /* @__PURE__ */ n(yn, { group: o }, r))
|
|
1419
1864
|
}
|
|
1420
1865
|
)
|
|
1421
1866
|
] });
|
|
1422
|
-
},
|
|
1423
|
-
const [t, o] =
|
|
1424
|
-
return /* @__PURE__ */ m("div", { css: { display: "flex", flexDirection: "column", ...
|
|
1425
|
-
/* @__PURE__ */
|
|
1867
|
+
}, bn = ({ elementGroups: e }) => /* @__PURE__ */ n("div", { css: { display: "flex", flexDirection: "column", gap: 8 }, children: e.map((t, o) => /* @__PURE__ */ n(xn, { group: t }, o)) }), xn = ({ group: e }) => {
|
|
1868
|
+
const [t, o] = M2(!0), { actions: r, connectors: i } = z();
|
|
1869
|
+
return /* @__PURE__ */ m("div", { css: { display: "flex", flexDirection: "column", ...w.text.sm }, children: [
|
|
1870
|
+
/* @__PURE__ */ n(r2, { onClick: o, css: { paddingInline: 0, backgroundColor: "transparent" }, children: /* @__PURE__ */ m(
|
|
1426
1871
|
"div",
|
|
1427
1872
|
{
|
|
1428
|
-
css: { display: "flex", alignItems: "center", justifyContent: "space-between", flex: 1, ...
|
|
1873
|
+
css: { display: "flex", alignItems: "center", justifyContent: "space-between", flex: 1, ...w.text.sm },
|
|
1429
1874
|
children: [
|
|
1430
1875
|
e.name,
|
|
1431
|
-
/* @__PURE__ */
|
|
1432
|
-
|
|
1876
|
+
/* @__PURE__ */ n(
|
|
1877
|
+
M,
|
|
1433
1878
|
{
|
|
1434
|
-
source:
|
|
1879
|
+
source: u2,
|
|
1435
1880
|
css: [{ transition: "transform" }, !t && { transform: "rotate(180deg)" }]
|
|
1436
1881
|
}
|
|
1437
1882
|
)
|
|
1438
1883
|
]
|
|
1439
1884
|
}
|
|
1440
1885
|
) }),
|
|
1441
|
-
/* @__PURE__ */
|
|
1442
|
-
/* @__PURE__ */
|
|
1886
|
+
/* @__PURE__ */ n(K2, { 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__ */ m("div", { css: { display: "flex", flexDirection: "column", gap: 4 }, children: [
|
|
1887
|
+
/* @__PURE__ */ n(
|
|
1443
1888
|
"div",
|
|
1444
1889
|
{
|
|
1445
1890
|
css: {
|
|
@@ -1447,8 +1892,8 @@ const E2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
1447
1892
|
display: "flex",
|
|
1448
1893
|
padding: 4,
|
|
1449
1894
|
borderRadius: 8,
|
|
1450
|
-
backgroundColor:
|
|
1451
|
-
color:
|
|
1895
|
+
backgroundColor: w.palette.ink["6s"],
|
|
1896
|
+
color: w.palette.white["5s"],
|
|
1452
1897
|
pointerEvents: "auto",
|
|
1453
1898
|
overflow: "hidden",
|
|
1454
1899
|
flexDirection: "column",
|
|
@@ -1464,46 +1909,46 @@ const E2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
1464
1909
|
content: '""',
|
|
1465
1910
|
position: "absolute",
|
|
1466
1911
|
inset: 0,
|
|
1467
|
-
backgroundColor:
|
|
1912
|
+
backgroundColor: w.palette.white["1s"]
|
|
1468
1913
|
}
|
|
1469
1914
|
},
|
|
1470
|
-
ref: (
|
|
1471
|
-
|
|
1472
|
-
onCreate(
|
|
1473
|
-
(typeof s.autoFocus == "function" ? s.autoFocus(
|
|
1915
|
+
ref: (a) => {
|
|
1916
|
+
a && i.create(a, s.template, {
|
|
1917
|
+
onCreate(l) {
|
|
1918
|
+
(typeof s.autoFocus == "function" ? s.autoFocus(l) : s.autoFocus) && r.selectNode(l.rootNodeId), s.onCreate?.(l);
|
|
1474
1919
|
}
|
|
1475
1920
|
});
|
|
1476
1921
|
},
|
|
1477
|
-
children: s.icon && /* @__PURE__ */
|
|
1922
|
+
children: s.icon && /* @__PURE__ */ n(J2, { width: void 0, height: void 0, ...s.icon })
|
|
1478
1923
|
}
|
|
1479
1924
|
),
|
|
1480
|
-
/* @__PURE__ */
|
|
1481
|
-
] },
|
|
1925
|
+
/* @__PURE__ */ n("p", { css: { marginInline: "auto", textAlign: "center", ...Q2.xs }, children: s.name })
|
|
1926
|
+
] }, c)) }) })
|
|
1482
1927
|
] });
|
|
1483
|
-
},
|
|
1484
|
-
const [t, o] =
|
|
1928
|
+
}, yn = ({ group: e }) => {
|
|
1929
|
+
const [t, o] = j(!1), { refs: r, floatingStyles: i, context: s } = p2({
|
|
1485
1930
|
open: t,
|
|
1486
1931
|
onOpenChange: o,
|
|
1487
1932
|
placement: "right-start",
|
|
1488
1933
|
middleware: [
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
apply({ elements:
|
|
1492
|
-
const
|
|
1493
|
-
zIndex: `${
|
|
1494
|
-
height: `${
|
|
1934
|
+
f2(),
|
|
1935
|
+
g2({
|
|
1936
|
+
apply({ elements: C }) {
|
|
1937
|
+
const p = {
|
|
1938
|
+
zIndex: `${y2}`,
|
|
1939
|
+
height: `${C.reference.getBoundingClientRect().height}px`
|
|
1495
1940
|
};
|
|
1496
|
-
Object.assign(
|
|
1941
|
+
Object.assign(C.floating.style, p);
|
|
1497
1942
|
}
|
|
1498
1943
|
})
|
|
1499
1944
|
],
|
|
1500
|
-
whileElementsMounted:
|
|
1945
|
+
whileElementsMounted: C2
|
|
1501
1946
|
});
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
}, [
|
|
1505
|
-
const
|
|
1506
|
-
return /* @__PURE__ */ m(
|
|
1947
|
+
J(() => {
|
|
1948
|
+
r.setPositionReference(document.querySelector("aside"));
|
|
1949
|
+
}, [r]);
|
|
1950
|
+
const c = w2(s, { move: !1, handleClose: Kt() }), a = m2(s), l = k2(s), f = v2(s), { getReferenceProps: d, getFloatingProps: h } = b2([c, a, l, f]), u = e.renderer;
|
|
1951
|
+
return /* @__PURE__ */ m(ce, { children: [
|
|
1507
1952
|
/* @__PURE__ */ m(
|
|
1508
1953
|
"button",
|
|
1509
1954
|
{
|
|
@@ -1515,18 +1960,18 @@ const E2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
1515
1960
|
borderRadius: 8,
|
|
1516
1961
|
textAlign: "left",
|
|
1517
1962
|
width: "100%",
|
|
1518
|
-
color:
|
|
1963
|
+
color: w.palette.white["5s"],
|
|
1519
1964
|
"&:hover": {
|
|
1520
|
-
color:
|
|
1521
|
-
backgroundColor:
|
|
1965
|
+
color: w.palette.white["6s"],
|
|
1966
|
+
backgroundColor: w.palette.white["1s"],
|
|
1522
1967
|
fontWeight: 500
|
|
1523
1968
|
}
|
|
1524
1969
|
},
|
|
1525
1970
|
...d(),
|
|
1526
|
-
ref:
|
|
1971
|
+
ref: r.setReference,
|
|
1527
1972
|
children: [
|
|
1528
|
-
e.icon && /* @__PURE__ */
|
|
1529
|
-
/* @__PURE__ */
|
|
1973
|
+
e.icon && /* @__PURE__ */ n("div", { css: { padding: 6, borderRadius: 8, backgroundColor: w.palette.white["1s"] }, children: /* @__PURE__ */ n(M, { ...e.icon }) }),
|
|
1974
|
+
/* @__PURE__ */ n(
|
|
1530
1975
|
"span",
|
|
1531
1976
|
{
|
|
1532
1977
|
css: {
|
|
@@ -1538,51 +1983,51 @@ const E2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
1538
1983
|
children: e.name
|
|
1539
1984
|
}
|
|
1540
1985
|
),
|
|
1541
|
-
/* @__PURE__ */
|
|
1986
|
+
/* @__PURE__ */ n(M, { css: { transform: "rotate(180deg)" }, source: G1 })
|
|
1542
1987
|
]
|
|
1543
1988
|
}
|
|
1544
1989
|
),
|
|
1545
|
-
t && /* @__PURE__ */
|
|
1990
|
+
t && /* @__PURE__ */ n(x2, { children: /* @__PURE__ */ n("div", { style: i, ...h(), ref: r.setFloating, children: /* @__PURE__ */ m(
|
|
1546
1991
|
"div",
|
|
1547
1992
|
{
|
|
1548
1993
|
css: {
|
|
1549
1994
|
display: "flex",
|
|
1550
1995
|
flexDirection: "column",
|
|
1551
1996
|
height: "100%",
|
|
1552
|
-
backgroundColor:
|
|
1553
|
-
color:
|
|
1997
|
+
backgroundColor: w.palette.ink["6s"],
|
|
1998
|
+
color: w.palette.white["6s"],
|
|
1554
1999
|
borderLeftWidth: 1,
|
|
1555
2000
|
borderLeftStyle: "solid",
|
|
1556
2001
|
borderTopWidth: 1,
|
|
1557
2002
|
borderTopStyle: "solid",
|
|
1558
|
-
borderColor:
|
|
1559
|
-
...
|
|
2003
|
+
borderColor: w.palette.white["2s"],
|
|
2004
|
+
...w.text.sm
|
|
1560
2005
|
},
|
|
1561
2006
|
children: [
|
|
1562
|
-
/* @__PURE__ */
|
|
1563
|
-
/* @__PURE__ */
|
|
2007
|
+
/* @__PURE__ */ n("div", { css: { display: "flex", paddingInline: 8, alignItems: "center", height: 48 }, children: /* @__PURE__ */ n("h6", { css: { fontWeight: 500 }, children: e.name }) }),
|
|
2008
|
+
/* @__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((C, p) => /* @__PURE__ */ Gt(Mn, { ...C, key: p })) }) })
|
|
1564
2009
|
]
|
|
1565
2010
|
}
|
|
1566
2011
|
) }) })
|
|
1567
2012
|
] });
|
|
1568
|
-
},
|
|
1569
|
-
const [,
|
|
2013
|
+
}, Mn = ({ template: e, autoFocus: t = !0, onCreate: o }) => {
|
|
2014
|
+
const [, r] = j(!1), i = q(), { actions: s, connectors: c, resolver: a, query: l } = z((d) => ({
|
|
1570
2015
|
resolver: d.options.resolver
|
|
1571
|
-
})),
|
|
2016
|
+
})), f = j(() => {
|
|
1572
2017
|
const d = typeof e == "function" ? e() : e;
|
|
1573
|
-
let
|
|
1574
|
-
"rootNodeId" in d ?
|
|
1575
|
-
const { rootNodeId:
|
|
1576
|
-
return Object.entries(
|
|
1577
|
-
const
|
|
1578
|
-
|
|
1579
|
-
...
|
|
1580
|
-
parent:
|
|
1581
|
-
nodes:
|
|
2018
|
+
let h;
|
|
2019
|
+
"rootNodeId" in d ? h = d : h = l.parseReactElement(d).toNodeTree();
|
|
2020
|
+
const { rootNodeId: u, nodes: C } = h, p = {};
|
|
2021
|
+
return Object.entries(C).forEach(([g, I]) => {
|
|
2022
|
+
const v = ot(I.data, a), L = g === u ? Z : g;
|
|
2023
|
+
p[L] = {
|
|
2024
|
+
...v,
|
|
2025
|
+
parent: v.parent === u ? Z : v.parent,
|
|
2026
|
+
nodes: v.nodes?.map((N) => N === u ? Z : N)
|
|
1582
2027
|
};
|
|
1583
|
-
}),
|
|
2028
|
+
}), p;
|
|
1584
2029
|
})[0];
|
|
1585
|
-
return /* @__PURE__ */
|
|
2030
|
+
return /* @__PURE__ */ n(
|
|
1586
2031
|
"div",
|
|
1587
2032
|
{
|
|
1588
2033
|
css: {
|
|
@@ -1591,18 +2036,18 @@ const E2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
1591
2036
|
cursor: "grab",
|
|
1592
2037
|
borderStyle: "solid",
|
|
1593
2038
|
borderWidth: 1,
|
|
1594
|
-
borderColor:
|
|
2039
|
+
borderColor: w.palette.white["1s"]
|
|
1595
2040
|
},
|
|
1596
2041
|
ref: (d) => {
|
|
1597
|
-
d &&
|
|
1598
|
-
onCreate(
|
|
1599
|
-
(typeof t == "function" ? t(
|
|
2042
|
+
d && c.create(d, e, {
|
|
2043
|
+
onCreate(h) {
|
|
2044
|
+
(typeof t == "function" ? t(h) : t) && s.selectNode(h.rootNodeId), o?.(h);
|
|
1600
2045
|
}
|
|
1601
2046
|
});
|
|
1602
2047
|
},
|
|
1603
|
-
onDragStart: () =>
|
|
1604
|
-
onDragEnd: () =>
|
|
1605
|
-
children: /* @__PURE__ */
|
|
2048
|
+
onDragStart: () => r(!0),
|
|
2049
|
+
onDragEnd: () => r(!1),
|
|
2050
|
+
children: /* @__PURE__ */ n(
|
|
1606
2051
|
"div",
|
|
1607
2052
|
{
|
|
1608
2053
|
css: {
|
|
@@ -1613,23 +2058,23 @@ const E2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
1613
2058
|
width: 240,
|
|
1614
2059
|
aspectRatio: "16 / 9"
|
|
1615
2060
|
},
|
|
1616
|
-
children: /* @__PURE__ */
|
|
1617
|
-
|
|
2061
|
+
children: /* @__PURE__ */ n("div", { css: { position: "absolute", inset: 0 }, children: /* @__PURE__ */ n(
|
|
2062
|
+
B2,
|
|
1618
2063
|
{
|
|
1619
2064
|
containerProps: {
|
|
1620
2065
|
style: {
|
|
1621
2066
|
backgroundColor: i.theme.palette.background.default
|
|
1622
2067
|
}
|
|
1623
2068
|
},
|
|
1624
|
-
viewport: { width:
|
|
1625
|
-
children: /* @__PURE__ */
|
|
2069
|
+
viewport: { width: Qt.md.minWidth },
|
|
2070
|
+
children: /* @__PURE__ */ n(d2, { resolver: a, children: /* @__PURE__ */ n(h2, { data: f }) })
|
|
1626
2071
|
}
|
|
1627
2072
|
) })
|
|
1628
2073
|
}
|
|
1629
2074
|
)
|
|
1630
2075
|
}
|
|
1631
2076
|
);
|
|
1632
|
-
},
|
|
2077
|
+
}, In = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1633
2078
|
<path d="M12.5 2H9.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1634
2079
|
<path d="M2 9.5V12.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1635
2080
|
<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"/>
|
|
@@ -1640,45 +2085,45 @@ const E2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
1640
2085
|
<path d="M2 17V18C2 19.105 2.895 20 4 20H5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1641
2086
|
<path d="M20 5V4C20 2.895 19.105 2 18 2H17" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1642
2087
|
</svg>
|
|
1643
|
-
`,
|
|
2088
|
+
`, Ln = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1644
2089
|
<circle cx="6.49771" cy="5.49762" r="2.50104" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1645
2090
|
<circle cx="6.49771" cy="18.503" r="2.50104" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1646
2091
|
<path d="M6.49771 7.99854V16.0019" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1647
2092
|
<circle cx="17.5023" cy="13.0006" r="2.50104" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1648
2093
|
<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"/>
|
|
1649
2094
|
</svg>
|
|
1650
|
-
`,
|
|
1651
|
-
const { query: t, actions: o } =
|
|
1652
|
-
id:
|
|
2095
|
+
`, Tn = (e) => {
|
|
2096
|
+
const { query: t, actions: o } = z(), {
|
|
2097
|
+
id: r,
|
|
1653
2098
|
expanded: i,
|
|
1654
2099
|
actions: s,
|
|
1655
|
-
displayName:
|
|
1656
|
-
children:
|
|
1657
|
-
depth:
|
|
1658
|
-
} =
|
|
1659
|
-
expanded:
|
|
1660
|
-
displayName:
|
|
1661
|
-
})), { selected:
|
|
1662
|
-
const
|
|
2100
|
+
displayName: c,
|
|
2101
|
+
children: a,
|
|
2102
|
+
depth: l
|
|
2103
|
+
} = o1((C) => ({
|
|
2104
|
+
expanded: C.expanded,
|
|
2105
|
+
displayName: a2(t.node(C.id).get())
|
|
2106
|
+
})), { selected: f, selectable: d } = z((C, p) => {
|
|
2107
|
+
const g = p.node(r).get();
|
|
1663
2108
|
return {
|
|
1664
|
-
selected:
|
|
1665
|
-
nodeDOM:
|
|
1666
|
-
selectable:
|
|
2109
|
+
selected: p.getEvent("selected").contains(r),
|
|
2110
|
+
nodeDOM: g.dom,
|
|
2111
|
+
selectable: tt(g)
|
|
1667
2112
|
};
|
|
1668
2113
|
});
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
}, [s,
|
|
1672
|
-
if (
|
|
1673
|
-
|
|
1674
|
-
const
|
|
1675
|
-
return
|
|
2114
|
+
J(() => {
|
|
2115
|
+
r === Z && s.setExpandedState(!0);
|
|
2116
|
+
}, [s, r]), J(() => {
|
|
2117
|
+
if (a.length === 0) return;
|
|
2118
|
+
a.some((p) => {
|
|
2119
|
+
const g = t.getEvent("selected").all();
|
|
2120
|
+
return g.includes(p) ? !0 : t.node(p).descendants(!0).some((v) => g.includes(v));
|
|
1676
2121
|
}) && s.setExpandedState(!0);
|
|
1677
|
-
}, [
|
|
1678
|
-
const
|
|
1679
|
-
o.selectNode(
|
|
1680
|
-
},
|
|
1681
|
-
|
|
2122
|
+
}, [a, s, t]);
|
|
2123
|
+
const h = () => {
|
|
2124
|
+
o.selectNode(r);
|
|
2125
|
+
}, u = (C) => {
|
|
2126
|
+
C.stopPropagation(), s.toggleLayer();
|
|
1682
2127
|
};
|
|
1683
2128
|
return /* @__PURE__ */ m(
|
|
1684
2129
|
"div",
|
|
@@ -1688,9 +2133,9 @@ const E2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
1688
2133
|
/* @__PURE__ */ m(
|
|
1689
2134
|
"div",
|
|
1690
2135
|
{
|
|
1691
|
-
onClick:
|
|
2136
|
+
onClick: h,
|
|
1692
2137
|
style: {
|
|
1693
|
-
paddingLeft: Math.max(0,
|
|
2138
|
+
paddingLeft: Math.max(0, l - 1) * 16
|
|
1694
2139
|
},
|
|
1695
2140
|
css: [
|
|
1696
2141
|
{
|
|
@@ -1701,28 +2146,28 @@ const E2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
1701
2146
|
gap: 2,
|
|
1702
2147
|
borderWidth: 1,
|
|
1703
2148
|
borderStyle: "solid",
|
|
1704
|
-
borderColor:
|
|
2149
|
+
borderColor: w.palette.white["1s"],
|
|
1705
2150
|
cursor: "pointer",
|
|
1706
2151
|
borderRadius: 4,
|
|
1707
|
-
"&:hover": { backgroundColor:
|
|
2152
|
+
"&:hover": { backgroundColor: w.palette.white["1s"] }
|
|
1708
2153
|
},
|
|
1709
2154
|
!d && { pointerEvents: "none" },
|
|
1710
|
-
|
|
1711
|
-
|
|
2155
|
+
f && { backgroundColor: w.palette.black["7s"] },
|
|
2156
|
+
r === Z && { display: "none" }
|
|
1712
2157
|
],
|
|
1713
2158
|
children: [
|
|
1714
|
-
|
|
1715
|
-
|
|
2159
|
+
a.length ? /* @__PURE__ */ n(B, { css: { pointerEvents: "auto" }, onClick: u, children: /* @__PURE__ */ n(
|
|
2160
|
+
M,
|
|
1716
2161
|
{
|
|
1717
2162
|
css: [
|
|
1718
2163
|
{ transition: "transform", transform: "rotate(-90deg)" },
|
|
1719
2164
|
i && { transform: "rotate(0deg)" }
|
|
1720
2165
|
],
|
|
1721
2166
|
size: 16,
|
|
1722
|
-
source:
|
|
2167
|
+
source: u2
|
|
1723
2168
|
}
|
|
1724
|
-
) }) : /* @__PURE__ */
|
|
1725
|
-
/* @__PURE__ */
|
|
2169
|
+
) }) : /* @__PURE__ */ n("div", { css: { padding: 4 }, children: /* @__PURE__ */ n(M, { size: 16, source: Ln }) }),
|
|
2170
|
+
/* @__PURE__ */ n(
|
|
1726
2171
|
"span",
|
|
1727
2172
|
{
|
|
1728
2173
|
css: [
|
|
@@ -1732,15 +2177,15 @@ const E2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
1732
2177
|
whiteSpace: "nowrap",
|
|
1733
2178
|
flex: 1
|
|
1734
2179
|
},
|
|
1735
|
-
!d && { color:
|
|
2180
|
+
!d && { color: w.palette.white["3s"] }
|
|
1736
2181
|
],
|
|
1737
|
-
children:
|
|
2182
|
+
children: c
|
|
1738
2183
|
}
|
|
1739
2184
|
)
|
|
1740
2185
|
]
|
|
1741
2186
|
}
|
|
1742
2187
|
),
|
|
1743
|
-
/* @__PURE__ */
|
|
2188
|
+
/* @__PURE__ */ n(
|
|
1744
2189
|
"div",
|
|
1745
2190
|
{
|
|
1746
2191
|
css: {
|
|
@@ -1754,12 +2199,12 @@ const E2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
1754
2199
|
]
|
|
1755
2200
|
}
|
|
1756
2201
|
);
|
|
1757
|
-
},
|
|
1758
|
-
const t =
|
|
1759
|
-
t.start(
|
|
2202
|
+
}, Sn = ({ onClose: e }) => {
|
|
2203
|
+
const t = a1(), o = (r) => {
|
|
2204
|
+
t.start(r);
|
|
1760
2205
|
};
|
|
1761
|
-
return /* @__PURE__ */
|
|
1762
|
-
|
|
2206
|
+
return /* @__PURE__ */ n(x2, { children: /* @__PURE__ */ m(
|
|
2207
|
+
et.div,
|
|
1763
2208
|
{
|
|
1764
2209
|
drag: !0,
|
|
1765
2210
|
dragControls: t,
|
|
@@ -1770,10 +2215,10 @@ const E2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
1770
2215
|
display: "flex",
|
|
1771
2216
|
flexDirection: "column",
|
|
1772
2217
|
borderRadius: 6,
|
|
1773
|
-
backgroundColor:
|
|
2218
|
+
backgroundColor: w.palette.ink["6s"],
|
|
1774
2219
|
borderWidth: 1,
|
|
1775
2220
|
borderStyle: "solid",
|
|
1776
|
-
borderColor:
|
|
2221
|
+
borderColor: w.palette.white["2s"],
|
|
1777
2222
|
color: "white"
|
|
1778
2223
|
},
|
|
1779
2224
|
children: [
|
|
@@ -1791,23 +2236,23 @@ const E2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
1791
2236
|
},
|
|
1792
2237
|
children: [
|
|
1793
2238
|
/* @__PURE__ */ m("div", { css: { display: "flex", alignItems: "center", gap: 8 }, children: [
|
|
1794
|
-
/* @__PURE__ */
|
|
1795
|
-
/* @__PURE__ */
|
|
2239
|
+
/* @__PURE__ */ n(M, { source: In }),
|
|
2240
|
+
/* @__PURE__ */ n(
|
|
1796
2241
|
"p",
|
|
1797
2242
|
{
|
|
1798
2243
|
css: {
|
|
1799
|
-
...
|
|
2244
|
+
...w.text.sm,
|
|
1800
2245
|
fontWeight: 500
|
|
1801
2246
|
},
|
|
1802
2247
|
children: "Layers"
|
|
1803
2248
|
}
|
|
1804
2249
|
)
|
|
1805
2250
|
] }),
|
|
1806
|
-
/* @__PURE__ */
|
|
2251
|
+
/* @__PURE__ */ n(B, { onClick: e, children: /* @__PURE__ */ n(M, { source: ze }) })
|
|
1807
2252
|
]
|
|
1808
2253
|
}
|
|
1809
2254
|
),
|
|
1810
|
-
/* @__PURE__ */
|
|
2255
|
+
/* @__PURE__ */ n(
|
|
1811
2256
|
"div",
|
|
1812
2257
|
{
|
|
1813
2258
|
css: {
|
|
@@ -1815,50 +2260,42 @@ const E2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
1815
2260
|
overflow: "auto",
|
|
1816
2261
|
borderTopWidth: 1,
|
|
1817
2262
|
borderTopStyle: "solid",
|
|
1818
|
-
borderColor:
|
|
2263
|
+
borderColor: w.palette.white["1s"],
|
|
1819
2264
|
flex: 1
|
|
1820
2265
|
},
|
|
1821
|
-
children: /* @__PURE__ */
|
|
2266
|
+
children: /* @__PURE__ */ n(r1, { renderLayer: Tn })
|
|
1822
2267
|
}
|
|
1823
2268
|
)
|
|
1824
2269
|
]
|
|
1825
2270
|
}
|
|
1826
2271
|
) });
|
|
1827
|
-
},
|
|
2272
|
+
}, Nn = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1828
2273
|
<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"/>
|
|
1829
2274
|
<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"/>
|
|
1830
2275
|
<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"/>
|
|
1831
2276
|
</svg>
|
|
1832
|
-
`,
|
|
2277
|
+
`, En = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1833
2278
|
<path d="M5 12H19" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1834
2279
|
<path d="M10 7L5 12" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1835
2280
|
<path d="M10 17L5 12" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1836
2281
|
</svg>
|
|
1837
|
-
`,
|
|
1838
|
-
const [t, o] =
|
|
1839
|
-
|
|
1840
|
-
action: n = "insert"
|
|
1841
|
-
/* Insert */
|
|
1842
|
-
},
|
|
1843
|
-
setQueryParams: i
|
|
1844
|
-
} = i2(), { actions: s, isDeletable: p, focusedNode: c } = Z((a, k) => {
|
|
1845
|
-
const v = k.getEvent("selected").first(), h = v ? k.node(v) : null;
|
|
2282
|
+
`, An = ({ insert: e }) => {
|
|
2283
|
+
const [t, o] = M2(!1), { action: r = "insert", setState: i } = q(), { actions: s, isDeletable: c, focusedNode: a } = z((h, u) => {
|
|
2284
|
+
const C = u.getEvent("selected").first(), p = C ? u.node(C) : null;
|
|
1846
2285
|
return {
|
|
1847
|
-
enabled:
|
|
1848
|
-
isDeletable: !!(
|
|
1849
|
-
focusedNode:
|
|
2286
|
+
enabled: h.options.enabled,
|
|
2287
|
+
isDeletable: !!(p?.isDeletable() && (p.get().data.custom?.deletable ?? !0)),
|
|
2288
|
+
focusedNode: p?.get()
|
|
1850
2289
|
};
|
|
1851
|
-
}),
|
|
2290
|
+
}), l = () => {
|
|
1852
2291
|
s.selectNode();
|
|
1853
|
-
},
|
|
1854
|
-
s.delete(
|
|
1855
|
-
}, d = (
|
|
1856
|
-
const
|
|
1857
|
-
|
|
1858
|
-
action: k
|
|
1859
|
-
}));
|
|
2292
|
+
}, f = (h) => {
|
|
2293
|
+
s.delete(h.currentTarget.value);
|
|
2294
|
+
}, d = (h) => {
|
|
2295
|
+
const u = h.currentTarget.value;
|
|
2296
|
+
u === "layers" ? o() : (l(), i({ action: u }));
|
|
1860
2297
|
};
|
|
1861
|
-
return /* @__PURE__ */ m(
|
|
2298
|
+
return /* @__PURE__ */ m(ce, { children: [
|
|
1862
2299
|
/* @__PURE__ */ m(
|
|
1863
2300
|
"aside",
|
|
1864
2301
|
{
|
|
@@ -1866,18 +2303,18 @@ const E2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
1866
2303
|
display: "flex",
|
|
1867
2304
|
position: "relative",
|
|
1868
2305
|
alignItems: "stretch",
|
|
1869
|
-
backgroundColor:
|
|
1870
|
-
color:
|
|
2306
|
+
backgroundColor: w.palette.ink["6s"],
|
|
2307
|
+
color: w.palette.white["6s"],
|
|
1871
2308
|
borderTopWidth: 1,
|
|
1872
2309
|
borderTopStyle: "solid",
|
|
1873
|
-
borderColor:
|
|
1874
|
-
...
|
|
2310
|
+
borderColor: w.palette.white["2s"],
|
|
2311
|
+
...w.text.sm
|
|
1875
2312
|
},
|
|
1876
2313
|
children: [
|
|
1877
2314
|
/* @__PURE__ */ m("div", { css: { display: "flex", paddingInline: 4, flexDirection: "column", gap: 4 }, children: [
|
|
1878
|
-
!!e && /* @__PURE__ */ m(
|
|
1879
|
-
/* @__PURE__ */
|
|
1880
|
-
|
|
2315
|
+
!!e && /* @__PURE__ */ m(_e, { children: [
|
|
2316
|
+
/* @__PURE__ */ n(
|
|
2317
|
+
B,
|
|
1881
2318
|
{
|
|
1882
2319
|
tooltip: {
|
|
1883
2320
|
content: "Insert",
|
|
@@ -1887,13 +2324,13 @@ const E2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
1887
2324
|
value: "insert",
|
|
1888
2325
|
css: { position: "relative" },
|
|
1889
2326
|
size: "32",
|
|
1890
|
-
children: /* @__PURE__ */
|
|
2327
|
+
children: /* @__PURE__ */ n(M, { source: ve })
|
|
1891
2328
|
}
|
|
1892
2329
|
),
|
|
1893
|
-
/* @__PURE__ */
|
|
2330
|
+
/* @__PURE__ */ n("hr", { css: { borderColor: w.palette.white["2s"] } })
|
|
1894
2331
|
] }),
|
|
1895
|
-
/* @__PURE__ */
|
|
1896
|
-
|
|
2332
|
+
/* @__PURE__ */ n(
|
|
2333
|
+
B,
|
|
1897
2334
|
{
|
|
1898
2335
|
tooltip: {
|
|
1899
2336
|
content: "Layers",
|
|
@@ -1903,7 +2340,7 @@ const E2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
1903
2340
|
value: "layers",
|
|
1904
2341
|
css: { position: "relative" },
|
|
1905
2342
|
size: "32",
|
|
1906
|
-
children: /* @__PURE__ */
|
|
2343
|
+
children: /* @__PURE__ */ n(M, { source: Nn })
|
|
1907
2344
|
}
|
|
1908
2345
|
)
|
|
1909
2346
|
] }),
|
|
@@ -1918,17 +2355,17 @@ const E2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
1918
2355
|
width: 288,
|
|
1919
2356
|
borderLeftWidth: 1,
|
|
1920
2357
|
borderLeftStyle: "solid",
|
|
1921
|
-
borderColor:
|
|
2358
|
+
borderColor: w.palette.white["1s"]
|
|
1922
2359
|
},
|
|
1923
2360
|
children: [
|
|
1924
|
-
!
|
|
1925
|
-
!!
|
|
2361
|
+
!a?.related.inspector && /* @__PURE__ */ n("div", { css: { overflow: "auto", flex: 1 }, children: r === "insert" && !!e && /* @__PURE__ */ n(vn, { groups: e.groups }) }),
|
|
2362
|
+
!!a?.related?.inspector && /* @__PURE__ */ m("div", { css: { display: "flex", flexDirection: "column", overflow: "hidden", flex: 1 }, children: [
|
|
1926
2363
|
/* @__PURE__ */ m("div", { css: { display: "flex", paddingInline: 8, paddingBlock: 8, alignItems: "center", gap: 8 }, children: [
|
|
1927
|
-
/* @__PURE__ */
|
|
1928
|
-
/* @__PURE__ */
|
|
1929
|
-
|
|
2364
|
+
/* @__PURE__ */ n(B, { onClick: l, children: /* @__PURE__ */ n(M, { source: En }) }),
|
|
2365
|
+
/* @__PURE__ */ n("div", { css: { overflow: "hidden", flex: 1 }, children: /* @__PURE__ */ n(i2, { fullWidth: !0, value: a2(a), size: "32" }) }),
|
|
2366
|
+
c && /* @__PURE__ */ n(B, { value: a.id, onClick: f, children: /* @__PURE__ */ n(M, { css: { color: w.palette.red["4s"] }, source: zt }) })
|
|
1930
2367
|
] }),
|
|
1931
|
-
/* @__PURE__ */
|
|
2368
|
+
/* @__PURE__ */ n(
|
|
1932
2369
|
"div",
|
|
1933
2370
|
{
|
|
1934
2371
|
css: {
|
|
@@ -1936,9 +2373,9 @@ const E2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
1936
2373
|
flex: 1,
|
|
1937
2374
|
borderTopWidth: 1,
|
|
1938
2375
|
borderTopStyle: "solid",
|
|
1939
|
-
borderColor:
|
|
2376
|
+
borderColor: w.palette.white["1s"]
|
|
1940
2377
|
},
|
|
1941
|
-
children: /* @__PURE__ */
|
|
2378
|
+
children: /* @__PURE__ */ n(ct, { fallback: null, children: c2(a.related.inspector) })
|
|
1942
2379
|
}
|
|
1943
2380
|
)
|
|
1944
2381
|
] })
|
|
@@ -1948,30 +2385,37 @@ const E2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
1948
2385
|
]
|
|
1949
2386
|
}
|
|
1950
2387
|
),
|
|
1951
|
-
t && /* @__PURE__ */
|
|
2388
|
+
t && /* @__PURE__ */ n(Sn, { onClose: o })
|
|
1952
2389
|
] });
|
|
1953
|
-
},
|
|
1954
|
-
const {
|
|
1955
|
-
queryParams: { screen: i }
|
|
1956
|
-
} = i2();
|
|
1957
|
-
return s2({
|
|
2390
|
+
}, mr = ({ theme: e, insert: t, resolver: o, handlers: r, serializedNodes: i, children: s }) => {
|
|
2391
|
+
const { screen: c } = q({
|
|
1958
2392
|
theme: e,
|
|
1959
|
-
handlers:
|
|
1960
|
-
|
|
2393
|
+
handlers: r,
|
|
2394
|
+
mode: "full",
|
|
2395
|
+
screen: "xs"
|
|
2396
|
+
});
|
|
2397
|
+
return /* @__PURE__ */ n(d2, { enabled: !0, onRender: _1, resolver: o, children: /* @__PURE__ */ m(
|
|
1961
2398
|
"div",
|
|
1962
2399
|
{
|
|
1963
|
-
css: {
|
|
2400
|
+
css: {
|
|
2401
|
+
display: "flex",
|
|
2402
|
+
flexDirection: "column",
|
|
2403
|
+
width: "100vw",
|
|
2404
|
+
height: "100vh",
|
|
2405
|
+
backgroundColor: Ce.ink["6s"],
|
|
2406
|
+
color: Ce.white["6s"]
|
|
2407
|
+
},
|
|
1964
2408
|
children: [
|
|
1965
|
-
/* @__PURE__ */
|
|
2409
|
+
/* @__PURE__ */ n(Z1, {}),
|
|
1966
2410
|
/* @__PURE__ */ m("div", { css: { display: "flex", overflow: "hidden", flex: 1 }, children: [
|
|
1967
|
-
/* @__PURE__ */
|
|
1968
|
-
/* @__PURE__ */
|
|
1969
|
-
|
|
2411
|
+
/* @__PURE__ */ n(An, { insert: t }),
|
|
2412
|
+
/* @__PURE__ */ n(
|
|
2413
|
+
B2,
|
|
1970
2414
|
{
|
|
1971
2415
|
viewport: {
|
|
1972
|
-
width: (
|
|
2416
|
+
width: (a) => c === "lg" ? Math.max(a, Ae[c]) : Ae[c]
|
|
1973
2417
|
},
|
|
1974
|
-
children: /* @__PURE__ */
|
|
2418
|
+
children: /* @__PURE__ */ n(h2, { data: i, children: s || /* @__PURE__ */ n(nt, {}) })
|
|
1975
2419
|
}
|
|
1976
2420
|
)
|
|
1977
2421
|
] })
|
|
@@ -1980,8 +2424,100 @@ const E2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
1980
2424
|
) });
|
|
1981
2425
|
};
|
|
1982
2426
|
export {
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
2427
|
+
Pr as AspectRatioToolbar,
|
|
2428
|
+
Hr as BackgroundToolbar,
|
|
2429
|
+
Dr as BorderRadiusToolbar,
|
|
2430
|
+
jr as BorderToolbar,
|
|
2431
|
+
_r as ChildNodesToolbar,
|
|
2432
|
+
br as ColorPickerContent,
|
|
2433
|
+
xr as ColorPickerPopover,
|
|
2434
|
+
yr as ColorPreview,
|
|
2435
|
+
ft as ColorToolbar,
|
|
2436
|
+
Fr as ColorVariantToolbar,
|
|
2437
|
+
Or as ColumnGapToolbar,
|
|
2438
|
+
mt as CssFontWeightToolbar,
|
|
2439
|
+
ut as CssSizeInput,
|
|
2440
|
+
zr as CssTextAlignToolbar,
|
|
2441
|
+
Zr as CssWidthToolbar,
|
|
2442
|
+
hr as DegreePicker,
|
|
2443
|
+
$r as DisplayOnToolbar,
|
|
2444
|
+
Cr as DisplayToolbar,
|
|
2445
|
+
mr as Editor,
|
|
2446
|
+
Gr as FlexAlignItemsToolbar,
|
|
2447
|
+
gr as FlexToolbar,
|
|
2448
|
+
Ur as FlexWrapToolbar,
|
|
2449
|
+
pr as FontSizeToolbar,
|
|
2450
|
+
B2 as FramePreview,
|
|
2451
|
+
qr as GridAlignItemsToolbar,
|
|
2452
|
+
Yr as HeightToolbar,
|
|
2453
|
+
Xr as HtmlAnchorTargetToolbar,
|
|
2454
|
+
Kr as ImageSourceSelection,
|
|
2455
|
+
Jr as JustifyContentToolbar,
|
|
2456
|
+
Qr as JustifyItemsToolbar,
|
|
2457
|
+
ur as LineHeightToolbar,
|
|
2458
|
+
eo as MarginToolbar,
|
|
2459
|
+
fr as MinWidthToolbar,
|
|
2460
|
+
to as NumberField,
|
|
2461
|
+
no as NumberFieldMixOptions,
|
|
2462
|
+
ro as ObjectFitToolbar,
|
|
2463
|
+
oo as OrderToolbar,
|
|
2464
|
+
so as PaddingToolbar,
|
|
2465
|
+
io as RowGapToolbar,
|
|
2466
|
+
ao as SpacingToolbar,
|
|
2467
|
+
co as SvgSourceToolbar,
|
|
2468
|
+
lo as TagNameToolbar,
|
|
2469
|
+
ho as TextInlineEditor,
|
|
2470
|
+
gt as TextSizeVariantToolbar,
|
|
2471
|
+
wr as TextStyleGroupToolbar,
|
|
2472
|
+
wt as TextStyleToolbar,
|
|
2473
|
+
kt as TextTransformToolbar,
|
|
2474
|
+
Y as ToolbarField,
|
|
2475
|
+
uo as ToolbarGroup,
|
|
2476
|
+
r2 as WbButton,
|
|
2477
|
+
Ft as WbButtonGroup,
|
|
2478
|
+
K2 as WbCollapse,
|
|
2479
|
+
Mr as WbColorPicker,
|
|
2480
|
+
po as WbDatePicker,
|
|
2481
|
+
ar as WbDialog,
|
|
2482
|
+
lr as WbDialogBody,
|
|
2483
|
+
Ir as WbDialogClose,
|
|
2484
|
+
Lr as WbDialogFooter,
|
|
2485
|
+
Tr as WbDialogHeader,
|
|
2486
|
+
Co as WbDropzone,
|
|
2487
|
+
c1 as WbFloating,
|
|
2488
|
+
Sr as WbFloatingClose,
|
|
2489
|
+
W2 as WbFloatingContent,
|
|
2490
|
+
V2 as WbFloatingContext,
|
|
2491
|
+
dr as WbFormLabel,
|
|
2492
|
+
M as WbIcon,
|
|
2493
|
+
B as WbIconButton,
|
|
2494
|
+
i2 as WbInput,
|
|
2495
|
+
l2 as WbInputNumber,
|
|
2496
|
+
Nr as WbLoadingOverlay,
|
|
2497
|
+
go as WbMenu,
|
|
2498
|
+
Er as WbMenuItem,
|
|
2499
|
+
Ar as WbMenuList,
|
|
2500
|
+
Br as WbMenuTrigger,
|
|
2501
|
+
D2 as WbPopover,
|
|
2502
|
+
Ct as WbPopoverClose,
|
|
2503
|
+
_2 as WbPopoverContent,
|
|
2504
|
+
j2 as WbPopoverTrigger,
|
|
2505
|
+
Fe as WbRadioButton,
|
|
2506
|
+
ye as WbScrollView,
|
|
2507
|
+
ht as WbSelect,
|
|
2508
|
+
J2 as WbSvgLoader,
|
|
2509
|
+
Rr as WbSwitch,
|
|
2510
|
+
fo as WbTab,
|
|
2511
|
+
wo as WbTabContent,
|
|
2512
|
+
mo as WbTabList,
|
|
2513
|
+
ko as WbTabPanel,
|
|
2514
|
+
vo as WbTabs,
|
|
2515
|
+
Vr as WbTextarea,
|
|
2516
|
+
Io as WbTooltip,
|
|
2517
|
+
bo as WbVirtualizedList,
|
|
2518
|
+
xo as textSizeVariantOptions,
|
|
2519
|
+
cr as useDialogContext,
|
|
2520
|
+
q as useEditor,
|
|
2521
|
+
yo as useEditorResponsive,
|
|
2522
|
+
P2 as useWbFloatingContext
|
|
1987
2523
|
};
|