@charisol/plexo-sdk 1.1.9 → 1.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{compiler-Dv-nnW6a.js → compiler-Bxo7wIKY.js} +4 -1
- package/dist/compiler.js +1 -1
- package/dist/compilerClient.js +1 -1
- package/dist/components/inlineControls/BorderSideControls.d.ts +3 -0
- package/dist/components/inlineControls/index.d.ts +1 -0
- package/dist/components/properties/accordionSections/BlogCommentsPropertiesAccordion.d.ts +14 -0
- package/dist/components/properties/accordionSections/BlogPostListPropertiesAccordion.d.ts +11 -0
- package/dist/index.js +830 -431
- package/dist/plexo-sdk.css +1 -1
- package/dist/utilities/playground.interfaces.d.ts +4 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as e, b as t, c as n, d as r, f as i, g as a, h as o, i as s, l as c, m as l, o as u, p as d, r as f, s as p, u as m, v as h, x as g, y as _ } from "./iconSvgStatic-D5PrYZfC.js";
|
|
2
|
-
import { _ as v, a as y, b, c as x, d as S, f as C, g as
|
|
2
|
+
import { _ as v, a as y, b, c as x, d as S, f as C, g as ee, h as w, i as T, m as E, n as te, o as ne, p as re, r as ie, u as ae, x as oe, y as se } from "./compiler-Bxo7wIKY.js";
|
|
3
3
|
import { parseJsonToTargetFormat as ce } from "./compilerClient.js";
|
|
4
4
|
import D, { createContext as le, createElement as ue, forwardRef as de, useCallback as fe, useContext as pe, useEffect as O, useImperativeHandle as me, useMemo as he, useRef as k, useState as A } from "react";
|
|
5
5
|
import { DndContext as ge, DragOverlay as j, PointerSensor as _e, TouchSensor as M, pointerWithin as ve, rectIntersection as ye, useDraggable as be, useDroppable as xe, useSensor as Se, useSensors as Ce } from "@dnd-kit/core";
|
|
@@ -40543,24 +40543,24 @@ function IP() {
|
|
|
40543
40543
|
let e = n.createElement("template");
|
|
40544
40544
|
e.content && e.content.ownerDocument && (n = e.content.ownerDocument);
|
|
40545
40545
|
}
|
|
40546
|
-
let x, S = "", C,
|
|
40547
|
-
if (
|
|
40548
|
-
},
|
|
40549
|
-
|
|
40546
|
+
let x, S = "", C, ee = !1, w = 0, T = function() {
|
|
40547
|
+
if (w > 0) throw QN("A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the \"DOMPurify and Trusted Types\" section of the README.");
|
|
40548
|
+
}, E = function(e) {
|
|
40549
|
+
T(), w++;
|
|
40550
40550
|
try {
|
|
40551
40551
|
return x.createHTML(e);
|
|
40552
40552
|
} finally {
|
|
40553
|
-
|
|
40553
|
+
w--;
|
|
40554
40554
|
}
|
|
40555
40555
|
}, te = function(e) {
|
|
40556
|
-
|
|
40556
|
+
T(), w++;
|
|
40557
40557
|
try {
|
|
40558
40558
|
return x.createScriptURL(e);
|
|
40559
40559
|
} finally {
|
|
40560
|
-
|
|
40560
|
+
w--;
|
|
40561
40561
|
}
|
|
40562
40562
|
}, ne = function() {
|
|
40563
|
-
return
|
|
40563
|
+
return ee ||= (C = NP(u, i), !0), C;
|
|
40564
40564
|
}, re = n, ie = re.implementation, ae = re.createNodeIterator, oe = re.createDocumentFragment, se = re.getElementsByTagName, ce = r.importNode, D = PP();
|
|
40565
40565
|
t.isSupported = typeof SN == "function" && typeof g == "function" && ie && ie.createHTMLDocument !== void 0;
|
|
40566
40566
|
let le = _P, ue = vP, de = yP, fe = bP, pe = xP, O = CP, me = wP, he = EP, k = SP, A = null, ge = Y({}, [
|
|
@@ -40667,11 +40667,11 @@ function IP() {
|
|
|
40667
40667
|
let t = x;
|
|
40668
40668
|
x = e.TRUSTED_TYPES_POLICY;
|
|
40669
40669
|
try {
|
|
40670
|
-
S =
|
|
40670
|
+
S = E("");
|
|
40671
40671
|
} catch (e) {
|
|
40672
40672
|
throw x = t, e;
|
|
40673
40673
|
}
|
|
40674
|
-
} else e.TRUSTED_TYPES_POLICY === null ? (x = void 0, S = "") : (x === void 0 && (x = ne()), x && typeof S == "string" && (S =
|
|
40674
|
+
} else e.TRUSTED_TYPES_POLICY === null ? (x = void 0, S = "") : (x === void 0 && (x = ne()), x && typeof S == "string" && (S = E("")));
|
|
40675
40675
|
DN && DN(e), $e = e;
|
|
40676
40676
|
}, H = Y({}, [
|
|
40677
40677
|
...sP,
|
|
@@ -40780,7 +40780,7 @@ function IP() {
|
|
|
40780
40780
|
r = t && t[0];
|
|
40781
40781
|
}
|
|
40782
40782
|
Qe === "application/xhtml+xml" && Ue === He && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
|
|
40783
|
-
let i = x ?
|
|
40783
|
+
let i = x ? E(e) : e;
|
|
40784
40784
|
if (Ue === He) try {
|
|
40785
40785
|
t = new l().parseFromString(i, Qe);
|
|
40786
40786
|
} catch {}
|
|
@@ -40883,7 +40883,7 @@ function IP() {
|
|
|
40883
40883
|
return !Tt[zN(e)] && ZN(he, e);
|
|
40884
40884
|
}, Dt = function(e, t, n, r) {
|
|
40885
40885
|
if (x && typeof u == "object" && typeof u.getAttributeType == "function" && !n) switch (u.getAttributeType(e, t)) {
|
|
40886
|
-
case "TrustedHTML": return
|
|
40886
|
+
case "TrustedHTML": return E(r);
|
|
40887
40887
|
case "TrustedScriptURL": return te(r);
|
|
40888
40888
|
}
|
|
40889
40889
|
return r;
|
|
@@ -40997,7 +40997,7 @@ function IP() {
|
|
|
40997
40997
|
}
|
|
40998
40998
|
} else if (yt(e)) i = pt("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === jP.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), jt(a);
|
|
40999
40999
|
else {
|
|
41000
|
-
if (!R && !N && !F && e.indexOf("<") === -1) return x && Oe ?
|
|
41000
|
+
if (!R && !N && !F && e.indexOf("<") === -1) return x && Oe ? E(e) : e;
|
|
41001
41001
|
if (i = pt(e), !i) return R ? null : Oe ? S : "";
|
|
41002
41002
|
}
|
|
41003
41003
|
i && Ee && st(i.firstChild);
|
|
@@ -41018,7 +41018,7 @@ function IP() {
|
|
|
41018
41018
|
return (j.shadowroot || j.shadowrootmode) && (s = ce.call(r, s, !0)), s;
|
|
41019
41019
|
}
|
|
41020
41020
|
let d = F ? i.outerHTML : i.innerHTML;
|
|
41021
|
-
return F && A["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && ZN(TP, i.ownerDocument.doctype.name) && (d = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + d), N && (d = ht(d)), x && Oe ?
|
|
41021
|
+
return F && A["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && ZN(TP, i.ownerDocument.doctype.name) && (d = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + d), N && (d = ht(d)), x && Oe ? E(d) : d;
|
|
41022
41022
|
}, t.setConfig = function() {
|
|
41023
41023
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
41024
41024
|
nt(e), I = !0, L = A, Te = j;
|
|
@@ -47926,7 +47926,7 @@ var LH = ({ activeTab: e, setActiveTab: t, showSaveButton: n, isSavingLayout: r,
|
|
|
47926
47926
|
children: "Column Layouts"
|
|
47927
47927
|
}), /* @__PURE__ */ P("div", {
|
|
47928
47928
|
className: "grid grid-cols-1 gap-2",
|
|
47929
|
-
children:
|
|
47929
|
+
children: E.map((r, i) => /* @__PURE__ */ P(e, {
|
|
47930
47930
|
id: `palette-row-${i + 1}`,
|
|
47931
47931
|
label: r.label,
|
|
47932
47932
|
icon: /* @__PURE__ */ P(t, {
|
|
@@ -48716,10 +48716,10 @@ var fU = ({ onStrataConfigSave: e }) => {
|
|
|
48716
48716
|
try {
|
|
48717
48717
|
localStorage.removeItem(nU);
|
|
48718
48718
|
} catch {}
|
|
48719
|
-
}, C = t.body.style?.strataConfig,
|
|
48719
|
+
}, C = t.body.style?.strataConfig, ee = C?.projectId !== void 0, w = C?.projectId || "";
|
|
48720
48720
|
return O(() => {
|
|
48721
|
-
!
|
|
48722
|
-
}, [
|
|
48721
|
+
!ee && i === "components" && a("settings");
|
|
48722
|
+
}, [ee]), /* @__PURE__ */ F("div", {
|
|
48723
48723
|
className: "flex flex-col h-full pt-3",
|
|
48724
48724
|
style: { color: "var(--builder-text-color)" },
|
|
48725
48725
|
children: [/* @__PURE__ */ F("div", {
|
|
@@ -48728,7 +48728,7 @@ var fU = ({ onStrataConfigSave: e }) => {
|
|
|
48728
48728
|
children: [/* @__PURE__ */ P("button", {
|
|
48729
48729
|
type: "button",
|
|
48730
48730
|
onClick: () => a("components"),
|
|
48731
|
-
disabled: !
|
|
48731
|
+
disabled: !ee,
|
|
48732
48732
|
className: "flex-1 py-1 rounded text-[10px] font-bold transition-all cursor-pointer disabled:opacity-40 disabled:cursor-not-allowed",
|
|
48733
48733
|
style: i === "components" ? {
|
|
48734
48734
|
backgroundColor: "var(--theme-accent)",
|
|
@@ -48758,7 +48758,7 @@ var fU = ({ onStrataConfigSave: e }) => {
|
|
|
48758
48758
|
style: sU,
|
|
48759
48759
|
children: "Connect a Strata project to pull its tokens and components into this builder."
|
|
48760
48760
|
})] }),
|
|
48761
|
-
|
|
48761
|
+
ee && /* @__PURE__ */ F("div", {
|
|
48762
48762
|
className: "p-3 rounded-lg border flex items-start gap-2",
|
|
48763
48763
|
style: {
|
|
48764
48764
|
borderColor: "rgba(16,185,129,0.35)",
|
|
@@ -48771,7 +48771,7 @@ var fU = ({ onStrataConfigSave: e }) => {
|
|
|
48771
48771
|
}), /* @__PURE__ */ F("div", { children: [/* @__PURE__ */ F("p", {
|
|
48772
48772
|
className: "text-[11px] font-bold",
|
|
48773
48773
|
style: { color: "#10b981" },
|
|
48774
|
-
children: ["Connected to ",
|
|
48774
|
+
children: ["Connected to ", w]
|
|
48775
48775
|
}), c && /* @__PURE__ */ P("p", {
|
|
48776
48776
|
className: "text-[10px] mt-0.5",
|
|
48777
48777
|
style: sU,
|
|
@@ -48866,8 +48866,8 @@ var fU = ({ onStrataConfigSave: e }) => {
|
|
|
48866
48866
|
backgroundColor: "var(--theme-accent)",
|
|
48867
48867
|
color: "var(--theme-fg)"
|
|
48868
48868
|
},
|
|
48869
|
-
children: m ? "Connecting…" :
|
|
48870
|
-
}),
|
|
48869
|
+
children: m ? "Connecting…" : ee ? "Update Configuration" : "Connect to Strata"
|
|
48870
|
+
}), ee && /* @__PURE__ */ P("button", {
|
|
48871
48871
|
type: "button",
|
|
48872
48872
|
onClick: S,
|
|
48873
48873
|
className: "w-full py-1.5 rounded text-[11px] font-bold border transition cursor-pointer",
|
|
@@ -48881,7 +48881,7 @@ var fU = ({ onStrataConfigSave: e }) => {
|
|
|
48881
48881
|
]
|
|
48882
48882
|
}), i === "components" && /* @__PURE__ */ P("div", {
|
|
48883
48883
|
className: "flex flex-col gap-3",
|
|
48884
|
-
children:
|
|
48884
|
+
children: ee ? m ? /* @__PURE__ */ P("div", {
|
|
48885
48885
|
className: "flex items-center justify-center py-8",
|
|
48886
48886
|
children: /* @__PURE__ */ P("div", {
|
|
48887
48887
|
className: "w-6 h-6 rounded-full animate-spin",
|
|
@@ -49179,7 +49179,7 @@ function bU() {
|
|
|
49179
49179
|
});
|
|
49180
49180
|
}
|
|
49181
49181
|
var xU = { color: "var(--builder-muted-text-color)" }, SU = ({ apiKey: e, templateId: t, manageLandingPagePublishing: n = !1 }) => {
|
|
49182
|
-
let r = Ie((e) => e.template), [i, a] = A("SUBDOMAIN"), [o, s] = A(""), [c, l] = A(""), [u, d] = A(!1), [f, p] = A(null), [m, h] = A(null), [g, _] = A(null), [v, y] = A(!1), [b, x] = A(!1), [S, C] = A(0), [
|
|
49182
|
+
let r = Ie((e) => e.template), [i, a] = A("SUBDOMAIN"), [o, s] = A(""), [c, l] = A(""), [u, d] = A(!1), [f, p] = A(null), [m, h] = A(null), [g, _] = A(null), [v, y] = A(!1), [b, x] = A(!1), [S, C] = A(0), [ee, w] = A(5), [T, E] = A("plexo.charisol.io"), [te, ne] = A("idle"), re = ee === -1, [ie, ae] = A(null), { customApiKey: oe, setOverrideKey: se, clearOverrideKey: ce, getActiveKey: D, hasOwnAccount: le, hasUsableKey: ue } = mU(e), de = se, [fe, pe] = A(le);
|
|
49183
49183
|
O(() => {
|
|
49184
49184
|
le && pe(!0);
|
|
49185
49185
|
}, [le]);
|
|
@@ -49189,7 +49189,7 @@ var xU = { color: "var(--builder-muted-text-color)" }, SU = ({ apiKey: e, templa
|
|
|
49189
49189
|
ne("loading");
|
|
49190
49190
|
try {
|
|
49191
49191
|
let t = await fetch(`${Re(e)}/api/v1/domains`, { headers: { "x-api-key": e } }), n = await t.json();
|
|
49192
|
-
t.ok ? (n.limit !== void 0 &&
|
|
49192
|
+
t.ok ? (n.limit !== void 0 && w(n.limit), n.count !== void 0 && C(n.count), n.baseDomain && E(n.baseDomain), ne("ready")) : ne("error");
|
|
49193
49193
|
} catch (e) {
|
|
49194
49194
|
console.warn("Failed to fetch domain limits", e), ne("error");
|
|
49195
49195
|
}
|
|
@@ -49200,7 +49200,7 @@ var xU = { color: "var(--builder-muted-text-color)" }, SU = ({ apiKey: e, templa
|
|
|
49200
49200
|
}, [e, oe]);
|
|
49201
49201
|
let k = r.body.publishedDomain;
|
|
49202
49202
|
function ge(e) {
|
|
49203
|
-
return
|
|
49203
|
+
return T === "localhost" ? e.endsWith(".plexo.charisol.io") ? `http://${e.replace(".plexo.charisol.io", "")}.localhost:3000` : `http://${e}:3000` : `https://${e}`;
|
|
49204
49204
|
}
|
|
49205
49205
|
function j(e, t) {
|
|
49206
49206
|
navigator.clipboard.writeText(e), _(t), setTimeout(() => _(null), 1500);
|
|
@@ -49282,7 +49282,7 @@ var xU = { color: "var(--builder-muted-text-color)" }, SU = ({ apiKey: e, templa
|
|
|
49282
49282
|
if (!c) return "subdomain";
|
|
49283
49283
|
let e = c.split(".");
|
|
49284
49284
|
return e.length > 2 ? e[0] : "@";
|
|
49285
|
-
})(), xe = !c || c.split(".").length > 2 ?
|
|
49285
|
+
})(), xe = !c || c.split(".").length > 2 ? T === "localhost" ? "plexobuilder.vercel.app" : T : "76.76.21.21";
|
|
49286
49286
|
return /* @__PURE__ */ F("div", {
|
|
49287
49287
|
className: "flex flex-col gap-4",
|
|
49288
49288
|
style: { color: "var(--builder-text-color)" },
|
|
@@ -49473,7 +49473,7 @@ var xU = { color: "var(--builder-muted-text-color)" }, SU = ({ apiKey: e, templa
|
|
|
49473
49473
|
borderLeft: "1px solid var(--builder-input-border)",
|
|
49474
49474
|
color: "var(--builder-muted-text-color)"
|
|
49475
49475
|
},
|
|
49476
|
-
children: [".",
|
|
49476
|
+
children: [".", T === "localhost" ? "localhost" : T]
|
|
49477
49477
|
})]
|
|
49478
49478
|
})] }) : /* @__PURE__ */ F("div", { children: [
|
|
49479
49479
|
/* @__PURE__ */ P("label", {
|
|
@@ -49612,13 +49612,13 @@ var xU = { color: "var(--builder-muted-text-color)" }, SU = ({ apiKey: e, templa
|
|
|
49612
49612
|
}),
|
|
49613
49613
|
/* @__PURE__ */ P("button", {
|
|
49614
49614
|
type: "submit",
|
|
49615
|
-
disabled: u || te === "ready" && !re && S >=
|
|
49615
|
+
disabled: u || te === "ready" && !re && S >= ee,
|
|
49616
49616
|
className: "w-full py-2 rounded text-[11px] font-bold transition cursor-pointer flex items-center justify-center gap-1",
|
|
49617
49617
|
style: {
|
|
49618
49618
|
backgroundColor: "var(--theme-accent)",
|
|
49619
49619
|
color: "var(--theme-fg)"
|
|
49620
49620
|
},
|
|
49621
|
-
children: u ? "Publishing…" : te === "ready" && !re && S >=
|
|
49621
|
+
children: u ? "Publishing…" : te === "ready" && !re && S >= ee ? "Domain Limit Reached" : "Publish Landing Page"
|
|
49622
49622
|
})
|
|
49623
49623
|
]
|
|
49624
49624
|
}),
|
|
@@ -49631,7 +49631,7 @@ var xU = { color: "var(--builder-muted-text-color)" }, SU = ({ apiKey: e, templa
|
|
|
49631
49631
|
}), te === "ready" ? /* @__PURE__ */ P("span", {
|
|
49632
49632
|
className: "font-semibold",
|
|
49633
49633
|
style: { color: "var(--builder-text-color)" },
|
|
49634
|
-
children: re ? `${S} published (no limit)` : `${S} / ${
|
|
49634
|
+
children: re ? `${S} published (no limit)` : `${S} / ${ee} mapped`
|
|
49635
49635
|
}) : te === "error" ? /* @__PURE__ */ P("span", {
|
|
49636
49636
|
className: "font-semibold",
|
|
49637
49637
|
style: { color: "var(--builder-muted-text-color)" },
|
|
@@ -50678,7 +50678,7 @@ var NU = (e) => {
|
|
|
50678
50678
|
})
|
|
50679
50679
|
})] }) });
|
|
50680
50680
|
}, PU = (e) => {
|
|
50681
|
-
let { selectedElement: t, currentAttrs: n, currentStyles: r, openAccordions: i, toggleAccordion: a, onTransientAttrChange: o, onTransientStyleChange: s, AccordionSection: c, InlineTextInput: l, InlineSelect: u, InlineColorPicker: d, InlineAlignment: f, InlineCounter: p, Toggle: m, InlineTextArea: h, SpacingControls: g, BorderRadiusControls: _, handleUploadMock: v, ICONS: y, aiPromptText: b, setAiPromptText: x, currentFormFields: S, safeFormFieldIndex: C, activeFormField:
|
|
50681
|
+
let { selectedElement: t, currentAttrs: n, currentStyles: r, openAccordions: i, toggleAccordion: a, onTransientAttrChange: o, onTransientStyleChange: s, AccordionSection: c, InlineTextInput: l, InlineSelect: u, InlineColorPicker: d, InlineAlignment: f, InlineCounter: p, Toggle: m, InlineTextArea: h, SpacingControls: g, BorderRadiusControls: _, handleUploadMock: v, ICONS: y, aiPromptText: b, setAiPromptText: x, currentFormFields: S, safeFormFieldIndex: C, activeFormField: ee, setActiveFormFieldIndex: w, getFormFields: T, createFormField: E, fieldSupportsOptions: te, serializeFieldOptions: ne, parseFieldOptions: re, normalizeSocialProvider: ie, renderSocialIcon: ae, activeCarouselSlideIdx: oe, setActiveCarouselSlideIdx: se, createSeededImageUrl: ce, deviceView: D, notify: le, disableImageUpload: ue, onOpenImageLibrary: de } = e;
|
|
50682
50682
|
return /* @__PURE__ */ P(N, { children: t && t.type === "image" && /* @__PURE__ */ F(N, { children: [
|
|
50683
50683
|
/* @__PURE__ */ P(c, {
|
|
50684
50684
|
title: "Ai assistant",
|
|
@@ -50938,7 +50938,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
50938
50938
|
})]
|
|
50939
50939
|
});
|
|
50940
50940
|
}, LU = (e) => {
|
|
50941
|
-
let { selectedElement: t, currentAttrs: n, currentStyles: r, openAccordions: i, toggleAccordion: a, onTransientAttrChange: o, onTransientStyleChange: s, AccordionSection: c, InlineTextInput: l, InlineSelect: u, InlineColorPicker: d, InlineAlignment: f, InlineCounter: p, Toggle: m, InlineTextArea: h, SpacingControls: g, BorderRadiusControls: _, handleUploadMock: v, ICONS: y, aiPromptText: b, setAiPromptText: x, currentFormFields: S, safeFormFieldIndex: C, activeFormField:
|
|
50941
|
+
let { selectedElement: t, currentAttrs: n, currentStyles: r, openAccordions: i, toggleAccordion: a, onTransientAttrChange: o, onTransientStyleChange: s, AccordionSection: c, InlineTextInput: l, InlineSelect: u, InlineColorPicker: d, InlineAlignment: f, InlineCounter: p, Toggle: m, InlineTextArea: h, SpacingControls: g, BorderRadiusControls: _, handleUploadMock: v, ICONS: y, aiPromptText: b, setAiPromptText: x, currentFormFields: S, safeFormFieldIndex: C, activeFormField: ee, setActiveFormFieldIndex: w, getFormFields: T, createFormField: E, fieldSupportsOptions: te, serializeFieldOptions: ne, parseFieldOptions: re, normalizeSocialProvider: ie, renderSocialIcon: ae, activeCarouselSlideIdx: oe, setActiveCarouselSlideIdx: se, createSeededImageUrl: ce, deviceView: D, sitePages: le = [] } = e;
|
|
50942
50942
|
return /* @__PURE__ */ P(N, { children: t && t.type === "button" && /* @__PURE__ */ F(N, { children: [
|
|
50943
50943
|
/* @__PURE__ */ P(c, {
|
|
50944
50944
|
title: "Action",
|
|
@@ -51143,7 +51143,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
51143
51143
|
})
|
|
51144
51144
|
] }) });
|
|
51145
51145
|
}, RU = (e) => {
|
|
51146
|
-
let { selectedElement: t, currentAttrs: n, currentStyles: r, openAccordions: i, toggleAccordion: a, onTransientAttrChange: o, onTransientStyleChange: s, AccordionSection: c, InlineTextInput: l, InlineSelect: u, InlineColorPicker: d, InlineAlignment: f, InlineCounter: p, Toggle: m, InlineTextArea: h, SpacingControls: g, BorderRadiusControls: _, handleUploadMock: v, ICONS: y, aiPromptText: b, setAiPromptText: x, currentFormFields: S, safeFormFieldIndex: C, activeFormField:
|
|
51146
|
+
let { selectedElement: t, currentAttrs: n, currentStyles: r, openAccordions: i, toggleAccordion: a, onTransientAttrChange: o, onTransientStyleChange: s, AccordionSection: c, InlineTextInput: l, InlineSelect: u, InlineColorPicker: d, InlineAlignment: f, InlineCounter: p, Toggle: m, InlineTextArea: h, SpacingControls: g, BorderRadiusControls: _, handleUploadMock: v, ICONS: y, aiPromptText: b, setAiPromptText: x, currentFormFields: S, safeFormFieldIndex: C, activeFormField: ee, setActiveFormFieldIndex: w, getFormFields: T, createFormField: E, fieldSupportsOptions: te, serializeFieldOptions: ne, parseFieldOptions: re, normalizeSocialProvider: ie, renderSocialIcon: ae, activeCarouselSlideIdx: oe, setActiveCarouselSlideIdx: se, createSeededImageUrl: ce, deviceView: D, sitePages: le = [] } = e;
|
|
51147
51147
|
return /* @__PURE__ */ P(N, { children: t && t.type === "menu" && /* @__PURE__ */ F(N, { children: [/* @__PURE__ */ P(c, {
|
|
51148
51148
|
title: "Menu items",
|
|
51149
51149
|
isOpen: i.link,
|
|
@@ -51328,7 +51328,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
51328
51328
|
})
|
|
51329
51329
|
})] }) });
|
|
51330
51330
|
}, zU = (e) => {
|
|
51331
|
-
let { selectedElement: t, currentAttrs: n, currentStyles: r, openAccordions: i, toggleAccordion: a, onTransientAttrChange: o, onTransientStyleChange: s, AccordionSection: c, InlineTextInput: l, InlineSelect: u, InlineColorPicker: d, InlineAlignment: f, InlineCounter: p, Toggle: m, InlineTextArea: h, SpacingControls: g, BorderRadiusControls: _, handleUploadMock: v, ICONS: y, aiPromptText: b, setAiPromptText: x, currentFormFields: S, safeFormFieldIndex: C, activeFormField:
|
|
51331
|
+
let { selectedElement: t, currentAttrs: n, currentStyles: r, openAccordions: i, toggleAccordion: a, onTransientAttrChange: o, onTransientStyleChange: s, AccordionSection: c, InlineTextInput: l, InlineSelect: u, InlineColorPicker: d, InlineAlignment: f, InlineCounter: p, Toggle: m, InlineTextArea: h, SpacingControls: g, BorderRadiusControls: _, handleUploadMock: v, ICONS: y, aiPromptText: b, setAiPromptText: x, currentFormFields: S, safeFormFieldIndex: C, activeFormField: ee, setActiveFormFieldIndex: w, getFormFields: T, createFormField: E, fieldSupportsOptions: te, serializeFieldOptions: ne, parseFieldOptions: re, normalizeSocialProvider: ie, renderSocialIcon: ae, activeCarouselSlideIdx: oe, setActiveCarouselSlideIdx: se, createSeededImageUrl: ce, deviceView: D } = e;
|
|
51332
51332
|
return /* @__PURE__ */ P(N, { children: t && t.type === "timer" && /* @__PURE__ */ P(c, {
|
|
51333
51333
|
title: "Countdown",
|
|
51334
51334
|
isOpen: i.styling,
|
|
@@ -51455,7 +51455,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
51455
51455
|
})
|
|
51456
51456
|
}) });
|
|
51457
51457
|
}, BU = (e) => {
|
|
51458
|
-
let { selectedElement: t, currentAttrs: n, currentStyles: r, openAccordions: i, toggleAccordion: a, onTransientAttrChange: o, onTransientStyleChange: s, AccordionSection: c, InlineTextInput: l, InlineSelect: u, InlineColorPicker: d, InlineAlignment: f, InlineCounter: p, Toggle: m, InlineTextArea: h, SpacingControls: g, BorderRadiusControls: _,
|
|
51458
|
+
let { selectedElement: t, currentAttrs: n, currentStyles: r, openAccordions: i, toggleAccordion: a, onTransientAttrChange: o, onTransientStyleChange: s, AccordionSection: c, InlineTextInput: l, InlineSelect: u, InlineColorPicker: d, InlineAlignment: f, InlineCounter: p, Toggle: m, InlineTextArea: h, SpacingControls: g, BorderRadiusControls: _, BorderSideControls: v, handleUploadMock: y, ICONS: b, aiPromptText: x, setAiPromptText: S, currentFormFields: C, safeFormFieldIndex: ee, activeFormField: w, setActiveFormFieldIndex: T, getFormFields: E, createFormField: te, fieldSupportsOptions: ne, serializeFieldOptions: re, parseFieldOptions: ie, normalizeSocialProvider: ae, renderSocialIcon: oe, activeCarouselSlideIdx: se, setActiveCarouselSlideIdx: ce, createSeededImageUrl: D, deviceView: le } = e;
|
|
51459
51459
|
return /* @__PURE__ */ P(N, { children: t && t.type === "table" && /* @__PURE__ */ F(N, { children: [
|
|
51460
51460
|
/* @__PURE__ */ P(c, {
|
|
51461
51461
|
title: "Active cell",
|
|
@@ -51489,12 +51489,9 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
51489
51489
|
min: 1,
|
|
51490
51490
|
max: 30
|
|
51491
51491
|
}),
|
|
51492
|
-
/* @__PURE__ */ P(
|
|
51493
|
-
|
|
51494
|
-
|
|
51495
|
-
min: 0,
|
|
51496
|
-
max: 12,
|
|
51497
|
-
onChange: (e) => s("borderWidth", e)
|
|
51492
|
+
/* @__PURE__ */ P(v, {
|
|
51493
|
+
styles: r,
|
|
51494
|
+
onChange: s
|
|
51498
51495
|
}),
|
|
51499
51496
|
/* @__PURE__ */ P(u, {
|
|
51500
51497
|
label: "Border Style",
|
|
@@ -51644,7 +51641,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
51644
51641
|
})
|
|
51645
51642
|
] }) });
|
|
51646
51643
|
}, VU = (e) => {
|
|
51647
|
-
let { selectedElement: t, currentAttrs: n, currentStyles: r, openAccordions: i, toggleAccordion: a, onTransientAttrChange: o, onTransientStyleChange: s, AccordionSection: c, InlineTextInput: l, InlineSelect: u, InlineColorPicker: d, InlineAlignment: f, InlineCounter: p, Toggle: m, InlineTextArea: h, SpacingControls: g, BorderRadiusControls: _, handleUploadMock: v, ICONS: y, aiPromptText: b, setAiPromptText: x, currentFormFields: S, safeFormFieldIndex: C, activeFormField:
|
|
51644
|
+
let { selectedElement: t, currentAttrs: n, currentStyles: r, openAccordions: i, toggleAccordion: a, onTransientAttrChange: o, onTransientStyleChange: s, AccordionSection: c, InlineTextInput: l, InlineSelect: u, InlineColorPicker: d, InlineAlignment: f, InlineCounter: p, Toggle: m, InlineTextArea: h, SpacingControls: g, BorderRadiusControls: _, handleUploadMock: v, ICONS: y, aiPromptText: b, setAiPromptText: x, currentFormFields: S, safeFormFieldIndex: C, activeFormField: ee, setActiveFormFieldIndex: w, getFormFields: T, createFormField: E, fieldSupportsOptions: te, serializeFieldOptions: ne, parseFieldOptions: re, normalizeSocialProvider: ie, renderSocialIcon: ae, activeCarouselSlideIdx: oe, setActiveCarouselSlideIdx: se, createSeededImageUrl: ce, deviceView: D } = e;
|
|
51648
51645
|
return /* @__PURE__ */ P(N, { children: t && t.type === "html" && /* @__PURE__ */ P(c, {
|
|
51649
51646
|
title: "</> HTML",
|
|
51650
51647
|
isOpen: i.styling,
|
|
@@ -51694,7 +51691,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
51694
51691
|
})
|
|
51695
51692
|
}) });
|
|
51696
51693
|
}, HU = (e) => {
|
|
51697
|
-
let { selectedElement: t, currentAttrs: n, currentStyles: r, openAccordions: i, toggleAccordion: a, onTransientAttrChange: o, onTransientStyleChange: s, AccordionSection: c, InlineTextInput: l, InlineSelect: u, InlineColorPicker: d, InlineAlignment: f, InlineCounter: p, Toggle: m, InlineTextArea: h, SpacingControls: g, BorderRadiusControls: _,
|
|
51694
|
+
let { selectedElement: t, currentAttrs: n, currentStyles: r, openAccordions: i, toggleAccordion: a, onTransientAttrChange: o, onTransientStyleChange: s, AccordionSection: c, InlineTextInput: l, InlineSelect: u, InlineColorPicker: d, InlineAlignment: f, InlineCounter: p, Toggle: m, InlineTextArea: h, SpacingControls: g, BorderRadiusControls: _, BorderSideControls: v, BoxShadowControls: y, handleUploadMock: b, ICONS: x, aiPromptText: S, setAiPromptText: C, currentFormFields: w, safeFormFieldIndex: T, activeFormField: E, setActiveFormFieldIndex: te, getFormFields: ne, createFormField: re, fieldSupportsOptions: ie, serializeFieldOptions: ae, parseFieldOptions: oe, normalizeSocialProvider: se, renderSocialIcon: ce, activeCarouselSlideIdx: D, setActiveCarouselSlideIdx: le, createSeededImageUrl: ue, deviceView: de } = e;
|
|
51698
51695
|
return /* @__PURE__ */ P(N, { children: t && t.type === "form_container" && /* @__PURE__ */ F(N, { children: [
|
|
51699
51696
|
/* @__PURE__ */ P(c, {
|
|
51700
51697
|
title: "Form settings",
|
|
@@ -51862,11 +51859,11 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
51862
51859
|
onToggle: () => a("typography"),
|
|
51863
51860
|
children: [/* @__PURE__ */ P("div", {
|
|
51864
51861
|
className: "flex flex-wrap gap-1.5 pb-2 border-b border-slate-800/10",
|
|
51865
|
-
children:
|
|
51862
|
+
children: ee.map((e) => /* @__PURE__ */ F("button", {
|
|
51866
51863
|
type: "button",
|
|
51867
51864
|
onClick: () => {
|
|
51868
|
-
let t = [...
|
|
51869
|
-
o("fields", t),
|
|
51865
|
+
let t = [...ne(n), re(e.value)];
|
|
51866
|
+
o("fields", t), te(Math.max(0, t.length - 1));
|
|
51870
51867
|
},
|
|
51871
51868
|
className: "px-2 py-1 rounded bg-slate-900 border border-slate-800 text-[9px] font-bold text-slate-300 hover:text-white transition",
|
|
51872
51869
|
children: ["+ ", e.label]
|
|
@@ -51876,9 +51873,9 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
51876
51873
|
children: [
|
|
51877
51874
|
/* @__PURE__ */ P("div", {
|
|
51878
51875
|
className: "flex flex-wrap gap-1.5",
|
|
51879
|
-
children:
|
|
51876
|
+
children: w.map((e, t) => /* @__PURE__ */ P("button", {
|
|
51880
51877
|
type: "button",
|
|
51881
|
-
onClick: () =>
|
|
51878
|
+
onClick: () => te(t),
|
|
51882
51879
|
className: `px-2.5 py-1 rounded-full border text-[10px] font-bold transition ${T === t ? "border-cyan-400 bg-cyan-500/15 text-cyan-200" : "border-slate-700 bg-slate-900 text-slate-300 hover:text-white"}`,
|
|
51883
51880
|
children: e.label || `Field ${t + 1}`
|
|
51884
51881
|
}, e.id))
|
|
@@ -51894,8 +51891,8 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
51894
51891
|
}), /* @__PURE__ */ P("button", {
|
|
51895
51892
|
type: "button",
|
|
51896
51893
|
onClick: () => {
|
|
51897
|
-
let e =
|
|
51898
|
-
o("fields", e),
|
|
51894
|
+
let e = w.filter((e, t) => t !== T);
|
|
51895
|
+
o("fields", e), te(Math.max(0, T - 1));
|
|
51899
51896
|
},
|
|
51900
51897
|
className: "text-[10px] text-rose-500 hover:text-rose-400 font-bold",
|
|
51901
51898
|
children: "Remove"
|
|
@@ -51908,7 +51905,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
51908
51905
|
label: "Use previous field styles",
|
|
51909
51906
|
checked: !!E.inheritStylesFromPrevious,
|
|
51910
51907
|
onChange: (e) => {
|
|
51911
|
-
let t = [...
|
|
51908
|
+
let t = [...w];
|
|
51912
51909
|
t[T] = {
|
|
51913
51910
|
...t[T],
|
|
51914
51911
|
inheritStylesFromPrevious: e
|
|
@@ -51928,13 +51925,13 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
51928
51925
|
/* @__PURE__ */ P(u, {
|
|
51929
51926
|
label: "Type",
|
|
51930
51927
|
value: E.kind,
|
|
51931
|
-
options:
|
|
51928
|
+
options: ee,
|
|
51932
51929
|
onChange: (e) => {
|
|
51933
|
-
let t = [...
|
|
51930
|
+
let t = [...w];
|
|
51934
51931
|
t[T] = {
|
|
51935
51932
|
...t[T],
|
|
51936
51933
|
kind: e,
|
|
51937
|
-
options:
|
|
51934
|
+
options: ie(e) ? t[T].options || re(e).options : void 0
|
|
51938
51935
|
}, o("fields", t);
|
|
51939
51936
|
}
|
|
51940
51937
|
}),
|
|
@@ -51942,7 +51939,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
51942
51939
|
label: "Label",
|
|
51943
51940
|
value: E.label,
|
|
51944
51941
|
onChange: (e) => {
|
|
51945
|
-
let t = [...
|
|
51942
|
+
let t = [...w];
|
|
51946
51943
|
t[T] = {
|
|
51947
51944
|
...t[T],
|
|
51948
51945
|
label: e
|
|
@@ -51953,32 +51950,32 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
51953
51950
|
label: "Field Name",
|
|
51954
51951
|
value: E.name,
|
|
51955
51952
|
onChange: (e) => {
|
|
51956
|
-
let t = [...
|
|
51953
|
+
let t = [...w];
|
|
51957
51954
|
t[T] = {
|
|
51958
51955
|
...t[T],
|
|
51959
51956
|
name: e
|
|
51960
51957
|
}, o("fields", t);
|
|
51961
51958
|
}
|
|
51962
51959
|
}),
|
|
51963
|
-
!
|
|
51960
|
+
!ie(E.kind) && /* @__PURE__ */ P(l, {
|
|
51964
51961
|
label: "Placeholder",
|
|
51965
51962
|
value: E.placeholder || "",
|
|
51966
51963
|
onChange: (e) => {
|
|
51967
|
-
let t = [...
|
|
51964
|
+
let t = [...w];
|
|
51968
51965
|
t[T] = {
|
|
51969
51966
|
...t[T],
|
|
51970
51967
|
placeholder: e
|
|
51971
51968
|
}, o("fields", t);
|
|
51972
51969
|
}
|
|
51973
51970
|
}),
|
|
51974
|
-
|
|
51971
|
+
ie(E.kind) && /* @__PURE__ */ P(l, {
|
|
51975
51972
|
label: "Options",
|
|
51976
|
-
value:
|
|
51973
|
+
value: ae(E.options || []),
|
|
51977
51974
|
onChange: (e) => {
|
|
51978
|
-
let t = [...
|
|
51975
|
+
let t = [...w];
|
|
51979
51976
|
t[T] = {
|
|
51980
51977
|
...t[T],
|
|
51981
|
-
options:
|
|
51978
|
+
options: oe(e)
|
|
51982
51979
|
}, o("fields", t);
|
|
51983
51980
|
}
|
|
51984
51981
|
}),
|
|
@@ -51986,7 +51983,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
51986
51983
|
label: "Required",
|
|
51987
51984
|
checked: !!E.required,
|
|
51988
51985
|
onChange: (e) => {
|
|
51989
|
-
let t = [...
|
|
51986
|
+
let t = [...w];
|
|
51990
51987
|
t[T] = {
|
|
51991
51988
|
...t[T],
|
|
51992
51989
|
required: e
|
|
@@ -52001,7 +51998,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
52001
51998
|
label: "Show Label",
|
|
52002
51999
|
checked: E.showLabel !== !1,
|
|
52003
52000
|
onChange: (e) => {
|
|
52004
|
-
let t = [...
|
|
52001
|
+
let t = [...w];
|
|
52005
52002
|
t[T] = {
|
|
52006
52003
|
...t[T],
|
|
52007
52004
|
showLabel: e
|
|
@@ -52015,7 +52012,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
52015
52012
|
min: 10,
|
|
52016
52013
|
max: 28,
|
|
52017
52014
|
onChange: (e) => {
|
|
52018
|
-
let t = [...
|
|
52015
|
+
let t = [...w];
|
|
52019
52016
|
t[T] = {
|
|
52020
52017
|
...t[T],
|
|
52021
52018
|
fontSize: e
|
|
@@ -52028,7 +52025,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
52028
52025
|
min: 0,
|
|
52029
52026
|
max: 40,
|
|
52030
52027
|
onChange: (e) => {
|
|
52031
|
-
let t = [...
|
|
52028
|
+
let t = [...w];
|
|
52032
52029
|
t[T] = {
|
|
52033
52030
|
...t[T],
|
|
52034
52031
|
borderRadius: e
|
|
@@ -52041,7 +52038,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
52041
52038
|
min: 0,
|
|
52042
52039
|
max: 12,
|
|
52043
52040
|
onChange: (e) => {
|
|
52044
|
-
let t = [...
|
|
52041
|
+
let t = [...w];
|
|
52045
52042
|
t[T] = {
|
|
52046
52043
|
...t[T],
|
|
52047
52044
|
borderWidth: e
|
|
@@ -52052,7 +52049,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
52052
52049
|
label: "Field Border Color",
|
|
52053
52050
|
value: E.borderColor || "#e2e8f0",
|
|
52054
52051
|
onChange: (e) => {
|
|
52055
|
-
let t = [...
|
|
52052
|
+
let t = [...w];
|
|
52056
52053
|
t[T] = {
|
|
52057
52054
|
...t[T],
|
|
52058
52055
|
borderColor: e
|
|
@@ -52063,7 +52060,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
52063
52060
|
label: "Label Color",
|
|
52064
52061
|
value: E.labelColor || "#475569",
|
|
52065
52062
|
onChange: (e) => {
|
|
52066
|
-
let t = [...
|
|
52063
|
+
let t = [...w];
|
|
52067
52064
|
t[T] = {
|
|
52068
52065
|
...t[T],
|
|
52069
52066
|
labelColor: e
|
|
@@ -52074,7 +52071,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
52074
52071
|
label: "Input Text Color",
|
|
52075
52072
|
value: E.inputTextColor || "#0f172a",
|
|
52076
52073
|
onChange: (e) => {
|
|
52077
|
-
let t = [...
|
|
52074
|
+
let t = [...w];
|
|
52078
52075
|
t[T] = {
|
|
52079
52076
|
...t[T],
|
|
52080
52077
|
inputTextColor: e
|
|
@@ -52085,7 +52082,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
52085
52082
|
label: "Placeholder Color",
|
|
52086
52083
|
value: E.placeholderColor || "#94a3b8",
|
|
52087
52084
|
onChange: (e) => {
|
|
52088
|
-
let t = [...
|
|
52085
|
+
let t = [...w];
|
|
52089
52086
|
t[T] = {
|
|
52090
52087
|
...t[T],
|
|
52091
52088
|
placeholderColor: e
|
|
@@ -52117,12 +52114,9 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
52117
52114
|
value: r.backgroundColor || "#f8fafc",
|
|
52118
52115
|
onChange: (e) => s("backgroundColor", e)
|
|
52119
52116
|
}),
|
|
52120
|
-
/* @__PURE__ */ P(
|
|
52121
|
-
|
|
52122
|
-
|
|
52123
|
-
min: 0,
|
|
52124
|
-
max: 12,
|
|
52125
|
-
onChange: (e) => s("borderWidth", e)
|
|
52117
|
+
/* @__PURE__ */ P(v, {
|
|
52118
|
+
styles: r,
|
|
52119
|
+
onChange: s
|
|
52126
52120
|
}),
|
|
52127
52121
|
/* @__PURE__ */ P(u, {
|
|
52128
52122
|
label: "Border Style",
|
|
@@ -52156,7 +52150,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
52156
52150
|
styles: r,
|
|
52157
52151
|
onChange: s
|
|
52158
52152
|
}),
|
|
52159
|
-
/* @__PURE__ */ P(
|
|
52153
|
+
/* @__PURE__ */ P(y, {
|
|
52160
52154
|
styles: r,
|
|
52161
52155
|
onChange: s
|
|
52162
52156
|
})
|
|
@@ -52221,7 +52215,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
52221
52215
|
})
|
|
52222
52216
|
] }) });
|
|
52223
52217
|
}, UU = (e) => {
|
|
52224
|
-
let { selectedElement: t, currentAttrs: n, currentStyles: r, openAccordions: i, toggleAccordion: a, onTransientAttrChange: o, onTransientStyleChange: s, AccordionSection: c, InlineTextInput: l, InlineSelect: u, InlineColorPicker: d, InlineAlignment: f, InlineCounter: p, Toggle: m, InlineTextArea: h, SpacingControls: g, BorderRadiusControls: _,
|
|
52218
|
+
let { selectedElement: t, currentAttrs: n, currentStyles: r, openAccordions: i, toggleAccordion: a, onTransientAttrChange: o, onTransientStyleChange: s, AccordionSection: c, InlineTextInput: l, InlineSelect: u, InlineColorPicker: d, InlineAlignment: f, InlineCounter: p, Toggle: m, InlineTextArea: h, SpacingControls: g, BorderRadiusControls: _, BorderSideControls: v, BoxShadowControls: y, handleUploadMock: b, ICONS: x, aiPromptText: S, setAiPromptText: C, currentFormFields: ee, safeFormFieldIndex: w, activeFormField: T, setActiveFormFieldIndex: E, getFormFields: te, createFormField: ne, fieldSupportsOptions: re, serializeFieldOptions: ie, parseFieldOptions: ae, normalizeSocialProvider: oe, renderSocialIcon: se, activeCarouselSlideIdx: ce, setActiveCarouselSlideIdx: D, createSeededImageUrl: le, deviceView: ue } = e;
|
|
52225
52219
|
return /* @__PURE__ */ P(N, { children: t && t.type === "card" && /* @__PURE__ */ F(N, { children: [
|
|
52226
52220
|
/* @__PURE__ */ P(c, {
|
|
52227
52221
|
title: "Content",
|
|
@@ -52252,12 +52246,9 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
52252
52246
|
value: r.backgroundColor || "#ffffff",
|
|
52253
52247
|
onChange: (e) => s("backgroundColor", e)
|
|
52254
52248
|
}),
|
|
52255
|
-
/* @__PURE__ */ P(
|
|
52256
|
-
|
|
52257
|
-
|
|
52258
|
-
min: 0,
|
|
52259
|
-
max: 12,
|
|
52260
|
-
onChange: (e) => s("borderWidth", e)
|
|
52249
|
+
/* @__PURE__ */ P(v, {
|
|
52250
|
+
styles: r,
|
|
52251
|
+
onChange: s
|
|
52261
52252
|
}),
|
|
52262
52253
|
/* @__PURE__ */ P(u, {
|
|
52263
52254
|
label: "Border Style",
|
|
@@ -52291,7 +52282,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
52291
52282
|
styles: r,
|
|
52292
52283
|
onChange: s
|
|
52293
52284
|
}),
|
|
52294
|
-
/* @__PURE__ */ P(
|
|
52285
|
+
/* @__PURE__ */ P(y, {
|
|
52295
52286
|
styles: r,
|
|
52296
52287
|
onChange: s
|
|
52297
52288
|
})
|
|
@@ -52320,7 +52311,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
52320
52311
|
})
|
|
52321
52312
|
] }) });
|
|
52322
52313
|
}, WU = (e) => {
|
|
52323
|
-
let { selectedElement: t, currentAttrs: n, currentStyles: r, openAccordions: i, toggleAccordion: a, onTransientAttrChange: o, onTransientStyleChange: s, AccordionSection: c, InlineTextInput: l, InlineSelect: u, InlineColorPicker: d, InlineAlignment: f, InlineCounter: p, Toggle: m, InlineTextArea: h, SpacingControls: g, BorderRadiusControls: v, handleUploadMock: y, ICONS: b, aiPromptText: x, setAiPromptText: S, currentFormFields: C, safeFormFieldIndex:
|
|
52314
|
+
let { selectedElement: t, currentAttrs: n, currentStyles: r, openAccordions: i, toggleAccordion: a, onTransientAttrChange: o, onTransientStyleChange: s, AccordionSection: c, InlineTextInput: l, InlineSelect: u, InlineColorPicker: d, InlineAlignment: f, InlineCounter: p, Toggle: m, InlineTextArea: h, SpacingControls: g, BorderRadiusControls: v, handleUploadMock: y, ICONS: b, aiPromptText: x, setAiPromptText: S, currentFormFields: C, safeFormFieldIndex: ee, activeFormField: w, setActiveFormFieldIndex: T, getFormFields: E, createFormField: te, fieldSupportsOptions: ne, serializeFieldOptions: re, parseFieldOptions: ie, normalizeSocialProvider: ae, renderSocialIcon: oe, activeCarouselSlideIdx: ce, setActiveCarouselSlideIdx: D, createSeededImageUrl: le, deviceView: ue } = e, de = n.colorMode === "branded" ? "branded" : "custom", fe = de === "branded";
|
|
52324
52315
|
return /* @__PURE__ */ P(N, { children: t && t.type === "social" && /* @__PURE__ */ P(c, {
|
|
52325
52316
|
title: "Icons",
|
|
52326
52317
|
isOpen: i.link,
|
|
@@ -52544,7 +52535,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
52544
52535
|
})
|
|
52545
52536
|
}) });
|
|
52546
52537
|
}, GU = (e) => {
|
|
52547
|
-
let { selectedElement: t, currentAttrs: n, currentStyles: r, openAccordions: i, toggleAccordion: a, onTransientAttrChange: o, onTransientStyleChange: s, AccordionSection: c, InlineTextInput: l, InlineSelect: u, InlineColorPicker: d, InlineAlignment: f, InlineCounter: p, Toggle: m, InlineTextArea: h, SpacingControls: g, BorderRadiusControls: _, handleUploadMock: v, ICONS: y, aiPromptText: b, setAiPromptText: x, currentFormFields: S, safeFormFieldIndex: C, activeFormField:
|
|
52538
|
+
let { selectedElement: t, currentAttrs: n, currentStyles: r, openAccordions: i, toggleAccordion: a, onTransientAttrChange: o, onTransientStyleChange: s, AccordionSection: c, InlineTextInput: l, InlineSelect: u, InlineColorPicker: d, InlineAlignment: f, InlineCounter: p, Toggle: m, InlineTextArea: h, SpacingControls: g, BorderRadiusControls: _, handleUploadMock: v, ICONS: y, aiPromptText: b, setAiPromptText: x, currentFormFields: S, safeFormFieldIndex: C, activeFormField: ee, setActiveFormFieldIndex: w, getFormFields: T, createFormField: E, fieldSupportsOptions: te, serializeFieldOptions: ne, parseFieldOptions: re, normalizeSocialProvider: ie, renderSocialIcon: ae, activeCarouselSlideIdx: oe, setActiveCarouselSlideIdx: se, createSeededImageUrl: ce, deviceView: D } = e;
|
|
52548
52539
|
return /* @__PURE__ */ P(N, { children: t && t.type === "spacer" && /* @__PURE__ */ P(c, {
|
|
52549
52540
|
title: "Spacer height",
|
|
52550
52541
|
isOpen: i.styling,
|
|
@@ -52567,7 +52558,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
52567
52558
|
})
|
|
52568
52559
|
}) });
|
|
52569
52560
|
}, KU = (e) => {
|
|
52570
|
-
let { selectedElement: t, currentAttrs: n, currentStyles: r, openAccordions: i, toggleAccordion: a, onTransientAttrChange: o, onTransientStyleChange: s, AccordionSection: c, InlineTextInput: l, InlineSelect: u, InlineColorPicker: d, InlineAlignment: f, InlineCounter: p, Toggle: m, InlineTextArea: h, SpacingControls: g, BorderRadiusControls: _, handleUploadMock: v, ICONS: y, aiPromptText: b, setAiPromptText: x, currentFormFields: S, safeFormFieldIndex: C, activeFormField:
|
|
52561
|
+
let { selectedElement: t, currentAttrs: n, currentStyles: r, openAccordions: i, toggleAccordion: a, onTransientAttrChange: o, onTransientStyleChange: s, AccordionSection: c, InlineTextInput: l, InlineSelect: u, InlineColorPicker: d, InlineAlignment: f, InlineCounter: p, Toggle: m, InlineTextArea: h, SpacingControls: g, BorderRadiusControls: _, handleUploadMock: v, ICONS: y, aiPromptText: b, setAiPromptText: x, currentFormFields: S, safeFormFieldIndex: C, activeFormField: ee, setActiveFormFieldIndex: w, getFormFields: T, createFormField: E, fieldSupportsOptions: te, serializeFieldOptions: ne, parseFieldOptions: re, normalizeSocialProvider: ie, renderSocialIcon: ae, activeCarouselSlideIdx: oe, setActiveCarouselSlideIdx: se, createSeededImageUrl: ce, deviceView: D, notify: le, disableImageUpload: ue, onOpenImageLibrary: de } = e;
|
|
52571
52562
|
return /* @__PURE__ */ P(N, { children: t && t.type === "carousel" && /* @__PURE__ */ F(N, { children: [
|
|
52572
52563
|
/* @__PURE__ */ P(c, {
|
|
52573
52564
|
title: "Images",
|
|
@@ -52726,7 +52717,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
52726
52717
|
})
|
|
52727
52718
|
] }) });
|
|
52728
52719
|
}, qU = (e) => {
|
|
52729
|
-
let { selectedElement: t, currentAttrs: n, currentStyles: r, openAccordions: i, toggleAccordion: a, onTransientAttrChange: o, onTransientStyleChange: s, AccordionSection: c, InlineTextInput: l, InlineSelect: u, InlineColorPicker: d, InlineAlignment: f, InlineCounter: p, Toggle: m, InlineTextArea: h, SpacingControls: g, BorderRadiusControls: _, handleUploadMock: v, ICONS: y, aiPromptText: b, setAiPromptText: x, currentFormFields: S, safeFormFieldIndex: C, activeFormField:
|
|
52720
|
+
let { selectedElement: t, currentAttrs: n, currentStyles: r, openAccordions: i, toggleAccordion: a, onTransientAttrChange: o, onTransientStyleChange: s, AccordionSection: c, InlineTextInput: l, InlineSelect: u, InlineColorPicker: d, InlineAlignment: f, InlineCounter: p, Toggle: m, InlineTextArea: h, SpacingControls: g, BorderRadiusControls: _, handleUploadMock: v, ICONS: y, aiPromptText: b, setAiPromptText: x, currentFormFields: S, safeFormFieldIndex: C, activeFormField: ee, setActiveFormFieldIndex: w, getFormFields: T, createFormField: E, fieldSupportsOptions: te, serializeFieldOptions: ne, parseFieldOptions: re, normalizeSocialProvider: ie, renderSocialIcon: ae, activeCarouselSlideIdx: oe, setActiveCarouselSlideIdx: se, createSeededImageUrl: ce, deviceView: D } = e;
|
|
52730
52721
|
return /* @__PURE__ */ P(N, { children: t && t.type === "video" && /* @__PURE__ */ F(N, { children: [/* @__PURE__ */ P(c, {
|
|
52731
52722
|
title: "Link",
|
|
52732
52723
|
isOpen: i.link,
|
|
@@ -52782,7 +52773,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
52782
52773
|
})
|
|
52783
52774
|
})] }) });
|
|
52784
52775
|
}, JU = (e) => {
|
|
52785
|
-
let { selectedElement: t, currentAttrs: n, currentStyles: r, openAccordions: i, toggleAccordion: a, onTransientAttrChange: o, onTransientStyleChange: s, AccordionSection: c, InlineTextInput: l, InlineSelect: u, InlineColorPicker: d, InlineAlignment: f, InlineCounter: p, Toggle: m, InlineTextArea: h, SpacingControls: g, BorderRadiusControls: _, handleUploadMock: v, ICONS: y, aiPromptText: b, setAiPromptText: x, currentFormFields: S, safeFormFieldIndex: C, activeFormField:
|
|
52776
|
+
let { selectedElement: t, currentAttrs: n, currentStyles: r, openAccordions: i, toggleAccordion: a, onTransientAttrChange: o, onTransientStyleChange: s, AccordionSection: c, InlineTextInput: l, InlineSelect: u, InlineColorPicker: d, InlineAlignment: f, InlineCounter: p, Toggle: m, InlineTextArea: h, SpacingControls: g, BorderRadiusControls: _, handleUploadMock: v, ICONS: y, aiPromptText: b, setAiPromptText: x, currentFormFields: S, safeFormFieldIndex: C, activeFormField: ee, setActiveFormFieldIndex: w, getFormFields: T, createFormField: E, fieldSupportsOptions: te, serializeFieldOptions: ne, parseFieldOptions: re, normalizeSocialProvider: ie, renderSocialIcon: ae, activeCarouselSlideIdx: oe, setActiveCarouselSlideIdx: se, createSeededImageUrl: ce, deviceView: D } = e;
|
|
52786
52777
|
return /* @__PURE__ */ P(N, { children: t && t.type !== "carousel" && t.type !== "form_container" && t.type !== "button" && t.type !== "accordion" && /* @__PURE__ */ P(c, {
|
|
52787
52778
|
title: "Layout & spacing",
|
|
52788
52779
|
isOpen: i.spacing,
|
|
@@ -52803,7 +52794,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
52803
52794
|
})
|
|
52804
52795
|
}) });
|
|
52805
52796
|
}, YU = (e) => {
|
|
52806
|
-
let { selectedElement: t, currentAttrs: n, currentStyles: r, openAccordions: i, toggleAccordion: a, onTransientAttrChange: o, onTransientStyleChange: s, AccordionSection: c, InlineTextInput: l, InlineSelect: u, InlineColorPicker: d, InlineAlignment: f, InlineCounter: p, Toggle: m, InlineTextArea: h, SpacingControls: g, BorderRadiusControls: _, handleUploadMock: v, ICONS: y, aiPromptText: b, setAiPromptText: x, currentFormFields: S, safeFormFieldIndex: C, activeFormField:
|
|
52797
|
+
let { selectedElement: t, currentAttrs: n, currentStyles: r, openAccordions: i, toggleAccordion: a, onTransientAttrChange: o, onTransientStyleChange: s, AccordionSection: c, InlineTextInput: l, InlineSelect: u, InlineColorPicker: d, InlineAlignment: f, InlineCounter: p, Toggle: m, InlineTextArea: h, SpacingControls: g, BorderRadiusControls: _, handleUploadMock: v, ICONS: y, aiPromptText: b, setAiPromptText: x, currentFormFields: S, safeFormFieldIndex: C, activeFormField: ee, setActiveFormFieldIndex: w, getFormFields: T, createFormField: E, fieldSupportsOptions: te, serializeFieldOptions: ne, parseFieldOptions: re, normalizeSocialProvider: ie, renderSocialIcon: ae, activeCarouselSlideIdx: oe, setActiveCarouselSlideIdx: se, createSeededImageUrl: ce, deviceView: D } = e;
|
|
52807
52798
|
return /* @__PURE__ */ P(N, { children: t && /* @__PURE__ */ P(c, {
|
|
52808
52799
|
title: "Additional settings",
|
|
52809
52800
|
isOpen: i.actions,
|
|
@@ -52855,7 +52846,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
52855
52846
|
})
|
|
52856
52847
|
}) });
|
|
52857
52848
|
}, XU = (e) => {
|
|
52858
|
-
let { selectedElement: t, currentAttrs: n, currentStyles: r, openAccordions: i, toggleAccordion: a, onTransientAttrChange: o, onTransientStyleChange: s, AccordionSection: c, InlineTextInput: l, InlineSelect: u, InlineColorPicker: d, InlineAlignment: f, InlineCounter: p, Toggle: m, InlineTextArea: h, SpacingControls: g, BorderRadiusControls: _, handleUploadMock: v, ICONS: y, aiPromptText: b, setAiPromptText: x, currentFormFields: S, safeFormFieldIndex: C, activeFormField:
|
|
52849
|
+
let { selectedElement: t, currentAttrs: n, currentStyles: r, openAccordions: i, toggleAccordion: a, onTransientAttrChange: o, onTransientStyleChange: s, AccordionSection: c, InlineTextInput: l, InlineSelect: u, InlineColorPicker: d, InlineAlignment: f, InlineCounter: p, Toggle: m, InlineTextArea: h, SpacingControls: g, BorderRadiusControls: _, handleUploadMock: v, ICONS: y, aiPromptText: b, setAiPromptText: x, currentFormFields: S, safeFormFieldIndex: C, activeFormField: ee, setActiveFormFieldIndex: w, getFormFields: T, createFormField: E, fieldSupportsOptions: te, serializeFieldOptions: ne, parseFieldOptions: re, normalizeSocialProvider: ie, renderSocialIcon: ae, activeCarouselSlideIdx: oe, setActiveCarouselSlideIdx: se, createSeededImageUrl: ce, deviceView: D } = e;
|
|
52859
52850
|
return /* @__PURE__ */ P(N, { children: t && (D === "desktop" || D === "mobile") && /* @__PURE__ */ P(c, {
|
|
52860
52851
|
title: "Responsive design",
|
|
52861
52852
|
isOpen: i.responsive,
|
|
@@ -52880,26 +52871,26 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
52880
52871
|
defaultOpen: !1,
|
|
52881
52872
|
children: []
|
|
52882
52873
|
}), $U = (e) => {
|
|
52883
|
-
let { selectedElement: t, currentAttrs: n, currentStyles: r, openAccordions: i, toggleAccordion: o, onTransientAttrChange: s, onTransientStyleChange: c, AccordionSection: l, InlineTextInput: u, InlineSelect: d, InlineColorPicker: f, InlineCounter: p, Toggle: m, InlineTextArea: h, SpacingControls: g, BorderRadiusControls: _ } = e, [
|
|
52874
|
+
let { selectedElement: t, currentAttrs: n, currentStyles: r, openAccordions: i, toggleAccordion: o, onTransientAttrChange: s, onTransientStyleChange: c, AccordionSection: l, InlineTextInput: u, InlineSelect: d, InlineColorPicker: f, InlineCounter: p, Toggle: m, InlineTextArea: h, SpacingControls: g, BorderRadiusControls: _, BorderSideControls: v } = e, [y, b] = A(0), [x, S] = A(null);
|
|
52884
52875
|
if (!t || t.type !== "accordion") return null;
|
|
52885
|
-
let
|
|
52886
|
-
let e = [...
|
|
52887
|
-
w(e),
|
|
52888
|
-
},
|
|
52889
|
-
let t =
|
|
52890
|
-
w(t),
|
|
52891
|
-
}, ae = (e, t) => {
|
|
52892
|
-
let n = e + t;
|
|
52893
|
-
if (n < 0 || n >= S.length) return;
|
|
52894
|
-
let r = [...S];
|
|
52895
|
-
[r[e], r[n]] = [r[n], r[e]], w(r), y(n);
|
|
52876
|
+
let C = Array.isArray(n.items) ? n.items : [], ee = n.mode === "multi" ? "multi" : "single", w = (e) => s("items", e), T = C.length ? Math.min(y, C.length - 1) : 0, E = C[T], te = Array.isArray(E?.children) ? E.children : [], ne = x !== null && te.length ? Math.min(x, te.length - 1) : null, re = ne === null ? null : te[ne], ie = () => {
|
|
52877
|
+
let e = [...C, QU(`Item ${C.length + 1}`, "Panel content goes here.")];
|
|
52878
|
+
w(e), b(e.length - 1), S(null);
|
|
52879
|
+
}, ae = (e) => {
|
|
52880
|
+
let t = C.filter((t, n) => n !== e);
|
|
52881
|
+
w(t), b((e) => Math.max(0, Math.min(e, t.length - 1))), S(null);
|
|
52896
52882
|
}, oe = (e, t) => {
|
|
52897
|
-
|
|
52883
|
+
let n = e + t;
|
|
52884
|
+
if (n < 0 || n >= C.length) return;
|
|
52885
|
+
let r = [...C];
|
|
52886
|
+
[r[e], r[n]] = [r[n], r[e]], w(r), b(n);
|
|
52887
|
+
}, se = (e, t) => {
|
|
52888
|
+
w(C.map((n, r) => r === e ? {
|
|
52898
52889
|
...n,
|
|
52899
52890
|
...t
|
|
52900
52891
|
} : n));
|
|
52901
|
-
},
|
|
52902
|
-
let t =
|
|
52892
|
+
}, ce = (e) => w(a(C, [e], ee)), D = (e, t) => w(a(C, [e, t], ee)), le = (e) => {
|
|
52893
|
+
let t = C.map((t, n) => {
|
|
52903
52894
|
if (n !== e) return t;
|
|
52904
52895
|
let r = Array.isArray(t.children) ? t.children : [];
|
|
52905
52896
|
return {
|
|
@@ -52909,21 +52900,21 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
52909
52900
|
});
|
|
52910
52901
|
w(t);
|
|
52911
52902
|
let n = t[e].children;
|
|
52912
|
-
|
|
52913
|
-
},
|
|
52914
|
-
let n =
|
|
52903
|
+
S(n.length - 1);
|
|
52904
|
+
}, ue = (e, t) => {
|
|
52905
|
+
let n = C.map((n, r) => r === e ? {
|
|
52915
52906
|
...n,
|
|
52916
52907
|
children: (n.children || []).filter((e, n) => n !== t)
|
|
52917
52908
|
} : n);
|
|
52918
|
-
w(n),
|
|
52919
|
-
},
|
|
52920
|
-
let r =
|
|
52921
|
-
a < 0 || a >= i.length || ([i[t], i[a]] = [i[a], i[t]], w(
|
|
52909
|
+
w(n), S(null);
|
|
52910
|
+
}, de = (e, t, n) => {
|
|
52911
|
+
let r = C[e], i = Array.isArray(r?.children) ? [...r.children] : [], a = t + n;
|
|
52912
|
+
a < 0 || a >= i.length || ([i[t], i[a]] = [i[a], i[t]], w(C.map((t, n) => n === e ? {
|
|
52922
52913
|
...t,
|
|
52923
52914
|
children: i
|
|
52924
|
-
} : t)),
|
|
52925
|
-
},
|
|
52926
|
-
w(
|
|
52915
|
+
} : t)), S(a));
|
|
52916
|
+
}, fe = (e, t, n) => {
|
|
52917
|
+
w(C.map((r, i) => i === e ? {
|
|
52927
52918
|
...r,
|
|
52928
52919
|
children: (r.children || []).map((e, r) => r === t ? {
|
|
52929
52920
|
...e,
|
|
@@ -52943,40 +52934,40 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
52943
52934
|
className: "flex items-center justify-between border-b border-slate-855 pb-1",
|
|
52944
52935
|
children: [/* @__PURE__ */ P("div", {
|
|
52945
52936
|
className: "flex gap-1 overflow-x-auto max-w-[210px] select-none pr-1",
|
|
52946
|
-
children:
|
|
52937
|
+
children: C.map((e, t) => /* @__PURE__ */ P("button", {
|
|
52947
52938
|
onClick: () => {
|
|
52948
|
-
|
|
52939
|
+
b(t), S(null);
|
|
52949
52940
|
},
|
|
52950
|
-
className: `px-2 py-1 text-[9px] font-bold rounded transition shrink-0 whitespace-nowrap ${T === t &&
|
|
52941
|
+
className: `px-2 py-1 text-[9px] font-bold rounded transition shrink-0 whitespace-nowrap ${T === t && ne === null ? "bg-indigo-650 text-white" : "bg-slate-900 text-slate-400 hover:text-slate-200"}`,
|
|
52951
52942
|
children: e.title || `Item ${t + 1}`
|
|
52952
52943
|
}, e.id))
|
|
52953
52944
|
}), /* @__PURE__ */ P("button", {
|
|
52954
|
-
onClick:
|
|
52945
|
+
onClick: ie,
|
|
52955
52946
|
className: "p-1 hover:bg-slate-800 rounded text-[10px] text-indigo-400 hover:text-white font-bold",
|
|
52956
52947
|
title: "Add Item",
|
|
52957
52948
|
children: "+"
|
|
52958
52949
|
})]
|
|
52959
52950
|
}),
|
|
52960
|
-
E &&
|
|
52951
|
+
E && ne === null && /* @__PURE__ */ F("div", {
|
|
52961
52952
|
className: "flex flex-col gap-2",
|
|
52962
52953
|
children: [
|
|
52963
52954
|
/* @__PURE__ */ F("div", {
|
|
52964
52955
|
className: "flex items-center justify-end gap-1",
|
|
52965
52956
|
children: [
|
|
52966
52957
|
/* @__PURE__ */ P("button", {
|
|
52967
|
-
onClick: () =>
|
|
52958
|
+
onClick: () => oe(T, -1),
|
|
52968
52959
|
disabled: T === 0,
|
|
52969
52960
|
className: "text-[10px] px-1.5 py-0.5 rounded bg-slate-900 text-slate-400 hover:text-white disabled:opacity-30",
|
|
52970
52961
|
children: "▲"
|
|
52971
52962
|
}),
|
|
52972
52963
|
/* @__PURE__ */ P("button", {
|
|
52973
|
-
onClick: () =>
|
|
52974
|
-
disabled: T ===
|
|
52964
|
+
onClick: () => oe(T, 1),
|
|
52965
|
+
disabled: T === C.length - 1,
|
|
52975
52966
|
className: "text-[10px] px-1.5 py-0.5 rounded bg-slate-900 text-slate-400 hover:text-white disabled:opacity-30",
|
|
52976
52967
|
children: "▼"
|
|
52977
52968
|
}),
|
|
52978
52969
|
/* @__PURE__ */ P("button", {
|
|
52979
|
-
onClick: () =>
|
|
52970
|
+
onClick: () => ae(T),
|
|
52980
52971
|
className: "text-[10px] px-1.5 py-0.5 rounded bg-slate-900 text-rose-500 hover:text-rose-400",
|
|
52981
52972
|
children: "✕ Remove"
|
|
52982
52973
|
})
|
|
@@ -52985,18 +52976,18 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
52985
52976
|
/* @__PURE__ */ P(u, {
|
|
52986
52977
|
label: "Title",
|
|
52987
52978
|
value: E.title || "",
|
|
52988
|
-
onChange: (e) =>
|
|
52979
|
+
onChange: (e) => se(T, { title: e })
|
|
52989
52980
|
}),
|
|
52990
52981
|
/* @__PURE__ */ P(h, {
|
|
52991
52982
|
label: "Content",
|
|
52992
52983
|
rows: 4,
|
|
52993
52984
|
value: E.content || "",
|
|
52994
|
-
onChange: (e) =>
|
|
52985
|
+
onChange: (e) => se(T, { content: e })
|
|
52995
52986
|
}),
|
|
52996
52987
|
/* @__PURE__ */ P(m, {
|
|
52997
52988
|
label: "Start Open",
|
|
52998
52989
|
checked: !!E.defaultOpen,
|
|
52999
|
-
onChange: () =>
|
|
52990
|
+
onChange: () => ce(T)
|
|
53000
52991
|
}),
|
|
53001
52992
|
/* @__PURE__ */ F("div", {
|
|
53002
52993
|
className: "flex items-center justify-between pt-2 mt-1 border-t border-slate-800/40",
|
|
@@ -53004,47 +52995,47 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
53004
52995
|
className: "text-[10px] text-slate-500 font-semibold uppercase tracking-wide",
|
|
53005
52996
|
children: "Nested Accordion"
|
|
53006
52997
|
}), /* @__PURE__ */ P("button", {
|
|
53007
|
-
onClick: () =>
|
|
52998
|
+
onClick: () => le(T),
|
|
53008
52999
|
className: "text-[10px] px-1.5 py-0.5 rounded bg-indigo-650/15 hover:bg-indigo-650/30 border border-indigo-500/25 text-indigo-400 font-bold",
|
|
53009
53000
|
children: "+ Add Nested Item"
|
|
53010
53001
|
})]
|
|
53011
53002
|
}),
|
|
53012
|
-
|
|
53003
|
+
te.length > 0 && /* @__PURE__ */ P("div", {
|
|
53013
53004
|
className: "flex gap-1 overflow-x-auto select-none pb-1",
|
|
53014
|
-
children:
|
|
53015
|
-
onClick: () =>
|
|
53005
|
+
children: te.map((e, t) => /* @__PURE__ */ P("button", {
|
|
53006
|
+
onClick: () => S(t),
|
|
53016
53007
|
className: "px-2 py-1 text-[9px] font-bold rounded transition shrink-0 whitespace-nowrap bg-slate-900 text-slate-400 hover:text-slate-200",
|
|
53017
53008
|
children: e.title || `Nested ${t + 1}`
|
|
53018
53009
|
}, e.id))
|
|
53019
53010
|
})
|
|
53020
53011
|
]
|
|
53021
53012
|
}),
|
|
53022
|
-
E &&
|
|
53013
|
+
E && re && ne !== null && /* @__PURE__ */ F("div", {
|
|
53023
53014
|
className: "flex flex-col gap-2 pl-2 border-l-2 border-indigo-500/30",
|
|
53024
53015
|
children: [
|
|
53025
53016
|
/* @__PURE__ */ F("div", {
|
|
53026
53017
|
className: "flex items-center justify-between",
|
|
53027
53018
|
children: [/* @__PURE__ */ F("button", {
|
|
53028
|
-
onClick: () =>
|
|
53019
|
+
onClick: () => S(null),
|
|
53029
53020
|
className: "text-[10px] text-slate-400 hover:text-white",
|
|
53030
53021
|
children: ["← Back to ", E.title || "item"]
|
|
53031
53022
|
}), /* @__PURE__ */ F("div", {
|
|
53032
53023
|
className: "flex items-center gap-1",
|
|
53033
53024
|
children: [
|
|
53034
53025
|
/* @__PURE__ */ P("button", {
|
|
53035
|
-
onClick: () =>
|
|
53036
|
-
disabled:
|
|
53026
|
+
onClick: () => de(T, ne, -1),
|
|
53027
|
+
disabled: ne === 0,
|
|
53037
53028
|
className: "text-[10px] px-1.5 py-0.5 rounded bg-slate-900 text-slate-400 hover:text-white disabled:opacity-30",
|
|
53038
53029
|
children: "▲"
|
|
53039
53030
|
}),
|
|
53040
53031
|
/* @__PURE__ */ P("button", {
|
|
53041
|
-
onClick: () =>
|
|
53042
|
-
disabled:
|
|
53032
|
+
onClick: () => de(T, ne, 1),
|
|
53033
|
+
disabled: ne === te.length - 1,
|
|
53043
53034
|
className: "text-[10px] px-1.5 py-0.5 rounded bg-slate-900 text-slate-400 hover:text-white disabled:opacity-30",
|
|
53044
53035
|
children: "▼"
|
|
53045
53036
|
}),
|
|
53046
53037
|
/* @__PURE__ */ P("button", {
|
|
53047
|
-
onClick: () =>
|
|
53038
|
+
onClick: () => ue(T, ne),
|
|
53048
53039
|
className: "text-[10px] px-1.5 py-0.5 rounded bg-slate-900 text-rose-500 hover:text-rose-400",
|
|
53049
53040
|
children: "✕ Remove"
|
|
53050
53041
|
})
|
|
@@ -53053,23 +53044,23 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
53053
53044
|
}),
|
|
53054
53045
|
/* @__PURE__ */ P(u, {
|
|
53055
53046
|
label: "Nested Title",
|
|
53056
|
-
value:
|
|
53057
|
-
onChange: (e) =>
|
|
53047
|
+
value: re.title || "",
|
|
53048
|
+
onChange: (e) => fe(T, ne, { title: e })
|
|
53058
53049
|
}),
|
|
53059
53050
|
/* @__PURE__ */ P(h, {
|
|
53060
53051
|
label: "Nested Content",
|
|
53061
53052
|
rows: 3,
|
|
53062
|
-
value:
|
|
53063
|
-
onChange: (e) =>
|
|
53053
|
+
value: re.content || "",
|
|
53054
|
+
onChange: (e) => fe(T, ne, { content: e })
|
|
53064
53055
|
}),
|
|
53065
53056
|
/* @__PURE__ */ P(m, {
|
|
53066
53057
|
label: "Start Open",
|
|
53067
|
-
checked: !!
|
|
53068
|
-
onChange: () =>
|
|
53058
|
+
checked: !!re.defaultOpen,
|
|
53059
|
+
onChange: () => D(T, ne)
|
|
53069
53060
|
})
|
|
53070
53061
|
]
|
|
53071
53062
|
}),
|
|
53072
|
-
|
|
53063
|
+
C.length === 0 && /* @__PURE__ */ P("div", {
|
|
53073
53064
|
className: "text-slate-400 italic text-[10px] p-3 text-center border border-dashed border-slate-700/60 rounded",
|
|
53074
53065
|
children: "No items yet — click + to add the first panel."
|
|
53075
53066
|
})
|
|
@@ -53085,7 +53076,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
53085
53076
|
children: [
|
|
53086
53077
|
/* @__PURE__ */ P(d, {
|
|
53087
53078
|
label: "Open Mode",
|
|
53088
|
-
value:
|
|
53079
|
+
value: ee,
|
|
53089
53080
|
options: [{
|
|
53090
53081
|
label: "One panel at a time",
|
|
53091
53082
|
value: "single"
|
|
@@ -53257,12 +53248,9 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
53257
53248
|
value: r.borderColor || "#e2e8f0",
|
|
53258
53249
|
onChange: (e) => c("borderColor", e)
|
|
53259
53250
|
}),
|
|
53260
|
-
/* @__PURE__ */ P(
|
|
53261
|
-
|
|
53262
|
-
|
|
53263
|
-
min: 0,
|
|
53264
|
-
max: 12,
|
|
53265
|
-
onChange: (e) => c("borderWidth", e)
|
|
53251
|
+
/* @__PURE__ */ P(v, {
|
|
53252
|
+
styles: r,
|
|
53253
|
+
onChange: c
|
|
53266
53254
|
}),
|
|
53267
53255
|
/* @__PURE__ */ P(d, {
|
|
53268
53256
|
label: "Border Style",
|
|
@@ -53321,6 +53309,10 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
53321
53309
|
"blog_author",
|
|
53322
53310
|
"blog_categories"
|
|
53323
53311
|
], tW = {
|
|
53312
|
+
blog_date: "e.g. \"Published on \"",
|
|
53313
|
+
blog_author: "e.g. \"By \"",
|
|
53314
|
+
blog_categories: "e.g. \"Filed under: \""
|
|
53315
|
+
}, nW = {
|
|
53324
53316
|
blog_title: {
|
|
53325
53317
|
fontSize: "32px",
|
|
53326
53318
|
fontWeight: "800",
|
|
@@ -53346,10 +53338,14 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
53346
53338
|
fontWeight: "600",
|
|
53347
53339
|
color: "#4f46e5"
|
|
53348
53340
|
}
|
|
53349
|
-
},
|
|
53350
|
-
|
|
53341
|
+
}, rW = { blog_categories: {
|
|
53342
|
+
color: "--plexo-categories-color",
|
|
53343
|
+
fontSize: "--plexo-categories-font-size",
|
|
53344
|
+
fontWeight: "--plexo-categories-font-weight"
|
|
53345
|
+
} }, iW = (e) => {
|
|
53346
|
+
let { selectedElement: t, currentAttrs: n, currentStyles: r, openAccordions: i, toggleAccordion: a, onTransientAttrChange: o, onTransientStyleChange: s, AccordionSection: c, InlineTextInput: l, InlineSelect: u, InlineColorPicker: d, InlineAlignment: f, InlineCounter: p } = e;
|
|
53351
53347
|
if (!t || !eW.includes(t.type)) return null;
|
|
53352
|
-
let
|
|
53348
|
+
let m = nW[t.type], h = tW[t.type], g = rW[t.type] || {}, _ = (e) => g[e] || e, y = v.reduce((e, t) => (e[t.style] || (e[t.style] = []), e[t.style].push(t), e), {}), b = [
|
|
53353
53349
|
{
|
|
53354
53350
|
label: "── System ──",
|
|
53355
53351
|
value: "__sep__",
|
|
@@ -53372,7 +53368,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
53372
53368
|
value: "__sep_sans__",
|
|
53373
53369
|
disabled: !0
|
|
53374
53370
|
},
|
|
53375
|
-
...(
|
|
53371
|
+
...(y.sans || []).map((e) => ({
|
|
53376
53372
|
label: e.label,
|
|
53377
53373
|
value: e.value
|
|
53378
53374
|
})),
|
|
@@ -53381,7 +53377,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
53381
53377
|
value: "__sep_serif__",
|
|
53382
53378
|
disabled: !0
|
|
53383
53379
|
},
|
|
53384
|
-
...(
|
|
53380
|
+
...(y.serif || []).map((e) => ({
|
|
53385
53381
|
label: e.label,
|
|
53386
53382
|
value: e.value
|
|
53387
53383
|
})),
|
|
@@ -53390,7 +53386,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
53390
53386
|
value: "__sep_display__",
|
|
53391
53387
|
disabled: !0
|
|
53392
53388
|
},
|
|
53393
|
-
...(
|
|
53389
|
+
...(y.display || []).map((e) => ({
|
|
53394
53390
|
label: e.label,
|
|
53395
53391
|
value: e.value
|
|
53396
53392
|
})),
|
|
@@ -53399,7 +53395,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
53399
53395
|
value: "__sep_hw__",
|
|
53400
53396
|
disabled: !0
|
|
53401
53397
|
},
|
|
53402
|
-
...(
|
|
53398
|
+
...(y.handwriting || []).map((e) => ({
|
|
53403
53399
|
label: e.label,
|
|
53404
53400
|
value: e.value
|
|
53405
53401
|
})),
|
|
@@ -53408,29 +53404,39 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
53408
53404
|
value: "__sep_mono__",
|
|
53409
53405
|
disabled: !0
|
|
53410
53406
|
},
|
|
53411
|
-
...(
|
|
53407
|
+
...(y.mono || []).map((e) => ({
|
|
53412
53408
|
label: e.label,
|
|
53413
53409
|
value: e.value
|
|
53414
53410
|
}))
|
|
53415
53411
|
];
|
|
53416
|
-
return /* @__PURE__ */ P(
|
|
53412
|
+
return /* @__PURE__ */ F(N, { children: [h && /* @__PURE__ */ P(c, {
|
|
53413
|
+
title: "Text",
|
|
53414
|
+
isOpen: i.text,
|
|
53415
|
+
onToggle: () => a("text"),
|
|
53416
|
+
children: /* @__PURE__ */ P(l, {
|
|
53417
|
+
label: "Prefix",
|
|
53418
|
+
placeholder: h,
|
|
53419
|
+
value: n.prefix || "",
|
|
53420
|
+
onChange: (e) => o("prefix", e)
|
|
53421
|
+
})
|
|
53422
|
+
}), /* @__PURE__ */ P(c, {
|
|
53417
53423
|
title: "Typography",
|
|
53418
|
-
isOpen:
|
|
53419
|
-
onToggle: () =>
|
|
53424
|
+
isOpen: i.typography,
|
|
53425
|
+
onToggle: () => a("typography"),
|
|
53420
53426
|
children: /* @__PURE__ */ F("div", {
|
|
53421
53427
|
className: "flex flex-col gap-1",
|
|
53422
53428
|
children: [
|
|
53423
|
-
/* @__PURE__ */ P(
|
|
53429
|
+
/* @__PURE__ */ P(u, {
|
|
53424
53430
|
label: "Font Family",
|
|
53425
|
-
value:
|
|
53426
|
-
options:
|
|
53431
|
+
value: r.fontFamily || "'Plus Jakarta Sans', sans-serif",
|
|
53432
|
+
options: b,
|
|
53427
53433
|
onChange: (e) => {
|
|
53428
|
-
e.startsWith("__sep") ||
|
|
53434
|
+
e.startsWith("__sep") || s("fontFamily", e);
|
|
53429
53435
|
}
|
|
53430
53436
|
}),
|
|
53431
|
-
/* @__PURE__ */ P(
|
|
53437
|
+
/* @__PURE__ */ P(u, {
|
|
53432
53438
|
label: "Font Weight",
|
|
53433
|
-
value:
|
|
53439
|
+
value: r[_("fontWeight")] || m.fontWeight,
|
|
53434
53440
|
options: [
|
|
53435
53441
|
{
|
|
53436
53442
|
label: "Thin",
|
|
@@ -53469,11 +53475,11 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
53469
53475
|
value: "900"
|
|
53470
53476
|
}
|
|
53471
53477
|
],
|
|
53472
|
-
onChange: (e) =>
|
|
53478
|
+
onChange: (e) => s(_("fontWeight"), e)
|
|
53473
53479
|
}),
|
|
53474
|
-
/* @__PURE__ */ P(
|
|
53480
|
+
/* @__PURE__ */ P(p, {
|
|
53475
53481
|
label: "Font Size",
|
|
53476
|
-
value:
|
|
53482
|
+
value: r[_("fontSize")] || m.fontSize,
|
|
53477
53483
|
units: [
|
|
53478
53484
|
"px",
|
|
53479
53485
|
"em",
|
|
@@ -53482,21 +53488,21 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
53482
53488
|
],
|
|
53483
53489
|
min: 8,
|
|
53484
53490
|
max: 120,
|
|
53485
|
-
onChange: (e) =>
|
|
53491
|
+
onChange: (e) => s(_("fontSize"), e)
|
|
53486
53492
|
}),
|
|
53487
|
-
/* @__PURE__ */ P(
|
|
53493
|
+
/* @__PURE__ */ P(d, {
|
|
53488
53494
|
label: "Color",
|
|
53489
|
-
value:
|
|
53490
|
-
onChange: (e) =>
|
|
53495
|
+
value: r[_("color")] || m.color,
|
|
53496
|
+
onChange: (e) => s(_("color"), e)
|
|
53491
53497
|
}),
|
|
53492
|
-
/* @__PURE__ */ P(
|
|
53498
|
+
/* @__PURE__ */ P(f, {
|
|
53493
53499
|
label: "Text Align",
|
|
53494
|
-
value:
|
|
53495
|
-
onChange: (e) =>
|
|
53500
|
+
value: r.textAlign || "left",
|
|
53501
|
+
onChange: (e) => s("textAlign", e)
|
|
53496
53502
|
}),
|
|
53497
|
-
/* @__PURE__ */ P(
|
|
53503
|
+
/* @__PURE__ */ P(p, {
|
|
53498
53504
|
label: "Line Height",
|
|
53499
|
-
value:
|
|
53505
|
+
value: r.lineHeight || "150%",
|
|
53500
53506
|
units: [
|
|
53501
53507
|
"%",
|
|
53502
53508
|
"em",
|
|
@@ -53505,11 +53511,11 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
53505
53511
|
min: 80,
|
|
53506
53512
|
max: 300,
|
|
53507
53513
|
step: 5,
|
|
53508
|
-
onChange: (e) =>
|
|
53514
|
+
onChange: (e) => s("lineHeight", e)
|
|
53509
53515
|
}),
|
|
53510
|
-
/* @__PURE__ */ P(
|
|
53516
|
+
/* @__PURE__ */ P(p, {
|
|
53511
53517
|
label: "Letter Spacing",
|
|
53512
|
-
value:
|
|
53518
|
+
value: r.letterSpacing || "0px",
|
|
53513
53519
|
units: [
|
|
53514
53520
|
"px",
|
|
53515
53521
|
"em",
|
|
@@ -53517,12 +53523,227 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
53517
53523
|
],
|
|
53518
53524
|
min: -5,
|
|
53519
53525
|
max: 20,
|
|
53520
|
-
onChange: (e) =>
|
|
53526
|
+
onChange: (e) => s("letterSpacing", e)
|
|
53527
|
+
})
|
|
53528
|
+
]
|
|
53529
|
+
})
|
|
53530
|
+
})] });
|
|
53531
|
+
}, aW = (e) => {
|
|
53532
|
+
let { selectedElement: t, currentStyles: n, openAccordions: r, toggleAccordion: i, onTransientStyleChange: a, AccordionSection: o, InlineColorPicker: s, InlineCounter: c, InlineSelect: l } = e;
|
|
53533
|
+
if (!t || t.type !== "blog_comments") return null;
|
|
53534
|
+
let u = v.reduce((e, t) => (e[t.style] || (e[t.style] = []), e[t.style].push(t), e), {}), d = [
|
|
53535
|
+
{
|
|
53536
|
+
label: "── System ──",
|
|
53537
|
+
value: "__sep__",
|
|
53538
|
+
disabled: !0
|
|
53539
|
+
},
|
|
53540
|
+
{
|
|
53541
|
+
label: "System Sans",
|
|
53542
|
+
value: "sans-serif"
|
|
53543
|
+
},
|
|
53544
|
+
{
|
|
53545
|
+
label: "System Serif",
|
|
53546
|
+
value: "serif"
|
|
53547
|
+
},
|
|
53548
|
+
{
|
|
53549
|
+
label: "System Mono",
|
|
53550
|
+
value: "monospace"
|
|
53551
|
+
},
|
|
53552
|
+
{
|
|
53553
|
+
label: "── Sans-serif ──",
|
|
53554
|
+
value: "__sep_sans__",
|
|
53555
|
+
disabled: !0
|
|
53556
|
+
},
|
|
53557
|
+
...(u.sans || []).map((e) => ({
|
|
53558
|
+
label: e.label,
|
|
53559
|
+
value: e.value
|
|
53560
|
+
})),
|
|
53561
|
+
{
|
|
53562
|
+
label: "── Serif ──",
|
|
53563
|
+
value: "__sep_serif__",
|
|
53564
|
+
disabled: !0
|
|
53565
|
+
},
|
|
53566
|
+
...(u.serif || []).map((e) => ({
|
|
53567
|
+
label: e.label,
|
|
53568
|
+
value: e.value
|
|
53569
|
+
})),
|
|
53570
|
+
{
|
|
53571
|
+
label: "── Display ──",
|
|
53572
|
+
value: "__sep_display__",
|
|
53573
|
+
disabled: !0
|
|
53574
|
+
},
|
|
53575
|
+
...(u.display || []).map((e) => ({
|
|
53576
|
+
label: e.label,
|
|
53577
|
+
value: e.value
|
|
53578
|
+
})),
|
|
53579
|
+
{
|
|
53580
|
+
label: "── Handwriting ──",
|
|
53581
|
+
value: "__sep_hw__",
|
|
53582
|
+
disabled: !0
|
|
53583
|
+
},
|
|
53584
|
+
...(u.handwriting || []).map((e) => ({
|
|
53585
|
+
label: e.label,
|
|
53586
|
+
value: e.value
|
|
53587
|
+
})),
|
|
53588
|
+
{
|
|
53589
|
+
label: "── Monospace ──",
|
|
53590
|
+
value: "__sep_mono__",
|
|
53591
|
+
disabled: !0
|
|
53592
|
+
},
|
|
53593
|
+
...(u.mono || []).map((e) => ({
|
|
53594
|
+
label: e.label,
|
|
53595
|
+
value: e.value
|
|
53596
|
+
}))
|
|
53597
|
+
];
|
|
53598
|
+
return /* @__PURE__ */ P(o, {
|
|
53599
|
+
title: "Comment Box Styles",
|
|
53600
|
+
isOpen: r.typography,
|
|
53601
|
+
onToggle: () => i("typography"),
|
|
53602
|
+
children: /* @__PURE__ */ F("div", {
|
|
53603
|
+
className: "flex flex-col gap-1",
|
|
53604
|
+
children: [
|
|
53605
|
+
/* @__PURE__ */ P(l, {
|
|
53606
|
+
label: "Font Family",
|
|
53607
|
+
value: n["--plexo-comment-font-family"] || "__sep__",
|
|
53608
|
+
options: d,
|
|
53609
|
+
onChange: (e) => {
|
|
53610
|
+
e.startsWith("__sep") || a("--plexo-comment-font-family", e);
|
|
53611
|
+
}
|
|
53612
|
+
}),
|
|
53613
|
+
/* @__PURE__ */ P(s, {
|
|
53614
|
+
label: "Comment Text",
|
|
53615
|
+
value: n["--plexo-comment-text"] || "#1f2430",
|
|
53616
|
+
onChange: (e) => a("--plexo-comment-text", e)
|
|
53617
|
+
}),
|
|
53618
|
+
/* @__PURE__ */ P(c, {
|
|
53619
|
+
label: "Comment Font Size",
|
|
53620
|
+
value: n["--plexo-comment-font-size"] || "0.92rem",
|
|
53621
|
+
units: [
|
|
53622
|
+
"px",
|
|
53623
|
+
"em",
|
|
53624
|
+
"rem"
|
|
53625
|
+
],
|
|
53626
|
+
min: 8,
|
|
53627
|
+
max: 32,
|
|
53628
|
+
onChange: (e) => a("--plexo-comment-font-size", e)
|
|
53629
|
+
}),
|
|
53630
|
+
/* @__PURE__ */ P(s, {
|
|
53631
|
+
label: "Meta Text (date, author)",
|
|
53632
|
+
value: n["--plexo-comment-meta"] || "#6b7280",
|
|
53633
|
+
onChange: (e) => a("--plexo-comment-meta", e)
|
|
53634
|
+
}),
|
|
53635
|
+
/* @__PURE__ */ P(s, {
|
|
53636
|
+
label: "Input Background",
|
|
53637
|
+
value: n["--plexo-comment-input-bg"] || "#ffffff",
|
|
53638
|
+
onChange: (e) => a("--plexo-comment-input-bg", e)
|
|
53639
|
+
}),
|
|
53640
|
+
/* @__PURE__ */ P(s, {
|
|
53641
|
+
label: "Input Border",
|
|
53642
|
+
value: n["--plexo-comment-input-border"] || "#e5e7eb",
|
|
53643
|
+
onChange: (e) => a("--plexo-comment-input-border", e)
|
|
53644
|
+
}),
|
|
53645
|
+
/* @__PURE__ */ P(s, {
|
|
53646
|
+
label: "Input Text",
|
|
53647
|
+
value: n["--plexo-comment-input-text"] || "#1f2430",
|
|
53648
|
+
onChange: (e) => a("--plexo-comment-input-text", e)
|
|
53649
|
+
}),
|
|
53650
|
+
/* @__PURE__ */ P(s, {
|
|
53651
|
+
label: "Button Background",
|
|
53652
|
+
value: n["--plexo-comment-button-bg"] || "#6d28d9",
|
|
53653
|
+
onChange: (e) => a("--plexo-comment-button-bg", e)
|
|
53654
|
+
}),
|
|
53655
|
+
/* @__PURE__ */ P(s, {
|
|
53656
|
+
label: "Button Text",
|
|
53657
|
+
value: n["--plexo-comment-button-text"] || "#ffffff",
|
|
53658
|
+
onChange: (e) => a("--plexo-comment-button-text", e)
|
|
53659
|
+
})
|
|
53660
|
+
]
|
|
53661
|
+
})
|
|
53662
|
+
});
|
|
53663
|
+
}, oW = (e) => {
|
|
53664
|
+
let { selectedElement: t, currentStyles: n, openAccordions: r, toggleAccordion: i, onTransientStyleChange: a, AccordionSection: o, InlineColorPicker: s, InlineCounter: c, InlineSelect: l } = e;
|
|
53665
|
+
return !t || t.type !== "blog_post_list" ? null : /* @__PURE__ */ P(o, {
|
|
53666
|
+
title: "Post Card Styles",
|
|
53667
|
+
isOpen: r.typography,
|
|
53668
|
+
onToggle: () => i("typography"),
|
|
53669
|
+
children: /* @__PURE__ */ F("div", {
|
|
53670
|
+
className: "flex flex-col gap-1",
|
|
53671
|
+
children: [
|
|
53672
|
+
/* @__PURE__ */ P(s, {
|
|
53673
|
+
label: "Title Color",
|
|
53674
|
+
value: n["--plexo-postlist-title-color"] || "#17181c",
|
|
53675
|
+
onChange: (e) => a("--plexo-postlist-title-color", e)
|
|
53676
|
+
}),
|
|
53677
|
+
/* @__PURE__ */ P(c, {
|
|
53678
|
+
label: "Title Font Size",
|
|
53679
|
+
value: n["--plexo-postlist-title-font-size"] || "1.5rem",
|
|
53680
|
+
units: [
|
|
53681
|
+
"px",
|
|
53682
|
+
"em",
|
|
53683
|
+
"rem"
|
|
53684
|
+
],
|
|
53685
|
+
min: 10,
|
|
53686
|
+
max: 64,
|
|
53687
|
+
onChange: (e) => a("--plexo-postlist-title-font-size", e)
|
|
53688
|
+
}),
|
|
53689
|
+
/* @__PURE__ */ P(l, {
|
|
53690
|
+
label: "Title Font Weight",
|
|
53691
|
+
value: n["--plexo-postlist-title-font-weight"] || "700",
|
|
53692
|
+
options: [
|
|
53693
|
+
{
|
|
53694
|
+
label: "Regular",
|
|
53695
|
+
value: "400"
|
|
53696
|
+
},
|
|
53697
|
+
{
|
|
53698
|
+
label: "Medium",
|
|
53699
|
+
value: "500"
|
|
53700
|
+
},
|
|
53701
|
+
{
|
|
53702
|
+
label: "Semi-Bold",
|
|
53703
|
+
value: "600"
|
|
53704
|
+
},
|
|
53705
|
+
{
|
|
53706
|
+
label: "Bold",
|
|
53707
|
+
value: "700"
|
|
53708
|
+
},
|
|
53709
|
+
{
|
|
53710
|
+
label: "Extra-Bold",
|
|
53711
|
+
value: "800"
|
|
53712
|
+
}
|
|
53713
|
+
],
|
|
53714
|
+
onChange: (e) => a("--plexo-postlist-title-font-weight", e)
|
|
53715
|
+
}),
|
|
53716
|
+
/* @__PURE__ */ P(s, {
|
|
53717
|
+
label: "Excerpt Color",
|
|
53718
|
+
value: n["--plexo-postlist-excerpt-color"] || "#4b5563",
|
|
53719
|
+
onChange: (e) => a("--plexo-postlist-excerpt-color", e)
|
|
53720
|
+
}),
|
|
53721
|
+
/* @__PURE__ */ P(c, {
|
|
53722
|
+
label: "Excerpt Font Size",
|
|
53723
|
+
value: n["--plexo-postlist-excerpt-font-size"] || "1rem",
|
|
53724
|
+
units: [
|
|
53725
|
+
"px",
|
|
53726
|
+
"em",
|
|
53727
|
+
"rem"
|
|
53728
|
+
],
|
|
53729
|
+
min: 8,
|
|
53730
|
+
max: 32,
|
|
53731
|
+
onChange: (e) => a("--plexo-postlist-excerpt-font-size", e)
|
|
53732
|
+
}),
|
|
53733
|
+
/* @__PURE__ */ P(s, {
|
|
53734
|
+
label: "Meta Text Color (date, author)",
|
|
53735
|
+
value: n["--plexo-postlist-meta-color"] || "#6b7280",
|
|
53736
|
+
onChange: (e) => a("--plexo-postlist-meta-color", e)
|
|
53737
|
+
}),
|
|
53738
|
+
/* @__PURE__ */ P(s, {
|
|
53739
|
+
label: "Card Background",
|
|
53740
|
+
value: n["--plexo-postlist-card-bg"] || "transparent",
|
|
53741
|
+
onChange: (e) => a("--plexo-postlist-card-bg", e)
|
|
53521
53742
|
})
|
|
53522
53743
|
]
|
|
53523
53744
|
})
|
|
53524
53745
|
});
|
|
53525
|
-
},
|
|
53746
|
+
}, sW = (e) => /* @__PURE__ */ F(N, { children: [
|
|
53526
53747
|
/* @__PURE__ */ P(kU, { ...e }),
|
|
53527
53748
|
/* @__PURE__ */ P(jU, { ...e }),
|
|
53528
53749
|
/* @__PURE__ */ P(NU, { ...e }),
|
|
@@ -53539,11 +53760,13 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
53539
53760
|
/* @__PURE__ */ P(KU, { ...e }),
|
|
53540
53761
|
/* @__PURE__ */ P(qU, { ...e }),
|
|
53541
53762
|
/* @__PURE__ */ P($U, { ...e }),
|
|
53542
|
-
/* @__PURE__ */ P(
|
|
53763
|
+
/* @__PURE__ */ P(iW, { ...e }),
|
|
53764
|
+
/* @__PURE__ */ P(aW, { ...e }),
|
|
53765
|
+
/* @__PURE__ */ P(oW, { ...e }),
|
|
53543
53766
|
/* @__PURE__ */ P(JU, { ...e }),
|
|
53544
53767
|
/* @__PURE__ */ P(YU, { ...e }),
|
|
53545
53768
|
/* @__PURE__ */ P(XU, { ...e })
|
|
53546
|
-
] }),
|
|
53769
|
+
] }), cW = ({ message: e, onClose: t }) => /* @__PURE__ */ P("div", {
|
|
53547
53770
|
className: "plexo-alert-top fixed left-1/2 top-4 z-[1400] w-full max-w-[460px] -translate-x-1/2 px-4 pointer-events-none",
|
|
53548
53771
|
children: /* @__PURE__ */ P("div", {
|
|
53549
53772
|
className: "plexo-alert-top-card rounded-xl border shadow-2xl w-full px-4 py-3 pointer-events-auto",
|
|
@@ -53564,7 +53787,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
53564
53787
|
})]
|
|
53565
53788
|
})
|
|
53566
53789
|
})
|
|
53567
|
-
}),
|
|
53790
|
+
}), lW = ({ widths: e, percentages: t }) => /* @__PURE__ */ P("div", {
|
|
53568
53791
|
className: "w-full h-full flex items-stretch gap-1 overflow-hidden",
|
|
53569
53792
|
children: e.map((e, n) => /* @__PURE__ */ P("div", {
|
|
53570
53793
|
style: {
|
|
@@ -53580,7 +53803,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
53580
53803
|
children: t[n]
|
|
53581
53804
|
})
|
|
53582
53805
|
}, `${e}-${n}`))
|
|
53583
|
-
}),
|
|
53806
|
+
}), uW = ({ children: e, rowIds: t, disabled: n }) => {
|
|
53584
53807
|
let { setNodeRef: r, isOver: i } = xe({
|
|
53585
53808
|
id: "canvas-root",
|
|
53586
53809
|
data: { type: "canvas" },
|
|
@@ -53598,10 +53821,10 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
53598
53821
|
})
|
|
53599
53822
|
})
|
|
53600
53823
|
});
|
|
53601
|
-
},
|
|
53824
|
+
}, dW = (e, t) => {
|
|
53602
53825
|
let n = t === "tablet" ? "tablet" : t === "mobile" ? "mobile" : null, r = n === "tablet" ? e.styleTablet : n === "mobile" ? e.styleMobile : void 0;
|
|
53603
53826
|
return S(e.style, r, n);
|
|
53604
|
-
},
|
|
53827
|
+
}, fW = ({ row: e, selectedRowId: t, selectRow: n, previewMode: r, children: i, deviceView: a, selectedElementId: o }) => {
|
|
53605
53828
|
let { attributes: s, listeners: c, setNodeRef: l, transform: u, transition: d, isDragging: f, isOver: p } = L({
|
|
53606
53829
|
id: e.id,
|
|
53607
53830
|
data: {
|
|
@@ -53609,11 +53832,11 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
53609
53832
|
id: e.id
|
|
53610
53833
|
},
|
|
53611
53834
|
disabled: r
|
|
53612
|
-
}), m = pe(Me), h = p && m.overId === e.id && m.edge === "bottom", g = {
|
|
53835
|
+
}), m = pe(Me), h = p && m.overId === e.id && m.edge === "bottom", { alignItems: g, ..._ } = dW(e, a), v = {
|
|
53613
53836
|
transform: Ee.Transform.toString(u),
|
|
53614
53837
|
transition: d,
|
|
53615
|
-
...
|
|
53616
|
-
},
|
|
53838
|
+
..._
|
|
53839
|
+
}, y = t === e.id, b = o && e.columns.some((e) => e.elements.some((e) => e.id === o) || (e.nestedRows || []).some((e) => e.id === o || e.columns.some((e) => e.elements.some((e) => e.id === o))));
|
|
53617
53840
|
return /* @__PURE__ */ F("div", {
|
|
53618
53841
|
ref: l,
|
|
53619
53842
|
id: e.id,
|
|
@@ -53621,8 +53844,8 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
53621
53844
|
onClick: (t) => {
|
|
53622
53845
|
r || (t.stopPropagation(), n(e.id));
|
|
53623
53846
|
},
|
|
53624
|
-
className: `group relative transition duration-155 ${r ? "cursor-default" : "cursor-pointer"} ${!r && f ? "opacity-35 border-dashed border border-indigo-500 bg-indigo-500/5" : ""} ${!r && p ? h ? "border-b border-indigo-500" : "border-t border-indigo-500" : ""} ${!r &&
|
|
53625
|
-
style:
|
|
53847
|
+
className: `group relative transition duration-155 ${r ? "cursor-default" : "cursor-pointer"} ${!r && f ? "opacity-35 border-dashed border border-indigo-500 bg-indigo-500/5" : ""} ${!r && p ? h ? "border-b border-indigo-500" : "border-t border-indigo-500" : ""} ${!r && y ? "outline outline-1 outline-indigo-500 bg-indigo-500/[0.01]" : r ? "" : "hover:outline hover:outline-1 hover:outline-slate-200"} ${!r && (y || b) ? "z-[30] relative" : ""}`,
|
|
53848
|
+
style: v,
|
|
53626
53849
|
children: [
|
|
53627
53850
|
!r && /* @__PURE__ */ P("div", {
|
|
53628
53851
|
...c,
|
|
@@ -53630,17 +53853,18 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
53630
53853
|
className: "plexo-drag-handle absolute -left-3 top-1/2 -translate-y-1/2 opacity-0 group-hover:opacity-100 max-xl:opacity-70 bg-[#0c1221] hover:bg-slate-900 text-slate-250 p-1 max-xl:p-2 rounded-md cursor-grab border border-slate-700 z-20 transition shadow-sm",
|
|
53631
53854
|
children: "⠿"
|
|
53632
53855
|
}),
|
|
53633
|
-
!r &&
|
|
53856
|
+
!r && y && /* @__PURE__ */ P("span", {
|
|
53634
53857
|
className: "absolute -top-3 left-2 bg-[#0c1221] border border-slate-700 text-slate-200 font-mono text-[8px] px-2 py-0.5 rounded-md font-bold z-30 pointer-events-none shadow-sm",
|
|
53635
53858
|
children: "Row"
|
|
53636
53859
|
}),
|
|
53637
53860
|
/* @__PURE__ */ P("div", {
|
|
53638
53861
|
className: "plexo-editor-row-cols flex w-full gap-2 md:gap-0",
|
|
53862
|
+
style: { alignItems: g || "stretch" },
|
|
53639
53863
|
children: i
|
|
53640
53864
|
})
|
|
53641
53865
|
]
|
|
53642
53866
|
});
|
|
53643
|
-
},
|
|
53867
|
+
}, pW = ({ row: e, parentRowId: t, parentColId: n, selectedRowId: r, selectRow: i, previewMode: a, children: o, deviceView: s, selectedElementId: c }) => {
|
|
53644
53868
|
let { attributes: l, listeners: u, setNodeRef: d, transform: f, transition: p, isDragging: m, isOver: h } = L({
|
|
53645
53869
|
id: e.id,
|
|
53646
53870
|
data: {
|
|
@@ -53650,11 +53874,11 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
53650
53874
|
parentColId: n
|
|
53651
53875
|
},
|
|
53652
53876
|
disabled: a
|
|
53653
|
-
}), g = pe(Me), _ = h && g.overId === e.id && g.edge === "bottom", v = {
|
|
53877
|
+
}), g = pe(Me), _ = h && g.overId === e.id && g.edge === "bottom", { alignItems: v, ...y } = dW(e, s), b = {
|
|
53654
53878
|
transform: Ee.Transform.toString(f),
|
|
53655
53879
|
transition: p,
|
|
53656
|
-
...
|
|
53657
|
-
},
|
|
53880
|
+
...y
|
|
53881
|
+
}, x = r === e.id, S = c && e.columns.some((e) => e.elements.some((e) => e.id === c) || (e.nestedRows || []).some((e) => e.id === c || e.columns.some((e) => e.elements.some((e) => e.id === c))));
|
|
53658
53882
|
return /* @__PURE__ */ F("div", {
|
|
53659
53883
|
ref: d,
|
|
53660
53884
|
id: e.id,
|
|
@@ -53662,8 +53886,8 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
53662
53886
|
onClick: (t) => {
|
|
53663
53887
|
a || (t.stopPropagation(), i(e.id));
|
|
53664
53888
|
},
|
|
53665
|
-
className: `group relative transition duration-150 mt-2 ${a ? "cursor-default" : "cursor-pointer"} ${!a && m ? "opacity-35 border-dashed border border-indigo-500 bg-indigo-500/5" : ""} ${!a && h ? _ ? "border-b border-indigo-500" : "border-t border-indigo-500" : ""} ${!a &&
|
|
53666
|
-
style:
|
|
53889
|
+
className: `group relative transition duration-150 mt-2 ${a ? "cursor-default" : "cursor-pointer"} ${!a && m ? "opacity-35 border-dashed border border-indigo-500 bg-indigo-500/5" : ""} ${!a && h ? _ ? "border-b border-indigo-500" : "border-t border-indigo-500" : ""} ${!a && x ? "outline outline-1 outline-indigo-500 bg-indigo-500/[0.01]" : a ? "" : "hover:outline hover:outline-1 hover:outline-slate-200"} ${!a && (x || S) ? "z-[30] relative" : ""}`,
|
|
53890
|
+
style: b,
|
|
53667
53891
|
children: [
|
|
53668
53892
|
!a && /* @__PURE__ */ P("div", {
|
|
53669
53893
|
...u,
|
|
@@ -53671,21 +53895,22 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
53671
53895
|
className: "plexo-drag-handle absolute -left-3 top-1/2 -translate-y-1/2 opacity-0 group-hover:opacity-100 max-xl:opacity-70 bg-[#0c1221] hover:bg-slate-900 text-slate-250 p-1 max-xl:p-2 rounded-md cursor-grab border border-slate-700 z-20 transition shadow-sm",
|
|
53672
53896
|
children: "⠿"
|
|
53673
53897
|
}),
|
|
53674
|
-
!a &&
|
|
53898
|
+
!a && x && /* @__PURE__ */ P("span", {
|
|
53675
53899
|
className: "absolute -top-3 left-2 bg-[#0c1221] border border-slate-700 text-slate-200 font-mono text-[8px] px-2 py-0.5 rounded-md font-bold z-30 pointer-events-none shadow-sm",
|
|
53676
53900
|
children: "Nested Row"
|
|
53677
53901
|
}),
|
|
53678
53902
|
/* @__PURE__ */ P("div", {
|
|
53679
53903
|
className: "plexo-editor-row-cols flex w-full gap-2 md:gap-0",
|
|
53904
|
+
style: { alignItems: v || "stretch" },
|
|
53680
53905
|
children: o
|
|
53681
53906
|
})
|
|
53682
53907
|
]
|
|
53683
53908
|
});
|
|
53684
|
-
},
|
|
53909
|
+
}, mW = (e) => e.parentRowId && e.parentColId ? /* @__PURE__ */ P(pW, {
|
|
53685
53910
|
...e,
|
|
53686
53911
|
parentRowId: e.parentRowId,
|
|
53687
53912
|
parentColId: e.parentColId
|
|
53688
|
-
}) : /* @__PURE__ */ P(
|
|
53913
|
+
}) : /* @__PURE__ */ P(fW, { ...e }), hW = ({ col: e, rowId: n, parentRowId: r, parentColId: i, selectedColumnId: a, selectColumn: o, previewMode: s, children: c, deviceView: l }) => {
|
|
53689
53914
|
let { setNodeRef: u, isOver: d } = xe({
|
|
53690
53915
|
id: e.id,
|
|
53691
53916
|
data: {
|
|
@@ -53696,7 +53921,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
53696
53921
|
parentColId: i
|
|
53697
53922
|
},
|
|
53698
53923
|
disabled: s
|
|
53699
|
-
}), f = a === e.id, p = t(e), m = l === "tablet" ? "tablet" : l === "mobile" ? "mobile" : null, h = m === "tablet" ? e.stylesTablet : m === "mobile" ? e.stylesMobile : void 0, g = S(e.styles, h, m), _ = g.display, v = _ === "flex" || _ === "block" || _ === "inline-flex", y = v ? "
|
|
53924
|
+
}), f = a === e.id, p = t(e), m = l === "tablet" ? "tablet" : l === "mobile" ? "mobile" : null, h = m === "tablet" ? e.stylesTablet : m === "mobile" ? e.stylesMobile : void 0, g = S(e.styles, h, m), _ = g.display, v = _ === "flex" || _ === "block" || _ === "inline-flex", y = v ? "h-full" : "flex flex-col gap-2.5 h-full", b = v ? {
|
|
53700
53925
|
display: _,
|
|
53701
53926
|
flexDirection: g.flexDirection,
|
|
53702
53927
|
flexWrap: g.flexWrap,
|
|
@@ -53711,7 +53936,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
53711
53936
|
onClick: (t) => {
|
|
53712
53937
|
s || (t.stopPropagation(), o(e.id));
|
|
53713
53938
|
},
|
|
53714
|
-
className: `plexo-editor-col relative transition duration-150 p-2
|
|
53939
|
+
className: `plexo-editor-col relative transition duration-150 p-2 flex flex-col gap-2 rounded ${s ? "cursor-default" : "cursor-pointer"} ${!s && d ? "outline outline-1 outline-dashed outline-indigo-500 bg-indigo-500/5" : !s && f ? "outline outline-1 outline-indigo-500 bg-indigo-500/5" : s ? "" : "hover:outline hover:outline-1 hover:outline-slate-200 bg-slate-55"}`,
|
|
53715
53940
|
style: {
|
|
53716
53941
|
width: e.width,
|
|
53717
53942
|
...g
|
|
@@ -53733,7 +53958,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
53733
53958
|
})
|
|
53734
53959
|
})]
|
|
53735
53960
|
});
|
|
53736
|
-
},
|
|
53961
|
+
}, gW = ({ filter: e, onSelect: t, currentValue: n }) => {
|
|
53737
53962
|
let [r, i] = A(!1), a = k(null), o = k(null), [s, c] = A({
|
|
53738
53963
|
top: 0,
|
|
53739
53964
|
left: 0
|
|
@@ -53827,7 +54052,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
53827
54052
|
}, e.key);
|
|
53828
54053
|
})
|
|
53829
54054
|
}), document.body)] });
|
|
53830
|
-
},
|
|
54055
|
+
}, _W = ({ label: e, value: t, onChange: n, textColor: r, backgroundColor: i }) => {
|
|
53831
54056
|
let [a, o] = A(!1), s = k(null), c = k(null), l = k(null), u = !t || t === "transparent", d = ((e) => {
|
|
53832
54057
|
let t = "#ffffff", n = 100, r = (e || "").trim().toLowerCase();
|
|
53833
54058
|
if (r.startsWith("#")) if (r.length === 9) {
|
|
@@ -53915,7 +54140,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
53915
54140
|
g.current && b(e.clientX, e.clientY);
|
|
53916
54141
|
}, C = () => {
|
|
53917
54142
|
g.current = !1;
|
|
53918
|
-
},
|
|
54143
|
+
}, ee = (e) => {
|
|
53919
54144
|
if (!l.current) return;
|
|
53920
54145
|
let t = l.current.getBoundingClientRect(), n = Math.max(0, Math.min(1, (e - t.left) / t.width)), r = Math.round(n * 360), i = {
|
|
53921
54146
|
...m,
|
|
@@ -53924,11 +54149,11 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
53924
54149
|
h(i);
|
|
53925
54150
|
let a = _(i.h, i.s, i.v);
|
|
53926
54151
|
v(a, p === 0 ? 100 : p);
|
|
54152
|
+
}, w = (e) => {
|
|
54153
|
+
u || !l.current || (e.preventDefault(), g.current = !0, e.currentTarget.setPointerCapture(e.pointerId), ee(e.clientX));
|
|
53927
54154
|
}, T = (e) => {
|
|
53928
|
-
|
|
53929
|
-
}, E = (
|
|
53930
|
-
g.current && w(e.clientX);
|
|
53931
|
-
}, ee = () => {
|
|
54155
|
+
g.current && ee(e.clientX);
|
|
54156
|
+
}, E = () => {
|
|
53932
54157
|
g.current = !1;
|
|
53933
54158
|
};
|
|
53934
54159
|
return /* @__PURE__ */ F("div", {
|
|
@@ -53950,7 +54175,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
53950
54175
|
className: "w-20 bg-transparent text-right font-mono text-sm outline-none pr-1",
|
|
53951
54176
|
style: { color: "var(--builder-input-text)" }
|
|
53952
54177
|
}),
|
|
53953
|
-
/* @__PURE__ */ P(
|
|
54178
|
+
/* @__PURE__ */ P(gW, {
|
|
53954
54179
|
filter: (e) => e.type === "color" || /^#[0-9a-fA-F]{3,8}$|^rgba?\(|^hsla?\(/.test(e.value),
|
|
53955
54180
|
onSelect: n,
|
|
53956
54181
|
currentValue: t
|
|
@@ -54004,10 +54229,10 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
54004
54229
|
}),
|
|
54005
54230
|
/* @__PURE__ */ P("div", {
|
|
54006
54231
|
ref: l,
|
|
54007
|
-
onPointerDown:
|
|
54008
|
-
onPointerMove:
|
|
54009
|
-
onPointerUp:
|
|
54010
|
-
onPointerCancel:
|
|
54232
|
+
onPointerDown: w,
|
|
54233
|
+
onPointerMove: T,
|
|
54234
|
+
onPointerUp: E,
|
|
54235
|
+
onPointerCancel: E,
|
|
54011
54236
|
className: `relative w-full h-2 rounded-full cursor-pointer select-none ${u ? "opacity-20 pointer-events-none" : ""}`,
|
|
54012
54237
|
style: {
|
|
54013
54238
|
background: "linear-gradient(to right, #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%)",
|
|
@@ -54089,7 +54314,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
54089
54314
|
]
|
|
54090
54315
|
})]
|
|
54091
54316
|
});
|
|
54092
|
-
},
|
|
54317
|
+
}, vW = ({ elem: t, columnId: r, rowId: o, selectedElementId: m, selectElement: h, deviceView: g, transientStyle: _, transientAttr: v, updateElement: y, onTransientStyleChange: b, onTransientAttrChange: x, clearTransientOverrides: C, duplicateElement: ee, deleteElement: w, previewMode: T, useAi: E, aiProvider: te, aiTier: ne, apiKey: re, externalUserId: ie, templateKind: ae, onRequestComment: oe, ICONS: se, getFormFields: ce, getDefaultStyle: le, isElementHiddenForView: ue, renderSocialIcon: de, onNotify: fe, textColor: me = "#e2e8f0", backgroundColor: he = "#0e1526", customCss: ge = "", mergeTags: j = [], themeBgColor: _e = "#273df2" }) => {
|
|
54093
54318
|
let { attributes: M, listeners: ve, setNodeRef: ye, transform: be, transition: xe, isDragging: Se, isOver: Ce } = L({
|
|
54094
54319
|
id: t.id,
|
|
54095
54320
|
data: {
|
|
@@ -54098,7 +54323,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
54098
54323
|
columnId: r,
|
|
54099
54324
|
rowId: o
|
|
54100
54325
|
},
|
|
54101
|
-
disabled:
|
|
54326
|
+
disabled: T
|
|
54102
54327
|
}), we = pe(Me), N = Ce && we.overId === t.id && we.edge === "bottom", [I, Te] = A(!1), [R, De] = A(!1), [Oe, ke] = A(""), Ae = He({
|
|
54103
54328
|
apiKey: re || "",
|
|
54104
54329
|
templateKind: ae || "LANDING_PAGE",
|
|
@@ -54145,7 +54370,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
54145
54370
|
} else document.execCommand(e);
|
|
54146
54371
|
}, $e = /* @__PURE__ */ "😀.😁.😂.😃.😄.😅.😆.😉.😊.😋.😎.😍.😘.🥰.😗.😙.😚.🙂.🤗.🤩.🤔.🤨.😐.😑.😶.🙄.😏.😣.😥.😮.🤐.😯.😪.😫.🥱.😴.😌.😛.😜.😝.🤤.😒.😓.😔.😕.🙃.🫠.🤑.😲.☹️.🙁.😖.😞.😟.😤.😢.😭.😦.😧.😨.😩.🤯.😬.😮💨.😰.😱.🥵.🥶.😳.🤪.😵.😵💫.🥴.😠.😡.🤬.😷.🤒.🤕.🤢.🤮.🤧.😇.🥳.🥸.🥺.🤠.🤡.🤥.🤫.🤭.🧐.🤓.😈.👿.👹.👺.💀.☠️.👻.👽.👾.🤖.💩.😺.😸.😹.😻.😼.😽.🙀.😿.😾.🙈.🙉.🙊.🔥.⭐.✨.🎉.🚀.💡.❤️.👍.🙌.👏.✔️.⚡.⚠️.✉️.📞.📍.🏆.🎯.💎.📌.🔔.📣.🎁.🛒".split("."), et = async (e) => {
|
|
54147
54372
|
if (e.preventDefault(), Oe.trim()) {
|
|
54148
|
-
if (
|
|
54373
|
+
if (E === !1) {
|
|
54149
54374
|
fe?.("You do not have enough tokens to perform this action.");
|
|
54150
54375
|
return;
|
|
54151
54376
|
}
|
|
@@ -54222,7 +54447,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
54222
54447
|
})]
|
|
54223
54448
|
}), e.kind === "textarea" ? /* @__PURE__ */ P("textarea", {
|
|
54224
54449
|
placeholder: e.placeholder || "Write here",
|
|
54225
|
-
className: `w-full border bg-white px-3.5 py-3 outline-none resize-none ${
|
|
54450
|
+
className: `w-full border bg-white px-3.5 py-3 outline-none resize-none ${T ? "" : "pointer-events-none"}`,
|
|
54226
54451
|
style: {
|
|
54227
54452
|
minHeight: "92px",
|
|
54228
54453
|
borderRadius: e.borderRadius || "12px",
|
|
@@ -54233,11 +54458,11 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
54233
54458
|
backgroundColor: "var(--builder-input-bg)",
|
|
54234
54459
|
"--placeholder-color": e.placeholderColor || "#94a3b8"
|
|
54235
54460
|
},
|
|
54236
|
-
readOnly: !
|
|
54461
|
+
readOnly: !T
|
|
54237
54462
|
}) : e.kind === "select" ? /* @__PURE__ */ F("div", {
|
|
54238
54463
|
className: "relative",
|
|
54239
54464
|
children: [/* @__PURE__ */ P("select", {
|
|
54240
|
-
className: `w-full appearance-none border bg-white px-3.5 py-3 outline-none ${
|
|
54465
|
+
className: `w-full appearance-none border bg-white px-3.5 py-3 outline-none ${T ? "" : "pointer-events-none"}`,
|
|
54241
54466
|
style: {
|
|
54242
54467
|
borderRadius: e.borderRadius || "12px",
|
|
54243
54468
|
fontSize: e.fontSize || "13px",
|
|
@@ -54246,7 +54471,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
54246
54471
|
color: e.inputTextColor || "var(--builder-input-text)",
|
|
54247
54472
|
backgroundColor: "var(--builder-input-bg)"
|
|
54248
54473
|
},
|
|
54249
|
-
disabled: !
|
|
54474
|
+
disabled: !T,
|
|
54250
54475
|
children: (e.options || []).map((e) => /* @__PURE__ */ P("option", {
|
|
54251
54476
|
value: e.value,
|
|
54252
54477
|
children: e.label
|
|
@@ -54258,7 +54483,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
54258
54483
|
}) : e.kind === "radio" || e.kind === "checkbox" ? /* @__PURE__ */ P("div", {
|
|
54259
54484
|
className: "flex flex-wrap gap-2",
|
|
54260
54485
|
children: (e.options || []).map((t) => /* @__PURE__ */ F("label", {
|
|
54261
|
-
className: `inline-flex items-center gap-2 border bg-white px-3 py-2 ${
|
|
54486
|
+
className: `inline-flex items-center gap-2 border bg-white px-3 py-2 ${T ? "cursor-pointer" : "pointer-events-none"}`,
|
|
54262
54487
|
style: {
|
|
54263
54488
|
borderRadius: e.borderRadius || "9999px",
|
|
54264
54489
|
fontSize: e.fontSize || "11px",
|
|
@@ -54267,7 +54492,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
54267
54492
|
color: e.inputTextColor || "var(--builder-input-text)",
|
|
54268
54493
|
backgroundColor: "var(--builder-input-bg)"
|
|
54269
54494
|
},
|
|
54270
|
-
children: [
|
|
54495
|
+
children: [T ? /* @__PURE__ */ P("input", {
|
|
54271
54496
|
type: e.kind,
|
|
54272
54497
|
className: `h-3.5 w-3.5 ${e.kind === "radio" ? "rounded-full" : "rounded-sm"} border-slate-350 accent-slate-900`,
|
|
54273
54498
|
name: e.id
|
|
@@ -54280,7 +54505,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
54280
54505
|
"date"
|
|
54281
54506
|
].includes(e.kind) ? e.kind : "text",
|
|
54282
54507
|
placeholder: e.placeholder || "Type here",
|
|
54283
|
-
className: `w-full border bg-white px-3.5 py-3 outline-none ${
|
|
54508
|
+
className: `w-full border bg-white px-3.5 py-3 outline-none ${T ? "" : "pointer-events-none"}`,
|
|
54284
54509
|
style: {
|
|
54285
54510
|
borderRadius: e.borderRadius || "12px",
|
|
54286
54511
|
fontSize: e.fontSize || "13px",
|
|
@@ -54290,7 +54515,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
54290
54515
|
backgroundColor: "var(--builder-input-bg)",
|
|
54291
54516
|
"--placeholder-color": e.placeholderColor || "#94a3b8"
|
|
54292
54517
|
},
|
|
54293
|
-
readOnly: !
|
|
54518
|
+
readOnly: !T
|
|
54294
54519
|
})]
|
|
54295
54520
|
}, e.id)) : null;
|
|
54296
54521
|
return /* @__PURE__ */ F("div", {
|
|
@@ -54299,21 +54524,21 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
54299
54524
|
"data-plexo-node-type": "element",
|
|
54300
54525
|
style: at,
|
|
54301
54526
|
onFocusCapture: () => {
|
|
54302
|
-
|
|
54527
|
+
T || h(t.id);
|
|
54303
54528
|
},
|
|
54304
54529
|
onClickCapture: () => {
|
|
54305
|
-
|
|
54530
|
+
T || h(t.id);
|
|
54306
54531
|
},
|
|
54307
54532
|
onClick: (e) => {
|
|
54308
|
-
|
|
54533
|
+
T || (e.stopPropagation(), h(t.id));
|
|
54309
54534
|
},
|
|
54310
54535
|
onMouseEnter: (e) => {
|
|
54311
|
-
|
|
54536
|
+
T || (e.stopPropagation(), Te(!0));
|
|
54312
54537
|
},
|
|
54313
54538
|
onMouseLeave: () => Te(!1),
|
|
54314
|
-
className: `group/elem relative transition duration-155 rounded ${
|
|
54539
|
+
className: `group/elem relative transition duration-155 rounded ${T ? "cursor-default" : "cursor-pointer"} ${!T && Se ? "opacity-30 border-dashed border-2 border-indigo-500" : ""} ${!T && Ce ? N ? "border-b border-indigo-500" : "border-t border-indigo-500" : ""} ${!T && ot ? "outline outline-2 outline-indigo-500 bg-indigo-500/[0.02] z-[50] relative" : !T && I ? "hover:outline hover:outline-1 hover:outline-slate-200 z-[40] relative" : ""}`,
|
|
54315
54540
|
children: [
|
|
54316
|
-
!
|
|
54541
|
+
!T && ot && ct && /* @__PURE__ */ F("div", {
|
|
54317
54542
|
className: `plexo-inline-toolbar absolute left-1/2 -translate-x-1/2 bg-[#0c1221]/95 backdrop-blur border border-slate-800 rounded-md p-1.5 shadow-2xl flex flex-col gap-1 z-[999] w-max max-w-[98vw] ${Ue === "bottom" ? "top-full mt-3.5" : "-top-24"}`,
|
|
54318
54543
|
onClick: (e) => e.stopPropagation(),
|
|
54319
54544
|
children: [/* @__PURE__ */ F("div", {
|
|
@@ -54509,7 +54734,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
54509
54734
|
className: "absolute top-full mt-2 left-0 p-3 rounded-xl border border-slate-700 shadow-2xl z-[99999] w-72",
|
|
54510
54735
|
style: { backgroundColor: he },
|
|
54511
54736
|
onClick: (e) => e.stopPropagation(),
|
|
54512
|
-
children: /* @__PURE__ */ P(
|
|
54737
|
+
children: /* @__PURE__ */ P(_W, {
|
|
54513
54738
|
label: "Text Color",
|
|
54514
54739
|
value: H.color || "#6366f1",
|
|
54515
54740
|
textColor: me,
|
|
@@ -54533,7 +54758,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
54533
54758
|
className: "absolute top-full mt-2 left-0 p-3 rounded-xl border border-slate-700 shadow-2xl z-[99999] w-72",
|
|
54534
54759
|
style: { backgroundColor: he },
|
|
54535
54760
|
onClick: (e) => e.stopPropagation(),
|
|
54536
|
-
children: /* @__PURE__ */ P(
|
|
54761
|
+
children: /* @__PURE__ */ P(_W, {
|
|
54537
54762
|
label: "Highlight Color",
|
|
54538
54763
|
value: H.backgroundColor || "#ffffff",
|
|
54539
54764
|
textColor: me,
|
|
@@ -54600,7 +54825,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
54600
54825
|
]
|
|
54601
54826
|
})]
|
|
54602
54827
|
}),
|
|
54603
|
-
!
|
|
54828
|
+
!T && ot && /* @__PURE__ */ F("div", {
|
|
54604
54829
|
className: `plexo-inline-toolbar absolute left-2 bg-[#0c1221]/95 backdrop-blur border border-slate-800 rounded-md p-1 shadow-2xl flex items-center gap-1 z-[999] select-none ${ct && Ue === "bottom" ? "-top-12" : "-bottom-11"}`,
|
|
54605
54830
|
onClick: (e) => e.stopPropagation(),
|
|
54606
54831
|
children: [
|
|
@@ -54650,14 +54875,14 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
54650
54875
|
})
|
|
54651
54876
|
}),
|
|
54652
54877
|
/* @__PURE__ */ P("button", {
|
|
54653
|
-
onClick: () =>
|
|
54878
|
+
onClick: () => ee(t.id),
|
|
54654
54879
|
className: "p-1.5 text-slate-400 hover:text-white rounded hover:bg-slate-900 transition flex items-center justify-center",
|
|
54655
54880
|
title: "Duplicate",
|
|
54656
54881
|
children: se.copy
|
|
54657
54882
|
}),
|
|
54658
54883
|
/* @__PURE__ */ P("button", {
|
|
54659
54884
|
onClick: () => {
|
|
54660
|
-
|
|
54885
|
+
w(t.id), h(null);
|
|
54661
54886
|
},
|
|
54662
54887
|
className: "p-1.5 text-slate-400 hover:text-rose-500 rounded hover:bg-slate-900 transition flex items-center justify-center",
|
|
54663
54888
|
title: "Delete",
|
|
@@ -54741,14 +54966,14 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
54741
54966
|
})
|
|
54742
54967
|
]
|
|
54743
54968
|
}),
|
|
54744
|
-
!
|
|
54969
|
+
!T && ot && /* @__PURE__ */ P("div", {
|
|
54745
54970
|
...ve,
|
|
54746
54971
|
...M,
|
|
54747
54972
|
className: "plexo-drag-handle absolute right-[-10px] top-1/2 -translate-y-1/2 w-5 h-5 rounded-md bg-[#0c1221] border border-slate-700 flex items-center justify-center text-[10px] text-slate-200 z-[999] cursor-grab active:cursor-grabbing font-bold select-none shadow-lg",
|
|
54748
54973
|
title: "Drag to reposition",
|
|
54749
54974
|
children: "✥"
|
|
54750
54975
|
}),
|
|
54751
|
-
!
|
|
54976
|
+
!T && (ot || I) && /* @__PURE__ */ P("span", {
|
|
54752
54977
|
className: "absolute -top-3 left-2 bg-[#0c1221] border border-slate-700 text-slate-200 font-mono text-[8px] px-2 py-0.5 rounded-md font-bold z-30 pointer-events-none select-none shadow-sm",
|
|
54753
54978
|
children: st
|
|
54754
54979
|
}),
|
|
@@ -54767,8 +54992,8 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
54767
54992
|
letterSpacing: H.letterSpacing,
|
|
54768
54993
|
textAlign: H.textAlign
|
|
54769
54994
|
},
|
|
54770
|
-
className: `whitespace-pre-wrap outline-none ${
|
|
54771
|
-
contentEditable: !
|
|
54995
|
+
className: `whitespace-pre-wrap outline-none ${T ? "cursor-default" : "cursor-text"}`,
|
|
54996
|
+
contentEditable: !T,
|
|
54772
54997
|
suppressContentEditableWarning: !0,
|
|
54773
54998
|
onInput: (e) => {
|
|
54774
54999
|
x("text", e.currentTarget.innerHTML || "");
|
|
@@ -54792,8 +55017,8 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
54792
55017
|
padding: H.padding,
|
|
54793
55018
|
margin: H.margin
|
|
54794
55019
|
},
|
|
54795
|
-
className: `outline-none ${
|
|
54796
|
-
contentEditable: !
|
|
55020
|
+
className: `outline-none ${T ? "cursor-default" : "cursor-text"}`,
|
|
55021
|
+
contentEditable: !T,
|
|
54797
55022
|
suppressContentEditableWarning: !0,
|
|
54798
55023
|
onInput: (e) => {
|
|
54799
55024
|
x("text", e.currentTarget.innerHTML || "");
|
|
@@ -54817,8 +55042,8 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
54817
55042
|
padding: H.padding,
|
|
54818
55043
|
margin: H.margin
|
|
54819
55044
|
},
|
|
54820
|
-
className: `outline-none ${
|
|
54821
|
-
contentEditable: !
|
|
55045
|
+
className: `outline-none ${T ? "cursor-default" : "cursor-text"}`,
|
|
55046
|
+
contentEditable: !T,
|
|
54822
55047
|
suppressContentEditableWarning: !0,
|
|
54823
55048
|
onInput: (e) => {
|
|
54824
55049
|
x("text", e.currentTarget.innerHTML || "");
|
|
@@ -54857,12 +55082,12 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
54857
55082
|
},
|
|
54858
55083
|
className: "inline-flex items-center justify-center",
|
|
54859
55084
|
onClick: (e) => {
|
|
54860
|
-
|
|
55085
|
+
T || (e.stopPropagation(), h(t.id));
|
|
54861
55086
|
},
|
|
54862
55087
|
children: /* @__PURE__ */ P("span", {
|
|
54863
55088
|
ref: Ye,
|
|
54864
|
-
className: `inline-block min-w-[24px] outline-none ${
|
|
54865
|
-
contentEditable: !
|
|
55089
|
+
className: `inline-block min-w-[24px] outline-none ${T ? "cursor-default" : "cursor-text"}`,
|
|
55090
|
+
contentEditable: !T,
|
|
54866
55091
|
suppressContentEditableWarning: !0,
|
|
54867
55092
|
onInput: (e) => {
|
|
54868
55093
|
x("text", e.currentTarget.textContent || "");
|
|
@@ -54947,7 +55172,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
54947
55172
|
borderColor: H.borderColor,
|
|
54948
55173
|
boxShadow: H.boxShadow || ut?.boxShadow
|
|
54949
55174
|
},
|
|
54950
|
-
onSubmit:
|
|
55175
|
+
onSubmit: T ? (e) => e.preventDefault() : void 0,
|
|
54951
55176
|
className: "text-left relative overflow-hidden",
|
|
54952
55177
|
children: /* @__PURE__ */ F("div", {
|
|
54953
55178
|
className: "flex flex-col",
|
|
@@ -54975,7 +55200,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
54975
55200
|
height: U.buttonAutoHeight === !1 && H.buttonHeight || "auto",
|
|
54976
55201
|
maxWidth: "100%"
|
|
54977
55202
|
},
|
|
54978
|
-
type:
|
|
55203
|
+
type: T ? "submit" : "button",
|
|
54979
55204
|
children: U.submitLabel || "Submit"
|
|
54980
55205
|
})
|
|
54981
55206
|
})]
|
|
@@ -55006,8 +55231,8 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
55006
55231
|
borderStyle: H.borderStyle,
|
|
55007
55232
|
fontSize: H.fontSize
|
|
55008
55233
|
},
|
|
55009
|
-
className: `w-full outline-none border ${
|
|
55010
|
-
readOnly: !
|
|
55234
|
+
className: `w-full outline-none border ${T ? "" : "pointer-events-none"}`,
|
|
55235
|
+
readOnly: !T
|
|
55011
55236
|
})]
|
|
55012
55237
|
}),
|
|
55013
55238
|
t.type === "textarea" && /* @__PURE__ */ F("div", {
|
|
@@ -55035,8 +55260,8 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
55035
55260
|
fontSize: H.fontSize,
|
|
55036
55261
|
height: "50px"
|
|
55037
55262
|
},
|
|
55038
|
-
className: `w-full outline-none border resize-none ${
|
|
55039
|
-
readOnly: !
|
|
55263
|
+
className: `w-full outline-none border resize-none ${T ? "" : "pointer-events-none"}`,
|
|
55264
|
+
readOnly: !T
|
|
55040
55265
|
})]
|
|
55041
55266
|
}),
|
|
55042
55267
|
t.type === "select" && /* @__PURE__ */ F("div", {
|
|
@@ -55057,8 +55282,8 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
55057
55282
|
borderStyle: H.borderStyle,
|
|
55058
55283
|
fontSize: H.fontSize
|
|
55059
55284
|
},
|
|
55060
|
-
className: `w-full outline-none border appearance-none ${
|
|
55061
|
-
disabled: !
|
|
55285
|
+
className: `w-full outline-none border appearance-none ${T ? "" : "pointer-events-none"}`,
|
|
55286
|
+
disabled: !T,
|
|
55062
55287
|
children: (U.options || []).map((e, t) => /* @__PURE__ */ P("option", {
|
|
55063
55288
|
value: e.value,
|
|
55064
55289
|
children: e.label
|
|
@@ -55127,14 +55352,14 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
55127
55352
|
blog_categories: "28px",
|
|
55128
55353
|
blog_comments: "160px",
|
|
55129
55354
|
blog_post_list: "260px"
|
|
55130
|
-
}, r = {
|
|
55355
|
+
}, r = typeof U.prefix == "string" ? U.prefix : "", i = {
|
|
55131
55356
|
blog_title: "Sample Post Title",
|
|
55132
55357
|
blog_content: "This is sample post content, styled exactly as a real post’s body will render — check that it reads clearly against its background before publishing.",
|
|
55133
|
-
blog_date:
|
|
55134
|
-
blog_author: "By Jane Doe
|
|
55135
|
-
blog_categories:
|
|
55136
|
-
}[t.type];
|
|
55137
|
-
|
|
55358
|
+
blog_date: `${r}August 7, 2026`,
|
|
55359
|
+
blog_author: `${r || "By "}Jane Doe`,
|
|
55360
|
+
blog_categories: `${r}Design · Marketing`
|
|
55361
|
+
}[t.type], a = t.type === "blog_categories" ? "--plexo-categories-color" : "color", o = t.type === "blog_categories" ? "--plexo-categories-font-size" : "fontSize", s = t.type === "blog_categories" ? "--plexo-categories-font-weight" : "fontWeight";
|
|
55362
|
+
if (i) return /* @__PURE__ */ F("div", {
|
|
55138
55363
|
style: {
|
|
55139
55364
|
width: "100%",
|
|
55140
55365
|
position: "relative"
|
|
@@ -55145,9 +55370,9 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
55145
55370
|
}), /* @__PURE__ */ P("div", {
|
|
55146
55371
|
style: {
|
|
55147
55372
|
minHeight: n[t.type],
|
|
55148
|
-
color: H
|
|
55149
|
-
fontSize: H
|
|
55150
|
-
fontWeight: H
|
|
55373
|
+
color: H[a],
|
|
55374
|
+
fontSize: H[o],
|
|
55375
|
+
fontWeight: H[s],
|
|
55151
55376
|
fontFamily: H.fontFamily,
|
|
55152
55377
|
fontStyle: H.fontStyle,
|
|
55153
55378
|
textDecoration: H.textDecoration,
|
|
@@ -55163,9 +55388,79 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
55163
55388
|
margin: H.margin,
|
|
55164
55389
|
whiteSpace: "pre-wrap"
|
|
55165
55390
|
},
|
|
55166
|
-
children:
|
|
55391
|
+
children: i
|
|
55167
55392
|
})]
|
|
55168
|
-
})
|
|
55393
|
+
});
|
|
55394
|
+
if (t.type === "blog_post_list") {
|
|
55395
|
+
let n = H, r = n["--plexo-postlist-card-bg"] || "transparent", i = n["--plexo-postlist-title-color"] || "#17181c", a = n["--plexo-postlist-title-font-size"] || "1.1em", o = n["--plexo-postlist-title-font-weight"] || "700", s = n["--plexo-postlist-excerpt-color"] || "#4b5563", c = n["--plexo-postlist-meta-color"] || "#6b7280";
|
|
55396
|
+
return /* @__PURE__ */ F("div", {
|
|
55397
|
+
style: {
|
|
55398
|
+
width: "100%",
|
|
55399
|
+
position: "relative",
|
|
55400
|
+
padding: H.padding,
|
|
55401
|
+
margin: H.margin
|
|
55402
|
+
},
|
|
55403
|
+
children: [/* @__PURE__ */ P("span", {
|
|
55404
|
+
className: "absolute -top-2 left-2 z-10 px-1.5 py-0.5 rounded bg-purple-500/90 text-white text-[9px] font-bold uppercase tracking-wide pointer-events-none",
|
|
55405
|
+
children: e[t.type]
|
|
55406
|
+
}), /* @__PURE__ */ P("div", {
|
|
55407
|
+
style: {
|
|
55408
|
+
display: "grid",
|
|
55409
|
+
gridTemplateColumns: "repeat(3, 1fr)",
|
|
55410
|
+
gap: 12,
|
|
55411
|
+
border: "2px dashed rgba(168,85,247,0.4)",
|
|
55412
|
+
borderRadius: 8,
|
|
55413
|
+
padding: 12
|
|
55414
|
+
},
|
|
55415
|
+
children: [
|
|
55416
|
+
1,
|
|
55417
|
+
2,
|
|
55418
|
+
3
|
|
55419
|
+
].map((e) => /* @__PURE__ */ F("div", {
|
|
55420
|
+
style: {
|
|
55421
|
+
background: r,
|
|
55422
|
+
borderRadius: 6,
|
|
55423
|
+
padding: 8,
|
|
55424
|
+
display: "flex",
|
|
55425
|
+
flexDirection: "column",
|
|
55426
|
+
gap: 4
|
|
55427
|
+
},
|
|
55428
|
+
children: [
|
|
55429
|
+
/* @__PURE__ */ P("div", { style: {
|
|
55430
|
+
width: "100%",
|
|
55431
|
+
aspectRatio: "2/1",
|
|
55432
|
+
background: "#e2e8f0",
|
|
55433
|
+
borderRadius: 4
|
|
55434
|
+
} }),
|
|
55435
|
+
/* @__PURE__ */ F("div", {
|
|
55436
|
+
style: {
|
|
55437
|
+
color: i,
|
|
55438
|
+
fontSize: a,
|
|
55439
|
+
fontWeight: o,
|
|
55440
|
+
lineHeight: 1.25
|
|
55441
|
+
},
|
|
55442
|
+
children: ["Sample Post ", e]
|
|
55443
|
+
}),
|
|
55444
|
+
/* @__PURE__ */ P("div", {
|
|
55445
|
+
style: {
|
|
55446
|
+
color: s,
|
|
55447
|
+
fontSize: "0.75em"
|
|
55448
|
+
},
|
|
55449
|
+
children: "A short excerpt preview line…"
|
|
55450
|
+
}),
|
|
55451
|
+
/* @__PURE__ */ P("div", {
|
|
55452
|
+
style: {
|
|
55453
|
+
color: c,
|
|
55454
|
+
fontSize: "0.7em"
|
|
55455
|
+
},
|
|
55456
|
+
children: "Jane Doe · Aug 7, 2026"
|
|
55457
|
+
})
|
|
55458
|
+
]
|
|
55459
|
+
}, e))
|
|
55460
|
+
})]
|
|
55461
|
+
});
|
|
55462
|
+
}
|
|
55463
|
+
return /* @__PURE__ */ P("div", {
|
|
55169
55464
|
style: {
|
|
55170
55465
|
padding: H.padding,
|
|
55171
55466
|
margin: H.margin,
|
|
@@ -55188,7 +55483,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
55188
55483
|
}, i = (t, i, a, o) => {
|
|
55189
55484
|
let s = a ? "th" : "td", c = a ? H.headerBgColor || "#f8fafc" : e.striped && i % 2 == 1 ? "#f8fafc" : H.contentBgColor || "#ffffff", l = a ? H.headerTextColor || "#1e293b" : H.contentTextColor || "#475569", u = (a ? H.headerTextAlign : H.contentTextAlign) || "left";
|
|
55190
55485
|
return /* @__PURE__ */ P("tr", { children: t.map((e, t) => /* @__PURE__ */ P(s, {
|
|
55191
|
-
contentEditable: !
|
|
55486
|
+
contentEditable: !T,
|
|
55192
55487
|
suppressContentEditableWarning: !0,
|
|
55193
55488
|
onBlur: (e) => r(i, t, e.currentTarget.textContent || ""),
|
|
55194
55489
|
style: {
|
|
@@ -55202,7 +55497,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
55202
55497
|
lineHeight: H.contentLineHeight,
|
|
55203
55498
|
letterSpacing: H.contentLetterSpacing,
|
|
55204
55499
|
outline: "none",
|
|
55205
|
-
cursor:
|
|
55500
|
+
cursor: T ? "default" : "text"
|
|
55206
55501
|
},
|
|
55207
55502
|
children: e
|
|
55208
55503
|
}, t)) }, o);
|
|
@@ -55520,7 +55815,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
55520
55815
|
})
|
|
55521
55816
|
})
|
|
55522
55817
|
});
|
|
55523
|
-
return n &&
|
|
55818
|
+
return n && T ? /* @__PURE__ */ P("a", {
|
|
55524
55819
|
href: n,
|
|
55525
55820
|
target: r ? "_blank" : "_self",
|
|
55526
55821
|
rel: "noreferrer",
|
|
@@ -55609,13 +55904,13 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
55609
55904
|
};
|
|
55610
55905
|
//#endregion
|
|
55611
55906
|
//#region src/components/inlineControls/InlineCounter.tsx
|
|
55612
|
-
function
|
|
55907
|
+
function yW(e, t) {
|
|
55613
55908
|
if (t) return t;
|
|
55614
55909
|
let n = e.toLowerCase();
|
|
55615
55910
|
return n.includes("font size") || n.includes("font-size") ? "font-size" : n.includes("font weight") || n.includes("font-weight") || n.includes("weight") ? "font-weight" : n.includes("line height") || n.includes("line-height") ? "line-height" : n.includes("letter spacing") || n.includes("letter-spacing") ? "letter-spacing" : n.includes("border radius") || n.includes("border-radius") || n.includes("rounded") ? "border-radius" : n.includes("blur") ? "filter-blur" : null;
|
|
55616
55911
|
}
|
|
55617
|
-
var
|
|
55618
|
-
let l = String(t || "").match(/^([+-]?\d+(?:\.\d+)?)(.*)$/), u = l ? parseFloat(l[1]) : 0, d = l && l[2] ? l[2].trim() : r && r.length > 0 ? r[0] : n, f =
|
|
55912
|
+
var bW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 500, step: o = 1, onChange: s, strataTokenKey: c }) => {
|
|
55913
|
+
let l = String(t || "").match(/^([+-]?\d+(?:\.\d+)?)(.*)$/), u = l ? parseFloat(l[1]) : 0, d = l && l[2] ? l[2].trim() : r && r.length > 0 ? r[0] : n, f = yW(e, c), p = (e) => {
|
|
55619
55914
|
s(`${e}${d}`);
|
|
55620
55915
|
}, m = (e) => {
|
|
55621
55916
|
s(`${u}${e}`);
|
|
@@ -55628,7 +55923,7 @@ var gW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
|
|
|
55628
55923
|
}), /* @__PURE__ */ F("div", {
|
|
55629
55924
|
className: "flex items-center gap-1.5",
|
|
55630
55925
|
children: [
|
|
55631
|
-
f && /* @__PURE__ */ P(
|
|
55926
|
+
f && /* @__PURE__ */ P(gW, {
|
|
55632
55927
|
filter: (e) => e.key.includes(f),
|
|
55633
55928
|
onSelect: (e) => s(e),
|
|
55634
55929
|
currentValue: t
|
|
@@ -55699,7 +55994,7 @@ var gW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
|
|
|
55699
55994
|
]
|
|
55700
55995
|
})]
|
|
55701
55996
|
});
|
|
55702
|
-
},
|
|
55997
|
+
}, xW = ({ label: e, value: t, options: n, onChange: r }) => /* @__PURE__ */ F("div", {
|
|
55703
55998
|
className: "flex items-center justify-between py-3 border-b border-slate-800/10 last:border-b-0",
|
|
55704
55999
|
children: [/* @__PURE__ */ P("span", {
|
|
55705
56000
|
className: "text-sm text-slate-300 font-semibold leading-5 tracking-[0.01em]",
|
|
@@ -55712,7 +56007,7 @@ var gW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
|
|
|
55712
56007
|
menuClassName: "min-w-[190px]",
|
|
55713
56008
|
align: "right"
|
|
55714
56009
|
})]
|
|
55715
|
-
}),
|
|
56010
|
+
}), SW = ({ label: e, value: t, onChange: n }) => {
|
|
55716
56011
|
let r = [
|
|
55717
56012
|
{
|
|
55718
56013
|
value: "left",
|
|
@@ -55750,7 +56045,7 @@ var gW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
|
|
|
55750
56045
|
}, e.value))
|
|
55751
56046
|
})]
|
|
55752
56047
|
});
|
|
55753
|
-
},
|
|
56048
|
+
}, CW = ({ label: e, value: t, onChange: n }) => /* @__PURE__ */ F("div", {
|
|
55754
56049
|
className: "flex flex-col gap-2 py-3 border-b border-slate-800/10 last:border-b-0",
|
|
55755
56050
|
children: [/* @__PURE__ */ P("span", {
|
|
55756
56051
|
className: "text-[11px] text-slate-350 font-semibold uppercase tracking-[0.12em] leading-5",
|
|
@@ -55766,7 +56061,7 @@ var gW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
|
|
|
55766
56061
|
color: "var(--builder-input-text)"
|
|
55767
56062
|
}
|
|
55768
56063
|
})]
|
|
55769
|
-
}),
|
|
56064
|
+
}), wW = ({ label: e, value: t, rows: n = 4, onChange: r, codeMode: i }) => /* @__PURE__ */ F("div", {
|
|
55770
56065
|
className: "flex flex-col gap-2 py-3 border-b border-slate-800/10 last:border-b-0",
|
|
55771
56066
|
children: [/* @__PURE__ */ P("span", {
|
|
55772
56067
|
className: "text-[11px] text-slate-350 font-semibold uppercase tracking-[0.12em] leading-5",
|
|
@@ -55784,7 +56079,7 @@ var gW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
|
|
|
55784
56079
|
fontFamily: i ? "Fira Code, Consolas, Monaco, monospace" : void 0
|
|
55785
56080
|
}
|
|
55786
56081
|
})]
|
|
55787
|
-
}),
|
|
56082
|
+
}), TW = ({ styles: e, onChange: t }) => {
|
|
55788
56083
|
let [n, r] = A(!1), i = parseInt(e.borderRadius) || 0, a = parseInt(e.borderTopLeftRadius) || i || 0, o = parseInt(e.borderTopRightRadius) || i || 0, s = parseInt(e.borderBottomRightRadius) || i || 0, c = parseInt(e.borderBottomLeftRadius) || i || 0, l = (e) => {
|
|
55789
56084
|
t("borderRadius", e), t("borderTopLeftRadius", e), t("borderTopRightRadius", e), t("borderBottomRightRadius", e), t("borderBottomLeftRadius", e);
|
|
55790
56085
|
}, u = (n, r) => {
|
|
@@ -55811,7 +56106,7 @@ var gW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
|
|
|
55811
56106
|
}), /* @__PURE__ */ F("div", {
|
|
55812
56107
|
className: "flex items-center gap-1.5",
|
|
55813
56108
|
children: [
|
|
55814
|
-
/* @__PURE__ */ P(
|
|
56109
|
+
/* @__PURE__ */ P(gW, {
|
|
55815
56110
|
filter: (e) => e.key.includes("border-radius") && e.type === "dimension",
|
|
55816
56111
|
onSelect: l,
|
|
55817
56112
|
currentValue: `${i}px`
|
|
@@ -55831,7 +56126,7 @@ var gW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
|
|
|
55831
56126
|
}), n ? /* @__PURE__ */ F("div", {
|
|
55832
56127
|
className: "grid grid-cols-1 gap-2 mt-1.5",
|
|
55833
56128
|
children: [
|
|
55834
|
-
/* @__PURE__ */ P(
|
|
56129
|
+
/* @__PURE__ */ P(bW, {
|
|
55835
56130
|
label: "Top-Left",
|
|
55836
56131
|
value: `${a}px`,
|
|
55837
56132
|
units: [
|
|
@@ -55842,7 +56137,7 @@ var gW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
|
|
|
55842
56137
|
],
|
|
55843
56138
|
onChange: (e) => u("borderTopLeftRadius", e)
|
|
55844
56139
|
}),
|
|
55845
|
-
/* @__PURE__ */ P(
|
|
56140
|
+
/* @__PURE__ */ P(bW, {
|
|
55846
56141
|
label: "Top-Right",
|
|
55847
56142
|
value: `${o}px`,
|
|
55848
56143
|
units: [
|
|
@@ -55853,7 +56148,7 @@ var gW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
|
|
|
55853
56148
|
],
|
|
55854
56149
|
onChange: (e) => u("borderTopRightRadius", e)
|
|
55855
56150
|
}),
|
|
55856
|
-
/* @__PURE__ */ P(
|
|
56151
|
+
/* @__PURE__ */ P(bW, {
|
|
55857
56152
|
label: "Bottom-Right",
|
|
55858
56153
|
value: `${s}px`,
|
|
55859
56154
|
units: [
|
|
@@ -55864,7 +56159,7 @@ var gW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
|
|
|
55864
56159
|
],
|
|
55865
56160
|
onChange: (e) => u("borderBottomRightRadius", e)
|
|
55866
56161
|
}),
|
|
55867
|
-
/* @__PURE__ */ P(
|
|
56162
|
+
/* @__PURE__ */ P(bW, {
|
|
55868
56163
|
label: "Bottom-Left",
|
|
55869
56164
|
value: `${c}px`,
|
|
55870
56165
|
units: [
|
|
@@ -55876,7 +56171,7 @@ var gW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
|
|
|
55876
56171
|
onChange: (e) => u("borderBottomLeftRadius", e)
|
|
55877
56172
|
})
|
|
55878
56173
|
]
|
|
55879
|
-
}) : /* @__PURE__ */ P(
|
|
56174
|
+
}) : /* @__PURE__ */ P(bW, {
|
|
55880
56175
|
label: "All Sides",
|
|
55881
56176
|
value: `${i}px`,
|
|
55882
56177
|
units: [
|
|
@@ -55888,28 +56183,101 @@ var gW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
|
|
|
55888
56183
|
onChange: l
|
|
55889
56184
|
})]
|
|
55890
56185
|
});
|
|
55891
|
-
},
|
|
56186
|
+
}, EW = ({ styles: e, onChange: t }) => {
|
|
56187
|
+
let [n, r] = A(!1), i = parseInt(e.borderWidth) || 0, a = parseInt(e.borderTopWidth) || i || 0, o = parseInt(e.borderRightWidth) || i || 0, s = parseInt(e.borderBottomWidth) || i || 0, c = parseInt(e.borderLeftWidth) || i || 0, l = (e) => {
|
|
56188
|
+
t("borderWidth", e), t("borderTopWidth", e), t("borderRightWidth", e), t("borderBottomWidth", e), t("borderLeftWidth", e);
|
|
56189
|
+
}, u = (n, r) => {
|
|
56190
|
+
t(n, r);
|
|
56191
|
+
let i = {
|
|
56192
|
+
borderTopWidth: e.borderTopWidth || `${a}px`,
|
|
56193
|
+
borderRightWidth: e.borderRightWidth || `${o}px`,
|
|
56194
|
+
borderBottomWidth: e.borderBottomWidth || `${s}px`,
|
|
56195
|
+
borderLeftWidth: e.borderLeftWidth || `${c}px`,
|
|
56196
|
+
[n]: r
|
|
56197
|
+
};
|
|
56198
|
+
t("borderWidth", new Set(Object.values(i).map((e) => parseInt(e) || 0)).size === 1 ? r : "");
|
|
56199
|
+
};
|
|
56200
|
+
return /* @__PURE__ */ F("div", {
|
|
56201
|
+
className: "flex flex-col gap-1 py-2.5 border-b border-slate-800/10 last:border-b-0",
|
|
56202
|
+
children: [/* @__PURE__ */ F("div", {
|
|
56203
|
+
className: "flex items-center justify-between",
|
|
56204
|
+
children: [/* @__PURE__ */ P("span", {
|
|
56205
|
+
className: "text-xs text-slate-400 font-medium",
|
|
56206
|
+
children: "Border Width"
|
|
56207
|
+
}), /* @__PURE__ */ F("div", {
|
|
56208
|
+
className: "flex items-center gap-1.5",
|
|
56209
|
+
children: [/* @__PURE__ */ P("span", {
|
|
56210
|
+
className: "text-[10px] text-slate-500",
|
|
56211
|
+
children: "Per Side"
|
|
56212
|
+
}), /* @__PURE__ */ P("button", {
|
|
56213
|
+
type: "button",
|
|
56214
|
+
onClick: () => r(!n),
|
|
56215
|
+
className: `plexo-switch-track plexo-switch-track-sm ${n ? "plexo-switch-track-on" : "plexo-switch-track-off"}`,
|
|
56216
|
+
children: /* @__PURE__ */ P("span", { className: `plexo-switch-thumb plexo-switch-thumb-sm ${n ? "plexo-switch-thumb-on-sm" : "plexo-switch-thumb-off"}` })
|
|
56217
|
+
})]
|
|
56218
|
+
})]
|
|
56219
|
+
}), n ? /* @__PURE__ */ F("div", {
|
|
56220
|
+
className: "grid grid-cols-1 gap-2 mt-1.5",
|
|
56221
|
+
children: [
|
|
56222
|
+
/* @__PURE__ */ P(bW, {
|
|
56223
|
+
label: "Top",
|
|
56224
|
+
value: `${a}px`,
|
|
56225
|
+
min: 0,
|
|
56226
|
+
max: 12,
|
|
56227
|
+
onChange: (e) => u("borderTopWidth", e)
|
|
56228
|
+
}),
|
|
56229
|
+
/* @__PURE__ */ P(bW, {
|
|
56230
|
+
label: "Right",
|
|
56231
|
+
value: `${o}px`,
|
|
56232
|
+
min: 0,
|
|
56233
|
+
max: 12,
|
|
56234
|
+
onChange: (e) => u("borderRightWidth", e)
|
|
56235
|
+
}),
|
|
56236
|
+
/* @__PURE__ */ P(bW, {
|
|
56237
|
+
label: "Bottom",
|
|
56238
|
+
value: `${s}px`,
|
|
56239
|
+
min: 0,
|
|
56240
|
+
max: 12,
|
|
56241
|
+
onChange: (e) => u("borderBottomWidth", e)
|
|
56242
|
+
}),
|
|
56243
|
+
/* @__PURE__ */ P(bW, {
|
|
56244
|
+
label: "Left",
|
|
56245
|
+
value: `${c}px`,
|
|
56246
|
+
min: 0,
|
|
56247
|
+
max: 12,
|
|
56248
|
+
onChange: (e) => u("borderLeftWidth", e)
|
|
56249
|
+
})
|
|
56250
|
+
]
|
|
56251
|
+
}) : /* @__PURE__ */ P(bW, {
|
|
56252
|
+
label: "All Sides",
|
|
56253
|
+
value: `${i}px`,
|
|
56254
|
+
min: 0,
|
|
56255
|
+
max: 12,
|
|
56256
|
+
onChange: l
|
|
56257
|
+
})]
|
|
56258
|
+
});
|
|
56259
|
+
}, DW = {
|
|
55892
56260
|
offsetX: 0,
|
|
55893
56261
|
offsetY: 4,
|
|
55894
56262
|
blur: 6,
|
|
55895
56263
|
spread: -1,
|
|
55896
56264
|
color: "#0000001a"
|
|
55897
|
-
},
|
|
56265
|
+
}, OW = (e) => {
|
|
55898
56266
|
let t = (e || "").trim();
|
|
55899
|
-
if (!t || t === "none") return
|
|
56267
|
+
if (!t || t === "none") return DW;
|
|
55900
56268
|
let n = t.match(/^(-?[\d.]+)px\s+(-?[\d.]+)px(?:\s+(-?[\d.]+)px)?(?:\s+(-?[\d.]+)px)?\s*(.*)$/);
|
|
55901
|
-
if (!n) return
|
|
56269
|
+
if (!n) return DW;
|
|
55902
56270
|
let [, r, i, a, o, s] = n;
|
|
55903
56271
|
return {
|
|
55904
56272
|
offsetX: parseFloat(r) || 0,
|
|
55905
56273
|
offsetY: parseFloat(i) || 0,
|
|
55906
56274
|
blur: a === void 0 ? 0 : parseFloat(a) || 0,
|
|
55907
56275
|
spread: o === void 0 ? 0 : parseFloat(o) || 0,
|
|
55908
|
-
color: s?.trim() ||
|
|
56276
|
+
color: s?.trim() || DW.color
|
|
55909
56277
|
};
|
|
55910
|
-
},
|
|
55911
|
-
let n = !e.boxShadow || e.boxShadow === "none", r =
|
|
55912
|
-
t("boxShadow",
|
|
56278
|
+
}, kW = (e) => `${e.offsetX}px ${e.offsetY}px ${e.blur}px ${e.spread}px ${e.color}`, AW = ({ styles: e, onChange: t }) => {
|
|
56279
|
+
let n = !e.boxShadow || e.boxShadow === "none", r = OW(e.boxShadow), i = (e) => {
|
|
56280
|
+
t("boxShadow", kW({
|
|
55913
56281
|
...r,
|
|
55914
56282
|
...e
|
|
55915
56283
|
}));
|
|
@@ -55923,42 +56291,42 @@ var gW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
|
|
|
55923
56291
|
children: "Box Shadow"
|
|
55924
56292
|
}), /* @__PURE__ */ P("button", {
|
|
55925
56293
|
type: "button",
|
|
55926
|
-
onClick: () => t("boxShadow", n ?
|
|
56294
|
+
onClick: () => t("boxShadow", n ? kW(r) : "none"),
|
|
55927
56295
|
className: `plexo-switch-track plexo-switch-track-sm ${n ? "plexo-switch-track-off" : "plexo-switch-track-on"}`,
|
|
55928
56296
|
children: /* @__PURE__ */ P("span", { className: `plexo-switch-thumb plexo-switch-thumb-sm ${n ? "plexo-switch-thumb-off" : "plexo-switch-thumb-on-sm"}` })
|
|
55929
56297
|
})]
|
|
55930
56298
|
}), !n && /* @__PURE__ */ F("div", {
|
|
55931
56299
|
className: "grid grid-cols-1 gap-2 mt-1.5",
|
|
55932
56300
|
children: [
|
|
55933
|
-
/* @__PURE__ */ P(
|
|
56301
|
+
/* @__PURE__ */ P(bW, {
|
|
55934
56302
|
label: "Offset X",
|
|
55935
56303
|
value: `${r.offsetX}px`,
|
|
55936
56304
|
min: -100,
|
|
55937
56305
|
max: 100,
|
|
55938
56306
|
onChange: (e) => i({ offsetX: parseFloat(e) || 0 })
|
|
55939
56307
|
}),
|
|
55940
|
-
/* @__PURE__ */ P(
|
|
56308
|
+
/* @__PURE__ */ P(bW, {
|
|
55941
56309
|
label: "Offset Y",
|
|
55942
56310
|
value: `${r.offsetY}px`,
|
|
55943
56311
|
min: -100,
|
|
55944
56312
|
max: 100,
|
|
55945
56313
|
onChange: (e) => i({ offsetY: parseFloat(e) || 0 })
|
|
55946
56314
|
}),
|
|
55947
|
-
/* @__PURE__ */ P(
|
|
56315
|
+
/* @__PURE__ */ P(bW, {
|
|
55948
56316
|
label: "Blur",
|
|
55949
56317
|
value: `${r.blur}px`,
|
|
55950
56318
|
min: 0,
|
|
55951
56319
|
max: 200,
|
|
55952
56320
|
onChange: (e) => i({ blur: parseFloat(e) || 0 })
|
|
55953
56321
|
}),
|
|
55954
|
-
/* @__PURE__ */ P(
|
|
56322
|
+
/* @__PURE__ */ P(bW, {
|
|
55955
56323
|
label: "Spread",
|
|
55956
56324
|
value: `${r.spread}px`,
|
|
55957
56325
|
min: -100,
|
|
55958
56326
|
max: 100,
|
|
55959
56327
|
onChange: (e) => i({ spread: parseFloat(e) || 0 })
|
|
55960
56328
|
}),
|
|
55961
|
-
/* @__PURE__ */ P(
|
|
56329
|
+
/* @__PURE__ */ P(_W, {
|
|
55962
56330
|
label: "Shadow Color",
|
|
55963
56331
|
value: r.color,
|
|
55964
56332
|
onChange: (e) => i({ color: e })
|
|
@@ -55966,20 +56334,20 @@ var gW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
|
|
|
55966
56334
|
]
|
|
55967
56335
|
})]
|
|
55968
56336
|
});
|
|
55969
|
-
},
|
|
56337
|
+
}, jW = ({ onSelect: e }) => /* @__PURE__ */ P("div", {
|
|
55970
56338
|
className: "grid grid-cols-1 gap-2.5",
|
|
55971
|
-
children:
|
|
56339
|
+
children: E.map((t, n) => /* @__PURE__ */ P("button", {
|
|
55972
56340
|
onClick: () => e(t.widths),
|
|
55973
56341
|
className: "group w-full h-14 bg-[#09132a] border border-slate-700/80 hover:border-cyan-400 p-2 flex items-center justify-between transition",
|
|
55974
56342
|
children: /* @__PURE__ */ P("div", {
|
|
55975
56343
|
className: "flex-1 h-full",
|
|
55976
|
-
children: /* @__PURE__ */ P(
|
|
56344
|
+
children: /* @__PURE__ */ P(lW, {
|
|
55977
56345
|
widths: t.widths,
|
|
55978
56346
|
percentages: t.percentages
|
|
55979
56347
|
})
|
|
55980
56348
|
})
|
|
55981
56349
|
}, n))
|
|
55982
|
-
}),
|
|
56350
|
+
}), MW = ({ label: e, stylePrefix: t, styles: n, onChange: r, allowNegative: i = !1 }) => {
|
|
55983
56351
|
let a = i ? -500 : 0, o = {
|
|
55984
56352
|
all: t,
|
|
55985
56353
|
top: `${t}Top`,
|
|
@@ -56012,7 +56380,7 @@ var gW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
|
|
|
56012
56380
|
}), /* @__PURE__ */ F("div", {
|
|
56013
56381
|
className: "flex items-center gap-1.5",
|
|
56014
56382
|
children: [
|
|
56015
|
-
/* @__PURE__ */ P(
|
|
56383
|
+
/* @__PURE__ */ P(gW, {
|
|
56016
56384
|
filter: (e) => (e.key.includes("space-padding") || e.key.includes("space-gap") || e.key.includes("space-margin")) && (e.type === "dimension" || /px$|rem$|em$/.test(e.value)),
|
|
56017
56385
|
onSelect: h,
|
|
56018
56386
|
currentValue: `${u}px`
|
|
@@ -56032,7 +56400,7 @@ var gW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
|
|
|
56032
56400
|
}), s ? /* @__PURE__ */ F("div", {
|
|
56033
56401
|
className: "grid grid-cols-1 gap-2 mt-1.5",
|
|
56034
56402
|
children: [
|
|
56035
|
-
/* @__PURE__ */ P(
|
|
56403
|
+
/* @__PURE__ */ P(bW, {
|
|
56036
56404
|
label: "Top",
|
|
56037
56405
|
value: `${d}px`,
|
|
56038
56406
|
units: [
|
|
@@ -56044,7 +56412,7 @@ var gW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
|
|
|
56044
56412
|
min: a,
|
|
56045
56413
|
onChange: (e) => g(o.top, e)
|
|
56046
56414
|
}),
|
|
56047
|
-
/* @__PURE__ */ P(
|
|
56415
|
+
/* @__PURE__ */ P(bW, {
|
|
56048
56416
|
label: "Right",
|
|
56049
56417
|
value: `${m}px`,
|
|
56050
56418
|
units: [
|
|
@@ -56056,7 +56424,7 @@ var gW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
|
|
|
56056
56424
|
min: a,
|
|
56057
56425
|
onChange: (e) => g(o.right, e)
|
|
56058
56426
|
}),
|
|
56059
|
-
/* @__PURE__ */ P(
|
|
56427
|
+
/* @__PURE__ */ P(bW, {
|
|
56060
56428
|
label: "Bottom",
|
|
56061
56429
|
value: `${f}px`,
|
|
56062
56430
|
units: [
|
|
@@ -56068,7 +56436,7 @@ var gW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
|
|
|
56068
56436
|
min: a,
|
|
56069
56437
|
onChange: (e) => g(o.bottom, e)
|
|
56070
56438
|
}),
|
|
56071
|
-
/* @__PURE__ */ P(
|
|
56439
|
+
/* @__PURE__ */ P(bW, {
|
|
56072
56440
|
label: "Left",
|
|
56073
56441
|
value: `${p}px`,
|
|
56074
56442
|
units: [
|
|
@@ -56081,7 +56449,7 @@ var gW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
|
|
|
56081
56449
|
onChange: (e) => g(o.left, e)
|
|
56082
56450
|
})
|
|
56083
56451
|
]
|
|
56084
|
-
}) : /* @__PURE__ */ P(
|
|
56452
|
+
}) : /* @__PURE__ */ P(bW, {
|
|
56085
56453
|
label: "All Sides",
|
|
56086
56454
|
value: `${u}px`,
|
|
56087
56455
|
units: [
|
|
@@ -56094,7 +56462,7 @@ var gW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
|
|
|
56094
56462
|
onChange: h
|
|
56095
56463
|
})]
|
|
56096
56464
|
});
|
|
56097
|
-
},
|
|
56465
|
+
}, NW = ({ label: e, onUploadMock: t }) => /* @__PURE__ */ F("div", {
|
|
56098
56466
|
className: "py-1",
|
|
56099
56467
|
children: [/* @__PURE__ */ P("label", {
|
|
56100
56468
|
className: "text-xs text-slate-400 font-medium block mb-1.5",
|
|
@@ -56104,7 +56472,7 @@ var gW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
|
|
|
56104
56472
|
className: "w-full h-12 border border-dashed border-slate-800/60 hover:border-indigo-500 rounded-md flex flex-col items-center justify-center gap-0.5 text-slate-550 hover:text-indigo-400 bg-slate-950/20 hover:bg-indigo-500/[0.01] transition select-none text-[10px] font-semibold",
|
|
56105
56473
|
children: /* @__PURE__ */ P("span", { children: "Upload File" })
|
|
56106
56474
|
})]
|
|
56107
|
-
}),
|
|
56475
|
+
}), PW = { body: {
|
|
56108
56476
|
style: {
|
|
56109
56477
|
background: "#ffffffff",
|
|
56110
56478
|
padding: "32px"
|
|
@@ -56148,7 +56516,7 @@ var gW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
|
|
|
56148
56516
|
}]
|
|
56149
56517
|
}]
|
|
56150
56518
|
}]
|
|
56151
|
-
} },
|
|
56519
|
+
} }, FW = ({ apiKey: e, mode: t, onSave: n, isSavingLayout: r, setIsSavingLayout: i, normalizeTemplateWithDefaults: a, templateId: o, allowPublishLandingPage: s }) => {
|
|
56152
56520
|
let c = fe(() => JSON.parse(JSON.stringify(Ie.getState().template)), []), l = fe(async (t) => {
|
|
56153
56521
|
let n = c(), r = a(n);
|
|
56154
56522
|
if (t === "email") {
|
|
@@ -56174,7 +56542,7 @@ var gW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
|
|
|
56174
56542
|
}
|
|
56175
56543
|
return {
|
|
56176
56544
|
json: n,
|
|
56177
|
-
html:
|
|
56545
|
+
html: T(r)
|
|
56178
56546
|
};
|
|
56179
56547
|
}, [
|
|
56180
56548
|
e,
|
|
@@ -56222,8 +56590,8 @@ var gW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
|
|
|
56222
56590
|
exportDesign: l,
|
|
56223
56591
|
handleBuiltInSave: u
|
|
56224
56592
|
};
|
|
56225
|
-
},
|
|
56226
|
-
let [e, t] = A(() => typeof window < "u" ? window.innerWidth :
|
|
56593
|
+
}, IW = 1280, LW = (e) => e < 768 ? "mobile" : e < 1280 ? "tablet" : "desktop", RW = () => {
|
|
56594
|
+
let [e, t] = A(() => typeof window < "u" ? window.innerWidth : IW);
|
|
56227
56595
|
return O(() => {
|
|
56228
56596
|
if (typeof window > "u") return;
|
|
56229
56597
|
let e = null, n = () => {
|
|
@@ -56236,14 +56604,14 @@ var gW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
|
|
|
56236
56604
|
};
|
|
56237
56605
|
}, []), {
|
|
56238
56606
|
width: e,
|
|
56239
|
-
category:
|
|
56607
|
+
category: LW(e)
|
|
56240
56608
|
};
|
|
56241
|
-
},
|
|
56609
|
+
}, zW = (e) => {
|
|
56242
56610
|
let t = {};
|
|
56243
56611
|
return e.tokens.forEach((e) => {
|
|
56244
56612
|
t[e.cssVariableName] = e, t[e.id] = e;
|
|
56245
56613
|
}), t;
|
|
56246
|
-
},
|
|
56614
|
+
}, BW = (e, t) => {
|
|
56247
56615
|
let n = { ...e }, r = e.style || {}, i = {};
|
|
56248
56616
|
return Object.entries(r).forEach(([e, n]) => {
|
|
56249
56617
|
if (typeof n == "string" && t[n]) {
|
|
@@ -56251,7 +56619,7 @@ var gW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
|
|
|
56251
56619
|
i[e] = `var(${r.cssVariableName})`;
|
|
56252
56620
|
} else i[e] = n;
|
|
56253
56621
|
}), n.style = i, n;
|
|
56254
|
-
},
|
|
56622
|
+
}, VW = (e, t) => e.tokens.filter((e) => e.category === t), HW = (e) => `:root {\n${e.tokens.map((e) => ` ${e.cssVariableName}: ${e.value};`).join("\n")}\n}`, UW = (e, t) => e ? e.startsWith("var(") ? e : t[e] ? `var(${t[e].cssVariableName})` : e : "", WW = (e, t = "") => {
|
|
56255
56623
|
let n = "";
|
|
56256
56624
|
switch (e.category) {
|
|
56257
56625
|
case "color":
|
|
@@ -56273,10 +56641,10 @@ var gW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
|
|
|
56273
56641
|
}
|
|
56274
56642
|
return n;
|
|
56275
56643
|
};
|
|
56276
|
-
function
|
|
56644
|
+
function GW(e) {
|
|
56277
56645
|
return /^#[0-9a-fA-F]{3,8}$/.test(e) || /^rgb|^hsl/.test(e) ? "color" : /px$|rem$|em$|%$/.test(e) ? "spacing" : /^\d+(\.\d+)?$/.test(e) ? "number" : "string";
|
|
56278
56646
|
}
|
|
56279
|
-
async function
|
|
56647
|
+
async function KW(e, t) {
|
|
56280
56648
|
if (!e || !e.trim()) return !1;
|
|
56281
56649
|
try {
|
|
56282
56650
|
let n = `https://snapshot.strata.charisol.io/snapshots/${e}/strata.json`, r = await fetch(n);
|
|
@@ -56288,7 +56656,7 @@ async function VW(e, t) {
|
|
|
56288
56656
|
key: e,
|
|
56289
56657
|
name: t.name || e,
|
|
56290
56658
|
value: n,
|
|
56291
|
-
type: t.type ||
|
|
56659
|
+
type: t.type || GW(n)
|
|
56292
56660
|
};
|
|
56293
56661
|
})), !0;
|
|
56294
56662
|
} catch (e) {
|
|
@@ -56297,7 +56665,7 @@ async function VW(e, t) {
|
|
|
56297
56665
|
}
|
|
56298
56666
|
//#endregion
|
|
56299
56667
|
//#region src/components/PlexoBuilder.tsx
|
|
56300
|
-
var
|
|
56668
|
+
var qW = (e) => ({ body: {
|
|
56301
56669
|
style: {
|
|
56302
56670
|
background: "#0b0f19",
|
|
56303
56671
|
padding: "24px"
|
|
@@ -56320,11 +56688,11 @@ var HW = (e) => ({ body: {
|
|
|
56320
56688
|
}]
|
|
56321
56689
|
}]
|
|
56322
56690
|
}]
|
|
56323
|
-
} }),
|
|
56691
|
+
} }), JW = (e, t, n) => {
|
|
56324
56692
|
if (t === void 0 && n === void 0) return e;
|
|
56325
56693
|
let r = JSON.parse(JSON.stringify(e));
|
|
56326
56694
|
return r.body.style = r.body.style || {}, t !== void 0 && (r.body.style.customCss = t), n !== void 0 && (r.body.style.customJs = n), r;
|
|
56327
|
-
},
|
|
56695
|
+
}, YW = (e, t) => {
|
|
56328
56696
|
let n = e.trim(), r = n.match(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/);
|
|
56329
56697
|
if (r) {
|
|
56330
56698
|
let e = r[1], n = e.length === 3 ? e.split("").map((e) => `${e}${e}`).join("") : e;
|
|
@@ -56343,7 +56711,7 @@ var HW = (e) => ({ body: {
|
|
|
56343
56711
|
}
|
|
56344
56712
|
}
|
|
56345
56713
|
return `rgba(79, 70, 229, ${t})`;
|
|
56346
|
-
},
|
|
56714
|
+
}, XW = ({ title: e, plan: t }) => /* @__PURE__ */ F("div", {
|
|
56347
56715
|
className: "flex flex-col items-center justify-center gap-3 py-10 px-4 text-center rounded-lg border border-dashed",
|
|
56348
56716
|
style: { borderColor: "var(--builder-border-color)" },
|
|
56349
56717
|
children: [
|
|
@@ -56370,7 +56738,7 @@ var HW = (e) => ({ body: {
|
|
|
56370
56738
|
children: "Upgrade your plan to unlock this feature."
|
|
56371
56739
|
})
|
|
56372
56740
|
]
|
|
56373
|
-
}),
|
|
56741
|
+
}), ZW = (e, t = 1200, n = 1200, r = .8) => new Promise((i) => {
|
|
56374
56742
|
if (!e.type.startsWith("image/")) {
|
|
56375
56743
|
i(e);
|
|
56376
56744
|
return;
|
|
@@ -56403,13 +56771,13 @@ var HW = (e) => ({ body: {
|
|
|
56403
56771
|
}, "image/jpeg", r);
|
|
56404
56772
|
}, o.onerror = () => i(e), o.src = a.target?.result;
|
|
56405
56773
|
}, a.onerror = () => i(e), a.readAsDataURL(e);
|
|
56406
|
-
}),
|
|
56407
|
-
let { showSaveButton: r = !1, mode: i, apiKey: a, backgroundColor: o = "#0e1526", themeBgColor: s = "#4f46e5", themeFgColor: c = "#ffffff", textColor: l = "#e2e8f0", builderFontFamily: u = "'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif", initialTemplate: d, initialHtml: f, initialCss: p, initialJs: m, onSave: h, useAi: g, aiProvider: _, aiTier: v, externalUserId: y, onUpload: b, customUpload: x, disableImageUpload:
|
|
56774
|
+
}), QW = de((e, n) => {
|
|
56775
|
+
let { showSaveButton: r = !1, mode: i, apiKey: a, backgroundColor: o = "#0e1526", themeBgColor: s = "#4f46e5", themeFgColor: c = "#ffffff", textColor: l = "#e2e8f0", builderFontFamily: u = "'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif", initialTemplate: d, initialHtml: f, initialCss: p, initialJs: m, onSave: h, useAi: g, aiProvider: _, aiTier: v, externalUserId: y, onUpload: b, customUpload: x, disableImageUpload: ee = !1, autoSave: E = !1, autoSaveDuration: te = 3e3, unsplashKey: ie, pexelsKey: ae, pixabayKey: se, allowPublishLandingPage: ce = !1, templateId: D, headerLeftContent: le, headerRightContent: ue, mergeTags: de, isBlogLayout: fe = !1, readOnly: pe = !1, commentMode: _e = !1, onRequestComment: M } = e, ve = e.__internalPlan, ye = IH(a, ve), be = jH(ye.plan), xe = e.themeBgColor === void 0 ? ye.branding?.brandColor ?? s : s, Se = k(null), { template: Ce, selectedElementId: we, selectedRowId: I, selectedColumnId: L, past: Te, future: Ee, selectElement: R, selectRow: De, selectColumn: Oe, undo: ke, redo: Ne, hydrateTemplate: Pe, addRow: Fe, moveRow: Le, addElement: z, moveElement: ze, updateElement: Be, deleteElement: Ve, duplicateElement: Ue, deleteRow: We, duplicateRow: Ge, updateRowStyle: Ke, updateRowAttrs: qe, updateColumnStyle: Je, updateColumnAttrs: Ye, updateTemplateBodyStyle: Xe, updateRowColumns: Ze, updateColumnWidth: Qe, addColumnToRow: B, deleteColumnFromRow: V, duplicateColumn: $e, addUploadedImage: et, addNestedRowToColumn: tt, nestRowInColumn: nt, moveNestedRowToTopLevel: H, moveNestedRowBetweenColumns: U } = Ie(), [rt, it] = A(null), at = Ce?.body?.publishConfig?.apiKeyOverride ?? "", ot = () => at.trim() || a, st = (e) => typeof window < "u" && (window.location.hostname === "localhost" || window.location.hostname === "127.0.0.1") && window.location.port !== "3000" ? `http://localhost:3000${e}` : e, ct = (e, t) => {
|
|
56408
56776
|
it(t), It(e), R(null), De(null), Oe(null);
|
|
56409
56777
|
}, lt = {
|
|
56410
56778
|
useAi: Ce.body.aiConfig?.useAi ?? g,
|
|
56411
56779
|
tier: Ce.body.aiConfig?.tier || v
|
|
56412
|
-
}, ut = _ || ye.aiProvider, dt = ye.status === "valid" ? ye.manageLandingPagePublishing : ce, ft = i === "email" ? "EMAIL" : "LANDING_PAGE", [pt, mt] = A(null), [ht, gt] = A(je), [_t, vt] = A("desktop"), [yt, bt] = A("600px"), [xt, St] = A("imac"), [Ct, wt] = A("design"), [Tt, Et] = A(!1), Dt = pe || Tt, [Ot, kt] = A("light"), { width: At, category: jt } =
|
|
56780
|
+
}, ut = _ || ye.aiProvider, dt = ye.status === "valid" ? ye.manageLandingPagePublishing : ce, ft = i === "email" ? "EMAIL" : "LANDING_PAGE", [pt, mt] = A(null), [ht, gt] = A(je), [_t, vt] = A("desktop"), [yt, bt] = A("600px"), [xt, St] = A("imac"), [Ct, wt] = A("design"), [Tt, Et] = A(!1), Dt = pe || Tt, [Ot, kt] = A("light"), { width: At, category: jt } = RW(), Mt = jt !== "desktop", [Nt, Pt] = A(!1), [Ft, It] = A("content"), [Lt, Rt] = A("all"), [zt, Bt] = A([]), [Vt, Ht] = A(!1), [Ut, Wt] = A(null), [Gt, Kt] = A(0), [qt, Jt] = A(""), [Yt, Xt] = A(""), [Zt, Qt] = A([]);
|
|
56413
56781
|
O(() => {
|
|
56414
56782
|
let e = !1;
|
|
56415
56783
|
return (async () => {
|
|
@@ -56494,7 +56862,7 @@ var HW = (e) => ({ body: {
|
|
|
56494
56862
|
D,
|
|
56495
56863
|
a
|
|
56496
56864
|
]);
|
|
56497
|
-
let { sensors: Dn, getJson: On, exportDesign: kn, handleBuiltInSave: An } =
|
|
56865
|
+
let { sensors: Dn, getJson: On, exportDesign: kn, handleBuiltInSave: An } = FW({
|
|
56498
56866
|
apiKey: a,
|
|
56499
56867
|
mode: i,
|
|
56500
56868
|
onSave: h,
|
|
@@ -56530,7 +56898,7 @@ var HW = (e) => ({ body: {
|
|
|
56530
56898
|
getNodeRect: Mn,
|
|
56531
56899
|
getCanvasContainerRect: Nn
|
|
56532
56900
|
}), [kn, On]), O(() => {
|
|
56533
|
-
if (!
|
|
56901
|
+
if (!E || !h) return;
|
|
56534
56902
|
let e = setInterval(async () => {
|
|
56535
56903
|
try {
|
|
56536
56904
|
let e = await kn(i);
|
|
@@ -56541,14 +56909,14 @@ var HW = (e) => ({ body: {
|
|
|
56541
56909
|
}, te ?? 3e3);
|
|
56542
56910
|
return () => clearInterval(e);
|
|
56543
56911
|
}, [
|
|
56544
|
-
|
|
56912
|
+
E,
|
|
56545
56913
|
te,
|
|
56546
56914
|
kn,
|
|
56547
56915
|
i,
|
|
56548
56916
|
h
|
|
56549
56917
|
]), O(() => {
|
|
56550
56918
|
let e = f?.trim(), t, n, r = p === void 0 ? "__undefined__" : p, i = m === void 0 ? "__undefined__" : m;
|
|
56551
|
-
d ? (n = `json:${JSON.stringify(d)}:css:${r}:js:${i}`, t =
|
|
56919
|
+
d ? (n = `json:${JSON.stringify(d)}:css:${r}:js:${i}`, t = JW(d, p, m)) : e ? (n = `html:${e}:css:${r}:js:${i}`, t = JW(qW(e), p, m)) : (n = `demo:css:${r}:js:${i}`, t = JW(PW, p, m)), wn.current !== n && (wn.current = n, Pe(t));
|
|
56552
56920
|
}, [
|
|
56553
56921
|
d,
|
|
56554
56922
|
f,
|
|
@@ -56572,7 +56940,7 @@ var HW = (e) => ({ body: {
|
|
|
56572
56940
|
let e = Ce?.body?.style?.strataConfig?.projectId, t = typeof window < "u" ? localStorage.getItem("plexo-strata-config") : null, n = t ? JSON.parse(t) : null, r = e || n?.projectId;
|
|
56573
56941
|
if (r) {
|
|
56574
56942
|
let e = Ie.getState().setStrataTokens;
|
|
56575
|
-
|
|
56943
|
+
KW(r, e);
|
|
56576
56944
|
}
|
|
56577
56945
|
}, [(Ce?.body?.style)?.strataConfig?.projectId]), O(() => {
|
|
56578
56946
|
rn(null), on(null), sn.current && clearTimeout(sn.current);
|
|
@@ -56603,7 +56971,7 @@ var HW = (e) => ({ body: {
|
|
|
56603
56971
|
vt(At >= 768 ? "tablet" : "mobile");
|
|
56604
56972
|
return;
|
|
56605
56973
|
}
|
|
56606
|
-
_t === "custom" && (
|
|
56974
|
+
_t === "custom" && (w.find((e) => e.id === xt)?.width ?? (parseInt(yt, 10) || 0)) > At && vt(At >= 768 ? "tablet" : "mobile");
|
|
56607
56975
|
}
|
|
56608
56976
|
}, [
|
|
56609
56977
|
Mt,
|
|
@@ -57101,7 +57469,7 @@ var HW = (e) => ({ body: {
|
|
|
57101
57469
|
}
|
|
57102
57470
|
return;
|
|
57103
57471
|
}
|
|
57104
|
-
}, tr = (e, n, r) => /* @__PURE__ */ P(
|
|
57472
|
+
}, tr = (e, n, r) => /* @__PURE__ */ P(mW, {
|
|
57105
57473
|
row: e,
|
|
57106
57474
|
parentRowId: n,
|
|
57107
57475
|
parentColId: r,
|
|
@@ -57110,7 +57478,7 @@ var HW = (e) => ({ body: {
|
|
|
57110
57478
|
previewMode: Dt,
|
|
57111
57479
|
deviceView: _t,
|
|
57112
57480
|
selectedElementId: we,
|
|
57113
|
-
children: e.columns.map((i) => /* @__PURE__ */ P(
|
|
57481
|
+
children: e.columns.map((i) => /* @__PURE__ */ P(hW, {
|
|
57114
57482
|
col: i,
|
|
57115
57483
|
rowId: e.id,
|
|
57116
57484
|
parentRowId: n,
|
|
@@ -57189,7 +57557,7 @@ var HW = (e) => ({ body: {
|
|
|
57189
57557
|
})]
|
|
57190
57558
|
}) : /* @__PURE__ */ P(N, { children: t(i).map((t) => {
|
|
57191
57559
|
let n = i.elements.find((e) => e.id === t);
|
|
57192
|
-
if (n) return /* @__PURE__ */ P(
|
|
57560
|
+
if (n) return /* @__PURE__ */ P(vW, {
|
|
57193
57561
|
elem: n,
|
|
57194
57562
|
columnId: i.id,
|
|
57195
57563
|
rowId: e.id,
|
|
@@ -57279,13 +57647,13 @@ var HW = (e) => ({ body: {
|
|
|
57279
57647
|
}
|
|
57280
57648
|
return null;
|
|
57281
57649
|
}, rr = () => {
|
|
57282
|
-
if (
|
|
57650
|
+
if (ee) {
|
|
57283
57651
|
Fn("Image uploads are disabled.");
|
|
57284
57652
|
return;
|
|
57285
57653
|
}
|
|
57286
57654
|
Se.current && Se.current.click();
|
|
57287
57655
|
}, ir = () => {
|
|
57288
|
-
if (
|
|
57656
|
+
if (ee) {
|
|
57289
57657
|
Fn("Image uploads are disabled.");
|
|
57290
57658
|
return;
|
|
57291
57659
|
}
|
|
@@ -57293,7 +57661,7 @@ var HW = (e) => ({ body: {
|
|
|
57293
57661
|
}, ar = async (e) => {
|
|
57294
57662
|
let t = e.target.files?.[0];
|
|
57295
57663
|
if (!t) return;
|
|
57296
|
-
if (
|
|
57664
|
+
if (ee) {
|
|
57297
57665
|
Fn("Image uploads are disabled.");
|
|
57298
57666
|
return;
|
|
57299
57667
|
}
|
|
@@ -57301,7 +57669,7 @@ var HW = (e) => ({ body: {
|
|
|
57301
57669
|
let n = t.name;
|
|
57302
57670
|
try {
|
|
57303
57671
|
let e = t;
|
|
57304
|
-
t.type.startsWith("image/") && (Fn(`Compressing "${n}"...`), e = await
|
|
57672
|
+
t.type.startsWith("image/") && (Fn(`Compressing "${n}"...`), e = await ZW(t)), Fn(`Uploading "${n}"...`);
|
|
57305
57673
|
let r = "", i = x || b;
|
|
57306
57674
|
if (i) {
|
|
57307
57675
|
let t = await i(e);
|
|
@@ -57428,14 +57796,14 @@ var HW = (e) => ({ body: {
|
|
|
57428
57796
|
case "custom": return yt;
|
|
57429
57797
|
default: return Dt ? "1280px" : "100%";
|
|
57430
57798
|
}
|
|
57431
|
-
})(), _r = gr.endsWith("px") ? gr : "Auto", vr =
|
|
57799
|
+
})(), _r = gr.endsWith("px") ? gr : "Auto", vr = w.map((e) => ({
|
|
57432
57800
|
value: e.id,
|
|
57433
57801
|
label: e.label,
|
|
57434
57802
|
secondaryLabel: `${e.width}px`,
|
|
57435
57803
|
group: e.category,
|
|
57436
57804
|
disabled: e.width > At,
|
|
57437
57805
|
disabledReason: e.width > At ? "Requires a larger screen to preview" : void 0
|
|
57438
|
-
})), yr = Ot === "dark" ? W.body.style.darkBackground || "#0f172a" : W.body.style.background || W.body.style.backgroundColor || "#ffffff", br =
|
|
57806
|
+
})), yr = Ot === "dark" ? W.body.style.darkBackground || "#0f172a" : W.body.style.background || W.body.style.backgroundColor || "#ffffff", br = T(W), xr = ne(W), Sr = L ? ((e) => {
|
|
57439
57807
|
let t = (n) => {
|
|
57440
57808
|
for (let r of n) {
|
|
57441
57809
|
if (r.columns.some((t) => t.id === e)) return r;
|
|
@@ -57558,9 +57926,9 @@ var HW = (e) => ({ body: {
|
|
|
57558
57926
|
themeBgColor: xe,
|
|
57559
57927
|
textColor: l,
|
|
57560
57928
|
fontFamily: u,
|
|
57561
|
-
borderColor:
|
|
57562
|
-
panelColor:
|
|
57563
|
-
mutedTextColor:
|
|
57929
|
+
borderColor: YW(xe, .35),
|
|
57930
|
+
panelColor: YW(o, .68),
|
|
57931
|
+
mutedTextColor: YW(l, .76),
|
|
57564
57932
|
themeOnAccent: c,
|
|
57565
57933
|
inputBackground: c,
|
|
57566
57934
|
inputText: PH(c, l),
|
|
@@ -57744,9 +58112,9 @@ var HW = (e) => ({ body: {
|
|
|
57744
58112
|
"--builder-input-border": J.inputBorder,
|
|
57745
58113
|
"--theme-fg": J.themeOnAccent,
|
|
57746
58114
|
"--theme-accent": J.themeBgColor,
|
|
57747
|
-
"--theme-accent-strong":
|
|
57748
|
-
"--theme-accent-soft":
|
|
57749
|
-
"--theme-accent-border-soft":
|
|
58115
|
+
"--theme-accent-strong": YW(J.themeBgColor, .86),
|
|
58116
|
+
"--theme-accent-soft": YW(J.themeBgColor, .16),
|
|
58117
|
+
"--theme-accent-border-soft": YW(J.themeBgColor, .35),
|
|
57750
58118
|
"--theme-accent-text": J.themeOnAccent
|
|
57751
58119
|
},
|
|
57752
58120
|
children: [
|
|
@@ -57754,7 +58122,7 @@ var HW = (e) => ({ body: {
|
|
|
57754
58122
|
rel: "stylesheet",
|
|
57755
58123
|
href: Pn
|
|
57756
58124
|
}),
|
|
57757
|
-
bn && /* @__PURE__ */ P(
|
|
58125
|
+
bn && /* @__PURE__ */ P(cW, {
|
|
57758
58126
|
message: bn.message,
|
|
57759
58127
|
onClose: In
|
|
57760
58128
|
}),
|
|
@@ -57850,7 +58218,7 @@ var HW = (e) => ({ body: {
|
|
|
57850
58218
|
options: vr,
|
|
57851
58219
|
onTriggerClick: () => vt("custom"),
|
|
57852
58220
|
onChange: (e) => {
|
|
57853
|
-
let t =
|
|
58221
|
+
let t = w.find((t) => t.id === e);
|
|
57854
58222
|
t && (vt("custom"), St(t.id), bt(`${t.width}px`));
|
|
57855
58223
|
},
|
|
57856
58224
|
align: "right",
|
|
@@ -58010,7 +58378,7 @@ var HW = (e) => ({ body: {
|
|
|
58010
58378
|
fontFamily: W.body.style.fontFamily || "-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif"
|
|
58011
58379
|
},
|
|
58012
58380
|
className: `${Dt ? "min-h-[460px]" : "min-h-full"}`,
|
|
58013
|
-
children: /* @__PURE__ */ P(
|
|
58381
|
+
children: /* @__PURE__ */ P(uW, {
|
|
58014
58382
|
rowIds: hr,
|
|
58015
58383
|
disabled: Dt,
|
|
58016
58384
|
children: W.body.rows.length === 0 ? /* @__PURE__ */ F("div", {
|
|
@@ -58134,7 +58502,7 @@ var HW = (e) => ({ body: {
|
|
|
58134
58502
|
isOpen: $t.columnsSection,
|
|
58135
58503
|
onToggle: () => tn("columnsSection"),
|
|
58136
58504
|
contentClassName: "px-4 pb-4 pt-0 flex flex-col gap-0 bg-transparent",
|
|
58137
|
-
children: /* @__PURE__ */ P(
|
|
58505
|
+
children: /* @__PURE__ */ P(jW, { onSelect: (e) => Ze(lr.id, e) })
|
|
58138
58506
|
}),
|
|
58139
58507
|
/* @__PURE__ */ P(XH, {
|
|
58140
58508
|
title: "Row Properties",
|
|
@@ -58143,7 +58511,7 @@ var HW = (e) => ({ body: {
|
|
|
58143
58511
|
children: /* @__PURE__ */ F("div", {
|
|
58144
58512
|
className: "flex flex-col gap-1",
|
|
58145
58513
|
children: [
|
|
58146
|
-
/* @__PURE__ */ P(
|
|
58514
|
+
/* @__PURE__ */ P(bW, {
|
|
58147
58515
|
label: "Height",
|
|
58148
58516
|
value: q.height || "auto",
|
|
58149
58517
|
units: [
|
|
@@ -58156,26 +58524,62 @@ var HW = (e) => ({ body: {
|
|
|
58156
58524
|
max: 2e3,
|
|
58157
58525
|
onChange: (e) => G("height", e)
|
|
58158
58526
|
}),
|
|
58159
|
-
/* @__PURE__ */
|
|
58527
|
+
/* @__PURE__ */ F("div", {
|
|
58528
|
+
className: "flex items-center justify-between py-3 border-b border-slate-800/10 last:border-b-0",
|
|
58529
|
+
children: [/* @__PURE__ */ P("span", {
|
|
58530
|
+
className: "text-sm text-slate-300 font-semibold leading-5 tracking-[0.01em]",
|
|
58531
|
+
children: "Vertical Align"
|
|
58532
|
+
}), /* @__PURE__ */ P("div", {
|
|
58533
|
+
className: "flex items-center gap-1",
|
|
58534
|
+
children: [
|
|
58535
|
+
{
|
|
58536
|
+
value: "flex-start",
|
|
58537
|
+
label: "Top",
|
|
58538
|
+
icon: "⬆"
|
|
58539
|
+
},
|
|
58540
|
+
{
|
|
58541
|
+
value: "center",
|
|
58542
|
+
label: "Center",
|
|
58543
|
+
icon: "⬍"
|
|
58544
|
+
},
|
|
58545
|
+
{
|
|
58546
|
+
value: "flex-end",
|
|
58547
|
+
label: "Bottom",
|
|
58548
|
+
icon: "⬇"
|
|
58549
|
+
},
|
|
58550
|
+
{
|
|
58551
|
+
value: "stretch",
|
|
58552
|
+
label: "Stretch",
|
|
58553
|
+
icon: "↕"
|
|
58554
|
+
}
|
|
58555
|
+
].map((e) => /* @__PURE__ */ P("button", {
|
|
58556
|
+
title: e.label,
|
|
58557
|
+
onClick: () => G("alignItems", e.value),
|
|
58558
|
+
className: `h-6 w-8 rounded text-[11px] transition border ${(q.alignItems || "stretch") === e.value ? "bg-indigo-600 border-indigo-500 text-white" : "bg-slate-900 border-slate-700 text-slate-400 hover:text-white"}`,
|
|
58559
|
+
children: e.icon
|
|
58560
|
+
}, e.value))
|
|
58561
|
+
})]
|
|
58562
|
+
}),
|
|
58563
|
+
/* @__PURE__ */ P(_W, {
|
|
58160
58564
|
label: "Background Color",
|
|
58161
58565
|
value: q.backgroundColor || "#ffffff",
|
|
58162
58566
|
onChange: (e) => G("backgroundColor", e)
|
|
58163
58567
|
}),
|
|
58164
|
-
/* @__PURE__ */ P(
|
|
58568
|
+
/* @__PURE__ */ P(_W, {
|
|
58165
58569
|
label: "Content Background Color",
|
|
58166
58570
|
value: q.contentBackgroundColor || "#ffffff",
|
|
58167
58571
|
onChange: (e) => G("contentBackgroundColor", e)
|
|
58168
58572
|
}),
|
|
58169
|
-
/* @__PURE__ */ P(
|
|
58573
|
+
/* @__PURE__ */ P(SW, {
|
|
58170
58574
|
label: "Content Alignment",
|
|
58171
58575
|
value: q.textAlign || "left",
|
|
58172
58576
|
onChange: (e) => G("textAlign", e)
|
|
58173
58577
|
}),
|
|
58174
|
-
/* @__PURE__ */ P(
|
|
58578
|
+
/* @__PURE__ */ P(NW, {
|
|
58175
58579
|
label: "Upload background",
|
|
58176
58580
|
onUploadMock: rr
|
|
58177
58581
|
}),
|
|
58178
|
-
/* @__PURE__ */ P(
|
|
58582
|
+
/* @__PURE__ */ P(CW, {
|
|
58179
58583
|
label: "Image URL",
|
|
58180
58584
|
value: (() => {
|
|
58181
58585
|
let e = q.backgroundImage || "", t = e.match(/^url\(['"]?([^'"\)]+)['"]?\)$/);
|
|
@@ -58195,27 +58599,24 @@ var HW = (e) => ({ body: {
|
|
|
58195
58599
|
});
|
|
58196
58600
|
}
|
|
58197
58601
|
}),
|
|
58198
|
-
/* @__PURE__ */ P(
|
|
58602
|
+
/* @__PURE__ */ P(MW, {
|
|
58199
58603
|
label: "Padding",
|
|
58200
58604
|
stylePrefix: "padding",
|
|
58201
58605
|
styles: q,
|
|
58202
58606
|
onChange: G
|
|
58203
58607
|
}),
|
|
58204
|
-
/* @__PURE__ */ P(
|
|
58608
|
+
/* @__PURE__ */ P(MW, {
|
|
58205
58609
|
label: "Margin",
|
|
58206
58610
|
stylePrefix: "margin",
|
|
58207
58611
|
styles: q,
|
|
58208
58612
|
onChange: G,
|
|
58209
58613
|
allowNegative: !0
|
|
58210
58614
|
}),
|
|
58211
|
-
/* @__PURE__ */ P(
|
|
58212
|
-
|
|
58213
|
-
|
|
58214
|
-
min: 0,
|
|
58215
|
-
max: 12,
|
|
58216
|
-
onChange: (e) => G("borderWidth", e)
|
|
58615
|
+
/* @__PURE__ */ P(EW, {
|
|
58616
|
+
styles: q,
|
|
58617
|
+
onChange: G
|
|
58217
58618
|
}),
|
|
58218
|
-
/* @__PURE__ */ P(
|
|
58619
|
+
/* @__PURE__ */ P(xW, {
|
|
58219
58620
|
label: "Border Style",
|
|
58220
58621
|
value: q.borderStyle || "solid",
|
|
58221
58622
|
options: [
|
|
@@ -58238,12 +58639,12 @@ var HW = (e) => ({ body: {
|
|
|
58238
58639
|
],
|
|
58239
58640
|
onChange: (e) => G("borderStyle", e)
|
|
58240
58641
|
}),
|
|
58241
|
-
/* @__PURE__ */ P(
|
|
58642
|
+
/* @__PURE__ */ P(_W, {
|
|
58242
58643
|
label: "Border Color",
|
|
58243
58644
|
value: q.borderColor || "#e2e8f0",
|
|
58244
58645
|
onChange: (e) => G("borderColor", e)
|
|
58245
58646
|
}),
|
|
58246
|
-
/* @__PURE__ */ P(
|
|
58647
|
+
/* @__PURE__ */ P(TW, {
|
|
58247
58648
|
styles: q,
|
|
58248
58649
|
onChange: G
|
|
58249
58650
|
})
|
|
@@ -58256,13 +58657,13 @@ var HW = (e) => ({ body: {
|
|
|
58256
58657
|
onToggle: () => tn("actions"),
|
|
58257
58658
|
children: /* @__PURE__ */ F("div", {
|
|
58258
58659
|
className: "flex flex-col gap-1",
|
|
58259
|
-
children: [/* @__PURE__ */ P(
|
|
58660
|
+
children: [/* @__PURE__ */ P(CW, {
|
|
58260
58661
|
label: "HTML ID",
|
|
58261
58662
|
value: lr?.htmlId || "",
|
|
58262
58663
|
onChange: (e) => {
|
|
58263
58664
|
I && qe(I, { htmlId: e });
|
|
58264
58665
|
}
|
|
58265
|
-
}), /* @__PURE__ */ P(
|
|
58666
|
+
}), /* @__PURE__ */ P(CW, {
|
|
58266
58667
|
label: "HTML Class Names",
|
|
58267
58668
|
value: lr?.htmlClass || "",
|
|
58268
58669
|
onChange: (e) => {
|
|
@@ -58316,7 +58717,7 @@ var HW = (e) => ({ body: {
|
|
|
58316
58717
|
children: /* @__PURE__ */ F("div", {
|
|
58317
58718
|
className: "flex flex-col gap-1",
|
|
58318
58719
|
children: [
|
|
58319
|
-
/* @__PURE__ */ P(
|
|
58720
|
+
/* @__PURE__ */ P(bW, {
|
|
58320
58721
|
label: "Width",
|
|
58321
58722
|
value: ur?.width || "100%",
|
|
58322
58723
|
units: [
|
|
@@ -58331,7 +58732,7 @@ var HW = (e) => ({ body: {
|
|
|
58331
58732
|
L && e && Qe(L, e);
|
|
58332
58733
|
}
|
|
58333
58734
|
}),
|
|
58334
|
-
/* @__PURE__ */ P(
|
|
58735
|
+
/* @__PURE__ */ P(bW, {
|
|
58335
58736
|
label: "Height",
|
|
58336
58737
|
value: q.height || "auto",
|
|
58337
58738
|
units: [
|
|
@@ -58378,7 +58779,7 @@ var HW = (e) => ({ body: {
|
|
|
58378
58779
|
})]
|
|
58379
58780
|
}),
|
|
58380
58781
|
q.display === "flex" && /* @__PURE__ */ F(N, { children: [
|
|
58381
|
-
/* @__PURE__ */ P(
|
|
58782
|
+
/* @__PURE__ */ P(bW, {
|
|
58382
58783
|
label: "Gap",
|
|
58383
58784
|
value: q.gap || "10px",
|
|
58384
58785
|
units: [
|
|
@@ -58463,32 +58864,29 @@ var HW = (e) => ({ body: {
|
|
|
58463
58864
|
}, e.value))
|
|
58464
58865
|
})]
|
|
58465
58866
|
}),
|
|
58466
|
-
/* @__PURE__ */ P(
|
|
58867
|
+
/* @__PURE__ */ P(_W, {
|
|
58467
58868
|
label: "Background Color",
|
|
58468
58869
|
value: q.backgroundColor || "transparent",
|
|
58469
58870
|
onChange: (e) => G("backgroundColor", e)
|
|
58470
58871
|
}),
|
|
58471
|
-
/* @__PURE__ */ P(
|
|
58872
|
+
/* @__PURE__ */ P(MW, {
|
|
58472
58873
|
label: "Padding",
|
|
58473
58874
|
stylePrefix: "padding",
|
|
58474
58875
|
styles: q,
|
|
58475
58876
|
onChange: G
|
|
58476
58877
|
}),
|
|
58477
|
-
/* @__PURE__ */ P(
|
|
58878
|
+
/* @__PURE__ */ P(MW, {
|
|
58478
58879
|
label: "Margin",
|
|
58479
58880
|
stylePrefix: "margin",
|
|
58480
58881
|
styles: q,
|
|
58481
58882
|
onChange: G,
|
|
58482
58883
|
allowNegative: !0
|
|
58483
58884
|
}),
|
|
58484
|
-
/* @__PURE__ */ P(
|
|
58485
|
-
|
|
58486
|
-
|
|
58487
|
-
min: 0,
|
|
58488
|
-
max: 12,
|
|
58489
|
-
onChange: (e) => G("borderWidth", e)
|
|
58885
|
+
/* @__PURE__ */ P(EW, {
|
|
58886
|
+
styles: q,
|
|
58887
|
+
onChange: G
|
|
58490
58888
|
}),
|
|
58491
|
-
/* @__PURE__ */ P(
|
|
58889
|
+
/* @__PURE__ */ P(xW, {
|
|
58492
58890
|
label: "Border Style",
|
|
58493
58891
|
value: q.borderStyle || "solid",
|
|
58494
58892
|
options: [
|
|
@@ -58511,25 +58909,25 @@ var HW = (e) => ({ body: {
|
|
|
58511
58909
|
],
|
|
58512
58910
|
onChange: (e) => G("borderStyle", e)
|
|
58513
58911
|
}),
|
|
58514
|
-
/* @__PURE__ */ P(
|
|
58912
|
+
/* @__PURE__ */ P(_W, {
|
|
58515
58913
|
label: "Border Color",
|
|
58516
58914
|
value: q.borderColor || "#cbd5e1",
|
|
58517
58915
|
onChange: (e) => G("borderColor", e)
|
|
58518
58916
|
}),
|
|
58519
|
-
/* @__PURE__ */ P(
|
|
58917
|
+
/* @__PURE__ */ P(TW, {
|
|
58520
58918
|
styles: q,
|
|
58521
58919
|
onChange: G
|
|
58522
58920
|
}),
|
|
58523
|
-
/* @__PURE__ */ P(
|
|
58921
|
+
/* @__PURE__ */ P(AW, {
|
|
58524
58922
|
styles: q,
|
|
58525
58923
|
onChange: G
|
|
58526
58924
|
}),
|
|
58527
|
-
/* @__PURE__ */ P(
|
|
58925
|
+
/* @__PURE__ */ P(CW, {
|
|
58528
58926
|
label: "HTML ID",
|
|
58529
58927
|
value: dr.htmlId || "",
|
|
58530
58928
|
onChange: (e) => Wn("htmlId", e)
|
|
58531
58929
|
}),
|
|
58532
|
-
/* @__PURE__ */ P(
|
|
58930
|
+
/* @__PURE__ */ P(CW, {
|
|
58533
58931
|
label: "HTML Class Names",
|
|
58534
58932
|
value: dr.htmlClass || "",
|
|
58535
58933
|
onChange: (e) => Wn("htmlClass", e)
|
|
@@ -58547,7 +58945,7 @@ var HW = (e) => ({ body: {
|
|
|
58547
58945
|
]
|
|
58548
58946
|
})
|
|
58549
58947
|
})] }),
|
|
58550
|
-
/* @__PURE__ */ P(
|
|
58948
|
+
/* @__PURE__ */ P(sW, {
|
|
58551
58949
|
selectedElement: K,
|
|
58552
58950
|
currentAttrs: dr,
|
|
58553
58951
|
currentStyles: q,
|
|
@@ -58556,18 +58954,19 @@ var HW = (e) => ({ body: {
|
|
|
58556
58954
|
onTransientAttrChange: Wn,
|
|
58557
58955
|
onTransientStyleChange: G,
|
|
58558
58956
|
AccordionSection: XH,
|
|
58559
|
-
InlineTextInput:
|
|
58560
|
-
InlineSelect:
|
|
58561
|
-
InlineColorPicker:
|
|
58562
|
-
InlineAlignment:
|
|
58563
|
-
InlineCounter:
|
|
58957
|
+
InlineTextInput: CW,
|
|
58958
|
+
InlineSelect: xW,
|
|
58959
|
+
InlineColorPicker: _W,
|
|
58960
|
+
InlineAlignment: SW,
|
|
58961
|
+
InlineCounter: bW,
|
|
58564
58962
|
Toggle: hU,
|
|
58565
|
-
InlineTextArea:
|
|
58566
|
-
SpacingControls:
|
|
58567
|
-
BorderRadiusControls:
|
|
58568
|
-
|
|
58963
|
+
InlineTextArea: wW,
|
|
58964
|
+
SpacingControls: MW,
|
|
58965
|
+
BorderRadiusControls: TW,
|
|
58966
|
+
BorderSideControls: EW,
|
|
58967
|
+
BoxShadowControls: AW,
|
|
58569
58968
|
handleUploadMock: rr,
|
|
58570
|
-
disableImageUpload:
|
|
58969
|
+
disableImageUpload: ee,
|
|
58571
58970
|
onOpenImageLibrary: ct,
|
|
58572
58971
|
ICONS: X,
|
|
58573
58972
|
aiPromptText: fn,
|
|
@@ -58605,7 +59004,7 @@ var HW = (e) => ({ body: {
|
|
|
58605
59004
|
}),
|
|
58606
59005
|
Ft === "blocks" && /* @__PURE__ */ P(YH, {
|
|
58607
59006
|
DraggablePaletteItem: eU,
|
|
58608
|
-
LayoutPreview:
|
|
59007
|
+
LayoutPreview: lW,
|
|
58609
59008
|
tierFeatures: be,
|
|
58610
59009
|
onTapAdd: jt === "mobile" ? Yn : void 0
|
|
58611
59010
|
}),
|
|
@@ -58617,15 +59016,15 @@ var HW = (e) => ({ body: {
|
|
|
58617
59016
|
ICONS: X,
|
|
58618
59017
|
handleUploadMock: rr,
|
|
58619
59018
|
handleUploadFavicon: ir,
|
|
58620
|
-
disableImageUpload:
|
|
59019
|
+
disableImageUpload: ee,
|
|
58621
59020
|
onOpenImageLibrary: ct,
|
|
58622
|
-
InlineColorPicker:
|
|
58623
|
-
InlineAlignment:
|
|
58624
|
-
InlineSelect:
|
|
59021
|
+
InlineColorPicker: _W,
|
|
59022
|
+
InlineAlignment: SW,
|
|
59023
|
+
InlineSelect: xW,
|
|
58625
59024
|
Toggle: hU,
|
|
58626
|
-
InlineTextInput:
|
|
58627
|
-
InlineTextArea:
|
|
58628
|
-
SpacingControls:
|
|
59025
|
+
InlineTextInput: CW,
|
|
59026
|
+
InlineTextArea: wW,
|
|
59027
|
+
SpacingControls: MW,
|
|
58629
59028
|
notify: Fn
|
|
58630
59029
|
}),
|
|
58631
59030
|
Ft === "images" && (be.stockImagesEnabled ? /* @__PURE__ */ P(QH, {
|
|
@@ -58641,13 +59040,13 @@ var HW = (e) => ({ body: {
|
|
|
58641
59040
|
applyImageToSelection: Or,
|
|
58642
59041
|
ICONS: X,
|
|
58643
59042
|
panelBackgroundColor: o
|
|
58644
|
-
}) : /* @__PURE__ */ P(
|
|
59043
|
+
}) : /* @__PURE__ */ P(XW, {
|
|
58645
59044
|
title: "Stock Images",
|
|
58646
59045
|
plan: "PRO"
|
|
58647
59046
|
})),
|
|
58648
59047
|
Ft === "uploads" && /* @__PURE__ */ P($H, {
|
|
58649
59048
|
handleUploadMock: rr,
|
|
58650
|
-
disableImageUpload:
|
|
59049
|
+
disableImageUpload: ee,
|
|
58651
59050
|
searchUploadQuery: Yt,
|
|
58652
59051
|
setSearchUploadQuery: Xt,
|
|
58653
59052
|
filteredUploadedImages: Er,
|
|
@@ -58656,7 +59055,7 @@ var HW = (e) => ({ body: {
|
|
|
58656
59055
|
ICONS: X,
|
|
58657
59056
|
panelBackgroundColor: o
|
|
58658
59057
|
}),
|
|
58659
|
-
Ft === "strata" && (be.strataEnabled ? /* @__PURE__ */ P(fU, {}) : /* @__PURE__ */ P(
|
|
59058
|
+
Ft === "strata" && (be.strataEnabled ? /* @__PURE__ */ P(fU, {}) : /* @__PURE__ */ P(XW, {
|
|
58660
59059
|
title: "Strata Design System",
|
|
58661
59060
|
plan: "PRO"
|
|
58662
59061
|
})),
|
|
@@ -58799,10 +59198,10 @@ var HW = (e) => ({ body: {
|
|
|
58799
59198
|
})
|
|
58800
59199
|
});
|
|
58801
59200
|
});
|
|
58802
|
-
|
|
59201
|
+
QW.displayName = "PlexoBuilder";
|
|
58803
59202
|
//#endregion
|
|
58804
59203
|
//#region src/playground.tsx
|
|
58805
|
-
var
|
|
59204
|
+
var $W = de((e, t) => {
|
|
58806
59205
|
let n = k(null), r = k(null), i = k(null), [a, o] = A(1), s = k(1), [c, l] = A(!0);
|
|
58807
59206
|
return me(t, () => ({
|
|
58808
59207
|
exportDesign: async (e) => {
|
|
@@ -58857,13 +59256,13 @@ var JW = de((e, t) => {
|
|
|
58857
59256
|
width: "100%",
|
|
58858
59257
|
height: "100%"
|
|
58859
59258
|
},
|
|
58860
|
-
children: /* @__PURE__ */ P(
|
|
59259
|
+
children: /* @__PURE__ */ P(QW, {
|
|
58861
59260
|
ref: n,
|
|
58862
59261
|
...e
|
|
58863
59262
|
})
|
|
58864
59263
|
})]
|
|
58865
59264
|
});
|
|
58866
59265
|
});
|
|
58867
|
-
|
|
59266
|
+
$W.displayName = "PlexoBuilder";
|
|
58868
59267
|
//#endregion
|
|
58869
|
-
export { NV as ColumnJSONSchema, MV as ElementJSONSchema,
|
|
59268
|
+
export { NV as ColumnJSONSchema, MV as ElementJSONSchema, $W as PlexoBuilder, tH as PlexoRenderer, PV as RowJSONSchema, UV as SafeHTML, zV as TemplateJSONSchema, BW as applyTokensToElement, T as compileToHTML, y as compileToHTMLWithStrataAuto, ne as compileToPlainText, zW as createTokenMapping, WW as createTokenSwatch, HW as generateTokenCSS, VW as getTokensByCategory, ae as injectStrataBundle, ce as parseJsonToTargetFormat, UW as resolveTokenValue, DV as safeJsonParse, HV as sanitizeHtml, EV as sanitizeObject, VV as sanitizeStyleObject, BV as sanitizeStyleString };
|