@janbox/storefront-builder 1.0.9 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +83 -110
- package/dist/{countdown-timer.node-j79tvSTR.js → countdown-timer.node-OmDiT-pz.js} +139 -140
- package/dist/editor/lib/index.d.ts +1 -1
- package/dist/editor/lib/sidebar/insert-action.d.ts +15 -22
- package/dist/editor.js +981 -483
- package/dist/{index-C9Q0Iqvf.js → index-CwrFnubn.js} +342 -341
- package/dist/index.js +33 -33
- package/dist/style.css +1 -1
- package/dist/templates/elements/carousel/index.d.ts +2 -2
- package/dist/templates/elements/content-list/index.d.ts +2 -2
- package/dist/templates/elements/interactive/index.d.ts +2 -2
- package/dist/templates/elements/layout/index.d.ts +2 -2
- package/dist/templates/elements/media/index.d.ts +2 -2
- package/dist/templates/elements/text/index.d.ts +2 -2
- package/dist/templates/elements/utilities/index.d.ts +2 -2
- package/dist/templates/index.d.ts +0 -1
- package/dist/templates/sections/faqs/index.d.ts +2 -2
- package/dist/templates/sections/guarantee/index.d.ts +2 -2
- package/dist/templates/sections/hero/index.d.ts +2 -2
- package/dist/templates.js +79 -578
- package/package.json +1 -1
package/dist/editor.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { N as
|
|
3
|
-
import { useNode as
|
|
4
|
-
import { f as
|
|
5
|
-
import { useRef as
|
|
1
|
+
import { jsx as r, Fragment as V2, jsxs as g } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { N as v2, t as x2, H as j2, P as r2, V as A2, S as p2, G as R2, a as d2, j as H2, F as h2, m as f2, B as B2, I as _2, k as P2, L as Z2, s as ue, r as $2, g as D2, A as O2, i as G2, C as F2, b as we, c as Ce, d as pe, n as z2, M as U2, o as fe, p as ge, T as me, q as ke, R as ve } from "./countdown-timer.node-OmDiT-pz.js";
|
|
3
|
+
import { useNode as xe, ROOT_NODE as D, serializeNode as be } from "@craftjs/core";
|
|
4
|
+
import { f as s2, c as ye, e as Ne, u as $, r as L, a as W2, i as Me } from "./color-picker-popover-B3AVFuei.js";
|
|
5
|
+
import { useRef as q2, useState as G, useEffect as W, createElement as Y2, Fragment as n2, Suspense as Le } from "react";
|
|
6
6
|
import "flat";
|
|
7
|
-
import { throttle as
|
|
7
|
+
import { throttle as Ie, isFunction as b2, isNumber as y2, times as Z } from "lodash-es";
|
|
8
8
|
import "@janbox/storefront-ui";
|
|
9
|
-
import { D as
|
|
9
|
+
import { D as Ee, a as Se, H as Te, P as Ve, k as je, i as Ae, G as Re, c as He, g as Be, F as _e, M as Pe, b as Ze, h as $e, I as De, L as Oe, U as Ge, T as Fe, B as ze, A as Ue, f as We, e as qe, R as C, d as Q2, C as X2 } from "./index-CwrFnubn.js";
|
|
10
10
|
import "@janbox/storefront-ui/hooks";
|
|
11
|
-
import { ThemeProvider as
|
|
11
|
+
import { ThemeProvider as Ye, getColorVar as N2, FLOATING_Z_INDEX as Qe, breakpoint as Xe } from "@janbox/storefront-ui/theme";
|
|
12
12
|
import "@janbox/storefront-ui/utils";
|
|
13
|
-
import { G as
|
|
14
|
-
import { useFloating as
|
|
13
|
+
import { G as Ke, c as B, l as A, W as E, d as K2, m as J2, e as Je, v as e1, F as t1, C as r1, P as n1 } from "./dialog-header-DPLOS7TT.js";
|
|
14
|
+
import { useFloating as o1, autoUpdate as s1, flip as i1, size as c1, useHover as a1, safePolygon as l1, useFocus as d1, useDismiss as h1, useRole as u1, useInteractions as w1, FloatingPortal as ee } from "@floating-ui/react";
|
|
15
15
|
import "react-use";
|
|
16
16
|
import "react-colorful";
|
|
17
17
|
import "overlayscrollbars-react";
|
|
@@ -23,17 +23,18 @@ import "@tiptap/extension-text-style";
|
|
|
23
23
|
import "@tiptap/react";
|
|
24
24
|
import "@tiptap/react/menus";
|
|
25
25
|
import "@tiptap/starter-kit";
|
|
26
|
-
import
|
|
27
|
-
import { CacheProvider as
|
|
26
|
+
import C1, { useFrame as p1 } from "react-frame-component";
|
|
27
|
+
import { CacheProvider as f1, Global as g1, createElement as m1 } from "@emotion/react";
|
|
28
28
|
import "@hello-pangea/dnd";
|
|
29
|
-
import { useToggle as
|
|
29
|
+
import { useToggle as te } from "usehooks-ts";
|
|
30
30
|
import "clsx";
|
|
31
31
|
import "tailwind-merge";
|
|
32
|
-
import { w as
|
|
33
|
-
import { E as
|
|
34
|
-
import { a as
|
|
35
|
-
import
|
|
36
|
-
|
|
32
|
+
import { w as i2, x as k1, y as v1, z as M2 } from "./anchor-target-BlOvysAr.js";
|
|
33
|
+
import { E as A3 } from "./anchor-target-BlOvysAr.js";
|
|
34
|
+
import { a as x1, W as re, A as ne } from "./dropzone-Dbfed3jK.js";
|
|
35
|
+
import b1 from "dayjs";
|
|
36
|
+
import { Layers as y1, useLayer as N1 } from "@craftjs/layers";
|
|
37
|
+
class M1 {
|
|
37
38
|
constructor() {
|
|
38
39
|
this.componentControls = /* @__PURE__ */ new Set();
|
|
39
40
|
}
|
|
@@ -61,69 +62,69 @@ class pr {
|
|
|
61
62
|
* @public
|
|
62
63
|
*/
|
|
63
64
|
start(t, o) {
|
|
64
|
-
this.componentControls.forEach((
|
|
65
|
-
|
|
65
|
+
this.componentControls.forEach((n) => {
|
|
66
|
+
n.start(t.nativeEvent || t, o);
|
|
66
67
|
});
|
|
67
68
|
}
|
|
68
69
|
}
|
|
69
|
-
const
|
|
70
|
-
function
|
|
71
|
-
return
|
|
70
|
+
const L1 = () => new M1();
|
|
71
|
+
function I1() {
|
|
72
|
+
return Ke(L1);
|
|
72
73
|
}
|
|
73
|
-
function
|
|
74
|
+
function E1(e) {
|
|
74
75
|
if (e.sheet)
|
|
75
76
|
return e.sheet;
|
|
76
77
|
for (var t = 0; t < document.styleSheets.length; t++)
|
|
77
78
|
if (document.styleSheets[t].ownerNode === e)
|
|
78
79
|
return document.styleSheets[t];
|
|
79
80
|
}
|
|
80
|
-
function
|
|
81
|
+
function S1(e) {
|
|
81
82
|
var t = document.createElement("style");
|
|
82
83
|
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;
|
|
83
84
|
}
|
|
84
|
-
var
|
|
85
|
+
var T1 = /* @__PURE__ */ (function() {
|
|
85
86
|
function e(o) {
|
|
86
|
-
var
|
|
87
|
+
var n = this;
|
|
87
88
|
this._insertTag = function(i) {
|
|
88
89
|
var s;
|
|
89
|
-
|
|
90
|
+
n.tags.length === 0 ? n.insertionPoint ? s = n.insertionPoint.nextSibling : n.prepend ? s = n.container.firstChild : s = n.before : s = n.tags[n.tags.length - 1].nextSibling, n.container.insertBefore(i, s), n.tags.push(i);
|
|
90
91
|
}, 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;
|
|
91
92
|
}
|
|
92
93
|
var t = e.prototype;
|
|
93
|
-
return t.hydrate = function(
|
|
94
|
-
|
|
95
|
-
}, t.insert = function(
|
|
96
|
-
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(
|
|
94
|
+
return t.hydrate = function(n) {
|
|
95
|
+
n.forEach(this._insertTag);
|
|
96
|
+
}, t.insert = function(n) {
|
|
97
|
+
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(S1(this));
|
|
97
98
|
var i = this.tags[this.tags.length - 1];
|
|
98
99
|
if (this.isSpeedy) {
|
|
99
|
-
var s =
|
|
100
|
+
var s = E1(i);
|
|
100
101
|
try {
|
|
101
|
-
s.insertRule(
|
|
102
|
+
s.insertRule(n, s.cssRules.length);
|
|
102
103
|
} catch {
|
|
103
104
|
}
|
|
104
105
|
} else
|
|
105
|
-
i.appendChild(document.createTextNode(
|
|
106
|
+
i.appendChild(document.createTextNode(n));
|
|
106
107
|
this.ctr++;
|
|
107
108
|
}, t.flush = function() {
|
|
108
|
-
this.tags.forEach(function(
|
|
109
|
+
this.tags.forEach(function(n) {
|
|
109
110
|
var i;
|
|
110
|
-
return (i =
|
|
111
|
+
return (i = n.parentNode) == null ? void 0 : i.removeChild(n);
|
|
111
112
|
}), this.tags = [], this.ctr = 0;
|
|
112
113
|
}, e;
|
|
113
|
-
})(), S = "-ms-",
|
|
114
|
-
function
|
|
114
|
+
})(), S = "-ms-", o2 = "-moz-", p = "-webkit-", oe = "comm", g2 = "rule", m2 = "decl", V1 = "@import", se = "@keyframes", j1 = "@layer", A1 = Math.abs, c2 = String.fromCharCode, R1 = Object.assign;
|
|
115
|
+
function H1(e, t) {
|
|
115
116
|
return I(e, 0) ^ 45 ? (((t << 2 ^ I(e, 0)) << 2 ^ I(e, 1)) << 2 ^ I(e, 2)) << 2 ^ I(e, 3) : 0;
|
|
116
117
|
}
|
|
117
|
-
function
|
|
118
|
+
function ie(e) {
|
|
118
119
|
return e.trim();
|
|
119
120
|
}
|
|
120
|
-
function
|
|
121
|
+
function B1(e, t) {
|
|
121
122
|
return (e = t.exec(e)) ? e[0] : e;
|
|
122
123
|
}
|
|
123
|
-
function
|
|
124
|
+
function f(e, t, o) {
|
|
124
125
|
return e.replace(t, o);
|
|
125
126
|
}
|
|
126
|
-
function
|
|
127
|
+
function u2(e, t) {
|
|
127
128
|
return e.indexOf(t);
|
|
128
129
|
}
|
|
129
130
|
function I(e, t) {
|
|
@@ -132,44 +133,44 @@ function I(e, t) {
|
|
|
132
133
|
function q(e, t, o) {
|
|
133
134
|
return e.slice(t, o);
|
|
134
135
|
}
|
|
135
|
-
function
|
|
136
|
+
function H(e) {
|
|
136
137
|
return e.length;
|
|
137
138
|
}
|
|
138
|
-
function
|
|
139
|
+
function k2(e) {
|
|
139
140
|
return e.length;
|
|
140
141
|
}
|
|
141
|
-
function
|
|
142
|
+
function K(e, t) {
|
|
142
143
|
return t.push(e), e;
|
|
143
144
|
}
|
|
144
|
-
function
|
|
145
|
+
function _1(e, t) {
|
|
145
146
|
return e.map(t).join("");
|
|
146
147
|
}
|
|
147
|
-
var
|
|
148
|
-
function
|
|
149
|
-
return { value: e, root: t, parent: o, type:
|
|
148
|
+
var a2 = 1, F = 1, ce = 0, V = 0, N = 0, z = "";
|
|
149
|
+
function l2(e, t, o, n, i, s, u) {
|
|
150
|
+
return { value: e, root: t, parent: o, type: n, props: i, children: s, line: a2, column: F, length: u, return: "" };
|
|
150
151
|
}
|
|
151
|
-
function
|
|
152
|
-
return
|
|
152
|
+
function U(e, t) {
|
|
153
|
+
return R1(l2("", null, null, "", null, null, 0), e, { length: -e.length }, t);
|
|
153
154
|
}
|
|
154
|
-
function
|
|
155
|
+
function P1() {
|
|
155
156
|
return N;
|
|
156
157
|
}
|
|
157
|
-
function
|
|
158
|
-
return N =
|
|
158
|
+
function Z1() {
|
|
159
|
+
return N = V > 0 ? I(z, --V) : 0, F--, N === 10 && (F = 1, a2--), N;
|
|
159
160
|
}
|
|
160
161
|
function j() {
|
|
161
|
-
return N =
|
|
162
|
+
return N = V < ce ? I(z, V++) : 0, F++, N === 10 && (F = 1, a2++), N;
|
|
162
163
|
}
|
|
163
|
-
function
|
|
164
|
-
return I(z,
|
|
164
|
+
function _() {
|
|
165
|
+
return I(z, V);
|
|
165
166
|
}
|
|
166
|
-
function
|
|
167
|
-
return
|
|
167
|
+
function J() {
|
|
168
|
+
return V;
|
|
168
169
|
}
|
|
169
|
-
function
|
|
170
|
+
function Q(e, t) {
|
|
170
171
|
return q(z, e, t);
|
|
171
172
|
}
|
|
172
|
-
function
|
|
173
|
+
function Y(e) {
|
|
173
174
|
switch (e) {
|
|
174
175
|
// \0 \t \n \r \s whitespace token
|
|
175
176
|
case 0:
|
|
@@ -207,254 +208,254 @@ function U(e) {
|
|
|
207
208
|
}
|
|
208
209
|
return 0;
|
|
209
210
|
}
|
|
210
|
-
function
|
|
211
|
-
return
|
|
211
|
+
function ae(e) {
|
|
212
|
+
return a2 = F = 1, ce = H(z = e), V = 0, [];
|
|
212
213
|
}
|
|
213
|
-
function
|
|
214
|
+
function le(e) {
|
|
214
215
|
return z = "", e;
|
|
215
216
|
}
|
|
216
|
-
function
|
|
217
|
-
return
|
|
217
|
+
function e2(e) {
|
|
218
|
+
return ie(Q(V - 1, w2(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
218
219
|
}
|
|
219
|
-
function
|
|
220
|
-
for (; (N =
|
|
220
|
+
function $1(e) {
|
|
221
|
+
for (; (N = _()) && N < 33; )
|
|
221
222
|
j();
|
|
222
|
-
return
|
|
223
|
+
return Y(e) > 2 || Y(N) > 3 ? "" : " ";
|
|
223
224
|
}
|
|
224
|
-
function
|
|
225
|
+
function D1(e, t) {
|
|
225
226
|
for (; --t && j() && !(N < 48 || N > 102 || N > 57 && N < 65 || N > 70 && N < 97); )
|
|
226
227
|
;
|
|
227
|
-
return
|
|
228
|
+
return Q(e, J() + (t < 6 && _() == 32 && j() == 32));
|
|
228
229
|
}
|
|
229
|
-
function
|
|
230
|
+
function w2(e) {
|
|
230
231
|
for (; j(); )
|
|
231
232
|
switch (N) {
|
|
232
233
|
// ] ) " '
|
|
233
234
|
case e:
|
|
234
|
-
return
|
|
235
|
+
return V;
|
|
235
236
|
// " '
|
|
236
237
|
case 34:
|
|
237
238
|
case 39:
|
|
238
|
-
e !== 34 && e !== 39 &&
|
|
239
|
+
e !== 34 && e !== 39 && w2(N);
|
|
239
240
|
break;
|
|
240
241
|
// (
|
|
241
242
|
case 40:
|
|
242
|
-
e === 41 &&
|
|
243
|
+
e === 41 && w2(e);
|
|
243
244
|
break;
|
|
244
245
|
// \
|
|
245
246
|
case 92:
|
|
246
247
|
j();
|
|
247
248
|
break;
|
|
248
249
|
}
|
|
249
|
-
return
|
|
250
|
+
return V;
|
|
250
251
|
}
|
|
251
|
-
function
|
|
252
|
+
function O1(e, t) {
|
|
252
253
|
for (; j() && e + N !== 57; )
|
|
253
|
-
if (e + N === 84 &&
|
|
254
|
+
if (e + N === 84 && _() === 47)
|
|
254
255
|
break;
|
|
255
|
-
return "/*" +
|
|
256
|
+
return "/*" + Q(t, V - 1) + "*" + c2(e === 47 ? e : j());
|
|
256
257
|
}
|
|
257
|
-
function
|
|
258
|
-
for (; !
|
|
258
|
+
function G1(e) {
|
|
259
|
+
for (; !Y(_()); )
|
|
259
260
|
j();
|
|
260
|
-
return
|
|
261
|
+
return Q(e, V);
|
|
261
262
|
}
|
|
262
|
-
function
|
|
263
|
-
return
|
|
263
|
+
function F1(e) {
|
|
264
|
+
return le(t2("", null, null, null, [""], e = ae(e), 0, [0], e));
|
|
264
265
|
}
|
|
265
|
-
function
|
|
266
|
-
for (var
|
|
267
|
-
switch (
|
|
266
|
+
function t2(e, t, o, n, i, s, u, c, w) {
|
|
267
|
+
for (var x = 0, l = 0, a = u, m = 0, k = 0, h = 0, d = 1, M = 1, v = 1, y = 0, T = "", X = i, P = s, R = n, b = T; M; )
|
|
268
|
+
switch (h = y, y = j()) {
|
|
268
269
|
// (
|
|
269
270
|
case 40:
|
|
270
|
-
if (
|
|
271
|
-
|
|
271
|
+
if (h != 108 && I(b, a - 1) == 58) {
|
|
272
|
+
u2(b += f(e2(y), "&", "&\f"), "&\f") != -1 && (v = -1);
|
|
272
273
|
break;
|
|
273
274
|
}
|
|
274
275
|
// " ' [
|
|
275
276
|
case 34:
|
|
276
277
|
case 39:
|
|
277
278
|
case 91:
|
|
278
|
-
|
|
279
|
+
b += e2(y);
|
|
279
280
|
break;
|
|
280
281
|
// \t \n \r \s
|
|
281
282
|
case 9:
|
|
282
283
|
case 10:
|
|
283
284
|
case 13:
|
|
284
285
|
case 32:
|
|
285
|
-
|
|
286
|
+
b += $1(h);
|
|
286
287
|
break;
|
|
287
288
|
// \
|
|
288
289
|
case 92:
|
|
289
|
-
|
|
290
|
+
b += D1(J() - 1, 7);
|
|
290
291
|
continue;
|
|
291
292
|
// /
|
|
292
293
|
case 47:
|
|
293
|
-
switch (
|
|
294
|
+
switch (_()) {
|
|
294
295
|
case 42:
|
|
295
296
|
case 47:
|
|
296
|
-
|
|
297
|
+
K(z1(O1(j(), J()), t, o), w);
|
|
297
298
|
break;
|
|
298
299
|
default:
|
|
299
|
-
|
|
300
|
+
b += "/";
|
|
300
301
|
}
|
|
301
302
|
break;
|
|
302
303
|
// {
|
|
303
304
|
case 123 * d:
|
|
304
|
-
c[
|
|
305
|
+
c[x++] = H(b) * v;
|
|
305
306
|
// } ; \0
|
|
306
307
|
case 125 * d:
|
|
307
308
|
case 59:
|
|
308
309
|
case 0:
|
|
309
|
-
switch (
|
|
310
|
+
switch (y) {
|
|
310
311
|
// \0 }
|
|
311
312
|
case 0:
|
|
312
313
|
case 125:
|
|
313
|
-
|
|
314
|
+
M = 0;
|
|
314
315
|
// ;
|
|
315
316
|
case 59 + l:
|
|
316
|
-
|
|
317
|
+
v == -1 && (b = f(b, /\f/g, "")), k > 0 && H(b) - a && K(k > 32 ? I2(b + ";", n, o, a - 1) : I2(f(b, " ", "") + ";", n, o, a - 2), w);
|
|
317
318
|
break;
|
|
318
319
|
// @ ;
|
|
319
320
|
case 59:
|
|
320
|
-
|
|
321
|
+
b += ";";
|
|
321
322
|
// { rule/at-rule
|
|
322
323
|
default:
|
|
323
|
-
if (
|
|
324
|
+
if (K(R = L2(b, t, o, x, l, i, c, T, X = [], P = [], a), s), y === 123)
|
|
324
325
|
if (l === 0)
|
|
325
|
-
|
|
326
|
+
t2(b, t, R, R, X, s, a, c, P);
|
|
326
327
|
else
|
|
327
|
-
switch (
|
|
328
|
+
switch (m === 99 && I(b, 3) === 110 ? 100 : m) {
|
|
328
329
|
// d l m s
|
|
329
330
|
case 100:
|
|
330
331
|
case 108:
|
|
331
332
|
case 109:
|
|
332
333
|
case 115:
|
|
333
|
-
|
|
334
|
+
t2(e, R, R, n && K(L2(e, R, R, 0, 0, i, c, T, i, X = [], a), P), i, P, a, c, n ? X : P);
|
|
334
335
|
break;
|
|
335
336
|
default:
|
|
336
|
-
|
|
337
|
+
t2(b, R, R, R, [""], P, 0, c, P);
|
|
337
338
|
}
|
|
338
339
|
}
|
|
339
|
-
|
|
340
|
+
x = l = k = 0, d = v = 1, T = b = "", a = u;
|
|
340
341
|
break;
|
|
341
342
|
// :
|
|
342
343
|
case 58:
|
|
343
|
-
a = 1 +
|
|
344
|
+
a = 1 + H(b), k = h;
|
|
344
345
|
default:
|
|
345
346
|
if (d < 1) {
|
|
346
|
-
if (
|
|
347
|
+
if (y == 123)
|
|
347
348
|
--d;
|
|
348
|
-
else if (
|
|
349
|
+
else if (y == 125 && d++ == 0 && Z1() == 125)
|
|
349
350
|
continue;
|
|
350
351
|
}
|
|
351
|
-
switch (
|
|
352
|
+
switch (b += c2(y), y * d) {
|
|
352
353
|
// &
|
|
353
354
|
case 38:
|
|
354
|
-
|
|
355
|
+
v = l > 0 ? 1 : (b += "\f", -1);
|
|
355
356
|
break;
|
|
356
357
|
// ,
|
|
357
358
|
case 44:
|
|
358
|
-
c[
|
|
359
|
+
c[x++] = (H(b) - 1) * v, v = 1;
|
|
359
360
|
break;
|
|
360
361
|
// @
|
|
361
362
|
case 64:
|
|
362
|
-
|
|
363
|
+
_() === 45 && (b += e2(j())), m = _(), l = a = H(T = b += G1(J())), y++;
|
|
363
364
|
break;
|
|
364
365
|
// -
|
|
365
366
|
case 45:
|
|
366
|
-
|
|
367
|
+
h === 45 && H(b) == 2 && (d = 0);
|
|
367
368
|
}
|
|
368
369
|
}
|
|
369
370
|
return s;
|
|
370
371
|
}
|
|
371
|
-
function
|
|
372
|
-
for (var a = i - 1,
|
|
373
|
-
for (var
|
|
374
|
-
(
|
|
375
|
-
return
|
|
372
|
+
function L2(e, t, o, n, i, s, u, c, w, x, l) {
|
|
373
|
+
for (var a = i - 1, m = i === 0 ? s : [""], k = k2(m), h = 0, d = 0, M = 0; h < n; ++h)
|
|
374
|
+
for (var v = 0, y = q(e, a + 1, a = A1(d = u[h])), T = e; v < k; ++v)
|
|
375
|
+
(T = ie(d > 0 ? m[v] + " " + y : f(y, /&\f/g, m[v]))) && (w[M++] = T);
|
|
376
|
+
return l2(e, t, o, i === 0 ? g2 : c, w, x, l);
|
|
376
377
|
}
|
|
377
|
-
function
|
|
378
|
-
return
|
|
378
|
+
function z1(e, t, o) {
|
|
379
|
+
return l2(e, t, o, oe, c2(P1()), q(e, 2, -2), 0);
|
|
379
380
|
}
|
|
380
|
-
function
|
|
381
|
-
return
|
|
381
|
+
function I2(e, t, o, n) {
|
|
382
|
+
return l2(e, t, o, m2, q(e, 0, n), q(e, n + 1, -1), n);
|
|
382
383
|
}
|
|
383
|
-
function
|
|
384
|
-
for (var o = "",
|
|
384
|
+
function O(e, t) {
|
|
385
|
+
for (var o = "", n = k2(e), i = 0; i < n; i++)
|
|
385
386
|
o += t(e[i], i, e, t) || "";
|
|
386
387
|
return o;
|
|
387
388
|
}
|
|
388
|
-
function
|
|
389
|
+
function U1(e, t, o, n) {
|
|
389
390
|
switch (e.type) {
|
|
390
|
-
case
|
|
391
|
+
case j1:
|
|
391
392
|
if (e.children.length) break;
|
|
392
|
-
case
|
|
393
|
-
case
|
|
393
|
+
case V1:
|
|
394
|
+
case m2:
|
|
394
395
|
return e.return = e.return || e.value;
|
|
395
|
-
case
|
|
396
|
+
case oe:
|
|
396
397
|
return "";
|
|
397
|
-
case
|
|
398
|
-
return e.return = e.value + "{" +
|
|
399
|
-
case
|
|
398
|
+
case se:
|
|
399
|
+
return e.return = e.value + "{" + O(e.children, n) + "}";
|
|
400
|
+
case g2:
|
|
400
401
|
e.value = e.props.join(",");
|
|
401
402
|
}
|
|
402
|
-
return
|
|
403
|
+
return H(o = O(e.children, n)) ? e.return = e.value + "{" + o + "}" : "";
|
|
403
404
|
}
|
|
404
|
-
function
|
|
405
|
-
var t =
|
|
406
|
-
return function(o,
|
|
407
|
-
for (var
|
|
408
|
-
|
|
409
|
-
return
|
|
405
|
+
function W1(e) {
|
|
406
|
+
var t = k2(e);
|
|
407
|
+
return function(o, n, i, s) {
|
|
408
|
+
for (var u = "", c = 0; c < t; c++)
|
|
409
|
+
u += e[c](o, n, i, s) || "";
|
|
410
|
+
return u;
|
|
410
411
|
};
|
|
411
412
|
}
|
|
412
|
-
function
|
|
413
|
+
function q1(e) {
|
|
413
414
|
return function(t) {
|
|
414
415
|
t.root || (t = t.return) && e(t);
|
|
415
416
|
};
|
|
416
417
|
}
|
|
417
|
-
var
|
|
418
|
-
for (var i = 0, s = 0; i = s, s =
|
|
418
|
+
var Y1 = function(t, o, n) {
|
|
419
|
+
for (var i = 0, s = 0; i = s, s = _(), i === 38 && s === 12 && (o[n] = 1), !Y(s); )
|
|
419
420
|
j();
|
|
420
|
-
return
|
|
421
|
-
},
|
|
422
|
-
var
|
|
421
|
+
return Q(t, V);
|
|
422
|
+
}, Q1 = function(t, o) {
|
|
423
|
+
var n = -1, i = 44;
|
|
423
424
|
do
|
|
424
|
-
switch (
|
|
425
|
+
switch (Y(i)) {
|
|
425
426
|
case 0:
|
|
426
|
-
i === 38 &&
|
|
427
|
+
i === 38 && _() === 12 && (o[n] = 1), t[n] += Y1(V - 1, o, n);
|
|
427
428
|
break;
|
|
428
429
|
case 2:
|
|
429
|
-
t[
|
|
430
|
+
t[n] += e2(i);
|
|
430
431
|
break;
|
|
431
432
|
case 4:
|
|
432
433
|
if (i === 44) {
|
|
433
|
-
t[++
|
|
434
|
+
t[++n] = _() === 58 ? "&\f" : "", o[n] = t[n].length;
|
|
434
435
|
break;
|
|
435
436
|
}
|
|
436
437
|
// fallthrough
|
|
437
438
|
default:
|
|
438
|
-
t[
|
|
439
|
+
t[n] += c2(i);
|
|
439
440
|
}
|
|
440
441
|
while (i = j());
|
|
441
442
|
return t;
|
|
442
|
-
},
|
|
443
|
-
return
|
|
444
|
-
},
|
|
443
|
+
}, X1 = function(t, o) {
|
|
444
|
+
return le(Q1(ae(t), o));
|
|
445
|
+
}, E2 = /* @__PURE__ */ new WeakMap(), K1 = function(t) {
|
|
445
446
|
if (!(t.type !== "rule" || !t.parent || // positive .length indicates that this rule contains pseudo
|
|
446
447
|
// negative .length indicates that this rule has been already prefixed
|
|
447
448
|
t.length < 1)) {
|
|
448
|
-
for (var o = t.value,
|
|
449
|
-
if (
|
|
450
|
-
if (!(t.props.length === 1 && o.charCodeAt(0) !== 58 && !
|
|
451
|
-
|
|
452
|
-
for (var s = [],
|
|
453
|
-
for (var l = 0; l < c.length; l++,
|
|
454
|
-
t.props[
|
|
449
|
+
for (var o = t.value, n = t.parent, i = t.column === n.column && t.line === n.line; n.type !== "rule"; )
|
|
450
|
+
if (n = n.parent, !n) return;
|
|
451
|
+
if (!(t.props.length === 1 && o.charCodeAt(0) !== 58 && !E2.get(n)) && !i) {
|
|
452
|
+
E2.set(t, !0);
|
|
453
|
+
for (var s = [], u = X1(o, s), c = n.props, w = 0, x = 0; w < u.length; w++)
|
|
454
|
+
for (var l = 0; l < c.length; l++, x++)
|
|
455
|
+
t.props[x] = s[w] ? u[w].replace(/&\f/g, c[l]) : c[l] + " " + u[w];
|
|
455
456
|
}
|
|
456
457
|
}
|
|
457
|
-
},
|
|
458
|
+
}, J1 = function(t) {
|
|
458
459
|
if (t.type === "decl") {
|
|
459
460
|
var o = t.value;
|
|
460
461
|
// charcode for l
|
|
@@ -462,8 +463,8 @@ var Wr = function(t, o, r) {
|
|
|
462
463
|
o.charCodeAt(2) === 98 && (t.return = "", t.value = "");
|
|
463
464
|
}
|
|
464
465
|
};
|
|
465
|
-
function
|
|
466
|
-
switch (
|
|
466
|
+
function de(e, t) {
|
|
467
|
+
switch (H1(e, t)) {
|
|
467
468
|
// color-adjust
|
|
468
469
|
case 5103:
|
|
469
470
|
return p + "print-" + e + e;
|
|
@@ -503,7 +504,7 @@ function Oe(e, t) {
|
|
|
503
504
|
case 4810:
|
|
504
505
|
case 6968:
|
|
505
506
|
case 2756:
|
|
506
|
-
return p + e +
|
|
507
|
+
return p + e + o2 + e + S + e + e;
|
|
507
508
|
// flex, flex-direction
|
|
508
509
|
case 6828:
|
|
509
510
|
case 4268:
|
|
@@ -513,41 +514,41 @@ function Oe(e, t) {
|
|
|
513
514
|
return p + e + S + "flex-" + e + e;
|
|
514
515
|
// align-items
|
|
515
516
|
case 5187:
|
|
516
|
-
return p + e +
|
|
517
|
+
return p + e + f(e, /(\w+).+(:[^]+)/, p + "box-$1$2" + S + "flex-$1$2") + e;
|
|
517
518
|
// align-self
|
|
518
519
|
case 5443:
|
|
519
|
-
return p + e + S + "flex-item-" +
|
|
520
|
+
return p + e + S + "flex-item-" + f(e, /flex-|-self/, "") + e;
|
|
520
521
|
// align-content
|
|
521
522
|
case 4675:
|
|
522
|
-
return p + e + S + "flex-line-pack" +
|
|
523
|
+
return p + e + S + "flex-line-pack" + f(e, /align-content|flex-|-self/, "") + e;
|
|
523
524
|
// flex-shrink
|
|
524
525
|
case 5548:
|
|
525
|
-
return p + e + S +
|
|
526
|
+
return p + e + S + f(e, "shrink", "negative") + e;
|
|
526
527
|
// flex-basis
|
|
527
528
|
case 5292:
|
|
528
|
-
return p + e + S +
|
|
529
|
+
return p + e + S + f(e, "basis", "preferred-size") + e;
|
|
529
530
|
// flex-grow
|
|
530
531
|
case 6060:
|
|
531
|
-
return p + "box-" +
|
|
532
|
+
return p + "box-" + f(e, "-grow", "") + p + e + S + f(e, "grow", "positive") + e;
|
|
532
533
|
// transition
|
|
533
534
|
case 4554:
|
|
534
|
-
return p +
|
|
535
|
+
return p + f(e, /([^-])(transform)/g, "$1" + p + "$2") + e;
|
|
535
536
|
// cursor
|
|
536
537
|
case 6187:
|
|
537
|
-
return
|
|
538
|
+
return f(f(f(e, /(zoom-|grab)/, p + "$1"), /(image-set)/, p + "$1"), e, "") + e;
|
|
538
539
|
// background, background-image
|
|
539
540
|
case 5495:
|
|
540
541
|
case 3959:
|
|
541
|
-
return
|
|
542
|
+
return f(e, /(image-set\([^]*)/, p + "$1$`$1");
|
|
542
543
|
// justify-content
|
|
543
544
|
case 4968:
|
|
544
|
-
return
|
|
545
|
+
return f(f(e, /(.+:)(flex-)?(.*)/, p + "box-pack:$3" + S + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + p + e + e;
|
|
545
546
|
// (margin|padding)-inline-(start|end)
|
|
546
547
|
case 4095:
|
|
547
548
|
case 3583:
|
|
548
549
|
case 4068:
|
|
549
550
|
case 2532:
|
|
550
|
-
return
|
|
551
|
+
return f(e, /(.+)-inline(.+)/, p + "$1$2") + e;
|
|
551
552
|
// (min|max)?(width|height|inline-size|block-size)
|
|
552
553
|
case 8116:
|
|
553
554
|
case 7059:
|
|
@@ -561,16 +562,16 @@ function Oe(e, t) {
|
|
|
561
562
|
case 5789:
|
|
562
563
|
case 5021:
|
|
563
564
|
case 4765:
|
|
564
|
-
if (
|
|
565
|
+
if (H(e) - 1 - t > 6) switch (I(e, t + 1)) {
|
|
565
566
|
// (m)ax-content, (m)in-content
|
|
566
567
|
case 109:
|
|
567
568
|
if (I(e, t + 4) !== 45) break;
|
|
568
569
|
// (f)ill-available, (f)it-content
|
|
569
570
|
case 102:
|
|
570
|
-
return
|
|
571
|
+
return f(e, /(.+:)(.+)-([^]+)/, "$1" + p + "$2-$3$1" + o2 + (I(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
571
572
|
// (s)tretch
|
|
572
573
|
case 115:
|
|
573
|
-
return ~
|
|
574
|
+
return ~u2(e, "stretch") ? de(f(e, "stretch", "fill-available"), t) + e : e;
|
|
574
575
|
}
|
|
575
576
|
break;
|
|
576
577
|
// position: sticky
|
|
@@ -578,13 +579,13 @@ function Oe(e, t) {
|
|
|
578
579
|
if (I(e, t + 1) !== 115) break;
|
|
579
580
|
// display: (flex|inline-flex)
|
|
580
581
|
case 6444:
|
|
581
|
-
switch (I(e,
|
|
582
|
+
switch (I(e, H(e) - 3 - (~u2(e, "!important") && 10))) {
|
|
582
583
|
// stic(k)y
|
|
583
584
|
case 107:
|
|
584
|
-
return
|
|
585
|
+
return f(e, ":", ":" + p) + e;
|
|
585
586
|
// (inline-)?fl(e)x
|
|
586
587
|
case 101:
|
|
587
|
-
return
|
|
588
|
+
return f(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + p + (I(e, 14) === 45 ? "inline-" : "") + "box$3$1" + p + "$2$3$1" + S + "$2box$3") + e;
|
|
588
589
|
}
|
|
589
590
|
break;
|
|
590
591
|
// writing-mode
|
|
@@ -592,85 +593,85 @@ function Oe(e, t) {
|
|
|
592
593
|
switch (I(e, t + 11)) {
|
|
593
594
|
// vertical-l(r)
|
|
594
595
|
case 114:
|
|
595
|
-
return p + e + S +
|
|
596
|
+
return p + e + S + f(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
|
|
596
597
|
// vertical-r(l)
|
|
597
598
|
case 108:
|
|
598
|
-
return p + e + S +
|
|
599
|
+
return p + e + S + f(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
|
|
599
600
|
// horizontal(-)tb
|
|
600
601
|
case 45:
|
|
601
|
-
return p + e + S +
|
|
602
|
+
return p + e + S + f(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
|
|
602
603
|
}
|
|
603
604
|
return p + e + S + e + e;
|
|
604
605
|
}
|
|
605
606
|
return e;
|
|
606
607
|
}
|
|
607
|
-
var
|
|
608
|
+
var et = function(t, o, n, i) {
|
|
608
609
|
if (t.length > -1 && !t.return) switch (t.type) {
|
|
609
|
-
case
|
|
610
|
-
t.return =
|
|
610
|
+
case m2:
|
|
611
|
+
t.return = de(t.value, t.length);
|
|
611
612
|
break;
|
|
612
|
-
case
|
|
613
|
-
return
|
|
614
|
-
value:
|
|
613
|
+
case se:
|
|
614
|
+
return O([U(t, {
|
|
615
|
+
value: f(t.value, "@", "@" + p)
|
|
615
616
|
})], i);
|
|
616
|
-
case
|
|
617
|
-
if (t.length) return
|
|
618
|
-
switch (
|
|
617
|
+
case g2:
|
|
618
|
+
if (t.length) return _1(t.props, function(s) {
|
|
619
|
+
switch (B1(s, /(::plac\w+|:read-\w+)/)) {
|
|
619
620
|
// :read-(only|write)
|
|
620
621
|
case ":read-only":
|
|
621
622
|
case ":read-write":
|
|
622
|
-
return
|
|
623
|
-
props: [
|
|
623
|
+
return O([U(t, {
|
|
624
|
+
props: [f(s, /:(read-\w+)/, ":" + o2 + "$1")]
|
|
624
625
|
})], i);
|
|
625
626
|
// :placeholder
|
|
626
627
|
case "::placeholder":
|
|
627
|
-
return
|
|
628
|
-
props: [
|
|
629
|
-
}),
|
|
630
|
-
props: [
|
|
631
|
-
}),
|
|
632
|
-
props: [
|
|
628
|
+
return O([U(t, {
|
|
629
|
+
props: [f(s, /:(plac\w+)/, ":" + p + "input-$1")]
|
|
630
|
+
}), U(t, {
|
|
631
|
+
props: [f(s, /:(plac\w+)/, ":" + o2 + "$1")]
|
|
632
|
+
}), U(t, {
|
|
633
|
+
props: [f(s, /:(plac\w+)/, S + "input-$1")]
|
|
633
634
|
})], i);
|
|
634
635
|
}
|
|
635
636
|
return "";
|
|
636
637
|
});
|
|
637
638
|
}
|
|
638
|
-
},
|
|
639
|
+
}, tt = [et], rt = function(t) {
|
|
639
640
|
var o = t.key;
|
|
640
641
|
if (o === "css") {
|
|
641
|
-
var
|
|
642
|
-
Array.prototype.forEach.call(
|
|
643
|
-
var
|
|
644
|
-
|
|
642
|
+
var n = document.querySelectorAll("style[data-emotion]:not([data-s])");
|
|
643
|
+
Array.prototype.forEach.call(n, function(d) {
|
|
644
|
+
var M = d.getAttribute("data-emotion");
|
|
645
|
+
M.indexOf(" ") !== -1 && (document.head.appendChild(d), d.setAttribute("data-s", ""));
|
|
645
646
|
});
|
|
646
647
|
}
|
|
647
|
-
var i = t.stylisPlugins ||
|
|
648
|
-
|
|
648
|
+
var i = t.stylisPlugins || tt, s = {}, u, c = [];
|
|
649
|
+
u = t.container || document.head, Array.prototype.forEach.call(
|
|
649
650
|
// this means we will ignore elements which don't have a space in them which
|
|
650
651
|
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
|
651
652
|
document.querySelectorAll('style[data-emotion^="' + o + ' "]'),
|
|
652
653
|
function(d) {
|
|
653
|
-
for (var
|
|
654
|
-
s[
|
|
654
|
+
for (var M = d.getAttribute("data-emotion").split(" "), v = 1; v < M.length; v++)
|
|
655
|
+
s[M[v]] = !0;
|
|
655
656
|
c.push(d);
|
|
656
657
|
}
|
|
657
658
|
);
|
|
658
|
-
var
|
|
659
|
+
var w, x = [K1, J1];
|
|
659
660
|
{
|
|
660
|
-
var l, a = [
|
|
661
|
+
var l, a = [U1, q1(function(d) {
|
|
661
662
|
l.insert(d);
|
|
662
|
-
})],
|
|
663
|
-
return
|
|
663
|
+
})], m = W1(x.concat(i, a)), k = function(M) {
|
|
664
|
+
return O(F1(M), m);
|
|
664
665
|
};
|
|
665
|
-
|
|
666
|
-
l =
|
|
666
|
+
w = function(M, v, y, T) {
|
|
667
|
+
l = y, k(M ? M + "{" + v.styles + "}" : v.styles), T && (h.inserted[v.name] = !0);
|
|
667
668
|
};
|
|
668
669
|
}
|
|
669
|
-
var
|
|
670
|
+
var h = {
|
|
670
671
|
key: o,
|
|
671
|
-
sheet: new
|
|
672
|
+
sheet: new T1({
|
|
672
673
|
key: o,
|
|
673
|
-
container:
|
|
674
|
+
container: u,
|
|
674
675
|
nonce: t.nonce,
|
|
675
676
|
speedy: t.speedy,
|
|
676
677
|
prepend: t.prepend,
|
|
@@ -679,68 +680,68 @@ var _r = function(t, o, r, i) {
|
|
|
679
680
|
nonce: t.nonce,
|
|
680
681
|
inserted: s,
|
|
681
682
|
registered: {},
|
|
682
|
-
insert:
|
|
683
|
+
insert: w
|
|
683
684
|
};
|
|
684
|
-
return
|
|
685
|
+
return h.sheet.hydrate(c), h;
|
|
685
686
|
};
|
|
686
|
-
const
|
|
687
|
-
const
|
|
687
|
+
const he = ({ children: e, viewport: t, containerProps: o }) => {
|
|
688
|
+
const n = q2(null), { theme: i } = s2(), [s, u] = G({
|
|
688
689
|
width: 0,
|
|
689
690
|
height: 0
|
|
690
691
|
});
|
|
691
|
-
|
|
692
|
-
const
|
|
693
|
-
const
|
|
694
|
-
if (!
|
|
695
|
-
const { width:
|
|
696
|
-
|
|
697
|
-
width:
|
|
698
|
-
height:
|
|
692
|
+
W(() => {
|
|
693
|
+
const h = Ie((M) => {
|
|
694
|
+
const v = M.at(0)?.target;
|
|
695
|
+
if (!v) return;
|
|
696
|
+
const { width: y, height: T } = v.getBoundingClientRect();
|
|
697
|
+
u(() => ({
|
|
698
|
+
width: y,
|
|
699
|
+
height: T
|
|
699
700
|
}));
|
|
700
|
-
}, 200), d = new ResizeObserver(
|
|
701
|
-
return
|
|
701
|
+
}, 200), d = new ResizeObserver(h);
|
|
702
|
+
return n.current && d.observe(n.current), () => d.disconnect();
|
|
702
703
|
}, []);
|
|
703
|
-
const c =
|
|
704
|
-
return /* @__PURE__ */
|
|
704
|
+
const c = b2(t?.width) ? t.width(s.width) : t?.width, w = b2(t?.height) ? t.height(s.height) : t?.height, x = y2(c) ? s.width / c : 1, l = y2(w) ? s.height / w : 1, a = Math.min(x, l, 1), m = (w ?? s.height / a) || 0, k = (c ?? s.width / a) || 0;
|
|
705
|
+
return /* @__PURE__ */ r("div", { ...o, className: B("tw:w-full tw:h-full tw:p-2 tw:bg-ic-ink-1s", o?.className), children: /* @__PURE__ */ r("div", { className: B("tw:w-full tw:h-full tw:overflow-hidden tw:relative"), ref: n, children: /* @__PURE__ */ r(
|
|
705
706
|
"div",
|
|
706
707
|
{
|
|
707
708
|
style: {
|
|
708
709
|
transform: `scale(${a})`,
|
|
709
|
-
width:
|
|
710
|
-
height:
|
|
711
|
-
marginLeft: (s.width -
|
|
712
|
-
marginTop: (s.height -
|
|
710
|
+
width: k,
|
|
711
|
+
height: m,
|
|
712
|
+
marginLeft: (s.width - k) / 2,
|
|
713
|
+
marginTop: (s.height - m) / 2
|
|
713
714
|
},
|
|
714
715
|
className: "tw:absolute",
|
|
715
|
-
children: /* @__PURE__ */
|
|
716
|
-
|
|
716
|
+
children: /* @__PURE__ */ r(
|
|
717
|
+
C1,
|
|
717
718
|
{
|
|
718
719
|
sandbox: "allow-same-origin allow-scripts allow-popups allow-presentation",
|
|
719
720
|
allow: "autoplay; encrypted-media",
|
|
720
721
|
width: c ?? "100%",
|
|
721
|
-
height:
|
|
722
|
-
children: /* @__PURE__ */
|
|
722
|
+
height: w ?? "100%",
|
|
723
|
+
children: /* @__PURE__ */ r(nt, { theme: i, children: e })
|
|
723
724
|
}
|
|
724
725
|
)
|
|
725
726
|
}
|
|
726
727
|
) }) });
|
|
727
|
-
},
|
|
728
|
-
const { document: o, window:
|
|
729
|
-
|
|
730
|
-
const
|
|
731
|
-
return
|
|
732
|
-
window.customElements.get(
|
|
728
|
+
}, nt = ({ children: e, theme: t }) => {
|
|
729
|
+
const { document: o, window: n } = p1(), [i, s] = G(!1), u = q2(window.customElements.define.bind(window.customElements));
|
|
730
|
+
W(() => {
|
|
731
|
+
const w = u.current;
|
|
732
|
+
return n && (window.customElements.define = function(x, l, a) {
|
|
733
|
+
window.customElements.get(x) || n.customElements.define(x, l, a), w(x, l, a);
|
|
733
734
|
}), o?.head.replaceWith(document.head.cloneNode(!0)), s(!0), () => {
|
|
734
|
-
window.customElements.define =
|
|
735
|
+
window.customElements.define = w;
|
|
735
736
|
};
|
|
736
|
-
}, [o,
|
|
737
|
-
const c =
|
|
737
|
+
}, [o, n]);
|
|
738
|
+
const c = rt({
|
|
738
739
|
key: "css",
|
|
739
740
|
container: o?.head
|
|
740
741
|
});
|
|
741
|
-
return i ? /* @__PURE__ */
|
|
742
|
-
/* @__PURE__ */
|
|
743
|
-
|
|
742
|
+
return i ? /* @__PURE__ */ r(V2, { children: /* @__PURE__ */ g(f1, { value: c, children: [
|
|
743
|
+
/* @__PURE__ */ r(
|
|
744
|
+
g1,
|
|
744
745
|
{
|
|
745
746
|
styles: {
|
|
746
747
|
".frame-content": {
|
|
@@ -749,61 +750,61 @@ const Ve = ({ children: e, viewport: t, containerProps: o }) => {
|
|
|
749
750
|
minHeight: "100vh",
|
|
750
751
|
justifyContent: "center"
|
|
751
752
|
},
|
|
752
|
-
[`& *[${
|
|
753
|
+
[`& *[${v2.DATA_NODE_DROP_TARGET}=${x2.True}]`]: {
|
|
753
754
|
outlineWidth: 1,
|
|
754
755
|
outlineStyle: "solid",
|
|
755
756
|
outlineOffset: -1,
|
|
756
757
|
outlineColor: "green"
|
|
757
758
|
},
|
|
758
|
-
[`& *[${
|
|
759
|
+
[`& *[${v2.DATA_NODE_DROP_TARGET_ERROR}=${x2.True}]`]: {
|
|
759
760
|
outlineColor: "red"
|
|
760
761
|
}
|
|
761
762
|
}
|
|
762
763
|
}
|
|
763
764
|
),
|
|
764
|
-
/* @__PURE__ */
|
|
765
|
+
/* @__PURE__ */ r(Ye, { theme: t, children: e })
|
|
765
766
|
] }) }) : null;
|
|
766
|
-
},
|
|
767
|
-
const { id: t, renderer: o } =
|
|
768
|
-
resolvedId:
|
|
769
|
-
renderer:
|
|
767
|
+
}, ot = ({ render: e }) => {
|
|
768
|
+
const { id: t, renderer: o } = xe((s) => ({
|
|
769
|
+
resolvedId: Ne(s),
|
|
770
|
+
renderer: ye(s).renderer
|
|
770
771
|
})), {
|
|
771
|
-
queryParams: { mode:
|
|
772
|
-
} =
|
|
773
|
-
isActive:
|
|
772
|
+
queryParams: { mode: n }
|
|
773
|
+
} = i2(), { isActive: i } = $((s, u) => ({
|
|
774
|
+
isActive: u.getEvent("selected").contains(t) && t !== D
|
|
774
775
|
}));
|
|
775
|
-
return o ?
|
|
776
|
-
i &&
|
|
777
|
-
/* @__PURE__ */
|
|
778
|
-
/* @__PURE__ */
|
|
776
|
+
return o ? Y2(o, { render: e }) : /* @__PURE__ */ g(n2, { children: [
|
|
777
|
+
i && n === "full" && /* @__PURE__ */ g(n2, { children: [
|
|
778
|
+
/* @__PURE__ */ r(Ee, {}),
|
|
779
|
+
/* @__PURE__ */ r(Se, {})
|
|
779
780
|
] }),
|
|
780
781
|
e
|
|
781
782
|
] });
|
|
782
783
|
};
|
|
783
|
-
L(
|
|
784
|
-
L(
|
|
785
|
-
L(
|
|
786
|
-
L(
|
|
787
|
-
L(
|
|
788
|
-
L(
|
|
789
|
-
L(
|
|
790
|
-
L(
|
|
791
|
-
L(
|
|
792
|
-
L(
|
|
793
|
-
L(
|
|
794
|
-
L(
|
|
795
|
-
L(
|
|
796
|
-
L(
|
|
797
|
-
L(
|
|
798
|
-
L(
|
|
799
|
-
L(
|
|
800
|
-
L(
|
|
801
|
-
L(
|
|
802
|
-
const
|
|
784
|
+
L(j2, { inspector: Te });
|
|
785
|
+
L(r2, { inspector: Ve });
|
|
786
|
+
L(A2, { inspector: je });
|
|
787
|
+
L(p2, { inspector: Ae });
|
|
788
|
+
L(R2, { inspector: Re });
|
|
789
|
+
L(d2, { inspector: He });
|
|
790
|
+
L(H2, { inspector: Be });
|
|
791
|
+
L(h2, { inspector: _e });
|
|
792
|
+
L(f2, { inspector: Pe });
|
|
793
|
+
L(B2, { inspector: Ze });
|
|
794
|
+
L(_2, { inspector: $e });
|
|
795
|
+
L(P2, { inspector: De });
|
|
796
|
+
L(Z2, { inspector: Oe });
|
|
797
|
+
L(ue, { inspector: Ge });
|
|
798
|
+
L($2, { inspector: Fe });
|
|
799
|
+
L(D2, { inspector: ze });
|
|
800
|
+
L(O2, { inspector: Ue });
|
|
801
|
+
L(G2, { inspector: We });
|
|
802
|
+
L(F2, { inspector: qe });
|
|
803
|
+
const S2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
803
804
|
<path d="M8 5L5 8L8 11" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
804
805
|
<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"/>
|
|
805
806
|
</svg>
|
|
806
|
-
`,
|
|
807
|
+
`, st = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
807
808
|
<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"/>
|
|
808
809
|
<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"/>
|
|
809
810
|
<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"/>
|
|
@@ -811,200 +812,697 @@ const Ne = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
811
812
|
<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"/>
|
|
812
813
|
<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"/>
|
|
813
814
|
</svg>
|
|
814
|
-
`,
|
|
815
|
+
`, it = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
815
816
|
<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"/>
|
|
816
817
|
<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"/>
|
|
817
818
|
</svg>
|
|
818
|
-
`,
|
|
819
|
+
`, ct = '<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>', at = () => {
|
|
819
820
|
const {
|
|
820
821
|
queryParams: { mode: e, screen: t },
|
|
821
822
|
setQueryParams: o
|
|
822
|
-
} =
|
|
823
|
-
enabled:
|
|
823
|
+
} = i2(), [n, i] = G(!1), { handlers: s } = s2(), { actions: u, canRedo: c, canUndo: w, query: x } = $((h, d) => ({
|
|
824
|
+
enabled: h.options.enabled,
|
|
824
825
|
canUndo: d.history.canUndo(),
|
|
825
826
|
canRedo: d.history.canRedo()
|
|
826
|
-
})), l = (
|
|
827
|
+
})), l = (h) => {
|
|
827
828
|
o({
|
|
828
|
-
screen:
|
|
829
|
+
screen: h
|
|
829
830
|
});
|
|
830
831
|
}, a = () => {
|
|
831
832
|
o({ mode: e === "full" ? "compact" : "full" });
|
|
832
|
-
},
|
|
833
|
+
}, m = () => {
|
|
833
834
|
s.close();
|
|
834
|
-
},
|
|
835
|
+
}, k = async () => {
|
|
835
836
|
try {
|
|
836
|
-
return
|
|
837
|
+
return u.selectNode(), s.submit(x.getSerializedNodes());
|
|
837
838
|
} catch {
|
|
838
839
|
} finally {
|
|
839
840
|
i(!1);
|
|
840
841
|
}
|
|
841
842
|
};
|
|
842
|
-
return /* @__PURE__ */
|
|
843
|
+
return /* @__PURE__ */ g(
|
|
843
844
|
"div",
|
|
844
845
|
{
|
|
845
|
-
className:
|
|
846
|
+
className: B(
|
|
846
847
|
"tw:flex tw:items-center tw:gap-4 tw:p-2 tw:justify-between tw:bg-ic-ink-6s tw:text-ic-white-6s tw:text-sm"
|
|
847
848
|
),
|
|
848
849
|
children: [
|
|
849
|
-
/* @__PURE__ */
|
|
850
|
-
/* @__PURE__ */
|
|
851
|
-
/* @__PURE__ */
|
|
852
|
-
/* @__PURE__ */
|
|
853
|
-
/* @__PURE__ */
|
|
854
|
-
/* @__PURE__ */
|
|
850
|
+
/* @__PURE__ */ g("div", { className: "tw:flex tw:items-center tw:gap-3", children: [
|
|
851
|
+
/* @__PURE__ */ r(A, { size: "32", onClick: m, children: /* @__PURE__ */ r(E, { source: ct }) }),
|
|
852
|
+
/* @__PURE__ */ r(x1, { onSelectionChange: l, value: t, children: k1.map(({ icon: h, size: d }) => /* @__PURE__ */ r(A, { value: d, children: /* @__PURE__ */ r(E, { source: h }) }, d)) }),
|
|
853
|
+
/* @__PURE__ */ g("div", { className: "tw:p-1 tw:flex tw:items-center tw:gap-2 tw:bg-ic-white-1s tw:rounded-lg", children: [
|
|
854
|
+
/* @__PURE__ */ r(A, { onClick: u.history.undo, disabled: !w, children: /* @__PURE__ */ r(E, { source: S2 }) }),
|
|
855
|
+
/* @__PURE__ */ r(A, { onClick: u.history.redo, disabled: !c, children: /* @__PURE__ */ r(E, { source: S2, className: "tw:rotate-180" }) })
|
|
855
856
|
] }),
|
|
856
|
-
/* @__PURE__ */
|
|
857
|
+
/* @__PURE__ */ r("div", { className: "tw:p-1 tw:flex tw:items-center tw:gap-2 tw:bg-ic-white-1s tw:rounded-lg", children: /* @__PURE__ */ r(A, { onClick: a, children: /* @__PURE__ */ r(E, { source: e === "full" ? it : st }) }) })
|
|
857
858
|
] }),
|
|
858
|
-
/* @__PURE__ */
|
|
859
|
+
/* @__PURE__ */ r("div", { className: "tw:flex tw:items-center tw:gap-3", children: /* @__PURE__ */ r(K2, { isLoading: n, onClick: k, children: "Save" }) })
|
|
859
860
|
]
|
|
860
861
|
}
|
|
861
862
|
);
|
|
862
|
-
},
|
|
863
|
+
}, lt = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
863
864
|
<path d="M20 19.9997L16.3763 16.376" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
864
865
|
<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"/>
|
|
865
866
|
</svg>
|
|
866
|
-
`,
|
|
867
|
+
`, dt = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
867
868
|
<path d="M15 6L9 12L15 18" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
868
869
|
</svg>
|
|
869
|
-
`,
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
870
|
+
`, ht = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
871
|
+
<rect x="3.00024" y="3" width="17.9997" height="17.9997" rx="2" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
872
|
+
<path d="M13.5 20.9998V12" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
873
|
+
<path d="M9.50011 11.9998V3" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
874
|
+
<path d="M20.9999 12H3.00024" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
875
|
+
</svg>
|
|
876
|
+
`, ut = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
877
|
+
<rect x="3" y="3" width="18" height="18" rx="2" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
878
|
+
<path d="M3 12H21" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
879
|
+
<path d="M12 21V3" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
880
|
+
</svg>
|
|
881
|
+
`, T2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
882
|
+
<path d="M3 6V18" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
883
|
+
<path d="M21 6V18" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
884
|
+
<path d="M6 21H18" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
885
|
+
<path d="M6 3H18" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
886
|
+
</svg>
|
|
887
|
+
`, wt = {
|
|
888
|
+
name: "Layout",
|
|
889
|
+
templates: [
|
|
890
|
+
{
|
|
891
|
+
name: "Container",
|
|
892
|
+
template: /* @__PURE__ */ r(C, { is: F2 }),
|
|
893
|
+
icon: { source: T2, height: 32 }
|
|
894
|
+
},
|
|
895
|
+
{
|
|
896
|
+
name: "Block",
|
|
897
|
+
template: /* @__PURE__ */ r(C, { is: D2 }),
|
|
898
|
+
icon: { source: T2, height: 32 }
|
|
899
|
+
},
|
|
900
|
+
{
|
|
901
|
+
name: "Grid",
|
|
902
|
+
template: /* @__PURE__ */ g(
|
|
903
|
+
C,
|
|
904
|
+
{
|
|
905
|
+
cols: 2,
|
|
906
|
+
sx: {
|
|
907
|
+
width: "100%",
|
|
908
|
+
columnGap: 8,
|
|
909
|
+
rowGap: 8,
|
|
910
|
+
paddingTop: 16,
|
|
911
|
+
paddingBottom: 16
|
|
912
|
+
},
|
|
913
|
+
is: R2,
|
|
914
|
+
children: [
|
|
915
|
+
/* @__PURE__ */ r(C, { is: d2, canvas: !0 }),
|
|
916
|
+
/* @__PURE__ */ r(C, { is: d2, canvas: !0 })
|
|
917
|
+
]
|
|
918
|
+
}
|
|
919
|
+
),
|
|
920
|
+
icon: { source: ut, height: 32 }
|
|
921
|
+
},
|
|
922
|
+
{
|
|
923
|
+
name: "Flex",
|
|
924
|
+
template: /* @__PURE__ */ g(C, { is: H2, sx: { columnGap: 8, rowGap: 8, paddingTop: 16, paddingBottom: 16 }, children: [
|
|
925
|
+
/* @__PURE__ */ r(
|
|
926
|
+
C,
|
|
927
|
+
{
|
|
928
|
+
sx: {
|
|
929
|
+
width: "40%"
|
|
930
|
+
},
|
|
931
|
+
is: h2,
|
|
932
|
+
canvas: !0
|
|
933
|
+
}
|
|
934
|
+
),
|
|
935
|
+
/* @__PURE__ */ r(
|
|
936
|
+
C,
|
|
937
|
+
{
|
|
938
|
+
sx: {
|
|
939
|
+
width: "60%"
|
|
940
|
+
},
|
|
941
|
+
is: h2,
|
|
942
|
+
canvas: !0
|
|
943
|
+
}
|
|
944
|
+
)
|
|
945
|
+
] }),
|
|
946
|
+
icon: { source: ht, height: 32 }
|
|
947
|
+
}
|
|
948
|
+
]
|
|
949
|
+
}, Ct = `<svg width="98" height="56" viewBox="0 0 98 56" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
950
|
+
<rect x="4" y="4" width="57" height="6" rx="3" fill="currentColor"></rect>
|
|
951
|
+
<rect x="2" y="4" width="57" height="6" rx="3" fill="currentColor"></rect>
|
|
952
|
+
<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>
|
|
953
|
+
<rect x="4" y="25" width="57" height="6" rx="3" fill="currentColor"></rect>
|
|
954
|
+
<rect x="2" y="25" width="57" height="6" rx="3" fill="currentColor"></rect>
|
|
955
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M86.1302 26.6172C86.3037 26.4609 86.5851 26.4609 86.7587 26.6172L90 29.5343L93.2413 26.6172C93.4149 26.4609 93.6963 26.4609 93.8698 26.6172C94.0434 26.7734 94.0434 27.0266 93.8698 27.1828L90.3143 30.3828C90.1407 30.5391 89.8593 30.5391 89.6857 30.3828L86.1302 27.1828C85.9566 27.0266 85.9566 26.7734 86.1302 26.6172Z" fill="currentColor"></path>
|
|
956
|
+
<rect x="4" y="46" width="57" height="6" rx="3" fill="currentColor"></rect>
|
|
957
|
+
<rect x="2" y="46" width="57" height="6" rx="3" fill="currentColor"></rect>
|
|
958
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M86.1302 47.6172C86.3037 47.4609 86.5851 47.4609 86.7587 47.6172L90 50.5343L93.2413 47.6172C93.4149 47.4609 93.6963 47.4609 93.8698 47.6172C94.0434 47.7734 94.0434 48.0266 93.8698 48.1828L90.3143 51.3828C90.1407 51.5391 89.8593 51.5391 89.6857 51.3828L86.1302 48.1828C85.9566 48.0266 85.9566 47.7734 86.1302 47.6172Z" fill="currentColor"></path>
|
|
959
|
+
</svg>`, pt = "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", ft = "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", gt = {
|
|
960
|
+
name: "Content list",
|
|
961
|
+
templates: [
|
|
962
|
+
{
|
|
963
|
+
name: "Accordion",
|
|
964
|
+
template: /* @__PURE__ */ r(
|
|
965
|
+
C,
|
|
966
|
+
{
|
|
967
|
+
is: O2,
|
|
968
|
+
accordionSummaryProps: {
|
|
969
|
+
sx: {
|
|
970
|
+
paddingTop: 8,
|
|
971
|
+
paddingBottom: 8
|
|
972
|
+
},
|
|
973
|
+
expandIcon: {
|
|
974
|
+
position: "right",
|
|
975
|
+
source: {
|
|
976
|
+
expanded: ft,
|
|
977
|
+
collapsed: pt
|
|
978
|
+
}
|
|
979
|
+
}
|
|
980
|
+
},
|
|
981
|
+
accordionContentProps: {
|
|
982
|
+
sx: {
|
|
983
|
+
paddingTop: 4,
|
|
984
|
+
paddingBottom: 12
|
|
985
|
+
}
|
|
986
|
+
},
|
|
987
|
+
openMode: "single",
|
|
988
|
+
children: Z(3).map((e) => /* @__PURE__ */ g(C, { defaultOpen: e === 0, is: we, children: [
|
|
989
|
+
/* @__PURE__ */ r(C, { is: Ce, children: /* @__PURE__ */ r(
|
|
990
|
+
C,
|
|
991
|
+
{
|
|
992
|
+
sizeVariant: "base",
|
|
993
|
+
is: r2,
|
|
994
|
+
dangerouslySetInnerHTML: { __html: `Accordion ${e + 1}` }
|
|
995
|
+
}
|
|
996
|
+
) }),
|
|
997
|
+
/* @__PURE__ */ r(C, { is: pe, children: /* @__PURE__ */ r(
|
|
998
|
+
C,
|
|
999
|
+
{
|
|
1000
|
+
sx: {
|
|
1001
|
+
paddingTop: 8,
|
|
1002
|
+
paddingBottom: 8
|
|
1003
|
+
},
|
|
1004
|
+
is: r2,
|
|
1005
|
+
dangerouslySetInnerHTML: {
|
|
1006
|
+
__html: `Content for accordion ${e + 1}`
|
|
1007
|
+
}
|
|
1008
|
+
}
|
|
1009
|
+
) })
|
|
1010
|
+
] }, e))
|
|
1011
|
+
}
|
|
1012
|
+
),
|
|
1013
|
+
icon: { source: Ct, height: 40 }
|
|
1014
|
+
}
|
|
1015
|
+
]
|
|
1016
|
+
}, C2 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1017
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M20.3998 10.6645L13.6661 15.4669C12.6691 16.1777 11.3309 16.1777 10.3339 15.4669L3.60018 10.6645C3.2236 10.3962 3 9.96237 3 9.5C3 9.03763 3.2236 8.60381 3.60018 8.33553L10.3339 3.5331C11.3309 2.8223 12.6691 2.8223 13.6661 3.5331L20.3998 8.33553C20.7764 8.60381 21 9.03763 21 9.5C21 9.96237 20.7764 10.3962 20.3998 10.6645Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1018
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M20.3998 15.6645L13.6661 20.4669C12.6691 21.1777 11.3309 21.1777 10.3339 20.4669L3.60018 15.6645C3.2236 15.3962 3 14.9624 3 14.5C3 14.0376 3.2236 13.6038 3.60018 13.3355L10.3339 8.5331C11.3309 7.8223 12.6691 7.8223 13.6661 8.5331L20.3998 13.3355C20.7764 13.6038 21 14.0376 21 14.5C21 14.9624 20.7764 15.3962 20.3998 15.6645Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1019
|
+
</svg>
|
|
1020
|
+
`, mt = {
|
|
1021
|
+
name: "Interactive",
|
|
1022
|
+
templates: [
|
|
1023
|
+
{
|
|
1024
|
+
name: "Carousel",
|
|
1025
|
+
template: /* @__PURE__ */ r(
|
|
1026
|
+
C,
|
|
1027
|
+
{
|
|
1028
|
+
is: p2,
|
|
1029
|
+
slidesPerView: 2,
|
|
1030
|
+
spaceBetween: 8,
|
|
1031
|
+
md: {
|
|
1032
|
+
slidesPerView: 3
|
|
1033
|
+
},
|
|
1034
|
+
lg: {
|
|
1035
|
+
slidesPerView: 4
|
|
1036
|
+
},
|
|
1037
|
+
children: Z(6).map((e) => /* @__PURE__ */ r(
|
|
1038
|
+
C,
|
|
1039
|
+
{
|
|
1040
|
+
custom: {
|
|
1041
|
+
displayName: `Slide ${e + 1}`
|
|
1042
|
+
},
|
|
1043
|
+
is: z2,
|
|
1044
|
+
canvas: !0
|
|
1045
|
+
},
|
|
1046
|
+
e
|
|
1047
|
+
))
|
|
1048
|
+
}
|
|
1049
|
+
),
|
|
1050
|
+
icon: { source: C2, height: 32 }
|
|
1051
|
+
},
|
|
1052
|
+
{
|
|
1053
|
+
name: "Marquee",
|
|
1054
|
+
template: /* @__PURE__ */ r(C, { is: f2, children: Z(10).map((e) => /* @__PURE__ */ r(
|
|
1055
|
+
C,
|
|
1056
|
+
{
|
|
1057
|
+
canvas: !0,
|
|
1058
|
+
custom: {
|
|
1059
|
+
displayName: `Marquee Item ${e + 1}`
|
|
1060
|
+
},
|
|
1061
|
+
is: U2
|
|
1062
|
+
},
|
|
1063
|
+
e
|
|
1064
|
+
)) }),
|
|
1065
|
+
icon: { source: C2, height: 32 }
|
|
1066
|
+
}
|
|
1067
|
+
]
|
|
1068
|
+
}, kt = `<svg height="24" width="24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 512 512" xml:space="preserve">
|
|
1069
|
+
<style type="text/css">
|
|
1070
|
+
.st0{fill:currentColor;}
|
|
1071
|
+
</style>
|
|
1072
|
+
<g>
|
|
1073
|
+
<path class="st0" d="M378.409,0H208.294h-13.176l-9.314,9.315L57.017,138.101l-9.314,9.315v13.176v265.513
|
|
1074
|
+
c0,47.36,38.528,85.896,85.895,85.896h244.811c47.361,0,85.888-38.535,85.888-85.896V85.896C464.297,38.528,425.77,0,378.409,0z
|
|
1075
|
+
M432.493,426.104c0,29.877-24.214,54.091-54.084,54.091H133.598c-29.877,0-54.091-24.214-54.091-54.091V160.592h83.717
|
|
1076
|
+
c24.884,0,45.07-20.179,45.07-45.071V31.804h170.114c29.87,0,54.084,24.214,54.084,54.091V426.104z"/>
|
|
1077
|
+
<path class="st0" d="M180.296,296.668l-4.846-0.67c-10.63-1.487-14.265-4.978-14.265-10.104c0-5.78,4.309-9.817,12.383-9.817
|
|
1078
|
+
c5.653,0,11.305,1.62,15.745,3.764c1.886,0.942,3.903,1.487,5.789,1.487c4.845,0,8.612-3.63,8.612-8.616
|
|
1079
|
+
c0-3.226-1.481-5.921-4.71-7.939c-5.384-3.372-15.476-6.06-25.572-6.06c-19.781,0-32.436,11.171-32.436,27.998
|
|
1080
|
+
c0,16.15,10.232,24.898,28.938,27.454l4.846,0.67c10.903,1.48,14.129,4.846,14.129,10.229c0,6.326-5.247,10.766-14.939,10.766
|
|
1081
|
+
c-6.727,0-12.111-1.745-19.645-5.921c-1.616-0.942-3.634-1.62-5.788-1.62c-5.115,0-8.885,3.91-8.885,8.756
|
|
1082
|
+
c0,3.226,1.616,6.326,4.713,8.344c6.054,3.764,15.878,7.8,28.798,7.8c23.823,0,35.934-12.24,35.934-28.795
|
|
1083
|
+
C209.097,307.84,199.273,299.356,180.296,296.668z"/>
|
|
1084
|
+
<path class="st0" d="M281.108,259.382c-4.577,0-7.939,2.43-9.556,7.674l-16.69,54.51h-0.402l-17.634-54.51
|
|
1085
|
+
c-1.745-5.244-4.978-7.674-9.551-7.674c-5.653,0-9.692,4.176-9.692,9.287c0,1.347,0.269,2.834,0.67,4.175l23.286,68.104
|
|
1086
|
+
c2.96,8.477,6.727,11.57,12.652,11.57c5.785,0,9.555-3.093,12.516-11.57l23.282-68.104c0.406-1.341,0.674-2.828,0.674-4.175
|
|
1087
|
+
C290.664,263.558,286.76,259.382,281.108,259.382z"/>
|
|
1088
|
+
<path class="st0" d="M364.556,300.836h-18.841c-5.114,0-8.344,3.1-8.344,7.806c0,4.713,3.23,7.814,8.344,7.814h6.193
|
|
1089
|
+
c0.538,0,0.803,0.258,0.803,0.803c0,3.505-0.265,6.598-1.075,9.014c-1.882,5.796-7.67,9.426-14.669,9.426
|
|
1090
|
+
c-7.943,0-12.921-3.903-14.939-10.096c-1.075-3.365-1.48-7.8-1.48-19.648c0-11.842,0.405-16.15,1.48-19.516
|
|
1091
|
+
c2.018-6.325,6.867-10.228,14.67-10.228c5.924,0,10.362,1.885,13.859,6.724c2.695,3.777,5.387,4.852,8.749,4.852
|
|
1092
|
+
c4.981,0,9.021-3.638,9.021-8.888c0-2.151-0.674-4.035-1.752-5.921c-4.842-8.204-15.071-14.264-29.877-14.264
|
|
1093
|
+
c-16.287,0-28.935,7.408-33.644,22.204c-2.022,6.466-2.559,11.576-2.559,25.038c0,13.454,0.538,18.573,2.559,25.031
|
|
1094
|
+
c4.709,14.802,17.357,22.204,33.644,22.204c16.286,0,28.668-8.204,33.374-22.881c1.617-5.111,2.29-12.645,2.29-20.716v-0.95
|
|
1095
|
+
C372.362,303.664,369.538,300.836,364.556,300.836z"/>
|
|
1096
|
+
</g>
|
|
1097
|
+
</svg>`, vt = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1098
|
+
<path d="M20.64 15.3735L16.5187 11.2522C16.1434 10.8769 15.5357 10.8769 15.1613 11.2522L11.04 15.3735" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1099
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M17.76 20.1736H6.24C4.64928 20.1736 3.36 18.8843 3.36 17.2936V5.77355C3.36 4.18283 4.64928 2.89355 6.24 2.89355H17.76C19.3507 2.89355 20.64 4.18283 20.64 5.77355V17.2936C20.64 18.8843 19.3507 20.1736 17.76 20.1736Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1100
|
+
<path d="M15.84 20.1734L9.79872 14.1321C9.42336 13.7567 8.81568 13.7567 8.44128 14.1321L3.78816 18.7852" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1101
|
+
<path d="M9.37456 8.39927C9.51515 8.53986 9.51515 8.7678 9.37456 8.90839C9.23397 9.04898 9.00603 9.04898 8.86544 8.90839C8.72485 8.7678 8.72485 8.53986 8.86544 8.39927C9.00603 8.25868 9.23397 8.25868 9.37456 8.39927" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1102
|
+
</svg>
|
|
1103
|
+
`, xt = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1104
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M10.2939 12L14.6229 9.5L10.2939 7V12Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1105
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M19.889 3.38867H4.111C3.497 3.38867 3 3.88567 3 4.49967V14.4997C3 15.1137 3.497 15.6107 4.111 15.6107H19.889C20.503 15.6107 21 15.1137 21 14.4997V4.49967C21 3.88567 20.503 3.38867 19.889 3.38867Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1106
|
+
<path d="M8.56066 18.9393C9.14645 19.5251 9.14645 20.4749 8.56066 21.0607C7.97487 21.6464 7.02513 21.6464 6.43934 21.0607C5.85355 20.4749 5.85355 19.5251 6.43934 18.9393C7.02513 18.3536 7.97487 18.3536 8.56066 18.9393" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1107
|
+
<path d="M21 20H9" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1108
|
+
<path d="M3 20H6" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1109
|
+
</svg>
|
|
1110
|
+
`, bt = {
|
|
1111
|
+
name: "Media",
|
|
1112
|
+
templates: [
|
|
1113
|
+
{
|
|
1114
|
+
name: "Image",
|
|
1115
|
+
template: /* @__PURE__ */ r(C, { src: "https://ucarecdn.com/ee6d5074-1640-4cc7-8933-47c8589c3dee/-/format/auto/", is: _2 }),
|
|
1116
|
+
icon: { source: vt, height: 32 }
|
|
1117
|
+
},
|
|
1118
|
+
{
|
|
1119
|
+
name: "Video",
|
|
1120
|
+
template: /* @__PURE__ */ r(
|
|
1121
|
+
A2,
|
|
1122
|
+
{
|
|
1123
|
+
sx: {
|
|
1124
|
+
aspectRatio: "16 / 9"
|
|
1125
|
+
},
|
|
1126
|
+
src: "https://cdn.shopify.com/videos/c/o/v/2cd3deb506b54b009063f7270ab5cf2e.mp4"
|
|
1127
|
+
}
|
|
1128
|
+
),
|
|
1129
|
+
icon: { source: xt, height: 32 }
|
|
1130
|
+
},
|
|
1131
|
+
{
|
|
1132
|
+
name: "Icon",
|
|
1133
|
+
template: /* @__PURE__ */ r(C, { source: C2, is: P2 }),
|
|
1134
|
+
icon: { source: kt, height: 32 }
|
|
1135
|
+
}
|
|
1136
|
+
]
|
|
1137
|
+
}, yt = `<svg width="24" height="24" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1138
|
+
<path d="M5.5 10V8.5M5.5 8.5V3.5C5.5 2.94772 5.94772 2.5 6.5 2.5C7.05228 2.5 7.5 2.94772 7.5 3.5V7.5H10.8529C11.7626 7.5 12.5 8.23741 12.5 9.14706V10C12.5 12.4853 10.4853 14.5 8 14.5H7.5C5.29086 14.5 3.5 12.7091 3.5 10.5C3.5 9.39543 4.39543 8.5 5.5 8.5ZM9 5.5H11C12.3807 5.5 13.5 4.38071 13.5 3C13.5 1.61929 12.3807 0.5 11 0.5H4C2.61929 0.5 1.5 1.61929 1.5 3C1.5 4.38071 2.61929 5.5 4 5.5" stroke="currentColor"/>
|
|
1139
|
+
</svg>`, Nt = `<svg fill="currentColor" width="120" height="120" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg">
|
|
1140
|
+
<path d="M76.26,37.7H73.57V64.63h2.69A3.75,3.75,0,0,0,80,60.89V41.44A3.75,3.75,0,0,0,76.26,37.7Z"/>
|
|
1141
|
+
<path d="M20,41.44V60.89a3.75,3.75,0,0,0,3.74,3.74h2.69V37.7H23.74A3.75,3.75,0,0,0,20,41.44Z"/>
|
|
1142
|
+
<path d="M66.46,34.33H33.54a3.75,3.75,0,0,0-3.74,3.74V64.26A3.75,3.75,0,0,0,33.54,68H66.46a3.75,3.75,0,0,0,3.74-3.74V38.07A3.75,3.75,0,0,0,66.46,34.33ZM60.89,61.27H37.77a1.21,1.21,0,0,1-1-1.83l7-12.19a.75.75,0,0,1,1.35,0l4.23,7.26a.81.81,0,0,0,1.35.07l3.44-4.94a.8.8,0,0,1,1.35,0l6.28,10A1,1,0,0,1,60.89,61.27Zm-.6-14.36a3.18,3.18,0,1,1,3.18-3.18A3.18,3.18,0,0,1,60.29,46.9Z"/>
|
|
1143
|
+
</svg>`, Mt = `<svg width="126" height="80" viewBox="0 0 126 80" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1144
|
+
<g clip-path="url(#clip0_10250_27631)">
|
|
1145
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M0.145174 28C-1.03957 28 -2 28.9604 -2 30.1452V49.8548C-2 51.0396 -1.03957 52 0.145173 52H33.8548C35.0396 52 36 51.0396 36 49.8548V30.1452C36 28.9604 35.0396 28 33.8548 28H0.145174ZM19.4204 37.493C19.2399 37.2145 18.9431 37.05 18.6263 37.05C18.3094 37.05 18.0086 37.2145 17.8321 37.493L14.3426 42.8761L13.2797 41.4797C13.0952 41.2392 12.8184 41.1 12.5296 41.1C12.2408 41.1 11.9601 41.2392 11.7796 41.4797L9.21258 44.8547C8.97995 45.1584 8.93583 45.5761 9.09626 45.9262C9.2567 46.2764 9.59362 46.5 9.96263 46.5H23.4394C23.7964 46.5 24.1253 46.2933 24.2897 45.96C24.4542 45.6267 24.4341 45.2259 24.2336 44.918L19.4204 37.493ZM10.9253 37.05C11.4359 37.05 11.9256 36.8366 12.2866 36.4569C12.6477 36.0771 12.8505 35.5621 12.8505 35.025C12.8505 34.4879 12.6477 33.9729 12.2866 33.5931C11.9256 33.2134 11.4359 33 10.9253 33C10.4146 33 9.92495 33.2134 9.56389 33.5931C9.20284 33.9729 9 34.4879 9 35.025C9 35.5621 9.20284 36.0771 9.56389 36.4569C9.92495 36.8366 10.4146 37.05 10.9253 37.05Z" fill="currentColor"></path>
|
|
1146
|
+
<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>
|
|
1147
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M48.1452 28C46.9604 28 46 28.9604 46 30.1452V49.8548C46 51.0396 46.9604 52 48.1452 52H81.8548C83.0396 52 84 51.0396 84 49.8548V30.1452C84 28.9604 83.0396 28 81.8548 28H48.1452ZM67.4204 37.493C67.2399 37.2145 66.9431 37.05 66.6263 37.05C66.3094 37.05 66.0086 37.2145 65.8321 37.493L62.3426 42.8761L61.2797 41.4797C61.0952 41.2392 60.8184 41.1 60.5296 41.1C60.2408 41.1 59.9601 41.2392 59.7796 41.4797L57.2126 44.8547C56.9799 45.1584 56.9358 45.5761 57.0963 45.9262C57.2567 46.2764 57.5936 46.5 57.9626 46.5H71.4394C71.7964 46.5 72.1253 46.2933 72.2897 45.96C72.4542 45.6267 72.4341 45.2259 72.2336 44.918L67.4204 37.493ZM58.9253 37.05C59.4359 37.05 59.9256 36.8366 60.2866 36.4569C60.6477 36.0771 60.8505 35.5621 60.8505 35.025C60.8505 34.4879 60.6477 33.9729 60.2866 33.5931C59.9256 33.2134 59.4359 33 58.9253 33C58.4146 33 57.9249 33.2134 57.5639 33.5931C57.2028 33.9729 57 34.4879 57 35.025C57 35.5621 57.2028 36.0771 57.5639 36.4569C57.9249 36.8366 58.4146 37.05 58.9253 37.05Z" fill="currentColor"></path>
|
|
1148
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M96.1452 28C94.9604 28 94 28.9604 94 30.1452V49.8548C94 51.0396 94.9604 52 96.1452 52H129.855C131.04 52 132 51.0396 132 49.8548V30.1452C132 28.9604 131.04 28 129.855 28H96.1452ZM115.42 37.493C115.24 37.2145 114.943 37.05 114.626 37.05C114.309 37.05 114.009 37.2145 113.832 37.493L110.343 42.8761L109.28 41.4797C109.095 41.2392 108.818 41.1 108.53 41.1C108.241 41.1 107.96 41.2392 107.78 41.4797L105.213 44.8547C104.98 45.1584 104.936 45.5761 105.096 45.9262C105.257 46.2764 105.594 46.5 105.963 46.5H119.439C119.796 46.5 120.125 46.2933 120.29 45.96C120.454 45.6267 120.434 45.2259 120.234 44.918L115.42 37.493ZM106.925 37.05C107.436 37.05 107.926 36.8366 108.287 36.4569C108.648 36.0771 108.851 35.5621 108.851 35.025C108.851 34.4879 108.648 33.9729 108.287 33.5931C107.926 33.2134 107.436 33 106.925 33C106.415 33 105.925 33.2134 105.564 33.5931C105.203 33.9729 105 34.4879 105 35.025C105 35.5621 105.203 36.0771 105.564 36.4569C105.925 36.8366 106.415 37.05 106.925 37.05Z" fill="url(#paint1_linear_10250_27631)"></path>
|
|
1149
|
+
</g>
|
|
1150
|
+
<defs>
|
|
1151
|
+
<linearGradient id="paint0_linear_10250_27631" x1="-0.190476" y1="40" x2="36" y2="40" gradientUnits="userSpaceOnUse">
|
|
1152
|
+
<stop offset="0.563469" stop-color="currentColor"></stop>
|
|
1153
|
+
</linearGradient>
|
|
1154
|
+
<linearGradient id="paint1_linear_10250_27631" x1="95.8095" y1="40" x2="132" y2="40" gradientUnits="userSpaceOnUse">
|
|
1155
|
+
<stop offset="0.254589" stop-color="currentColor"></stop>
|
|
1156
|
+
</linearGradient>
|
|
1157
|
+
<clipPath id="clip0_10250_27631">
|
|
1158
|
+
<path d="M0 3C0 1.34315 1.34315 0 3 0H123C124.657 0 126 1.34315 126 3V77C126 78.6569 124.657 80 123 80H3C1.34315 80 0 78.6569 0 77V3Z" fill="white"></path>
|
|
1159
|
+
</clipPath>
|
|
1160
|
+
</defs>
|
|
1161
|
+
</svg>`, Lt = `<svg width="96" height="48" viewBox="0 0 96 48" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1162
|
+
<rect x="8" y="30" width="32" height="2" fill="currentColor"></rect>
|
|
1163
|
+
<rect x="8" y="12" width="32" height="8" rx="4" fill="currentColor"></rect>
|
|
1164
|
+
<rect x="56" y="12" width="32" height="8" rx="4" fill="currentColor"></rect>
|
|
1165
|
+
</svg>`, It = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1166
|
+
<path d="M15.964 6.03575C17.345 4.65475 19.583 4.65475 20.964 6.03575V6.03575C22.345 7.41675 22.345 9.65475 20.964 11.0357L15.085 16.9148C13.704 18.2958 11.466 18.2958 10.085 16.9148V16.9148C8.70401 15.5338 8.70401 13.2958 10.085 11.9148L10.964 11.0357" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1167
|
+
<path d="M8.036 18.9636C6.655 20.3446 4.417 20.3446 3.036 18.9636V18.9636C1.655 17.5826 1.655 15.3446 3.036 13.9636L8.915 8.08458C10.296 6.70358 12.534 6.70358 13.915 8.08458V8.08458C15.296 9.46558 15.296 11.7036 13.915 13.0846L13 13.9996" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1168
|
+
</svg>
|
|
1169
|
+
`, Et = {
|
|
1170
|
+
name: "Interactive",
|
|
1171
|
+
templates: [
|
|
1172
|
+
{
|
|
1173
|
+
name: "Button",
|
|
1174
|
+
template: /* @__PURE__ */ r(
|
|
1175
|
+
C,
|
|
1176
|
+
{
|
|
1177
|
+
dangerouslySetInnerHTML: {
|
|
1178
|
+
__html: "Button"
|
|
1179
|
+
},
|
|
1180
|
+
is: B2
|
|
1181
|
+
}
|
|
1182
|
+
),
|
|
1183
|
+
icon: { source: yt, height: 32 }
|
|
1184
|
+
},
|
|
1185
|
+
{
|
|
1186
|
+
name: "Link",
|
|
1187
|
+
template: /* @__PURE__ */ r(C, { is: Z2 }),
|
|
1188
|
+
icon: { source: It, height: 32 }
|
|
1189
|
+
},
|
|
1190
|
+
{
|
|
1191
|
+
name: "Carousel",
|
|
1192
|
+
template: /* @__PURE__ */ r(
|
|
1193
|
+
C,
|
|
1194
|
+
{
|
|
1195
|
+
is: p2,
|
|
1196
|
+
slidesPerView: 2,
|
|
1197
|
+
spaceBetween: 8,
|
|
1198
|
+
md: {
|
|
1199
|
+
slidesPerView: 3
|
|
1200
|
+
},
|
|
1201
|
+
lg: {
|
|
1202
|
+
slidesPerView: 4
|
|
1203
|
+
},
|
|
1204
|
+
children: Z(6).map((e) => /* @__PURE__ */ r(C, { is: z2, canvas: !0 }, e))
|
|
1205
|
+
}
|
|
1206
|
+
),
|
|
1207
|
+
icon: { source: Nt, height: 32 }
|
|
1208
|
+
},
|
|
1209
|
+
{
|
|
1210
|
+
name: "Marquee",
|
|
1211
|
+
template: /* @__PURE__ */ r(C, { is: f2, children: Z(10).map((e) => /* @__PURE__ */ r(C, { canvas: !0, is: U2 }, e)) }),
|
|
1212
|
+
icon: { source: Mt, height: 32 }
|
|
1213
|
+
},
|
|
1214
|
+
{
|
|
1215
|
+
name: "Tabs",
|
|
1216
|
+
template: /* @__PURE__ */ g(
|
|
1217
|
+
C,
|
|
1218
|
+
{
|
|
1219
|
+
is: $2,
|
|
1220
|
+
sx: {
|
|
1221
|
+
width: "100%"
|
|
1222
|
+
},
|
|
1223
|
+
children: [
|
|
1224
|
+
/* @__PURE__ */ r(C, { is: fe, children: Z(3).map((e) => {
|
|
1225
|
+
const t = `Tab ${e + 1}`;
|
|
1226
|
+
return /* @__PURE__ */ r(
|
|
1227
|
+
C,
|
|
1228
|
+
{
|
|
1229
|
+
canvas: !0,
|
|
1230
|
+
is: ge,
|
|
1231
|
+
dangerouslySetInnerHTML: {
|
|
1232
|
+
__html: t
|
|
1233
|
+
}
|
|
1234
|
+
},
|
|
1235
|
+
e
|
|
1236
|
+
);
|
|
1237
|
+
}) }),
|
|
1238
|
+
/* @__PURE__ */ r(C, { is: me, children: Z(3).map((e) => /* @__PURE__ */ r(C, { canvas: !0, is: ke }, e)) })
|
|
1239
|
+
]
|
|
1240
|
+
}
|
|
1241
|
+
),
|
|
1242
|
+
icon: { source: Lt, height: 40 }
|
|
1243
|
+
}
|
|
1244
|
+
]
|
|
1245
|
+
}, St = `<svg fill="currentColor" width="24" height="24" viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg">
|
|
1246
|
+
<title>h</title>
|
|
1247
|
+
<path d="M25.264 3.993h-0.928c-0.442 0-0.8 0.358-0.801 0.8v9.952h-15.038v-9.952c-0-0.442-0.358-0.8-0.8-0.8h-0.928c-0.442 0-0.8 0.358-0.8 0.8v22.4c0 0.442 0.358 0.8 0.8 0.801h0.928c0.442-0.001 0.8-0.359 0.8-0.801v0-9.952h15.038v9.952c0.001 0.442 0.359 0.8 0.801 0.801h0.928c0.442-0.001 0.8-0.359 0.801-0.801v-22.4c-0.001-0.442-0.359-0.8-0.801-0.8h-0z"/>
|
|
1248
|
+
</svg>
|
|
1249
|
+
`, Tt = `<svg fill="currentColor" width="24" height="24" viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg">
|
|
1250
|
+
<title>p</title>
|
|
1251
|
+
<path d="M24.223 6.397c-1.592-1.495-3.741-2.413-6.104-2.413-0.137 0-0.274 0.003-0.41 0.009l0.019-0.001h-8.416c-0.442 0-0.8 0.358-0.8 0.8v22.4c0 0.442 0.358 0.8 0.8 0.801h0.928c0.442-0.001 0.8-0.359 0.8-0.801v0-6.561h6.688c0.117 0.005 0.253 0.009 0.391 0.009 2.363 0 4.512-0.918 6.108-2.417l-0.005 0.004c1.521-1.457 2.466-3.504 2.466-5.772 0-0.050-0-0.101-0.001-0.151l0 0.008c0.001-0.042 0.001-0.093 0.001-0.143 0-2.268-0.945-4.316-2.463-5.771l-0.003-0.003zM11.040 6.521h6.624c0.12-0.008 0.259-0.012 0.4-0.012 1.678 0 3.208 0.636 4.361 1.68l-0.006-0.005c1.054 0.998 1.709 2.407 1.709 3.969 0 0.056-0.001 0.112-0.003 0.168l0-0.008c0.001 0.047 0.002 0.101 0.002 0.156 0 1.569-0.656 2.985-1.709 3.988l-0.002 0.002c-1.145 1.047-2.676 1.689-4.357 1.689-0.14 0-0.278-0.004-0.416-0.013l0.019 0.001h-6.624z"/>
|
|
1252
|
+
</svg>
|
|
1253
|
+
`, Vt = {
|
|
1254
|
+
name: "Text",
|
|
1255
|
+
templates: [
|
|
1256
|
+
{
|
|
1257
|
+
name: "Heading",
|
|
1258
|
+
template: /* @__PURE__ */ r(
|
|
1259
|
+
C,
|
|
1260
|
+
{
|
|
1261
|
+
dangerouslySetInnerHTML: {
|
|
1262
|
+
__html: "Your heading text goes here"
|
|
1263
|
+
},
|
|
1264
|
+
as: "h2",
|
|
1265
|
+
sizeVariant: "4xl",
|
|
1266
|
+
md: { sizeVariant: "5xl" },
|
|
1267
|
+
is: j2
|
|
1268
|
+
}
|
|
1269
|
+
),
|
|
1270
|
+
icon: { source: St, height: 32 }
|
|
1271
|
+
},
|
|
1272
|
+
{
|
|
1273
|
+
name: "Paragraph",
|
|
1274
|
+
template: /* @__PURE__ */ r(
|
|
1275
|
+
C,
|
|
1276
|
+
{
|
|
1277
|
+
dangerouslySetInnerHTML: {
|
|
1278
|
+
__html: "Replace this text with your content"
|
|
1279
|
+
},
|
|
1280
|
+
is: r2
|
|
1281
|
+
}
|
|
1282
|
+
),
|
|
1283
|
+
icon: { source: Tt, height: 32 }
|
|
1284
|
+
}
|
|
1285
|
+
]
|
|
1286
|
+
}, jt = `<svg width="96" height="48" viewBox="0 0 96 48" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1287
|
+
<path opacity="0.96" d="M6.66797 28.1193C6.02592 28.1193 5.47905 27.9446 5.02734 27.5952C4.57564 27.2429 4.23047 26.733 3.99183 26.0653C3.7532 25.3949 3.63388 24.5852 3.63388 23.6364C3.63388 22.6932 3.7532 21.8878 3.99183 21.2202C4.23331 20.5497 4.5799 20.0384 5.03161 19.6861C5.48615 19.331 6.03161 19.1534 6.66797 19.1534C7.30433 19.1534 7.84837 19.331 8.30007 19.6861C8.75462 20.0384 9.10121 20.5497 9.33984 21.2202C9.58132 21.8878 9.70206 22.6932 9.70206 23.6364C9.70206 24.5852 9.58274 25.3949 9.34411 26.0653C9.10547 26.733 8.7603 27.2429 8.30859 27.5952C7.85689 27.9446 7.31001 28.1193 6.66797 28.1193ZM6.66797 27.1818C7.30433 27.1818 7.79865 26.875 8.15092 26.2614C8.5032 25.6477 8.67933 24.7727 8.67933 23.6364C8.67933 22.8807 8.59837 22.2372 8.43643 21.706C8.27734 21.1747 8.04723 20.7699 7.74609 20.4915C7.4478 20.2131 7.08842 20.0739 6.66797 20.0739C6.03729 20.0739 5.54439 20.3849 5.18928 21.0071C4.83416 21.6264 4.65661 22.5028 4.65661 23.6364C4.65661 24.392 4.73615 25.0341 4.89524 25.5625C5.05433 26.0909 5.28303 26.4929 5.58132 26.7685C5.88246 27.044 6.24467 27.1818 6.66797 27.1818ZM14.168 28.1193C13.5259 28.1193 12.979 27.9446 12.5273 27.5952C12.0756 27.2429 11.7305 26.733 11.4918 26.0653C11.2532 25.3949 11.1339 24.5852 11.1339 23.6364C11.1339 22.6932 11.2532 21.8878 11.4918 21.2202C11.7333 20.5497 12.0799 20.0384 12.5316 19.6861C12.9862 19.331 13.5316 19.1534 14.168 19.1534C14.8043 19.1534 15.3484 19.331 15.8001 19.6861C16.2546 20.0384 16.6012 20.5497 16.8398 21.2202C17.0813 21.8878 17.2021 22.6932 17.2021 23.6364C17.2021 24.5852 17.0827 25.3949 16.8441 26.0653C16.6055 26.733 16.2603 27.2429 15.8086 27.5952C15.3569 27.9446 14.81 28.1193 14.168 28.1193ZM14.168 27.1818C14.8043 27.1818 15.2987 26.875 15.6509 26.2614C16.0032 25.6477 16.1793 24.7727 16.1793 23.6364C16.1793 22.8807 16.0984 22.2372 15.9364 21.706C15.7773 21.1747 15.5472 20.7699 15.2461 20.4915C14.9478 20.2131 14.5884 20.0739 14.168 20.0739C13.5373 20.0739 13.0444 20.3849 12.6893 21.0071C12.3342 21.6264 12.1566 22.5028 12.1566 23.6364C12.1566 24.392 12.2362 25.0341 12.3952 25.5625C12.5543 26.0909 12.783 26.4929 13.0813 26.7685C13.3825 27.044 13.7447 27.1818 14.168 27.1818ZM22.9464 26.8835C22.7362 26.8835 22.5558 26.8082 22.4052 26.6577C22.2546 26.5071 22.1793 26.3267 22.1793 26.1165C22.1793 25.9062 22.2546 25.7259 22.4052 25.5753C22.5558 25.4247 22.7362 25.3494 22.9464 25.3494C23.1566 25.3494 23.337 25.4247 23.4876 25.5753C23.6381 25.7259 23.7134 25.9062 23.7134 26.1165C23.7134 26.2557 23.6779 26.3835 23.6069 26.5C23.5387 26.6165 23.4464 26.7102 23.3299 26.7812C23.2163 26.8494 23.0884 26.8835 22.9464 26.8835ZM22.9464 22.4688C22.7362 22.4688 22.5558 22.3935 22.4052 22.2429C22.2546 22.0923 22.1793 21.9119 22.1793 21.7017C22.1793 21.4915 22.2546 21.3111 22.4052 21.1605C22.5558 21.0099 22.7362 20.9347 22.9464 20.9347C23.1566 20.9347 23.337 21.0099 23.4876 21.1605C23.6381 21.3111 23.7134 21.4915 23.7134 21.7017C23.7134 21.8409 23.6779 21.9688 23.6069 22.0852C23.5387 22.2017 23.4464 22.2955 23.3299 22.3665C23.2163 22.4347 23.0884 22.4688 22.9464 22.4688ZM31.7227 28.1193C31.0806 28.1193 30.5337 27.9446 30.082 27.5952C29.6303 27.2429 29.2852 26.733 29.0465 26.0653C28.8079 25.3949 28.6886 24.5852 28.6886 23.6364C28.6886 22.6932 28.8079 21.8878 29.0465 21.2202C29.288 20.5497 29.6346 20.0384 30.0863 19.6861C30.5408 19.331 31.0863 19.1534 31.7227 19.1534C32.359 19.1534 32.9031 19.331 33.3548 19.6861C33.8093 20.0384 34.1559 20.5497 34.3945 21.2202C34.636 21.8878 34.7567 22.6932 34.7567 23.6364C34.7567 24.5852 34.6374 25.3949 34.3988 26.0653C34.1602 26.733 33.815 27.2429 33.3633 27.5952C32.9116 27.9446 32.3647 28.1193 31.7227 28.1193ZM31.7227 27.1818C32.359 27.1818 32.8533 26.875 33.2056 26.2614C33.5579 25.6477 33.734 24.7727 33.734 23.6364C33.734 22.8807 33.6531 22.2372 33.4911 21.706C33.332 21.1747 33.1019 20.7699 32.8008 20.4915C32.5025 20.2131 32.1431 20.0739 31.7227 20.0739C31.092 20.0739 30.5991 20.3849 30.244 21.0071C29.8888 21.6264 29.7113 22.5028 29.7113 23.6364C29.7113 24.392 29.7908 25.0341 29.9499 25.5625C30.109 26.0909 30.3377 26.4929 30.636 26.7685C30.9371 27.044 31.2994 27.1818 31.7227 27.1818ZM39.2227 28.1193C38.5806 28.1193 38.0337 27.9446 37.582 27.5952C37.1303 27.2429 36.7852 26.733 36.5465 26.0653C36.3079 25.3949 36.1886 24.5852 36.1886 23.6364C36.1886 22.6932 36.3079 21.8878 36.5465 21.2202C36.788 20.5497 37.1346 20.0384 37.5863 19.6861C38.0408 19.331 38.5863 19.1534 39.2227 19.1534C39.859 19.1534 40.4031 19.331 40.8548 19.6861C41.3093 20.0384 41.6559 20.5497 41.8945 21.2202C42.136 21.8878 42.2567 22.6932 42.2567 23.6364C42.2567 24.5852 42.1374 25.3949 41.8988 26.0653C41.6602 26.733 41.315 27.2429 40.8633 27.5952C40.4116 27.9446 39.8647 28.1193 39.2227 28.1193ZM39.2227 27.1818C39.859 27.1818 40.3533 26.875 40.7056 26.2614C41.0579 25.6477 41.234 24.7727 41.234 23.6364C41.234 22.8807 41.1531 22.2372 40.9911 21.706C40.832 21.1747 40.6019 20.7699 40.3008 20.4915C40.0025 20.2131 39.6431 20.0739 39.2227 20.0739C38.592 20.0739 38.0991 20.3849 37.744 21.0071C37.3888 21.6264 37.2113 22.5028 37.2113 23.6364C37.2113 24.392 37.2908 25.0341 37.4499 25.5625C37.609 26.0909 37.8377 26.4929 38.136 26.7685C38.4371 27.044 38.7994 27.1818 39.2227 27.1818ZM48.0011 26.8835C47.7908 26.8835 47.6104 26.8082 47.4599 26.6577C47.3093 26.5071 47.234 26.3267 47.234 26.1165C47.234 25.9062 47.3093 25.7259 47.4599 25.5753C47.6104 25.4247 47.7908 25.3494 48.0011 25.3494C48.2113 25.3494 48.3917 25.4247 48.5423 25.5753C48.6928 25.7259 48.7681 25.9062 48.7681 26.1165C48.7681 26.2557 48.7326 26.3835 48.6616 26.5C48.5934 26.6165 48.5011 26.7102 48.3846 26.7812C48.271 26.8494 48.1431 26.8835 48.0011 26.8835ZM48.0011 22.4688C47.7908 22.4688 47.6104 22.3935 47.4599 22.2429C47.3093 22.0923 47.234 21.9119 47.234 21.7017C47.234 21.4915 47.3093 21.3111 47.4599 21.1605C47.6104 21.0099 47.7908 20.9347 48.0011 20.9347C48.2113 20.9347 48.3917 21.0099 48.5423 21.1605C48.6928 21.3111 48.7681 21.4915 48.7681 21.7017C48.7681 21.8409 48.7326 21.9688 48.6616 22.0852C48.5934 22.2017 48.5011 22.2955 48.3846 22.3665C48.271 22.4347 48.1431 22.4688 48.0011 22.4688ZM56.7773 28.1193C56.1353 28.1193 55.5884 27.9446 55.1367 27.5952C54.685 27.2429 54.3398 26.733 54.1012 26.0653C53.8626 25.3949 53.7433 24.5852 53.7433 23.6364C53.7433 22.6932 53.8626 21.8878 54.1012 21.2202C54.3427 20.5497 54.6893 20.0384 55.141 19.6861C55.5955 19.331 56.141 19.1534 56.7773 19.1534C57.4137 19.1534 57.9577 19.331 58.4094 19.6861C58.864 20.0384 59.2106 20.5497 59.4492 21.2202C59.6907 21.8878 59.8114 22.6932 59.8114 23.6364C59.8114 24.5852 59.6921 25.3949 59.4535 26.0653C59.2148 26.733 58.8697 27.2429 58.418 27.5952C57.9663 27.9446 57.4194 28.1193 56.7773 28.1193ZM56.7773 27.1818C57.4137 27.1818 57.908 26.875 58.2603 26.2614C58.6126 25.6477 58.7887 24.7727 58.7887 23.6364C58.7887 22.8807 58.7077 22.2372 58.5458 21.706C58.3867 21.1747 58.1566 20.7699 57.8555 20.4915C57.5572 20.2131 57.1978 20.0739 56.7773 20.0739C56.1467 20.0739 55.6538 20.3849 55.2987 21.0071C54.9435 21.6264 54.766 22.5028 54.766 23.6364C54.766 24.392 54.8455 25.0341 55.0046 25.5625C55.1637 26.0909 55.3924 26.4929 55.6907 26.7685C55.9918 27.044 56.354 27.1818 56.7773 27.1818ZM64.2773 28.1193C63.6353 28.1193 63.0884 27.9446 62.6367 27.5952C62.185 27.2429 61.8398 26.733 61.6012 26.0653C61.3626 25.3949 61.2433 24.5852 61.2433 23.6364C61.2433 22.6932 61.3626 21.8878 61.6012 21.2202C61.8427 20.5497 62.1893 20.0384 62.641 19.6861C63.0955 19.331 63.641 19.1534 64.2773 19.1534C64.9137 19.1534 65.4577 19.331 65.9094 19.6861C66.364 20.0384 66.7106 20.5497 66.9492 21.2202C67.1907 21.8878 67.3114 22.6932 67.3114 23.6364C67.3114 24.5852 67.1921 25.3949 66.9535 26.0653C66.7148 26.733 66.3697 27.2429 65.918 27.5952C65.4663 27.9446 64.9194 28.1193 64.2773 28.1193ZM64.2773 27.1818C64.9137 27.1818 65.408 26.875 65.7603 26.2614C66.1126 25.6477 66.2887 24.7727 66.2887 23.6364C66.2887 22.8807 66.2077 22.2372 66.0458 21.706C65.8867 21.1747 65.6566 20.7699 65.3555 20.4915C65.0572 20.2131 64.6978 20.0739 64.2773 20.0739C63.6467 20.0739 63.1538 20.3849 62.7987 21.0071C62.4435 21.6264 62.266 22.5028 62.266 23.6364C62.266 24.392 62.3455 25.0341 62.5046 25.5625C62.6637 26.0909 62.8924 26.4929 63.1907 26.7685C63.4918 27.044 63.854 27.1818 64.2773 27.1818ZM73.0558 26.8835C72.8455 26.8835 72.6651 26.8082 72.5146 26.6577C72.364 26.5071 72.2887 26.3267 72.2887 26.1165C72.2887 25.9062 72.364 25.7259 72.5146 25.5753C72.6651 25.4247 72.8455 25.3494 73.0558 25.3494C73.266 25.3494 73.4464 25.4247 73.5969 25.5753C73.7475 25.7259 73.8228 25.9062 73.8228 26.1165C73.8228 26.2557 73.7873 26.3835 73.7163 26.5C73.6481 26.6165 73.5558 26.7102 73.4393 26.7812C73.3256 26.8494 73.1978 26.8835 73.0558 26.8835ZM73.0558 22.4688C72.8455 22.4688 72.6651 22.3935 72.5146 22.2429C72.364 22.0923 72.2887 21.9119 72.2887 21.7017C72.2887 21.4915 72.364 21.3111 72.5146 21.1605C72.6651 21.0099 72.8455 20.9347 73.0558 20.9347C73.266 20.9347 73.4464 21.0099 73.5969 21.1605C73.7475 21.3111 73.8228 21.4915 73.8228 21.7017C73.8228 21.8409 73.7873 21.9688 73.7163 22.0852C73.6481 22.2017 73.5558 22.2955 73.4393 22.3665C73.3256 22.4347 73.1978 22.4688 73.0558 22.4688ZM81.832 28.1193C81.19 28.1193 80.6431 27.9446 80.1914 27.5952C79.7397 27.2429 79.3945 26.733 79.1559 26.0653C78.9173 25.3949 78.7979 24.5852 78.7979 23.6364C78.7979 22.6932 78.9173 21.8878 79.1559 21.2202C79.3974 20.5497 79.744 20.0384 80.1957 19.6861C80.6502 19.331 81.1957 19.1534 81.832 19.1534C82.4684 19.1534 83.0124 19.331 83.4641 19.6861C83.9187 20.0384 84.2653 20.5497 84.5039 21.2202C84.7454 21.8878 84.8661 22.6932 84.8661 23.6364C84.8661 24.5852 84.7468 25.3949 84.5082 26.0653C84.2695 26.733 83.9244 27.2429 83.4727 27.5952C83.021 27.9446 82.4741 28.1193 81.832 28.1193ZM81.832 27.1818C82.4684 27.1818 82.9627 26.875 83.315 26.2614C83.6673 25.6477 83.8434 24.7727 83.8434 23.6364C83.8434 22.8807 83.7624 22.2372 83.6005 21.706C83.4414 21.1747 83.2113 20.7699 82.9102 20.4915C82.6119 20.2131 82.2525 20.0739 81.832 20.0739C81.2013 20.0739 80.7085 20.3849 80.3533 21.0071C79.9982 21.6264 79.8207 22.5028 79.8207 23.6364C79.8207 24.392 79.9002 25.0341 80.0593 25.5625C80.2184 26.0909 80.4471 26.4929 80.7454 26.7685C81.0465 27.044 81.4087 27.1818 81.832 27.1818ZM89.332 28.1193C88.69 28.1193 88.1431 27.9446 87.6914 27.5952C87.2397 27.2429 86.8945 26.733 86.6559 26.0653C86.4173 25.3949 86.2979 24.5852 86.2979 23.6364C86.2979 22.6932 86.4173 21.8878 86.6559 21.2202C86.8974 20.5497 87.244 20.0384 87.6957 19.6861C88.1502 19.331 88.6957 19.1534 89.332 19.1534C89.9684 19.1534 90.5124 19.331 90.9641 19.6861C91.4187 20.0384 91.7653 20.5497 92.0039 21.2202C92.2454 21.8878 92.3661 22.6932 92.3661 23.6364C92.3661 24.5852 92.2468 25.3949 92.0082 26.0653C91.7695 26.733 91.4244 27.2429 90.9727 27.5952C90.521 27.9446 89.9741 28.1193 89.332 28.1193ZM89.332 27.1818C89.9684 27.1818 90.4627 26.875 90.815 26.2614C91.1673 25.6477 91.3434 24.7727 91.3434 23.6364C91.3434 22.8807 91.2624 22.2372 91.1005 21.706C90.9414 21.1747 90.7113 20.7699 90.4102 20.4915C90.1119 20.2131 89.7525 20.0739 89.332 20.0739C88.7013 20.0739 88.2085 20.3849 87.8533 21.0071C87.4982 21.6264 87.3207 22.5028 87.3207 23.6364C87.3207 24.392 87.4002 25.0341 87.5593 25.5625C87.7184 26.0909 87.9471 26.4929 88.2454 26.7685C88.5465 27.044 88.9087 27.1818 89.332 27.1818Z" fill="#F9F9F9"/>
|
|
1288
|
+
</svg>
|
|
1289
|
+
`, At = {
|
|
1290
|
+
name: "Utilities",
|
|
1291
|
+
templates: [
|
|
1292
|
+
{
|
|
1293
|
+
name: "Countdown timer",
|
|
1294
|
+
template: /* @__PURE__ */ r(
|
|
1295
|
+
C,
|
|
1296
|
+
{
|
|
1297
|
+
is: G2,
|
|
1298
|
+
omit: {
|
|
1299
|
+
days: !0
|
|
1300
|
+
},
|
|
1301
|
+
date: b1().add(1, "week").toDate(),
|
|
1302
|
+
sx: {
|
|
1303
|
+
justifyContent: "center",
|
|
1304
|
+
columnGap: 8,
|
|
1305
|
+
rowGap: 8,
|
|
1306
|
+
sm: {
|
|
1307
|
+
paddingLeft: 24,
|
|
1308
|
+
paddingRight: 24
|
|
1309
|
+
}
|
|
1310
|
+
},
|
|
1311
|
+
unitItemProps: {
|
|
1312
|
+
sx: {
|
|
1313
|
+
backgroundColor: N2("neutral.100"),
|
|
1314
|
+
borderTopLeftRadius: 8,
|
|
1315
|
+
borderTopRightRadius: 8,
|
|
1316
|
+
borderBottomLeftRadius: 8,
|
|
1317
|
+
borderBottomRightRadius: 8,
|
|
1318
|
+
paddingTop: 6,
|
|
1319
|
+
paddingRight: 16,
|
|
1320
|
+
paddingBottom: 6,
|
|
1321
|
+
paddingLeft: 16
|
|
1322
|
+
}
|
|
1323
|
+
},
|
|
1324
|
+
timeProps: {
|
|
1325
|
+
sx: {
|
|
1326
|
+
fontWeight: 600
|
|
1327
|
+
},
|
|
1328
|
+
sizeVariant: "xl",
|
|
1329
|
+
md: {
|
|
1330
|
+
sizeVariant: "2xl"
|
|
1331
|
+
}
|
|
1332
|
+
},
|
|
1333
|
+
captionProps: {
|
|
1334
|
+
sx: {
|
|
1335
|
+
color: N2("neutral.500")
|
|
1336
|
+
}
|
|
1337
|
+
},
|
|
1338
|
+
units: [
|
|
1339
|
+
{
|
|
1340
|
+
value: "days",
|
|
1341
|
+
caption: "Days"
|
|
1342
|
+
},
|
|
1343
|
+
{
|
|
1344
|
+
value: "hours",
|
|
1345
|
+
caption: "Hours"
|
|
1346
|
+
},
|
|
1347
|
+
{
|
|
1348
|
+
value: "minutes",
|
|
1349
|
+
caption: "Minutes"
|
|
1350
|
+
},
|
|
1351
|
+
{
|
|
1352
|
+
value: "seconds",
|
|
1353
|
+
caption: "Seconds"
|
|
1354
|
+
}
|
|
1355
|
+
]
|
|
1356
|
+
}
|
|
1357
|
+
),
|
|
1358
|
+
icon: { source: jt, height: 48 }
|
|
1359
|
+
}
|
|
1360
|
+
]
|
|
1361
|
+
}, Rt = [
|
|
1362
|
+
Vt,
|
|
1363
|
+
wt,
|
|
1364
|
+
bt,
|
|
1365
|
+
Et,
|
|
1366
|
+
mt,
|
|
1367
|
+
gt,
|
|
1368
|
+
At
|
|
1369
|
+
], Ht = '<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>', Bt = {
|
|
1370
|
+
name: "Basics",
|
|
1371
|
+
icon: { source: Ht },
|
|
1372
|
+
renderer: () => /* @__PURE__ */ r(Pt, { elementGroups: Rt })
|
|
1373
|
+
}, _t = ({ groups: e }) => {
|
|
1374
|
+
const t = [Bt, ...e ?? []];
|
|
1375
|
+
return /* @__PURE__ */ g("div", { className: "tw:flex tw:flex-col tw:h-full", children: [
|
|
1376
|
+
/* @__PURE__ */ r("div", { className: "tw:flex tw:items-center tw:p-2 tw:gap-3", children: /* @__PURE__ */ r(J2, { fullWidth: !0, placeholder: "Search...", prefix: /* @__PURE__ */ r(E, { source: lt }) }) }),
|
|
1377
|
+
/* @__PURE__ */ r(re, { className: "tw:flex-1 tw:py-2 tw:border-t tw:border-ic-white-1s", children: t.map((o, n) => /* @__PURE__ */ r($t, { group: o }, n)) })
|
|
1378
|
+
] });
|
|
1379
|
+
}, Pt = ({ elementGroups: e }) => /* @__PURE__ */ r("div", { className: "tw:flex tw:flex-col tw:gap-2", children: e.map((t, o) => /* @__PURE__ */ r(Zt, { group: t }, o)) }), Zt = ({ group: e }) => {
|
|
1380
|
+
const [t, o] = te(!0), { actions: n, connectors: i } = $();
|
|
1381
|
+
return /* @__PURE__ */ g("div", { className: "tw:flex tw:flex-col tw:text-sm", children: [
|
|
1382
|
+
/* @__PURE__ */ r(K2, { onClick: o, className: "tw:bg-transparent tw:px-0", children: /* @__PURE__ */ g("div", { className: "tw:flex tw:items-center tw:justify-between tw:flex-1 tw:text-sm", children: [
|
|
885
1383
|
e.name,
|
|
886
|
-
/* @__PURE__ */
|
|
1384
|
+
/* @__PURE__ */ r(
|
|
887
1385
|
E,
|
|
888
1386
|
{
|
|
889
|
-
source:
|
|
890
|
-
className:
|
|
1387
|
+
source: ne,
|
|
1388
|
+
className: B("tw:transition-transform", {
|
|
891
1389
|
"tw:rotate-180": !t
|
|
892
1390
|
})
|
|
893
1391
|
}
|
|
894
1392
|
)
|
|
895
1393
|
] }) }),
|
|
896
|
-
/* @__PURE__ */
|
|
897
|
-
/* @__PURE__ */
|
|
1394
|
+
/* @__PURE__ */ r(Je, { open: t, children: /* @__PURE__ */ r("div", { className: "tw:py-2 tw:grid tw:grid-cols-2 tw:gap-4", children: e.templates?.map((s, u) => /* @__PURE__ */ g("div", { className: "tw:space-y-1", children: [
|
|
1395
|
+
/* @__PURE__ */ r(
|
|
898
1396
|
"div",
|
|
899
1397
|
{
|
|
900
|
-
className:
|
|
1398
|
+
className: B(
|
|
901
1399
|
"tw:bg-ic-ink-6s tw:relative tw:transition-transform tw:rounded-lg tw:hover:scale-105 tw:pointer-events-auto tw:aspect-video tw:overflow-hidden",
|
|
902
1400
|
"tw:cursor-grabbing tw:flex tw:flex-col tw:gap-1 tw:items-center tw:justify-center tw:p-1 tw:opacity-100 tw:text-ic-white-5s",
|
|
903
1401
|
"tw:after:absolute tw:after:inset-0 tw:after:content-empty tw:after:bg-ic-white-1s"
|
|
904
1402
|
),
|
|
905
1403
|
ref: (c) => {
|
|
906
1404
|
c && i.create(c, s.template, {
|
|
907
|
-
onCreate(
|
|
908
|
-
(typeof s.autoFocus == "function" ? s.autoFocus(
|
|
1405
|
+
onCreate(w) {
|
|
1406
|
+
(typeof s.autoFocus == "function" ? s.autoFocus(w) : s.autoFocus) && n.selectNode(w.rootNodeId), s.onCreate?.(w);
|
|
909
1407
|
}
|
|
910
1408
|
});
|
|
911
1409
|
},
|
|
912
|
-
children: /* @__PURE__ */
|
|
1410
|
+
children: s.icon && /* @__PURE__ */ r(e1, { width: void 0, height: void 0, ...s.icon })
|
|
913
1411
|
}
|
|
914
1412
|
),
|
|
915
|
-
/* @__PURE__ */
|
|
916
|
-
] },
|
|
1413
|
+
/* @__PURE__ */ r("p", { className: "tw:text-xs tw:mx-auto tw:text-center", children: s.name })
|
|
1414
|
+
] }, u)) }) })
|
|
917
1415
|
] });
|
|
918
|
-
},
|
|
919
|
-
const [t, o] =
|
|
1416
|
+
}, $t = ({ group: e }) => {
|
|
1417
|
+
const [t, o] = G(!1), { refs: n, floatingStyles: i, context: s } = o1({
|
|
920
1418
|
open: t,
|
|
921
1419
|
onOpenChange: o,
|
|
922
1420
|
placement: "right-start",
|
|
923
1421
|
middleware: [
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
apply({ elements:
|
|
927
|
-
const
|
|
928
|
-
zIndex: `${
|
|
929
|
-
height: `${
|
|
1422
|
+
i1(),
|
|
1423
|
+
c1({
|
|
1424
|
+
apply({ elements: k }) {
|
|
1425
|
+
const h = {
|
|
1426
|
+
zIndex: `${Qe}`,
|
|
1427
|
+
height: `${k.reference.getBoundingClientRect().height}px`
|
|
930
1428
|
};
|
|
931
|
-
Object.assign(
|
|
1429
|
+
Object.assign(k.floating.style, h);
|
|
932
1430
|
}
|
|
933
1431
|
})
|
|
934
1432
|
],
|
|
935
|
-
whileElementsMounted:
|
|
1433
|
+
whileElementsMounted: s1
|
|
936
1434
|
});
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
}, [
|
|
940
|
-
const
|
|
941
|
-
return /* @__PURE__ */
|
|
942
|
-
/* @__PURE__ */
|
|
1435
|
+
W(() => {
|
|
1436
|
+
n.setPositionReference(document.querySelector("aside"));
|
|
1437
|
+
}, [n]);
|
|
1438
|
+
const u = a1(s, { move: !1, handleClose: l1() }), c = d1(s), w = h1(s), x = u1(s), { getReferenceProps: l, getFloatingProps: a } = w1([u, c, w, x]), m = e.renderer;
|
|
1439
|
+
return /* @__PURE__ */ g(n2, { children: [
|
|
1440
|
+
/* @__PURE__ */ g(
|
|
943
1441
|
"button",
|
|
944
1442
|
{
|
|
945
|
-
className:
|
|
1443
|
+
className: B(
|
|
946
1444
|
"tw:w-full tw:text-left tw:flex tw:items-center tw:text-ic-white-5s tw:gap-2 tw:p-2 tw:rounded-lg",
|
|
947
1445
|
"tw:hover:text-ic-white-6s tw:hover:bg-ic-white-1s tw:hover:font-medium"
|
|
948
1446
|
),
|
|
949
1447
|
...l(),
|
|
950
|
-
ref:
|
|
1448
|
+
ref: n.setReference,
|
|
951
1449
|
children: [
|
|
952
|
-
/* @__PURE__ */
|
|
953
|
-
/* @__PURE__ */
|
|
954
|
-
/* @__PURE__ */
|
|
1450
|
+
e.icon && /* @__PURE__ */ r("div", { className: "tw:bg-ic-white-1s tw:p-1.5 tw:rounded-lg", children: /* @__PURE__ */ r(E, { ...e.icon }) }),
|
|
1451
|
+
/* @__PURE__ */ r("span", { className: "tw:flex-1 tw:truncate", children: e.name }),
|
|
1452
|
+
/* @__PURE__ */ r(E, { className: "tw:rotate-180", source: dt })
|
|
955
1453
|
]
|
|
956
1454
|
}
|
|
957
1455
|
),
|
|
958
|
-
t && /* @__PURE__ */
|
|
959
|
-
/* @__PURE__ */
|
|
960
|
-
/* @__PURE__ */
|
|
1456
|
+
t && /* @__PURE__ */ r(ee, { children: /* @__PURE__ */ r("div", { style: i, ...a(), ref: n.setFloating, children: /* @__PURE__ */ g("div", { className: "tw:h-full tw:flex tw:flex-col tw:border-l tw:border-t tw:border-ic-white-2s tw:bg-ic-ink-6s tw:text-ic-white-6s tw:text-sm", children: [
|
|
1457
|
+
/* @__PURE__ */ r("div", { className: "tw:h-12 tw:px-2 tw:flex tw:items-center", children: /* @__PURE__ */ r("h6", { className: "tw:font-medium", children: e.name }) }),
|
|
1458
|
+
/* @__PURE__ */ r(re, { className: "tw:flex-1 tw:px-3", children: m ? /* @__PURE__ */ r(m, {}) : /* @__PURE__ */ r("div", { className: "tw:flex tw:flex-col tw:gap-4", children: e.templates?.map((k, h) => /* @__PURE__ */ m1(Dt, { ...k, key: h })) }) })
|
|
961
1459
|
] }) }) })
|
|
962
1460
|
] });
|
|
963
|
-
},
|
|
964
|
-
const [,
|
|
1461
|
+
}, Dt = ({ template: e, autoFocus: t = !0, onCreate: o }) => {
|
|
1462
|
+
const [, n] = G(!1), i = s2(), { actions: s, connectors: u, resolver: c, query: w } = $((l) => ({
|
|
965
1463
|
resolver: l.options.resolver
|
|
966
|
-
})),
|
|
1464
|
+
})), x = G(() => {
|
|
967
1465
|
const l = typeof e == "function" ? e() : e;
|
|
968
1466
|
let a;
|
|
969
|
-
"rootNodeId" in l ? a = l : a =
|
|
970
|
-
const { rootNodeId:
|
|
971
|
-
return Object.entries(
|
|
972
|
-
const
|
|
973
|
-
|
|
974
|
-
...
|
|
975
|
-
parent:
|
|
976
|
-
nodes:
|
|
1467
|
+
"rootNodeId" in l ? a = l : a = w.parseReactElement(l).toNodeTree();
|
|
1468
|
+
const { rootNodeId: m, nodes: k } = a, h = {};
|
|
1469
|
+
return Object.entries(k).forEach(([d, M]) => {
|
|
1470
|
+
const v = be(M.data, c), y = d === m ? D : d;
|
|
1471
|
+
h[y] = {
|
|
1472
|
+
...v,
|
|
1473
|
+
parent: v.parent === m ? D : v.parent,
|
|
1474
|
+
nodes: v.nodes?.map((T) => T === m ? D : T)
|
|
977
1475
|
};
|
|
978
|
-
}),
|
|
1476
|
+
}), h;
|
|
979
1477
|
})[0];
|
|
980
|
-
return /* @__PURE__ */
|
|
1478
|
+
return /* @__PURE__ */ r(
|
|
981
1479
|
"div",
|
|
982
1480
|
{
|
|
983
1481
|
className: "tw:cursor-grab tw:border tw:border-ic-white-1s tw:rounded-lg tw:overflow-hidden",
|
|
984
1482
|
ref: (l) => {
|
|
985
|
-
l &&
|
|
1483
|
+
l && u.create(l, e, {
|
|
986
1484
|
onCreate(a) {
|
|
987
|
-
t && s.selectNode(a.rootNodeId), o?.(a);
|
|
1485
|
+
(typeof t == "function" ? t(a) : t) && s.selectNode(a.rootNodeId), o?.(a);
|
|
988
1486
|
}
|
|
989
1487
|
});
|
|
990
1488
|
},
|
|
991
|
-
onDragStart: () =>
|
|
992
|
-
onDragEnd: () =>
|
|
993
|
-
children: /* @__PURE__ */
|
|
994
|
-
|
|
1489
|
+
onDragStart: () => n(!0),
|
|
1490
|
+
onDragEnd: () => n(!1),
|
|
1491
|
+
children: /* @__PURE__ */ r("div", { className: "tw:relative tw:aspect-video tw:rounded-lg tw:overflow-hidden tw:w-60 tw:pointer-events-none", children: /* @__PURE__ */ r("div", { className: "tw:absolute tw:inset-0", children: /* @__PURE__ */ r(
|
|
1492
|
+
he,
|
|
995
1493
|
{
|
|
996
1494
|
containerProps: {
|
|
997
1495
|
style: {
|
|
998
1496
|
backgroundColor: i.theme.palette.background.default
|
|
999
1497
|
}
|
|
1000
1498
|
},
|
|
1001
|
-
viewport: { width:
|
|
1002
|
-
children: /* @__PURE__ */
|
|
1499
|
+
viewport: { width: Xe.md.minWidth },
|
|
1500
|
+
children: /* @__PURE__ */ r(Q2, { resolver: c, children: /* @__PURE__ */ r(X2, { data: x }) })
|
|
1003
1501
|
}
|
|
1004
1502
|
) }) })
|
|
1005
1503
|
}
|
|
1006
1504
|
);
|
|
1007
|
-
},
|
|
1505
|
+
}, Ot = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1008
1506
|
<path d="M12.5 2H9.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1009
1507
|
<path d="M2 9.5V12.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1010
1508
|
<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"/>
|
|
@@ -1015,99 +1513,99 @@ const Ne = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
1015
1513
|
<path d="M2 17V18C2 19.105 2.895 20 4 20H5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1016
1514
|
<path d="M20 5V4C20 2.895 19.105 2 18 2H17" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1017
1515
|
</svg>
|
|
1018
|
-
`,
|
|
1516
|
+
`, Gt = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1019
1517
|
<circle cx="6.49771" cy="5.49762" r="2.50104" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1020
1518
|
<circle cx="6.49771" cy="18.503" r="2.50104" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1021
1519
|
<path d="M6.49771 7.99854V16.0019" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1022
1520
|
<circle cx="17.5023" cy="13.0006" r="2.50104" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1023
1521
|
<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"/>
|
|
1024
1522
|
</svg>
|
|
1025
|
-
`,
|
|
1026
|
-
const { query: t, actions: o } =
|
|
1027
|
-
id:
|
|
1523
|
+
`, Ft = (e) => {
|
|
1524
|
+
const { query: t, actions: o } = $(), {
|
|
1525
|
+
id: n,
|
|
1028
1526
|
expanded: i,
|
|
1029
1527
|
actions: s,
|
|
1030
|
-
displayName:
|
|
1528
|
+
displayName: u,
|
|
1031
1529
|
children: c,
|
|
1032
|
-
depth:
|
|
1033
|
-
} =
|
|
1034
|
-
expanded:
|
|
1035
|
-
displayName:
|
|
1036
|
-
})), { selected:
|
|
1037
|
-
const d =
|
|
1530
|
+
depth: w
|
|
1531
|
+
} = N1((k) => ({
|
|
1532
|
+
expanded: k.expanded,
|
|
1533
|
+
displayName: W2(t.node(k.id).get())
|
|
1534
|
+
})), { selected: x, selectable: l } = $((k, h) => {
|
|
1535
|
+
const d = h.node(n).get();
|
|
1038
1536
|
return {
|
|
1039
|
-
selected:
|
|
1537
|
+
selected: h.getEvent("selected").contains(n),
|
|
1040
1538
|
nodeDOM: d.dom,
|
|
1041
|
-
selectable:
|
|
1539
|
+
selectable: Me(d)
|
|
1042
1540
|
};
|
|
1043
1541
|
});
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
}, [s,
|
|
1542
|
+
W(() => {
|
|
1543
|
+
n === D && s.setExpandedState(!0);
|
|
1544
|
+
}, [s, n]), W(() => {
|
|
1047
1545
|
if (c.length === 0) return;
|
|
1048
|
-
c.some((
|
|
1546
|
+
c.some((h) => {
|
|
1049
1547
|
const d = t.getEvent("selected").all();
|
|
1050
|
-
return d.includes(
|
|
1548
|
+
return d.includes(h) ? !0 : t.node(h).descendants(!0).some((v) => d.includes(v));
|
|
1051
1549
|
}) && s.setExpandedState(!0);
|
|
1052
1550
|
}, [c, s, t]);
|
|
1053
1551
|
const a = () => {
|
|
1054
|
-
o.selectNode(
|
|
1055
|
-
},
|
|
1056
|
-
|
|
1552
|
+
o.selectNode(n);
|
|
1553
|
+
}, m = (k) => {
|
|
1554
|
+
k.stopPropagation(), s.toggleLayer();
|
|
1057
1555
|
};
|
|
1058
|
-
return /* @__PURE__ */
|
|
1556
|
+
return /* @__PURE__ */ g(
|
|
1059
1557
|
"div",
|
|
1060
1558
|
{
|
|
1061
1559
|
className: "tw:py-1",
|
|
1062
1560
|
children: [
|
|
1063
|
-
/* @__PURE__ */
|
|
1561
|
+
/* @__PURE__ */ g(
|
|
1064
1562
|
"div",
|
|
1065
1563
|
{
|
|
1066
1564
|
onClick: a,
|
|
1067
1565
|
style: {
|
|
1068
|
-
paddingLeft: Math.max(0,
|
|
1566
|
+
paddingLeft: Math.max(0, w - 1) * 16
|
|
1069
1567
|
},
|
|
1070
|
-
className:
|
|
1568
|
+
className: B(
|
|
1071
1569
|
"tw:flex tw:items-center tw:gap-0.5 tw:cursor-pointer tw:rounded-1 tw:pr-2 tw:py-1 tw:border tw:border-ic-white-1s tw:hover:bg-ic-white-1s",
|
|
1072
1570
|
{
|
|
1073
|
-
hidden:
|
|
1074
|
-
"tw:bg-ic-black-7s":
|
|
1571
|
+
hidden: n === D,
|
|
1572
|
+
"tw:bg-ic-black-7s": x,
|
|
1075
1573
|
"tw:pointer-events-none": !l
|
|
1076
1574
|
}
|
|
1077
1575
|
),
|
|
1078
1576
|
children: [
|
|
1079
|
-
c.length ? /* @__PURE__ */
|
|
1577
|
+
c.length ? /* @__PURE__ */ r(A, { className: "tw:pointer-events-auto", onClick: m, children: /* @__PURE__ */ r(
|
|
1080
1578
|
E,
|
|
1081
1579
|
{
|
|
1082
|
-
className:
|
|
1580
|
+
className: B("tw:transition-transform tw:-rotate-90", {
|
|
1083
1581
|
"tw:rotate-0": i
|
|
1084
1582
|
}),
|
|
1085
1583
|
size: 16,
|
|
1086
|
-
source:
|
|
1584
|
+
source: ne
|
|
1087
1585
|
}
|
|
1088
|
-
) }) : /* @__PURE__ */
|
|
1089
|
-
/* @__PURE__ */
|
|
1586
|
+
) }) : /* @__PURE__ */ r("div", { className: "tw:p-1", children: /* @__PURE__ */ r(E, { size: 16, source: Gt }) }),
|
|
1587
|
+
/* @__PURE__ */ r(
|
|
1090
1588
|
"span",
|
|
1091
1589
|
{
|
|
1092
|
-
className:
|
|
1590
|
+
className: B("tw:flex-1 tw:truncate", {
|
|
1093
1591
|
"tw:text-ic-white-3s": !l
|
|
1094
1592
|
}),
|
|
1095
|
-
children:
|
|
1593
|
+
children: u
|
|
1096
1594
|
}
|
|
1097
1595
|
)
|
|
1098
1596
|
]
|
|
1099
1597
|
}
|
|
1100
1598
|
),
|
|
1101
|
-
/* @__PURE__ */
|
|
1599
|
+
/* @__PURE__ */ r("div", { className: "tw:space-y-1", children: e.children })
|
|
1102
1600
|
]
|
|
1103
1601
|
}
|
|
1104
1602
|
);
|
|
1105
|
-
},
|
|
1106
|
-
const t =
|
|
1107
|
-
t.start(
|
|
1603
|
+
}, zt = ({ onClose: e }) => {
|
|
1604
|
+
const t = I1(), o = (n) => {
|
|
1605
|
+
t.start(n);
|
|
1108
1606
|
};
|
|
1109
|
-
return /* @__PURE__ */
|
|
1110
|
-
|
|
1607
|
+
return /* @__PURE__ */ r(ee, { children: /* @__PURE__ */ g(
|
|
1608
|
+
t1.div,
|
|
1111
1609
|
{
|
|
1112
1610
|
drag: !0,
|
|
1113
1611
|
dragControls: t,
|
|
@@ -1115,64 +1613,64 @@ const Ne = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
1115
1613
|
style: { zIndex: 1e5, width: 320, height: 400, top: 80, right: 40 },
|
|
1116
1614
|
className: "tw:fixed tw:rounded-md tw:bg-ic-ink-6s tw:text-white tw:flex tw:flex-col tw:border tw:border-ic-white-2s",
|
|
1117
1615
|
children: [
|
|
1118
|
-
/* @__PURE__ */
|
|
1616
|
+
/* @__PURE__ */ g(
|
|
1119
1617
|
"div",
|
|
1120
1618
|
{
|
|
1121
1619
|
onPointerDown: o,
|
|
1122
1620
|
className: "tw:py-2 tw:cursor-grab tw:flex tw:items-center tw:justify-between tw:px-4",
|
|
1123
1621
|
children: [
|
|
1124
|
-
/* @__PURE__ */
|
|
1125
|
-
/* @__PURE__ */
|
|
1126
|
-
/* @__PURE__ */
|
|
1622
|
+
/* @__PURE__ */ g("div", { className: "tw:flex tw:items-center tw:gap-2", children: [
|
|
1623
|
+
/* @__PURE__ */ r(E, { source: Ot }),
|
|
1624
|
+
/* @__PURE__ */ r("p", { className: "tw:text-sm tw:font-medium", children: "Layers" })
|
|
1127
1625
|
] }),
|
|
1128
|
-
/* @__PURE__ */
|
|
1626
|
+
/* @__PURE__ */ r(A, { onClick: e, children: /* @__PURE__ */ r(E, { source: r1 }) })
|
|
1129
1627
|
]
|
|
1130
1628
|
}
|
|
1131
1629
|
),
|
|
1132
|
-
/* @__PURE__ */
|
|
1630
|
+
/* @__PURE__ */ r("div", { className: "tw:flex-1 tw:overflow-auto tw:border-t tw:border-ic-white-1s tw:p-2", children: /* @__PURE__ */ r(y1, { renderLayer: Ft }) })
|
|
1133
1631
|
]
|
|
1134
1632
|
}
|
|
1135
1633
|
) });
|
|
1136
|
-
},
|
|
1634
|
+
}, Ut = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1137
1635
|
<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"/>
|
|
1138
1636
|
<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"/>
|
|
1139
1637
|
<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"/>
|
|
1140
1638
|
</svg>
|
|
1141
|
-
`,
|
|
1639
|
+
`, Wt = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1142
1640
|
<path d="M5 12H19" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1143
1641
|
<path d="M10 7L5 12" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1144
1642
|
<path d="M10 17L5 12" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1145
1643
|
</svg>
|
|
1146
|
-
`,
|
|
1147
|
-
const [t, o] =
|
|
1644
|
+
`, qt = ({ insert: e }) => {
|
|
1645
|
+
const [t, o] = te(!1), {
|
|
1148
1646
|
queryParams: {
|
|
1149
|
-
action:
|
|
1647
|
+
action: n = "insert"
|
|
1150
1648
|
/* Insert */
|
|
1151
1649
|
},
|
|
1152
1650
|
setQueryParams: i
|
|
1153
|
-
} =
|
|
1154
|
-
const
|
|
1651
|
+
} = i2(), { actions: s, isDeletable: u, focusedNode: c } = $((a, m) => {
|
|
1652
|
+
const k = m.getEvent("selected").first(), h = k ? m.node(k) : null;
|
|
1155
1653
|
return {
|
|
1156
1654
|
enabled: a.options.enabled,
|
|
1157
|
-
isDeletable: !!(
|
|
1158
|
-
focusedNode:
|
|
1655
|
+
isDeletable: !!(h?.isDeletable() && (h.get().data.custom?.deletable ?? !0)),
|
|
1656
|
+
focusedNode: h?.get()
|
|
1159
1657
|
};
|
|
1160
|
-
}),
|
|
1658
|
+
}), w = () => {
|
|
1161
1659
|
s.selectNode();
|
|
1162
|
-
},
|
|
1660
|
+
}, x = (a) => {
|
|
1163
1661
|
s.delete(a.currentTarget.value);
|
|
1164
1662
|
}, l = (a) => {
|
|
1165
|
-
const
|
|
1166
|
-
|
|
1167
|
-
action:
|
|
1663
|
+
const m = a.currentTarget.value;
|
|
1664
|
+
m === "layers" ? o() : (w(), i({
|
|
1665
|
+
action: m
|
|
1168
1666
|
}));
|
|
1169
1667
|
};
|
|
1170
|
-
return /* @__PURE__ */
|
|
1171
|
-
/* @__PURE__ */
|
|
1172
|
-
/* @__PURE__ */
|
|
1173
|
-
!!e && /* @__PURE__ */
|
|
1174
|
-
/* @__PURE__ */
|
|
1175
|
-
|
|
1668
|
+
return /* @__PURE__ */ g(n2, { children: [
|
|
1669
|
+
/* @__PURE__ */ g("aside", { className: "tw:flex tw:items-stretch tw:bg-ic-ink-6s tw:relative tw:border-t tw:border-ic-white-2s tw:text-ic-white-6s tw:text-sm", children: [
|
|
1670
|
+
/* @__PURE__ */ g("div", { className: "tw:px-1 tw:flex tw:flex-col tw:gap-1", children: [
|
|
1671
|
+
!!e && /* @__PURE__ */ g(V2, { children: [
|
|
1672
|
+
/* @__PURE__ */ r(
|
|
1673
|
+
A,
|
|
1176
1674
|
{
|
|
1177
1675
|
tooltip: {
|
|
1178
1676
|
content: "Insert",
|
|
@@ -1182,13 +1680,13 @@ const Ne = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
1182
1680
|
value: "insert",
|
|
1183
1681
|
className: "tw:relative",
|
|
1184
1682
|
size: "32",
|
|
1185
|
-
children: /* @__PURE__ */
|
|
1683
|
+
children: /* @__PURE__ */ r(E, { source: n1 })
|
|
1186
1684
|
}
|
|
1187
1685
|
),
|
|
1188
|
-
/* @__PURE__ */
|
|
1686
|
+
/* @__PURE__ */ r("hr", { className: "tw:border-ic-white-2s" })
|
|
1189
1687
|
] }),
|
|
1190
|
-
/* @__PURE__ */
|
|
1191
|
-
|
|
1688
|
+
/* @__PURE__ */ r(
|
|
1689
|
+
A,
|
|
1192
1690
|
{
|
|
1193
1691
|
tooltip: {
|
|
1194
1692
|
content: "Layers",
|
|
@@ -1198,56 +1696,56 @@ const Ne = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
|
|
|
1198
1696
|
value: "layers",
|
|
1199
1697
|
className: "tw:relative",
|
|
1200
1698
|
size: "32",
|
|
1201
|
-
children: /* @__PURE__ */
|
|
1699
|
+
children: /* @__PURE__ */ r(E, { source: Ut })
|
|
1202
1700
|
}
|
|
1203
1701
|
)
|
|
1204
1702
|
] }),
|
|
1205
|
-
/* @__PURE__ */
|
|
1703
|
+
/* @__PURE__ */ g(
|
|
1206
1704
|
"div",
|
|
1207
1705
|
{
|
|
1208
|
-
className:
|
|
1706
|
+
className: B("tw:relative tw:flex tw:flex-col tw:border-l tw:border-ic-white-1s tw:w-72 tw:overflow-auto"),
|
|
1209
1707
|
children: [
|
|
1210
|
-
!c?.related.inspector && /* @__PURE__ */
|
|
1211
|
-
!!c?.related?.inspector && /* @__PURE__ */
|
|
1212
|
-
/* @__PURE__ */
|
|
1213
|
-
/* @__PURE__ */
|
|
1214
|
-
/* @__PURE__ */
|
|
1215
|
-
|
|
1708
|
+
!c?.related.inspector && /* @__PURE__ */ r("div", { className: "tw:flex-1 tw:overflow-auto scrollbar", children: n === "insert" && !!e && /* @__PURE__ */ r(_t, { groups: e.groups }) }),
|
|
1709
|
+
!!c?.related?.inspector && /* @__PURE__ */ g("div", { className: "tw:flex tw:flex-col tw:flex-1 tw:overflow-hidden", children: [
|
|
1710
|
+
/* @__PURE__ */ g("div", { className: "tw:flex tw:items-center tw:gap-2 tw:px-2 tw:py-2", children: [
|
|
1711
|
+
/* @__PURE__ */ r(A, { onClick: w, children: /* @__PURE__ */ r(E, { source: Wt }) }),
|
|
1712
|
+
/* @__PURE__ */ r("div", { className: "tw:flex-1 tw:overflow-hidden", children: /* @__PURE__ */ r(J2, { fullWidth: !0, value: W2(c), size: "32" }) }),
|
|
1713
|
+
u && /* @__PURE__ */ r(A, { value: c.id, onClick: x, children: /* @__PURE__ */ r(E, { className: "tw:text-ic-red-4s", source: v1 }) })
|
|
1216
1714
|
] }),
|
|
1217
|
-
/* @__PURE__ */
|
|
1715
|
+
/* @__PURE__ */ r("div", { className: "tw:flex-1 tw:overflow-auto tw:border-t tw:border-ic-white-1s scrollbar-hidden", children: /* @__PURE__ */ r(Le, { fallback: null, children: Y2(c.related.inspector) }) })
|
|
1218
1716
|
] })
|
|
1219
1717
|
]
|
|
1220
1718
|
}
|
|
1221
1719
|
)
|
|
1222
1720
|
] }),
|
|
1223
|
-
t && /* @__PURE__ */
|
|
1721
|
+
t && /* @__PURE__ */ r(zt, { onClose: o })
|
|
1224
1722
|
] });
|
|
1225
|
-
},
|
|
1723
|
+
}, T3 = ({ theme: e, insert: t, resolver: o, handlers: n }) => {
|
|
1226
1724
|
const {
|
|
1227
1725
|
queryParams: { screen: i }
|
|
1228
|
-
} =
|
|
1229
|
-
return
|
|
1726
|
+
} = i2();
|
|
1727
|
+
return s2({
|
|
1230
1728
|
theme: e,
|
|
1231
|
-
handlers:
|
|
1232
|
-
}), /* @__PURE__ */
|
|
1233
|
-
/* @__PURE__ */
|
|
1234
|
-
/* @__PURE__ */
|
|
1235
|
-
/* @__PURE__ */
|
|
1236
|
-
/* @__PURE__ */
|
|
1237
|
-
|
|
1729
|
+
handlers: n
|
|
1730
|
+
}), /* @__PURE__ */ r(Q2, { enabled: !0, onRender: ot, resolver: o, children: /* @__PURE__ */ g("div", { className: "tw:flex tw:flex-col tw:w-screen tw:h-screen tw:bg-ic-ink-6s tw:text-ic-white-6s", children: [
|
|
1731
|
+
/* @__PURE__ */ r(at, {}),
|
|
1732
|
+
/* @__PURE__ */ g("div", { className: "tw:flex-1 tw:overflow-hidden tw:flex", children: [
|
|
1733
|
+
/* @__PURE__ */ r(qt, { insert: t }),
|
|
1734
|
+
/* @__PURE__ */ r(
|
|
1735
|
+
he,
|
|
1238
1736
|
{
|
|
1239
1737
|
viewport: {
|
|
1240
|
-
width: (s) => i === "lg" ? Math.max(s,
|
|
1738
|
+
width: (s) => i === "lg" ? Math.max(s, M2[i]) : M2[i]
|
|
1241
1739
|
},
|
|
1242
|
-
children: /* @__PURE__ */
|
|
1740
|
+
children: /* @__PURE__ */ r(X2, { children: /* @__PURE__ */ r(ve, {}) })
|
|
1243
1741
|
}
|
|
1244
1742
|
)
|
|
1245
1743
|
] })
|
|
1246
1744
|
] }) });
|
|
1247
1745
|
};
|
|
1248
1746
|
export {
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1747
|
+
T3 as Editor,
|
|
1748
|
+
s2 as useEditor,
|
|
1749
|
+
i2 as useEditorQueryParams,
|
|
1750
|
+
A3 as useEditorResponsive
|
|
1253
1751
|
};
|