@charisol/plexo-sdk 1.1.10 → 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/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",
|
|
@@ -53933,7 +53921,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
53933
53921
|
parentColId: i
|
|
53934
53922
|
},
|
|
53935
53923
|
disabled: s
|
|
53936
|
-
}), 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 ? {
|
|
53937
53925
|
display: _,
|
|
53938
53926
|
flexDirection: g.flexDirection,
|
|
53939
53927
|
flexWrap: g.flexWrap,
|
|
@@ -53948,7 +53936,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
53948
53936
|
onClick: (t) => {
|
|
53949
53937
|
s || (t.stopPropagation(), o(e.id));
|
|
53950
53938
|
},
|
|
53951
|
-
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"}`,
|
|
53952
53940
|
style: {
|
|
53953
53941
|
width: e.width,
|
|
53954
53942
|
...g
|
|
@@ -54152,7 +54140,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
54152
54140
|
g.current && b(e.clientX, e.clientY);
|
|
54153
54141
|
}, C = () => {
|
|
54154
54142
|
g.current = !1;
|
|
54155
|
-
},
|
|
54143
|
+
}, ee = (e) => {
|
|
54156
54144
|
if (!l.current) return;
|
|
54157
54145
|
let t = l.current.getBoundingClientRect(), n = Math.max(0, Math.min(1, (e - t.left) / t.width)), r = Math.round(n * 360), i = {
|
|
54158
54146
|
...m,
|
|
@@ -54161,11 +54149,11 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
54161
54149
|
h(i);
|
|
54162
54150
|
let a = _(i.h, i.s, i.v);
|
|
54163
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));
|
|
54164
54154
|
}, T = (e) => {
|
|
54165
|
-
|
|
54166
|
-
}, E = (
|
|
54167
|
-
g.current && w(e.clientX);
|
|
54168
|
-
}, ee = () => {
|
|
54155
|
+
g.current && ee(e.clientX);
|
|
54156
|
+
}, E = () => {
|
|
54169
54157
|
g.current = !1;
|
|
54170
54158
|
};
|
|
54171
54159
|
return /* @__PURE__ */ F("div", {
|
|
@@ -54241,10 +54229,10 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
54241
54229
|
}),
|
|
54242
54230
|
/* @__PURE__ */ P("div", {
|
|
54243
54231
|
ref: l,
|
|
54244
|
-
onPointerDown:
|
|
54245
|
-
onPointerMove:
|
|
54246
|
-
onPointerUp:
|
|
54247
|
-
onPointerCancel:
|
|
54232
|
+
onPointerDown: w,
|
|
54233
|
+
onPointerMove: T,
|
|
54234
|
+
onPointerUp: E,
|
|
54235
|
+
onPointerCancel: E,
|
|
54248
54236
|
className: `relative w-full h-2 rounded-full cursor-pointer select-none ${u ? "opacity-20 pointer-events-none" : ""}`,
|
|
54249
54237
|
style: {
|
|
54250
54238
|
background: "linear-gradient(to right, #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%)",
|
|
@@ -54326,7 +54314,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
54326
54314
|
]
|
|
54327
54315
|
})]
|
|
54328
54316
|
});
|
|
54329
|
-
}, 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:
|
|
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" }) => {
|
|
54330
54318
|
let { attributes: M, listeners: ve, setNodeRef: ye, transform: be, transition: xe, isDragging: Se, isOver: Ce } = L({
|
|
54331
54319
|
id: t.id,
|
|
54332
54320
|
data: {
|
|
@@ -54335,7 +54323,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
54335
54323
|
columnId: r,
|
|
54336
54324
|
rowId: o
|
|
54337
54325
|
},
|
|
54338
|
-
disabled:
|
|
54326
|
+
disabled: T
|
|
54339
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({
|
|
54340
54328
|
apiKey: re || "",
|
|
54341
54329
|
templateKind: ae || "LANDING_PAGE",
|
|
@@ -54382,7 +54370,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
54382
54370
|
} else document.execCommand(e);
|
|
54383
54371
|
}, $e = /* @__PURE__ */ "😀.😁.😂.😃.😄.😅.😆.😉.😊.😋.😎.😍.😘.🥰.😗.😙.😚.🙂.🤗.🤩.🤔.🤨.😐.😑.😶.🙄.😏.😣.😥.😮.🤐.😯.😪.😫.🥱.😴.😌.😛.😜.😝.🤤.😒.😓.😔.😕.🙃.🫠.🤑.😲.☹️.🙁.😖.😞.😟.😤.😢.😭.😦.😧.😨.😩.🤯.😬.😮💨.😰.😱.🥵.🥶.😳.🤪.😵.😵💫.🥴.😠.😡.🤬.😷.🤒.🤕.🤢.🤮.🤧.😇.🥳.🥸.🥺.🤠.🤡.🤥.🤫.🤭.🧐.🤓.😈.👿.👹.👺.💀.☠️.👻.👽.👾.🤖.💩.😺.😸.😹.😻.😼.😽.🙀.😿.😾.🙈.🙉.🙊.🔥.⭐.✨.🎉.🚀.💡.❤️.👍.🙌.👏.✔️.⚡.⚠️.✉️.📞.📍.🏆.🎯.💎.📌.🔔.📣.🎁.🛒".split("."), et = async (e) => {
|
|
54384
54372
|
if (e.preventDefault(), Oe.trim()) {
|
|
54385
|
-
if (
|
|
54373
|
+
if (E === !1) {
|
|
54386
54374
|
fe?.("You do not have enough tokens to perform this action.");
|
|
54387
54375
|
return;
|
|
54388
54376
|
}
|
|
@@ -54459,7 +54447,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
54459
54447
|
})]
|
|
54460
54448
|
}), e.kind === "textarea" ? /* @__PURE__ */ P("textarea", {
|
|
54461
54449
|
placeholder: e.placeholder || "Write here",
|
|
54462
|
-
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"}`,
|
|
54463
54451
|
style: {
|
|
54464
54452
|
minHeight: "92px",
|
|
54465
54453
|
borderRadius: e.borderRadius || "12px",
|
|
@@ -54470,11 +54458,11 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
54470
54458
|
backgroundColor: "var(--builder-input-bg)",
|
|
54471
54459
|
"--placeholder-color": e.placeholderColor || "#94a3b8"
|
|
54472
54460
|
},
|
|
54473
|
-
readOnly: !
|
|
54461
|
+
readOnly: !T
|
|
54474
54462
|
}) : e.kind === "select" ? /* @__PURE__ */ F("div", {
|
|
54475
54463
|
className: "relative",
|
|
54476
54464
|
children: [/* @__PURE__ */ P("select", {
|
|
54477
|
-
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"}`,
|
|
54478
54466
|
style: {
|
|
54479
54467
|
borderRadius: e.borderRadius || "12px",
|
|
54480
54468
|
fontSize: e.fontSize || "13px",
|
|
@@ -54483,7 +54471,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
54483
54471
|
color: e.inputTextColor || "var(--builder-input-text)",
|
|
54484
54472
|
backgroundColor: "var(--builder-input-bg)"
|
|
54485
54473
|
},
|
|
54486
|
-
disabled: !
|
|
54474
|
+
disabled: !T,
|
|
54487
54475
|
children: (e.options || []).map((e) => /* @__PURE__ */ P("option", {
|
|
54488
54476
|
value: e.value,
|
|
54489
54477
|
children: e.label
|
|
@@ -54495,7 +54483,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
54495
54483
|
}) : e.kind === "radio" || e.kind === "checkbox" ? /* @__PURE__ */ P("div", {
|
|
54496
54484
|
className: "flex flex-wrap gap-2",
|
|
54497
54485
|
children: (e.options || []).map((t) => /* @__PURE__ */ F("label", {
|
|
54498
|
-
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"}`,
|
|
54499
54487
|
style: {
|
|
54500
54488
|
borderRadius: e.borderRadius || "9999px",
|
|
54501
54489
|
fontSize: e.fontSize || "11px",
|
|
@@ -54504,7 +54492,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
54504
54492
|
color: e.inputTextColor || "var(--builder-input-text)",
|
|
54505
54493
|
backgroundColor: "var(--builder-input-bg)"
|
|
54506
54494
|
},
|
|
54507
|
-
children: [
|
|
54495
|
+
children: [T ? /* @__PURE__ */ P("input", {
|
|
54508
54496
|
type: e.kind,
|
|
54509
54497
|
className: `h-3.5 w-3.5 ${e.kind === "radio" ? "rounded-full" : "rounded-sm"} border-slate-350 accent-slate-900`,
|
|
54510
54498
|
name: e.id
|
|
@@ -54517,7 +54505,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
54517
54505
|
"date"
|
|
54518
54506
|
].includes(e.kind) ? e.kind : "text",
|
|
54519
54507
|
placeholder: e.placeholder || "Type here",
|
|
54520
|
-
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"}`,
|
|
54521
54509
|
style: {
|
|
54522
54510
|
borderRadius: e.borderRadius || "12px",
|
|
54523
54511
|
fontSize: e.fontSize || "13px",
|
|
@@ -54527,7 +54515,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
54527
54515
|
backgroundColor: "var(--builder-input-bg)",
|
|
54528
54516
|
"--placeholder-color": e.placeholderColor || "#94a3b8"
|
|
54529
54517
|
},
|
|
54530
|
-
readOnly: !
|
|
54518
|
+
readOnly: !T
|
|
54531
54519
|
})]
|
|
54532
54520
|
}, e.id)) : null;
|
|
54533
54521
|
return /* @__PURE__ */ F("div", {
|
|
@@ -54536,21 +54524,21 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
54536
54524
|
"data-plexo-node-type": "element",
|
|
54537
54525
|
style: at,
|
|
54538
54526
|
onFocusCapture: () => {
|
|
54539
|
-
|
|
54527
|
+
T || h(t.id);
|
|
54540
54528
|
},
|
|
54541
54529
|
onClickCapture: () => {
|
|
54542
|
-
|
|
54530
|
+
T || h(t.id);
|
|
54543
54531
|
},
|
|
54544
54532
|
onClick: (e) => {
|
|
54545
|
-
|
|
54533
|
+
T || (e.stopPropagation(), h(t.id));
|
|
54546
54534
|
},
|
|
54547
54535
|
onMouseEnter: (e) => {
|
|
54548
|
-
|
|
54536
|
+
T || (e.stopPropagation(), Te(!0));
|
|
54549
54537
|
},
|
|
54550
54538
|
onMouseLeave: () => Te(!1),
|
|
54551
|
-
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" : ""}`,
|
|
54552
54540
|
children: [
|
|
54553
|
-
!
|
|
54541
|
+
!T && ot && ct && /* @__PURE__ */ F("div", {
|
|
54554
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"}`,
|
|
54555
54543
|
onClick: (e) => e.stopPropagation(),
|
|
54556
54544
|
children: [/* @__PURE__ */ F("div", {
|
|
@@ -54837,7 +54825,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
54837
54825
|
]
|
|
54838
54826
|
})]
|
|
54839
54827
|
}),
|
|
54840
|
-
!
|
|
54828
|
+
!T && ot && /* @__PURE__ */ F("div", {
|
|
54841
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"}`,
|
|
54842
54830
|
onClick: (e) => e.stopPropagation(),
|
|
54843
54831
|
children: [
|
|
@@ -54887,14 +54875,14 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
54887
54875
|
})
|
|
54888
54876
|
}),
|
|
54889
54877
|
/* @__PURE__ */ P("button", {
|
|
54890
|
-
onClick: () =>
|
|
54878
|
+
onClick: () => ee(t.id),
|
|
54891
54879
|
className: "p-1.5 text-slate-400 hover:text-white rounded hover:bg-slate-900 transition flex items-center justify-center",
|
|
54892
54880
|
title: "Duplicate",
|
|
54893
54881
|
children: se.copy
|
|
54894
54882
|
}),
|
|
54895
54883
|
/* @__PURE__ */ P("button", {
|
|
54896
54884
|
onClick: () => {
|
|
54897
|
-
|
|
54885
|
+
w(t.id), h(null);
|
|
54898
54886
|
},
|
|
54899
54887
|
className: "p-1.5 text-slate-400 hover:text-rose-500 rounded hover:bg-slate-900 transition flex items-center justify-center",
|
|
54900
54888
|
title: "Delete",
|
|
@@ -54978,14 +54966,14 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
54978
54966
|
})
|
|
54979
54967
|
]
|
|
54980
54968
|
}),
|
|
54981
|
-
!
|
|
54969
|
+
!T && ot && /* @__PURE__ */ P("div", {
|
|
54982
54970
|
...ve,
|
|
54983
54971
|
...M,
|
|
54984
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",
|
|
54985
54973
|
title: "Drag to reposition",
|
|
54986
54974
|
children: "✥"
|
|
54987
54975
|
}),
|
|
54988
|
-
!
|
|
54976
|
+
!T && (ot || I) && /* @__PURE__ */ P("span", {
|
|
54989
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",
|
|
54990
54978
|
children: st
|
|
54991
54979
|
}),
|
|
@@ -55004,8 +54992,8 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
55004
54992
|
letterSpacing: H.letterSpacing,
|
|
55005
54993
|
textAlign: H.textAlign
|
|
55006
54994
|
},
|
|
55007
|
-
className: `whitespace-pre-wrap outline-none ${
|
|
55008
|
-
contentEditable: !
|
|
54995
|
+
className: `whitespace-pre-wrap outline-none ${T ? "cursor-default" : "cursor-text"}`,
|
|
54996
|
+
contentEditable: !T,
|
|
55009
54997
|
suppressContentEditableWarning: !0,
|
|
55010
54998
|
onInput: (e) => {
|
|
55011
54999
|
x("text", e.currentTarget.innerHTML || "");
|
|
@@ -55029,8 +55017,8 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
55029
55017
|
padding: H.padding,
|
|
55030
55018
|
margin: H.margin
|
|
55031
55019
|
},
|
|
55032
|
-
className: `outline-none ${
|
|
55033
|
-
contentEditable: !
|
|
55020
|
+
className: `outline-none ${T ? "cursor-default" : "cursor-text"}`,
|
|
55021
|
+
contentEditable: !T,
|
|
55034
55022
|
suppressContentEditableWarning: !0,
|
|
55035
55023
|
onInput: (e) => {
|
|
55036
55024
|
x("text", e.currentTarget.innerHTML || "");
|
|
@@ -55054,8 +55042,8 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
55054
55042
|
padding: H.padding,
|
|
55055
55043
|
margin: H.margin
|
|
55056
55044
|
},
|
|
55057
|
-
className: `outline-none ${
|
|
55058
|
-
contentEditable: !
|
|
55045
|
+
className: `outline-none ${T ? "cursor-default" : "cursor-text"}`,
|
|
55046
|
+
contentEditable: !T,
|
|
55059
55047
|
suppressContentEditableWarning: !0,
|
|
55060
55048
|
onInput: (e) => {
|
|
55061
55049
|
x("text", e.currentTarget.innerHTML || "");
|
|
@@ -55094,12 +55082,12 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
55094
55082
|
},
|
|
55095
55083
|
className: "inline-flex items-center justify-center",
|
|
55096
55084
|
onClick: (e) => {
|
|
55097
|
-
|
|
55085
|
+
T || (e.stopPropagation(), h(t.id));
|
|
55098
55086
|
},
|
|
55099
55087
|
children: /* @__PURE__ */ P("span", {
|
|
55100
55088
|
ref: Ye,
|
|
55101
|
-
className: `inline-block min-w-[24px] outline-none ${
|
|
55102
|
-
contentEditable: !
|
|
55089
|
+
className: `inline-block min-w-[24px] outline-none ${T ? "cursor-default" : "cursor-text"}`,
|
|
55090
|
+
contentEditable: !T,
|
|
55103
55091
|
suppressContentEditableWarning: !0,
|
|
55104
55092
|
onInput: (e) => {
|
|
55105
55093
|
x("text", e.currentTarget.textContent || "");
|
|
@@ -55184,7 +55172,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
55184
55172
|
borderColor: H.borderColor,
|
|
55185
55173
|
boxShadow: H.boxShadow || ut?.boxShadow
|
|
55186
55174
|
},
|
|
55187
|
-
onSubmit:
|
|
55175
|
+
onSubmit: T ? (e) => e.preventDefault() : void 0,
|
|
55188
55176
|
className: "text-left relative overflow-hidden",
|
|
55189
55177
|
children: /* @__PURE__ */ F("div", {
|
|
55190
55178
|
className: "flex flex-col",
|
|
@@ -55212,7 +55200,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
55212
55200
|
height: U.buttonAutoHeight === !1 && H.buttonHeight || "auto",
|
|
55213
55201
|
maxWidth: "100%"
|
|
55214
55202
|
},
|
|
55215
|
-
type:
|
|
55203
|
+
type: T ? "submit" : "button",
|
|
55216
55204
|
children: U.submitLabel || "Submit"
|
|
55217
55205
|
})
|
|
55218
55206
|
})]
|
|
@@ -55243,8 +55231,8 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
55243
55231
|
borderStyle: H.borderStyle,
|
|
55244
55232
|
fontSize: H.fontSize
|
|
55245
55233
|
},
|
|
55246
|
-
className: `w-full outline-none border ${
|
|
55247
|
-
readOnly: !
|
|
55234
|
+
className: `w-full outline-none border ${T ? "" : "pointer-events-none"}`,
|
|
55235
|
+
readOnly: !T
|
|
55248
55236
|
})]
|
|
55249
55237
|
}),
|
|
55250
55238
|
t.type === "textarea" && /* @__PURE__ */ F("div", {
|
|
@@ -55272,8 +55260,8 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
55272
55260
|
fontSize: H.fontSize,
|
|
55273
55261
|
height: "50px"
|
|
55274
55262
|
},
|
|
55275
|
-
className: `w-full outline-none border resize-none ${
|
|
55276
|
-
readOnly: !
|
|
55263
|
+
className: `w-full outline-none border resize-none ${T ? "" : "pointer-events-none"}`,
|
|
55264
|
+
readOnly: !T
|
|
55277
55265
|
})]
|
|
55278
55266
|
}),
|
|
55279
55267
|
t.type === "select" && /* @__PURE__ */ F("div", {
|
|
@@ -55294,8 +55282,8 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
55294
55282
|
borderStyle: H.borderStyle,
|
|
55295
55283
|
fontSize: H.fontSize
|
|
55296
55284
|
},
|
|
55297
|
-
className: `w-full outline-none border appearance-none ${
|
|
55298
|
-
disabled: !
|
|
55285
|
+
className: `w-full outline-none border appearance-none ${T ? "" : "pointer-events-none"}`,
|
|
55286
|
+
disabled: !T,
|
|
55299
55287
|
children: (U.options || []).map((e, t) => /* @__PURE__ */ P("option", {
|
|
55300
55288
|
value: e.value,
|
|
55301
55289
|
children: e.label
|
|
@@ -55495,7 +55483,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
55495
55483
|
}, i = (t, i, a, o) => {
|
|
55496
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";
|
|
55497
55485
|
return /* @__PURE__ */ P("tr", { children: t.map((e, t) => /* @__PURE__ */ P(s, {
|
|
55498
|
-
contentEditable: !
|
|
55486
|
+
contentEditable: !T,
|
|
55499
55487
|
suppressContentEditableWarning: !0,
|
|
55500
55488
|
onBlur: (e) => r(i, t, e.currentTarget.textContent || ""),
|
|
55501
55489
|
style: {
|
|
@@ -55509,7 +55497,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
55509
55497
|
lineHeight: H.contentLineHeight,
|
|
55510
55498
|
letterSpacing: H.contentLetterSpacing,
|
|
55511
55499
|
outline: "none",
|
|
55512
|
-
cursor:
|
|
55500
|
+
cursor: T ? "default" : "text"
|
|
55513
55501
|
},
|
|
55514
55502
|
children: e
|
|
55515
55503
|
}, t)) }, o);
|
|
@@ -55827,7 +55815,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
55827
55815
|
})
|
|
55828
55816
|
})
|
|
55829
55817
|
});
|
|
55830
|
-
return n &&
|
|
55818
|
+
return n && T ? /* @__PURE__ */ P("a", {
|
|
55831
55819
|
href: n,
|
|
55832
55820
|
target: r ? "_blank" : "_self",
|
|
55833
55821
|
rel: "noreferrer",
|
|
@@ -56195,28 +56183,101 @@ var bW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
|
|
|
56195
56183
|
onChange: l
|
|
56196
56184
|
})]
|
|
56197
56185
|
});
|
|
56198
|
-
}, EW = {
|
|
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 = {
|
|
56199
56260
|
offsetX: 0,
|
|
56200
56261
|
offsetY: 4,
|
|
56201
56262
|
blur: 6,
|
|
56202
56263
|
spread: -1,
|
|
56203
56264
|
color: "#0000001a"
|
|
56204
|
-
},
|
|
56265
|
+
}, OW = (e) => {
|
|
56205
56266
|
let t = (e || "").trim();
|
|
56206
|
-
if (!t || t === "none") return
|
|
56267
|
+
if (!t || t === "none") return DW;
|
|
56207
56268
|
let n = t.match(/^(-?[\d.]+)px\s+(-?[\d.]+)px(?:\s+(-?[\d.]+)px)?(?:\s+(-?[\d.]+)px)?\s*(.*)$/);
|
|
56208
|
-
if (!n) return
|
|
56269
|
+
if (!n) return DW;
|
|
56209
56270
|
let [, r, i, a, o, s] = n;
|
|
56210
56271
|
return {
|
|
56211
56272
|
offsetX: parseFloat(r) || 0,
|
|
56212
56273
|
offsetY: parseFloat(i) || 0,
|
|
56213
56274
|
blur: a === void 0 ? 0 : parseFloat(a) || 0,
|
|
56214
56275
|
spread: o === void 0 ? 0 : parseFloat(o) || 0,
|
|
56215
|
-
color: s?.trim() ||
|
|
56276
|
+
color: s?.trim() || DW.color
|
|
56216
56277
|
};
|
|
56217
|
-
},
|
|
56218
|
-
let n = !e.boxShadow || e.boxShadow === "none", r =
|
|
56219
|
-
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({
|
|
56220
56281
|
...r,
|
|
56221
56282
|
...e
|
|
56222
56283
|
}));
|
|
@@ -56230,7 +56291,7 @@ var bW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
|
|
|
56230
56291
|
children: "Box Shadow"
|
|
56231
56292
|
}), /* @__PURE__ */ P("button", {
|
|
56232
56293
|
type: "button",
|
|
56233
|
-
onClick: () => t("boxShadow", n ?
|
|
56294
|
+
onClick: () => t("boxShadow", n ? kW(r) : "none"),
|
|
56234
56295
|
className: `plexo-switch-track plexo-switch-track-sm ${n ? "plexo-switch-track-off" : "plexo-switch-track-on"}`,
|
|
56235
56296
|
children: /* @__PURE__ */ P("span", { className: `plexo-switch-thumb plexo-switch-thumb-sm ${n ? "plexo-switch-thumb-off" : "plexo-switch-thumb-on-sm"}` })
|
|
56236
56297
|
})]
|
|
@@ -56273,9 +56334,9 @@ var bW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
|
|
|
56273
56334
|
]
|
|
56274
56335
|
})]
|
|
56275
56336
|
});
|
|
56276
|
-
},
|
|
56337
|
+
}, jW = ({ onSelect: e }) => /* @__PURE__ */ P("div", {
|
|
56277
56338
|
className: "grid grid-cols-1 gap-2.5",
|
|
56278
|
-
children:
|
|
56339
|
+
children: E.map((t, n) => /* @__PURE__ */ P("button", {
|
|
56279
56340
|
onClick: () => e(t.widths),
|
|
56280
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",
|
|
56281
56342
|
children: /* @__PURE__ */ P("div", {
|
|
@@ -56286,7 +56347,7 @@ var bW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
|
|
|
56286
56347
|
})
|
|
56287
56348
|
})
|
|
56288
56349
|
}, n))
|
|
56289
|
-
}),
|
|
56350
|
+
}), MW = ({ label: e, stylePrefix: t, styles: n, onChange: r, allowNegative: i = !1 }) => {
|
|
56290
56351
|
let a = i ? -500 : 0, o = {
|
|
56291
56352
|
all: t,
|
|
56292
56353
|
top: `${t}Top`,
|
|
@@ -56401,7 +56462,7 @@ var bW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
|
|
|
56401
56462
|
onChange: h
|
|
56402
56463
|
})]
|
|
56403
56464
|
});
|
|
56404
|
-
},
|
|
56465
|
+
}, NW = ({ label: e, onUploadMock: t }) => /* @__PURE__ */ F("div", {
|
|
56405
56466
|
className: "py-1",
|
|
56406
56467
|
children: [/* @__PURE__ */ P("label", {
|
|
56407
56468
|
className: "text-xs text-slate-400 font-medium block mb-1.5",
|
|
@@ -56411,7 +56472,7 @@ var bW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
|
|
|
56411
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",
|
|
56412
56473
|
children: /* @__PURE__ */ P("span", { children: "Upload File" })
|
|
56413
56474
|
})]
|
|
56414
|
-
}),
|
|
56475
|
+
}), PW = { body: {
|
|
56415
56476
|
style: {
|
|
56416
56477
|
background: "#ffffffff",
|
|
56417
56478
|
padding: "32px"
|
|
@@ -56455,7 +56516,7 @@ var bW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
|
|
|
56455
56516
|
}]
|
|
56456
56517
|
}]
|
|
56457
56518
|
}]
|
|
56458
|
-
} },
|
|
56519
|
+
} }, FW = ({ apiKey: e, mode: t, onSave: n, isSavingLayout: r, setIsSavingLayout: i, normalizeTemplateWithDefaults: a, templateId: o, allowPublishLandingPage: s }) => {
|
|
56459
56520
|
let c = fe(() => JSON.parse(JSON.stringify(Ie.getState().template)), []), l = fe(async (t) => {
|
|
56460
56521
|
let n = c(), r = a(n);
|
|
56461
56522
|
if (t === "email") {
|
|
@@ -56481,7 +56542,7 @@ var bW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
|
|
|
56481
56542
|
}
|
|
56482
56543
|
return {
|
|
56483
56544
|
json: n,
|
|
56484
|
-
html:
|
|
56545
|
+
html: T(r)
|
|
56485
56546
|
};
|
|
56486
56547
|
}, [
|
|
56487
56548
|
e,
|
|
@@ -56529,8 +56590,8 @@ var bW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
|
|
|
56529
56590
|
exportDesign: l,
|
|
56530
56591
|
handleBuiltInSave: u
|
|
56531
56592
|
};
|
|
56532
|
-
},
|
|
56533
|
-
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);
|
|
56534
56595
|
return O(() => {
|
|
56535
56596
|
if (typeof window > "u") return;
|
|
56536
56597
|
let e = null, n = () => {
|
|
@@ -56543,14 +56604,14 @@ var bW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
|
|
|
56543
56604
|
};
|
|
56544
56605
|
}, []), {
|
|
56545
56606
|
width: e,
|
|
56546
|
-
category:
|
|
56607
|
+
category: LW(e)
|
|
56547
56608
|
};
|
|
56548
|
-
},
|
|
56609
|
+
}, zW = (e) => {
|
|
56549
56610
|
let t = {};
|
|
56550
56611
|
return e.tokens.forEach((e) => {
|
|
56551
56612
|
t[e.cssVariableName] = e, t[e.id] = e;
|
|
56552
56613
|
}), t;
|
|
56553
|
-
},
|
|
56614
|
+
}, BW = (e, t) => {
|
|
56554
56615
|
let n = { ...e }, r = e.style || {}, i = {};
|
|
56555
56616
|
return Object.entries(r).forEach(([e, n]) => {
|
|
56556
56617
|
if (typeof n == "string" && t[n]) {
|
|
@@ -56558,7 +56619,7 @@ var bW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
|
|
|
56558
56619
|
i[e] = `var(${r.cssVariableName})`;
|
|
56559
56620
|
} else i[e] = n;
|
|
56560
56621
|
}), n.style = i, n;
|
|
56561
|
-
},
|
|
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 = "") => {
|
|
56562
56623
|
let n = "";
|
|
56563
56624
|
switch (e.category) {
|
|
56564
56625
|
case "color":
|
|
@@ -56580,10 +56641,10 @@ var bW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
|
|
|
56580
56641
|
}
|
|
56581
56642
|
return n;
|
|
56582
56643
|
};
|
|
56583
|
-
function
|
|
56644
|
+
function GW(e) {
|
|
56584
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";
|
|
56585
56646
|
}
|
|
56586
|
-
async function
|
|
56647
|
+
async function KW(e, t) {
|
|
56587
56648
|
if (!e || !e.trim()) return !1;
|
|
56588
56649
|
try {
|
|
56589
56650
|
let n = `https://snapshot.strata.charisol.io/snapshots/${e}/strata.json`, r = await fetch(n);
|
|
@@ -56595,7 +56656,7 @@ async function GW(e, t) {
|
|
|
56595
56656
|
key: e,
|
|
56596
56657
|
name: t.name || e,
|
|
56597
56658
|
value: n,
|
|
56598
|
-
type: t.type ||
|
|
56659
|
+
type: t.type || GW(n)
|
|
56599
56660
|
};
|
|
56600
56661
|
})), !0;
|
|
56601
56662
|
} catch (e) {
|
|
@@ -56604,7 +56665,7 @@ async function GW(e, t) {
|
|
|
56604
56665
|
}
|
|
56605
56666
|
//#endregion
|
|
56606
56667
|
//#region src/components/PlexoBuilder.tsx
|
|
56607
|
-
var
|
|
56668
|
+
var qW = (e) => ({ body: {
|
|
56608
56669
|
style: {
|
|
56609
56670
|
background: "#0b0f19",
|
|
56610
56671
|
padding: "24px"
|
|
@@ -56627,11 +56688,11 @@ var KW = (e) => ({ body: {
|
|
|
56627
56688
|
}]
|
|
56628
56689
|
}]
|
|
56629
56690
|
}]
|
|
56630
|
-
} }),
|
|
56691
|
+
} }), JW = (e, t, n) => {
|
|
56631
56692
|
if (t === void 0 && n === void 0) return e;
|
|
56632
56693
|
let r = JSON.parse(JSON.stringify(e));
|
|
56633
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;
|
|
56634
|
-
},
|
|
56695
|
+
}, YW = (e, t) => {
|
|
56635
56696
|
let n = e.trim(), r = n.match(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/);
|
|
56636
56697
|
if (r) {
|
|
56637
56698
|
let e = r[1], n = e.length === 3 ? e.split("").map((e) => `${e}${e}`).join("") : e;
|
|
@@ -56650,7 +56711,7 @@ var KW = (e) => ({ body: {
|
|
|
56650
56711
|
}
|
|
56651
56712
|
}
|
|
56652
56713
|
return `rgba(79, 70, 229, ${t})`;
|
|
56653
|
-
},
|
|
56714
|
+
}, XW = ({ title: e, plan: t }) => /* @__PURE__ */ F("div", {
|
|
56654
56715
|
className: "flex flex-col items-center justify-center gap-3 py-10 px-4 text-center rounded-lg border border-dashed",
|
|
56655
56716
|
style: { borderColor: "var(--builder-border-color)" },
|
|
56656
56717
|
children: [
|
|
@@ -56677,7 +56738,7 @@ var KW = (e) => ({ body: {
|
|
|
56677
56738
|
children: "Upgrade your plan to unlock this feature."
|
|
56678
56739
|
})
|
|
56679
56740
|
]
|
|
56680
|
-
}),
|
|
56741
|
+
}), ZW = (e, t = 1200, n = 1200, r = .8) => new Promise((i) => {
|
|
56681
56742
|
if (!e.type.startsWith("image/")) {
|
|
56682
56743
|
i(e);
|
|
56683
56744
|
return;
|
|
@@ -56710,13 +56771,13 @@ var KW = (e) => ({ body: {
|
|
|
56710
56771
|
}, "image/jpeg", r);
|
|
56711
56772
|
}, o.onerror = () => i(e), o.src = a.target?.result;
|
|
56712
56773
|
}, a.onerror = () => i(e), a.readAsDataURL(e);
|
|
56713
|
-
}),
|
|
56714
|
-
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) => {
|
|
56715
56776
|
it(t), It(e), R(null), De(null), Oe(null);
|
|
56716
56777
|
}, lt = {
|
|
56717
56778
|
useAi: Ce.body.aiConfig?.useAi ?? g,
|
|
56718
56779
|
tier: Ce.body.aiConfig?.tier || v
|
|
56719
|
-
}, 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([]);
|
|
56720
56781
|
O(() => {
|
|
56721
56782
|
let e = !1;
|
|
56722
56783
|
return (async () => {
|
|
@@ -56801,7 +56862,7 @@ var KW = (e) => ({ body: {
|
|
|
56801
56862
|
D,
|
|
56802
56863
|
a
|
|
56803
56864
|
]);
|
|
56804
|
-
let { sensors: Dn, getJson: On, exportDesign: kn, handleBuiltInSave: An } =
|
|
56865
|
+
let { sensors: Dn, getJson: On, exportDesign: kn, handleBuiltInSave: An } = FW({
|
|
56805
56866
|
apiKey: a,
|
|
56806
56867
|
mode: i,
|
|
56807
56868
|
onSave: h,
|
|
@@ -56837,7 +56898,7 @@ var KW = (e) => ({ body: {
|
|
|
56837
56898
|
getNodeRect: Mn,
|
|
56838
56899
|
getCanvasContainerRect: Nn
|
|
56839
56900
|
}), [kn, On]), O(() => {
|
|
56840
|
-
if (!
|
|
56901
|
+
if (!E || !h) return;
|
|
56841
56902
|
let e = setInterval(async () => {
|
|
56842
56903
|
try {
|
|
56843
56904
|
let e = await kn(i);
|
|
@@ -56848,14 +56909,14 @@ var KW = (e) => ({ body: {
|
|
|
56848
56909
|
}, te ?? 3e3);
|
|
56849
56910
|
return () => clearInterval(e);
|
|
56850
56911
|
}, [
|
|
56851
|
-
|
|
56912
|
+
E,
|
|
56852
56913
|
te,
|
|
56853
56914
|
kn,
|
|
56854
56915
|
i,
|
|
56855
56916
|
h
|
|
56856
56917
|
]), O(() => {
|
|
56857
56918
|
let e = f?.trim(), t, n, r = p === void 0 ? "__undefined__" : p, i = m === void 0 ? "__undefined__" : m;
|
|
56858
|
-
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));
|
|
56859
56920
|
}, [
|
|
56860
56921
|
d,
|
|
56861
56922
|
f,
|
|
@@ -56879,7 +56940,7 @@ var KW = (e) => ({ body: {
|
|
|
56879
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;
|
|
56880
56941
|
if (r) {
|
|
56881
56942
|
let e = Ie.getState().setStrataTokens;
|
|
56882
|
-
|
|
56943
|
+
KW(r, e);
|
|
56883
56944
|
}
|
|
56884
56945
|
}, [(Ce?.body?.style)?.strataConfig?.projectId]), O(() => {
|
|
56885
56946
|
rn(null), on(null), sn.current && clearTimeout(sn.current);
|
|
@@ -56910,7 +56971,7 @@ var KW = (e) => ({ body: {
|
|
|
56910
56971
|
vt(At >= 768 ? "tablet" : "mobile");
|
|
56911
56972
|
return;
|
|
56912
56973
|
}
|
|
56913
|
-
_t === "custom" && (
|
|
56974
|
+
_t === "custom" && (w.find((e) => e.id === xt)?.width ?? (parseInt(yt, 10) || 0)) > At && vt(At >= 768 ? "tablet" : "mobile");
|
|
56914
56975
|
}
|
|
56915
56976
|
}, [
|
|
56916
56977
|
Mt,
|
|
@@ -57586,13 +57647,13 @@ var KW = (e) => ({ body: {
|
|
|
57586
57647
|
}
|
|
57587
57648
|
return null;
|
|
57588
57649
|
}, rr = () => {
|
|
57589
|
-
if (
|
|
57650
|
+
if (ee) {
|
|
57590
57651
|
Fn("Image uploads are disabled.");
|
|
57591
57652
|
return;
|
|
57592
57653
|
}
|
|
57593
57654
|
Se.current && Se.current.click();
|
|
57594
57655
|
}, ir = () => {
|
|
57595
|
-
if (
|
|
57656
|
+
if (ee) {
|
|
57596
57657
|
Fn("Image uploads are disabled.");
|
|
57597
57658
|
return;
|
|
57598
57659
|
}
|
|
@@ -57600,7 +57661,7 @@ var KW = (e) => ({ body: {
|
|
|
57600
57661
|
}, ar = async (e) => {
|
|
57601
57662
|
let t = e.target.files?.[0];
|
|
57602
57663
|
if (!t) return;
|
|
57603
|
-
if (
|
|
57664
|
+
if (ee) {
|
|
57604
57665
|
Fn("Image uploads are disabled.");
|
|
57605
57666
|
return;
|
|
57606
57667
|
}
|
|
@@ -57608,7 +57669,7 @@ var KW = (e) => ({ body: {
|
|
|
57608
57669
|
let n = t.name;
|
|
57609
57670
|
try {
|
|
57610
57671
|
let e = t;
|
|
57611
|
-
t.type.startsWith("image/") && (Fn(`Compressing "${n}"...`), e = await
|
|
57672
|
+
t.type.startsWith("image/") && (Fn(`Compressing "${n}"...`), e = await ZW(t)), Fn(`Uploading "${n}"...`);
|
|
57612
57673
|
let r = "", i = x || b;
|
|
57613
57674
|
if (i) {
|
|
57614
57675
|
let t = await i(e);
|
|
@@ -57735,14 +57796,14 @@ var KW = (e) => ({ body: {
|
|
|
57735
57796
|
case "custom": return yt;
|
|
57736
57797
|
default: return Dt ? "1280px" : "100%";
|
|
57737
57798
|
}
|
|
57738
|
-
})(), _r = gr.endsWith("px") ? gr : "Auto", vr =
|
|
57799
|
+
})(), _r = gr.endsWith("px") ? gr : "Auto", vr = w.map((e) => ({
|
|
57739
57800
|
value: e.id,
|
|
57740
57801
|
label: e.label,
|
|
57741
57802
|
secondaryLabel: `${e.width}px`,
|
|
57742
57803
|
group: e.category,
|
|
57743
57804
|
disabled: e.width > At,
|
|
57744
57805
|
disabledReason: e.width > At ? "Requires a larger screen to preview" : void 0
|
|
57745
|
-
})), 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) => {
|
|
57746
57807
|
let t = (n) => {
|
|
57747
57808
|
for (let r of n) {
|
|
57748
57809
|
if (r.columns.some((t) => t.id === e)) return r;
|
|
@@ -57865,9 +57926,9 @@ var KW = (e) => ({ body: {
|
|
|
57865
57926
|
themeBgColor: xe,
|
|
57866
57927
|
textColor: l,
|
|
57867
57928
|
fontFamily: u,
|
|
57868
|
-
borderColor:
|
|
57869
|
-
panelColor:
|
|
57870
|
-
mutedTextColor:
|
|
57929
|
+
borderColor: YW(xe, .35),
|
|
57930
|
+
panelColor: YW(o, .68),
|
|
57931
|
+
mutedTextColor: YW(l, .76),
|
|
57871
57932
|
themeOnAccent: c,
|
|
57872
57933
|
inputBackground: c,
|
|
57873
57934
|
inputText: PH(c, l),
|
|
@@ -58051,9 +58112,9 @@ var KW = (e) => ({ body: {
|
|
|
58051
58112
|
"--builder-input-border": J.inputBorder,
|
|
58052
58113
|
"--theme-fg": J.themeOnAccent,
|
|
58053
58114
|
"--theme-accent": J.themeBgColor,
|
|
58054
|
-
"--theme-accent-strong":
|
|
58055
|
-
"--theme-accent-soft":
|
|
58056
|
-
"--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),
|
|
58057
58118
|
"--theme-accent-text": J.themeOnAccent
|
|
58058
58119
|
},
|
|
58059
58120
|
children: [
|
|
@@ -58157,7 +58218,7 @@ var KW = (e) => ({ body: {
|
|
|
58157
58218
|
options: vr,
|
|
58158
58219
|
onTriggerClick: () => vt("custom"),
|
|
58159
58220
|
onChange: (e) => {
|
|
58160
|
-
let t =
|
|
58221
|
+
let t = w.find((t) => t.id === e);
|
|
58161
58222
|
t && (vt("custom"), St(t.id), bt(`${t.width}px`));
|
|
58162
58223
|
},
|
|
58163
58224
|
align: "right",
|
|
@@ -58441,7 +58502,7 @@ var KW = (e) => ({ body: {
|
|
|
58441
58502
|
isOpen: $t.columnsSection,
|
|
58442
58503
|
onToggle: () => tn("columnsSection"),
|
|
58443
58504
|
contentClassName: "px-4 pb-4 pt-0 flex flex-col gap-0 bg-transparent",
|
|
58444
|
-
children: /* @__PURE__ */ P(
|
|
58505
|
+
children: /* @__PURE__ */ P(jW, { onSelect: (e) => Ze(lr.id, e) })
|
|
58445
58506
|
}),
|
|
58446
58507
|
/* @__PURE__ */ P(XH, {
|
|
58447
58508
|
title: "Row Properties",
|
|
@@ -58514,7 +58575,7 @@ var KW = (e) => ({ body: {
|
|
|
58514
58575
|
value: q.textAlign || "left",
|
|
58515
58576
|
onChange: (e) => G("textAlign", e)
|
|
58516
58577
|
}),
|
|
58517
|
-
/* @__PURE__ */ P(
|
|
58578
|
+
/* @__PURE__ */ P(NW, {
|
|
58518
58579
|
label: "Upload background",
|
|
58519
58580
|
onUploadMock: rr
|
|
58520
58581
|
}),
|
|
@@ -58538,25 +58599,22 @@ var KW = (e) => ({ body: {
|
|
|
58538
58599
|
});
|
|
58539
58600
|
}
|
|
58540
58601
|
}),
|
|
58541
|
-
/* @__PURE__ */ P(
|
|
58602
|
+
/* @__PURE__ */ P(MW, {
|
|
58542
58603
|
label: "Padding",
|
|
58543
58604
|
stylePrefix: "padding",
|
|
58544
58605
|
styles: q,
|
|
58545
58606
|
onChange: G
|
|
58546
58607
|
}),
|
|
58547
|
-
/* @__PURE__ */ P(
|
|
58608
|
+
/* @__PURE__ */ P(MW, {
|
|
58548
58609
|
label: "Margin",
|
|
58549
58610
|
stylePrefix: "margin",
|
|
58550
58611
|
styles: q,
|
|
58551
58612
|
onChange: G,
|
|
58552
58613
|
allowNegative: !0
|
|
58553
58614
|
}),
|
|
58554
|
-
/* @__PURE__ */ P(
|
|
58555
|
-
|
|
58556
|
-
|
|
58557
|
-
min: 0,
|
|
58558
|
-
max: 12,
|
|
58559
|
-
onChange: (e) => G("borderWidth", e)
|
|
58615
|
+
/* @__PURE__ */ P(EW, {
|
|
58616
|
+
styles: q,
|
|
58617
|
+
onChange: G
|
|
58560
58618
|
}),
|
|
58561
58619
|
/* @__PURE__ */ P(xW, {
|
|
58562
58620
|
label: "Border Style",
|
|
@@ -58811,25 +58869,22 @@ var KW = (e) => ({ body: {
|
|
|
58811
58869
|
value: q.backgroundColor || "transparent",
|
|
58812
58870
|
onChange: (e) => G("backgroundColor", e)
|
|
58813
58871
|
}),
|
|
58814
|
-
/* @__PURE__ */ P(
|
|
58872
|
+
/* @__PURE__ */ P(MW, {
|
|
58815
58873
|
label: "Padding",
|
|
58816
58874
|
stylePrefix: "padding",
|
|
58817
58875
|
styles: q,
|
|
58818
58876
|
onChange: G
|
|
58819
58877
|
}),
|
|
58820
|
-
/* @__PURE__ */ P(
|
|
58878
|
+
/* @__PURE__ */ P(MW, {
|
|
58821
58879
|
label: "Margin",
|
|
58822
58880
|
stylePrefix: "margin",
|
|
58823
58881
|
styles: q,
|
|
58824
58882
|
onChange: G,
|
|
58825
58883
|
allowNegative: !0
|
|
58826
58884
|
}),
|
|
58827
|
-
/* @__PURE__ */ P(
|
|
58828
|
-
|
|
58829
|
-
|
|
58830
|
-
min: 0,
|
|
58831
|
-
max: 12,
|
|
58832
|
-
onChange: (e) => G("borderWidth", e)
|
|
58885
|
+
/* @__PURE__ */ P(EW, {
|
|
58886
|
+
styles: q,
|
|
58887
|
+
onChange: G
|
|
58833
58888
|
}),
|
|
58834
58889
|
/* @__PURE__ */ P(xW, {
|
|
58835
58890
|
label: "Border Style",
|
|
@@ -58863,7 +58918,7 @@ var KW = (e) => ({ body: {
|
|
|
58863
58918
|
styles: q,
|
|
58864
58919
|
onChange: G
|
|
58865
58920
|
}),
|
|
58866
|
-
/* @__PURE__ */ P(
|
|
58921
|
+
/* @__PURE__ */ P(AW, {
|
|
58867
58922
|
styles: q,
|
|
58868
58923
|
onChange: G
|
|
58869
58924
|
}),
|
|
@@ -58906,11 +58961,12 @@ var KW = (e) => ({ body: {
|
|
|
58906
58961
|
InlineCounter: bW,
|
|
58907
58962
|
Toggle: hU,
|
|
58908
58963
|
InlineTextArea: wW,
|
|
58909
|
-
SpacingControls:
|
|
58964
|
+
SpacingControls: MW,
|
|
58910
58965
|
BorderRadiusControls: TW,
|
|
58911
|
-
|
|
58966
|
+
BorderSideControls: EW,
|
|
58967
|
+
BoxShadowControls: AW,
|
|
58912
58968
|
handleUploadMock: rr,
|
|
58913
|
-
disableImageUpload:
|
|
58969
|
+
disableImageUpload: ee,
|
|
58914
58970
|
onOpenImageLibrary: ct,
|
|
58915
58971
|
ICONS: X,
|
|
58916
58972
|
aiPromptText: fn,
|
|
@@ -58960,7 +59016,7 @@ var KW = (e) => ({ body: {
|
|
|
58960
59016
|
ICONS: X,
|
|
58961
59017
|
handleUploadMock: rr,
|
|
58962
59018
|
handleUploadFavicon: ir,
|
|
58963
|
-
disableImageUpload:
|
|
59019
|
+
disableImageUpload: ee,
|
|
58964
59020
|
onOpenImageLibrary: ct,
|
|
58965
59021
|
InlineColorPicker: _W,
|
|
58966
59022
|
InlineAlignment: SW,
|
|
@@ -58968,7 +59024,7 @@ var KW = (e) => ({ body: {
|
|
|
58968
59024
|
Toggle: hU,
|
|
58969
59025
|
InlineTextInput: CW,
|
|
58970
59026
|
InlineTextArea: wW,
|
|
58971
|
-
SpacingControls:
|
|
59027
|
+
SpacingControls: MW,
|
|
58972
59028
|
notify: Fn
|
|
58973
59029
|
}),
|
|
58974
59030
|
Ft === "images" && (be.stockImagesEnabled ? /* @__PURE__ */ P(QH, {
|
|
@@ -58984,13 +59040,13 @@ var KW = (e) => ({ body: {
|
|
|
58984
59040
|
applyImageToSelection: Or,
|
|
58985
59041
|
ICONS: X,
|
|
58986
59042
|
panelBackgroundColor: o
|
|
58987
|
-
}) : /* @__PURE__ */ P(
|
|
59043
|
+
}) : /* @__PURE__ */ P(XW, {
|
|
58988
59044
|
title: "Stock Images",
|
|
58989
59045
|
plan: "PRO"
|
|
58990
59046
|
})),
|
|
58991
59047
|
Ft === "uploads" && /* @__PURE__ */ P($H, {
|
|
58992
59048
|
handleUploadMock: rr,
|
|
58993
|
-
disableImageUpload:
|
|
59049
|
+
disableImageUpload: ee,
|
|
58994
59050
|
searchUploadQuery: Yt,
|
|
58995
59051
|
setSearchUploadQuery: Xt,
|
|
58996
59052
|
filteredUploadedImages: Er,
|
|
@@ -58999,7 +59055,7 @@ var KW = (e) => ({ body: {
|
|
|
58999
59055
|
ICONS: X,
|
|
59000
59056
|
panelBackgroundColor: o
|
|
59001
59057
|
}),
|
|
59002
|
-
Ft === "strata" && (be.strataEnabled ? /* @__PURE__ */ P(fU, {}) : /* @__PURE__ */ P(
|
|
59058
|
+
Ft === "strata" && (be.strataEnabled ? /* @__PURE__ */ P(fU, {}) : /* @__PURE__ */ P(XW, {
|
|
59003
59059
|
title: "Strata Design System",
|
|
59004
59060
|
plan: "PRO"
|
|
59005
59061
|
})),
|
|
@@ -59142,10 +59198,10 @@ var KW = (e) => ({ body: {
|
|
|
59142
59198
|
})
|
|
59143
59199
|
});
|
|
59144
59200
|
});
|
|
59145
|
-
|
|
59201
|
+
QW.displayName = "PlexoBuilder";
|
|
59146
59202
|
//#endregion
|
|
59147
59203
|
//#region src/playground.tsx
|
|
59148
|
-
var
|
|
59204
|
+
var $W = de((e, t) => {
|
|
59149
59205
|
let n = k(null), r = k(null), i = k(null), [a, o] = A(1), s = k(1), [c, l] = A(!0);
|
|
59150
59206
|
return me(t, () => ({
|
|
59151
59207
|
exportDesign: async (e) => {
|
|
@@ -59200,13 +59256,13 @@ var QW = de((e, t) => {
|
|
|
59200
59256
|
width: "100%",
|
|
59201
59257
|
height: "100%"
|
|
59202
59258
|
},
|
|
59203
|
-
children: /* @__PURE__ */ P(
|
|
59259
|
+
children: /* @__PURE__ */ P(QW, {
|
|
59204
59260
|
ref: n,
|
|
59205
59261
|
...e
|
|
59206
59262
|
})
|
|
59207
59263
|
})]
|
|
59208
59264
|
});
|
|
59209
59265
|
});
|
|
59210
|
-
|
|
59266
|
+
$W.displayName = "PlexoBuilder";
|
|
59211
59267
|
//#endregion
|
|
59212
|
-
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 };
|