@promakeai/inspector 1.1.0 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +232 -240
- package/dist/components/ControlBox/index.d.ts.map +1 -1
- package/dist/inspector.css +1 -1
- package/dist/inspector.js +1052 -1135
- package/package.json +83 -83
package/dist/inspector.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { jsxs as b, Fragment as mt, jsx as
|
|
1
|
+
import { jsxs as b, Fragment as mt, jsx as c } from "react/jsx-runtime";
|
|
2
2
|
import * as U from "react";
|
|
3
|
-
import
|
|
3
|
+
import A, { useCallback as Ee, useState as E, useEffect as W, forwardRef as bt, createElement as qe, useRef as q, useLayoutEffect as It, useMemo as Me } from "react";
|
|
4
4
|
function Pe() {
|
|
5
|
-
const e =
|
|
5
|
+
const e = Ee((o, n) => {
|
|
6
6
|
if (window.parent !== window) {
|
|
7
|
-
const
|
|
7
|
+
const i = JSON.stringify({
|
|
8
8
|
type: o,
|
|
9
9
|
data: n
|
|
10
10
|
});
|
|
11
|
-
window.parent.postMessage(
|
|
11
|
+
window.parent.postMessage(i, "*");
|
|
12
12
|
}
|
|
13
|
-
}, []), t =
|
|
14
|
-
const n = (
|
|
13
|
+
}, []), t = Ee((o) => {
|
|
14
|
+
const n = (i) => {
|
|
15
15
|
try {
|
|
16
|
-
const r = typeof
|
|
16
|
+
const r = typeof i.data == "string" ? JSON.parse(i.data) : i.data;
|
|
17
17
|
r && r.type && o(r);
|
|
18
18
|
} catch {
|
|
19
19
|
}
|
|
@@ -83,14 +83,14 @@ class Bt {
|
|
|
83
83
|
t.apply(console, o);
|
|
84
84
|
const n = o.map(
|
|
85
85
|
(r) => typeof r == "object" ? JSON.stringify(r) : String(r)
|
|
86
|
-
).join(" "),
|
|
86
|
+
).join(" "), i = o.find((r) => r instanceof Error);
|
|
87
87
|
this.callback({
|
|
88
88
|
type: "console",
|
|
89
89
|
message: n,
|
|
90
|
-
stack:
|
|
91
|
-
fileName:
|
|
92
|
-
lineNumber:
|
|
93
|
-
columnNumber:
|
|
90
|
+
stack: i?.stack,
|
|
91
|
+
fileName: i?.fileName,
|
|
92
|
+
lineNumber: i?.lineNumber,
|
|
93
|
+
columnNumber: i?.columnNumber
|
|
94
94
|
});
|
|
95
95
|
};
|
|
96
96
|
}
|
|
@@ -102,8 +102,8 @@ class Bt {
|
|
|
102
102
|
t.forEach((o) => {
|
|
103
103
|
o.addedNodes.forEach((n) => {
|
|
104
104
|
if (n.nodeType === 1) {
|
|
105
|
-
const
|
|
106
|
-
|
|
105
|
+
const i = n;
|
|
106
|
+
i.tagName === "VITE-ERROR-OVERLAY" && this.parseViteError(i);
|
|
107
107
|
}
|
|
108
108
|
});
|
|
109
109
|
});
|
|
@@ -119,15 +119,15 @@ class Bt {
|
|
|
119
119
|
try {
|
|
120
120
|
const o = t.shadowRoot;
|
|
121
121
|
if (!o) return;
|
|
122
|
-
const
|
|
122
|
+
const i = o.querySelector(".message-body")?.textContent?.trim() || "Vite error", p = (o.querySelector(".file")?.textContent?.trim() || "").match(/(.+):(\d+):(\d+)/), l = o.querySelector(".frame")?.textContent?.trim(), d = o.querySelector(".plugin")?.textContent?.trim();
|
|
123
123
|
this.callback({
|
|
124
124
|
type: "vite",
|
|
125
|
-
message:
|
|
125
|
+
message: i,
|
|
126
126
|
fileName: p?.[1],
|
|
127
127
|
lineNumber: p?.[2] ? parseInt(p[2]) : void 0,
|
|
128
128
|
columnNumber: p?.[3] ? parseInt(p[3]) : void 0,
|
|
129
129
|
frame: l,
|
|
130
|
-
plugin:
|
|
130
|
+
plugin: d
|
|
131
131
|
});
|
|
132
132
|
} catch (o) {
|
|
133
133
|
console.error("Failed to parse Vite error:", o);
|
|
@@ -176,27 +176,27 @@ function Ot({
|
|
|
176
176
|
selectedElement: t,
|
|
177
177
|
showChildBorders: o = !0
|
|
178
178
|
}) {
|
|
179
|
-
const [n,
|
|
179
|
+
const [n, i] = E(null), [r, s] = E([]), [p, u] = E(!1), l = t || e;
|
|
180
180
|
return W(() => {
|
|
181
181
|
if (!l) {
|
|
182
|
-
|
|
182
|
+
i(null);
|
|
183
183
|
return;
|
|
184
184
|
}
|
|
185
|
-
|
|
186
|
-
let g = null,
|
|
187
|
-
const
|
|
188
|
-
const L = Date.now(), S = L -
|
|
189
|
-
if (S >=
|
|
185
|
+
u(!!t);
|
|
186
|
+
let g = null, d = 0;
|
|
187
|
+
const a = 16, f = () => {
|
|
188
|
+
const L = Date.now(), S = L - d;
|
|
189
|
+
if (S >= a) {
|
|
190
190
|
const C = l.getBoundingClientRect();
|
|
191
|
-
|
|
192
|
-
const k = Array.from(l.children).filter((
|
|
193
|
-
|
|
191
|
+
i(C);
|
|
192
|
+
const k = Array.from(l.children).filter((F) => !F.closest("[data-inspector-ignore]")).map((F) => F.getBoundingClientRect());
|
|
193
|
+
s(k), d = L;
|
|
194
194
|
} else g || (g = window.setTimeout(() => {
|
|
195
195
|
const C = l.getBoundingClientRect();
|
|
196
|
-
|
|
197
|
-
const k = Array.from(l.children).filter((
|
|
198
|
-
|
|
199
|
-
},
|
|
196
|
+
i(C);
|
|
197
|
+
const k = Array.from(l.children).filter((F) => !F.closest("[data-inspector-ignore]")).map((F) => F.getBoundingClientRect());
|
|
198
|
+
s(k), d = Date.now(), g = null;
|
|
199
|
+
}, a - S));
|
|
200
200
|
};
|
|
201
201
|
f();
|
|
202
202
|
const y = () => {
|
|
@@ -219,7 +219,7 @@ function Ot({
|
|
|
219
219
|
window.removeEventListener("scroll", y, !0), window.removeEventListener("resize", y), _ && _.disconnect(), x && x.disconnect(), g && clearTimeout(g);
|
|
220
220
|
};
|
|
221
221
|
}, [l, t]), n ? /* @__PURE__ */ b(mt, { children: [
|
|
222
|
-
/* @__PURE__ */
|
|
222
|
+
/* @__PURE__ */ c(
|
|
223
223
|
"div",
|
|
224
224
|
{
|
|
225
225
|
className: `inspector-overlay ${p ? "paused" : ""} active`,
|
|
@@ -231,7 +231,7 @@ function Ot({
|
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
233
|
),
|
|
234
|
-
o && r.map((g,
|
|
234
|
+
o && r.map((g, d) => /* @__PURE__ */ c(
|
|
235
235
|
"div",
|
|
236
236
|
{
|
|
237
237
|
className: "inspector-overlay-child active",
|
|
@@ -242,7 +242,7 @@ function Ot({
|
|
|
242
242
|
height: `${g.height}px`
|
|
243
243
|
}
|
|
244
244
|
},
|
|
245
|
-
|
|
245
|
+
d
|
|
246
246
|
))
|
|
247
247
|
] }) : null;
|
|
248
248
|
}
|
|
@@ -250,38 +250,38 @@ function vt(e) {
|
|
|
250
250
|
var t, o, n = "";
|
|
251
251
|
if (typeof e == "string" || typeof e == "number") n += e;
|
|
252
252
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
253
|
-
var
|
|
254
|
-
for (t = 0; t <
|
|
253
|
+
var i = e.length;
|
|
254
|
+
for (t = 0; t < i; t++) e[t] && (o = vt(e[t])) && (n && (n += " "), n += o);
|
|
255
255
|
} else for (o in e) e[o] && (n && (n += " "), n += o);
|
|
256
256
|
return n;
|
|
257
257
|
}
|
|
258
258
|
function re() {
|
|
259
|
-
for (var e, t, o = 0, n = "",
|
|
259
|
+
for (var e, t, o = 0, n = "", i = arguments.length; o < i; o++) (e = arguments[o]) && (t = vt(e)) && (n && (n += " "), n += t);
|
|
260
260
|
return n;
|
|
261
261
|
}
|
|
262
262
|
const tt = (e) => {
|
|
263
263
|
let t;
|
|
264
264
|
const o = /* @__PURE__ */ new Set(), n = (l, g) => {
|
|
265
|
-
const
|
|
266
|
-
if (!Object.is(
|
|
267
|
-
const
|
|
268
|
-
t = g ?? (typeof
|
|
265
|
+
const d = typeof l == "function" ? l(t) : l;
|
|
266
|
+
if (!Object.is(d, t)) {
|
|
267
|
+
const a = t;
|
|
268
|
+
t = g ?? (typeof d != "object" || d === null) ? d : Object.assign({}, t, d), o.forEach((f) => f(t, a));
|
|
269
269
|
}
|
|
270
|
-
},
|
|
270
|
+
}, i = () => t, p = { setState: n, getState: i, getInitialState: () => u, subscribe: (l) => (o.add(l), () => o.delete(l)) }, u = t = e(n, i, p);
|
|
271
271
|
return p;
|
|
272
272
|
}, Dt = ((e) => e ? tt(e) : tt), Mt = (e) => e;
|
|
273
273
|
function Pt(e, t = Mt) {
|
|
274
|
-
const o =
|
|
274
|
+
const o = A.useSyncExternalStore(
|
|
275
275
|
e.subscribe,
|
|
276
|
-
|
|
277
|
-
|
|
276
|
+
A.useCallback(() => t(e.getState()), [e, t]),
|
|
277
|
+
A.useCallback(() => t(e.getInitialState()), [e, t])
|
|
278
278
|
);
|
|
279
|
-
return
|
|
279
|
+
return A.useDebugValue(o), o;
|
|
280
280
|
}
|
|
281
281
|
const ot = (e) => {
|
|
282
282
|
const t = Dt(e), o = (n) => Pt(t, n);
|
|
283
283
|
return Object.assign(o, t), o;
|
|
284
|
-
}, zt = ((e) => e ? ot(e) : ot),
|
|
284
|
+
}, zt = ((e) => e ? ot(e) : ot), At = {
|
|
285
285
|
backgroundColor: "#ffffff",
|
|
286
286
|
textColor: "#0f172a",
|
|
287
287
|
secondaryTextColor: "#64748b",
|
|
@@ -322,7 +322,7 @@ const ot = (e) => {
|
|
|
322
322
|
dialogBackgroundColor: "#ffffff",
|
|
323
323
|
dialogTextColor: "#0f172a",
|
|
324
324
|
dialogSecondaryTextColor: "#64748b"
|
|
325
|
-
},
|
|
325
|
+
}, Ft = {
|
|
326
326
|
// Text Editor
|
|
327
327
|
editText: "Edit Content",
|
|
328
328
|
textContentLabel: "Text Content",
|
|
@@ -469,9 +469,9 @@ const ot = (e) => {
|
|
|
469
469
|
// Badge
|
|
470
470
|
badgeText: "Built by Promake",
|
|
471
471
|
badgeUrl: "https://promake.ai"
|
|
472
|
-
},
|
|
473
|
-
theme:
|
|
474
|
-
labels:
|
|
472
|
+
}, K = zt((e) => ({
|
|
473
|
+
theme: At,
|
|
474
|
+
labels: Ft,
|
|
475
475
|
setTheme: (t) => e((o) => ({
|
|
476
476
|
theme: { ...o.theme, ...t }
|
|
477
477
|
})),
|
|
@@ -481,34 +481,34 @@ const ot = (e) => {
|
|
|
481
481
|
})), Ht = "_input_18103_1", jt = {
|
|
482
482
|
input: Ht
|
|
483
483
|
}, Be = U.forwardRef(
|
|
484
|
-
({ className: e, type: t, style: o, ...n },
|
|
485
|
-
const { theme: r } =
|
|
484
|
+
({ className: e, type: t, style: o, ...n }, i) => {
|
|
485
|
+
const { theme: r } = K(), s = {
|
|
486
486
|
borderColor: r.borderColor,
|
|
487
487
|
color: r.textColor,
|
|
488
488
|
...o
|
|
489
489
|
};
|
|
490
|
-
return /* @__PURE__ */
|
|
490
|
+
return /* @__PURE__ */ c(
|
|
491
491
|
"input",
|
|
492
492
|
{
|
|
493
493
|
type: t,
|
|
494
494
|
"data-slot": "input",
|
|
495
495
|
className: re(jt.input, e),
|
|
496
|
-
style:
|
|
497
|
-
ref:
|
|
496
|
+
style: s,
|
|
497
|
+
ref: i,
|
|
498
498
|
...n
|
|
499
499
|
}
|
|
500
500
|
);
|
|
501
501
|
}
|
|
502
502
|
);
|
|
503
503
|
Be.displayName = "Input";
|
|
504
|
-
const $t = "_button_esc83_3", Wt = "_destructive_esc83_85 _button_esc83_3", Vt = "_outline_esc83_105 _button_esc83_3", Ut = "_secondary_esc83_127 _button_esc83_3",
|
|
504
|
+
const $t = "_button_esc83_3", Wt = "_destructive_esc83_85 _button_esc83_3", Vt = "_outline_esc83_105 _button_esc83_3", Ut = "_secondary_esc83_127 _button_esc83_3", qt = "_ghost_esc83_143 _button_esc83_3", Gt = "_link_esc83_161 _button_esc83_3", Xt = "_sizeDefault_esc83_185", Kt = "_sizeSm_esc83_205", Yt = "_sizeLg_esc83_227", Jt = "_sizeIcon_esc83_247", Zt = "_sizeIconSm_esc83_259", Qt = "_sizeIconLg_esc83_271", nt = {
|
|
505
505
|
button: $t,
|
|
506
506
|
default: "_default_esc83_65 _button_esc83_3",
|
|
507
507
|
destructive: Wt,
|
|
508
508
|
outline: Vt,
|
|
509
509
|
secondary: Ut,
|
|
510
|
-
ghost:
|
|
511
|
-
link:
|
|
510
|
+
ghost: qt,
|
|
511
|
+
link: Gt,
|
|
512
512
|
sizeDefault: Xt,
|
|
513
513
|
sizeSm: Kt,
|
|
514
514
|
sizeLg: Yt,
|
|
@@ -521,11 +521,11 @@ function ye({
|
|
|
521
521
|
variant: t = "default",
|
|
522
522
|
size: o = "default",
|
|
523
523
|
asChild: n = !1,
|
|
524
|
-
style:
|
|
524
|
+
style: i,
|
|
525
525
|
children: r,
|
|
526
|
-
...
|
|
526
|
+
...s
|
|
527
527
|
}) {
|
|
528
|
-
const { theme: p } =
|
|
528
|
+
const { theme: p } = K(), u = o === "icon" ? "sizeIcon" : o === "icon-sm" ? "sizeIconSm" : o === "icon-lg" ? "sizeIconLg" : `size${o.charAt(0).toUpperCase()}${o.slice(1)}`, l = {
|
|
529
529
|
default: {
|
|
530
530
|
background: p.buttonColor,
|
|
531
531
|
color: p.buttonTextColor
|
|
@@ -553,25 +553,25 @@ function ye({
|
|
|
553
553
|
}
|
|
554
554
|
}, g = re(
|
|
555
555
|
nt[t],
|
|
556
|
-
nt[
|
|
556
|
+
nt[u],
|
|
557
557
|
e
|
|
558
|
-
),
|
|
558
|
+
), d = { ...l[t], ...i };
|
|
559
559
|
if (n && U.isValidElement(r)) {
|
|
560
|
-
const
|
|
560
|
+
const a = r.props;
|
|
561
561
|
return U.cloneElement(r, {
|
|
562
|
-
className: re(
|
|
563
|
-
style: { ...
|
|
562
|
+
className: re(a.className, g),
|
|
563
|
+
style: { ...d, ...a.style },
|
|
564
564
|
"data-slot": "button",
|
|
565
|
-
...
|
|
565
|
+
...s
|
|
566
566
|
});
|
|
567
567
|
}
|
|
568
|
-
return /* @__PURE__ */
|
|
568
|
+
return /* @__PURE__ */ c(
|
|
569
569
|
"button",
|
|
570
570
|
{
|
|
571
571
|
"data-slot": "button",
|
|
572
572
|
className: g,
|
|
573
|
-
style:
|
|
574
|
-
...
|
|
573
|
+
style: d,
|
|
574
|
+
...s,
|
|
575
575
|
children: r
|
|
576
576
|
}
|
|
577
577
|
);
|
|
@@ -604,32 +604,32 @@ const ro = bt(
|
|
|
604
604
|
size: t = 24,
|
|
605
605
|
strokeWidth: o = 2,
|
|
606
606
|
absoluteStrokeWidth: n,
|
|
607
|
-
className:
|
|
607
|
+
className: i = "",
|
|
608
608
|
children: r,
|
|
609
|
-
iconNode:
|
|
609
|
+
iconNode: s,
|
|
610
610
|
...p
|
|
611
|
-
},
|
|
611
|
+
}, u) => qe(
|
|
612
612
|
"svg",
|
|
613
613
|
{
|
|
614
|
-
ref:
|
|
614
|
+
ref: u,
|
|
615
615
|
...no,
|
|
616
616
|
width: t,
|
|
617
617
|
height: t,
|
|
618
618
|
stroke: e,
|
|
619
619
|
strokeWidth: n ? Number(o) * 24 / Number(t) : o,
|
|
620
|
-
className: yt("lucide",
|
|
620
|
+
className: yt("lucide", i),
|
|
621
621
|
...!r && !oo(p) && { "aria-hidden": "true" },
|
|
622
622
|
...p
|
|
623
623
|
},
|
|
624
624
|
[
|
|
625
|
-
...
|
|
625
|
+
...s.map(([l, g]) => qe(l, g)),
|
|
626
626
|
...Array.isArray(r) ? r : [r]
|
|
627
627
|
]
|
|
628
628
|
)
|
|
629
629
|
);
|
|
630
630
|
const le = (e, t) => {
|
|
631
631
|
const o = bt(
|
|
632
|
-
({ className: n, ...
|
|
632
|
+
({ className: n, ...i }, r) => qe(ro, {
|
|
633
633
|
ref: r,
|
|
634
634
|
iconNode: t,
|
|
635
635
|
className: yt(
|
|
@@ -637,25 +637,25 @@ const le = (e, t) => {
|
|
|
637
637
|
`lucide-${e}`,
|
|
638
638
|
n
|
|
639
639
|
),
|
|
640
|
-
...
|
|
640
|
+
...i
|
|
641
641
|
})
|
|
642
642
|
);
|
|
643
643
|
return o.displayName = rt(e), o;
|
|
644
644
|
};
|
|
645
|
-
const
|
|
645
|
+
const io = [
|
|
646
646
|
["path", { d: "M7 7h10v10", key: "1tivn9" }],
|
|
647
647
|
["path", { d: "M7 17 17 7", key: "1vkiza" }]
|
|
648
|
-
],
|
|
648
|
+
], ao = le("arrow-up-right", io);
|
|
649
649
|
const lo = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], Ct = le("check", lo);
|
|
650
|
-
const
|
|
651
|
-
const
|
|
650
|
+
const co = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], xe = le("chevron-down", co);
|
|
651
|
+
const so = [["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]], uo = le("circle", so);
|
|
652
652
|
const po = [
|
|
653
653
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
654
654
|
["path", { d: "M3 9h18", key: "1pudct" }],
|
|
655
655
|
["path", { d: "M3 15h18", key: "5xshup" }],
|
|
656
656
|
["path", { d: "M9 3v18", key: "fh3hqa" }],
|
|
657
657
|
["path", { d: "M15 3v18", key: "14nvp0" }]
|
|
658
|
-
],
|
|
658
|
+
], it = le("grid-3x3", po);
|
|
659
659
|
const go = [
|
|
660
660
|
["circle", { cx: "9", cy: "12", r: "1", key: "1vctgf" }],
|
|
661
661
|
["circle", { cx: "9", cy: "5", r: "1", key: "hp0tcf" }],
|
|
@@ -667,12 +667,12 @@ const go = [
|
|
|
667
667
|
const ho = [
|
|
668
668
|
["path", { d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8", key: "1357e3" }],
|
|
669
669
|
["path", { d: "M3 3v5h5", key: "1xhq8a" }]
|
|
670
|
-
],
|
|
670
|
+
], ae = le("rotate-ccw", ho);
|
|
671
671
|
const mo = [
|
|
672
672
|
["path", { d: "M5 8V5c0-1 1-2 2-2h10c1 0 2 1 2 2v3", key: "1pi83i" }],
|
|
673
673
|
["path", { d: "M19 16v3c0 1-1 2-2 2H7c-1 0-2-1-2-2v-3", key: "ido5k7" }],
|
|
674
674
|
["line", { x1: "4", x2: "20", y1: "12", y2: "12", key: "1e0a9i" }]
|
|
675
|
-
],
|
|
675
|
+
], at = le("square-split-vertical", mo);
|
|
676
676
|
const bo = [
|
|
677
677
|
["path", { d: "M21 5H3", key: "1fi0y6" }],
|
|
678
678
|
["path", { d: "M17 12H7", key: "16if0g" }],
|
|
@@ -696,8 +696,8 @@ const ko = [
|
|
|
696
696
|
const So = [
|
|
697
697
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
698
698
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
699
|
-
],
|
|
700
|
-
container:
|
|
699
|
+
], Eo = le("x", So), To = "_container_18svj_1", No = "_inputContainer_18svj_17", Lo = "_input_18svj_17", Io = "_buttons_18svj_77", Bo = "_submitButton_18svj_89", Ro = "_submitIcon_18svj_101", Oo = "_closeButton_18svj_111", Do = "_closeIcon_18svj_125", me = {
|
|
700
|
+
container: To,
|
|
701
701
|
inputContainer: No,
|
|
702
702
|
input: Lo,
|
|
703
703
|
buttons: Io,
|
|
@@ -712,14 +712,14 @@ function Mo({
|
|
|
712
712
|
onClose: o,
|
|
713
713
|
autoFocus: n = !1
|
|
714
714
|
}) {
|
|
715
|
-
const { theme:
|
|
715
|
+
const { theme: i } = K(), [r, s] = E(""), p = q(null);
|
|
716
716
|
W(() => {
|
|
717
717
|
n && p.current && p.current.focus();
|
|
718
718
|
}, [n]);
|
|
719
|
-
const
|
|
720
|
-
r.trim() && (t(r.trim()),
|
|
719
|
+
const u = () => {
|
|
720
|
+
r.trim() && (t(r.trim()), s(""));
|
|
721
721
|
}, l = (g) => {
|
|
722
|
-
g.key === "Enter" && (g.preventDefault(),
|
|
722
|
+
g.key === "Enter" && (g.preventDefault(), u());
|
|
723
723
|
};
|
|
724
724
|
return /* @__PURE__ */ b("div", { className: me.container, children: [
|
|
725
725
|
/* @__PURE__ */ b(
|
|
@@ -727,46 +727,46 @@ function Mo({
|
|
|
727
727
|
{
|
|
728
728
|
className: me.inputContainer,
|
|
729
729
|
style: {
|
|
730
|
-
backgroundColor:
|
|
731
|
-
borderColor:
|
|
730
|
+
backgroundColor: i.inputBackgroundColor,
|
|
731
|
+
borderColor: i.inputBorderColor
|
|
732
732
|
},
|
|
733
733
|
children: [
|
|
734
|
-
/* @__PURE__ */
|
|
734
|
+
/* @__PURE__ */ c(
|
|
735
735
|
Be,
|
|
736
736
|
{
|
|
737
737
|
ref: p,
|
|
738
738
|
type: "text",
|
|
739
739
|
value: r,
|
|
740
|
-
onChange: (g) =>
|
|
740
|
+
onChange: (g) => s(g.target.value),
|
|
741
741
|
onKeyDown: l,
|
|
742
742
|
placeholder: e,
|
|
743
743
|
className: me.input,
|
|
744
744
|
style: {
|
|
745
745
|
backgroundColor: "transparent",
|
|
746
|
-
color:
|
|
746
|
+
color: i.inputTextColor
|
|
747
747
|
},
|
|
748
748
|
autoFocus: n
|
|
749
749
|
}
|
|
750
750
|
),
|
|
751
|
-
/* @__PURE__ */
|
|
751
|
+
/* @__PURE__ */ c("div", { className: me.buttons, children: /* @__PURE__ */ c(
|
|
752
752
|
ye,
|
|
753
753
|
{
|
|
754
|
-
onClick:
|
|
754
|
+
onClick: u,
|
|
755
755
|
disabled: !r.trim(),
|
|
756
756
|
size: "icon",
|
|
757
757
|
className: me.submitButton,
|
|
758
758
|
title: "Send",
|
|
759
759
|
style: {
|
|
760
|
-
backgroundColor:
|
|
761
|
-
color:
|
|
760
|
+
backgroundColor: i.buttonColor,
|
|
761
|
+
color: i.buttonTextColor
|
|
762
762
|
},
|
|
763
|
-
children: /* @__PURE__ */
|
|
763
|
+
children: /* @__PURE__ */ c(ao, { className: me.submitIcon })
|
|
764
764
|
}
|
|
765
765
|
) })
|
|
766
766
|
]
|
|
767
767
|
}
|
|
768
768
|
),
|
|
769
|
-
/* @__PURE__ */
|
|
769
|
+
/* @__PURE__ */ c(
|
|
770
770
|
ye,
|
|
771
771
|
{
|
|
772
772
|
onClick: o,
|
|
@@ -775,11 +775,11 @@ function Mo({
|
|
|
775
775
|
size: "icon",
|
|
776
776
|
className: me.closeButton,
|
|
777
777
|
style: {
|
|
778
|
-
backgroundColor:
|
|
779
|
-
borderColor:
|
|
780
|
-
color:
|
|
778
|
+
backgroundColor: i.inputBackgroundColor,
|
|
779
|
+
borderColor: i.inputBorderColor,
|
|
780
|
+
color: i.textColor
|
|
781
781
|
},
|
|
782
|
-
children: /* @__PURE__ */
|
|
782
|
+
children: /* @__PURE__ */ c(Eo, { className: me.closeIcon })
|
|
783
783
|
}
|
|
784
784
|
)
|
|
785
785
|
] });
|
|
@@ -787,9 +787,9 @@ function Mo({
|
|
|
787
787
|
const Po = "_textarea_7dsc4_1", zo = {
|
|
788
788
|
textarea: Po
|
|
789
789
|
};
|
|
790
|
-
function
|
|
791
|
-
const { theme: n } =
|
|
792
|
-
return /* @__PURE__ */
|
|
790
|
+
function Ao({ className: e, style: t, ...o }) {
|
|
791
|
+
const { theme: n } = K();
|
|
792
|
+
return /* @__PURE__ */ c(
|
|
793
793
|
"textarea",
|
|
794
794
|
{
|
|
795
795
|
"data-slot": "textarea",
|
|
@@ -824,7 +824,7 @@ function ke(e, t) {
|
|
|
824
824
|
return !0;
|
|
825
825
|
}
|
|
826
826
|
}
|
|
827
|
-
function
|
|
827
|
+
function Fo(e) {
|
|
828
828
|
return e.tagName.toLowerCase() === "a";
|
|
829
829
|
}
|
|
830
830
|
const Ho = "_container_3zzoo_1", jo = "_textarea_3zzoo_21", $o = "_button_3zzoo_39", Wo = "_input_3zzoo_47", Vo = "_inputContainer_3zzoo_57", we = {
|
|
@@ -835,39 +835,39 @@ const Ho = "_container_3zzoo_1", jo = "_textarea_3zzoo_21", $o = "_button_3zzoo_
|
|
|
835
835
|
inputContainer: Vo
|
|
836
836
|
};
|
|
837
837
|
function Uo({ element: e, elementData: t }) {
|
|
838
|
-
const { theme: o, labels: n } =
|
|
838
|
+
const { theme: o, labels: n } = K(), [i, r] = E(""), [s, p] = E(""), u = q(null), { sendToParent: l } = Pe(), g = Fo(e);
|
|
839
839
|
W(() => {
|
|
840
|
-
t.isTextNode && t.textContent && r(t.textContent), g && p(e.href || ""),
|
|
840
|
+
t.isTextNode && t.textContent && r(t.textContent), g && p(e.href || ""), u.current && (u.current.focus(), u.current.select());
|
|
841
841
|
}, [t, e, g]);
|
|
842
|
-
const
|
|
842
|
+
const d = () => {
|
|
843
843
|
if (e && ((y) => {
|
|
844
844
|
for (let _ = 0; _ < y.childNodes.length; _++) {
|
|
845
845
|
const x = y.childNodes[_];
|
|
846
846
|
if (x.nodeType === Node.TEXT_NODE && x.textContent?.trim()) {
|
|
847
|
-
x.textContent =
|
|
847
|
+
x.textContent = i;
|
|
848
848
|
break;
|
|
849
849
|
}
|
|
850
850
|
}
|
|
851
|
-
})(e), g &&
|
|
851
|
+
})(e), g && s) {
|
|
852
852
|
const y = e;
|
|
853
|
-
y.href =
|
|
853
|
+
y.href = s, l("INSPECTOR_ATTRIBUTE_UPDATED", {
|
|
854
854
|
element: t,
|
|
855
855
|
attribute: "href",
|
|
856
|
-
value:
|
|
856
|
+
value: s,
|
|
857
857
|
originalValue: y.getAttribute("href") || ""
|
|
858
858
|
});
|
|
859
859
|
}
|
|
860
860
|
l("INSPECTOR_TEXT_UPDATED", {
|
|
861
|
-
text:
|
|
861
|
+
text: i,
|
|
862
862
|
originalText: t.textContent,
|
|
863
863
|
element: t
|
|
864
864
|
});
|
|
865
|
-
},
|
|
866
|
-
f.key === "Enter" && !f.shiftKey && (f.preventDefault(),
|
|
865
|
+
}, a = (f) => {
|
|
866
|
+
f.key === "Enter" && !f.shiftKey && (f.preventDefault(), d());
|
|
867
867
|
};
|
|
868
868
|
return /* @__PURE__ */ b("div", { className: we.container, children: [
|
|
869
869
|
/* @__PURE__ */ b("div", { className: we.inputContainer, children: [
|
|
870
|
-
/* @__PURE__ */
|
|
870
|
+
/* @__PURE__ */ c(
|
|
871
871
|
"label",
|
|
872
872
|
{
|
|
873
873
|
style: {
|
|
@@ -881,13 +881,13 @@ function Uo({ element: e, elementData: t }) {
|
|
|
881
881
|
children: n.textContentLabel || "Text Content"
|
|
882
882
|
}
|
|
883
883
|
),
|
|
884
|
-
/* @__PURE__ */
|
|
885
|
-
|
|
884
|
+
/* @__PURE__ */ c(
|
|
885
|
+
Ao,
|
|
886
886
|
{
|
|
887
|
-
ref:
|
|
888
|
-
value:
|
|
887
|
+
ref: u,
|
|
888
|
+
value: i,
|
|
889
889
|
onInput: (f) => r(f.target.value),
|
|
890
|
-
onKeyDown: (f) =>
|
|
890
|
+
onKeyDown: (f) => a(f),
|
|
891
891
|
placeholder: n.textPlaceholder,
|
|
892
892
|
className: we.textarea,
|
|
893
893
|
style: {
|
|
@@ -899,7 +899,7 @@ function Uo({ element: e, elementData: t }) {
|
|
|
899
899
|
)
|
|
900
900
|
] }),
|
|
901
901
|
g && /* @__PURE__ */ b("div", { className: we.inputContainer, children: [
|
|
902
|
-
/* @__PURE__ */
|
|
902
|
+
/* @__PURE__ */ c(
|
|
903
903
|
"label",
|
|
904
904
|
{
|
|
905
905
|
style: {
|
|
@@ -913,11 +913,11 @@ function Uo({ element: e, elementData: t }) {
|
|
|
913
913
|
children: n.linkUrlLabel || "Link URL (href)"
|
|
914
914
|
}
|
|
915
915
|
),
|
|
916
|
-
/* @__PURE__ */
|
|
916
|
+
/* @__PURE__ */ c(
|
|
917
917
|
Be,
|
|
918
918
|
{
|
|
919
919
|
type: "url",
|
|
920
|
-
value:
|
|
920
|
+
value: s,
|
|
921
921
|
onChange: (f) => p(f.target.value),
|
|
922
922
|
placeholder: "https://example.com",
|
|
923
923
|
className: we.input,
|
|
@@ -929,10 +929,10 @@ function Uo({ element: e, elementData: t }) {
|
|
|
929
929
|
}
|
|
930
930
|
)
|
|
931
931
|
] }),
|
|
932
|
-
/* @__PURE__ */
|
|
932
|
+
/* @__PURE__ */ c("div", { children: /* @__PURE__ */ c(
|
|
933
933
|
ye,
|
|
934
934
|
{
|
|
935
|
-
onClick:
|
|
935
|
+
onClick: d,
|
|
936
936
|
className: we.button,
|
|
937
937
|
style: {
|
|
938
938
|
backgroundColor: o.buttonColor,
|
|
@@ -943,9 +943,9 @@ function Uo({ element: e, elementData: t }) {
|
|
|
943
943
|
) })
|
|
944
944
|
] });
|
|
945
945
|
}
|
|
946
|
-
const
|
|
947
|
-
hiddenInput:
|
|
948
|
-
uploadBox:
|
|
946
|
+
const qo = "_hiddenInput_b1o6c_1", Go = "_uploadBox_b1o6c_29", Xo = "_uploadContent_b1o6c_69", Ko = "_uploadIcon_b1o6c_87", Yo = "_uploadTitle_b1o6c_101", Jo = "_uploadHint_b1o6c_113", Zo = "_previewImage_b1o6c_125", Ce = {
|
|
947
|
+
hiddenInput: qo,
|
|
948
|
+
uploadBox: Go,
|
|
949
949
|
uploadContent: Xo,
|
|
950
950
|
uploadIcon: Ko,
|
|
951
951
|
uploadTitle: Yo,
|
|
@@ -953,44 +953,44 @@ const Go = "_hiddenInput_b1o6c_1", qo = "_uploadBox_b1o6c_29", Xo = "_uploadCont
|
|
|
953
953
|
previewImage: Zo
|
|
954
954
|
};
|
|
955
955
|
function Qo({ onFileSelect: e, previewImage: t }) {
|
|
956
|
-
const { theme: o, labels: n } =
|
|
957
|
-
|
|
958
|
-
},
|
|
959
|
-
const f =
|
|
956
|
+
const { theme: o, labels: n } = K(), i = q(null), [r, s] = E(!1), p = () => {
|
|
957
|
+
i.current?.click();
|
|
958
|
+
}, u = (a) => {
|
|
959
|
+
const f = a.target.files?.[0];
|
|
960
960
|
f && f.type.startsWith("image/") && e(f);
|
|
961
|
-
}, l = (
|
|
962
|
-
|
|
963
|
-
}, g = (
|
|
964
|
-
|
|
965
|
-
},
|
|
966
|
-
|
|
967
|
-
const f =
|
|
961
|
+
}, l = (a) => {
|
|
962
|
+
a.preventDefault(), s(!0);
|
|
963
|
+
}, g = (a) => {
|
|
964
|
+
a.preventDefault(), s(!1);
|
|
965
|
+
}, d = (a) => {
|
|
966
|
+
a.preventDefault(), s(!1);
|
|
967
|
+
const f = a.dataTransfer?.files[0];
|
|
968
968
|
f && f.type.startsWith("image/") && e(f);
|
|
969
969
|
};
|
|
970
970
|
return /* @__PURE__ */ b(mt, { children: [
|
|
971
|
-
/* @__PURE__ */
|
|
971
|
+
/* @__PURE__ */ c(
|
|
972
972
|
"input",
|
|
973
973
|
{
|
|
974
|
-
ref:
|
|
974
|
+
ref: i,
|
|
975
975
|
type: "file",
|
|
976
976
|
accept: "image/*",
|
|
977
|
-
onChange:
|
|
977
|
+
onChange: u,
|
|
978
978
|
className: Ce.hiddenInput
|
|
979
979
|
}
|
|
980
980
|
),
|
|
981
|
-
/* @__PURE__ */
|
|
981
|
+
/* @__PURE__ */ c(
|
|
982
982
|
"div",
|
|
983
983
|
{
|
|
984
984
|
onClick: p,
|
|
985
985
|
onDragOver: l,
|
|
986
986
|
onDragLeave: g,
|
|
987
|
-
onDrop:
|
|
987
|
+
onDrop: d,
|
|
988
988
|
className: Ce.uploadBox,
|
|
989
989
|
style: {
|
|
990
990
|
borderColor: r ? o.buttonColor : o.inputBorderColor,
|
|
991
991
|
backgroundColor: r ? `${o.buttonColor}10` : o.inputBackgroundColor
|
|
992
992
|
},
|
|
993
|
-
children: t ? /* @__PURE__ */
|
|
993
|
+
children: t ? /* @__PURE__ */ c(
|
|
994
994
|
"img",
|
|
995
995
|
{
|
|
996
996
|
src: t,
|
|
@@ -998,7 +998,7 @@ function Qo({ onFileSelect: e, previewImage: t }) {
|
|
|
998
998
|
className: Ce.previewImage
|
|
999
999
|
}
|
|
1000
1000
|
) : /* @__PURE__ */ b("div", { className: Ce.uploadContent, children: [
|
|
1001
|
-
/* @__PURE__ */
|
|
1001
|
+
/* @__PURE__ */ c(
|
|
1002
1002
|
"svg",
|
|
1003
1003
|
{
|
|
1004
1004
|
width: "32",
|
|
@@ -1007,7 +1007,7 @@ function Qo({ onFileSelect: e, previewImage: t }) {
|
|
|
1007
1007
|
fill: "none",
|
|
1008
1008
|
className: Ce.uploadIcon,
|
|
1009
1009
|
style: { color: o.secondaryTextColor },
|
|
1010
|
-
children: /* @__PURE__ */
|
|
1010
|
+
children: /* @__PURE__ */ c(
|
|
1011
1011
|
"path",
|
|
1012
1012
|
{
|
|
1013
1013
|
d: "M21 15V19C21 19.5304 20.7893 20.0391 20.4142 20.4142C20.0391 20.7893 19.5304 21 19 21H5C4.46957 21 3.96086 20.7893 3.58579 20.4142C3.21071 20.0391 3 19.5304 3 19V15M17 8L12 3M12 3L7 8M12 3V15",
|
|
@@ -1019,7 +1019,7 @@ function Qo({ onFileSelect: e, previewImage: t }) {
|
|
|
1019
1019
|
)
|
|
1020
1020
|
}
|
|
1021
1021
|
),
|
|
1022
|
-
/* @__PURE__ */
|
|
1022
|
+
/* @__PURE__ */ c(
|
|
1023
1023
|
"div",
|
|
1024
1024
|
{
|
|
1025
1025
|
className: Ce.uploadTitle,
|
|
@@ -1027,7 +1027,7 @@ function Qo({ onFileSelect: e, previewImage: t }) {
|
|
|
1027
1027
|
children: n.imageUploadTitle || "Click or drag image"
|
|
1028
1028
|
}
|
|
1029
1029
|
),
|
|
1030
|
-
/* @__PURE__ */
|
|
1030
|
+
/* @__PURE__ */ c(
|
|
1031
1031
|
"div",
|
|
1032
1032
|
{
|
|
1033
1033
|
className: Ce.uploadHint,
|
|
@@ -1045,25 +1045,25 @@ const en = "_container_ycoo8_1", tn = "_button_ycoo8_17", lt = {
|
|
|
1045
1045
|
button: tn
|
|
1046
1046
|
};
|
|
1047
1047
|
function on({ element: e, elementData: t }) {
|
|
1048
|
-
const [o, n] =
|
|
1049
|
-
n(
|
|
1050
|
-
const
|
|
1051
|
-
|
|
1048
|
+
const [o, n] = E(null), [i, r] = E(null), { sendToParent: s } = Pe(), { labels: p, theme: u } = K(), l = (d) => {
|
|
1049
|
+
n(d);
|
|
1050
|
+
const a = new FileReader();
|
|
1051
|
+
a.onload = (f) => {
|
|
1052
1052
|
const y = f.target?.result;
|
|
1053
1053
|
r(y);
|
|
1054
|
-
},
|
|
1054
|
+
}, a.readAsDataURL(d);
|
|
1055
1055
|
}, g = () => {
|
|
1056
|
-
if (!(!o || !
|
|
1056
|
+
if (!(!o || !i)) {
|
|
1057
1057
|
if (e.tagName.toLowerCase() === "img")
|
|
1058
|
-
e.src =
|
|
1058
|
+
e.src = i;
|
|
1059
1059
|
else if (window.getComputedStyle(e).backgroundImage !== "none")
|
|
1060
|
-
e.style.backgroundImage = `url("${
|
|
1060
|
+
e.style.backgroundImage = `url("${i}")`;
|
|
1061
1061
|
else {
|
|
1062
|
-
const
|
|
1063
|
-
|
|
1062
|
+
const d = e.querySelector("img");
|
|
1063
|
+
d && (d.src = i);
|
|
1064
1064
|
}
|
|
1065
|
-
|
|
1066
|
-
imageData:
|
|
1065
|
+
s("INSPECTOR_IMAGE_UPDATED", {
|
|
1066
|
+
imageData: i,
|
|
1067
1067
|
imageFile: {
|
|
1068
1068
|
name: o.name,
|
|
1069
1069
|
size: o.size,
|
|
@@ -1075,16 +1075,16 @@ function on({ element: e, elementData: t }) {
|
|
|
1075
1075
|
}
|
|
1076
1076
|
};
|
|
1077
1077
|
return /* @__PURE__ */ b("div", { className: lt.container, children: [
|
|
1078
|
-
/* @__PURE__ */
|
|
1079
|
-
/* @__PURE__ */
|
|
1078
|
+
/* @__PURE__ */ c(Qo, { onFileSelect: l, previewImage: i }),
|
|
1079
|
+
/* @__PURE__ */ c("div", { children: /* @__PURE__ */ c(
|
|
1080
1080
|
ye,
|
|
1081
1081
|
{
|
|
1082
1082
|
onClick: g,
|
|
1083
1083
|
disabled: !o,
|
|
1084
1084
|
className: lt.button,
|
|
1085
1085
|
style: {
|
|
1086
|
-
backgroundColor:
|
|
1087
|
-
color:
|
|
1086
|
+
backgroundColor: u.buttonColor,
|
|
1087
|
+
color: u.buttonTextColor,
|
|
1088
1088
|
opacity: o ? 1 : 0.5
|
|
1089
1089
|
},
|
|
1090
1090
|
children: p.updateImage
|
|
@@ -1096,7 +1096,7 @@ function nn(e) {
|
|
|
1096
1096
|
const t = e.toLowerCase();
|
|
1097
1097
|
return t.includes("monospace") || t.includes("courier") || t.includes("consolas") ? "monospace" : t.includes("serif") || t.includes("times") ? "serif" : "sans-serif";
|
|
1098
1098
|
}
|
|
1099
|
-
function
|
|
1099
|
+
function ct(e) {
|
|
1100
1100
|
const t = window.getComputedStyle(e);
|
|
1101
1101
|
return {
|
|
1102
1102
|
// Layout
|
|
@@ -1146,126 +1146,126 @@ function rn(e) {
|
|
|
1146
1146
|
)), e.paddingTop || e.paddingRight || e.paddingBottom || e.paddingLeft)
|
|
1147
1147
|
t.paddingTop = o(e.paddingTop || "0"), t.paddingRight = o(e.paddingRight || "0"), t.paddingBottom = o(e.paddingBottom || "0"), t.paddingLeft = o(e.paddingLeft || "0");
|
|
1148
1148
|
else if (e.paddingVertical || e.paddingHorizontal) {
|
|
1149
|
-
const n = e.paddingVertical || "0",
|
|
1150
|
-
t.padding = o(`${n} ${
|
|
1149
|
+
const n = e.paddingVertical || "0", i = e.paddingHorizontal || "0";
|
|
1150
|
+
t.padding = o(`${n} ${i}`);
|
|
1151
1151
|
}
|
|
1152
1152
|
if (e.marginTop || e.marginRight || e.marginBottom || e.marginLeft)
|
|
1153
1153
|
t.marginTop = o(e.marginTop || "0"), t.marginRight = o(e.marginRight || "0"), t.marginBottom = o(e.marginBottom || "0"), t.marginLeft = o(e.marginLeft || "0");
|
|
1154
1154
|
else if (e.marginVertical || e.marginHorizontal) {
|
|
1155
|
-
const n = e.marginVertical || "0",
|
|
1156
|
-
t.margin = o(`${n} ${
|
|
1155
|
+
const n = e.marginVertical || "0", i = e.marginHorizontal || "0";
|
|
1156
|
+
t.margin = o(`${n} ${i}`);
|
|
1157
1157
|
}
|
|
1158
1158
|
return t;
|
|
1159
1159
|
}
|
|
1160
1160
|
function an(e) {
|
|
1161
|
-
const t =
|
|
1161
|
+
const t = q(/* @__PURE__ */ new Set());
|
|
1162
1162
|
W(() => {
|
|
1163
1163
|
e && t.current.clear();
|
|
1164
1164
|
}, [e]);
|
|
1165
|
-
const o =
|
|
1166
|
-
(r,
|
|
1165
|
+
const o = Ee(
|
|
1166
|
+
(r, s) => {
|
|
1167
1167
|
if (e)
|
|
1168
1168
|
switch (t.current.add(r), r) {
|
|
1169
1169
|
case "backgroundColor":
|
|
1170
|
-
e.style.setProperty("background-color",
|
|
1170
|
+
e.style.setProperty("background-color", s, "important");
|
|
1171
1171
|
break;
|
|
1172
1172
|
case "height":
|
|
1173
|
-
e.style.setProperty("height",
|
|
1173
|
+
e.style.setProperty("height", s, "important");
|
|
1174
1174
|
break;
|
|
1175
1175
|
case "width":
|
|
1176
|
-
e.style.setProperty("width",
|
|
1176
|
+
e.style.setProperty("width", s, "important");
|
|
1177
1177
|
break;
|
|
1178
1178
|
case "color":
|
|
1179
|
-
e.style.setProperty("color",
|
|
1179
|
+
e.style.setProperty("color", s, "important");
|
|
1180
1180
|
break;
|
|
1181
1181
|
case "fontSize":
|
|
1182
|
-
e.style.setProperty("font-size",
|
|
1182
|
+
e.style.setProperty("font-size", s, "important");
|
|
1183
1183
|
break;
|
|
1184
1184
|
case "fontWeight":
|
|
1185
|
-
e.style.setProperty("font-weight",
|
|
1185
|
+
e.style.setProperty("font-weight", s, "important");
|
|
1186
1186
|
break;
|
|
1187
1187
|
case "fontFamily":
|
|
1188
|
-
e.style.setProperty("font-family",
|
|
1188
|
+
e.style.setProperty("font-family", s, "important");
|
|
1189
1189
|
break;
|
|
1190
1190
|
case "textAlign":
|
|
1191
|
-
e.style.setProperty("text-align",
|
|
1191
|
+
e.style.setProperty("text-align", s, "important");
|
|
1192
1192
|
break;
|
|
1193
1193
|
case "borderRadius":
|
|
1194
|
-
e.style.setProperty("border-radius",
|
|
1194
|
+
e.style.setProperty("border-radius", s, "important");
|
|
1195
1195
|
break;
|
|
1196
1196
|
case "borderWidth":
|
|
1197
|
-
e.style.setProperty("border-width",
|
|
1197
|
+
e.style.setProperty("border-width", s, "important"), e.style.borderStyle || (e.style.setProperty("border-style", "solid", "important"), t.current.add("borderStyle"));
|
|
1198
1198
|
break;
|
|
1199
1199
|
case "borderColor":
|
|
1200
|
-
e.style.setProperty("border-color",
|
|
1200
|
+
e.style.setProperty("border-color", s, "important"), e.style.borderStyle || (e.style.setProperty("border-style", "solid", "important"), t.current.add("borderStyle")), e.style.borderWidth || (e.style.setProperty("border-width", "1px", "important"), t.current.add("borderWidth"));
|
|
1201
1201
|
break;
|
|
1202
1202
|
case "borderStyle":
|
|
1203
|
-
e.style.setProperty("border-style",
|
|
1203
|
+
e.style.setProperty("border-style", s, "important");
|
|
1204
1204
|
break;
|
|
1205
1205
|
case "display":
|
|
1206
|
-
e.style.setProperty("display",
|
|
1206
|
+
e.style.setProperty("display", s, "important");
|
|
1207
1207
|
break;
|
|
1208
1208
|
case "opacity":
|
|
1209
|
-
e.style.setProperty("opacity",
|
|
1209
|
+
e.style.setProperty("opacity", s, "important");
|
|
1210
1210
|
break;
|
|
1211
1211
|
case "flex":
|
|
1212
|
-
e.style.setProperty("flex",
|
|
1212
|
+
e.style.setProperty("flex", s, "important");
|
|
1213
1213
|
break;
|
|
1214
1214
|
case "flexDirection":
|
|
1215
|
-
e.style.setProperty("flex-direction",
|
|
1215
|
+
e.style.setProperty("flex-direction", s, "important");
|
|
1216
1216
|
break;
|
|
1217
1217
|
case "justifyContent":
|
|
1218
|
-
e.style.setProperty("justify-content",
|
|
1218
|
+
e.style.setProperty("justify-content", s, "important");
|
|
1219
1219
|
break;
|
|
1220
1220
|
case "alignItems":
|
|
1221
|
-
e.style.setProperty("align-items",
|
|
1221
|
+
e.style.setProperty("align-items", s, "important");
|
|
1222
1222
|
break;
|
|
1223
1223
|
case "objectFit":
|
|
1224
|
-
e.style.setProperty("object-fit",
|
|
1224
|
+
e.style.setProperty("object-fit", s, "important");
|
|
1225
1225
|
break;
|
|
1226
1226
|
case "textDecoration":
|
|
1227
|
-
e.style.setProperty("text-decoration",
|
|
1227
|
+
e.style.setProperty("text-decoration", s, "important");
|
|
1228
1228
|
break;
|
|
1229
1229
|
case "paddingVertical":
|
|
1230
|
-
e.style.setProperty("padding-top",
|
|
1230
|
+
e.style.setProperty("padding-top", s, "important"), e.style.setProperty("padding-bottom", s, "important");
|
|
1231
1231
|
break;
|
|
1232
1232
|
case "paddingHorizontal":
|
|
1233
|
-
e.style.setProperty("padding-left",
|
|
1233
|
+
e.style.setProperty("padding-left", s, "important"), e.style.setProperty("padding-right", s, "important");
|
|
1234
1234
|
break;
|
|
1235
1235
|
case "paddingTop":
|
|
1236
|
-
e.style.setProperty("padding-top",
|
|
1236
|
+
e.style.setProperty("padding-top", s, "important");
|
|
1237
1237
|
break;
|
|
1238
1238
|
case "paddingRight":
|
|
1239
|
-
e.style.setProperty("padding-right",
|
|
1239
|
+
e.style.setProperty("padding-right", s, "important");
|
|
1240
1240
|
break;
|
|
1241
1241
|
case "paddingBottom":
|
|
1242
|
-
e.style.setProperty("padding-bottom",
|
|
1242
|
+
e.style.setProperty("padding-bottom", s, "important");
|
|
1243
1243
|
break;
|
|
1244
1244
|
case "paddingLeft":
|
|
1245
|
-
e.style.setProperty("padding-left",
|
|
1245
|
+
e.style.setProperty("padding-left", s, "important");
|
|
1246
1246
|
break;
|
|
1247
1247
|
case "marginVertical":
|
|
1248
|
-
e.style.setProperty("margin-top",
|
|
1248
|
+
e.style.setProperty("margin-top", s, "important"), e.style.setProperty("margin-bottom", s, "important");
|
|
1249
1249
|
break;
|
|
1250
1250
|
case "marginHorizontal":
|
|
1251
|
-
e.style.setProperty("margin-left",
|
|
1251
|
+
e.style.setProperty("margin-left", s, "important"), e.style.setProperty("margin-right", s, "important");
|
|
1252
1252
|
break;
|
|
1253
1253
|
case "marginTop":
|
|
1254
|
-
e.style.setProperty("margin-top",
|
|
1254
|
+
e.style.setProperty("margin-top", s, "important");
|
|
1255
1255
|
break;
|
|
1256
1256
|
case "marginRight":
|
|
1257
|
-
e.style.setProperty("margin-right",
|
|
1257
|
+
e.style.setProperty("margin-right", s, "important");
|
|
1258
1258
|
break;
|
|
1259
1259
|
case "marginBottom":
|
|
1260
|
-
e.style.setProperty("margin-bottom",
|
|
1260
|
+
e.style.setProperty("margin-bottom", s, "important");
|
|
1261
1261
|
break;
|
|
1262
1262
|
case "marginLeft":
|
|
1263
|
-
e.style.setProperty("margin-left",
|
|
1263
|
+
e.style.setProperty("margin-left", s, "important");
|
|
1264
1264
|
break;
|
|
1265
1265
|
}
|
|
1266
1266
|
},
|
|
1267
1267
|
[e]
|
|
1268
|
-
), n =
|
|
1268
|
+
), n = Ee(() => {
|
|
1269
1269
|
e && (t.current.forEach((r) => {
|
|
1270
1270
|
switch (r) {
|
|
1271
1271
|
case "backgroundColor":
|
|
@@ -1318,7 +1318,7 @@ function an(e) {
|
|
|
1318
1318
|
break;
|
|
1319
1319
|
}
|
|
1320
1320
|
}), t.current.clear());
|
|
1321
|
-
}, [e]),
|
|
1321
|
+
}, [e]), i = Ee(
|
|
1322
1322
|
(r) => {
|
|
1323
1323
|
if (e) {
|
|
1324
1324
|
switch (r) {
|
|
@@ -1427,17 +1427,17 @@ function an(e) {
|
|
|
1427
1427
|
return {
|
|
1428
1428
|
previewStyle: o,
|
|
1429
1429
|
resetStyles: n,
|
|
1430
|
-
resetSingleProperty:
|
|
1430
|
+
resetSingleProperty: i
|
|
1431
1431
|
};
|
|
1432
1432
|
}
|
|
1433
1433
|
function ln(e) {
|
|
1434
1434
|
const t = [];
|
|
1435
1435
|
if (e.backgroundColor) {
|
|
1436
|
-
const o =
|
|
1436
|
+
const o = cn(e.backgroundColor);
|
|
1437
1437
|
o && t.push(o);
|
|
1438
1438
|
}
|
|
1439
1439
|
if (e.color) {
|
|
1440
|
-
const o =
|
|
1440
|
+
const o = sn(e.color);
|
|
1441
1441
|
o && t.push(o);
|
|
1442
1442
|
}
|
|
1443
1443
|
if (e.fontSize) {
|
|
@@ -1489,11 +1489,11 @@ function ln(e) {
|
|
|
1489
1489
|
o && t.push(o);
|
|
1490
1490
|
}
|
|
1491
1491
|
if (e.justifyContent) {
|
|
1492
|
-
const o =
|
|
1492
|
+
const o = En(e.justifyContent);
|
|
1493
1493
|
o && t.push(o);
|
|
1494
1494
|
}
|
|
1495
1495
|
if (e.alignItems) {
|
|
1496
|
-
const o =
|
|
1496
|
+
const o = Tn(e.alignItems);
|
|
1497
1497
|
o && t.push(o);
|
|
1498
1498
|
}
|
|
1499
1499
|
if (e.objectFit) {
|
|
@@ -1536,7 +1536,7 @@ function ln(e) {
|
|
|
1536
1536
|
}
|
|
1537
1537
|
return t;
|
|
1538
1538
|
}
|
|
1539
|
-
function
|
|
1539
|
+
function cn(e) {
|
|
1540
1540
|
if (e.startsWith("var(--")) {
|
|
1541
1541
|
const o = e.match(/var\(--(\w+)\)/)?.[1];
|
|
1542
1542
|
if (o) return `bg-${o}`;
|
|
@@ -1552,7 +1552,7 @@ function sn(e) {
|
|
|
1552
1552
|
"#10b981": "bg-green-500"
|
|
1553
1553
|
}[e.toLowerCase()] || `bg-[${e}]`;
|
|
1554
1554
|
}
|
|
1555
|
-
function
|
|
1555
|
+
function sn(e) {
|
|
1556
1556
|
if (e.startsWith("var(--")) {
|
|
1557
1557
|
const o = e.match(/var\(--(\w+)\)/)?.[1];
|
|
1558
1558
|
if (o) return `text-${o}`;
|
|
@@ -1620,11 +1620,11 @@ function fn(e) {
|
|
|
1620
1620
|
function hn(e, t) {
|
|
1621
1621
|
const o = [];
|
|
1622
1622
|
if (e) {
|
|
1623
|
-
const n =
|
|
1623
|
+
const n = se(e, "py");
|
|
1624
1624
|
n && o.push(n);
|
|
1625
1625
|
}
|
|
1626
1626
|
if (t) {
|
|
1627
|
-
const n =
|
|
1627
|
+
const n = se(t, "px");
|
|
1628
1628
|
n && o.push(n);
|
|
1629
1629
|
}
|
|
1630
1630
|
return o;
|
|
@@ -1632,16 +1632,16 @@ function hn(e, t) {
|
|
|
1632
1632
|
function mn(e, t) {
|
|
1633
1633
|
const o = [];
|
|
1634
1634
|
if (e) {
|
|
1635
|
-
const n =
|
|
1635
|
+
const n = se(e, "my");
|
|
1636
1636
|
n && o.push(n);
|
|
1637
1637
|
}
|
|
1638
1638
|
if (t) {
|
|
1639
|
-
const n =
|
|
1639
|
+
const n = se(t, "mx");
|
|
1640
1640
|
n && o.push(n);
|
|
1641
1641
|
}
|
|
1642
1642
|
return o;
|
|
1643
1643
|
}
|
|
1644
|
-
function
|
|
1644
|
+
function se(e, t) {
|
|
1645
1645
|
const n = {
|
|
1646
1646
|
"0px": "0",
|
|
1647
1647
|
"4px": "1",
|
|
@@ -1751,7 +1751,7 @@ function Sn(e) {
|
|
|
1751
1751
|
"column-reverse": "flex-col-reverse"
|
|
1752
1752
|
}[e] || null;
|
|
1753
1753
|
}
|
|
1754
|
-
function
|
|
1754
|
+
function En(e) {
|
|
1755
1755
|
return {
|
|
1756
1756
|
"flex-start": "justify-start",
|
|
1757
1757
|
center: "justify-center",
|
|
@@ -1761,7 +1761,7 @@ function Tn(e) {
|
|
|
1761
1761
|
"space-evenly": "justify-evenly"
|
|
1762
1762
|
}[e] || null;
|
|
1763
1763
|
}
|
|
1764
|
-
function
|
|
1764
|
+
function Tn(e) {
|
|
1765
1765
|
return {
|
|
1766
1766
|
"flex-start": "items-start",
|
|
1767
1767
|
center: "items-center",
|
|
@@ -1780,80 +1780,80 @@ function Nn(e) {
|
|
|
1780
1780
|
}[e] || null;
|
|
1781
1781
|
}
|
|
1782
1782
|
function Ln(e, t, o, n) {
|
|
1783
|
-
const
|
|
1783
|
+
const i = [];
|
|
1784
1784
|
if (e) {
|
|
1785
|
-
const r =
|
|
1786
|
-
r &&
|
|
1785
|
+
const r = se(e, "pt");
|
|
1786
|
+
r && i.push(r);
|
|
1787
1787
|
}
|
|
1788
1788
|
if (t) {
|
|
1789
|
-
const r =
|
|
1790
|
-
r &&
|
|
1789
|
+
const r = se(t, "pr");
|
|
1790
|
+
r && i.push(r);
|
|
1791
1791
|
}
|
|
1792
1792
|
if (o) {
|
|
1793
|
-
const r =
|
|
1794
|
-
r &&
|
|
1793
|
+
const r = se(o, "pb");
|
|
1794
|
+
r && i.push(r);
|
|
1795
1795
|
}
|
|
1796
1796
|
if (n) {
|
|
1797
|
-
const r =
|
|
1798
|
-
r &&
|
|
1797
|
+
const r = se(n, "pl");
|
|
1798
|
+
r && i.push(r);
|
|
1799
1799
|
}
|
|
1800
|
-
return
|
|
1800
|
+
return i;
|
|
1801
1801
|
}
|
|
1802
1802
|
function In(e, t, o, n) {
|
|
1803
|
-
const
|
|
1803
|
+
const i = [];
|
|
1804
1804
|
if (e) {
|
|
1805
|
-
const r =
|
|
1806
|
-
r &&
|
|
1805
|
+
const r = se(e, "mt");
|
|
1806
|
+
r && i.push(r);
|
|
1807
1807
|
}
|
|
1808
1808
|
if (t) {
|
|
1809
|
-
const r =
|
|
1810
|
-
r &&
|
|
1809
|
+
const r = se(t, "mr");
|
|
1810
|
+
r && i.push(r);
|
|
1811
1811
|
}
|
|
1812
1812
|
if (o) {
|
|
1813
|
-
const r =
|
|
1814
|
-
r &&
|
|
1813
|
+
const r = se(o, "mb");
|
|
1814
|
+
r && i.push(r);
|
|
1815
1815
|
}
|
|
1816
1816
|
if (n) {
|
|
1817
|
-
const r =
|
|
1818
|
-
r &&
|
|
1817
|
+
const r = se(n, "ml");
|
|
1818
|
+
r && i.push(r);
|
|
1819
1819
|
}
|
|
1820
|
-
return
|
|
1820
|
+
return i;
|
|
1821
1821
|
}
|
|
1822
1822
|
function Se({
|
|
1823
1823
|
open: e = !1,
|
|
1824
1824
|
onOpenChange: t,
|
|
1825
1825
|
children: o
|
|
1826
1826
|
}) {
|
|
1827
|
-
const [n,
|
|
1827
|
+
const [n, i] = E(e);
|
|
1828
1828
|
W(() => {
|
|
1829
|
-
|
|
1829
|
+
i(e);
|
|
1830
1830
|
}, [e]);
|
|
1831
1831
|
const r = () => {
|
|
1832
|
-
const
|
|
1833
|
-
|
|
1832
|
+
const s = !n;
|
|
1833
|
+
i(s), t?.(s);
|
|
1834
1834
|
};
|
|
1835
|
-
return /* @__PURE__ */
|
|
1836
|
-
if (
|
|
1837
|
-
if (
|
|
1838
|
-
return
|
|
1835
|
+
return /* @__PURE__ */ c("div", { "data-collapsible": !0, "data-state": n ? "open" : "closed", children: A.Children.map(o, (s) => {
|
|
1836
|
+
if (A.isValidElement(s)) {
|
|
1837
|
+
if (s.type === be)
|
|
1838
|
+
return A.cloneElement(s, {
|
|
1839
1839
|
onClick: r,
|
|
1840
1840
|
"data-state": n ? "open" : "closed"
|
|
1841
1841
|
});
|
|
1842
|
-
if (
|
|
1843
|
-
return
|
|
1842
|
+
if (s.type === _e)
|
|
1843
|
+
return A.cloneElement(s, {
|
|
1844
1844
|
isOpen: n
|
|
1845
1845
|
});
|
|
1846
1846
|
}
|
|
1847
|
-
return
|
|
1847
|
+
return s;
|
|
1848
1848
|
}) });
|
|
1849
1849
|
}
|
|
1850
|
-
const be =
|
|
1851
|
-
({ asChild: e, children: t, onClick: o, ...n },
|
|
1850
|
+
const be = A.forwardRef(
|
|
1851
|
+
({ asChild: e, children: t, onClick: o, ...n }, i) => e && A.isValidElement(t) ? A.cloneElement(t, {
|
|
1852
1852
|
onClick: (r) => {
|
|
1853
1853
|
o?.(), t.props.onClick?.(r);
|
|
1854
1854
|
},
|
|
1855
1855
|
...n
|
|
1856
|
-
}) : /* @__PURE__ */
|
|
1856
|
+
}) : /* @__PURE__ */ c("button", { ref: i, onClick: o, ...n, children: t })
|
|
1857
1857
|
);
|
|
1858
1858
|
be.displayName = "CollapsibleTrigger";
|
|
1859
1859
|
function _e({
|
|
@@ -1861,29 +1861,29 @@ function _e({
|
|
|
1861
1861
|
className: t,
|
|
1862
1862
|
isOpen: o
|
|
1863
1863
|
}) {
|
|
1864
|
-
const n =
|
|
1864
|
+
const n = q(null), i = q(null), [r, s] = E(o ? "auto" : 0), [p, u] = E(!1);
|
|
1865
1865
|
return W(() => {
|
|
1866
|
-
if (!(!n.current || !
|
|
1866
|
+
if (!(!n.current || !i.current))
|
|
1867
1867
|
if (o) {
|
|
1868
|
-
|
|
1869
|
-
const l =
|
|
1870
|
-
|
|
1868
|
+
u(!0);
|
|
1869
|
+
const l = i.current.scrollHeight;
|
|
1870
|
+
s(0), n.current.offsetHeight, s(l);
|
|
1871
1871
|
const g = setTimeout(() => {
|
|
1872
|
-
|
|
1872
|
+
s("auto"), u(!1);
|
|
1873
1873
|
}, 200);
|
|
1874
1874
|
return () => clearTimeout(g);
|
|
1875
1875
|
} else {
|
|
1876
|
-
|
|
1877
|
-
const l =
|
|
1878
|
-
|
|
1879
|
-
|
|
1876
|
+
u(!0);
|
|
1877
|
+
const l = i.current.scrollHeight;
|
|
1878
|
+
s(l), n.current.offsetHeight, requestAnimationFrame(() => {
|
|
1879
|
+
s(0);
|
|
1880
1880
|
});
|
|
1881
1881
|
const g = setTimeout(() => {
|
|
1882
|
-
|
|
1882
|
+
u(!1);
|
|
1883
1883
|
}, 200);
|
|
1884
1884
|
return () => clearTimeout(g);
|
|
1885
1885
|
}
|
|
1886
|
-
}, [o]), /* @__PURE__ */
|
|
1886
|
+
}, [o]), /* @__PURE__ */ c(
|
|
1887
1887
|
"div",
|
|
1888
1888
|
{
|
|
1889
1889
|
ref: n,
|
|
@@ -1895,24 +1895,24 @@ function _e({
|
|
|
1895
1895
|
transition: "height 200ms cubic-bezier(0.4, 0, 0.2, 1)",
|
|
1896
1896
|
visibility: !o && !p ? "hidden" : "visible"
|
|
1897
1897
|
},
|
|
1898
|
-
children: /* @__PURE__ */
|
|
1898
|
+
children: /* @__PURE__ */ c("div", { ref: i, children: e })
|
|
1899
1899
|
}
|
|
1900
1900
|
);
|
|
1901
1901
|
}
|
|
1902
1902
|
var Oe = { exports: {} }, ee = {};
|
|
1903
|
-
var
|
|
1903
|
+
var st;
|
|
1904
1904
|
function Bn() {
|
|
1905
|
-
if (
|
|
1906
|
-
|
|
1907
|
-
var e =
|
|
1908
|
-
function t(
|
|
1909
|
-
var l = "https://react.dev/errors/" +
|
|
1905
|
+
if (st) return ee;
|
|
1906
|
+
st = 1;
|
|
1907
|
+
var e = A;
|
|
1908
|
+
function t(u) {
|
|
1909
|
+
var l = "https://react.dev/errors/" + u;
|
|
1910
1910
|
if (1 < arguments.length) {
|
|
1911
1911
|
l += "?args[]=" + encodeURIComponent(arguments[1]);
|
|
1912
1912
|
for (var g = 2; g < arguments.length; g++)
|
|
1913
1913
|
l += "&args[]=" + encodeURIComponent(arguments[g]);
|
|
1914
1914
|
}
|
|
1915
|
-
return "Minified React error #" +
|
|
1915
|
+
return "Minified React error #" + u + "; visit " + l + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
|
|
1916
1916
|
}
|
|
1917
1917
|
function o() {
|
|
1918
1918
|
}
|
|
@@ -1932,77 +1932,77 @@ function Bn() {
|
|
|
1932
1932
|
},
|
|
1933
1933
|
p: 0,
|
|
1934
1934
|
findDOMNode: null
|
|
1935
|
-
},
|
|
1936
|
-
function r(
|
|
1937
|
-
var
|
|
1935
|
+
}, i = Symbol.for("react.portal");
|
|
1936
|
+
function r(u, l, g) {
|
|
1937
|
+
var d = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null;
|
|
1938
1938
|
return {
|
|
1939
|
-
$$typeof:
|
|
1940
|
-
key:
|
|
1941
|
-
children:
|
|
1939
|
+
$$typeof: i,
|
|
1940
|
+
key: d == null ? null : "" + d,
|
|
1941
|
+
children: u,
|
|
1942
1942
|
containerInfo: l,
|
|
1943
1943
|
implementation: g
|
|
1944
1944
|
};
|
|
1945
1945
|
}
|
|
1946
|
-
var
|
|
1947
|
-
function p(
|
|
1948
|
-
if (
|
|
1946
|
+
var s = e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
1947
|
+
function p(u, l) {
|
|
1948
|
+
if (u === "font") return "";
|
|
1949
1949
|
if (typeof l == "string")
|
|
1950
1950
|
return l === "use-credentials" ? l : "";
|
|
1951
1951
|
}
|
|
1952
|
-
return ee.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = n, ee.createPortal = function(
|
|
1952
|
+
return ee.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = n, ee.createPortal = function(u, l) {
|
|
1953
1953
|
var g = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null;
|
|
1954
1954
|
if (!l || l.nodeType !== 1 && l.nodeType !== 9 && l.nodeType !== 11)
|
|
1955
1955
|
throw Error(t(299));
|
|
1956
|
-
return r(
|
|
1957
|
-
}, ee.flushSync = function(
|
|
1958
|
-
var l =
|
|
1956
|
+
return r(u, l, null, g);
|
|
1957
|
+
}, ee.flushSync = function(u) {
|
|
1958
|
+
var l = s.T, g = n.p;
|
|
1959
1959
|
try {
|
|
1960
|
-
if (
|
|
1960
|
+
if (s.T = null, n.p = 2, u) return u();
|
|
1961
1961
|
} finally {
|
|
1962
|
-
|
|
1962
|
+
s.T = l, n.p = g, n.d.f();
|
|
1963
1963
|
}
|
|
1964
|
-
}, ee.preconnect = function(
|
|
1965
|
-
typeof
|
|
1966
|
-
}, ee.prefetchDNS = function(
|
|
1967
|
-
typeof
|
|
1968
|
-
}, ee.preinit = function(
|
|
1969
|
-
if (typeof
|
|
1970
|
-
var g = l.as,
|
|
1964
|
+
}, ee.preconnect = function(u, l) {
|
|
1965
|
+
typeof u == "string" && (l ? (l = l.crossOrigin, l = typeof l == "string" ? l === "use-credentials" ? l : "" : void 0) : l = null, n.d.C(u, l));
|
|
1966
|
+
}, ee.prefetchDNS = function(u) {
|
|
1967
|
+
typeof u == "string" && n.d.D(u);
|
|
1968
|
+
}, ee.preinit = function(u, l) {
|
|
1969
|
+
if (typeof u == "string" && l && typeof l.as == "string") {
|
|
1970
|
+
var g = l.as, d = p(g, l.crossOrigin), a = typeof l.integrity == "string" ? l.integrity : void 0, f = typeof l.fetchPriority == "string" ? l.fetchPriority : void 0;
|
|
1971
1971
|
g === "style" ? n.d.S(
|
|
1972
|
-
|
|
1972
|
+
u,
|
|
1973
1973
|
typeof l.precedence == "string" ? l.precedence : void 0,
|
|
1974
1974
|
{
|
|
1975
|
-
crossOrigin:
|
|
1976
|
-
integrity:
|
|
1975
|
+
crossOrigin: d,
|
|
1976
|
+
integrity: a,
|
|
1977
1977
|
fetchPriority: f
|
|
1978
1978
|
}
|
|
1979
|
-
) : g === "script" && n.d.X(
|
|
1980
|
-
crossOrigin:
|
|
1981
|
-
integrity:
|
|
1979
|
+
) : g === "script" && n.d.X(u, {
|
|
1980
|
+
crossOrigin: d,
|
|
1981
|
+
integrity: a,
|
|
1982
1982
|
fetchPriority: f,
|
|
1983
1983
|
nonce: typeof l.nonce == "string" ? l.nonce : void 0
|
|
1984
1984
|
});
|
|
1985
1985
|
}
|
|
1986
|
-
}, ee.preinitModule = function(
|
|
1987
|
-
if (typeof
|
|
1986
|
+
}, ee.preinitModule = function(u, l) {
|
|
1987
|
+
if (typeof u == "string")
|
|
1988
1988
|
if (typeof l == "object" && l !== null) {
|
|
1989
1989
|
if (l.as == null || l.as === "script") {
|
|
1990
1990
|
var g = p(
|
|
1991
1991
|
l.as,
|
|
1992
1992
|
l.crossOrigin
|
|
1993
1993
|
);
|
|
1994
|
-
n.d.M(
|
|
1994
|
+
n.d.M(u, {
|
|
1995
1995
|
crossOrigin: g,
|
|
1996
1996
|
integrity: typeof l.integrity == "string" ? l.integrity : void 0,
|
|
1997
1997
|
nonce: typeof l.nonce == "string" ? l.nonce : void 0
|
|
1998
1998
|
});
|
|
1999
1999
|
}
|
|
2000
|
-
} else l == null && n.d.M(
|
|
2001
|
-
}, ee.preload = function(
|
|
2002
|
-
if (typeof
|
|
2003
|
-
var g = l.as,
|
|
2004
|
-
n.d.L(
|
|
2005
|
-
crossOrigin:
|
|
2000
|
+
} else l == null && n.d.M(u);
|
|
2001
|
+
}, ee.preload = function(u, l) {
|
|
2002
|
+
if (typeof u == "string" && typeof l == "object" && l !== null && typeof l.as == "string") {
|
|
2003
|
+
var g = l.as, d = p(g, l.crossOrigin);
|
|
2004
|
+
n.d.L(u, g, {
|
|
2005
|
+
crossOrigin: d,
|
|
2006
2006
|
integrity: typeof l.integrity == "string" ? l.integrity : void 0,
|
|
2007
2007
|
nonce: typeof l.nonce == "string" ? l.nonce : void 0,
|
|
2008
2008
|
type: typeof l.type == "string" ? l.type : void 0,
|
|
@@ -2013,24 +2013,24 @@ function Bn() {
|
|
|
2013
2013
|
media: typeof l.media == "string" ? l.media : void 0
|
|
2014
2014
|
});
|
|
2015
2015
|
}
|
|
2016
|
-
}, ee.preloadModule = function(
|
|
2017
|
-
if (typeof
|
|
2016
|
+
}, ee.preloadModule = function(u, l) {
|
|
2017
|
+
if (typeof u == "string")
|
|
2018
2018
|
if (l) {
|
|
2019
2019
|
var g = p(l.as, l.crossOrigin);
|
|
2020
|
-
n.d.m(
|
|
2020
|
+
n.d.m(u, {
|
|
2021
2021
|
as: typeof l.as == "string" && l.as !== "script" ? l.as : void 0,
|
|
2022
2022
|
crossOrigin: g,
|
|
2023
2023
|
integrity: typeof l.integrity == "string" ? l.integrity : void 0
|
|
2024
2024
|
});
|
|
2025
|
-
} else n.d.m(
|
|
2026
|
-
}, ee.requestFormReset = function(
|
|
2027
|
-
n.d.r(
|
|
2028
|
-
}, ee.unstable_batchedUpdates = function(
|
|
2029
|
-
return
|
|
2030
|
-
}, ee.useFormState = function(
|
|
2031
|
-
return
|
|
2025
|
+
} else n.d.m(u);
|
|
2026
|
+
}, ee.requestFormReset = function(u) {
|
|
2027
|
+
n.d.r(u);
|
|
2028
|
+
}, ee.unstable_batchedUpdates = function(u, l) {
|
|
2029
|
+
return u(l);
|
|
2030
|
+
}, ee.useFormState = function(u, l, g) {
|
|
2031
|
+
return s.H.useFormState(u, l, g);
|
|
2032
2032
|
}, ee.useFormStatus = function() {
|
|
2033
|
-
return
|
|
2033
|
+
return s.H.useHostTransitionStatus();
|
|
2034
2034
|
}, ee.version = "19.2.0", ee;
|
|
2035
2035
|
}
|
|
2036
2036
|
var te = {};
|
|
@@ -2039,10 +2039,10 @@ function Rn() {
|
|
|
2039
2039
|
return dt || (dt = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
2040
2040
|
function e() {
|
|
2041
2041
|
}
|
|
2042
|
-
function t(
|
|
2043
|
-
return "" +
|
|
2042
|
+
function t(d) {
|
|
2043
|
+
return "" + d;
|
|
2044
2044
|
}
|
|
2045
|
-
function o(
|
|
2045
|
+
function o(d, a, f) {
|
|
2046
2046
|
var y = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null;
|
|
2047
2047
|
try {
|
|
2048
2048
|
t(y);
|
|
@@ -2056,34 +2056,34 @@ function Rn() {
|
|
|
2056
2056
|
), t(y)), {
|
|
2057
2057
|
$$typeof: l,
|
|
2058
2058
|
key: y == null ? null : "" + y,
|
|
2059
|
-
children:
|
|
2060
|
-
containerInfo:
|
|
2059
|
+
children: d,
|
|
2060
|
+
containerInfo: a,
|
|
2061
2061
|
implementation: f
|
|
2062
2062
|
};
|
|
2063
2063
|
}
|
|
2064
|
-
function n(
|
|
2065
|
-
if (
|
|
2066
|
-
if (typeof
|
|
2067
|
-
return
|
|
2064
|
+
function n(d, a) {
|
|
2065
|
+
if (d === "font") return "";
|
|
2066
|
+
if (typeof a == "string")
|
|
2067
|
+
return a === "use-credentials" ? a : "";
|
|
2068
2068
|
}
|
|
2069
|
-
function
|
|
2070
|
-
return
|
|
2069
|
+
function i(d) {
|
|
2070
|
+
return d === null ? "`null`" : d === void 0 ? "`undefined`" : d === "" ? "an empty string" : 'something with type "' + typeof d + '"';
|
|
2071
2071
|
}
|
|
2072
|
-
function r(
|
|
2073
|
-
return
|
|
2072
|
+
function r(d) {
|
|
2073
|
+
return d === null ? "`null`" : d === void 0 ? "`undefined`" : d === "" ? "an empty string" : typeof d == "string" ? JSON.stringify(d) : typeof d == "number" ? "`" + d + "`" : 'something with type "' + typeof d + '"';
|
|
2074
2074
|
}
|
|
2075
|
-
function
|
|
2076
|
-
var
|
|
2077
|
-
return
|
|
2075
|
+
function s() {
|
|
2076
|
+
var d = g.H;
|
|
2077
|
+
return d === null && console.error(
|
|
2078
2078
|
`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
2079
2079
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
2080
2080
|
2. You might be breaking the Rules of Hooks
|
|
2081
2081
|
3. You might have more than one copy of React in the same app
|
|
2082
2082
|
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`
|
|
2083
|
-
),
|
|
2083
|
+
), d;
|
|
2084
2084
|
}
|
|
2085
2085
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
2086
|
-
var p =
|
|
2086
|
+
var p = A, u = {
|
|
2087
2087
|
d: {
|
|
2088
2088
|
f: e,
|
|
2089
2089
|
r: function() {
|
|
@@ -2104,146 +2104,146 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
2104
2104
|
}, l = Symbol.for("react.portal"), g = p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
2105
2105
|
typeof Map == "function" && Map.prototype != null && typeof Map.prototype.forEach == "function" && typeof Set == "function" && Set.prototype != null && typeof Set.prototype.clear == "function" && typeof Set.prototype.forEach == "function" || console.error(
|
|
2106
2106
|
"React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"
|
|
2107
|
-
), te.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
|
|
2107
|
+
), te.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = u, te.createPortal = function(d, a) {
|
|
2108
2108
|
var f = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null;
|
|
2109
|
-
if (!
|
|
2109
|
+
if (!a || a.nodeType !== 1 && a.nodeType !== 9 && a.nodeType !== 11)
|
|
2110
2110
|
throw Error("Target container is not a DOM element.");
|
|
2111
|
-
return o(
|
|
2112
|
-
}, te.flushSync = function(
|
|
2113
|
-
var
|
|
2111
|
+
return o(d, a, null, f);
|
|
2112
|
+
}, te.flushSync = function(d) {
|
|
2113
|
+
var a = g.T, f = u.p;
|
|
2114
2114
|
try {
|
|
2115
|
-
if (g.T = null,
|
|
2116
|
-
return
|
|
2115
|
+
if (g.T = null, u.p = 2, d)
|
|
2116
|
+
return d();
|
|
2117
2117
|
} finally {
|
|
2118
|
-
g.T =
|
|
2118
|
+
g.T = a, u.p = f, u.d.f() && console.error(
|
|
2119
2119
|
"flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."
|
|
2120
2120
|
);
|
|
2121
2121
|
}
|
|
2122
|
-
}, te.preconnect = function(
|
|
2123
|
-
typeof
|
|
2122
|
+
}, te.preconnect = function(d, a) {
|
|
2123
|
+
typeof d == "string" && d ? a != null && typeof a != "object" ? console.error(
|
|
2124
2124
|
"ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",
|
|
2125
|
-
r(
|
|
2126
|
-
) :
|
|
2125
|
+
r(a)
|
|
2126
|
+
) : a != null && typeof a.crossOrigin != "string" && console.error(
|
|
2127
2127
|
"ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",
|
|
2128
|
-
a
|
|
2128
|
+
i(a.crossOrigin)
|
|
2129
2129
|
) : console.error(
|
|
2130
2130
|
"ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
|
2131
|
-
|
|
2132
|
-
), typeof
|
|
2133
|
-
}, te.prefetchDNS = function(
|
|
2134
|
-
if (typeof
|
|
2131
|
+
i(d)
|
|
2132
|
+
), typeof d == "string" && (a ? (a = a.crossOrigin, a = typeof a == "string" ? a === "use-credentials" ? a : "" : void 0) : a = null, u.d.C(d, a));
|
|
2133
|
+
}, te.prefetchDNS = function(d) {
|
|
2134
|
+
if (typeof d != "string" || !d)
|
|
2135
2135
|
console.error(
|
|
2136
2136
|
"ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
|
2137
|
-
|
|
2137
|
+
i(d)
|
|
2138
2138
|
);
|
|
2139
2139
|
else if (1 < arguments.length) {
|
|
2140
|
-
var
|
|
2141
|
-
typeof
|
|
2140
|
+
var a = arguments[1];
|
|
2141
|
+
typeof a == "object" && a.hasOwnProperty("crossOrigin") ? console.error(
|
|
2142
2142
|
"ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",
|
|
2143
|
-
r(
|
|
2143
|
+
r(a)
|
|
2144
2144
|
) : console.error(
|
|
2145
2145
|
"ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",
|
|
2146
|
-
r(
|
|
2146
|
+
r(a)
|
|
2147
2147
|
);
|
|
2148
2148
|
}
|
|
2149
|
-
typeof
|
|
2150
|
-
}, te.preinit = function(
|
|
2151
|
-
if (typeof
|
|
2149
|
+
typeof d == "string" && u.d.D(d);
|
|
2150
|
+
}, te.preinit = function(d, a) {
|
|
2151
|
+
if (typeof d == "string" && d ? a == null || typeof a != "object" ? console.error(
|
|
2152
2152
|
"ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",
|
|
2153
|
-
r(
|
|
2154
|
-
) :
|
|
2153
|
+
r(a)
|
|
2154
|
+
) : a.as !== "style" && a.as !== "script" && console.error(
|
|
2155
2155
|
'ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',
|
|
2156
|
-
r(
|
|
2156
|
+
r(a.as)
|
|
2157
2157
|
) : console.error(
|
|
2158
2158
|
"ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
|
2159
|
-
|
|
2160
|
-
), typeof
|
|
2161
|
-
var f =
|
|
2162
|
-
f === "style" ?
|
|
2163
|
-
|
|
2164
|
-
typeof
|
|
2159
|
+
i(d)
|
|
2160
|
+
), typeof d == "string" && a && typeof a.as == "string") {
|
|
2161
|
+
var f = a.as, y = n(f, a.crossOrigin), _ = typeof a.integrity == "string" ? a.integrity : void 0, x = typeof a.fetchPriority == "string" ? a.fetchPriority : void 0;
|
|
2162
|
+
f === "style" ? u.d.S(
|
|
2163
|
+
d,
|
|
2164
|
+
typeof a.precedence == "string" ? a.precedence : void 0,
|
|
2165
2165
|
{
|
|
2166
2166
|
crossOrigin: y,
|
|
2167
2167
|
integrity: _,
|
|
2168
2168
|
fetchPriority: x
|
|
2169
2169
|
}
|
|
2170
|
-
) : f === "script" &&
|
|
2170
|
+
) : f === "script" && u.d.X(d, {
|
|
2171
2171
|
crossOrigin: y,
|
|
2172
2172
|
integrity: _,
|
|
2173
2173
|
fetchPriority: x,
|
|
2174
|
-
nonce: typeof
|
|
2174
|
+
nonce: typeof a.nonce == "string" ? a.nonce : void 0
|
|
2175
2175
|
});
|
|
2176
2176
|
}
|
|
2177
|
-
}, te.preinitModule = function(
|
|
2177
|
+
}, te.preinitModule = function(d, a) {
|
|
2178
2178
|
var f = "";
|
|
2179
|
-
if (typeof
|
|
2179
|
+
if (typeof d == "string" && d || (f += " The `href` argument encountered was " + i(d) + "."), a !== void 0 && typeof a != "object" ? f += " The `options` argument encountered was " + i(a) + "." : a && "as" in a && a.as !== "script" && (f += " The `as` option encountered was " + r(a.as) + "."), f)
|
|
2180
2180
|
console.error(
|
|
2181
2181
|
"ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",
|
|
2182
2182
|
f
|
|
2183
2183
|
);
|
|
2184
2184
|
else
|
|
2185
|
-
switch (f =
|
|
2185
|
+
switch (f = a && typeof a.as == "string" ? a.as : "script", f) {
|
|
2186
2186
|
case "script":
|
|
2187
2187
|
break;
|
|
2188
2188
|
default:
|
|
2189
2189
|
f = r(f), console.error(
|
|
2190
2190
|
'ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',
|
|
2191
2191
|
f,
|
|
2192
|
-
|
|
2192
|
+
d
|
|
2193
2193
|
);
|
|
2194
2194
|
}
|
|
2195
|
-
typeof
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
),
|
|
2195
|
+
typeof d == "string" && (typeof a == "object" && a !== null ? (a.as == null || a.as === "script") && (f = n(
|
|
2196
|
+
a.as,
|
|
2197
|
+
a.crossOrigin
|
|
2198
|
+
), u.d.M(d, {
|
|
2199
2199
|
crossOrigin: f,
|
|
2200
|
-
integrity: typeof
|
|
2201
|
-
nonce: typeof
|
|
2202
|
-
})) :
|
|
2203
|
-
}, te.preload = function(
|
|
2200
|
+
integrity: typeof a.integrity == "string" ? a.integrity : void 0,
|
|
2201
|
+
nonce: typeof a.nonce == "string" ? a.nonce : void 0
|
|
2202
|
+
})) : a == null && u.d.M(d));
|
|
2203
|
+
}, te.preload = function(d, a) {
|
|
2204
2204
|
var f = "";
|
|
2205
|
-
if (typeof
|
|
2205
|
+
if (typeof d == "string" && d || (f += " The `href` argument encountered was " + i(d) + "."), a == null || typeof a != "object" ? f += " The `options` argument encountered was " + i(a) + "." : typeof a.as == "string" && a.as || (f += " The `as` option encountered was " + i(a.as) + "."), f && console.error(
|
|
2206
2206
|
'ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',
|
|
2207
2207
|
f
|
|
2208
|
-
), typeof
|
|
2209
|
-
f =
|
|
2208
|
+
), typeof d == "string" && typeof a == "object" && a !== null && typeof a.as == "string") {
|
|
2209
|
+
f = a.as;
|
|
2210
2210
|
var y = n(
|
|
2211
2211
|
f,
|
|
2212
|
-
|
|
2212
|
+
a.crossOrigin
|
|
2213
2213
|
);
|
|
2214
|
-
|
|
2214
|
+
u.d.L(d, f, {
|
|
2215
2215
|
crossOrigin: y,
|
|
2216
|
-
integrity: typeof
|
|
2217
|
-
nonce: typeof
|
|
2218
|
-
type: typeof
|
|
2219
|
-
fetchPriority: typeof
|
|
2220
|
-
referrerPolicy: typeof
|
|
2221
|
-
imageSrcSet: typeof
|
|
2222
|
-
imageSizes: typeof
|
|
2223
|
-
media: typeof
|
|
2216
|
+
integrity: typeof a.integrity == "string" ? a.integrity : void 0,
|
|
2217
|
+
nonce: typeof a.nonce == "string" ? a.nonce : void 0,
|
|
2218
|
+
type: typeof a.type == "string" ? a.type : void 0,
|
|
2219
|
+
fetchPriority: typeof a.fetchPriority == "string" ? a.fetchPriority : void 0,
|
|
2220
|
+
referrerPolicy: typeof a.referrerPolicy == "string" ? a.referrerPolicy : void 0,
|
|
2221
|
+
imageSrcSet: typeof a.imageSrcSet == "string" ? a.imageSrcSet : void 0,
|
|
2222
|
+
imageSizes: typeof a.imageSizes == "string" ? a.imageSizes : void 0,
|
|
2223
|
+
media: typeof a.media == "string" ? a.media : void 0
|
|
2224
2224
|
});
|
|
2225
2225
|
}
|
|
2226
|
-
}, te.preloadModule = function(
|
|
2226
|
+
}, te.preloadModule = function(d, a) {
|
|
2227
2227
|
var f = "";
|
|
2228
|
-
typeof
|
|
2228
|
+
typeof d == "string" && d || (f += " The `href` argument encountered was " + i(d) + "."), a !== void 0 && typeof a != "object" ? f += " The `options` argument encountered was " + i(a) + "." : a && "as" in a && typeof a.as != "string" && (f += " The `as` option encountered was " + i(a.as) + "."), f && console.error(
|
|
2229
2229
|
'ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',
|
|
2230
2230
|
f
|
|
2231
|
-
), typeof
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
),
|
|
2235
|
-
as: typeof
|
|
2231
|
+
), typeof d == "string" && (a ? (f = n(
|
|
2232
|
+
a.as,
|
|
2233
|
+
a.crossOrigin
|
|
2234
|
+
), u.d.m(d, {
|
|
2235
|
+
as: typeof a.as == "string" && a.as !== "script" ? a.as : void 0,
|
|
2236
2236
|
crossOrigin: f,
|
|
2237
|
-
integrity: typeof
|
|
2238
|
-
})) :
|
|
2239
|
-
}, te.requestFormReset = function(
|
|
2240
|
-
|
|
2241
|
-
}, te.unstable_batchedUpdates = function(
|
|
2242
|
-
return
|
|
2243
|
-
}, te.useFormState = function(
|
|
2244
|
-
return
|
|
2237
|
+
integrity: typeof a.integrity == "string" ? a.integrity : void 0
|
|
2238
|
+
})) : u.d.m(d));
|
|
2239
|
+
}, te.requestFormReset = function(d) {
|
|
2240
|
+
u.d.r(d);
|
|
2241
|
+
}, te.unstable_batchedUpdates = function(d, a) {
|
|
2242
|
+
return d(a);
|
|
2243
|
+
}, te.useFormState = function(d, a, f) {
|
|
2244
|
+
return s().useFormState(d, a, f);
|
|
2245
2245
|
}, te.useFormStatus = function() {
|
|
2246
|
-
return
|
|
2246
|
+
return s().useHostTransitionStatus();
|
|
2247
2247
|
}, te.version = "19.2.0", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
2248
2248
|
})()), te;
|
|
2249
2249
|
}
|
|
@@ -2276,48 +2276,48 @@ function ze() {
|
|
|
2276
2276
|
}
|
|
2277
2277
|
function _t(e, t) {
|
|
2278
2278
|
if (e == null) return {};
|
|
2279
|
-
var o, n,
|
|
2280
|
-
for (n = 0; n < r.length; n++) t.indexOf(o = r[n]) >= 0 || (
|
|
2281
|
-
return
|
|
2279
|
+
var o, n, i = {}, r = Object.keys(e);
|
|
2280
|
+
for (n = 0; n < r.length; n++) t.indexOf(o = r[n]) >= 0 || (i[o] = e[o]);
|
|
2281
|
+
return i;
|
|
2282
2282
|
}
|
|
2283
|
-
function
|
|
2284
|
-
var t =
|
|
2283
|
+
function Ge(e) {
|
|
2284
|
+
var t = q(e), o = q(function(n) {
|
|
2285
2285
|
t.current && t.current(n);
|
|
2286
2286
|
});
|
|
2287
2287
|
return t.current = e, o.current;
|
|
2288
2288
|
}
|
|
2289
|
-
var
|
|
2289
|
+
var Te = function(e, t, o) {
|
|
2290
2290
|
return t === void 0 && (t = 0), o === void 0 && (o = 1), e > o ? o : e < t ? t : e;
|
|
2291
2291
|
}, Le = function(e) {
|
|
2292
2292
|
return "touches" in e;
|
|
2293
2293
|
}, Xe = function(e) {
|
|
2294
2294
|
return e && e.ownerDocument.defaultView || self;
|
|
2295
2295
|
}, pt = function(e, t, o) {
|
|
2296
|
-
var n = e.getBoundingClientRect(),
|
|
2297
|
-
for (var p = 0; p < r.length; p++) if (r[p].identifier ===
|
|
2296
|
+
var n = e.getBoundingClientRect(), i = Le(t) ? (function(r, s) {
|
|
2297
|
+
for (var p = 0; p < r.length; p++) if (r[p].identifier === s) return r[p];
|
|
2298
2298
|
return r[0];
|
|
2299
2299
|
})(t.touches, o) : t;
|
|
2300
|
-
return { left:
|
|
2300
|
+
return { left: Te((i.pageX - (n.left + Xe(e).pageXOffset)) / n.width), top: Te((i.pageY - (n.top + Xe(e).pageYOffset)) / n.height) };
|
|
2301
2301
|
}, gt = function(e) {
|
|
2302
2302
|
!Le(e) && e.preventDefault();
|
|
2303
|
-
}, Je =
|
|
2304
|
-
var t = e.onMove, o = e.onKey, n = _t(e, ["onMove", "onKey"]),
|
|
2303
|
+
}, Je = A.memo(function(e) {
|
|
2304
|
+
var t = e.onMove, o = e.onKey, n = _t(e, ["onMove", "onKey"]), i = q(null), r = Ge(t), s = Ge(o), p = q(null), u = q(!1), l = Me(function() {
|
|
2305
2305
|
var f = function(x) {
|
|
2306
|
-
gt(x), (Le(x) ? x.touches.length > 0 : x.buttons > 0) &&
|
|
2306
|
+
gt(x), (Le(x) ? x.touches.length > 0 : x.buttons > 0) && i.current ? r(pt(i.current, x, p.current)) : _(!1);
|
|
2307
2307
|
}, y = function() {
|
|
2308
2308
|
return _(!1);
|
|
2309
2309
|
};
|
|
2310
2310
|
function _(x) {
|
|
2311
|
-
var L =
|
|
2311
|
+
var L = u.current, S = Xe(i.current), C = x ? S.addEventListener : S.removeEventListener;
|
|
2312
2312
|
C(L ? "touchmove" : "mousemove", f), C(L ? "touchend" : "mouseup", y);
|
|
2313
2313
|
}
|
|
2314
2314
|
return [function(x) {
|
|
2315
|
-
var L = x.nativeEvent, S =
|
|
2315
|
+
var L = x.nativeEvent, S = i.current;
|
|
2316
2316
|
if (S && (gt(L), !(function(M, k) {
|
|
2317
2317
|
return k && !Le(M);
|
|
2318
|
-
})(L,
|
|
2318
|
+
})(L, u.current) && S)) {
|
|
2319
2319
|
if (Le(L)) {
|
|
2320
|
-
|
|
2320
|
+
u.current = !0;
|
|
2321
2321
|
var C = L.changedTouches || [];
|
|
2322
2322
|
C.length && (p.current = C[0].identifier);
|
|
2323
2323
|
}
|
|
@@ -2325,22 +2325,22 @@ var Ee = function(e, t, o) {
|
|
|
2325
2325
|
}
|
|
2326
2326
|
}, function(x) {
|
|
2327
2327
|
var L = x.which || x.keyCode;
|
|
2328
|
-
L < 37 || L > 40 || (x.preventDefault(),
|
|
2328
|
+
L < 37 || L > 40 || (x.preventDefault(), s({ left: L === 39 ? 0.05 : L === 37 ? -0.05 : 0, top: L === 40 ? 0.05 : L === 38 ? -0.05 : 0 }));
|
|
2329
2329
|
}, _];
|
|
2330
|
-
}, [
|
|
2330
|
+
}, [s, r]), g = l[0], d = l[1], a = l[2];
|
|
2331
2331
|
return W(function() {
|
|
2332
|
-
return
|
|
2333
|
-
}, [
|
|
2334
|
-
}),
|
|
2332
|
+
return a;
|
|
2333
|
+
}, [a]), A.createElement("div", ze({}, n, { onTouchStart: g, onMouseDown: g, className: "react-colorful__interactive", ref: i, onKeyDown: d, tabIndex: 0, role: "slider" }));
|
|
2334
|
+
}), Ae = function(e) {
|
|
2335
2335
|
return e.filter(Boolean).join(" ");
|
|
2336
2336
|
}, Ze = function(e) {
|
|
2337
|
-
var t = e.color, o = e.left, n = e.top,
|
|
2338
|
-
return
|
|
2339
|
-
},
|
|
2337
|
+
var t = e.color, o = e.left, n = e.top, i = n === void 0 ? 0.5 : n, r = Ae(["react-colorful__pointer", e.className]);
|
|
2338
|
+
return A.createElement("div", { className: r, style: { top: 100 * i + "%", left: 100 * o + "%" } }, A.createElement("div", { className: "react-colorful__pointer-fill", style: { backgroundColor: t } }));
|
|
2339
|
+
}, ie = function(e, t, o) {
|
|
2340
2340
|
return t === void 0 && (t = 0), o === void 0 && (o = Math.pow(10, t)), Math.round(o * e) / o;
|
|
2341
2341
|
}, kt = function(e) {
|
|
2342
|
-
var t = e.s, o = e.v, n = e.a,
|
|
2343
|
-
return { h:
|
|
2342
|
+
var t = e.s, o = e.v, n = e.a, i = (200 - t) * o / 100;
|
|
2343
|
+
return { h: ie(e.h), s: ie(i > 0 && i < 200 ? t * o / 100 / (i <= 100 ? i : 200 - i) * 100 : 0), l: ie(i / 2), a: ie(n, 2) };
|
|
2344
2344
|
}, Ke = function(e) {
|
|
2345
2345
|
var t = kt(e);
|
|
2346
2346
|
return "hsl(" + t.h + ", " + t.s + "%, " + t.l + "%)";
|
|
@@ -2348,56 +2348,56 @@ var Ee = function(e, t, o) {
|
|
|
2348
2348
|
var t = kt(e);
|
|
2349
2349
|
return "hsla(" + t.h + ", " + t.s + "%, " + t.l + "%, " + t.a + ")";
|
|
2350
2350
|
}, Dn = function(e) {
|
|
2351
|
-
var t = e.h, o = e.s, n = e.v,
|
|
2351
|
+
var t = e.h, o = e.s, n = e.v, i = e.a;
|
|
2352
2352
|
t = t / 360 * 6, o /= 100, n /= 100;
|
|
2353
|
-
var r = Math.floor(t),
|
|
2354
|
-
return { r:
|
|
2353
|
+
var r = Math.floor(t), s = n * (1 - o), p = n * (1 - (t - r) * o), u = n * (1 - (1 - t + r) * o), l = r % 6;
|
|
2354
|
+
return { r: ie(255 * [n, p, s, s, u, n][l]), g: ie(255 * [u, n, n, p, s, s][l]), b: ie(255 * [s, s, u, n, n, p][l]), a: ie(i, 2) };
|
|
2355
2355
|
}, Mn = function(e) {
|
|
2356
|
-
var t = e.r, o = e.g, n = e.b,
|
|
2357
|
-
return { h:
|
|
2358
|
-
}, Pn =
|
|
2359
|
-
var t = e.hue, o = e.onChange, n =
|
|
2360
|
-
return
|
|
2361
|
-
o({ h: 360 *
|
|
2362
|
-
}, onKey: function(
|
|
2363
|
-
o({ h:
|
|
2364
|
-
}, "aria-label": "Hue", "aria-valuenow":
|
|
2365
|
-
}), zn =
|
|
2356
|
+
var t = e.r, o = e.g, n = e.b, i = e.a, r = Math.max(t, o, n), s = r - Math.min(t, o, n), p = s ? r === t ? (o - n) / s : r === o ? 2 + (n - t) / s : 4 + (t - o) / s : 0;
|
|
2357
|
+
return { h: ie(60 * (p < 0 ? p + 6 : p)), s: ie(r ? s / r * 100 : 0), v: ie(r / 255 * 100), a: i };
|
|
2358
|
+
}, Pn = A.memo(function(e) {
|
|
2359
|
+
var t = e.hue, o = e.onChange, n = Ae(["react-colorful__hue", e.className]);
|
|
2360
|
+
return A.createElement("div", { className: n }, A.createElement(Je, { onMove: function(i) {
|
|
2361
|
+
o({ h: 360 * i.left });
|
|
2362
|
+
}, onKey: function(i) {
|
|
2363
|
+
o({ h: Te(t + 360 * i.left, 0, 360) });
|
|
2364
|
+
}, "aria-label": "Hue", "aria-valuenow": ie(t), "aria-valuemax": "360", "aria-valuemin": "0" }, A.createElement(Ze, { className: "react-colorful__hue-pointer", left: t / 360, color: Ke({ h: t, s: 100, v: 100, a: 1 }) })));
|
|
2365
|
+
}), zn = A.memo(function(e) {
|
|
2366
2366
|
var t = e.hsva, o = e.onChange, n = { backgroundColor: Ke({ h: t.h, s: 100, v: 100, a: 1 }) };
|
|
2367
|
-
return
|
|
2368
|
-
o({ s: 100 *
|
|
2369
|
-
}, onKey: function(
|
|
2370
|
-
o({ s:
|
|
2371
|
-
}, "aria-label": "Color", "aria-valuetext": "Saturation " +
|
|
2367
|
+
return A.createElement("div", { className: "react-colorful__saturation", style: n }, A.createElement(Je, { onMove: function(i) {
|
|
2368
|
+
o({ s: 100 * i.left, v: 100 - 100 * i.top });
|
|
2369
|
+
}, onKey: function(i) {
|
|
2370
|
+
o({ s: Te(t.s + 100 * i.left, 0, 100), v: Te(t.v - 100 * i.top, 0, 100) });
|
|
2371
|
+
}, "aria-label": "Color", "aria-valuetext": "Saturation " + ie(t.s) + "%, Brightness " + ie(t.v) + "%" }, A.createElement(Ze, { className: "react-colorful__saturation-pointer", top: 1 - t.v / 100, left: t.s / 100, color: Ke(t) })));
|
|
2372
2372
|
}), wt = function(e, t) {
|
|
2373
2373
|
if (e === t) return !0;
|
|
2374
2374
|
for (var o in e) if (e[o] !== t[o]) return !1;
|
|
2375
2375
|
return !0;
|
|
2376
2376
|
};
|
|
2377
|
-
function
|
|
2378
|
-
var n =
|
|
2377
|
+
function An(e, t, o) {
|
|
2378
|
+
var n = Ge(o), i = E(function() {
|
|
2379
2379
|
return e.toHsva(t);
|
|
2380
|
-
}), r =
|
|
2380
|
+
}), r = i[0], s = i[1], p = q({ color: t, hsva: r });
|
|
2381
2381
|
W(function() {
|
|
2382
2382
|
if (!e.equal(t, p.current.color)) {
|
|
2383
2383
|
var l = e.toHsva(t);
|
|
2384
|
-
p.current = { hsva: l, color: t },
|
|
2384
|
+
p.current = { hsva: l, color: t }, s(l);
|
|
2385
2385
|
}
|
|
2386
2386
|
}, [t, e]), W(function() {
|
|
2387
2387
|
var l;
|
|
2388
2388
|
wt(r, p.current.hsva) || e.equal(l = e.fromHsva(r), p.current.color) || (p.current = { hsva: r, color: l }, n(l));
|
|
2389
2389
|
}, [r, e, n]);
|
|
2390
|
-
var
|
|
2391
|
-
|
|
2390
|
+
var u = Ee(function(l) {
|
|
2391
|
+
s(function(g) {
|
|
2392
2392
|
return Object.assign({}, g, l);
|
|
2393
2393
|
});
|
|
2394
2394
|
}, []);
|
|
2395
|
-
return [r,
|
|
2395
|
+
return [r, u];
|
|
2396
2396
|
}
|
|
2397
|
-
var
|
|
2397
|
+
var Fn = typeof window < "u" ? It : W, Hn = function() {
|
|
2398
2398
|
return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : void 0;
|
|
2399
2399
|
}, ft = /* @__PURE__ */ new Map(), jn = function(e) {
|
|
2400
|
-
|
|
2400
|
+
Fn(function() {
|
|
2401
2401
|
var t = e.current ? e.current.ownerDocument : document;
|
|
2402
2402
|
if (t !== void 0 && !ft.has(t)) {
|
|
2403
2403
|
var o = t.createElement("style");
|
|
@@ -2407,31 +2407,31 @@ var An = typeof window < "u" ? It : W, Hn = function() {
|
|
|
2407
2407
|
}
|
|
2408
2408
|
}, []);
|
|
2409
2409
|
}, $n = function(e) {
|
|
2410
|
-
var t = e.className, o = e.hsva, n = e.onChange,
|
|
2411
|
-
return
|
|
2410
|
+
var t = e.className, o = e.hsva, n = e.onChange, i = { backgroundImage: "linear-gradient(90deg, " + je(Object.assign({}, o, { a: 0 })) + ", " + je(Object.assign({}, o, { a: 1 })) + ")" }, r = Ae(["react-colorful__alpha", t]), s = ie(100 * o.a);
|
|
2411
|
+
return A.createElement("div", { className: r }, A.createElement("div", { className: "react-colorful__alpha-gradient", style: i }), A.createElement(Je, { onMove: function(p) {
|
|
2412
2412
|
n({ a: p.left });
|
|
2413
2413
|
}, onKey: function(p) {
|
|
2414
|
-
n({ a:
|
|
2415
|
-
}, "aria-label": "Alpha", "aria-valuetext":
|
|
2414
|
+
n({ a: Te(o.a + p.left) });
|
|
2415
|
+
}, "aria-label": "Alpha", "aria-valuetext": s + "%", "aria-valuenow": s, "aria-valuemin": "0", "aria-valuemax": "100" }, A.createElement(Ze, { className: "react-colorful__alpha-pointer", left: o.a, color: je(o) })));
|
|
2416
2416
|
}, Wn = function(e) {
|
|
2417
|
-
var t = e.className, o = e.colorModel, n = e.color,
|
|
2417
|
+
var t = e.className, o = e.colorModel, n = e.color, i = n === void 0 ? o.defaultColor : n, r = e.onChange, s = _t(e, ["className", "colorModel", "color", "onChange"]), p = q(null);
|
|
2418
2418
|
jn(p);
|
|
2419
|
-
var
|
|
2420
|
-
return
|
|
2419
|
+
var u = An(o, i, r), l = u[0], g = u[1], d = Ae(["react-colorful", t]);
|
|
2420
|
+
return A.createElement("div", ze({}, s, { ref: p, className: d }), A.createElement(zn, { hsva: l, onChange: g }), A.createElement(Pn, { hue: l.h, onChange: g }), A.createElement($n, { hsva: l, onChange: g, className: "react-colorful__last-control" }));
|
|
2421
2421
|
}, Vn = { defaultColor: { r: 0, g: 0, b: 0, a: 1 }, toHsva: Mn, fromHsva: Dn, equal: wt }, Un = function(e) {
|
|
2422
|
-
return
|
|
2422
|
+
return A.createElement(Wn, ze({}, e, { colorModel: Vn }));
|
|
2423
2423
|
};
|
|
2424
|
-
function
|
|
2424
|
+
function qn(e) {
|
|
2425
2425
|
if (e = e.replace(/^#/, ""), /^[0-9A-Fa-f]{3}$/.test(e))
|
|
2426
2426
|
e = e.split("").map((r) => r + r).join("");
|
|
2427
2427
|
else if (!/^[0-9A-Fa-f]{6}([0-9A-Fa-f]{2})?$/.test(e))
|
|
2428
2428
|
return null;
|
|
2429
2429
|
const t = parseInt(e.substring(0, 2), 16), o = parseInt(e.substring(2, 4), 16), n = parseInt(e.substring(4, 6), 16);
|
|
2430
|
-
let
|
|
2431
|
-
return e.length === 8 && (
|
|
2430
|
+
let i = 1;
|
|
2431
|
+
return e.length === 8 && (i = parseInt(e.substring(6, 8), 16) / 255), { r: t, g: o, b: n, a: i };
|
|
2432
2432
|
}
|
|
2433
|
-
const
|
|
2434
|
-
section:
|
|
2433
|
+
const Gn = "_section_cqfni_5", Xn = "_sectionTitle_cqfni_19", Kn = "_grid2_cqfni_33", Yn = "_grid4_cqfni_49", Jn = "_flexRow_cqfni_63", Zn = "_inputField_cqfni_87", Qn = "_labelContainer_cqfni_95", er = "_label_cqfni_95", tr = "_resetIcon_cqfni_129", or = "_inputContainer_cqfni_159", nr = "_buttonGroupContainer_cqfni_195", rr = "_input_cqfni_87", ir = "_dragHandle_cqfni_241", ar = "_dragHandleIcon_cqfni_271", lr = "_colorPreview_cqfni_281", cr = "_fontButton_cqfni_313", sr = "_alignButton_cqfni_345", dr = "_tabButtons_cqfni_377", m = {
|
|
2434
|
+
section: Gn,
|
|
2435
2435
|
sectionTitle: Xn,
|
|
2436
2436
|
grid2: Kn,
|
|
2437
2437
|
grid4: Yn,
|
|
@@ -2443,11 +2443,11 @@ const qn = "_section_cqfni_5", Xn = "_sectionTitle_cqfni_19", Kn = "_grid2_cqfni
|
|
|
2443
2443
|
inputContainer: or,
|
|
2444
2444
|
buttonGroupContainer: nr,
|
|
2445
2445
|
input: rr,
|
|
2446
|
-
dragHandle:
|
|
2447
|
-
dragHandleIcon:
|
|
2446
|
+
dragHandle: ir,
|
|
2447
|
+
dragHandleIcon: ar,
|
|
2448
2448
|
colorPreview: lr,
|
|
2449
|
-
fontButton:
|
|
2450
|
-
alignButton:
|
|
2449
|
+
fontButton: cr,
|
|
2450
|
+
alignButton: sr,
|
|
2451
2451
|
tabButtons: dr
|
|
2452
2452
|
}, ur = () => document.getElementById("inspector-canvas-root") || document.body;
|
|
2453
2453
|
function Qe({
|
|
@@ -2455,12 +2455,12 @@ function Qe({
|
|
|
2455
2455
|
value: t,
|
|
2456
2456
|
onChange: o,
|
|
2457
2457
|
originalValue: n,
|
|
2458
|
-
onReset:
|
|
2458
|
+
onReset: i
|
|
2459
2459
|
}) {
|
|
2460
|
-
const { theme: r } =
|
|
2460
|
+
const { theme: r } = K(), s = n !== void 0 && t !== n, [p, u] = E(""), [l, g] = E(!1), [d, a] = E(!1), f = q(null), y = q(null), [_, x] = E({ top: 0, left: 0 }), L = Me(() => {
|
|
2461
2461
|
if (t === "transparent") return { r: 255, g: 255, b: 255, a: 0 };
|
|
2462
2462
|
if (t.startsWith("#"))
|
|
2463
|
-
return
|
|
2463
|
+
return qn(t) || { r: 0, g: 0, b: 0, a: 1 };
|
|
2464
2464
|
if (t.startsWith("rgb")) {
|
|
2465
2465
|
const w = t.match(
|
|
2466
2466
|
/rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*([\d.]+))?\)/
|
|
@@ -2486,26 +2486,26 @@ function Qe({
|
|
|
2486
2486
|
return t || "#000000";
|
|
2487
2487
|
}, [t]);
|
|
2488
2488
|
W(() => {
|
|
2489
|
-
if (!
|
|
2489
|
+
if (!d || !f.current) return;
|
|
2490
2490
|
(() => {
|
|
2491
2491
|
if (!f.current) return;
|
|
2492
2492
|
const P = f.current.getBoundingClientRect(), V = window.innerHeight, B = window.innerWidth, N = 220, oe = 280;
|
|
2493
|
-
let Y = P.top - oe - 8,
|
|
2494
|
-
Y < 8 && (Y = P.bottom + 8),
|
|
2493
|
+
let Y = P.top - oe - 8, G = P.left;
|
|
2494
|
+
Y < 8 && (Y = P.bottom + 8), G + N > B - 8 && (G = B - N - 8), G < 8 && (G = 8), Y + oe > V - 8 && (Y = V - oe - 8), x({ top: Y, left: G });
|
|
2495
2495
|
})();
|
|
2496
|
-
}, [
|
|
2497
|
-
if (!
|
|
2496
|
+
}, [d]), W(() => {
|
|
2497
|
+
if (!d) return;
|
|
2498
2498
|
const w = (B) => {
|
|
2499
|
-
y.current && !y.current.contains(B.target) && f.current && !f.current.contains(B.target) &&
|
|
2499
|
+
y.current && !y.current.contains(B.target) && f.current && !f.current.contains(B.target) && a(!1);
|
|
2500
2500
|
}, P = (B) => {
|
|
2501
|
-
B.key === "Escape" &&
|
|
2501
|
+
B.key === "Escape" && a(!1);
|
|
2502
2502
|
}, V = setTimeout(() => {
|
|
2503
2503
|
document.addEventListener("mousedown", w), document.addEventListener("keydown", P);
|
|
2504
2504
|
}, 100);
|
|
2505
2505
|
return () => {
|
|
2506
2506
|
clearTimeout(V), document.removeEventListener("mousedown", w), document.removeEventListener("keydown", P);
|
|
2507
2507
|
};
|
|
2508
|
-
}, [
|
|
2508
|
+
}, [d]);
|
|
2509
2509
|
const C = (w) => {
|
|
2510
2510
|
if (w.a < 1)
|
|
2511
2511
|
o(`rgba(${w.r}, ${w.g}, ${w.b}, ${w.a})`);
|
|
@@ -2515,26 +2515,26 @@ function Qe({
|
|
|
2515
2515
|
}
|
|
2516
2516
|
}, M = (w) => {
|
|
2517
2517
|
const P = w.target.value;
|
|
2518
|
-
|
|
2518
|
+
u(P), /^#[0-9A-Fa-f]{6}$/.test(P) && o(P);
|
|
2519
2519
|
}, k = () => {
|
|
2520
|
-
g(!0),
|
|
2521
|
-
},
|
|
2520
|
+
g(!0), u(S);
|
|
2521
|
+
}, F = () => {
|
|
2522
2522
|
g(!1), p && /^#[0-9A-Fa-f]{6}$/.test(p) && o(p);
|
|
2523
2523
|
}, $ = (w) => {
|
|
2524
|
-
w.stopPropagation(),
|
|
2524
|
+
w.stopPropagation(), a(!d);
|
|
2525
2525
|
};
|
|
2526
2526
|
return /* @__PURE__ */ b("div", { className: m.inputField, children: [
|
|
2527
2527
|
/* @__PURE__ */ b("div", { className: m.labelContainer, children: [
|
|
2528
|
-
/* @__PURE__ */
|
|
2529
|
-
|
|
2528
|
+
/* @__PURE__ */ c("label", { className: m.label, style: { color: r.textColor }, children: e }),
|
|
2529
|
+
s && i && /* @__PURE__ */ c(
|
|
2530
2530
|
"button",
|
|
2531
2531
|
{
|
|
2532
2532
|
type: "button",
|
|
2533
|
-
onClick:
|
|
2533
|
+
onClick: i,
|
|
2534
2534
|
className: m.resetIcon,
|
|
2535
2535
|
style: { color: r.secondaryTextColor },
|
|
2536
2536
|
title: "Reset to original",
|
|
2537
|
-
children: /* @__PURE__ */
|
|
2537
|
+
children: /* @__PURE__ */ c(ae, { size: 12 })
|
|
2538
2538
|
}
|
|
2539
2539
|
)
|
|
2540
2540
|
] }),
|
|
@@ -2547,7 +2547,7 @@ function Qe({
|
|
|
2547
2547
|
borderColor: r.inputBorderColor
|
|
2548
2548
|
},
|
|
2549
2549
|
children: [
|
|
2550
|
-
/* @__PURE__ */
|
|
2550
|
+
/* @__PURE__ */ c(
|
|
2551
2551
|
"button",
|
|
2552
2552
|
{
|
|
2553
2553
|
ref: f,
|
|
@@ -2561,14 +2561,14 @@ function Qe({
|
|
|
2561
2561
|
title: "Pick color"
|
|
2562
2562
|
}
|
|
2563
2563
|
),
|
|
2564
|
-
/* @__PURE__ */
|
|
2564
|
+
/* @__PURE__ */ c(
|
|
2565
2565
|
Be,
|
|
2566
2566
|
{
|
|
2567
2567
|
type: "text",
|
|
2568
2568
|
value: l ? p : S,
|
|
2569
2569
|
onChange: M,
|
|
2570
2570
|
onFocus: k,
|
|
2571
|
-
onBlur:
|
|
2571
|
+
onBlur: F,
|
|
2572
2572
|
className: m.input,
|
|
2573
2573
|
style: {
|
|
2574
2574
|
backgroundColor: "transparent",
|
|
@@ -2581,8 +2581,8 @@ function Qe({
|
|
|
2581
2581
|
]
|
|
2582
2582
|
}
|
|
2583
2583
|
),
|
|
2584
|
-
|
|
2585
|
-
/* @__PURE__ */
|
|
2584
|
+
d && xt.createPortal(
|
|
2585
|
+
/* @__PURE__ */ c(
|
|
2586
2586
|
"div",
|
|
2587
2587
|
{
|
|
2588
2588
|
ref: y,
|
|
@@ -2599,7 +2599,7 @@ function Qe({
|
|
|
2599
2599
|
boxShadow: "var(--shadow-lg)",
|
|
2600
2600
|
pointerEvents: "auto"
|
|
2601
2601
|
},
|
|
2602
|
-
children: /* @__PURE__ */
|
|
2602
|
+
children: /* @__PURE__ */ c(Un, { color: L, onChange: C })
|
|
2603
2603
|
}
|
|
2604
2604
|
),
|
|
2605
2605
|
ur()
|
|
@@ -2611,47 +2611,47 @@ function Q({
|
|
|
2611
2611
|
value: t,
|
|
2612
2612
|
onChange: o,
|
|
2613
2613
|
min: n = 0,
|
|
2614
|
-
max:
|
|
2614
|
+
max: i = 1e3,
|
|
2615
2615
|
step: r = 1,
|
|
2616
|
-
unit:
|
|
2616
|
+
unit: s = "px",
|
|
2617
2617
|
originalValue: p,
|
|
2618
|
-
onReset:
|
|
2618
|
+
onReset: u
|
|
2619
2619
|
}) {
|
|
2620
|
-
const { labels: l, theme: g } =
|
|
2620
|
+
const { labels: l, theme: g } = K(), d = p !== void 0 && t !== p, [a, f] = E(!1), y = q(0), _ = q(0), x = q(null), S = ((k) => {
|
|
2621
2621
|
if (!k) return 0;
|
|
2622
|
-
const
|
|
2623
|
-
return isNaN(
|
|
2622
|
+
const F = parseFloat(k.replace(/[^\d.-]/g, ""));
|
|
2623
|
+
return isNaN(F) ? 0 : F;
|
|
2624
2624
|
})(t), C = (k) => {
|
|
2625
2625
|
o(k.target.value);
|
|
2626
2626
|
};
|
|
2627
2627
|
W(() => {
|
|
2628
|
-
if (!
|
|
2628
|
+
if (!a) return;
|
|
2629
2629
|
const k = ($) => {
|
|
2630
2630
|
const w = $.clientX - y.current, P = Math.round(w / 2) * r;
|
|
2631
2631
|
let V = _.current + P;
|
|
2632
|
-
V = Math.max(n, Math.min(
|
|
2633
|
-
},
|
|
2632
|
+
V = Math.max(n, Math.min(i, V)), o(`${V}${s}`);
|
|
2633
|
+
}, F = () => {
|
|
2634
2634
|
f(!1), document.body.style.cursor = "";
|
|
2635
2635
|
};
|
|
2636
|
-
return document.addEventListener("mousemove", k), document.addEventListener("mouseup",
|
|
2637
|
-
document.removeEventListener("mousemove", k), document.removeEventListener("mouseup",
|
|
2636
|
+
return document.addEventListener("mousemove", k), document.addEventListener("mouseup", F), () => {
|
|
2637
|
+
document.removeEventListener("mousemove", k), document.removeEventListener("mouseup", F);
|
|
2638
2638
|
};
|
|
2639
|
-
}, [
|
|
2639
|
+
}, [a, r, n, i, s, o]);
|
|
2640
2640
|
const M = (k) => {
|
|
2641
2641
|
k.preventDefault(), f(!0), y.current = k.clientX, _.current = S, document.body.style.cursor = "ew-resize";
|
|
2642
2642
|
};
|
|
2643
2643
|
return /* @__PURE__ */ b("div", { className: m.inputField, children: [
|
|
2644
2644
|
/* @__PURE__ */ b("div", { className: m.labelContainer, children: [
|
|
2645
|
-
/* @__PURE__ */
|
|
2646
|
-
|
|
2645
|
+
/* @__PURE__ */ c("label", { className: m.label, style: { color: g.textColor }, children: e }),
|
|
2646
|
+
d && u && /* @__PURE__ */ c(
|
|
2647
2647
|
"button",
|
|
2648
2648
|
{
|
|
2649
2649
|
type: "button",
|
|
2650
|
-
onClick:
|
|
2650
|
+
onClick: u,
|
|
2651
2651
|
className: m.resetIcon,
|
|
2652
2652
|
style: { color: g.secondaryTextColor },
|
|
2653
2653
|
title: "Reset to original",
|
|
2654
|
-
children: /* @__PURE__ */
|
|
2654
|
+
children: /* @__PURE__ */ c(ae, { size: 12 })
|
|
2655
2655
|
}
|
|
2656
2656
|
)
|
|
2657
2657
|
] }),
|
|
@@ -2664,7 +2664,7 @@ function Q({
|
|
|
2664
2664
|
borderColor: g.inputBorderColor
|
|
2665
2665
|
},
|
|
2666
2666
|
children: [
|
|
2667
|
-
/* @__PURE__ */
|
|
2667
|
+
/* @__PURE__ */ c(
|
|
2668
2668
|
Be,
|
|
2669
2669
|
{
|
|
2670
2670
|
type: "text",
|
|
@@ -2677,7 +2677,7 @@ function Q({
|
|
|
2677
2677
|
}
|
|
2678
2678
|
}
|
|
2679
2679
|
),
|
|
2680
|
-
/* @__PURE__ */
|
|
2680
|
+
/* @__PURE__ */ c(
|
|
2681
2681
|
"div",
|
|
2682
2682
|
{
|
|
2683
2683
|
ref: x,
|
|
@@ -2685,9 +2685,9 @@ function Q({
|
|
|
2685
2685
|
className: m.dragHandle,
|
|
2686
2686
|
style: {
|
|
2687
2687
|
color: g.secondaryTextColor || g.textColor,
|
|
2688
|
-
opacity:
|
|
2688
|
+
opacity: a ? 1 : 0.6
|
|
2689
2689
|
},
|
|
2690
|
-
children: /* @__PURE__ */
|
|
2690
|
+
children: /* @__PURE__ */ c(fo, { className: m.dragHandleIcon })
|
|
2691
2691
|
}
|
|
2692
2692
|
)
|
|
2693
2693
|
]
|
|
@@ -2701,12 +2701,12 @@ function pr({
|
|
|
2701
2701
|
originalStyles: o,
|
|
2702
2702
|
onResetProperty: n
|
|
2703
2703
|
}) {
|
|
2704
|
-
const { labels:
|
|
2704
|
+
const { labels: i } = K();
|
|
2705
2705
|
return /* @__PURE__ */ b("div", { className: m.section, children: [
|
|
2706
|
-
/* @__PURE__ */
|
|
2706
|
+
/* @__PURE__ */ c(
|
|
2707
2707
|
Qe,
|
|
2708
2708
|
{
|
|
2709
|
-
label:
|
|
2709
|
+
label: i.backgroundColorLabel || "Background Color",
|
|
2710
2710
|
value: e.backgroundColor || "#ffffff",
|
|
2711
2711
|
onChange: (r) => t("backgroundColor", r),
|
|
2712
2712
|
originalValue: o.backgroundColor,
|
|
@@ -2714,10 +2714,10 @@ function pr({
|
|
|
2714
2714
|
}
|
|
2715
2715
|
),
|
|
2716
2716
|
/* @__PURE__ */ b("div", { className: m.grid2, children: [
|
|
2717
|
-
/* @__PURE__ */
|
|
2717
|
+
/* @__PURE__ */ c(
|
|
2718
2718
|
Q,
|
|
2719
2719
|
{
|
|
2720
|
-
label:
|
|
2720
|
+
label: i.heightLabel || "Height",
|
|
2721
2721
|
value: e.height,
|
|
2722
2722
|
onChange: (r) => t("height", r),
|
|
2723
2723
|
min: 0,
|
|
@@ -2728,10 +2728,10 @@ function pr({
|
|
|
2728
2728
|
onReset: () => n("height")
|
|
2729
2729
|
}
|
|
2730
2730
|
),
|
|
2731
|
-
/* @__PURE__ */
|
|
2731
|
+
/* @__PURE__ */ c(
|
|
2732
2732
|
Q,
|
|
2733
2733
|
{
|
|
2734
|
-
label:
|
|
2734
|
+
label: i.widthLabel || "Width",
|
|
2735
2735
|
value: e.width,
|
|
2736
2736
|
onChange: (r) => t("width", r),
|
|
2737
2737
|
min: 0,
|
|
@@ -2752,7 +2752,7 @@ const gr = "_trigger_uqfi2_1", fr = "_content_uqfi2_83", hr = "_viewport_uqfi2_1
|
|
|
2752
2752
|
viewportPopper: mr,
|
|
2753
2753
|
item: br
|
|
2754
2754
|
}, vr = () => document.getElementById("inspector-canvas-root") || document.body, St = U.createContext(null);
|
|
2755
|
-
function
|
|
2755
|
+
function Fe() {
|
|
2756
2756
|
const e = U.useContext(St);
|
|
2757
2757
|
if (!e)
|
|
2758
2758
|
throw new Error("Select components must be used within a Select");
|
|
@@ -2763,15 +2763,15 @@ function ue({
|
|
|
2763
2763
|
defaultValue: t,
|
|
2764
2764
|
onValueChange: o,
|
|
2765
2765
|
children: n,
|
|
2766
|
-
open:
|
|
2766
|
+
open: i,
|
|
2767
2767
|
onOpenChange: r
|
|
2768
2768
|
}) {
|
|
2769
|
-
const [
|
|
2770
|
-
|
|
2771
|
-
}, [
|
|
2769
|
+
const [s, p] = U.useState(t), [u, l] = U.useState(!1), g = U.useRef(null), d = U.useRef(null), a = U.useRef(/* @__PURE__ */ new Map()), f = e !== void 0 ? e : s, y = i !== void 0 ? i : u, _ = U.useCallback((C) => {
|
|
2770
|
+
i === void 0 && l(C), r?.(C);
|
|
2771
|
+
}, [i, r]), x = U.useCallback((C) => {
|
|
2772
2772
|
e === void 0 && p(C), o?.(C), _(!1);
|
|
2773
2773
|
}, [e, o, _]), L = U.useCallback((C, M) => {
|
|
2774
|
-
|
|
2774
|
+
a.current.set(C, M);
|
|
2775
2775
|
}, []), S = U.useMemo(
|
|
2776
2776
|
() => ({
|
|
2777
2777
|
value: f,
|
|
@@ -2779,29 +2779,29 @@ function ue({
|
|
|
2779
2779
|
open: y,
|
|
2780
2780
|
setOpen: _,
|
|
2781
2781
|
triggerRef: g,
|
|
2782
|
-
contentRef:
|
|
2783
|
-
itemLabels:
|
|
2782
|
+
contentRef: d,
|
|
2783
|
+
itemLabels: a.current,
|
|
2784
2784
|
registerItem: L
|
|
2785
2785
|
}),
|
|
2786
2786
|
[f, x, y, _, L]
|
|
2787
2787
|
);
|
|
2788
|
-
return /* @__PURE__ */
|
|
2788
|
+
return /* @__PURE__ */ c(St.Provider, { value: S, children: n });
|
|
2789
2789
|
}
|
|
2790
2790
|
function pe({ placeholder: e }) {
|
|
2791
|
-
const { value: t, itemLabels: o } =
|
|
2792
|
-
return /* @__PURE__ */
|
|
2791
|
+
const { value: t, itemLabels: o } = Fe(), n = t && o.has(t) ? o.get(t) : t || e;
|
|
2792
|
+
return /* @__PURE__ */ c("span", { "data-slot": "select-value", children: n });
|
|
2793
2793
|
}
|
|
2794
2794
|
function ge({
|
|
2795
2795
|
className: e,
|
|
2796
2796
|
size: t = "default",
|
|
2797
2797
|
children: o,
|
|
2798
2798
|
style: n,
|
|
2799
|
-
...
|
|
2799
|
+
...i
|
|
2800
2800
|
}) {
|
|
2801
|
-
const { open: r, setOpen:
|
|
2802
|
-
|
|
2803
|
-
}, g = (
|
|
2804
|
-
(
|
|
2801
|
+
const { open: r, setOpen: s, triggerRef: p } = Fe(), { theme: u } = K(), l = (d) => {
|
|
2802
|
+
d.stopPropagation(), s(!r);
|
|
2803
|
+
}, g = (d) => {
|
|
2804
|
+
(d.key === "Enter" || d.key === " " || d.key === "ArrowDown") && (d.preventDefault(), s(!0));
|
|
2805
2805
|
};
|
|
2806
2806
|
return /* @__PURE__ */ b(
|
|
2807
2807
|
"button",
|
|
@@ -2815,16 +2815,16 @@ function ge({
|
|
|
2815
2815
|
"data-size": t,
|
|
2816
2816
|
className: re(Ie.trigger, e),
|
|
2817
2817
|
style: {
|
|
2818
|
-
borderColor:
|
|
2819
|
-
color:
|
|
2818
|
+
borderColor: u.borderColor,
|
|
2819
|
+
color: u.textColor,
|
|
2820
2820
|
...n
|
|
2821
2821
|
},
|
|
2822
2822
|
onClick: l,
|
|
2823
2823
|
onKeyDown: g,
|
|
2824
|
-
...
|
|
2824
|
+
...i,
|
|
2825
2825
|
children: [
|
|
2826
2826
|
o,
|
|
2827
|
-
/* @__PURE__ */
|
|
2827
|
+
/* @__PURE__ */ c(
|
|
2828
2828
|
xe,
|
|
2829
2829
|
{
|
|
2830
2830
|
style: { width: "1rem", height: "1rem", opacity: 0.5 }
|
|
@@ -2839,10 +2839,10 @@ function fe({
|
|
|
2839
2839
|
children: t,
|
|
2840
2840
|
position: o = "popper",
|
|
2841
2841
|
align: n = "center",
|
|
2842
|
-
style:
|
|
2842
|
+
style: i,
|
|
2843
2843
|
sideOffset: r = 4
|
|
2844
2844
|
}) {
|
|
2845
|
-
const { open:
|
|
2845
|
+
const { open: s, setOpen: p, triggerRef: u, contentRef: l, value: g } = Fe(), { theme: d } = K(), [a, f] = U.useState(-1), y = U.useRef(/* @__PURE__ */ new Map()), [_, x] = U.useState({
|
|
2846
2846
|
top: 0,
|
|
2847
2847
|
left: 0,
|
|
2848
2848
|
width: 0,
|
|
@@ -2850,13 +2850,13 @@ function fe({
|
|
|
2850
2850
|
openAbove: !1
|
|
2851
2851
|
});
|
|
2852
2852
|
if (U.useLayoutEffect(() => {
|
|
2853
|
-
if (!
|
|
2853
|
+
if (!s || !u.current) return;
|
|
2854
2854
|
const S = requestAnimationFrame(() => {
|
|
2855
|
-
if (!
|
|
2856
|
-
const C =
|
|
2855
|
+
if (!u.current) return;
|
|
2856
|
+
const C = u.current.getBoundingClientRect(), M = window.innerHeight, k = window.innerWidth, F = u.current.closest('[class*="controlBox"]');
|
|
2857
2857
|
let $ = 300, w = !1;
|
|
2858
|
-
if (
|
|
2859
|
-
const V =
|
|
2858
|
+
if (F) {
|
|
2859
|
+
const V = F.getBoundingClientRect(), B = V.bottom - C.bottom - r - 16, N = C.top - V.top - r - 16;
|
|
2860
2860
|
w = B < 150 && N > B, $ = Math.max(Math.min(w ? N : B, 300), 100);
|
|
2861
2861
|
} else {
|
|
2862
2862
|
const V = M - C.bottom - r, B = C.top - r;
|
|
@@ -2872,10 +2872,10 @@ function fe({
|
|
|
2872
2872
|
});
|
|
2873
2873
|
});
|
|
2874
2874
|
return () => cancelAnimationFrame(S);
|
|
2875
|
-
}, [
|
|
2876
|
-
if (!
|
|
2875
|
+
}, [s, r]), U.useEffect(() => {
|
|
2876
|
+
if (!s) return;
|
|
2877
2877
|
const S = (k) => {
|
|
2878
|
-
l.current && !l.current.contains(k.target) &&
|
|
2878
|
+
l.current && !l.current.contains(k.target) && u.current && !u.current.contains(k.target) && p(!1);
|
|
2879
2879
|
}, C = (k) => {
|
|
2880
2880
|
(k.key === "Escape" || k.key === "Tab") && p(!1);
|
|
2881
2881
|
}, M = setTimeout(() => {
|
|
@@ -2884,36 +2884,36 @@ function fe({
|
|
|
2884
2884
|
return () => {
|
|
2885
2885
|
clearTimeout(M), document.removeEventListener("mousedown", S), document.removeEventListener("keydown", C);
|
|
2886
2886
|
};
|
|
2887
|
-
}, [
|
|
2888
|
-
if (!
|
|
2887
|
+
}, [s, p]), U.useEffect(() => {
|
|
2888
|
+
if (!s) return;
|
|
2889
2889
|
const S = (C) => {
|
|
2890
2890
|
const M = y.current.size;
|
|
2891
2891
|
if (C.key === "ArrowDown")
|
|
2892
2892
|
C.preventDefault(), f((k) => {
|
|
2893
|
-
const
|
|
2894
|
-
return y.current.get(
|
|
2893
|
+
const F = k < M - 1 ? k + 1 : 0;
|
|
2894
|
+
return y.current.get(F)?.scrollIntoView({ block: "nearest" }), F;
|
|
2895
2895
|
});
|
|
2896
2896
|
else if (C.key === "ArrowUp")
|
|
2897
2897
|
C.preventDefault(), f((k) => {
|
|
2898
|
-
const
|
|
2899
|
-
return y.current.get(
|
|
2898
|
+
const F = k > 0 ? k - 1 : M - 1;
|
|
2899
|
+
return y.current.get(F)?.scrollIntoView({ block: "nearest" }), F;
|
|
2900
2900
|
});
|
|
2901
|
-
else if (C.key === "Enter" &&
|
|
2901
|
+
else if (C.key === "Enter" && a >= 0) {
|
|
2902
2902
|
C.preventDefault();
|
|
2903
|
-
const k = y.current.get(
|
|
2903
|
+
const k = y.current.get(a);
|
|
2904
2904
|
k && k.click();
|
|
2905
2905
|
}
|
|
2906
2906
|
};
|
|
2907
2907
|
return document.addEventListener("keydown", S), () => document.removeEventListener("keydown", S);
|
|
2908
|
-
}, [
|
|
2909
|
-
if (
|
|
2908
|
+
}, [s, a]), U.useEffect(() => {
|
|
2909
|
+
if (s && g) {
|
|
2910
2910
|
const S = Array.from(y.current.entries()).find(
|
|
2911
2911
|
([C, M]) => M.dataset.value === g
|
|
2912
2912
|
)?.[0];
|
|
2913
2913
|
S !== void 0 && (f(S), y.current.get(S)?.scrollIntoView({ block: "nearest" }));
|
|
2914
2914
|
}
|
|
2915
|
-
}, [
|
|
2916
|
-
const L = /* @__PURE__ */
|
|
2915
|
+
}, [s, g]), !s) return null;
|
|
2916
|
+
const L = /* @__PURE__ */ c(
|
|
2917
2917
|
"div",
|
|
2918
2918
|
{
|
|
2919
2919
|
ref: l,
|
|
@@ -2932,15 +2932,15 @@ function fe({
|
|
|
2932
2932
|
maxHeight: `${_.maxHeight}px`,
|
|
2933
2933
|
overflowY: "auto",
|
|
2934
2934
|
zIndex: "var(--z-inspector-popover)",
|
|
2935
|
-
backgroundColor:
|
|
2936
|
-
color:
|
|
2937
|
-
borderColor:
|
|
2938
|
-
...
|
|
2935
|
+
backgroundColor: d.backgroundColor,
|
|
2936
|
+
color: d.textColor,
|
|
2937
|
+
borderColor: d.borderColor,
|
|
2938
|
+
...i
|
|
2939
2939
|
},
|
|
2940
|
-
children: /* @__PURE__ */
|
|
2940
|
+
children: /* @__PURE__ */ c("div", { className: o === "popper" ? Ie.viewportPopper : Ie.viewport, children: U.Children.map(t, (S, C) => U.isValidElement(S) ? U.cloneElement(S, {
|
|
2941
2941
|
_index: C,
|
|
2942
2942
|
_itemRefs: y,
|
|
2943
|
-
_focusedIndex:
|
|
2943
|
+
_focusedIndex: a
|
|
2944
2944
|
}) : S) })
|
|
2945
2945
|
}
|
|
2946
2946
|
);
|
|
@@ -2951,33 +2951,33 @@ function he({
|
|
|
2951
2951
|
children: t,
|
|
2952
2952
|
className: o,
|
|
2953
2953
|
style: n,
|
|
2954
|
-
disabled:
|
|
2954
|
+
disabled: i,
|
|
2955
2955
|
_index: r,
|
|
2956
|
-
_itemRefs:
|
|
2956
|
+
_itemRefs: s,
|
|
2957
2957
|
_focusedIndex: p
|
|
2958
2958
|
}) {
|
|
2959
|
-
const { value:
|
|
2959
|
+
const { value: u, onValueChange: l, registerItem: g } = Fe(), { theme: d } = K(), a = u === e, f = p === r, y = U.useRef(null);
|
|
2960
2960
|
U.useEffect(() => {
|
|
2961
2961
|
t && typeof t == "string" && g(e, t);
|
|
2962
2962
|
}, [e, t, g]), U.useEffect(() => {
|
|
2963
|
-
if (r !== void 0 &&
|
|
2964
|
-
return
|
|
2965
|
-
|
|
2963
|
+
if (r !== void 0 && s && y.current)
|
|
2964
|
+
return s.current.set(r, y.current), () => {
|
|
2965
|
+
s.current.delete(r);
|
|
2966
2966
|
};
|
|
2967
|
-
}, [r,
|
|
2967
|
+
}, [r, s]);
|
|
2968
2968
|
const _ = (x) => {
|
|
2969
|
-
x.stopPropagation(),
|
|
2969
|
+
x.stopPropagation(), i || l?.(e);
|
|
2970
2970
|
};
|
|
2971
2971
|
return /* @__PURE__ */ b(
|
|
2972
2972
|
"div",
|
|
2973
2973
|
{
|
|
2974
2974
|
ref: y,
|
|
2975
2975
|
role: "option",
|
|
2976
|
-
"aria-selected":
|
|
2976
|
+
"aria-selected": a,
|
|
2977
2977
|
"data-slot": "select-item",
|
|
2978
2978
|
"data-value": e,
|
|
2979
|
-
"data-state":
|
|
2980
|
-
"data-disabled":
|
|
2979
|
+
"data-state": a ? "checked" : "unchecked",
|
|
2980
|
+
"data-disabled": i,
|
|
2981
2981
|
className: re(Ie.item, o),
|
|
2982
2982
|
style: {
|
|
2983
2983
|
position: "relative",
|
|
@@ -2985,21 +2985,21 @@ function he({
|
|
|
2985
2985
|
alignItems: "center",
|
|
2986
2986
|
padding: "var(--spacing-1-5) var(--spacing-8) var(--spacing-1-5) var(--spacing-2)",
|
|
2987
2987
|
fontSize: "var(--text-sm)",
|
|
2988
|
-
cursor:
|
|
2989
|
-
opacity:
|
|
2990
|
-
backgroundColor: f ?
|
|
2988
|
+
cursor: i ? "not-allowed" : "pointer",
|
|
2989
|
+
opacity: i ? 0.5 : 1,
|
|
2990
|
+
backgroundColor: f ? d.inputBackgroundColor || "rgba(0, 0, 0, 0.05)" : "transparent",
|
|
2991
2991
|
...n
|
|
2992
2992
|
},
|
|
2993
2993
|
onClick: _,
|
|
2994
2994
|
onMouseEnter: (x) => {
|
|
2995
|
-
|
|
2995
|
+
i || (x.currentTarget.style.backgroundColor = d.inputBackgroundColor || "rgba(0, 0, 0, 0.05)");
|
|
2996
2996
|
},
|
|
2997
2997
|
onMouseLeave: (x) => {
|
|
2998
|
-
!
|
|
2998
|
+
!i && !f && (x.currentTarget.style.backgroundColor = "transparent");
|
|
2999
2999
|
},
|
|
3000
3000
|
children: [
|
|
3001
3001
|
t,
|
|
3002
|
-
|
|
3002
|
+
a && /* @__PURE__ */ c(
|
|
3003
3003
|
"span",
|
|
3004
3004
|
{
|
|
3005
3005
|
style: {
|
|
@@ -3011,7 +3011,7 @@ function he({
|
|
|
3011
3011
|
width: "1rem",
|
|
3012
3012
|
height: "1rem"
|
|
3013
3013
|
},
|
|
3014
|
-
children: /* @__PURE__ */
|
|
3014
|
+
children: /* @__PURE__ */ c(Ct, { style: { width: "1rem", height: "1rem" } })
|
|
3015
3015
|
}
|
|
3016
3016
|
)
|
|
3017
3017
|
]
|
|
@@ -3024,38 +3024,38 @@ function yr({
|
|
|
3024
3024
|
originalStyles: o,
|
|
3025
3025
|
onResetProperty: n
|
|
3026
3026
|
}) {
|
|
3027
|
-
const { labels:
|
|
3028
|
-
{ label:
|
|
3029
|
-
{ label:
|
|
3030
|
-
{ label:
|
|
3031
|
-
{ label:
|
|
3032
|
-
{ label:
|
|
3033
|
-
{ label:
|
|
3027
|
+
const { labels: i, theme: r } = K(), s = [
|
|
3028
|
+
{ label: i.displayBlock || "Block", value: "block" },
|
|
3029
|
+
{ label: i.displayInline || "Inline", value: "inline" },
|
|
3030
|
+
{ label: i.displayInlineBlock || "Inline Block", value: "inline-block" },
|
|
3031
|
+
{ label: i.displayFlex || "Flex", value: "flex" },
|
|
3032
|
+
{ label: i.displayGrid || "Grid", value: "grid" },
|
|
3033
|
+
{ label: i.displayNone || "None", value: "none" }
|
|
3034
3034
|
], p = [
|
|
3035
|
-
{ label:
|
|
3036
|
-
{ label:
|
|
3037
|
-
{ label:
|
|
3038
|
-
{ label:
|
|
3039
|
-
{ label:
|
|
3040
|
-
{ label:
|
|
3041
|
-
],
|
|
3042
|
-
{ label:
|
|
3043
|
-
{ label:
|
|
3044
|
-
{ label:
|
|
3045
|
-
{ label:
|
|
3046
|
-
{ label:
|
|
3035
|
+
{ label: i.justifyContentFlexStart || "Flex Start", value: "flex-start" },
|
|
3036
|
+
{ label: i.justifyContentCenter || "Center", value: "center" },
|
|
3037
|
+
{ label: i.justifyContentFlexEnd || "Flex End", value: "flex-end" },
|
|
3038
|
+
{ label: i.justifyContentSpaceBetween || "Space Between", value: "space-between" },
|
|
3039
|
+
{ label: i.justifyContentSpaceAround || "Space Around", value: "space-around" },
|
|
3040
|
+
{ label: i.justifyContentSpaceEvenly || "Space Evenly", value: "space-evenly" }
|
|
3041
|
+
], u = [
|
|
3042
|
+
{ label: i.alignItemsFlexStart || "Flex Start", value: "flex-start" },
|
|
3043
|
+
{ label: i.alignItemsCenter || "Center", value: "center" },
|
|
3044
|
+
{ label: i.alignItemsFlexEnd || "Flex End", value: "flex-end" },
|
|
3045
|
+
{ label: i.alignItemsStretch || "Stretch", value: "stretch" },
|
|
3046
|
+
{ label: i.alignItemsBaseline || "Baseline", value: "baseline" }
|
|
3047
3047
|
], l = [
|
|
3048
|
-
{ label:
|
|
3049
|
-
{ label:
|
|
3050
|
-
{ label:
|
|
3051
|
-
{ label:
|
|
3048
|
+
{ label: i.flexDirectionRow || "Row", value: "row" },
|
|
3049
|
+
{ label: i.flexDirectionRowReverse || "Row Reverse", value: "row-reverse" },
|
|
3050
|
+
{ label: i.flexDirectionColumn || "Column", value: "column" },
|
|
3051
|
+
{ label: i.flexDirectionColumnReverse || "Column Reverse", value: "column-reverse" }
|
|
3052
3052
|
];
|
|
3053
3053
|
return /* @__PURE__ */ b("div", { className: m.section, children: [
|
|
3054
3054
|
/* @__PURE__ */ b("div", { className: m.grid2, children: [
|
|
3055
3055
|
/* @__PURE__ */ b("div", { children: [
|
|
3056
3056
|
/* @__PURE__ */ b("div", { className: m.labelContainer, children: [
|
|
3057
|
-
/* @__PURE__ */
|
|
3058
|
-
e.display !== o.display && /* @__PURE__ */
|
|
3057
|
+
/* @__PURE__ */ c("label", { className: m.label, style: { color: r.textColor }, children: i.displayLabel || "Display" }),
|
|
3058
|
+
e.display !== o.display && /* @__PURE__ */ c(
|
|
3059
3059
|
"button",
|
|
3060
3060
|
{
|
|
3061
3061
|
type: "button",
|
|
@@ -3063,11 +3063,11 @@ function yr({
|
|
|
3063
3063
|
className: m.resetIcon,
|
|
3064
3064
|
style: { color: r.secondaryTextColor },
|
|
3065
3065
|
title: "Reset to original",
|
|
3066
|
-
children: /* @__PURE__ */
|
|
3066
|
+
children: /* @__PURE__ */ c(ae, { size: 12 })
|
|
3067
3067
|
}
|
|
3068
3068
|
)
|
|
3069
3069
|
] }),
|
|
3070
|
-
/* @__PURE__ */
|
|
3070
|
+
/* @__PURE__ */ c(
|
|
3071
3071
|
"div",
|
|
3072
3072
|
{
|
|
3073
3073
|
className: m.inputContainer,
|
|
@@ -3081,7 +3081,7 @@ function yr({
|
|
|
3081
3081
|
value: e.display || "block",
|
|
3082
3082
|
onValueChange: (g) => t("display", g),
|
|
3083
3083
|
children: [
|
|
3084
|
-
/* @__PURE__ */
|
|
3084
|
+
/* @__PURE__ */ c(
|
|
3085
3085
|
ge,
|
|
3086
3086
|
{
|
|
3087
3087
|
className: m.input,
|
|
@@ -3090,17 +3090,17 @@ function yr({
|
|
|
3090
3090
|
color: r.inputTextColor
|
|
3091
3091
|
},
|
|
3092
3092
|
size: "sm",
|
|
3093
|
-
children: /* @__PURE__ */
|
|
3093
|
+
children: /* @__PURE__ */ c(pe, {})
|
|
3094
3094
|
}
|
|
3095
3095
|
),
|
|
3096
|
-
/* @__PURE__ */
|
|
3096
|
+
/* @__PURE__ */ c(
|
|
3097
3097
|
fe,
|
|
3098
3098
|
{
|
|
3099
3099
|
style: {
|
|
3100
3100
|
backgroundColor: r.backgroundColor,
|
|
3101
3101
|
borderColor: r.borderColor
|
|
3102
3102
|
},
|
|
3103
|
-
children:
|
|
3103
|
+
children: s.map((g) => /* @__PURE__ */ c(
|
|
3104
3104
|
he,
|
|
3105
3105
|
{
|
|
3106
3106
|
value: g.value,
|
|
@@ -3119,10 +3119,10 @@ function yr({
|
|
|
3119
3119
|
}
|
|
3120
3120
|
)
|
|
3121
3121
|
] }),
|
|
3122
|
-
/* @__PURE__ */
|
|
3122
|
+
/* @__PURE__ */ c(
|
|
3123
3123
|
Q,
|
|
3124
3124
|
{
|
|
3125
|
-
label:
|
|
3125
|
+
label: i.opacityLabel || "Opacity",
|
|
3126
3126
|
value: e.opacity,
|
|
3127
3127
|
onChange: (g) => t("opacity", g),
|
|
3128
3128
|
min: 0,
|
|
@@ -3135,10 +3135,10 @@ function yr({
|
|
|
3135
3135
|
)
|
|
3136
3136
|
] }),
|
|
3137
3137
|
/* @__PURE__ */ b("div", { className: m.grid2, children: [
|
|
3138
|
-
/* @__PURE__ */
|
|
3138
|
+
/* @__PURE__ */ c(
|
|
3139
3139
|
Q,
|
|
3140
3140
|
{
|
|
3141
|
-
label:
|
|
3141
|
+
label: i.flexLabel || "Flex",
|
|
3142
3142
|
value: e.flex,
|
|
3143
3143
|
onChange: (g) => t("flex", g),
|
|
3144
3144
|
min: 0,
|
|
@@ -3151,8 +3151,8 @@ function yr({
|
|
|
3151
3151
|
),
|
|
3152
3152
|
/* @__PURE__ */ b("div", { children: [
|
|
3153
3153
|
/* @__PURE__ */ b("div", { className: m.labelContainer, children: [
|
|
3154
|
-
/* @__PURE__ */
|
|
3155
|
-
e.flexDirection !== o.flexDirection && /* @__PURE__ */
|
|
3154
|
+
/* @__PURE__ */ c("label", { className: m.label, style: { color: r.textColor }, children: i.flexDirectionLabel || "Flex Direction" }),
|
|
3155
|
+
e.flexDirection !== o.flexDirection && /* @__PURE__ */ c(
|
|
3156
3156
|
"button",
|
|
3157
3157
|
{
|
|
3158
3158
|
type: "button",
|
|
@@ -3160,11 +3160,11 @@ function yr({
|
|
|
3160
3160
|
className: m.resetIcon,
|
|
3161
3161
|
style: { color: r.secondaryTextColor },
|
|
3162
3162
|
title: "Reset to original",
|
|
3163
|
-
children: /* @__PURE__ */
|
|
3163
|
+
children: /* @__PURE__ */ c(ae, { size: 12 })
|
|
3164
3164
|
}
|
|
3165
3165
|
)
|
|
3166
3166
|
] }),
|
|
3167
|
-
/* @__PURE__ */
|
|
3167
|
+
/* @__PURE__ */ c(
|
|
3168
3168
|
"div",
|
|
3169
3169
|
{
|
|
3170
3170
|
className: m.inputContainer,
|
|
@@ -3178,7 +3178,7 @@ function yr({
|
|
|
3178
3178
|
value: e.flexDirection || "row",
|
|
3179
3179
|
onValueChange: (g) => t("flexDirection", g),
|
|
3180
3180
|
children: [
|
|
3181
|
-
/* @__PURE__ */
|
|
3181
|
+
/* @__PURE__ */ c(
|
|
3182
3182
|
ge,
|
|
3183
3183
|
{
|
|
3184
3184
|
className: m.input,
|
|
@@ -3187,17 +3187,17 @@ function yr({
|
|
|
3187
3187
|
color: r.inputTextColor
|
|
3188
3188
|
},
|
|
3189
3189
|
size: "sm",
|
|
3190
|
-
children: /* @__PURE__ */
|
|
3190
|
+
children: /* @__PURE__ */ c(pe, {})
|
|
3191
3191
|
}
|
|
3192
3192
|
),
|
|
3193
|
-
/* @__PURE__ */
|
|
3193
|
+
/* @__PURE__ */ c(
|
|
3194
3194
|
fe,
|
|
3195
3195
|
{
|
|
3196
3196
|
style: {
|
|
3197
3197
|
backgroundColor: r.backgroundColor,
|
|
3198
3198
|
borderColor: r.borderColor
|
|
3199
3199
|
},
|
|
3200
|
-
children: l.map((g) => /* @__PURE__ */
|
|
3200
|
+
children: l.map((g) => /* @__PURE__ */ c(
|
|
3201
3201
|
he,
|
|
3202
3202
|
{
|
|
3203
3203
|
value: g.value,
|
|
@@ -3220,8 +3220,8 @@ function yr({
|
|
|
3220
3220
|
/* @__PURE__ */ b("div", { className: m.grid2, children: [
|
|
3221
3221
|
/* @__PURE__ */ b("div", { children: [
|
|
3222
3222
|
/* @__PURE__ */ b("div", { className: m.labelContainer, children: [
|
|
3223
|
-
/* @__PURE__ */
|
|
3224
|
-
e.justifyContent !== o.justifyContent && /* @__PURE__ */
|
|
3223
|
+
/* @__PURE__ */ c("label", { className: m.label, style: { color: r.textColor }, children: i.justifyContentLabel || "Justify Content" }),
|
|
3224
|
+
e.justifyContent !== o.justifyContent && /* @__PURE__ */ c(
|
|
3225
3225
|
"button",
|
|
3226
3226
|
{
|
|
3227
3227
|
type: "button",
|
|
@@ -3229,11 +3229,11 @@ function yr({
|
|
|
3229
3229
|
className: m.resetIcon,
|
|
3230
3230
|
style: { color: r.secondaryTextColor },
|
|
3231
3231
|
title: "Reset to original",
|
|
3232
|
-
children: /* @__PURE__ */
|
|
3232
|
+
children: /* @__PURE__ */ c(ae, { size: 12 })
|
|
3233
3233
|
}
|
|
3234
3234
|
)
|
|
3235
3235
|
] }),
|
|
3236
|
-
/* @__PURE__ */
|
|
3236
|
+
/* @__PURE__ */ c(
|
|
3237
3237
|
"div",
|
|
3238
3238
|
{
|
|
3239
3239
|
className: m.inputContainer,
|
|
@@ -3247,7 +3247,7 @@ function yr({
|
|
|
3247
3247
|
value: e.justifyContent || "flex-start",
|
|
3248
3248
|
onValueChange: (g) => t("justifyContent", g),
|
|
3249
3249
|
children: [
|
|
3250
|
-
/* @__PURE__ */
|
|
3250
|
+
/* @__PURE__ */ c(
|
|
3251
3251
|
ge,
|
|
3252
3252
|
{
|
|
3253
3253
|
className: m.input,
|
|
@@ -3256,17 +3256,17 @@ function yr({
|
|
|
3256
3256
|
color: r.inputTextColor
|
|
3257
3257
|
},
|
|
3258
3258
|
size: "sm",
|
|
3259
|
-
children: /* @__PURE__ */
|
|
3259
|
+
children: /* @__PURE__ */ c(pe, {})
|
|
3260
3260
|
}
|
|
3261
3261
|
),
|
|
3262
|
-
/* @__PURE__ */
|
|
3262
|
+
/* @__PURE__ */ c(
|
|
3263
3263
|
fe,
|
|
3264
3264
|
{
|
|
3265
3265
|
style: {
|
|
3266
3266
|
backgroundColor: r.backgroundColor,
|
|
3267
3267
|
borderColor: r.borderColor
|
|
3268
3268
|
},
|
|
3269
|
-
children: p.map((g) => /* @__PURE__ */
|
|
3269
|
+
children: p.map((g) => /* @__PURE__ */ c(
|
|
3270
3270
|
he,
|
|
3271
3271
|
{
|
|
3272
3272
|
value: g.value,
|
|
@@ -3287,8 +3287,8 @@ function yr({
|
|
|
3287
3287
|
] }),
|
|
3288
3288
|
/* @__PURE__ */ b("div", { children: [
|
|
3289
3289
|
/* @__PURE__ */ b("div", { className: m.labelContainer, children: [
|
|
3290
|
-
/* @__PURE__ */
|
|
3291
|
-
e.alignItems !== o.alignItems && /* @__PURE__ */
|
|
3290
|
+
/* @__PURE__ */ c("label", { className: m.label, style: { color: r.textColor }, children: i.alignItemsLabel || "Align Items" }),
|
|
3291
|
+
e.alignItems !== o.alignItems && /* @__PURE__ */ c(
|
|
3292
3292
|
"button",
|
|
3293
3293
|
{
|
|
3294
3294
|
type: "button",
|
|
@@ -3296,11 +3296,11 @@ function yr({
|
|
|
3296
3296
|
className: m.resetIcon,
|
|
3297
3297
|
style: { color: r.secondaryTextColor },
|
|
3298
3298
|
title: "Reset to original",
|
|
3299
|
-
children: /* @__PURE__ */
|
|
3299
|
+
children: /* @__PURE__ */ c(ae, { size: 12 })
|
|
3300
3300
|
}
|
|
3301
3301
|
)
|
|
3302
3302
|
] }),
|
|
3303
|
-
/* @__PURE__ */
|
|
3303
|
+
/* @__PURE__ */ c(
|
|
3304
3304
|
"div",
|
|
3305
3305
|
{
|
|
3306
3306
|
className: m.inputContainer,
|
|
@@ -3314,7 +3314,7 @@ function yr({
|
|
|
3314
3314
|
value: e.alignItems || "stretch",
|
|
3315
3315
|
onValueChange: (g) => t("alignItems", g),
|
|
3316
3316
|
children: [
|
|
3317
|
-
/* @__PURE__ */
|
|
3317
|
+
/* @__PURE__ */ c(
|
|
3318
3318
|
ge,
|
|
3319
3319
|
{
|
|
3320
3320
|
className: m.input,
|
|
@@ -3323,17 +3323,17 @@ function yr({
|
|
|
3323
3323
|
color: r.inputTextColor
|
|
3324
3324
|
},
|
|
3325
3325
|
size: "sm",
|
|
3326
|
-
children: /* @__PURE__ */
|
|
3326
|
+
children: /* @__PURE__ */ c(pe, {})
|
|
3327
3327
|
}
|
|
3328
3328
|
),
|
|
3329
|
-
/* @__PURE__ */
|
|
3329
|
+
/* @__PURE__ */ c(
|
|
3330
3330
|
fe,
|
|
3331
3331
|
{
|
|
3332
3332
|
style: {
|
|
3333
3333
|
backgroundColor: r.backgroundColor,
|
|
3334
3334
|
borderColor: r.borderColor
|
|
3335
3335
|
},
|
|
3336
|
-
children:
|
|
3336
|
+
children: u.map((g) => /* @__PURE__ */ c(
|
|
3337
3337
|
he,
|
|
3338
3338
|
{
|
|
3339
3339
|
value: g.value,
|
|
@@ -3361,17 +3361,17 @@ function Cr({
|
|
|
3361
3361
|
originalStyles: o,
|
|
3362
3362
|
onResetProperty: n
|
|
3363
3363
|
}) {
|
|
3364
|
-
const { labels:
|
|
3365
|
-
{ label:
|
|
3366
|
-
{ label:
|
|
3367
|
-
{ label:
|
|
3368
|
-
{ label:
|
|
3369
|
-
{ label:
|
|
3364
|
+
const { labels: i, theme: r } = K(), s = [
|
|
3365
|
+
{ label: i.objectFitFill || "Fill", value: "fill" },
|
|
3366
|
+
{ label: i.objectFitContain || "Contain", value: "contain" },
|
|
3367
|
+
{ label: i.objectFitCover || "Cover", value: "cover" },
|
|
3368
|
+
{ label: i.objectFitNone || "None", value: "none" },
|
|
3369
|
+
{ label: i.objectFitScaleDown || "Scale Down", value: "scale-down" }
|
|
3370
3370
|
];
|
|
3371
|
-
return /* @__PURE__ */
|
|
3371
|
+
return /* @__PURE__ */ c("div", { className: m.section, children: /* @__PURE__ */ b("div", { children: [
|
|
3372
3372
|
/* @__PURE__ */ b("div", { className: m.labelContainer, children: [
|
|
3373
|
-
/* @__PURE__ */
|
|
3374
|
-
e.objectFit !== o.objectFit && /* @__PURE__ */
|
|
3373
|
+
/* @__PURE__ */ c("label", { className: m.label, style: { color: r.textColor }, children: i.objectFitLabel || "Object Fit" }),
|
|
3374
|
+
e.objectFit !== o.objectFit && /* @__PURE__ */ c(
|
|
3375
3375
|
"button",
|
|
3376
3376
|
{
|
|
3377
3377
|
type: "button",
|
|
@@ -3379,11 +3379,11 @@ function Cr({
|
|
|
3379
3379
|
className: m.resetIcon,
|
|
3380
3380
|
style: { color: r.secondaryTextColor },
|
|
3381
3381
|
title: "Reset to original",
|
|
3382
|
-
children: /* @__PURE__ */
|
|
3382
|
+
children: /* @__PURE__ */ c(ae, { size: 12 })
|
|
3383
3383
|
}
|
|
3384
3384
|
)
|
|
3385
3385
|
] }),
|
|
3386
|
-
/* @__PURE__ */
|
|
3386
|
+
/* @__PURE__ */ c(
|
|
3387
3387
|
"div",
|
|
3388
3388
|
{
|
|
3389
3389
|
className: m.inputContainer,
|
|
@@ -3397,7 +3397,7 @@ function Cr({
|
|
|
3397
3397
|
value: e.objectFit || "fill",
|
|
3398
3398
|
onValueChange: (p) => t("objectFit", p),
|
|
3399
3399
|
children: [
|
|
3400
|
-
/* @__PURE__ */
|
|
3400
|
+
/* @__PURE__ */ c(
|
|
3401
3401
|
ge,
|
|
3402
3402
|
{
|
|
3403
3403
|
className: m.input,
|
|
@@ -3406,17 +3406,17 @@ function Cr({
|
|
|
3406
3406
|
color: r.inputTextColor
|
|
3407
3407
|
},
|
|
3408
3408
|
size: "sm",
|
|
3409
|
-
children: /* @__PURE__ */
|
|
3409
|
+
children: /* @__PURE__ */ c(pe, {})
|
|
3410
3410
|
}
|
|
3411
3411
|
),
|
|
3412
|
-
/* @__PURE__ */
|
|
3412
|
+
/* @__PURE__ */ c(
|
|
3413
3413
|
fe,
|
|
3414
3414
|
{
|
|
3415
3415
|
style: {
|
|
3416
3416
|
backgroundColor: r.backgroundColor,
|
|
3417
3417
|
borderColor: r.borderColor
|
|
3418
3418
|
},
|
|
3419
|
-
children:
|
|
3419
|
+
children: s.map((p) => /* @__PURE__ */ c(
|
|
3420
3420
|
he,
|
|
3421
3421
|
{
|
|
3422
3422
|
value: p.value,
|
|
@@ -3450,37 +3450,37 @@ const xr = [
|
|
|
3450
3450
|
{ label: "Justify", value: "justify", Icon: _o }
|
|
3451
3451
|
];
|
|
3452
3452
|
function kr({ styles: e, onChange: t, originalStyles: o, onResetProperty: n }) {
|
|
3453
|
-
const { labels:
|
|
3454
|
-
{ label:
|
|
3455
|
-
{ label:
|
|
3456
|
-
{ label:
|
|
3457
|
-
{ label:
|
|
3458
|
-
{ label:
|
|
3459
|
-
{ label:
|
|
3460
|
-
{ label:
|
|
3461
|
-
{ label:
|
|
3462
|
-
{ label:
|
|
3453
|
+
const { labels: i, theme: r } = K(), s = [
|
|
3454
|
+
{ label: i.fontSizeXS || "XS", value: "0.75rem" },
|
|
3455
|
+
{ label: i.fontSizeSM || "SM", value: "0.875rem" },
|
|
3456
|
+
{ label: i.fontSizeBase || "Base", value: "1rem" },
|
|
3457
|
+
{ label: i.fontSizeLG || "LG", value: "1.125rem" },
|
|
3458
|
+
{ label: i.fontSizeXL || "XL", value: "1.25rem" },
|
|
3459
|
+
{ label: i.fontSize2XL || "2XL", value: "1.5rem" },
|
|
3460
|
+
{ label: i.fontSize3XL || "3XL", value: "1.875rem" },
|
|
3461
|
+
{ label: i.fontSize4XL || "4XL", value: "2.25rem" },
|
|
3462
|
+
{ label: i.fontSize5XL || "5XL", value: "3rem" }
|
|
3463
3463
|
], p = [
|
|
3464
|
-
{ label:
|
|
3465
|
-
{ label:
|
|
3466
|
-
{ label:
|
|
3467
|
-
{ label:
|
|
3468
|
-
{ label:
|
|
3469
|
-
{ label:
|
|
3470
|
-
{ label:
|
|
3471
|
-
{ label:
|
|
3472
|
-
],
|
|
3473
|
-
{ label:
|
|
3474
|
-
{ label:
|
|
3475
|
-
{ label:
|
|
3476
|
-
{ label:
|
|
3464
|
+
{ label: i.fontWeightThin || "Thin", value: "100" },
|
|
3465
|
+
{ label: i.fontWeightExtralight || "Extralight", value: "200" },
|
|
3466
|
+
{ label: i.fontWeightNormal || "Normal", value: "400" },
|
|
3467
|
+
{ label: i.fontWeightMedium || "Medium", value: "500" },
|
|
3468
|
+
{ label: i.fontWeightSemibold || "Semibold", value: "600" },
|
|
3469
|
+
{ label: i.fontWeightBold || "Bold", value: "700" },
|
|
3470
|
+
{ label: i.fontWeightExtrabold || "Extrabold", value: "800" },
|
|
3471
|
+
{ label: i.fontWeightBlack || "Black", value: "900" }
|
|
3472
|
+
], u = [
|
|
3473
|
+
{ label: i.textDecorationNone || "None", value: "none" },
|
|
3474
|
+
{ label: i.textDecorationUnderline || "Underline", value: "underline" },
|
|
3475
|
+
{ label: i.textDecorationLineThrough || "Line Through", value: "line-through" },
|
|
3476
|
+
{ label: i.textDecorationOverline || "Overline", value: "overline" }
|
|
3477
3477
|
];
|
|
3478
3478
|
return /* @__PURE__ */ b("div", { className: m.section, children: [
|
|
3479
3479
|
/* @__PURE__ */ b("div", { className: m.grid2, children: [
|
|
3480
|
-
/* @__PURE__ */
|
|
3480
|
+
/* @__PURE__ */ c(
|
|
3481
3481
|
Qe,
|
|
3482
3482
|
{
|
|
3483
|
-
label:
|
|
3483
|
+
label: i.colorLabel || "Color",
|
|
3484
3484
|
value: e.color || "#000000",
|
|
3485
3485
|
onChange: (l) => t("color", l),
|
|
3486
3486
|
originalValue: o.color,
|
|
@@ -3489,8 +3489,8 @@ function kr({ styles: e, onChange: t, originalStyles: o, onResetProperty: n }) {
|
|
|
3489
3489
|
),
|
|
3490
3490
|
/* @__PURE__ */ b("div", { children: [
|
|
3491
3491
|
/* @__PURE__ */ b("div", { className: m.labelContainer, children: [
|
|
3492
|
-
/* @__PURE__ */
|
|
3493
|
-
e.fontSize !== o.fontSize && /* @__PURE__ */
|
|
3492
|
+
/* @__PURE__ */ c("label", { className: m.label, style: { color: r.textColor }, children: i.fontSizeLabel || "Font Size" }),
|
|
3493
|
+
e.fontSize !== o.fontSize && /* @__PURE__ */ c(
|
|
3494
3494
|
"button",
|
|
3495
3495
|
{
|
|
3496
3496
|
type: "button",
|
|
@@ -3498,11 +3498,11 @@ function kr({ styles: e, onChange: t, originalStyles: o, onResetProperty: n }) {
|
|
|
3498
3498
|
className: m.resetIcon,
|
|
3499
3499
|
style: { color: r.secondaryTextColor },
|
|
3500
3500
|
title: "Reset to original",
|
|
3501
|
-
children: /* @__PURE__ */
|
|
3501
|
+
children: /* @__PURE__ */ c(ae, { size: 12 })
|
|
3502
3502
|
}
|
|
3503
3503
|
)
|
|
3504
3504
|
] }),
|
|
3505
|
-
/* @__PURE__ */
|
|
3505
|
+
/* @__PURE__ */ c(
|
|
3506
3506
|
"div",
|
|
3507
3507
|
{
|
|
3508
3508
|
className: m.inputContainer,
|
|
@@ -3516,7 +3516,7 @@ function kr({ styles: e, onChange: t, originalStyles: o, onResetProperty: n }) {
|
|
|
3516
3516
|
value: e.fontSize || "1rem",
|
|
3517
3517
|
onValueChange: (l) => t("fontSize", l),
|
|
3518
3518
|
children: [
|
|
3519
|
-
/* @__PURE__ */
|
|
3519
|
+
/* @__PURE__ */ c(
|
|
3520
3520
|
ge,
|
|
3521
3521
|
{
|
|
3522
3522
|
className: m.input,
|
|
@@ -3525,17 +3525,17 @@ function kr({ styles: e, onChange: t, originalStyles: o, onResetProperty: n }) {
|
|
|
3525
3525
|
color: r.inputTextColor
|
|
3526
3526
|
},
|
|
3527
3527
|
size: "sm",
|
|
3528
|
-
children: /* @__PURE__ */
|
|
3528
|
+
children: /* @__PURE__ */ c(pe, {})
|
|
3529
3529
|
}
|
|
3530
3530
|
),
|
|
3531
|
-
/* @__PURE__ */
|
|
3531
|
+
/* @__PURE__ */ c(
|
|
3532
3532
|
fe,
|
|
3533
3533
|
{
|
|
3534
3534
|
style: {
|
|
3535
3535
|
backgroundColor: r.backgroundColor,
|
|
3536
3536
|
borderColor: r.borderColor
|
|
3537
3537
|
},
|
|
3538
|
-
children:
|
|
3538
|
+
children: s.map((l) => /* @__PURE__ */ c(
|
|
3539
3539
|
he,
|
|
3540
3540
|
{
|
|
3541
3541
|
value: l.value,
|
|
@@ -3558,8 +3558,8 @@ function kr({ styles: e, onChange: t, originalStyles: o, onResetProperty: n }) {
|
|
|
3558
3558
|
/* @__PURE__ */ b("div", { className: m.grid2, children: [
|
|
3559
3559
|
/* @__PURE__ */ b("div", { children: [
|
|
3560
3560
|
/* @__PURE__ */ b("div", { className: m.labelContainer, children: [
|
|
3561
|
-
/* @__PURE__ */
|
|
3562
|
-
e.fontWeight !== o.fontWeight && /* @__PURE__ */
|
|
3561
|
+
/* @__PURE__ */ c("label", { className: m.label, style: { color: r.textColor }, children: i.fontWeightLabel || "Font Weight" }),
|
|
3562
|
+
e.fontWeight !== o.fontWeight && /* @__PURE__ */ c(
|
|
3563
3563
|
"button",
|
|
3564
3564
|
{
|
|
3565
3565
|
type: "button",
|
|
@@ -3567,11 +3567,11 @@ function kr({ styles: e, onChange: t, originalStyles: o, onResetProperty: n }) {
|
|
|
3567
3567
|
className: m.resetIcon,
|
|
3568
3568
|
style: { color: r.secondaryTextColor },
|
|
3569
3569
|
title: "Reset to original",
|
|
3570
|
-
children: /* @__PURE__ */
|
|
3570
|
+
children: /* @__PURE__ */ c(ae, { size: 12 })
|
|
3571
3571
|
}
|
|
3572
3572
|
)
|
|
3573
3573
|
] }),
|
|
3574
|
-
/* @__PURE__ */
|
|
3574
|
+
/* @__PURE__ */ c(
|
|
3575
3575
|
"div",
|
|
3576
3576
|
{
|
|
3577
3577
|
className: m.inputContainer,
|
|
@@ -3585,7 +3585,7 @@ function kr({ styles: e, onChange: t, originalStyles: o, onResetProperty: n }) {
|
|
|
3585
3585
|
value: e.fontWeight || "400",
|
|
3586
3586
|
onValueChange: (l) => t("fontWeight", l),
|
|
3587
3587
|
children: [
|
|
3588
|
-
/* @__PURE__ */
|
|
3588
|
+
/* @__PURE__ */ c(
|
|
3589
3589
|
ge,
|
|
3590
3590
|
{
|
|
3591
3591
|
className: m.input,
|
|
@@ -3594,17 +3594,17 @@ function kr({ styles: e, onChange: t, originalStyles: o, onResetProperty: n }) {
|
|
|
3594
3594
|
color: r.inputTextColor
|
|
3595
3595
|
},
|
|
3596
3596
|
size: "sm",
|
|
3597
|
-
children: /* @__PURE__ */
|
|
3597
|
+
children: /* @__PURE__ */ c(pe, {})
|
|
3598
3598
|
}
|
|
3599
3599
|
),
|
|
3600
|
-
/* @__PURE__ */
|
|
3600
|
+
/* @__PURE__ */ c(
|
|
3601
3601
|
fe,
|
|
3602
3602
|
{
|
|
3603
3603
|
style: {
|
|
3604
3604
|
backgroundColor: r.backgroundColor,
|
|
3605
3605
|
borderColor: r.borderColor
|
|
3606
3606
|
},
|
|
3607
|
-
children: p.map((l) => /* @__PURE__ */
|
|
3607
|
+
children: p.map((l) => /* @__PURE__ */ c(
|
|
3608
3608
|
he,
|
|
3609
3609
|
{
|
|
3610
3610
|
value: l.value,
|
|
@@ -3625,8 +3625,8 @@ function kr({ styles: e, onChange: t, originalStyles: o, onResetProperty: n }) {
|
|
|
3625
3625
|
] }),
|
|
3626
3626
|
/* @__PURE__ */ b("div", { children: [
|
|
3627
3627
|
/* @__PURE__ */ b("div", { className: m.labelContainer, children: [
|
|
3628
|
-
/* @__PURE__ */
|
|
3629
|
-
e.textDecoration !== o.textDecoration && /* @__PURE__ */
|
|
3628
|
+
/* @__PURE__ */ c("label", { className: m.label, style: { color: r.textColor }, children: i.textDecorationLabel || "Text Decoration" }),
|
|
3629
|
+
e.textDecoration !== o.textDecoration && /* @__PURE__ */ c(
|
|
3630
3630
|
"button",
|
|
3631
3631
|
{
|
|
3632
3632
|
type: "button",
|
|
@@ -3634,11 +3634,11 @@ function kr({ styles: e, onChange: t, originalStyles: o, onResetProperty: n }) {
|
|
|
3634
3634
|
className: m.resetIcon,
|
|
3635
3635
|
style: { color: r.secondaryTextColor },
|
|
3636
3636
|
title: "Reset to original",
|
|
3637
|
-
children: /* @__PURE__ */
|
|
3637
|
+
children: /* @__PURE__ */ c(ae, { size: 12 })
|
|
3638
3638
|
}
|
|
3639
3639
|
)
|
|
3640
3640
|
] }),
|
|
3641
|
-
/* @__PURE__ */
|
|
3641
|
+
/* @__PURE__ */ c(
|
|
3642
3642
|
"div",
|
|
3643
3643
|
{
|
|
3644
3644
|
className: m.inputContainer,
|
|
@@ -3652,7 +3652,7 @@ function kr({ styles: e, onChange: t, originalStyles: o, onResetProperty: n }) {
|
|
|
3652
3652
|
value: e.textDecoration || "none",
|
|
3653
3653
|
onValueChange: (l) => t("textDecoration", l),
|
|
3654
3654
|
children: [
|
|
3655
|
-
/* @__PURE__ */
|
|
3655
|
+
/* @__PURE__ */ c(
|
|
3656
3656
|
ge,
|
|
3657
3657
|
{
|
|
3658
3658
|
className: m.input,
|
|
@@ -3661,17 +3661,17 @@ function kr({ styles: e, onChange: t, originalStyles: o, onResetProperty: n }) {
|
|
|
3661
3661
|
color: r.inputTextColor
|
|
3662
3662
|
},
|
|
3663
3663
|
size: "sm",
|
|
3664
|
-
children: /* @__PURE__ */
|
|
3664
|
+
children: /* @__PURE__ */ c(pe, {})
|
|
3665
3665
|
}
|
|
3666
3666
|
),
|
|
3667
|
-
/* @__PURE__ */
|
|
3667
|
+
/* @__PURE__ */ c(
|
|
3668
3668
|
fe,
|
|
3669
3669
|
{
|
|
3670
3670
|
style: {
|
|
3671
3671
|
backgroundColor: r.backgroundColor,
|
|
3672
3672
|
borderColor: r.borderColor
|
|
3673
3673
|
},
|
|
3674
|
-
children:
|
|
3674
|
+
children: u.map((l) => /* @__PURE__ */ c(
|
|
3675
3675
|
he,
|
|
3676
3676
|
{
|
|
3677
3677
|
value: l.value,
|
|
@@ -3693,8 +3693,8 @@ function kr({ styles: e, onChange: t, originalStyles: o, onResetProperty: n }) {
|
|
|
3693
3693
|
] }),
|
|
3694
3694
|
/* @__PURE__ */ b("div", { children: [
|
|
3695
3695
|
/* @__PURE__ */ b("div", { className: m.labelContainer, children: [
|
|
3696
|
-
/* @__PURE__ */
|
|
3697
|
-
e.fontFamily !== o.fontFamily && /* @__PURE__ */
|
|
3696
|
+
/* @__PURE__ */ c("label", { className: m.label, style: { color: r.textColor }, children: i.fontFamilyLabel || "Font Family" }),
|
|
3697
|
+
e.fontFamily !== o.fontFamily && /* @__PURE__ */ c(
|
|
3698
3698
|
"button",
|
|
3699
3699
|
{
|
|
3700
3700
|
type: "button",
|
|
@@ -3702,11 +3702,11 @@ function kr({ styles: e, onChange: t, originalStyles: o, onResetProperty: n }) {
|
|
|
3702
3702
|
className: m.resetIcon,
|
|
3703
3703
|
style: { color: r.secondaryTextColor },
|
|
3704
3704
|
title: "Reset to original",
|
|
3705
|
-
children: /* @__PURE__ */
|
|
3705
|
+
children: /* @__PURE__ */ c(ae, { size: 12 })
|
|
3706
3706
|
}
|
|
3707
3707
|
)
|
|
3708
3708
|
] }),
|
|
3709
|
-
/* @__PURE__ */
|
|
3709
|
+
/* @__PURE__ */ c(
|
|
3710
3710
|
"div",
|
|
3711
3711
|
{
|
|
3712
3712
|
className: $e(
|
|
@@ -3717,7 +3717,7 @@ function kr({ styles: e, onChange: t, originalStyles: o, onResetProperty: n }) {
|
|
|
3717
3717
|
backgroundColor: r.inputBackgroundColor,
|
|
3718
3718
|
borderColor: r.inputBorderColor
|
|
3719
3719
|
},
|
|
3720
|
-
children: /* @__PURE__ */
|
|
3720
|
+
children: /* @__PURE__ */ c("div", { className: $e(m.flexRow, m.tabButtons), children: xr.map((l) => /* @__PURE__ */ c(
|
|
3721
3721
|
ye,
|
|
3722
3722
|
{
|
|
3723
3723
|
variant: e.fontFamily === l.value ? "default" : "ghost",
|
|
@@ -3736,8 +3736,8 @@ function kr({ styles: e, onChange: t, originalStyles: o, onResetProperty: n }) {
|
|
|
3736
3736
|
] }),
|
|
3737
3737
|
/* @__PURE__ */ b("div", { children: [
|
|
3738
3738
|
/* @__PURE__ */ b("div", { className: m.labelContainer, children: [
|
|
3739
|
-
/* @__PURE__ */
|
|
3740
|
-
e.textAlign !== o.textAlign && /* @__PURE__ */
|
|
3739
|
+
/* @__PURE__ */ c("label", { className: m.label, style: { color: r.textColor }, children: i.textAlignLabel || "Text Align" }),
|
|
3740
|
+
e.textAlign !== o.textAlign && /* @__PURE__ */ c(
|
|
3741
3741
|
"button",
|
|
3742
3742
|
{
|
|
3743
3743
|
type: "button",
|
|
@@ -3745,11 +3745,11 @@ function kr({ styles: e, onChange: t, originalStyles: o, onResetProperty: n }) {
|
|
|
3745
3745
|
className: m.resetIcon,
|
|
3746
3746
|
style: { color: r.secondaryTextColor },
|
|
3747
3747
|
title: "Reset to original",
|
|
3748
|
-
children: /* @__PURE__ */
|
|
3748
|
+
children: /* @__PURE__ */ c(ae, { size: 12 })
|
|
3749
3749
|
}
|
|
3750
3750
|
)
|
|
3751
3751
|
] }),
|
|
3752
|
-
/* @__PURE__ */
|
|
3752
|
+
/* @__PURE__ */ c(
|
|
3753
3753
|
"div",
|
|
3754
3754
|
{
|
|
3755
3755
|
className: $e(
|
|
@@ -3760,7 +3760,7 @@ function kr({ styles: e, onChange: t, originalStyles: o, onResetProperty: n }) {
|
|
|
3760
3760
|
backgroundColor: r.inputBackgroundColor,
|
|
3761
3761
|
borderColor: r.inputBorderColor
|
|
3762
3762
|
},
|
|
3763
|
-
children: /* @__PURE__ */
|
|
3763
|
+
children: /* @__PURE__ */ c("div", { className: m.grid4, children: _r.map((l) => /* @__PURE__ */ c(
|
|
3764
3764
|
ye,
|
|
3765
3765
|
{
|
|
3766
3766
|
variant: e.textAlign === l.value ? "default" : "ghost",
|
|
@@ -3771,7 +3771,7 @@ function kr({ styles: e, onChange: t, originalStyles: o, onResetProperty: n }) {
|
|
|
3771
3771
|
backgroundColor: e.textAlign === l.value ? r.buttonColor : "transparent",
|
|
3772
3772
|
color: e.textAlign === l.value ? r.buttonTextColor : r.textColor
|
|
3773
3773
|
},
|
|
3774
|
-
children: /* @__PURE__ */
|
|
3774
|
+
children: /* @__PURE__ */ c(l.Icon, { className: m.alignIcon })
|
|
3775
3775
|
},
|
|
3776
3776
|
l.value
|
|
3777
3777
|
)) })
|
|
@@ -3786,23 +3786,23 @@ function wr({
|
|
|
3786
3786
|
originalStyles: o,
|
|
3787
3787
|
onResetProperty: n
|
|
3788
3788
|
}) {
|
|
3789
|
-
const { labels:
|
|
3790
|
-
{ label:
|
|
3791
|
-
{ label:
|
|
3792
|
-
{ label:
|
|
3793
|
-
{ label:
|
|
3794
|
-
{ label:
|
|
3795
|
-
{ label:
|
|
3796
|
-
{ label:
|
|
3797
|
-
{ label:
|
|
3798
|
-
{ label:
|
|
3789
|
+
const { labels: i, theme: r } = K(), s = [
|
|
3790
|
+
{ label: i.borderStyleSolid || "Solid", value: "solid" },
|
|
3791
|
+
{ label: i.borderStyleDashed || "Dashed", value: "dashed" },
|
|
3792
|
+
{ label: i.borderStyleDotted || "Dotted", value: "dotted" },
|
|
3793
|
+
{ label: i.borderStyleDouble || "Double", value: "double" },
|
|
3794
|
+
{ label: i.borderStyleGroove || "Groove", value: "groove" },
|
|
3795
|
+
{ label: i.borderStyleRidge || "Ridge", value: "ridge" },
|
|
3796
|
+
{ label: i.borderStyleInset || "Inset", value: "inset" },
|
|
3797
|
+
{ label: i.borderStyleOutset || "Outset", value: "outset" },
|
|
3798
|
+
{ label: i.borderStyleNone || "None", value: "none" }
|
|
3799
3799
|
];
|
|
3800
3800
|
return /* @__PURE__ */ b("div", { className: m.section, children: [
|
|
3801
3801
|
/* @__PURE__ */ b("div", { className: m.grid2, children: [
|
|
3802
|
-
/* @__PURE__ */
|
|
3802
|
+
/* @__PURE__ */ c(
|
|
3803
3803
|
Q,
|
|
3804
3804
|
{
|
|
3805
|
-
label:
|
|
3805
|
+
label: i.borderRadiusLabel || "Border Radius",
|
|
3806
3806
|
value: e.borderRadius,
|
|
3807
3807
|
onChange: (p) => t("borderRadius", p),
|
|
3808
3808
|
min: 0,
|
|
@@ -3813,10 +3813,10 @@ function wr({
|
|
|
3813
3813
|
onReset: () => n("borderRadius")
|
|
3814
3814
|
}
|
|
3815
3815
|
),
|
|
3816
|
-
/* @__PURE__ */
|
|
3816
|
+
/* @__PURE__ */ c(
|
|
3817
3817
|
Q,
|
|
3818
3818
|
{
|
|
3819
|
-
label:
|
|
3819
|
+
label: i.borderWidthLabel || "Border Width",
|
|
3820
3820
|
value: e.borderWidth,
|
|
3821
3821
|
onChange: (p) => t("borderWidth", p),
|
|
3822
3822
|
min: 0,
|
|
@@ -3829,10 +3829,10 @@ function wr({
|
|
|
3829
3829
|
)
|
|
3830
3830
|
] }),
|
|
3831
3831
|
/* @__PURE__ */ b("div", { className: m.grid2, children: [
|
|
3832
|
-
/* @__PURE__ */
|
|
3832
|
+
/* @__PURE__ */ c(
|
|
3833
3833
|
Qe,
|
|
3834
3834
|
{
|
|
3835
|
-
label:
|
|
3835
|
+
label: i.borderColorLabel || "Border Color",
|
|
3836
3836
|
value: e.borderColor || "#000000",
|
|
3837
3837
|
onChange: (p) => t("borderColor", p),
|
|
3838
3838
|
originalValue: o.borderColor,
|
|
@@ -3841,8 +3841,8 @@ function wr({
|
|
|
3841
3841
|
),
|
|
3842
3842
|
/* @__PURE__ */ b("div", { children: [
|
|
3843
3843
|
/* @__PURE__ */ b("div", { className: m.labelContainer, children: [
|
|
3844
|
-
/* @__PURE__ */
|
|
3845
|
-
e.borderStyle !== o.borderStyle && /* @__PURE__ */
|
|
3844
|
+
/* @__PURE__ */ c("label", { className: m.label, style: { color: r.textColor }, children: i.borderStyleLabel || "Border Style" }),
|
|
3845
|
+
e.borderStyle !== o.borderStyle && /* @__PURE__ */ c(
|
|
3846
3846
|
"button",
|
|
3847
3847
|
{
|
|
3848
3848
|
type: "button",
|
|
@@ -3850,11 +3850,11 @@ function wr({
|
|
|
3850
3850
|
className: m.resetIcon,
|
|
3851
3851
|
style: { color: r.secondaryTextColor },
|
|
3852
3852
|
title: "Reset to original",
|
|
3853
|
-
children: /* @__PURE__ */
|
|
3853
|
+
children: /* @__PURE__ */ c(ae, { size: 12 })
|
|
3854
3854
|
}
|
|
3855
3855
|
)
|
|
3856
3856
|
] }),
|
|
3857
|
-
/* @__PURE__ */
|
|
3857
|
+
/* @__PURE__ */ c(
|
|
3858
3858
|
"div",
|
|
3859
3859
|
{
|
|
3860
3860
|
className: m.inputContainer,
|
|
@@ -3868,7 +3868,7 @@ function wr({
|
|
|
3868
3868
|
value: e.borderStyle || "solid",
|
|
3869
3869
|
onValueChange: (p) => t("borderStyle", p),
|
|
3870
3870
|
children: [
|
|
3871
|
-
/* @__PURE__ */
|
|
3871
|
+
/* @__PURE__ */ c(
|
|
3872
3872
|
ge,
|
|
3873
3873
|
{
|
|
3874
3874
|
className: m.input,
|
|
@@ -3877,17 +3877,17 @@ function wr({
|
|
|
3877
3877
|
color: r.inputTextColor
|
|
3878
3878
|
},
|
|
3879
3879
|
size: "sm",
|
|
3880
|
-
children: /* @__PURE__ */
|
|
3880
|
+
children: /* @__PURE__ */ c(pe, {})
|
|
3881
3881
|
}
|
|
3882
3882
|
),
|
|
3883
|
-
/* @__PURE__ */
|
|
3883
|
+
/* @__PURE__ */ c(
|
|
3884
3884
|
fe,
|
|
3885
3885
|
{
|
|
3886
3886
|
style: {
|
|
3887
3887
|
backgroundColor: r.backgroundColor,
|
|
3888
3888
|
borderColor: r.borderColor
|
|
3889
3889
|
},
|
|
3890
|
-
children:
|
|
3890
|
+
children: s.map((p) => /* @__PURE__ */ c(
|
|
3891
3891
|
he,
|
|
3892
3892
|
{
|
|
3893
3893
|
value: p.value,
|
|
@@ -3915,30 +3915,30 @@ function Sr({
|
|
|
3915
3915
|
originalStyles: o,
|
|
3916
3916
|
onResetProperty: n
|
|
3917
3917
|
}) {
|
|
3918
|
-
const { labels:
|
|
3918
|
+
const { labels: i, theme: r } = K(), [s, p] = E("vh"), [u, l] = E("all"), g = q("vh"), d = q("all");
|
|
3919
3919
|
return W(() => {
|
|
3920
|
-
if (g.current !==
|
|
3921
|
-
if (g.current === "vh" &&
|
|
3922
|
-
const
|
|
3923
|
-
t("paddingTop",
|
|
3924
|
-
} else if (g.current === "all" &&
|
|
3925
|
-
const
|
|
3920
|
+
if (g.current !== s) {
|
|
3921
|
+
if (g.current === "vh" && s === "all") {
|
|
3922
|
+
const a = e.paddingVertical || e.paddingTop || "0px", f = e.paddingHorizontal || e.paddingLeft || "0px";
|
|
3923
|
+
t("paddingTop", a), t("paddingBottom", a), t("paddingLeft", f), t("paddingRight", f);
|
|
3924
|
+
} else if (g.current === "all" && s === "vh") {
|
|
3925
|
+
const a = e.paddingTop || "0px", f = e.paddingBottom || "0px", y = e.paddingLeft || "0px", _ = e.paddingRight || "0px", x = parseFloat(a), L = parseFloat(f), S = parseFloat(y), C = parseFloat(_), M = x > 0 || L > 0 ? Math.min(x || 999999, L || 999999) : 0, k = S > 0 || C > 0 ? Math.min(S || 999999, C || 999999) : 0;
|
|
3926
3926
|
t("paddingVertical", M > 0 ? `${M}px` : "0px"), t("paddingHorizontal", k > 0 ? `${k}px` : "0px");
|
|
3927
3927
|
}
|
|
3928
|
-
g.current =
|
|
3928
|
+
g.current = s;
|
|
3929
3929
|
}
|
|
3930
|
-
}, [
|
|
3931
|
-
if (
|
|
3932
|
-
if (
|
|
3933
|
-
const
|
|
3934
|
-
t("marginTop",
|
|
3935
|
-
} else if (
|
|
3936
|
-
const
|
|
3930
|
+
}, [s, e, t]), W(() => {
|
|
3931
|
+
if (d.current !== u) {
|
|
3932
|
+
if (d.current === "vh" && u === "all") {
|
|
3933
|
+
const a = e.marginVertical || e.marginTop || "0px", f = e.marginHorizontal || e.marginLeft || "0px";
|
|
3934
|
+
t("marginTop", a), t("marginBottom", a), t("marginLeft", f), t("marginRight", f);
|
|
3935
|
+
} else if (d.current === "all" && u === "vh") {
|
|
3936
|
+
const a = e.marginTop || "0px", f = e.marginBottom || "0px", y = e.marginLeft || "0px", _ = e.marginRight || "0px", x = parseFloat(a), L = parseFloat(f), S = parseFloat(y), C = parseFloat(_), M = x > 0 || L > 0 ? Math.min(x || 999999, L || 999999) : 0, k = S > 0 || C > 0 ? Math.min(S || 999999, C || 999999) : 0;
|
|
3937
3937
|
t("marginVertical", M > 0 ? `${M}px` : "0px"), t("marginHorizontal", k > 0 ? `${k}px` : "0px");
|
|
3938
3938
|
}
|
|
3939
|
-
|
|
3939
|
+
d.current = u;
|
|
3940
3940
|
}
|
|
3941
|
-
}, [
|
|
3941
|
+
}, [u, e, t]), /* @__PURE__ */ b("div", { className: m.section, children: [
|
|
3942
3942
|
/* @__PURE__ */ b("div", { children: [
|
|
3943
3943
|
/* @__PURE__ */ b(
|
|
3944
3944
|
"div",
|
|
@@ -3950,9 +3950,9 @@ function Sr({
|
|
|
3950
3950
|
marginBottom: "var(--spacing-2)"
|
|
3951
3951
|
},
|
|
3952
3952
|
children: [
|
|
3953
|
-
/* @__PURE__ */
|
|
3953
|
+
/* @__PURE__ */ c("div", { className: m.sectionTitle, style: { color: r.textColor }, children: i.paddingLabel || "Padding" }),
|
|
3954
3954
|
/* @__PURE__ */ b("div", { style: { display: "flex", gap: "4px" }, children: [
|
|
3955
|
-
/* @__PURE__ */
|
|
3955
|
+
/* @__PURE__ */ c(
|
|
3956
3956
|
"button",
|
|
3957
3957
|
{
|
|
3958
3958
|
type: "button",
|
|
@@ -3965,14 +3965,14 @@ function Sr({
|
|
|
3965
3965
|
display: "flex",
|
|
3966
3966
|
alignItems: "center",
|
|
3967
3967
|
color: r.textColor,
|
|
3968
|
-
opacity:
|
|
3969
|
-
fontWeight:
|
|
3968
|
+
opacity: s === "vh" ? 1 : 0.4,
|
|
3969
|
+
fontWeight: s === "vh" ? "bold" : "normal"
|
|
3970
3970
|
},
|
|
3971
3971
|
title: "Vertical/Horizontal mode",
|
|
3972
|
-
children: /* @__PURE__ */
|
|
3972
|
+
children: /* @__PURE__ */ c(at, { size: 16 })
|
|
3973
3973
|
}
|
|
3974
3974
|
),
|
|
3975
|
-
/* @__PURE__ */
|
|
3975
|
+
/* @__PURE__ */ c(
|
|
3976
3976
|
"button",
|
|
3977
3977
|
{
|
|
3978
3978
|
type: "button",
|
|
@@ -3985,24 +3985,24 @@ function Sr({
|
|
|
3985
3985
|
display: "flex",
|
|
3986
3986
|
alignItems: "center",
|
|
3987
3987
|
color: r.textColor,
|
|
3988
|
-
opacity:
|
|
3989
|
-
fontWeight:
|
|
3988
|
+
opacity: s === "all" ? 1 : 0.4,
|
|
3989
|
+
fontWeight: s === "all" ? "bold" : "normal"
|
|
3990
3990
|
},
|
|
3991
3991
|
title: "All sides mode",
|
|
3992
|
-
children: /* @__PURE__ */
|
|
3992
|
+
children: /* @__PURE__ */ c(it, { size: 16 })
|
|
3993
3993
|
}
|
|
3994
3994
|
)
|
|
3995
3995
|
] })
|
|
3996
3996
|
]
|
|
3997
3997
|
}
|
|
3998
3998
|
),
|
|
3999
|
-
|
|
4000
|
-
/* @__PURE__ */
|
|
3999
|
+
s === "vh" ? /* @__PURE__ */ b("div", { className: m.grid2, children: [
|
|
4000
|
+
/* @__PURE__ */ c(
|
|
4001
4001
|
Q,
|
|
4002
4002
|
{
|
|
4003
|
-
label:
|
|
4003
|
+
label: i.paddingVerticalLabel || "Vertical",
|
|
4004
4004
|
value: e.paddingVertical,
|
|
4005
|
-
onChange: (
|
|
4005
|
+
onChange: (a) => t("paddingVertical", a),
|
|
4006
4006
|
min: 0,
|
|
4007
4007
|
max: 500,
|
|
4008
4008
|
step: 1,
|
|
@@ -4011,12 +4011,12 @@ function Sr({
|
|
|
4011
4011
|
onReset: () => n("paddingVertical")
|
|
4012
4012
|
}
|
|
4013
4013
|
),
|
|
4014
|
-
/* @__PURE__ */
|
|
4014
|
+
/* @__PURE__ */ c(
|
|
4015
4015
|
Q,
|
|
4016
4016
|
{
|
|
4017
|
-
label:
|
|
4017
|
+
label: i.paddingHorizontalLabel || "Horizontal",
|
|
4018
4018
|
value: e.paddingHorizontal,
|
|
4019
|
-
onChange: (
|
|
4019
|
+
onChange: (a) => t("paddingHorizontal", a),
|
|
4020
4020
|
min: 0,
|
|
4021
4021
|
max: 500,
|
|
4022
4022
|
step: 1,
|
|
@@ -4026,12 +4026,12 @@ function Sr({
|
|
|
4026
4026
|
}
|
|
4027
4027
|
)
|
|
4028
4028
|
] }) : /* @__PURE__ */ b("div", { className: m.grid2, children: [
|
|
4029
|
-
/* @__PURE__ */
|
|
4029
|
+
/* @__PURE__ */ c(
|
|
4030
4030
|
Q,
|
|
4031
4031
|
{
|
|
4032
4032
|
label: "Top",
|
|
4033
4033
|
value: e.paddingTop,
|
|
4034
|
-
onChange: (
|
|
4034
|
+
onChange: (a) => t("paddingTop", a),
|
|
4035
4035
|
min: 0,
|
|
4036
4036
|
max: 500,
|
|
4037
4037
|
step: 1,
|
|
@@ -4040,12 +4040,12 @@ function Sr({
|
|
|
4040
4040
|
onReset: () => n("paddingTop")
|
|
4041
4041
|
}
|
|
4042
4042
|
),
|
|
4043
|
-
/* @__PURE__ */
|
|
4043
|
+
/* @__PURE__ */ c(
|
|
4044
4044
|
Q,
|
|
4045
4045
|
{
|
|
4046
4046
|
label: "Right",
|
|
4047
4047
|
value: e.paddingRight,
|
|
4048
|
-
onChange: (
|
|
4048
|
+
onChange: (a) => t("paddingRight", a),
|
|
4049
4049
|
min: 0,
|
|
4050
4050
|
max: 500,
|
|
4051
4051
|
step: 1,
|
|
@@ -4054,12 +4054,12 @@ function Sr({
|
|
|
4054
4054
|
onReset: () => n("paddingRight")
|
|
4055
4055
|
}
|
|
4056
4056
|
),
|
|
4057
|
-
/* @__PURE__ */
|
|
4057
|
+
/* @__PURE__ */ c(
|
|
4058
4058
|
Q,
|
|
4059
4059
|
{
|
|
4060
4060
|
label: "Bottom",
|
|
4061
4061
|
value: e.paddingBottom,
|
|
4062
|
-
onChange: (
|
|
4062
|
+
onChange: (a) => t("paddingBottom", a),
|
|
4063
4063
|
min: 0,
|
|
4064
4064
|
max: 500,
|
|
4065
4065
|
step: 1,
|
|
@@ -4068,12 +4068,12 @@ function Sr({
|
|
|
4068
4068
|
onReset: () => n("paddingBottom")
|
|
4069
4069
|
}
|
|
4070
4070
|
),
|
|
4071
|
-
/* @__PURE__ */
|
|
4071
|
+
/* @__PURE__ */ c(
|
|
4072
4072
|
Q,
|
|
4073
4073
|
{
|
|
4074
4074
|
label: "Left",
|
|
4075
4075
|
value: e.paddingLeft,
|
|
4076
|
-
onChange: (
|
|
4076
|
+
onChange: (a) => t("paddingLeft", a),
|
|
4077
4077
|
min: 0,
|
|
4078
4078
|
max: 500,
|
|
4079
4079
|
step: 1,
|
|
@@ -4095,9 +4095,9 @@ function Sr({
|
|
|
4095
4095
|
marginBottom: "var(--spacing-2)"
|
|
4096
4096
|
},
|
|
4097
4097
|
children: [
|
|
4098
|
-
/* @__PURE__ */
|
|
4098
|
+
/* @__PURE__ */ c("div", { className: m.sectionTitle, style: { color: r.textColor }, children: i.marginLabel || "Margin" }),
|
|
4099
4099
|
/* @__PURE__ */ b("div", { style: { display: "flex", gap: "4px" }, children: [
|
|
4100
|
-
/* @__PURE__ */
|
|
4100
|
+
/* @__PURE__ */ c(
|
|
4101
4101
|
"button",
|
|
4102
4102
|
{
|
|
4103
4103
|
type: "button",
|
|
@@ -4110,14 +4110,14 @@ function Sr({
|
|
|
4110
4110
|
display: "flex",
|
|
4111
4111
|
alignItems: "center",
|
|
4112
4112
|
color: r.textColor,
|
|
4113
|
-
opacity:
|
|
4114
|
-
fontWeight:
|
|
4113
|
+
opacity: u === "vh" ? 1 : 0.4,
|
|
4114
|
+
fontWeight: u === "vh" ? "bold" : "normal"
|
|
4115
4115
|
},
|
|
4116
4116
|
title: "Vertical/Horizontal mode",
|
|
4117
|
-
children: /* @__PURE__ */
|
|
4117
|
+
children: /* @__PURE__ */ c(at, { size: 16 })
|
|
4118
4118
|
}
|
|
4119
4119
|
),
|
|
4120
|
-
/* @__PURE__ */
|
|
4120
|
+
/* @__PURE__ */ c(
|
|
4121
4121
|
"button",
|
|
4122
4122
|
{
|
|
4123
4123
|
type: "button",
|
|
@@ -4130,24 +4130,24 @@ function Sr({
|
|
|
4130
4130
|
display: "flex",
|
|
4131
4131
|
alignItems: "center",
|
|
4132
4132
|
color: r.textColor,
|
|
4133
|
-
opacity:
|
|
4134
|
-
fontWeight:
|
|
4133
|
+
opacity: u === "all" ? 1 : 0.4,
|
|
4134
|
+
fontWeight: u === "all" ? "bold" : "normal"
|
|
4135
4135
|
},
|
|
4136
4136
|
title: "All sides mode",
|
|
4137
|
-
children: /* @__PURE__ */
|
|
4137
|
+
children: /* @__PURE__ */ c(it, { size: 16 })
|
|
4138
4138
|
}
|
|
4139
4139
|
)
|
|
4140
4140
|
] })
|
|
4141
4141
|
]
|
|
4142
4142
|
}
|
|
4143
4143
|
),
|
|
4144
|
-
|
|
4145
|
-
/* @__PURE__ */
|
|
4144
|
+
u === "vh" ? /* @__PURE__ */ b("div", { className: m.grid2, children: [
|
|
4145
|
+
/* @__PURE__ */ c(
|
|
4146
4146
|
Q,
|
|
4147
4147
|
{
|
|
4148
|
-
label:
|
|
4148
|
+
label: i.marginVerticalLabel || "Vertical",
|
|
4149
4149
|
value: e.marginVertical,
|
|
4150
|
-
onChange: (
|
|
4150
|
+
onChange: (a) => t("marginVertical", a),
|
|
4151
4151
|
min: 0,
|
|
4152
4152
|
max: 500,
|
|
4153
4153
|
step: 1,
|
|
@@ -4156,12 +4156,12 @@ function Sr({
|
|
|
4156
4156
|
onReset: () => n("marginVertical")
|
|
4157
4157
|
}
|
|
4158
4158
|
),
|
|
4159
|
-
/* @__PURE__ */
|
|
4159
|
+
/* @__PURE__ */ c(
|
|
4160
4160
|
Q,
|
|
4161
4161
|
{
|
|
4162
|
-
label:
|
|
4162
|
+
label: i.marginHorizontalLabel || "Horizontal",
|
|
4163
4163
|
value: e.marginHorizontal,
|
|
4164
|
-
onChange: (
|
|
4164
|
+
onChange: (a) => t("marginHorizontal", a),
|
|
4165
4165
|
min: 0,
|
|
4166
4166
|
max: 500,
|
|
4167
4167
|
step: 1,
|
|
@@ -4171,12 +4171,12 @@ function Sr({
|
|
|
4171
4171
|
}
|
|
4172
4172
|
)
|
|
4173
4173
|
] }) : /* @__PURE__ */ b("div", { className: m.grid2, children: [
|
|
4174
|
-
/* @__PURE__ */
|
|
4174
|
+
/* @__PURE__ */ c(
|
|
4175
4175
|
Q,
|
|
4176
4176
|
{
|
|
4177
4177
|
label: "Top",
|
|
4178
4178
|
value: e.marginTop,
|
|
4179
|
-
onChange: (
|
|
4179
|
+
onChange: (a) => t("marginTop", a),
|
|
4180
4180
|
min: 0,
|
|
4181
4181
|
max: 500,
|
|
4182
4182
|
step: 1,
|
|
@@ -4185,12 +4185,12 @@ function Sr({
|
|
|
4185
4185
|
onReset: () => n("marginTop")
|
|
4186
4186
|
}
|
|
4187
4187
|
),
|
|
4188
|
-
/* @__PURE__ */
|
|
4188
|
+
/* @__PURE__ */ c(
|
|
4189
4189
|
Q,
|
|
4190
4190
|
{
|
|
4191
4191
|
label: "Right",
|
|
4192
4192
|
value: e.marginRight,
|
|
4193
|
-
onChange: (
|
|
4193
|
+
onChange: (a) => t("marginRight", a),
|
|
4194
4194
|
min: 0,
|
|
4195
4195
|
max: 500,
|
|
4196
4196
|
step: 1,
|
|
@@ -4199,12 +4199,12 @@ function Sr({
|
|
|
4199
4199
|
onReset: () => n("marginRight")
|
|
4200
4200
|
}
|
|
4201
4201
|
),
|
|
4202
|
-
/* @__PURE__ */
|
|
4202
|
+
/* @__PURE__ */ c(
|
|
4203
4203
|
Q,
|
|
4204
4204
|
{
|
|
4205
4205
|
label: "Bottom",
|
|
4206
4206
|
value: e.marginBottom,
|
|
4207
|
-
onChange: (
|
|
4207
|
+
onChange: (a) => t("marginBottom", a),
|
|
4208
4208
|
min: 0,
|
|
4209
4209
|
max: 500,
|
|
4210
4210
|
step: 1,
|
|
@@ -4213,12 +4213,12 @@ function Sr({
|
|
|
4213
4213
|
onReset: () => n("marginBottom")
|
|
4214
4214
|
}
|
|
4215
4215
|
),
|
|
4216
|
-
/* @__PURE__ */
|
|
4216
|
+
/* @__PURE__ */ c(
|
|
4217
4217
|
Q,
|
|
4218
4218
|
{
|
|
4219
4219
|
label: "Left",
|
|
4220
4220
|
value: e.marginLeft,
|
|
4221
|
-
onChange: (
|
|
4221
|
+
onChange: (a) => t("marginLeft", a),
|
|
4222
4222
|
min: 0,
|
|
4223
4223
|
max: 500,
|
|
4224
4224
|
step: 1,
|
|
@@ -4231,9 +4231,9 @@ function Sr({
|
|
|
4231
4231
|
] })
|
|
4232
4232
|
] });
|
|
4233
4233
|
}
|
|
4234
|
-
const
|
|
4235
|
-
container:
|
|
4236
|
-
scrollArea:
|
|
4234
|
+
const Er = "_container_hrbvc_1", Tr = "_scrollArea_hrbvc_21", Nr = "_collapsibleTrigger_hrbvc_79", Lr = "_collapsibleContent_hrbvc_111", Ir = "_chevron_hrbvc_127", Br = "_chevronOpen_hrbvc_141", Rr = "_actionsContainer_hrbvc_149", Or = "_statusIndicator_hrbvc_159", Dr = "_statusIcon_hrbvc_177", Mr = "_buttonGroup_hrbvc_189", Pr = "_resetButton_hrbvc_199", zr = "_applyButton_hrbvc_207", Ar = "_savingSpinner_hrbvc_215", Fr = "_buttonContent_hrbvc_233", Hr = "_buttonIcon_hrbvc_247", D = {
|
|
4235
|
+
container: Er,
|
|
4236
|
+
scrollArea: Tr,
|
|
4237
4237
|
collapsibleTrigger: Nr,
|
|
4238
4238
|
collapsibleContent: Lr,
|
|
4239
4239
|
chevron: Ir,
|
|
@@ -4244,8 +4244,8 @@ const Tr = "_container_hrbvc_1", Er = "_scrollArea_hrbvc_21", Nr = "_collapsible
|
|
|
4244
4244
|
buttonGroup: Mr,
|
|
4245
4245
|
resetButton: Pr,
|
|
4246
4246
|
applyButton: zr,
|
|
4247
|
-
savingSpinner:
|
|
4248
|
-
buttonContent:
|
|
4247
|
+
savingSpinner: Ar,
|
|
4248
|
+
buttonContent: Fr,
|
|
4249
4249
|
buttonIcon: Hr
|
|
4250
4250
|
};
|
|
4251
4251
|
function jr({
|
|
@@ -4253,17 +4253,17 @@ function jr({
|
|
|
4253
4253
|
elementData: t,
|
|
4254
4254
|
onHasChangesChange: o
|
|
4255
4255
|
}) {
|
|
4256
|
-
const { theme: n, labels:
|
|
4257
|
-
() =>
|
|
4258
|
-
), [p,
|
|
4259
|
-
W(() => (
|
|
4260
|
-
|
|
4256
|
+
const { theme: n, labels: i } = K(), [r, s] = E(
|
|
4257
|
+
() => ct(e)
|
|
4258
|
+
), [p, u] = E(!1), [l, g] = E(!1), [d, a] = E(!1), [f, y] = E(!1), [_, x] = E(!1), [L, S] = E(!1), [C, M] = E(!1), [k, F] = E(!1), { previewStyle: $, resetStyles: w, resetSingleProperty: P } = an(e), { sendToParent: V } = Pe(), B = E(() => ct(e))[0];
|
|
4259
|
+
W(() => (a(!1), y(!1), x(!1), S(!1), M(!1), F(!1), () => {
|
|
4260
|
+
a(!1), y(!1), x(!1), S(!1), M(!1), F(!1);
|
|
4261
4261
|
}), []), W(() => {
|
|
4262
4262
|
o?.(p);
|
|
4263
4263
|
}, [p, o]);
|
|
4264
4264
|
const N = (h, J) => {
|
|
4265
4265
|
const ne = { ...r, [h]: J };
|
|
4266
|
-
|
|
4266
|
+
s(ne), $(h, J), u(!0);
|
|
4267
4267
|
}, oe = async () => {
|
|
4268
4268
|
g(!0);
|
|
4269
4269
|
try {
|
|
@@ -4273,7 +4273,7 @@ function jr({
|
|
|
4273
4273
|
});
|
|
4274
4274
|
const J = rn(h), ne = ln(
|
|
4275
4275
|
h
|
|
4276
|
-
),
|
|
4276
|
+
), T = {
|
|
4277
4277
|
layout: {},
|
|
4278
4278
|
text: {},
|
|
4279
4279
|
border: {},
|
|
@@ -4281,15 +4281,15 @@ function jr({
|
|
|
4281
4281
|
display: {},
|
|
4282
4282
|
image: {}
|
|
4283
4283
|
};
|
|
4284
|
-
return h.backgroundColor !== void 0 && (
|
|
4285
|
-
Object.keys(
|
|
4284
|
+
return h.backgroundColor !== void 0 && (T.layout.backgroundColor = h.backgroundColor), h.height !== void 0 && (T.layout.height = h.height), h.width !== void 0 && (T.layout.width = h.width), h.color !== void 0 && (T.text.color = h.color), h.fontSize !== void 0 && (T.text.fontSize = h.fontSize), h.fontWeight !== void 0 && (T.text.fontWeight = h.fontWeight), h.fontFamily !== void 0 && (T.text.fontFamily = h.fontFamily), h.textAlign !== void 0 && (T.text.textAlign = h.textAlign), h.textDecoration !== void 0 && (T.text.textDecoration = h.textDecoration), h.borderRadius !== void 0 && (T.border.borderRadius = h.borderRadius), h.borderWidth !== void 0 && (T.border.borderWidth = h.borderWidth), h.borderColor !== void 0 && (T.border.borderColor = h.borderColor), h.borderStyle !== void 0 && (T.border.borderStyle = h.borderStyle), h.paddingVertical !== void 0 && (T.spacing.paddingVertical = h.paddingVertical), h.paddingHorizontal !== void 0 && (T.spacing.paddingHorizontal = h.paddingHorizontal), h.paddingTop !== void 0 && (T.spacing.paddingTop = h.paddingTop), h.paddingRight !== void 0 && (T.spacing.paddingRight = h.paddingRight), h.paddingBottom !== void 0 && (T.spacing.paddingBottom = h.paddingBottom), h.paddingLeft !== void 0 && (T.spacing.paddingLeft = h.paddingLeft), h.marginVertical !== void 0 && (T.spacing.marginVertical = h.marginVertical), h.marginHorizontal !== void 0 && (T.spacing.marginHorizontal = h.marginHorizontal), h.marginTop !== void 0 && (T.spacing.marginTop = h.marginTop), h.marginRight !== void 0 && (T.spacing.marginRight = h.marginRight), h.marginBottom !== void 0 && (T.spacing.marginBottom = h.marginBottom), h.marginLeft !== void 0 && (T.spacing.marginLeft = h.marginLeft), h.display !== void 0 && (T.display.display = h.display), h.opacity !== void 0 && (T.display.opacity = h.opacity), h.flex !== void 0 && (T.display.flex = h.flex), h.flexDirection !== void 0 && (T.display.flexDirection = h.flexDirection), h.justifyContent !== void 0 && (T.display.justifyContent = h.justifyContent), h.alignItems !== void 0 && (T.display.alignItems = h.alignItems), h.objectFit !== void 0 && (T.image.objectFit = h.objectFit), Object.keys(T).forEach((Z) => {
|
|
4285
|
+
Object.keys(T[Z]).length === 0 && delete T[Z];
|
|
4286
4286
|
}), V("INSPECTOR_STYLE_UPDATED", {
|
|
4287
4287
|
element: t,
|
|
4288
4288
|
styles: h,
|
|
4289
4289
|
inlineStyles: J,
|
|
4290
4290
|
tailwindClasses: ne,
|
|
4291
|
-
appliedStyles:
|
|
4292
|
-
}),
|
|
4291
|
+
appliedStyles: T
|
|
4292
|
+
}), u(!1), !0;
|
|
4293
4293
|
} catch (h) {
|
|
4294
4294
|
return console.error("Failed to save styles:", h), !1;
|
|
4295
4295
|
} finally {
|
|
@@ -4300,14 +4300,14 @@ function jr({
|
|
|
4300
4300
|
window.__styleEditorSave = null;
|
|
4301
4301
|
}), [p, r, t]);
|
|
4302
4302
|
const Y = () => {
|
|
4303
|
-
|
|
4304
|
-
},
|
|
4303
|
+
s(B), w(), u(!1);
|
|
4304
|
+
}, G = (h) => {
|
|
4305
4305
|
const J = B[h];
|
|
4306
|
-
|
|
4307
|
-
const ne = { ...r, [h]: J },
|
|
4306
|
+
s((Z) => ({ ...Z, [h]: J })), P(h);
|
|
4307
|
+
const ne = { ...r, [h]: J }, T = Object.keys(ne).some(
|
|
4308
4308
|
(Z) => ne[Z] !== B[Z]
|
|
4309
4309
|
);
|
|
4310
|
-
|
|
4310
|
+
u(T);
|
|
4311
4311
|
};
|
|
4312
4312
|
return /* @__PURE__ */ b("div", { className: D.container, children: [
|
|
4313
4313
|
/* @__PURE__ */ b(
|
|
@@ -4319,8 +4319,8 @@ function jr({
|
|
|
4319
4319
|
scrollbarColor: `${n.borderColor} transparent`
|
|
4320
4320
|
},
|
|
4321
4321
|
children: [
|
|
4322
|
-
ke(e, "layout") && /* @__PURE__ */ b(Se, { open:
|
|
4323
|
-
/* @__PURE__ */
|
|
4322
|
+
ke(e, "layout") && /* @__PURE__ */ b(Se, { open: d, onOpenChange: a, children: [
|
|
4323
|
+
/* @__PURE__ */ c(be, { asChild: !0, children: /* @__PURE__ */ b(
|
|
4324
4324
|
"div",
|
|
4325
4325
|
{
|
|
4326
4326
|
className: D.collapsibleTrigger,
|
|
@@ -4330,37 +4330,37 @@ function jr({
|
|
|
4330
4330
|
color: n.textColor
|
|
4331
4331
|
},
|
|
4332
4332
|
onMouseEnter: (h) => {
|
|
4333
|
-
|
|
4333
|
+
d || (h.currentTarget.style.backgroundColor = n.secondaryButtonHoverColor || n.inputBackgroundColor);
|
|
4334
4334
|
},
|
|
4335
4335
|
onMouseLeave: (h) => {
|
|
4336
|
-
|
|
4336
|
+
d || (h.currentTarget.style.backgroundColor = "transparent");
|
|
4337
4337
|
},
|
|
4338
4338
|
children: [
|
|
4339
|
-
/* @__PURE__ */
|
|
4340
|
-
/* @__PURE__ */
|
|
4339
|
+
/* @__PURE__ */ c("span", { children: i.layoutSectionTitle || "Layout" }),
|
|
4340
|
+
/* @__PURE__ */ c(
|
|
4341
4341
|
xe,
|
|
4342
4342
|
{
|
|
4343
4343
|
className: re(
|
|
4344
4344
|
D.chevron,
|
|
4345
|
-
|
|
4345
|
+
d && D.chevronOpen
|
|
4346
4346
|
)
|
|
4347
4347
|
}
|
|
4348
4348
|
)
|
|
4349
4349
|
]
|
|
4350
4350
|
}
|
|
4351
4351
|
) }),
|
|
4352
|
-
/* @__PURE__ */
|
|
4352
|
+
/* @__PURE__ */ c(_e, { className: D.collapsibleContent, children: /* @__PURE__ */ c(
|
|
4353
4353
|
pr,
|
|
4354
4354
|
{
|
|
4355
4355
|
styles: r,
|
|
4356
4356
|
onChange: N,
|
|
4357
4357
|
originalStyles: B,
|
|
4358
|
-
onResetProperty:
|
|
4358
|
+
onResetProperty: G
|
|
4359
4359
|
}
|
|
4360
4360
|
) })
|
|
4361
4361
|
] }),
|
|
4362
4362
|
ke(e, "display") && /* @__PURE__ */ b(Se, { open: f, onOpenChange: y, children: [
|
|
4363
|
-
/* @__PURE__ */
|
|
4363
|
+
/* @__PURE__ */ c(be, { asChild: !0, children: /* @__PURE__ */ b(
|
|
4364
4364
|
"div",
|
|
4365
4365
|
{
|
|
4366
4366
|
className: D.collapsibleTrigger,
|
|
@@ -4376,8 +4376,8 @@ function jr({
|
|
|
4376
4376
|
f || (h.currentTarget.style.backgroundColor = "transparent");
|
|
4377
4377
|
},
|
|
4378
4378
|
children: [
|
|
4379
|
-
/* @__PURE__ */
|
|
4380
|
-
/* @__PURE__ */
|
|
4379
|
+
/* @__PURE__ */ c("span", { children: i.displaySectionTitle || "Display" }),
|
|
4380
|
+
/* @__PURE__ */ c(
|
|
4381
4381
|
xe,
|
|
4382
4382
|
{
|
|
4383
4383
|
className: re(
|
|
@@ -4389,18 +4389,18 @@ function jr({
|
|
|
4389
4389
|
]
|
|
4390
4390
|
}
|
|
4391
4391
|
) }),
|
|
4392
|
-
/* @__PURE__ */
|
|
4392
|
+
/* @__PURE__ */ c(_e, { className: D.collapsibleContent, children: /* @__PURE__ */ c(
|
|
4393
4393
|
yr,
|
|
4394
4394
|
{
|
|
4395
4395
|
styles: r,
|
|
4396
4396
|
onChange: N,
|
|
4397
4397
|
originalStyles: B,
|
|
4398
|
-
onResetProperty:
|
|
4398
|
+
onResetProperty: G
|
|
4399
4399
|
}
|
|
4400
4400
|
) })
|
|
4401
4401
|
] }),
|
|
4402
4402
|
ke(e, "image") && /* @__PURE__ */ b(Se, { open: _, onOpenChange: x, children: [
|
|
4403
|
-
/* @__PURE__ */
|
|
4403
|
+
/* @__PURE__ */ c(be, { asChild: !0, children: /* @__PURE__ */ b(
|
|
4404
4404
|
"div",
|
|
4405
4405
|
{
|
|
4406
4406
|
className: D.collapsibleTrigger,
|
|
@@ -4416,8 +4416,8 @@ function jr({
|
|
|
4416
4416
|
_ || (h.currentTarget.style.backgroundColor = "transparent");
|
|
4417
4417
|
},
|
|
4418
4418
|
children: [
|
|
4419
|
-
/* @__PURE__ */
|
|
4420
|
-
/* @__PURE__ */
|
|
4419
|
+
/* @__PURE__ */ c("span", { children: i.imageSectionTitle || "Image" }),
|
|
4420
|
+
/* @__PURE__ */ c(
|
|
4421
4421
|
xe,
|
|
4422
4422
|
{
|
|
4423
4423
|
className: re(
|
|
@@ -4429,18 +4429,18 @@ function jr({
|
|
|
4429
4429
|
]
|
|
4430
4430
|
}
|
|
4431
4431
|
) }),
|
|
4432
|
-
/* @__PURE__ */
|
|
4432
|
+
/* @__PURE__ */ c(_e, { className: D.collapsibleContent, children: /* @__PURE__ */ c(
|
|
4433
4433
|
Cr,
|
|
4434
4434
|
{
|
|
4435
4435
|
styles: r,
|
|
4436
4436
|
onChange: N,
|
|
4437
4437
|
originalStyles: B,
|
|
4438
|
-
onResetProperty:
|
|
4438
|
+
onResetProperty: G
|
|
4439
4439
|
}
|
|
4440
4440
|
) })
|
|
4441
4441
|
] }),
|
|
4442
4442
|
ke(e, "text") && /* @__PURE__ */ b(Se, { open: L, onOpenChange: S, children: [
|
|
4443
|
-
/* @__PURE__ */
|
|
4443
|
+
/* @__PURE__ */ c(be, { asChild: !0, children: /* @__PURE__ */ b(
|
|
4444
4444
|
"div",
|
|
4445
4445
|
{
|
|
4446
4446
|
className: D.collapsibleTrigger,
|
|
@@ -4456,8 +4456,8 @@ function jr({
|
|
|
4456
4456
|
L || (h.currentTarget.style.backgroundColor = "transparent");
|
|
4457
4457
|
},
|
|
4458
4458
|
children: [
|
|
4459
|
-
/* @__PURE__ */
|
|
4460
|
-
/* @__PURE__ */
|
|
4459
|
+
/* @__PURE__ */ c("span", { children: i.textSectionTitle || "Text" }),
|
|
4460
|
+
/* @__PURE__ */ c(
|
|
4461
4461
|
xe,
|
|
4462
4462
|
{
|
|
4463
4463
|
className: re(
|
|
@@ -4469,18 +4469,18 @@ function jr({
|
|
|
4469
4469
|
]
|
|
4470
4470
|
}
|
|
4471
4471
|
) }),
|
|
4472
|
-
/* @__PURE__ */
|
|
4472
|
+
/* @__PURE__ */ c(_e, { className: D.collapsibleContent, children: /* @__PURE__ */ c(
|
|
4473
4473
|
kr,
|
|
4474
4474
|
{
|
|
4475
4475
|
styles: r,
|
|
4476
4476
|
onChange: N,
|
|
4477
4477
|
originalStyles: B,
|
|
4478
|
-
onResetProperty:
|
|
4478
|
+
onResetProperty: G
|
|
4479
4479
|
}
|
|
4480
4480
|
) })
|
|
4481
4481
|
] }),
|
|
4482
4482
|
ke(e, "border") && /* @__PURE__ */ b(Se, { open: C, onOpenChange: M, children: [
|
|
4483
|
-
/* @__PURE__ */
|
|
4483
|
+
/* @__PURE__ */ c(be, { asChild: !0, children: /* @__PURE__ */ b(
|
|
4484
4484
|
"div",
|
|
4485
4485
|
{
|
|
4486
4486
|
className: D.collapsibleTrigger,
|
|
@@ -4496,8 +4496,8 @@ function jr({
|
|
|
4496
4496
|
C || (h.currentTarget.style.backgroundColor = "transparent");
|
|
4497
4497
|
},
|
|
4498
4498
|
children: [
|
|
4499
|
-
/* @__PURE__ */
|
|
4500
|
-
/* @__PURE__ */
|
|
4499
|
+
/* @__PURE__ */ c("span", { children: i.borderSectionTitle || "Border" }),
|
|
4500
|
+
/* @__PURE__ */ c(
|
|
4501
4501
|
xe,
|
|
4502
4502
|
{
|
|
4503
4503
|
className: re(
|
|
@@ -4509,18 +4509,18 @@ function jr({
|
|
|
4509
4509
|
]
|
|
4510
4510
|
}
|
|
4511
4511
|
) }),
|
|
4512
|
-
/* @__PURE__ */
|
|
4512
|
+
/* @__PURE__ */ c(_e, { className: D.collapsibleContent, children: /* @__PURE__ */ c(
|
|
4513
4513
|
wr,
|
|
4514
4514
|
{
|
|
4515
4515
|
styles: r,
|
|
4516
4516
|
onChange: N,
|
|
4517
4517
|
originalStyles: B,
|
|
4518
|
-
onResetProperty:
|
|
4518
|
+
onResetProperty: G
|
|
4519
4519
|
}
|
|
4520
4520
|
) })
|
|
4521
4521
|
] }),
|
|
4522
|
-
ke(e, "spacing") && /* @__PURE__ */ b(Se, { open: k, onOpenChange:
|
|
4523
|
-
/* @__PURE__ */
|
|
4522
|
+
ke(e, "spacing") && /* @__PURE__ */ b(Se, { open: k, onOpenChange: F, children: [
|
|
4523
|
+
/* @__PURE__ */ c(be, { asChild: !0, children: /* @__PURE__ */ b(
|
|
4524
4524
|
"div",
|
|
4525
4525
|
{
|
|
4526
4526
|
className: D.collapsibleTrigger,
|
|
@@ -4536,8 +4536,8 @@ function jr({
|
|
|
4536
4536
|
k || (h.currentTarget.style.backgroundColor = "transparent");
|
|
4537
4537
|
},
|
|
4538
4538
|
children: [
|
|
4539
|
-
/* @__PURE__ */
|
|
4540
|
-
/* @__PURE__ */
|
|
4539
|
+
/* @__PURE__ */ c("span", { children: i.spacingSectionTitle || "Spacing" }),
|
|
4540
|
+
/* @__PURE__ */ c(
|
|
4541
4541
|
xe,
|
|
4542
4542
|
{
|
|
4543
4543
|
className: re(
|
|
@@ -4549,13 +4549,13 @@ function jr({
|
|
|
4549
4549
|
]
|
|
4550
4550
|
}
|
|
4551
4551
|
) }),
|
|
4552
|
-
/* @__PURE__ */
|
|
4552
|
+
/* @__PURE__ */ c(_e, { className: D.collapsibleContent, children: /* @__PURE__ */ c(
|
|
4553
4553
|
Sr,
|
|
4554
4554
|
{
|
|
4555
4555
|
styles: r,
|
|
4556
4556
|
onChange: N,
|
|
4557
4557
|
originalStyles: B,
|
|
4558
|
-
onResetProperty:
|
|
4558
|
+
onResetProperty: G
|
|
4559
4559
|
}
|
|
4560
4560
|
) })
|
|
4561
4561
|
] })
|
|
@@ -4574,13 +4574,13 @@ function jr({
|
|
|
4574
4574
|
className: D.statusIndicator,
|
|
4575
4575
|
style: { color: n.warningColor },
|
|
4576
4576
|
children: [
|
|
4577
|
-
/* @__PURE__ */
|
|
4578
|
-
/* @__PURE__ */
|
|
4577
|
+
/* @__PURE__ */ c(uo, { className: D.statusIcon }),
|
|
4578
|
+
/* @__PURE__ */ c("span", { style: { fontFamily: "Satoshi", fontSize: "var(--text-xs)" }, children: i.unsavedChangesText || "Unsaved" })
|
|
4579
4579
|
]
|
|
4580
4580
|
}
|
|
4581
4581
|
),
|
|
4582
4582
|
/* @__PURE__ */ b("div", { className: D.buttonGroup, children: [
|
|
4583
|
-
p && /* @__PURE__ */
|
|
4583
|
+
p && /* @__PURE__ */ c(
|
|
4584
4584
|
ye,
|
|
4585
4585
|
{
|
|
4586
4586
|
variant: "secondary",
|
|
@@ -4591,10 +4591,10 @@ function jr({
|
|
|
4591
4591
|
backgroundColor: n.secondaryButtonColor,
|
|
4592
4592
|
color: n.secondaryButtonTextColor
|
|
4593
4593
|
},
|
|
4594
|
-
children:
|
|
4594
|
+
children: i.resetButton || "Reset"
|
|
4595
4595
|
}
|
|
4596
4596
|
),
|
|
4597
|
-
/* @__PURE__ */
|
|
4597
|
+
/* @__PURE__ */ c(
|
|
4598
4598
|
ye,
|
|
4599
4599
|
{
|
|
4600
4600
|
variant: "default",
|
|
@@ -4606,10 +4606,10 @@ function jr({
|
|
|
4606
4606
|
color: p && !l ? n.buttonTextColor : n.secondaryButtonTextColor
|
|
4607
4607
|
},
|
|
4608
4608
|
children: l ? /* @__PURE__ */ b("span", { className: D.buttonContent, children: [
|
|
4609
|
-
/* @__PURE__ */
|
|
4610
|
-
|
|
4611
|
-
] }) : p ?
|
|
4612
|
-
/* @__PURE__ */
|
|
4609
|
+
/* @__PURE__ */ c("span", { className: D.savingSpinner }),
|
|
4610
|
+
i.savingText || "Saving..."
|
|
4611
|
+
] }) : p ? i.saveButton || "Save" : /* @__PURE__ */ b("span", { className: D.buttonContent, children: [
|
|
4612
|
+
/* @__PURE__ */ c(Ct, { className: D.buttonIcon }),
|
|
4613
4613
|
"Saved"
|
|
4614
4614
|
] })
|
|
4615
4615
|
}
|
|
@@ -4664,25 +4664,25 @@ const $r = (e, t) => {
|
|
|
4664
4664
|
};
|
|
4665
4665
|
if (o === "svg" || o === "path")
|
|
4666
4666
|
return "Icon";
|
|
4667
|
-
const
|
|
4668
|
-
return
|
|
4667
|
+
const i = n[o];
|
|
4668
|
+
return i ? Ve(i, t, We[i]) : Ve("elementDefault", t, We.elementDefault);
|
|
4669
4669
|
}, Wr = (e, t) => {
|
|
4670
4670
|
if (!e || !e.tagName)
|
|
4671
4671
|
return "Element";
|
|
4672
4672
|
const o = $r(e, t), n = e.tagName.toLowerCase();
|
|
4673
4673
|
return `${o} (${n})`;
|
|
4674
|
-
}, Vr = "
|
|
4674
|
+
}, Vr = "_controlBox_3hq1l_1", Ur = "_tabsContainer_3hq1l_35", qr = "_tabsList_3hq1l_57", Gr = "_tabTrigger_3hq1l_79", Xr = "_tabContent_3hq1l_141", Ne = {
|
|
4675
4675
|
controlBox: Vr,
|
|
4676
4676
|
tabsContainer: Ur,
|
|
4677
|
-
tabsList:
|
|
4678
|
-
tabTrigger:
|
|
4677
|
+
tabsList: qr,
|
|
4678
|
+
tabTrigger: Gr,
|
|
4679
4679
|
tabContent: Xr
|
|
4680
4680
|
}, Kr = ({
|
|
4681
4681
|
active: e,
|
|
4682
4682
|
onClick: t,
|
|
4683
4683
|
children: o,
|
|
4684
4684
|
theme: n
|
|
4685
|
-
}) => /* @__PURE__ */
|
|
4685
|
+
}) => /* @__PURE__ */ c(
|
|
4686
4686
|
"button",
|
|
4687
4687
|
{
|
|
4688
4688
|
onClick: t,
|
|
@@ -4700,18 +4700,18 @@ function Yr({
|
|
|
4700
4700
|
element: t,
|
|
4701
4701
|
elementData: o,
|
|
4702
4702
|
activeTab: n,
|
|
4703
|
-
availableTabs:
|
|
4703
|
+
availableTabs: i,
|
|
4704
4704
|
onTabChange: r,
|
|
4705
|
-
onClose:
|
|
4705
|
+
onClose: s,
|
|
4706
4706
|
onPromptSubmit: p,
|
|
4707
|
-
elementStack:
|
|
4707
|
+
elementStack: u = [],
|
|
4708
4708
|
onElementSelect: l,
|
|
4709
4709
|
labels: g
|
|
4710
4710
|
}) {
|
|
4711
|
-
const { theme:
|
|
4712
|
-
text:
|
|
4713
|
-
image:
|
|
4714
|
-
style:
|
|
4711
|
+
const { theme: d, labels: a } = K(), f = q(null), [y, _] = E({ left: 0 }), [x, L] = E(0), [S, C] = E("below"), [M, k] = E(!1), F = {
|
|
4712
|
+
text: a.textTabLabel || "Content",
|
|
4713
|
+
image: a.imageTabLabel || "Image",
|
|
4714
|
+
style: a.styleTabLabel || "Design"
|
|
4715
4715
|
};
|
|
4716
4716
|
return W(() => {
|
|
4717
4717
|
k(!1);
|
|
@@ -4719,27 +4719,27 @@ function Yr({
|
|
|
4719
4719
|
if (!f.current || !t) return;
|
|
4720
4720
|
let $ = null;
|
|
4721
4721
|
const w = (B = !1) => {
|
|
4722
|
-
const N = t.getBoundingClientRect(), oe = window.innerWidth, Y = window.innerHeight,
|
|
4722
|
+
const N = t.getBoundingClientRect(), oe = window.innerWidth, Y = window.innerHeight, G = 10, h = 10, J = 16, ne = 250, T = 0.7, Z = Math.min(600, oe - G * 2), He = Math.min(320, Z), v = Math.max(He, Math.min(N.width, Z));
|
|
4723
4723
|
let H = N.left + N.width / 2 - v / 2;
|
|
4724
4724
|
if (H = Math.max(
|
|
4725
|
-
|
|
4726
|
-
Math.min(H, oe - v -
|
|
4725
|
+
G,
|
|
4726
|
+
Math.min(H, oe - v - G)
|
|
4727
4727
|
), B || $ === null) {
|
|
4728
|
-
const
|
|
4729
|
-
de && Lt ? $ = I >
|
|
4728
|
+
const X = Math.max(0, Y - N.bottom), I = Math.max(0, N.top), z = N.height / Y, O = N.width / oe, ce = z > T && O > T, de = O > T && z <= T, Re = N.top < 0 || N.bottom > Y, et = I < ne && X < ne, Lt = I >= ne || X >= ne;
|
|
4729
|
+
de && Lt ? $ = I > X ? "above" : "below" : ce || et || Re && z > 0.5 ? $ = "inside" : $ = I > X ? "above" : "below", C($);
|
|
4730
4730
|
}
|
|
4731
4731
|
let j, R;
|
|
4732
4732
|
if ($ === "inside") {
|
|
4733
|
-
const
|
|
4733
|
+
const X = Math.max(N.top + J, J);
|
|
4734
4734
|
j = Math.min(
|
|
4735
4735
|
N.bottom - J,
|
|
4736
4736
|
Y - J
|
|
4737
|
-
) -
|
|
4737
|
+
) - X;
|
|
4738
4738
|
let z = N.left + J;
|
|
4739
4739
|
N.left < 0 && (z = J);
|
|
4740
|
-
const
|
|
4741
|
-
de < Re - J * 2 && (z = Math.max(N.left, 0) + (Re - de) / 2), R = { top:
|
|
4742
|
-
} else $ === "above" ? (j = N.top -
|
|
4740
|
+
const ce = Math.min(N.right, oe) - z - J, de = Math.min(v, ce), Re = Math.min(N.right, oe) - Math.max(N.left, 0);
|
|
4741
|
+
de < Re - J * 2 && (z = Math.max(N.left, 0) + (Re - de) / 2), R = { top: X, left: z }, f.current && de !== v && (f.current.style.width = `${de}px`);
|
|
4742
|
+
} else $ === "above" ? (j = N.top - G - h, R = { bottom: Y - N.top + h, left: H }) : (j = Y - N.bottom - G - h, R = { top: N.bottom + h, left: H });
|
|
4743
4743
|
j = Math.max(200, j), L(j), _(R), f.current && $ !== "inside" && (f.current.style.width = `${v}px`), B && k(!0);
|
|
4744
4744
|
};
|
|
4745
4745
|
w(!0);
|
|
@@ -4761,13 +4761,13 @@ function Yr({
|
|
|
4761
4761
|
bottom: y.bottom !== void 0 ? `${y.bottom}px` : void 0,
|
|
4762
4762
|
left: `${y.left}px`,
|
|
4763
4763
|
maxHeight: x > 0 ? `${x}px` : void 0,
|
|
4764
|
-
backgroundColor:
|
|
4764
|
+
backgroundColor: d.backgroundColor,
|
|
4765
4765
|
opacity: M ? 1 : 0,
|
|
4766
4766
|
transform: M ? "scale(1)" : "scale(0.95)",
|
|
4767
4767
|
transition: "opacity 0.2s ease, transform 0.2s ease"
|
|
4768
4768
|
},
|
|
4769
4769
|
children: [
|
|
4770
|
-
|
|
4770
|
+
u.length > 1 && /* @__PURE__ */ c(
|
|
4771
4771
|
"div",
|
|
4772
4772
|
{
|
|
4773
4773
|
className: "inspector-element-tags",
|
|
@@ -4778,6 +4778,8 @@ function Yr({
|
|
|
4778
4778
|
overflowX: "auto",
|
|
4779
4779
|
overflowY: "hidden",
|
|
4780
4780
|
width: "calc(100% + 24px)",
|
|
4781
|
+
height: "46px",
|
|
4782
|
+
minHeight: "46px",
|
|
4781
4783
|
marginLeft: "-12px",
|
|
4782
4784
|
marginRight: "-12px",
|
|
4783
4785
|
marginTop: "-12px",
|
|
@@ -4785,21 +4787,21 @@ function Yr({
|
|
|
4785
4787
|
paddingRight: "12px",
|
|
4786
4788
|
paddingTop: "12px",
|
|
4787
4789
|
paddingBottom: "10px",
|
|
4788
|
-
borderBottom:
|
|
4790
|
+
borderBottom: `1px solid ${d.borderColor}`
|
|
4789
4791
|
},
|
|
4790
|
-
children:
|
|
4791
|
-
const V = Wr(w, g ||
|
|
4792
|
+
children: u.map((w, P) => {
|
|
4793
|
+
const V = Wr(w, g || a), B = w === t;
|
|
4792
4794
|
return console.log(`🏷️ Button ${P}:`, V, w, {
|
|
4793
4795
|
isSelected: B
|
|
4794
|
-
}), /* @__PURE__ */
|
|
4796
|
+
}), /* @__PURE__ */ c(
|
|
4795
4797
|
"button",
|
|
4796
4798
|
{
|
|
4797
4799
|
className: "inspector-element-tag",
|
|
4798
4800
|
onClick: () => l?.(w),
|
|
4799
4801
|
style: {
|
|
4800
|
-
background: B ?
|
|
4801
|
-
color: B ?
|
|
4802
|
-
border: B ? "none" :
|
|
4802
|
+
background: B ? d.buttonColor : d.backgroundColor,
|
|
4803
|
+
color: B ? d.buttonTextColor : d.secondaryTextColor,
|
|
4804
|
+
border: B ? "none" : `1px solid ${d.borderColor}`,
|
|
4803
4805
|
padding: "4px 8px",
|
|
4804
4806
|
borderRadius: "4px",
|
|
4805
4807
|
fontSize: "11px",
|
|
@@ -4810,7 +4812,7 @@ function Yr({
|
|
|
4810
4812
|
height: "24px",
|
|
4811
4813
|
display: "flex",
|
|
4812
4814
|
alignItems: "center",
|
|
4813
|
-
boxShadow: B ?
|
|
4815
|
+
boxShadow: B ? `0 1px 3px ${d.buttonColor}33` : "0 1px 2px rgba(0, 0, 0, 0.05)"
|
|
4814
4816
|
},
|
|
4815
4817
|
children: String(V)
|
|
4816
4818
|
},
|
|
@@ -4819,134 +4821,46 @@ function Yr({
|
|
|
4819
4821
|
})
|
|
4820
4822
|
}
|
|
4821
4823
|
),
|
|
4822
|
-
/* @__PURE__ */
|
|
4824
|
+
/* @__PURE__ */ c(
|
|
4823
4825
|
Mo,
|
|
4824
4826
|
{
|
|
4825
|
-
placeholder:
|
|
4827
|
+
placeholder: a.promptPlaceholder || "Ask AI...",
|
|
4826
4828
|
onSubmit: p,
|
|
4827
|
-
onClose:
|
|
4829
|
+
onClose: s,
|
|
4828
4830
|
autoFocus: !n
|
|
4829
4831
|
}
|
|
4830
4832
|
),
|
|
4831
|
-
|
|
4832
|
-
/* @__PURE__ */
|
|
4833
|
+
i.length > 0 && n ? /* @__PURE__ */ b("div", { className: Ne.tabsContainer, children: [
|
|
4834
|
+
/* @__PURE__ */ c(
|
|
4833
4835
|
"div",
|
|
4834
4836
|
{
|
|
4835
4837
|
className: Ne.tabsList,
|
|
4836
4838
|
style: {
|
|
4837
|
-
backgroundColor:
|
|
4839
|
+
backgroundColor: d.tabContainerBg
|
|
4838
4840
|
},
|
|
4839
|
-
children:
|
|
4841
|
+
children: i.map(($) => /* @__PURE__ */ c(
|
|
4840
4842
|
Kr,
|
|
4841
4843
|
{
|
|
4842
4844
|
active: n === $,
|
|
4843
4845
|
onClick: () => r($),
|
|
4844
|
-
theme:
|
|
4845
|
-
children:
|
|
4846
|
+
theme: d,
|
|
4847
|
+
children: F[$]
|
|
4846
4848
|
},
|
|
4847
4849
|
$
|
|
4848
4850
|
))
|
|
4849
4851
|
}
|
|
4850
4852
|
),
|
|
4851
4853
|
/* @__PURE__ */ b("div", { className: Ne.tabContent, children: [
|
|
4852
|
-
n === "text" && /* @__PURE__ */
|
|
4853
|
-
n === "image" && /* @__PURE__ */
|
|
4854
|
-
n === "style" && /* @__PURE__ */
|
|
4854
|
+
n === "text" && /* @__PURE__ */ c(Uo, { element: t, elementData: o }),
|
|
4855
|
+
n === "image" && /* @__PURE__ */ c(on, { element: t, elementData: o }),
|
|
4856
|
+
n === "style" && /* @__PURE__ */ c(jr, { element: t, elementData: o })
|
|
4855
4857
|
] })
|
|
4856
4858
|
] }) : null
|
|
4857
4859
|
]
|
|
4858
4860
|
}
|
|
4859
4861
|
);
|
|
4860
4862
|
}
|
|
4861
|
-
|
|
4862
|
-
const { theme: t, labels: o } = q(), [n, a] = T(!1), [r, c] = T(!1);
|
|
4863
|
-
if (!e || r) return null;
|
|
4864
|
-
const p = !!o.badgeUrl;
|
|
4865
|
-
return /* @__PURE__ */ b(
|
|
4866
|
-
"div",
|
|
4867
|
-
{
|
|
4868
|
-
"data-inspector-ignore": !0,
|
|
4869
|
-
style: {
|
|
4870
|
-
position: "fixed",
|
|
4871
|
-
bottom: "16px",
|
|
4872
|
-
right: "16px",
|
|
4873
|
-
pointerEvents: "all"
|
|
4874
|
-
},
|
|
4875
|
-
onMouseEnter: () => a(!0),
|
|
4876
|
-
onMouseLeave: () => a(!1),
|
|
4877
|
-
children: [
|
|
4878
|
-
/* @__PURE__ */ s(
|
|
4879
|
-
"div",
|
|
4880
|
-
{
|
|
4881
|
-
"data-inspector-ignore": !0,
|
|
4882
|
-
style: {
|
|
4883
|
-
position: "relative",
|
|
4884
|
-
background: `linear-gradient(135deg, ${t.badgeGradientStart} 0%, ${t.badgeGradientEnd} 100%)`,
|
|
4885
|
-
color: t.badgeTextColor,
|
|
4886
|
-
padding: "8px 16px",
|
|
4887
|
-
borderRadius: "24px",
|
|
4888
|
-
fontSize: "13px",
|
|
4889
|
-
fontWeight: 600,
|
|
4890
|
-
boxShadow: "0 4px 12px rgba(0, 0, 0, 0.15)",
|
|
4891
|
-
cursor: p ? "pointer" : "default",
|
|
4892
|
-
transition: "all 0.3s ease",
|
|
4893
|
-
fontFamily: "'Satoshi', system-ui, -apple-system, sans-serif",
|
|
4894
|
-
userSelect: "none",
|
|
4895
|
-
transform: n ? "scale(1.02)" : "scale(1)"
|
|
4896
|
-
},
|
|
4897
|
-
onClick: (d) => {
|
|
4898
|
-
d.target.dataset.badgeClose || p && window.open(o.badgeUrl, "_blank");
|
|
4899
|
-
},
|
|
4900
|
-
children: o.badgeText
|
|
4901
|
-
}
|
|
4902
|
-
),
|
|
4903
|
-
n && /* @__PURE__ */ s(
|
|
4904
|
-
"button",
|
|
4905
|
-
{
|
|
4906
|
-
"data-badge-close": !0,
|
|
4907
|
-
"data-inspector-ignore": !0,
|
|
4908
|
-
onClick: (d) => {
|
|
4909
|
-
d.stopPropagation(), c(!0);
|
|
4910
|
-
},
|
|
4911
|
-
style: {
|
|
4912
|
-
position: "absolute",
|
|
4913
|
-
top: "-6px",
|
|
4914
|
-
right: "-6px",
|
|
4915
|
-
width: "20px",
|
|
4916
|
-
height: "20px",
|
|
4917
|
-
border: "none",
|
|
4918
|
-
background: t.badgeTextColor === "#ffffff" ? "rgba(0, 0, 0, 0.7)" : "rgba(255, 255, 255, 0.9)",
|
|
4919
|
-
color: t.badgeTextColor === "#ffffff" ? "#ffffff" : "#000000",
|
|
4920
|
-
borderRadius: "50%",
|
|
4921
|
-
cursor: "pointer",
|
|
4922
|
-
display: "flex",
|
|
4923
|
-
alignItems: "center",
|
|
4924
|
-
justifyContent: "center",
|
|
4925
|
-
fontSize: "14px",
|
|
4926
|
-
fontWeight: 700,
|
|
4927
|
-
lineHeight: 1,
|
|
4928
|
-
transition: "all 0.2s ease",
|
|
4929
|
-
padding: 0,
|
|
4930
|
-
boxShadow: "0 2px 8px rgba(0, 0, 0, 0.2)",
|
|
4931
|
-
zIndex: 1
|
|
4932
|
-
},
|
|
4933
|
-
onMouseEnter: (d) => {
|
|
4934
|
-
const l = t.badgeTextColor === "#ffffff";
|
|
4935
|
-
d.currentTarget.style.background = l ? "rgba(0, 0, 0, 0.9)" : "rgba(255, 255, 255, 1)", d.currentTarget.style.transform = "scale(1.08)", d.currentTarget.style.boxShadow = "0 3px 12px rgba(0, 0, 0, 0.3)";
|
|
4936
|
-
},
|
|
4937
|
-
onMouseLeave: (d) => {
|
|
4938
|
-
const l = t.badgeTextColor === "#ffffff";
|
|
4939
|
-
d.currentTarget.style.background = l ? "rgba(0, 0, 0, 0.7)" : "rgba(255, 255, 255, 0.9)", d.currentTarget.style.transform = "scale(1)", d.currentTarget.style.boxShadow = "0 2px 8px rgba(0, 0, 0, 0.2)";
|
|
4940
|
-
},
|
|
4941
|
-
"aria-label": "Close badge",
|
|
4942
|
-
children: "×"
|
|
4943
|
-
}
|
|
4944
|
-
)
|
|
4945
|
-
]
|
|
4946
|
-
}
|
|
4947
|
-
);
|
|
4948
|
-
}
|
|
4949
|
-
class Zr {
|
|
4863
|
+
class Jr {
|
|
4950
4864
|
constructor() {
|
|
4951
4865
|
this.activeOverlay = null, this.scrollListener = null, this.resizeListener = null, this.cleanupTimeout = null, this.animationFrameId = null, this.targetElement = null;
|
|
4952
4866
|
}
|
|
@@ -4960,25 +4874,25 @@ class Zr {
|
|
|
4960
4874
|
this.clearHighlight();
|
|
4961
4875
|
const {
|
|
4962
4876
|
duration: n = 3e3,
|
|
4963
|
-
scrollIntoView:
|
|
4877
|
+
scrollIntoView: i = !0,
|
|
4964
4878
|
color: r = "#4417db",
|
|
4965
|
-
animation:
|
|
4879
|
+
animation: s = "pulse"
|
|
4966
4880
|
} = o;
|
|
4967
|
-
|
|
4881
|
+
i ? (t.scrollIntoView({
|
|
4968
4882
|
behavior: "smooth",
|
|
4969
4883
|
block: "center",
|
|
4970
4884
|
inline: "center"
|
|
4971
4885
|
}), setTimeout(() => {
|
|
4972
|
-
this.createOverlay(t, n, r,
|
|
4973
|
-
}, 600)) : this.createOverlay(t, n, r,
|
|
4886
|
+
this.createOverlay(t, n, r, s);
|
|
4887
|
+
}, 600)) : this.createOverlay(t, n, r, s);
|
|
4974
4888
|
}
|
|
4975
4889
|
/**
|
|
4976
4890
|
* Creates the highlight overlay element
|
|
4977
4891
|
*/
|
|
4978
|
-
createOverlay(t, o, n,
|
|
4892
|
+
createOverlay(t, o, n, i) {
|
|
4979
4893
|
this.targetElement = t;
|
|
4980
|
-
const r = t.getBoundingClientRect(),
|
|
4981
|
-
|
|
4894
|
+
const r = t.getBoundingClientRect(), s = document.createElement("div");
|
|
4895
|
+
s.id = "inspector-highlight-overlay", s.style.cssText = `
|
|
4982
4896
|
position: fixed;
|
|
4983
4897
|
top: ${r.top}px;
|
|
4984
4898
|
left: ${r.left}px;
|
|
@@ -4991,19 +4905,19 @@ class Zr {
|
|
|
4991
4905
|
z-index: 999999;
|
|
4992
4906
|
box-shadow: 0 0 20px ${n}66;
|
|
4993
4907
|
transition: all 0.1s ease-out;
|
|
4994
|
-
`,
|
|
4908
|
+
`, i === "pulse" ? s.style.animation = "inspectorPulse 0.6s ease-in-out infinite" : i === "fade" && (s.style.animation = "inspectorFade 0.5s ease-in-out"), this.injectStyles(), document.body.appendChild(s), this.activeOverlay = s;
|
|
4995
4909
|
const p = () => {
|
|
4996
4910
|
if (!this.activeOverlay || !this.targetElement) return;
|
|
4997
4911
|
const l = this.targetElement.getBoundingClientRect();
|
|
4998
4912
|
this.activeOverlay.style.top = `${l.top}px`, this.activeOverlay.style.left = `${l.left}px`, this.activeOverlay.style.width = `${l.width}px`, this.activeOverlay.style.height = `${l.height}px`, this.animationFrameId = requestAnimationFrame(p);
|
|
4999
4913
|
};
|
|
5000
4914
|
this.animationFrameId = requestAnimationFrame(p);
|
|
5001
|
-
const
|
|
4915
|
+
const u = () => {
|
|
5002
4916
|
if (!this.activeOverlay || !this.targetElement) return;
|
|
5003
4917
|
const l = this.targetElement.getBoundingClientRect();
|
|
5004
4918
|
this.activeOverlay.style.top = `${l.top}px`, this.activeOverlay.style.left = `${l.left}px`, this.activeOverlay.style.width = `${l.width}px`, this.activeOverlay.style.height = `${l.height}px`;
|
|
5005
4919
|
};
|
|
5006
|
-
this.scrollListener =
|
|
4920
|
+
this.scrollListener = u, this.resizeListener = u, window.addEventListener("scroll", this.scrollListener, !0), window.addEventListener("resize", this.resizeListener), this.cleanupTimeout = window.setTimeout(() => {
|
|
5007
4921
|
this.clearHighlight();
|
|
5008
4922
|
}, o);
|
|
5009
4923
|
}
|
|
@@ -5033,7 +4947,7 @@ class Zr {
|
|
|
5033
4947
|
`, document.head.appendChild(o);
|
|
5034
4948
|
}
|
|
5035
4949
|
}
|
|
5036
|
-
const ve = "data-dev-id", Ye = (e) => e.replace(/\\/g, "/"),
|
|
4950
|
+
const ve = "data-dev-id", Ye = (e) => e.replace(/\\/g, "/"), Zr = (e) => {
|
|
5037
4951
|
const t = e.getBoundingClientRect();
|
|
5038
4952
|
return t.top >= 0 && t.left >= 0 && t.bottom <= (window.innerHeight || document.documentElement.clientHeight) && t.right <= (window.innerWidth || document.documentElement.clientWidth);
|
|
5039
4953
|
}, De = (e) => {
|
|
@@ -5043,22 +4957,22 @@ const ve = "data-dev-id", Ye = (e) => e.replace(/\\/g, "/"), Qr = (e) => {
|
|
|
5043
4957
|
denormalizedId: o,
|
|
5044
4958
|
escapedId: n
|
|
5045
4959
|
});
|
|
5046
|
-
let
|
|
4960
|
+
let i = document.querySelector(`[${ve}="${n}"]`) || document.querySelector(`[${ve}="${CSS.escape(t)}"]`) || document.querySelector(
|
|
5047
4961
|
`[${ve}="${CSS.escape(Ye(t))}"]`
|
|
5048
4962
|
);
|
|
5049
|
-
if (!
|
|
4963
|
+
if (!i) {
|
|
5050
4964
|
const r = document.querySelectorAll(`[${ve}]`);
|
|
5051
|
-
for (const
|
|
5052
|
-
const p =
|
|
4965
|
+
for (const s of r) {
|
|
4966
|
+
const p = s.getAttribute(ve);
|
|
5053
4967
|
if (p && p.includes(t)) {
|
|
5054
|
-
|
|
4968
|
+
i = s;
|
|
5055
4969
|
break;
|
|
5056
4970
|
}
|
|
5057
4971
|
}
|
|
5058
4972
|
}
|
|
5059
|
-
return !
|
|
4973
|
+
return !i && typeof e == "object" && e.selector && (i = document.querySelector(e.selector)), i;
|
|
5060
4974
|
};
|
|
5061
|
-
function
|
|
4975
|
+
function Et(e) {
|
|
5062
4976
|
if (e.id)
|
|
5063
4977
|
return "#" + e.id;
|
|
5064
4978
|
let t = e.tagName.toLowerCase();
|
|
@@ -5068,13 +4982,13 @@ function Tt(e) {
|
|
|
5068
4982
|
}
|
|
5069
4983
|
return t;
|
|
5070
4984
|
}
|
|
5071
|
-
function
|
|
5072
|
-
const t = e.hasAttribute(ve) ? e : e.closest(`[${ve}]`), o = t?.getAttribute(ve), n = t?.getAttribute("data-dev-name"),
|
|
4985
|
+
function Tt(e) {
|
|
4986
|
+
const t = e.hasAttribute(ve) ? e : e.closest(`[${ve}]`), o = t?.getAttribute(ve), n = t?.getAttribute("data-dev-name"), i = t?.getAttribute("data-dev-path"), r = t?.getAttribute("data-dev-component"), s = i ? Ye(i) : void 0, p = o ? Ye(o) : void 0, u = o?.split(":"), l = u?.[1] ? parseInt(u[1], 10) : 0, g = u?.[2] ? parseInt(u[2], 10) : 0;
|
|
5073
4987
|
return {
|
|
5074
4988
|
id: p,
|
|
5075
4989
|
name: n || void 0,
|
|
5076
|
-
path:
|
|
5077
|
-
fileName:
|
|
4990
|
+
path: s || void 0,
|
|
4991
|
+
fileName: s || "production build",
|
|
5078
4992
|
lineNumber: l,
|
|
5079
4993
|
columnNumber: g,
|
|
5080
4994
|
component: r || n || "Unknown"
|
|
@@ -5082,26 +4996,26 @@ function Et(e) {
|
|
|
5082
4996
|
}
|
|
5083
4997
|
function Nt(e) {
|
|
5084
4998
|
return {
|
|
5085
|
-
id:
|
|
4999
|
+
id: Tt(e)?.id || "",
|
|
5086
5000
|
tagName: e.tagName,
|
|
5087
5001
|
className: e.className,
|
|
5088
|
-
selector:
|
|
5002
|
+
selector: Et(e)
|
|
5089
5003
|
};
|
|
5090
5004
|
}
|
|
5091
|
-
function
|
|
5005
|
+
function Qr(e) {
|
|
5092
5006
|
const t = [];
|
|
5093
5007
|
let o = e.parentElement, n = 0;
|
|
5094
5008
|
for (; o && n < 3; )
|
|
5095
5009
|
o.closest("[data-inspector-ignore]") || (t.push(Nt(o)), n++), o = o.parentElement;
|
|
5096
5010
|
return t;
|
|
5097
5011
|
}
|
|
5098
|
-
function
|
|
5012
|
+
function ei(e) {
|
|
5099
5013
|
const t = [], o = Array.from(e.children);
|
|
5100
5014
|
for (let n = 0; n < Math.min(3, o.length); n++)
|
|
5101
5015
|
t.push(Nt(o[n]));
|
|
5102
5016
|
return t;
|
|
5103
5017
|
}
|
|
5104
|
-
function
|
|
5018
|
+
function ti(e, t) {
|
|
5105
5019
|
const o = [];
|
|
5106
5020
|
let n = document.elementFromPoint(e, t);
|
|
5107
5021
|
if (!n || n.closest("[data-inspector-ignore]"))
|
|
@@ -5116,18 +5030,18 @@ function oa(e, t) {
|
|
|
5116
5030
|
return o;
|
|
5117
5031
|
}
|
|
5118
5032
|
o.push(n);
|
|
5119
|
-
const
|
|
5120
|
-
if (
|
|
5033
|
+
const i = (r, s) => {
|
|
5034
|
+
if (s > 2) return;
|
|
5121
5035
|
const p = Array.from(r.children);
|
|
5122
|
-
console.log(`🔍 Checking children at depth ${
|
|
5036
|
+
console.log(`🔍 Checking children at depth ${s}:`, {
|
|
5123
5037
|
parent: r.tagName,
|
|
5124
5038
|
childrenCount: p.length,
|
|
5125
5039
|
currentStackLength: o.length
|
|
5126
5040
|
});
|
|
5127
|
-
const
|
|
5128
|
-
for (const
|
|
5129
|
-
if (!(
|
|
5130
|
-
const f =
|
|
5041
|
+
const u = [];
|
|
5042
|
+
for (const a of p) {
|
|
5043
|
+
if (!(a instanceof HTMLElement) || a.closest("[data-inspector-ignore]")) continue;
|
|
5044
|
+
const f = a.getBoundingClientRect(), y = a.hasAttribute("data-dev-id"), _ = f.width > 0 && f.height > 0, x = a.children.length > 0, L = a.textContent && a.textContent.trim().length > 0, S = [
|
|
5131
5045
|
"BUTTON",
|
|
5132
5046
|
"A",
|
|
5133
5047
|
"INPUT",
|
|
@@ -5135,22 +5049,22 @@ function oa(e, t) {
|
|
|
5135
5049
|
"VIDEO",
|
|
5136
5050
|
"SELECT",
|
|
5137
5051
|
"TEXTAREA"
|
|
5138
|
-
].includes(
|
|
5139
|
-
(y || _ && (x || L || S)) &&
|
|
5052
|
+
].includes(a.tagName);
|
|
5053
|
+
(y || _ && (x || L || S)) && u.push(a);
|
|
5140
5054
|
}
|
|
5141
|
-
console.log(` ✅ Found ${
|
|
5142
|
-
const l =
|
|
5143
|
-
(
|
|
5144
|
-
), g =
|
|
5145
|
-
(
|
|
5146
|
-
),
|
|
5147
|
-
for (const
|
|
5148
|
-
console.log(" ➕ Adding to stack:",
|
|
5055
|
+
console.log(` ✅ Found ${u.length} meaningful children`);
|
|
5056
|
+
const l = u.filter(
|
|
5057
|
+
(a) => a.hasAttribute("data-dev-id")
|
|
5058
|
+
), g = u.filter(
|
|
5059
|
+
(a) => !a.hasAttribute("data-dev-id")
|
|
5060
|
+
), d = [...l, ...g];
|
|
5061
|
+
for (const a of d)
|
|
5062
|
+
console.log(" ➕ Adding to stack:", a.tagName, a), o.push(a), i(a, s + 1);
|
|
5149
5063
|
};
|
|
5150
|
-
return
|
|
5064
|
+
return i(n, 1), o;
|
|
5151
5065
|
}
|
|
5152
5066
|
function Ue(e) {
|
|
5153
|
-
const t = e.textContent && e.children.length === 0, o = e.tagName === "IMG", n =
|
|
5067
|
+
const t = e.textContent && e.children.length === 0, o = e.tagName === "IMG", n = Tt(e);
|
|
5154
5068
|
return {
|
|
5155
5069
|
id: n?.id || "",
|
|
5156
5070
|
tagName: e.tagName,
|
|
@@ -5166,24 +5080,24 @@ function Ue(e) {
|
|
|
5166
5080
|
textContent: t ? e.textContent?.trim() : "",
|
|
5167
5081
|
isImageNode: o,
|
|
5168
5082
|
imageUrl: o ? e.src : "",
|
|
5169
|
-
selector:
|
|
5083
|
+
selector: Et(e),
|
|
5170
5084
|
currentRoute: window.location.pathname,
|
|
5171
|
-
parents:
|
|
5172
|
-
children:
|
|
5085
|
+
parents: Qr(e),
|
|
5086
|
+
children: ei(e)
|
|
5173
5087
|
};
|
|
5174
5088
|
}
|
|
5175
|
-
function
|
|
5176
|
-
const { setTheme: e, setLabels: t, labels: o } =
|
|
5089
|
+
function ri() {
|
|
5090
|
+
const { setTheme: e, setLabels: t, labels: o } = K(), [n, i] = E(!1), r = q(null);
|
|
5177
5091
|
W(() => {
|
|
5178
|
-
r.current = new
|
|
5092
|
+
r.current = new Jr();
|
|
5179
5093
|
}, []);
|
|
5180
|
-
const [
|
|
5094
|
+
const [s, p] = E(!1), [u, l] = E(
|
|
5181
5095
|
null
|
|
5182
|
-
), [g,
|
|
5096
|
+
), [g, d] = E(
|
|
5183
5097
|
null
|
|
5184
|
-
), [
|
|
5098
|
+
), [a, f] = E(null), [y, _] = E(
|
|
5185
5099
|
null
|
|
5186
|
-
), [x, L] =
|
|
5100
|
+
), [x, L] = E(!1), [S, C] = E(!1), [M, k] = E(!1), [F, $] = E(!1), [w, P] = E(!0), [V, B] = E([]), { sendToParent: N, listenToParent: oe } = Pe(), Y = q(null), G = q(null), h = Me(() => {
|
|
5187
5101
|
const v = [];
|
|
5188
5102
|
return x && v.push("text"), S && v.push("image"), M && v.push("style"), v;
|
|
5189
5103
|
}, [x, S, M]);
|
|
@@ -5191,14 +5105,14 @@ function aa() {
|
|
|
5191
5105
|
h.length > 0 && !y && _(h[0]);
|
|
5192
5106
|
}, [h, y]), W(() => (Y.current = new Bt((v) => {
|
|
5193
5107
|
N("INSPECTOR_ERROR", v);
|
|
5194
|
-
}), Y.current.start(),
|
|
5108
|
+
}), Y.current.start(), G.current = new Rt((v) => {
|
|
5195
5109
|
N("URL_CHANGED", v);
|
|
5196
|
-
}),
|
|
5110
|
+
}), G.current.start(), () => {
|
|
5197
5111
|
Y.current?.stop();
|
|
5198
5112
|
}), [N]), W(() => oe((v) => {
|
|
5199
5113
|
switch (v.type) {
|
|
5200
5114
|
case "TOGGLE_INSPECTOR":
|
|
5201
|
-
|
|
5115
|
+
i(v.active), v.labels && t(v.labels), v.theme && e(v.theme);
|
|
5202
5116
|
break;
|
|
5203
5117
|
case "SHOW_CONTENT_INPUT":
|
|
5204
5118
|
L(v.show);
|
|
@@ -5223,7 +5137,7 @@ function aa() {
|
|
|
5223
5137
|
break;
|
|
5224
5138
|
}
|
|
5225
5139
|
}), [oe]), W(() => {
|
|
5226
|
-
if (!n ||
|
|
5140
|
+
if (!n || s) return;
|
|
5227
5141
|
const v = (H) => {
|
|
5228
5142
|
const j = H.target;
|
|
5229
5143
|
if (j.closest("[data-inspector-ignore]")) {
|
|
@@ -5233,7 +5147,7 @@ function aa() {
|
|
|
5233
5147
|
l(j);
|
|
5234
5148
|
};
|
|
5235
5149
|
return document.addEventListener("mousemove", v, !0), () => document.removeEventListener("mousemove", v, !0);
|
|
5236
|
-
}, [n,
|
|
5150
|
+
}, [n, s]), W(() => {
|
|
5237
5151
|
if (!n) return;
|
|
5238
5152
|
const v = (H) => {
|
|
5239
5153
|
let j = H.target;
|
|
@@ -5248,28 +5162,28 @@ function aa() {
|
|
|
5248
5162
|
else
|
|
5249
5163
|
return;
|
|
5250
5164
|
}
|
|
5251
|
-
if (
|
|
5165
|
+
if (s) {
|
|
5252
5166
|
H.preventDefault(), H.stopPropagation(), ne();
|
|
5253
5167
|
return;
|
|
5254
5168
|
}
|
|
5255
5169
|
H.preventDefault(), H.stopPropagation();
|
|
5256
|
-
const R = Ue(j),
|
|
5257
|
-
console.log("Element stack:",
|
|
5170
|
+
const R = Ue(j), X = ti(H.clientX, H.clientY);
|
|
5171
|
+
console.log("Element stack:", X.length, X), B(X), d(j), f(R), J(), N("INSPECTOR_ELEMENT_SELECTED", R);
|
|
5258
5172
|
};
|
|
5259
5173
|
return document.addEventListener("click", v, !0), () => document.removeEventListener("click", v, !0);
|
|
5260
|
-
}, [n,
|
|
5261
|
-
n && !
|
|
5262
|
-
}, [n,
|
|
5174
|
+
}, [n, s, N]), W(() => {
|
|
5175
|
+
n && !s ? document.body.style.cursor = "crosshair" : document.body.style.cursor = "";
|
|
5176
|
+
}, [n, s]);
|
|
5263
5177
|
function J() {
|
|
5264
5178
|
p(!0), document.body.style.overflow = "hidden";
|
|
5265
5179
|
}
|
|
5266
5180
|
async function ne() {
|
|
5267
|
-
p(!1),
|
|
5181
|
+
p(!1), d(null), f(null), _(null), B([]), document.body.style.overflow = "", window.__styleEditorHasChanges = !1, window.__styleEditorSave = null;
|
|
5268
5182
|
}
|
|
5269
|
-
function
|
|
5183
|
+
function T(v) {
|
|
5270
5184
|
console.log("🔄 Element stack select:", v);
|
|
5271
5185
|
const H = Ue(v);
|
|
5272
|
-
console.log("📦 New element data:", H),
|
|
5186
|
+
console.log("📦 New element data:", H), d(v), f(H), N("INSPECTOR_ELEMENT_SELECTED", H);
|
|
5273
5187
|
}
|
|
5274
5188
|
function Z(v, H) {
|
|
5275
5189
|
const j = typeof v == "object" ? v.targetRoute : H?.targetRoute;
|
|
@@ -5312,10 +5226,10 @@ function aa() {
|
|
|
5312
5226
|
const z = v.className.split(" ").filter(Boolean);
|
|
5313
5227
|
if (z.length > 0) {
|
|
5314
5228
|
const O = document.getElementsByClassName(z[0]);
|
|
5315
|
-
for (let
|
|
5316
|
-
const de = O[
|
|
5229
|
+
for (let ce = 0; ce < O.length; ce++) {
|
|
5230
|
+
const de = O[ce].getBoundingClientRect();
|
|
5317
5231
|
if (de.width > 0 && de.height > 0) {
|
|
5318
|
-
R = O[
|
|
5232
|
+
R = O[ce];
|
|
5319
5233
|
break;
|
|
5320
5234
|
}
|
|
5321
5235
|
}
|
|
@@ -5337,13 +5251,13 @@ function aa() {
|
|
|
5337
5251
|
element: R,
|
|
5338
5252
|
identifier: v,
|
|
5339
5253
|
elementRect: R?.getBoundingClientRect(),
|
|
5340
|
-
elementInViewport: R ?
|
|
5254
|
+
elementInViewport: R ? Zr(R) : !1
|
|
5341
5255
|
}), !R) {
|
|
5342
5256
|
console.warn("❌ Element not found for highlighting:", v);
|
|
5343
5257
|
return;
|
|
5344
5258
|
}
|
|
5345
|
-
const
|
|
5346
|
-
if ((
|
|
5259
|
+
const X = R.getBoundingClientRect();
|
|
5260
|
+
if ((X.width === 0 || X.height === 0) && (console.log("⚠️ Element is invisible, trying parents..."), typeof v == "object" && v.parents))
|
|
5347
5261
|
for (const I of v.parents) {
|
|
5348
5262
|
let z = null;
|
|
5349
5263
|
if (I.id && (z = De(I.id)), !z && I.selector && (z = document.querySelector(I.selector)), z) {
|
|
@@ -5375,7 +5289,7 @@ function aa() {
|
|
|
5375
5289
|
});
|
|
5376
5290
|
}
|
|
5377
5291
|
return W(() => {
|
|
5378
|
-
if (
|
|
5292
|
+
if (s) {
|
|
5379
5293
|
let v = !1;
|
|
5380
5294
|
const H = () => {
|
|
5381
5295
|
v = !0;
|
|
@@ -5383,15 +5297,19 @@ function aa() {
|
|
|
5383
5297
|
v = !1;
|
|
5384
5298
|
}, R = document.getElementById("inspector-canvas-root");
|
|
5385
5299
|
R && (R.addEventListener("pointerdown", H), R.addEventListener("pointerup", j), document.addEventListener("pointerup", j));
|
|
5386
|
-
const
|
|
5387
|
-
O.target.closest("#inspector-canvas-root")
|
|
5300
|
+
const X = (O) => {
|
|
5301
|
+
if (O.target.closest("#inspector-canvas-root")) {
|
|
5302
|
+
O.stopPropagation();
|
|
5303
|
+
return;
|
|
5304
|
+
}
|
|
5305
|
+
O.preventDefault(), O.stopPropagation();
|
|
5388
5306
|
}, I = (O) => {
|
|
5389
5307
|
O.target.closest("#inspector-canvas-root") || v || O.type === "mouseleave" || O.type === "mouseout" || (O.preventDefault(), O.stopPropagation());
|
|
5390
5308
|
};
|
|
5391
|
-
document.addEventListener("wheel",
|
|
5309
|
+
document.addEventListener("wheel", X, {
|
|
5392
5310
|
passive: !1,
|
|
5393
5311
|
capture: !0
|
|
5394
|
-
}), document.addEventListener("touchmove",
|
|
5312
|
+
}), document.addEventListener("touchmove", X, {
|
|
5395
5313
|
passive: !1,
|
|
5396
5314
|
capture: !0
|
|
5397
5315
|
}), document.addEventListener("pointerdown", I, {
|
|
@@ -5404,9 +5322,9 @@ function aa() {
|
|
|
5404
5322
|
};
|
|
5405
5323
|
return document.addEventListener("keydown", z, { capture: !0 }), document.addEventListener("keyup", z, { capture: !0 }), () => {
|
|
5406
5324
|
const O = document.getElementById("inspector-canvas-root");
|
|
5407
|
-
O && (O.removeEventListener("pointerdown", H), O.removeEventListener("pointerup", j)), document.removeEventListener("pointerup", j), document.removeEventListener("wheel",
|
|
5325
|
+
O && (O.removeEventListener("pointerdown", H), O.removeEventListener("pointerup", j)), document.removeEventListener("pointerup", j), document.removeEventListener("wheel", X, {
|
|
5408
5326
|
capture: !0
|
|
5409
|
-
}), document.removeEventListener("touchmove",
|
|
5327
|
+
}), document.removeEventListener("touchmove", X, {
|
|
5410
5328
|
capture: !0
|
|
5411
5329
|
}), document.removeEventListener("pointerdown", I, {
|
|
5412
5330
|
capture: !0
|
|
@@ -5429,14 +5347,14 @@ function aa() {
|
|
|
5429
5347
|
});
|
|
5430
5348
|
};
|
|
5431
5349
|
}
|
|
5432
|
-
}, [
|
|
5350
|
+
}, [s]), /* @__PURE__ */ b(
|
|
5433
5351
|
"div",
|
|
5434
5352
|
{
|
|
5435
5353
|
id: "inspector-canvas-root",
|
|
5436
5354
|
"data-inspector-ignore": !0,
|
|
5437
|
-
className:
|
|
5355
|
+
className: s ? "inspector-active" : "",
|
|
5438
5356
|
children: [
|
|
5439
|
-
|
|
5357
|
+
s && /* @__PURE__ */ c(
|
|
5440
5358
|
"div",
|
|
5441
5359
|
{
|
|
5442
5360
|
className: "inspector-backdrop",
|
|
@@ -5445,19 +5363,19 @@ function aa() {
|
|
|
5445
5363
|
}
|
|
5446
5364
|
}
|
|
5447
5365
|
),
|
|
5448
|
-
/* @__PURE__ */
|
|
5366
|
+
/* @__PURE__ */ c(
|
|
5449
5367
|
Ot,
|
|
5450
5368
|
{
|
|
5451
|
-
element: n && !
|
|
5452
|
-
selectedElement:
|
|
5369
|
+
element: n && !s ? u : null,
|
|
5370
|
+
selectedElement: s ? g : null,
|
|
5453
5371
|
showChildBorders: w
|
|
5454
5372
|
}
|
|
5455
5373
|
),
|
|
5456
|
-
|
|
5374
|
+
s && g && a && /* @__PURE__ */ c(
|
|
5457
5375
|
Yr,
|
|
5458
5376
|
{
|
|
5459
5377
|
element: g,
|
|
5460
|
-
elementData:
|
|
5378
|
+
elementData: a,
|
|
5461
5379
|
activeTab: y,
|
|
5462
5380
|
availableTabs: h,
|
|
5463
5381
|
onTabChange: _,
|
|
@@ -5465,20 +5383,19 @@ function aa() {
|
|
|
5465
5383
|
onPromptSubmit: (v) => {
|
|
5466
5384
|
N("INSPECTOR_PROMPT_SUBMITTED", {
|
|
5467
5385
|
prompt: v,
|
|
5468
|
-
element:
|
|
5469
|
-
}),
|
|
5386
|
+
element: a
|
|
5387
|
+
}), i(!1), ne();
|
|
5470
5388
|
},
|
|
5471
5389
|
elementStack: V,
|
|
5472
|
-
onElementSelect:
|
|
5390
|
+
onElementSelect: T,
|
|
5473
5391
|
labels: o
|
|
5474
5392
|
}
|
|
5475
|
-
)
|
|
5476
|
-
/* @__PURE__ */ s(Jr, { visible: A })
|
|
5393
|
+
)
|
|
5477
5394
|
]
|
|
5478
5395
|
}
|
|
5479
5396
|
);
|
|
5480
5397
|
}
|
|
5481
5398
|
export {
|
|
5482
|
-
|
|
5483
|
-
|
|
5399
|
+
ri as App,
|
|
5400
|
+
ri as Inspector
|
|
5484
5401
|
};
|