@orion-studios/payload-studio 0.5.0-beta.74 → 0.5.0-beta.76
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/{chunk-HXGAG6I7.mjs → chunk-ADIIWIYL.mjs} +0 -3
- package/dist/{chunk-C6VEFZVY.mjs → chunk-C2NV4VHU.mjs} +31 -1
- package/dist/{chunk-6H4JTVPY.mjs → chunk-J25NGORF.mjs} +4 -4
- package/dist/index.js +28 -4
- package/dist/index.mjs +5 -5
- package/dist/nextjs/index.mjs +3 -3
- package/dist/studio/index.js +0 -3
- package/dist/studio/index.mjs +1 -1
- package/dist/studio-pages/builder.css +31 -0
- package/dist/studio-pages/client.js +780 -692
- package/dist/studio-pages/client.mjs +772 -684
- package/dist/studio-pages/index.js +83 -1
- package/dist/studio-pages/index.mjs +2 -1
- package/package.json +1 -1
|
@@ -32,7 +32,7 @@ __export(client_exports, {
|
|
|
32
32
|
module.exports = __toCommonJS(client_exports);
|
|
33
33
|
|
|
34
34
|
// src/studio-pages/builder/BuilderPageEditor.tsx
|
|
35
|
-
var
|
|
35
|
+
var import_react3 = require("react");
|
|
36
36
|
|
|
37
37
|
// src/blocks/blocks/sectionStyleFields.ts
|
|
38
38
|
var sectionStyleDefaults = {
|
|
@@ -1203,6 +1203,21 @@ function BlockInspectorRenderer({
|
|
|
1203
1203
|
] });
|
|
1204
1204
|
}
|
|
1205
1205
|
|
|
1206
|
+
// src/studio/imageUploadOptimization.ts
|
|
1207
|
+
var import_promises = require("fs/promises");
|
|
1208
|
+
var DEFAULT_OPTIONS = {
|
|
1209
|
+
avifQuality: 50,
|
|
1210
|
+
enforceSmallerForLossy: true,
|
|
1211
|
+
jpegQuality: 78,
|
|
1212
|
+
minBytes: 48 * 1024,
|
|
1213
|
+
minQualityFloor: 42,
|
|
1214
|
+
onlyIfSmaller: true,
|
|
1215
|
+
pngCompressionLevel: 9,
|
|
1216
|
+
skipAnimated: true,
|
|
1217
|
+
tiffQuality: 75,
|
|
1218
|
+
webpQuality: 78
|
|
1219
|
+
};
|
|
1220
|
+
|
|
1206
1221
|
// src/studio-pages/index.ts
|
|
1207
1222
|
var withSectionStyleDefaults = (value) => ({
|
|
1208
1223
|
...sectionStyleDefaults,
|
|
@@ -1513,6 +1528,72 @@ async function optimizeImageForUpload(file) {
|
|
|
1513
1528
|
}
|
|
1514
1529
|
}
|
|
1515
1530
|
|
|
1531
|
+
// src/studio-pages/builder/icons/FeatureLucideIcon.tsx
|
|
1532
|
+
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
1533
|
+
var iconBaseProps = {
|
|
1534
|
+
fill: "none",
|
|
1535
|
+
stroke: "currentColor",
|
|
1536
|
+
strokeLinecap: "round",
|
|
1537
|
+
strokeLinejoin: "round",
|
|
1538
|
+
strokeWidth: 2
|
|
1539
|
+
};
|
|
1540
|
+
function FeatureLucideIcon({ iconName }) {
|
|
1541
|
+
const resolved = iconName;
|
|
1542
|
+
switch (resolved) {
|
|
1543
|
+
case "ShieldCheck":
|
|
1544
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("svg", { "aria-hidden": true, className: "orion-builder-lucide-icon", viewBox: "0 0 24 24", ...iconBaseProps, children: [
|
|
1545
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M12 3 5 6v6c0 5 3.4 8.5 7 9.8 3.6-1.3 7-4.8 7-9.8V6z" }),
|
|
1546
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m9.5 12.5 2 2 3.5-3.5" })
|
|
1547
|
+
] });
|
|
1548
|
+
case "Clock":
|
|
1549
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("svg", { "aria-hidden": true, className: "orion-builder-lucide-icon", viewBox: "0 0 24 24", ...iconBaseProps, children: [
|
|
1550
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
|
|
1551
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M12 7v5l3 2" })
|
|
1552
|
+
] });
|
|
1553
|
+
case "Leaf":
|
|
1554
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("svg", { "aria-hidden": true, className: "orion-builder-lucide-icon", viewBox: "0 0 24 24", ...iconBaseProps, children: [
|
|
1555
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M5 13c0-5.5 4.5-10 10-10h4v4c0 5.5-4.5 10-10 10H5z" }),
|
|
1556
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M6 18c2.5 0 4.5-2 4.5-4.5V9" })
|
|
1557
|
+
] });
|
|
1558
|
+
case "DollarSign":
|
|
1559
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("svg", { "aria-hidden": true, className: "orion-builder-lucide-icon", viewBox: "0 0 24 24", ...iconBaseProps, children: [
|
|
1560
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M12 3v18" }),
|
|
1561
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M16 7.5a3.5 3.5 0 0 0-3.5-2.5h-1A3.5 3.5 0 0 0 8 8.5c0 1.9 1.5 3.5 3.5 3.5h1A3.5 3.5 0 0 1 16 15.5 3.5 3.5 0 0 1 12.5 19h-1A3.5 3.5 0 0 1 8 16.5" })
|
|
1562
|
+
] });
|
|
1563
|
+
case "HardHat":
|
|
1564
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("svg", { "aria-hidden": true, className: "orion-builder-lucide-icon", viewBox: "0 0 24 24", ...iconBaseProps, children: [
|
|
1565
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M4 14a8 8 0 0 1 16 0" }),
|
|
1566
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M2 14h20v4H2z" }),
|
|
1567
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M12 6v8" })
|
|
1568
|
+
] });
|
|
1569
|
+
case "Sparkles":
|
|
1570
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("svg", { "aria-hidden": true, className: "orion-builder-lucide-icon", viewBox: "0 0 24 24", ...iconBaseProps, children: [
|
|
1571
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m12 3 1.2 3.3L16.5 7.5l-3.3 1.2L12 12l-1.2-3.3L7.5 7.5l3.3-1.2z" }),
|
|
1572
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m18.5 13 0.8 2.2 2.2 0.8-2.2 0.8-0.8 2.2-0.8-2.2-2.2-0.8 2.2-0.8z" }),
|
|
1573
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m6 14 0.9 2.4 2.4 0.9-2.4 0.9L6 21l-0.9-2.4L2.7 17.7l2.4-0.9z" })
|
|
1574
|
+
] });
|
|
1575
|
+
case "TreePine":
|
|
1576
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("svg", { "aria-hidden": true, className: "orion-builder-lucide-icon", viewBox: "0 0 24 24", ...iconBaseProps, children: [
|
|
1577
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m12 3 5 6h-3l4 5h-4l3 4H7l3-4H6l4-5H7z" }),
|
|
1578
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M12 18v3" })
|
|
1579
|
+
] });
|
|
1580
|
+
case "BadgeCheck":
|
|
1581
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("svg", { "aria-hidden": true, className: "orion-builder-lucide-icon", viewBox: "0 0 24 24", ...iconBaseProps, children: [
|
|
1582
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m12 3 2.1 1.6 2.6-.2 1.3 2.3 2.4 1-0.6 2.6 1.2 2.2-1.8 1.9.1 2.6-2.4.9-1.2 2.3-2.6-.3L12 21l-2.1-1.6-2.6.2-1.3-2.3-2.4-1 .6-2.6L3 11.5 4.8 9.6l-.1-2.6 2.4-.9 1.2-2.3 2.6.3z" }),
|
|
1583
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m8.7 12.4 2 2 4.6-4.6" })
|
|
1584
|
+
] });
|
|
1585
|
+
case "CalendarClock":
|
|
1586
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("svg", { "aria-hidden": true, className: "orion-builder-lucide-icon", viewBox: "0 0 24 24", ...iconBaseProps, children: [
|
|
1587
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { x: "3", y: "5", width: "14", height: "12", rx: "2" }),
|
|
1588
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M7 3v4M13 3v4M3 9h14" }),
|
|
1589
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "18", cy: "17", r: "3" }),
|
|
1590
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M18 15.8v1.4l1 0.7" })
|
|
1591
|
+
] });
|
|
1592
|
+
default:
|
|
1593
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "orion-builder-lucide-icon-fallback", children: iconName || "Icon" });
|
|
1594
|
+
}
|
|
1595
|
+
}
|
|
1596
|
+
|
|
1516
1597
|
// src/studio-pages/builder/presets.ts
|
|
1517
1598
|
var sectionPresets = [
|
|
1518
1599
|
{
|
|
@@ -1709,7 +1790,7 @@ function clonePresetBlocks(blocks) {
|
|
|
1709
1790
|
}
|
|
1710
1791
|
|
|
1711
1792
|
// src/studio-pages/builder/settings-v2/ArrayItemsEditor.tsx
|
|
1712
|
-
var
|
|
1793
|
+
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
1713
1794
|
var lucideIconOptions = [
|
|
1714
1795
|
"ShieldCheck",
|
|
1715
1796
|
"Clock",
|
|
@@ -1845,24 +1926,24 @@ function ArrayItemsEditor({
|
|
|
1845
1926
|
if (normalizedQuery && !hasQueryMatch(normalizedQuery, label, uploadLabel, "image", "media", selectedMedia ? mediaLabel(selectedMedia) : "")) {
|
|
1846
1927
|
return null;
|
|
1847
1928
|
}
|
|
1848
|
-
return /* @__PURE__ */ (0,
|
|
1849
|
-
/* @__PURE__ */ (0,
|
|
1850
|
-
/* @__PURE__ */ (0,
|
|
1929
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_jsx_runtime5.Fragment, { children: [
|
|
1930
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "orion-builder-settings-note", children: selectedMedia ? `${label}: ${mediaLabel(selectedMedia)}` : `No ${label.toLowerCase()} selected.` }),
|
|
1931
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("label", { className: "orion-builder-settings-label", children: [
|
|
1851
1932
|
label,
|
|
1852
|
-
/* @__PURE__ */ (0,
|
|
1933
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
|
|
1853
1934
|
"select",
|
|
1854
1935
|
{
|
|
1855
1936
|
className: "orion-builder-settings-input",
|
|
1856
1937
|
onChange: (event) => onSetItemMediaFromLibrary(itemIndex, field, event.target.value),
|
|
1857
1938
|
value: selectedMediaID !== null ? String(selectedMediaID) : "",
|
|
1858
1939
|
children: [
|
|
1859
|
-
/* @__PURE__ */ (0,
|
|
1860
|
-
mediaLibrary.map((libraryItem) => /* @__PURE__ */ (0,
|
|
1940
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("option", { value: "", children: "No image" }),
|
|
1941
|
+
mediaLibrary.map((libraryItem) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("option", { value: String(libraryItem.id), children: mediaLabel(libraryItem) }, String(libraryItem.id)))
|
|
1861
1942
|
]
|
|
1862
1943
|
}
|
|
1863
1944
|
)
|
|
1864
1945
|
] }),
|
|
1865
|
-
/* @__PURE__ */ (0,
|
|
1946
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
1866
1947
|
"button",
|
|
1867
1948
|
{
|
|
1868
1949
|
className: "orion-builder-settings-inline-btn",
|
|
@@ -1872,9 +1953,9 @@ function ArrayItemsEditor({
|
|
|
1872
1953
|
children: "Remove"
|
|
1873
1954
|
}
|
|
1874
1955
|
),
|
|
1875
|
-
/* @__PURE__ */ (0,
|
|
1956
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("label", { className: "orion-builder-settings-label", children: [
|
|
1876
1957
|
uploadLabel,
|
|
1877
|
-
/* @__PURE__ */ (0,
|
|
1958
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
1878
1959
|
"input",
|
|
1879
1960
|
{
|
|
1880
1961
|
accept: "image/*",
|
|
@@ -1891,33 +1972,33 @@ function ArrayItemsEditor({
|
|
|
1891
1972
|
}
|
|
1892
1973
|
)
|
|
1893
1974
|
] }),
|
|
1894
|
-
isUploadingItemMedia(itemIndex, field) ? /* @__PURE__ */ (0,
|
|
1975
|
+
isUploadingItemMedia(itemIndex, field) ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "orion-builder-settings-note", children: "Uploading image..." }) : null
|
|
1895
1976
|
] });
|
|
1896
1977
|
};
|
|
1897
|
-
return /* @__PURE__ */ (0,
|
|
1978
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
1898
1979
|
Accordion,
|
|
1899
1980
|
{
|
|
1900
1981
|
defaultOpen: true,
|
|
1901
1982
|
subtitle: `${items.length} item${items.length === 1 ? "" : "s"}`,
|
|
1902
1983
|
title: "Items",
|
|
1903
|
-
children: /* @__PURE__ */ (0,
|
|
1904
|
-
/* @__PURE__ */ (0,
|
|
1905
|
-
mediaLibraryLoading ? /* @__PURE__ */ (0,
|
|
1906
|
-
mediaLibraryError ? /* @__PURE__ */ (0,
|
|
1984
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "orion-builder-settings-field-list", children: [
|
|
1985
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("button", { className: "orion-builder-settings-add-btn", onClick: onAddItem, type: "button", children: config.addLabel }),
|
|
1986
|
+
mediaLibraryLoading ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "orion-builder-settings-note", children: "Loading media library..." }) : null,
|
|
1987
|
+
mediaLibraryError ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "orion-builder-settings-error", children: mediaLibraryError }) : null,
|
|
1907
1988
|
items.map((item, itemIndex) => {
|
|
1908
1989
|
const label = config.itemLabel(item, itemIndex);
|
|
1909
1990
|
const isOpen = expandedItemIndex === itemIndex || Boolean(normalizedQuery);
|
|
1910
|
-
return /* @__PURE__ */ (0,
|
|
1911
|
-
/* @__PURE__ */ (0,
|
|
1912
|
-
/* @__PURE__ */ (0,
|
|
1913
|
-
/* @__PURE__ */ (0,
|
|
1991
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("article", { className: "orion-builder-settings-item-card", children: [
|
|
1992
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("button", { className: "orion-builder-settings-item-toggle", onClick: () => onToggleItem(itemIndex), type: "button", children: [
|
|
1993
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "orion-builder-settings-item-title", children: label }),
|
|
1994
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "orion-builder-settings-item-toggle-state", children: isOpen ? "Hide" : "Show" })
|
|
1914
1995
|
] }),
|
|
1915
|
-
isOpen ? /* @__PURE__ */ (0,
|
|
1916
|
-
blockType === "featureGrid" ? /* @__PURE__ */ (0,
|
|
1917
|
-
showInlineCopyFields ? /* @__PURE__ */ (0,
|
|
1918
|
-
hasQueryMatch(normalizedQuery, "title", "name") ? /* @__PURE__ */ (0,
|
|
1996
|
+
isOpen ? /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "orion-builder-settings-item-body", children: [
|
|
1997
|
+
blockType === "featureGrid" ? /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_jsx_runtime5.Fragment, { children: [
|
|
1998
|
+
showInlineCopyFields ? /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_jsx_runtime5.Fragment, { children: [
|
|
1999
|
+
hasQueryMatch(normalizedQuery, "title", "name") ? /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("label", { className: "orion-builder-settings-label", children: [
|
|
1919
2000
|
"Title",
|
|
1920
|
-
/* @__PURE__ */ (0,
|
|
2001
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
1921
2002
|
"input",
|
|
1922
2003
|
{
|
|
1923
2004
|
className: "orion-builder-settings-input",
|
|
@@ -1927,9 +2008,9 @@ function ArrayItemsEditor({
|
|
|
1927
2008
|
}
|
|
1928
2009
|
)
|
|
1929
2010
|
] }) : null,
|
|
1930
|
-
hasQueryMatch(normalizedQuery, "description", "copy", "text") ? /* @__PURE__ */ (0,
|
|
2011
|
+
hasQueryMatch(normalizedQuery, "description", "copy", "text") ? /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("label", { className: "orion-builder-settings-label", children: [
|
|
1931
2012
|
"Description",
|
|
1932
|
-
/* @__PURE__ */ (0,
|
|
2013
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
1933
2014
|
"textarea",
|
|
1934
2015
|
{
|
|
1935
2016
|
className: "orion-builder-settings-input is-textarea",
|
|
@@ -1939,38 +2020,38 @@ function ArrayItemsEditor({
|
|
|
1939
2020
|
)
|
|
1940
2021
|
] }) : null
|
|
1941
2022
|
] }) : null,
|
|
1942
|
-
hasQueryMatch(normalizedQuery, "icon", "badge") ? /* @__PURE__ */ (0,
|
|
2023
|
+
hasQueryMatch(normalizedQuery, "icon", "badge") ? /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("label", { className: "orion-builder-settings-label", children: [
|
|
1943
2024
|
"Icon Type",
|
|
1944
|
-
/* @__PURE__ */ (0,
|
|
2025
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
|
|
1945
2026
|
"select",
|
|
1946
2027
|
{
|
|
1947
2028
|
className: "orion-builder-settings-input",
|
|
1948
2029
|
onChange: (event) => onUpdateItemField(itemIndex, "iconType", event.target.value),
|
|
1949
2030
|
value: normalizeText(item.iconType, "badge"),
|
|
1950
2031
|
children: [
|
|
1951
|
-
/* @__PURE__ */ (0,
|
|
1952
|
-
/* @__PURE__ */ (0,
|
|
2032
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("option", { value: "badge", children: "Badge Text" }),
|
|
2033
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("option", { value: "lucide", children: "Lucide Icon" })
|
|
1953
2034
|
]
|
|
1954
2035
|
}
|
|
1955
2036
|
)
|
|
1956
2037
|
] }) : null,
|
|
1957
|
-
normalizeText(item.iconType, "badge") === "lucide" ? /* @__PURE__ */ (0,
|
|
2038
|
+
normalizeText(item.iconType, "badge") === "lucide" ? /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("label", { className: "orion-builder-settings-label", children: [
|
|
1958
2039
|
"Icon",
|
|
1959
|
-
/* @__PURE__ */ (0,
|
|
2040
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
|
|
1960
2041
|
"select",
|
|
1961
2042
|
{
|
|
1962
2043
|
className: "orion-builder-settings-input",
|
|
1963
2044
|
onChange: (event) => onUpdateItemField(itemIndex, "iconLucide", event.target.value),
|
|
1964
2045
|
value: normalizeText(item.iconLucide),
|
|
1965
2046
|
children: [
|
|
1966
|
-
/* @__PURE__ */ (0,
|
|
1967
|
-
lucideIconOptions.map((icon) => /* @__PURE__ */ (0,
|
|
2047
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("option", { value: "", children: "Select an icon" }),
|
|
2048
|
+
lucideIconOptions.map((icon) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("option", { value: icon, children: icon }, icon))
|
|
1968
2049
|
]
|
|
1969
2050
|
}
|
|
1970
2051
|
)
|
|
1971
|
-
] }) : /* @__PURE__ */ (0,
|
|
2052
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("label", { className: "orion-builder-settings-label", children: [
|
|
1972
2053
|
"Badge Text",
|
|
1973
|
-
/* @__PURE__ */ (0,
|
|
2054
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
1974
2055
|
"input",
|
|
1975
2056
|
{
|
|
1976
2057
|
className: "orion-builder-settings-input",
|
|
@@ -1982,10 +2063,10 @@ function ArrayItemsEditor({
|
|
|
1982
2063
|
] }),
|
|
1983
2064
|
renderMediaPicker(item, itemIndex, "media", "Feature Image", "Upload Feature Image")
|
|
1984
2065
|
] }) : null,
|
|
1985
|
-
blockType === "logoWall" ? /* @__PURE__ */ (0,
|
|
1986
|
-
showInlineCopyFields ? /* @__PURE__ */ (0,
|
|
2066
|
+
blockType === "logoWall" ? /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_jsx_runtime5.Fragment, { children: [
|
|
2067
|
+
showInlineCopyFields ? /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("label", { className: "orion-builder-settings-label", children: [
|
|
1987
2068
|
"Name",
|
|
1988
|
-
/* @__PURE__ */ (0,
|
|
2069
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
1989
2070
|
"input",
|
|
1990
2071
|
{
|
|
1991
2072
|
className: "orion-builder-settings-input",
|
|
@@ -1995,9 +2076,9 @@ function ArrayItemsEditor({
|
|
|
1995
2076
|
}
|
|
1996
2077
|
)
|
|
1997
2078
|
] }) : null,
|
|
1998
|
-
hasQueryMatch(normalizedQuery, "link", "url", "href") ? /* @__PURE__ */ (0,
|
|
2079
|
+
hasQueryMatch(normalizedQuery, "link", "url", "href") ? /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("label", { className: "orion-builder-settings-label", children: [
|
|
1999
2080
|
"Link URL",
|
|
2000
|
-
/* @__PURE__ */ (0,
|
|
2081
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
2001
2082
|
"input",
|
|
2002
2083
|
{
|
|
2003
2084
|
className: "orion-builder-settings-input",
|
|
@@ -2009,11 +2090,11 @@ function ArrayItemsEditor({
|
|
|
2009
2090
|
] }) : null,
|
|
2010
2091
|
renderMediaPicker(item, itemIndex, "media", "Logo Image", "Upload Logo Image")
|
|
2011
2092
|
] }) : null,
|
|
2012
|
-
blockType === "beforeAfter" ? /* @__PURE__ */ (0,
|
|
2013
|
-
showInlineCopyFields ? /* @__PURE__ */ (0,
|
|
2014
|
-
/* @__PURE__ */ (0,
|
|
2093
|
+
blockType === "beforeAfter" ? /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_jsx_runtime5.Fragment, { children: [
|
|
2094
|
+
showInlineCopyFields ? /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_jsx_runtime5.Fragment, { children: [
|
|
2095
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("label", { className: "orion-builder-settings-label", children: [
|
|
2015
2096
|
"Label",
|
|
2016
|
-
/* @__PURE__ */ (0,
|
|
2097
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
2017
2098
|
"input",
|
|
2018
2099
|
{
|
|
2019
2100
|
className: "orion-builder-settings-input",
|
|
@@ -2023,9 +2104,9 @@ function ArrayItemsEditor({
|
|
|
2023
2104
|
}
|
|
2024
2105
|
)
|
|
2025
2106
|
] }),
|
|
2026
|
-
/* @__PURE__ */ (0,
|
|
2107
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("label", { className: "orion-builder-settings-label", children: [
|
|
2027
2108
|
"Description",
|
|
2028
|
-
/* @__PURE__ */ (0,
|
|
2109
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
2029
2110
|
"textarea",
|
|
2030
2111
|
{
|
|
2031
2112
|
className: "orion-builder-settings-input is-textarea",
|
|
@@ -2038,10 +2119,10 @@ function ArrayItemsEditor({
|
|
|
2038
2119
|
renderMediaPicker(item, itemIndex, "beforeMedia", "Before Image", "Upload Before Image"),
|
|
2039
2120
|
renderMediaPicker(item, itemIndex, "afterMedia", "After Image", "Upload After Image")
|
|
2040
2121
|
] }) : null,
|
|
2041
|
-
blockType === "stats" ? /* @__PURE__ */ (0,
|
|
2042
|
-
/* @__PURE__ */ (0,
|
|
2122
|
+
blockType === "stats" ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_jsx_runtime5.Fragment, { children: showInlineCopyFields ? /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_jsx_runtime5.Fragment, { children: [
|
|
2123
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("label", { className: "orion-builder-settings-label", children: [
|
|
2043
2124
|
"Value",
|
|
2044
|
-
/* @__PURE__ */ (0,
|
|
2125
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
2045
2126
|
"input",
|
|
2046
2127
|
{
|
|
2047
2128
|
className: "orion-builder-settings-input",
|
|
@@ -2051,9 +2132,9 @@ function ArrayItemsEditor({
|
|
|
2051
2132
|
}
|
|
2052
2133
|
)
|
|
2053
2134
|
] }),
|
|
2054
|
-
/* @__PURE__ */ (0,
|
|
2135
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("label", { className: "orion-builder-settings-label", children: [
|
|
2055
2136
|
"Label",
|
|
2056
|
-
/* @__PURE__ */ (0,
|
|
2137
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
2057
2138
|
"input",
|
|
2058
2139
|
{
|
|
2059
2140
|
className: "orion-builder-settings-input",
|
|
@@ -2063,9 +2144,9 @@ function ArrayItemsEditor({
|
|
|
2063
2144
|
}
|
|
2064
2145
|
)
|
|
2065
2146
|
] }),
|
|
2066
|
-
/* @__PURE__ */ (0,
|
|
2147
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("label", { className: "orion-builder-settings-label", children: [
|
|
2067
2148
|
"Description",
|
|
2068
|
-
/* @__PURE__ */ (0,
|
|
2149
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
2069
2150
|
"textarea",
|
|
2070
2151
|
{
|
|
2071
2152
|
className: "orion-builder-settings-input is-textarea",
|
|
@@ -2075,10 +2156,10 @@ function ArrayItemsEditor({
|
|
|
2075
2156
|
)
|
|
2076
2157
|
] })
|
|
2077
2158
|
] }) : null }) : null,
|
|
2078
|
-
blockType === "faq" ? /* @__PURE__ */ (0,
|
|
2079
|
-
/* @__PURE__ */ (0,
|
|
2159
|
+
blockType === "faq" ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_jsx_runtime5.Fragment, { children: showInlineCopyFields ? /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_jsx_runtime5.Fragment, { children: [
|
|
2160
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("label", { className: "orion-builder-settings-label", children: [
|
|
2080
2161
|
"Question",
|
|
2081
|
-
/* @__PURE__ */ (0,
|
|
2162
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
2082
2163
|
"input",
|
|
2083
2164
|
{
|
|
2084
2165
|
className: "orion-builder-settings-input",
|
|
@@ -2088,9 +2169,9 @@ function ArrayItemsEditor({
|
|
|
2088
2169
|
}
|
|
2089
2170
|
)
|
|
2090
2171
|
] }),
|
|
2091
|
-
/* @__PURE__ */ (0,
|
|
2172
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("label", { className: "orion-builder-settings-label", children: [
|
|
2092
2173
|
"Answer",
|
|
2093
|
-
/* @__PURE__ */ (0,
|
|
2174
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
2094
2175
|
"textarea",
|
|
2095
2176
|
{
|
|
2096
2177
|
className: "orion-builder-settings-input is-textarea",
|
|
@@ -2100,11 +2181,11 @@ function ArrayItemsEditor({
|
|
|
2100
2181
|
)
|
|
2101
2182
|
] })
|
|
2102
2183
|
] }) : null }) : null,
|
|
2103
|
-
blockType === "testimonials" ? /* @__PURE__ */ (0,
|
|
2104
|
-
showInlineCopyFields ? /* @__PURE__ */ (0,
|
|
2105
|
-
/* @__PURE__ */ (0,
|
|
2184
|
+
blockType === "testimonials" ? /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_jsx_runtime5.Fragment, { children: [
|
|
2185
|
+
showInlineCopyFields ? /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_jsx_runtime5.Fragment, { children: [
|
|
2186
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("label", { className: "orion-builder-settings-label", children: [
|
|
2106
2187
|
"Quote",
|
|
2107
|
-
/* @__PURE__ */ (0,
|
|
2188
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
2108
2189
|
"textarea",
|
|
2109
2190
|
{
|
|
2110
2191
|
className: "orion-builder-settings-input is-textarea",
|
|
@@ -2113,9 +2194,9 @@ function ArrayItemsEditor({
|
|
|
2113
2194
|
}
|
|
2114
2195
|
)
|
|
2115
2196
|
] }),
|
|
2116
|
-
/* @__PURE__ */ (0,
|
|
2197
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("label", { className: "orion-builder-settings-label", children: [
|
|
2117
2198
|
"Name",
|
|
2118
|
-
/* @__PURE__ */ (0,
|
|
2199
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
2119
2200
|
"input",
|
|
2120
2201
|
{
|
|
2121
2202
|
className: "orion-builder-settings-input",
|
|
@@ -2125,9 +2206,9 @@ function ArrayItemsEditor({
|
|
|
2125
2206
|
}
|
|
2126
2207
|
)
|
|
2127
2208
|
] }),
|
|
2128
|
-
/* @__PURE__ */ (0,
|
|
2209
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("label", { className: "orion-builder-settings-label", children: [
|
|
2129
2210
|
"Location",
|
|
2130
|
-
/* @__PURE__ */ (0,
|
|
2211
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
2131
2212
|
"input",
|
|
2132
2213
|
{
|
|
2133
2214
|
className: "orion-builder-settings-input",
|
|
@@ -2138,9 +2219,9 @@ function ArrayItemsEditor({
|
|
|
2138
2219
|
)
|
|
2139
2220
|
] })
|
|
2140
2221
|
] }) : null,
|
|
2141
|
-
/* @__PURE__ */ (0,
|
|
2222
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("label", { className: "orion-builder-settings-label", children: [
|
|
2142
2223
|
"Rating",
|
|
2143
|
-
/* @__PURE__ */ (0,
|
|
2224
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
2144
2225
|
"input",
|
|
2145
2226
|
{
|
|
2146
2227
|
className: "orion-builder-settings-input",
|
|
@@ -2153,7 +2234,7 @@ function ArrayItemsEditor({
|
|
|
2153
2234
|
)
|
|
2154
2235
|
] })
|
|
2155
2236
|
] }) : null,
|
|
2156
|
-
blockType === "featureGrid" || blockType === "logoWall" || blockType === "beforeAfter" ? /* @__PURE__ */ (0,
|
|
2237
|
+
blockType === "featureGrid" || blockType === "logoWall" || blockType === "beforeAfter" ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
2157
2238
|
ImageControls,
|
|
2158
2239
|
{
|
|
2159
2240
|
cornerStyle: normalizeImageCornerStyle(item.imageCornerStyle),
|
|
@@ -2189,35 +2270,133 @@ function ArrayItemsEditor({
|
|
|
2189
2270
|
positionY: clamp(normalizeNumber2(item.imagePositionY, 50), 0, 100)
|
|
2190
2271
|
}
|
|
2191
2272
|
) : null,
|
|
2192
|
-
mode === "advanced" ? /* @__PURE__ */ (0,
|
|
2273
|
+
mode === "advanced" ? /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("label", { className: "orion-builder-settings-label", children: [
|
|
2193
2274
|
"Item Text Alignment",
|
|
2194
|
-
/* @__PURE__ */ (0,
|
|
2275
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
|
|
2195
2276
|
"select",
|
|
2196
2277
|
{
|
|
2197
2278
|
className: "orion-builder-settings-input",
|
|
2198
2279
|
onChange: (event) => onUpdateItemSetting(itemIndex, "typography.bodyAlign", event.target.value),
|
|
2199
2280
|
value: getItemTypographyAlign(item),
|
|
2200
2281
|
children: [
|
|
2201
|
-
/* @__PURE__ */ (0,
|
|
2202
|
-
/* @__PURE__ */ (0,
|
|
2203
|
-
/* @__PURE__ */ (0,
|
|
2204
|
-
/* @__PURE__ */ (0,
|
|
2282
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("option", { value: "left", children: "Left" }),
|
|
2283
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("option", { value: "center", children: "Center" }),
|
|
2284
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("option", { value: "right", children: "Right" }),
|
|
2285
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("option", { value: "justify", children: "Justify" })
|
|
2205
2286
|
]
|
|
2206
2287
|
}
|
|
2207
2288
|
)
|
|
2208
2289
|
] }) : null,
|
|
2209
|
-
/* @__PURE__ */ (0,
|
|
2290
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("button", { className: "orion-builder-settings-inline-btn is-danger", onClick: () => onRemoveItem(itemIndex), type: "button", children: "Remove Item" })
|
|
2210
2291
|
] }) : null
|
|
2211
2292
|
] }, `${blockType}-item-${itemIndex}`);
|
|
2212
2293
|
}),
|
|
2213
|
-
items.length === 0 ? /* @__PURE__ */ (0,
|
|
2294
|
+
items.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "orion-builder-settings-empty", children: "No items yet. Add one to start configuring this block." }) : null
|
|
2214
2295
|
] })
|
|
2215
2296
|
}
|
|
2216
2297
|
);
|
|
2217
2298
|
}
|
|
2218
2299
|
|
|
2300
|
+
// src/studio-pages/builder/ui/InlineText.tsx
|
|
2301
|
+
var import_react2 = require("react");
|
|
2302
|
+
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
2303
|
+
function InlineText({
|
|
2304
|
+
as = "p",
|
|
2305
|
+
className,
|
|
2306
|
+
multiline = false,
|
|
2307
|
+
onCommit,
|
|
2308
|
+
placeholder = "Click to edit",
|
|
2309
|
+
style,
|
|
2310
|
+
value
|
|
2311
|
+
}) {
|
|
2312
|
+
const [editing, setEditing] = (0, import_react2.useState)(false);
|
|
2313
|
+
const editableRef = (0, import_react2.useRef)(null);
|
|
2314
|
+
const Tag = as;
|
|
2315
|
+
const normalizeValue = (raw) => {
|
|
2316
|
+
if (multiline) {
|
|
2317
|
+
return raw.replace(/\r\n/g, "\n").trim();
|
|
2318
|
+
}
|
|
2319
|
+
return raw.replace(/\r?\n/g, " ").replace(/\s+/g, " ").trim();
|
|
2320
|
+
};
|
|
2321
|
+
(0, import_react2.useEffect)(() => {
|
|
2322
|
+
if (!editing || !editableRef.current) {
|
|
2323
|
+
return;
|
|
2324
|
+
}
|
|
2325
|
+
const element = editableRef.current;
|
|
2326
|
+
const initialValue = value || "";
|
|
2327
|
+
if (multiline) {
|
|
2328
|
+
element.innerText = initialValue;
|
|
2329
|
+
} else {
|
|
2330
|
+
element.textContent = initialValue;
|
|
2331
|
+
}
|
|
2332
|
+
element.focus();
|
|
2333
|
+
const selection = window.getSelection();
|
|
2334
|
+
if (!selection) {
|
|
2335
|
+
return;
|
|
2336
|
+
}
|
|
2337
|
+
const range = document.createRange();
|
|
2338
|
+
range.selectNodeContents(element);
|
|
2339
|
+
range.collapse(false);
|
|
2340
|
+
selection.removeAllRanges();
|
|
2341
|
+
selection.addRange(range);
|
|
2342
|
+
}, [editing, multiline, value]);
|
|
2343
|
+
if (editing) {
|
|
2344
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
2345
|
+
Tag,
|
|
2346
|
+
{
|
|
2347
|
+
className,
|
|
2348
|
+
contentEditable: true,
|
|
2349
|
+
ref: (node) => {
|
|
2350
|
+
editableRef.current = node;
|
|
2351
|
+
},
|
|
2352
|
+
onBlur: (event) => {
|
|
2353
|
+
setEditing(false);
|
|
2354
|
+
const raw = multiline ? event.currentTarget.innerText || "" : event.currentTarget.textContent || "";
|
|
2355
|
+
const nextValue = normalizeValue(raw);
|
|
2356
|
+
onCommit(nextValue);
|
|
2357
|
+
},
|
|
2358
|
+
onKeyDown: (event) => {
|
|
2359
|
+
if (!multiline && event.key === "Enter") {
|
|
2360
|
+
event.preventDefault();
|
|
2361
|
+
event.currentTarget.blur();
|
|
2362
|
+
}
|
|
2363
|
+
},
|
|
2364
|
+
style: {
|
|
2365
|
+
background: "transparent",
|
|
2366
|
+
borderRadius: 6,
|
|
2367
|
+
boxShadow: "0 0 0 4px rgba(92, 255, 174, 0.38)",
|
|
2368
|
+
cursor: "text",
|
|
2369
|
+
minHeight: multiline ? "1.6em" : void 0,
|
|
2370
|
+
outline: "3px solid rgba(21, 125, 82, 0.95)",
|
|
2371
|
+
outlineOffset: 2,
|
|
2372
|
+
...style
|
|
2373
|
+
},
|
|
2374
|
+
suppressContentEditableWarning: true
|
|
2375
|
+
}
|
|
2376
|
+
);
|
|
2377
|
+
}
|
|
2378
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
2379
|
+
Tag,
|
|
2380
|
+
{
|
|
2381
|
+
className,
|
|
2382
|
+
onClick: () => setEditing(true),
|
|
2383
|
+
style: { cursor: "text", ...style },
|
|
2384
|
+
children: value && value.length > 0 ? value : placeholder
|
|
2385
|
+
}
|
|
2386
|
+
);
|
|
2387
|
+
}
|
|
2388
|
+
|
|
2389
|
+
// src/studio-pages/builder/ui/UploadOverlay.tsx
|
|
2390
|
+
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
2391
|
+
function UploadOverlay({ label = "Uploading image..." }) {
|
|
2392
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "orion-builder-upload-overlay", role: "status", "aria-live": "polite", children: [
|
|
2393
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { "aria-hidden": "true", className: "orion-builder-upload-spinner" }),
|
|
2394
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { children: label })
|
|
2395
|
+
] });
|
|
2396
|
+
}
|
|
2397
|
+
|
|
2219
2398
|
// src/studio-pages/builder/BuilderPageEditor.tsx
|
|
2220
|
-
var
|
|
2399
|
+
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
2221
2400
|
var isRecord5 = (value) => Boolean(value) && typeof value === "object" && !Array.isArray(value);
|
|
2222
2401
|
var resolveMedia = (value) => {
|
|
2223
2402
|
if (!value) return null;
|
|
@@ -2825,91 +3004,6 @@ var notifyMediaLibraryUpdated = () => {
|
|
|
2825
3004
|
} catch {
|
|
2826
3005
|
}
|
|
2827
3006
|
};
|
|
2828
|
-
function InlineText({
|
|
2829
|
-
as = "p",
|
|
2830
|
-
className,
|
|
2831
|
-
multiline = false,
|
|
2832
|
-
onCommit,
|
|
2833
|
-
placeholder = "Click to edit",
|
|
2834
|
-
style,
|
|
2835
|
-
value
|
|
2836
|
-
}) {
|
|
2837
|
-
const [editing, setEditing] = (0, import_react2.useState)(false);
|
|
2838
|
-
const editableRef = (0, import_react2.useRef)(null);
|
|
2839
|
-
const Tag = as;
|
|
2840
|
-
const normalizeValue = (raw) => {
|
|
2841
|
-
if (multiline) {
|
|
2842
|
-
return raw.replace(/\r\n/g, "\n").trim();
|
|
2843
|
-
}
|
|
2844
|
-
return raw.replace(/\r?\n/g, " ").replace(/\s+/g, " ").trim();
|
|
2845
|
-
};
|
|
2846
|
-
(0, import_react2.useEffect)(() => {
|
|
2847
|
-
if (!editing || !editableRef.current) {
|
|
2848
|
-
return;
|
|
2849
|
-
}
|
|
2850
|
-
const element = editableRef.current;
|
|
2851
|
-
const initialValue = value || "";
|
|
2852
|
-
if (multiline) {
|
|
2853
|
-
element.innerText = initialValue;
|
|
2854
|
-
} else {
|
|
2855
|
-
element.textContent = initialValue;
|
|
2856
|
-
}
|
|
2857
|
-
element.focus();
|
|
2858
|
-
const selection = window.getSelection();
|
|
2859
|
-
if (!selection) {
|
|
2860
|
-
return;
|
|
2861
|
-
}
|
|
2862
|
-
const range = document.createRange();
|
|
2863
|
-
range.selectNodeContents(element);
|
|
2864
|
-
range.collapse(false);
|
|
2865
|
-
selection.removeAllRanges();
|
|
2866
|
-
selection.addRange(range);
|
|
2867
|
-
}, [editing, multiline, value]);
|
|
2868
|
-
if (editing) {
|
|
2869
|
-
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
2870
|
-
Tag,
|
|
2871
|
-
{
|
|
2872
|
-
className,
|
|
2873
|
-
contentEditable: true,
|
|
2874
|
-
ref: (node) => {
|
|
2875
|
-
editableRef.current = node;
|
|
2876
|
-
},
|
|
2877
|
-
onBlur: (event) => {
|
|
2878
|
-
setEditing(false);
|
|
2879
|
-
const raw = multiline ? event.currentTarget.innerText || "" : event.currentTarget.textContent || "";
|
|
2880
|
-
const nextValue = normalizeValue(raw);
|
|
2881
|
-
onCommit(nextValue);
|
|
2882
|
-
},
|
|
2883
|
-
onKeyDown: (event) => {
|
|
2884
|
-
if (!multiline && event.key === "Enter") {
|
|
2885
|
-
event.preventDefault();
|
|
2886
|
-
event.currentTarget.blur();
|
|
2887
|
-
}
|
|
2888
|
-
},
|
|
2889
|
-
style: {
|
|
2890
|
-
background: "transparent",
|
|
2891
|
-
borderRadius: 6,
|
|
2892
|
-
boxShadow: "0 0 0 4px rgba(92, 255, 174, 0.38)",
|
|
2893
|
-
cursor: "text",
|
|
2894
|
-
minHeight: multiline ? "1.6em" : void 0,
|
|
2895
|
-
outline: "3px solid rgba(21, 125, 82, 0.95)",
|
|
2896
|
-
outlineOffset: 2,
|
|
2897
|
-
...style
|
|
2898
|
-
},
|
|
2899
|
-
suppressContentEditableWarning: true
|
|
2900
|
-
}
|
|
2901
|
-
);
|
|
2902
|
-
}
|
|
2903
|
-
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
2904
|
-
Tag,
|
|
2905
|
-
{
|
|
2906
|
-
className,
|
|
2907
|
-
onClick: () => setEditing(true),
|
|
2908
|
-
style: { cursor: "text", ...style },
|
|
2909
|
-
children: value && value.length > 0 ? value : placeholder
|
|
2910
|
-
}
|
|
2911
|
-
);
|
|
2912
|
-
}
|
|
2913
3007
|
function BlockFrame({
|
|
2914
3008
|
children,
|
|
2915
3009
|
dragIndex,
|
|
@@ -2920,20 +3014,20 @@ function BlockFrame({
|
|
|
2920
3014
|
selected,
|
|
2921
3015
|
setDragIndex
|
|
2922
3016
|
}) {
|
|
2923
|
-
const [dropPosition, setDropPosition] = (0,
|
|
2924
|
-
const [dropHovered, setDropHovered] = (0,
|
|
3017
|
+
const [dropPosition, setDropPosition] = (0, import_react3.useState)(null);
|
|
3018
|
+
const [dropHovered, setDropHovered] = (0, import_react3.useState)(false);
|
|
2925
3019
|
const isDragging = dragIndex === index;
|
|
2926
3020
|
const isAnyDragging = dragIndex !== null;
|
|
2927
3021
|
const isDropTarget = dragIndex !== null && dragIndex !== index && dropPosition !== null;
|
|
2928
3022
|
const showDropBefore = isDropTarget && dropPosition === "before";
|
|
2929
3023
|
const showDropAfter = isDropTarget && dropPosition === "after";
|
|
2930
|
-
(0,
|
|
3024
|
+
(0, import_react3.useEffect)(() => {
|
|
2931
3025
|
if (dragIndex === null) {
|
|
2932
3026
|
setDropPosition(null);
|
|
2933
3027
|
setDropHovered(false);
|
|
2934
3028
|
}
|
|
2935
3029
|
}, [dragIndex]);
|
|
2936
|
-
return /* @__PURE__ */ (0,
|
|
3030
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
2937
3031
|
"div",
|
|
2938
3032
|
{
|
|
2939
3033
|
draggable: true,
|
|
@@ -3000,7 +3094,7 @@ function BlockFrame({
|
|
|
3000
3094
|
willChange: isAnyDragging ? "transform, box-shadow, opacity" : "auto"
|
|
3001
3095
|
},
|
|
3002
3096
|
children: [
|
|
3003
|
-
showDropBefore ? /* @__PURE__ */ (0,
|
|
3097
|
+
showDropBefore ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
3004
3098
|
"div",
|
|
3005
3099
|
{
|
|
3006
3100
|
style: {
|
|
@@ -3016,7 +3110,7 @@ function BlockFrame({
|
|
|
3016
3110
|
}
|
|
3017
3111
|
}
|
|
3018
3112
|
) : null,
|
|
3019
|
-
showDropAfter ? /* @__PURE__ */ (0,
|
|
3113
|
+
showDropAfter ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
3020
3114
|
"div",
|
|
3021
3115
|
{
|
|
3022
3116
|
style: {
|
|
@@ -3032,7 +3126,7 @@ function BlockFrame({
|
|
|
3032
3126
|
}
|
|
3033
3127
|
}
|
|
3034
3128
|
) : null,
|
|
3035
|
-
isDropTarget && dropHovered ? /* @__PURE__ */ (0,
|
|
3129
|
+
isDropTarget && dropHovered ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
3036
3130
|
"div",
|
|
3037
3131
|
{
|
|
3038
3132
|
style: {
|
|
@@ -3046,7 +3140,7 @@ function BlockFrame({
|
|
|
3046
3140
|
}
|
|
3047
3141
|
}
|
|
3048
3142
|
) : null,
|
|
3049
|
-
/* @__PURE__ */ (0,
|
|
3143
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
3050
3144
|
"div",
|
|
3051
3145
|
{
|
|
3052
3146
|
style: {
|
|
@@ -3068,7 +3162,7 @@ function BlockFrame({
|
|
|
3068
3162
|
]
|
|
3069
3163
|
}
|
|
3070
3164
|
),
|
|
3071
|
-
/* @__PURE__ */ (0,
|
|
3165
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
3072
3166
|
"div",
|
|
3073
3167
|
{
|
|
3074
3168
|
"aria-hidden": true,
|
|
@@ -3094,7 +3188,7 @@ function BlockFrame({
|
|
|
3094
3188
|
zIndex: 30
|
|
3095
3189
|
},
|
|
3096
3190
|
children: [
|
|
3097
|
-
/* @__PURE__ */ (0,
|
|
3191
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { style: { display: "inline-block", fontSize: 13, transform: "translateY(-0.5px)" }, children: "\u22EE\u22EE" }),
|
|
3098
3192
|
"Drag"
|
|
3099
3193
|
]
|
|
3100
3194
|
}
|
|
@@ -3104,12 +3198,6 @@ function BlockFrame({
|
|
|
3104
3198
|
}
|
|
3105
3199
|
);
|
|
3106
3200
|
}
|
|
3107
|
-
function UploadOverlay({ label = "Uploading image..." }) {
|
|
3108
|
-
return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "orion-builder-upload-overlay", role: "status", "aria-live": "polite", children: [
|
|
3109
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { "aria-hidden": "true", className: "orion-builder-upload-spinner" }),
|
|
3110
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { children: label })
|
|
3111
|
-
] });
|
|
3112
|
-
}
|
|
3113
3201
|
var clonePageDefaults = (value) => ({
|
|
3114
3202
|
pageWidthDefault: value.pageWidthDefault,
|
|
3115
3203
|
themePage: value.themePage ? JSON.parse(JSON.stringify(value.themePage)) : {}
|
|
@@ -3119,7 +3207,7 @@ var cloneSnapshot = (value) => ({
|
|
|
3119
3207
|
pageDefaults: clonePageDefaults(value.pageDefaults)
|
|
3120
3208
|
});
|
|
3121
3209
|
function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }) {
|
|
3122
|
-
const editorRootRef = (0,
|
|
3210
|
+
const editorRootRef = (0, import_react3.useRef)(null);
|
|
3123
3211
|
const doc = initialDoc ?? {};
|
|
3124
3212
|
const sourceStudioDocument = doc.studioDocument && typeof doc.studioDocument === "object" ? doc.studioDocument : {};
|
|
3125
3213
|
const sourceMetadata = sourceStudioDocument.metadata && typeof sourceStudioDocument.metadata === "object" ? sourceStudioDocument.metadata : {};
|
|
@@ -3131,43 +3219,43 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
3131
3219
|
pageWidthDefault: sourceMetadata.pageWidthDefault === "wide" || sourceMetadata.pageWidthDefault === "full" ? sourceMetadata.pageWidthDefault : defaultPageDefaults.pageWidthDefault,
|
|
3132
3220
|
themePage: isRecord5(sourceThemePage.page) ? sourceThemePage.page : {}
|
|
3133
3221
|
};
|
|
3134
|
-
const [layout, setLayout] = (0,
|
|
3222
|
+
const [layout, setLayout] = (0, import_react3.useState)(
|
|
3135
3223
|
migrateLayoutToSettingsV2(cloneBlockLayout(initialLayout).map((block) => withSectionStyleDefaults2(block)))
|
|
3136
3224
|
);
|
|
3137
|
-
const [pageDefaults, setPageDefaults] = (0,
|
|
3138
|
-
const [selectedIndex, setSelectedIndex] = (0,
|
|
3139
|
-
const [dragIndex, setDragIndex] = (0,
|
|
3140
|
-
const [sidebarOpen, setSidebarOpen] = (0,
|
|
3141
|
-
const [savingStatus, setSavingStatus] = (0,
|
|
3142
|
-
const [uploadingTarget, setUploadingTarget] = (0,
|
|
3143
|
-
const [topViewportHeight, setTopViewportHeight] = (0,
|
|
3144
|
-
const [uploadError, setUploadError] = (0,
|
|
3145
|
-
const [uploadMessage, setUploadMessage] = (0,
|
|
3146
|
-
const [uploadAltText, setUploadAltText] = (0,
|
|
3147
|
-
const [mediaLibrary, setMediaLibrary] = (0,
|
|
3148
|
-
const [mediaLibraryError, setMediaLibraryError] = (0,
|
|
3149
|
-
const [mediaLibraryLoading, setMediaLibraryLoading] = (0,
|
|
3150
|
-
const [selectedHeroMediaID, setSelectedHeroMediaID] = (0,
|
|
3151
|
-
const [selectedItemIndex, setSelectedItemIndex] = (0,
|
|
3152
|
-
const [expandedItemIndex, setExpandedItemIndex] = (0,
|
|
3153
|
-
const [testimonialsOffsets, setTestimonialsOffsets] = (0,
|
|
3154
|
-
const [presetQuery, setPresetQuery] = (0,
|
|
3155
|
-
const [sessionExpired, setSessionExpired] = (0,
|
|
3156
|
-
const [pastSnapshots, setPastSnapshots] = (0,
|
|
3157
|
-
const [futureSnapshots, setFutureSnapshots] = (0,
|
|
3158
|
-
const [settingsPanelMode, setSettingsPanelMode] = (0,
|
|
3159
|
-
const [settingsSearchQuery, setSettingsSearchQuery] = (0,
|
|
3225
|
+
const [pageDefaults, setPageDefaults] = (0, import_react3.useState)(clonePageDefaults(initialPageDefaults));
|
|
3226
|
+
const [selectedIndex, setSelectedIndex] = (0, import_react3.useState)(null);
|
|
3227
|
+
const [dragIndex, setDragIndex] = (0, import_react3.useState)(null);
|
|
3228
|
+
const [sidebarOpen, setSidebarOpen] = (0, import_react3.useState)(true);
|
|
3229
|
+
const [savingStatus, setSavingStatus] = (0, import_react3.useState)(null);
|
|
3230
|
+
const [uploadingTarget, setUploadingTarget] = (0, import_react3.useState)(null);
|
|
3231
|
+
const [topViewportHeight, setTopViewportHeight] = (0, import_react3.useState)(null);
|
|
3232
|
+
const [uploadError, setUploadError] = (0, import_react3.useState)("");
|
|
3233
|
+
const [uploadMessage, setUploadMessage] = (0, import_react3.useState)("");
|
|
3234
|
+
const [uploadAltText, setUploadAltText] = (0, import_react3.useState)("");
|
|
3235
|
+
const [mediaLibrary, setMediaLibrary] = (0, import_react3.useState)([]);
|
|
3236
|
+
const [mediaLibraryError, setMediaLibraryError] = (0, import_react3.useState)("");
|
|
3237
|
+
const [mediaLibraryLoading, setMediaLibraryLoading] = (0, import_react3.useState)(false);
|
|
3238
|
+
const [selectedHeroMediaID, setSelectedHeroMediaID] = (0, import_react3.useState)("");
|
|
3239
|
+
const [selectedItemIndex, setSelectedItemIndex] = (0, import_react3.useState)(null);
|
|
3240
|
+
const [expandedItemIndex, setExpandedItemIndex] = (0, import_react3.useState)(null);
|
|
3241
|
+
const [testimonialsOffsets, setTestimonialsOffsets] = (0, import_react3.useState)({});
|
|
3242
|
+
const [presetQuery, setPresetQuery] = (0, import_react3.useState)("");
|
|
3243
|
+
const [sessionExpired, setSessionExpired] = (0, import_react3.useState)(false);
|
|
3244
|
+
const [pastSnapshots, setPastSnapshots] = (0, import_react3.useState)([]);
|
|
3245
|
+
const [futureSnapshots, setFutureSnapshots] = (0, import_react3.useState)([]);
|
|
3246
|
+
const [settingsPanelMode, setSettingsPanelMode] = (0, import_react3.useState)("basic");
|
|
3247
|
+
const [settingsSearchQuery, setSettingsSearchQuery] = (0, import_react3.useState)("");
|
|
3160
3248
|
const isSidebarPanelKey = (value) => value === "pageDefaults" || value === "addSections" || value === "selected";
|
|
3161
|
-
const [activeSidebarPanel, setActiveSidebarPanel] = (0,
|
|
3162
|
-
const historyBypassRef = (0,
|
|
3163
|
-
const previousSnapshotRef = (0,
|
|
3249
|
+
const [activeSidebarPanel, setActiveSidebarPanel] = (0, import_react3.useState)("selected");
|
|
3250
|
+
const historyBypassRef = (0, import_react3.useRef)(true);
|
|
3251
|
+
const previousSnapshotRef = (0, import_react3.useRef)({
|
|
3164
3252
|
layout: migrateLayoutToSettingsV2(cloneBlockLayout(initialLayout).map((block) => withSectionStyleDefaults2(block))),
|
|
3165
3253
|
pageDefaults: clonePageDefaults(initialPageDefaults)
|
|
3166
3254
|
});
|
|
3167
|
-
const lastSavedRef = (0,
|
|
3255
|
+
const lastSavedRef = (0, import_react3.useRef)(cloneSnapshot(previousSnapshotRef.current));
|
|
3168
3256
|
const persistedFlagKey = "orion-builder-settings-panel-v2";
|
|
3169
|
-
const [settingsPanelV2Override, setSettingsPanelV2Override] = (0,
|
|
3170
|
-
const settingsPanelV2Enabled = (0,
|
|
3257
|
+
const [settingsPanelV2Override, setSettingsPanelV2Override] = (0, import_react3.useState)(null);
|
|
3258
|
+
const settingsPanelV2Enabled = (0, import_react3.useMemo)(() => {
|
|
3171
3259
|
if (typeof featureFlags?.settingsPanelV2 === "boolean") {
|
|
3172
3260
|
return featureFlags.settingsPanelV2;
|
|
3173
3261
|
}
|
|
@@ -3185,7 +3273,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
3185
3273
|
}
|
|
3186
3274
|
return true;
|
|
3187
3275
|
}, [featureFlags?.settingsPanelV2, settingsPanelV2Override]);
|
|
3188
|
-
const selectedBlock = (0,
|
|
3276
|
+
const selectedBlock = (0, import_react3.useMemo)(
|
|
3189
3277
|
() => selectedIndex !== null ? layout[selectedIndex] : null,
|
|
3190
3278
|
[layout, selectedIndex]
|
|
3191
3279
|
);
|
|
@@ -3230,13 +3318,13 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
3230
3318
|
}
|
|
3231
3319
|
return mediaLibrary.find((item) => String(item.id) === String(relationID)) || null;
|
|
3232
3320
|
};
|
|
3233
|
-
const selectedHeroMedia = (0,
|
|
3321
|
+
const selectedHeroMedia = (0, import_react3.useMemo)(() => {
|
|
3234
3322
|
if (selectedType !== "hero" || !selectedBlock) {
|
|
3235
3323
|
return null;
|
|
3236
3324
|
}
|
|
3237
3325
|
return resolveMediaLibraryItemFromValue(selectedBlock.media);
|
|
3238
3326
|
}, [mediaLibrary, selectedBlock, selectedType]);
|
|
3239
|
-
const filteredSectionPresets = (0,
|
|
3327
|
+
const filteredSectionPresets = (0, import_react3.useMemo)(() => {
|
|
3240
3328
|
const query = presetQuery.trim().toLowerCase();
|
|
3241
3329
|
if (!query) {
|
|
3242
3330
|
return sectionPresets;
|
|
@@ -3245,7 +3333,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
3245
3333
|
(preset) => `${preset.title} ${preset.description}`.toLowerCase().includes(query)
|
|
3246
3334
|
);
|
|
3247
3335
|
}, [presetQuery]);
|
|
3248
|
-
const loadMediaLibrary = (0,
|
|
3336
|
+
const loadMediaLibrary = (0, import_react3.useCallback)(async () => {
|
|
3249
3337
|
setMediaLibraryLoading(true);
|
|
3250
3338
|
setMediaLibraryError("");
|
|
3251
3339
|
try {
|
|
@@ -3266,10 +3354,10 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
3266
3354
|
setMediaLibraryLoading(false);
|
|
3267
3355
|
}
|
|
3268
3356
|
}, []);
|
|
3269
|
-
(0,
|
|
3357
|
+
(0, import_react3.useEffect)(() => {
|
|
3270
3358
|
void loadMediaLibrary();
|
|
3271
3359
|
}, [loadMediaLibrary]);
|
|
3272
|
-
(0,
|
|
3360
|
+
(0, import_react3.useEffect)(() => {
|
|
3273
3361
|
const refreshMediaLibrary = () => {
|
|
3274
3362
|
void loadMediaLibrary();
|
|
3275
3363
|
};
|
|
@@ -3294,7 +3382,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
3294
3382
|
document.removeEventListener("visibilitychange", onVisibilityChange);
|
|
3295
3383
|
};
|
|
3296
3384
|
}, [loadMediaLibrary]);
|
|
3297
|
-
(0,
|
|
3385
|
+
(0, import_react3.useEffect)(() => {
|
|
3298
3386
|
let active = true;
|
|
3299
3387
|
const checkSession = async () => {
|
|
3300
3388
|
try {
|
|
@@ -3322,7 +3410,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
3322
3410
|
window.clearInterval(intervalId);
|
|
3323
3411
|
};
|
|
3324
3412
|
}, []);
|
|
3325
|
-
(0,
|
|
3413
|
+
(0, import_react3.useEffect)(() => {
|
|
3326
3414
|
if (selectedType !== "hero") {
|
|
3327
3415
|
setSelectedHeroMediaID("");
|
|
3328
3416
|
return;
|
|
@@ -3683,7 +3771,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
3683
3771
|
}
|
|
3684
3772
|
return nextBlock;
|
|
3685
3773
|
});
|
|
3686
|
-
const resolvedThemeTokens = (0,
|
|
3774
|
+
const resolvedThemeTokens = (0, import_react3.useMemo)(
|
|
3687
3775
|
() => resolveBuilderThemeTokens({
|
|
3688
3776
|
page: pageDefaults.themePage,
|
|
3689
3777
|
site: siteThemeTokens
|
|
@@ -3704,7 +3792,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
3704
3792
|
const headingAlign = blockTypography.headingAlign === "center" || blockTypography.headingAlign === "justify" || blockTypography.headingAlign === "right" ? blockTypography.headingAlign : "left";
|
|
3705
3793
|
const headingColor = getThemeColorOverride(blockTheme, "headingText") || getThemeColorOverride(pageDefaults.themePage, "headingText") || getThemeColorOverride(siteThemeTokens, "headingText") || (block.blockType === "hero" ? "#ffffff" : resolvedThemeTokens.colors.headingText);
|
|
3706
3794
|
const bodyColor = getThemeColorOverride(blockTheme, "bodyText") || getThemeColorOverride(pageDefaults.themePage, "bodyText") || getThemeColorOverride(siteThemeTokens, "bodyText") || (block.blockType === "hero" ? "#ffffff" : resolvedThemeTokens.colors.bodyText);
|
|
3707
|
-
return /* @__PURE__ */ (0,
|
|
3795
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("section", { className: `${className} ${shell.sectionClass}`, style: shell.sectionStyle, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { style: shell.sectionInnerStyle, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
3708
3796
|
"div",
|
|
3709
3797
|
{
|
|
3710
3798
|
className: shell.contentClass,
|
|
@@ -3820,14 +3908,14 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
3820
3908
|
return next;
|
|
3821
3909
|
});
|
|
3822
3910
|
};
|
|
3823
|
-
const currentSnapshot = (0,
|
|
3911
|
+
const currentSnapshot = (0, import_react3.useMemo)(
|
|
3824
3912
|
() => ({
|
|
3825
3913
|
layout: cloneBlockLayout(layout),
|
|
3826
3914
|
pageDefaults: clonePageDefaults(pageDefaults)
|
|
3827
3915
|
}),
|
|
3828
3916
|
[layout, pageDefaults]
|
|
3829
3917
|
);
|
|
3830
|
-
(0,
|
|
3918
|
+
(0, import_react3.useEffect)(() => {
|
|
3831
3919
|
const readTopViewportHeight = () => {
|
|
3832
3920
|
if (typeof window === "undefined") {
|
|
3833
3921
|
setTopViewportHeight(null);
|
|
@@ -3852,7 +3940,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
3852
3940
|
layout: toPersistedLayout(snapshot.layout),
|
|
3853
3941
|
pageDefaults: snapshot.pageDefaults
|
|
3854
3942
|
});
|
|
3855
|
-
const isDirty = (0,
|
|
3943
|
+
const isDirty = (0, import_react3.useMemo)(
|
|
3856
3944
|
() => snapshotKey(currentSnapshot) !== snapshotKey(lastSavedRef.current),
|
|
3857
3945
|
[currentSnapshot]
|
|
3858
3946
|
);
|
|
@@ -4005,7 +4093,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
4005
4093
|
setSavingStatus(null);
|
|
4006
4094
|
}
|
|
4007
4095
|
};
|
|
4008
|
-
(0,
|
|
4096
|
+
(0, import_react3.useEffect)(() => {
|
|
4009
4097
|
const storageKey = `orion-builder-panels:${pageID}`;
|
|
4010
4098
|
const raw = window.localStorage.getItem(storageKey);
|
|
4011
4099
|
if (!raw) {
|
|
@@ -4031,7 +4119,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
4031
4119
|
} catch {
|
|
4032
4120
|
}
|
|
4033
4121
|
}, [pageID]);
|
|
4034
|
-
(0,
|
|
4122
|
+
(0, import_react3.useEffect)(() => {
|
|
4035
4123
|
const persistedValue = window.localStorage.getItem(persistedFlagKey);
|
|
4036
4124
|
if (persistedValue === "true") {
|
|
4037
4125
|
setSettingsPanelV2Override(true);
|
|
@@ -4043,25 +4131,25 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
4043
4131
|
}
|
|
4044
4132
|
setSettingsPanelV2Override(null);
|
|
4045
4133
|
}, [persistedFlagKey]);
|
|
4046
|
-
(0,
|
|
4134
|
+
(0, import_react3.useEffect)(() => {
|
|
4047
4135
|
if (typeof settingsPanelV2Override !== "boolean") {
|
|
4048
4136
|
window.localStorage.removeItem(persistedFlagKey);
|
|
4049
4137
|
return;
|
|
4050
4138
|
}
|
|
4051
4139
|
window.localStorage.setItem(persistedFlagKey, settingsPanelV2Override ? "true" : "false");
|
|
4052
4140
|
}, [persistedFlagKey, settingsPanelV2Override]);
|
|
4053
|
-
(0,
|
|
4141
|
+
(0, import_react3.useEffect)(() => {
|
|
4054
4142
|
const storageKey = `orion-builder-panels:${pageID}`;
|
|
4055
4143
|
window.localStorage.setItem(storageKey, JSON.stringify({ activePanel: activeSidebarPanel }));
|
|
4056
4144
|
}, [activeSidebarPanel, pageID]);
|
|
4057
|
-
(0,
|
|
4145
|
+
(0, import_react3.useEffect)(() => {
|
|
4058
4146
|
if (selectedIndex === null) {
|
|
4059
4147
|
return;
|
|
4060
4148
|
}
|
|
4061
4149
|
setSidebarOpen(true);
|
|
4062
4150
|
setActiveSidebarPanel("selected");
|
|
4063
4151
|
}, [selectedIndex]);
|
|
4064
|
-
(0,
|
|
4152
|
+
(0, import_react3.useEffect)(() => {
|
|
4065
4153
|
if (selectedIndex === null) {
|
|
4066
4154
|
setSelectedItemIndex(null);
|
|
4067
4155
|
setExpandedItemIndex(null);
|
|
@@ -4079,17 +4167,17 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
4079
4167
|
(current) => typeof current === "number" && current >= 0 && current < selectedItems.length ? current : 0
|
|
4080
4168
|
);
|
|
4081
4169
|
}, [selectedIndex, selectedItems.length]);
|
|
4082
|
-
(0,
|
|
4170
|
+
(0, import_react3.useEffect)(() => {
|
|
4083
4171
|
if (layout.length > 0) {
|
|
4084
4172
|
return;
|
|
4085
4173
|
}
|
|
4086
4174
|
setSidebarOpen(true);
|
|
4087
4175
|
setActiveSidebarPanel("addSections");
|
|
4088
4176
|
}, [layout.length]);
|
|
4089
|
-
(0,
|
|
4177
|
+
(0, import_react3.useEffect)(() => {
|
|
4090
4178
|
return;
|
|
4091
4179
|
}, [layout]);
|
|
4092
|
-
(0,
|
|
4180
|
+
(0, import_react3.useEffect)(() => {
|
|
4093
4181
|
if (historyBypassRef.current) {
|
|
4094
4182
|
historyBypassRef.current = false;
|
|
4095
4183
|
previousSnapshotRef.current = cloneSnapshot(currentSnapshot);
|
|
@@ -4100,7 +4188,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
4100
4188
|
setFutureSnapshots([]);
|
|
4101
4189
|
previousSnapshotRef.current = cloneSnapshot(currentSnapshot);
|
|
4102
4190
|
}, [currentSnapshot]);
|
|
4103
|
-
(0,
|
|
4191
|
+
(0, import_react3.useEffect)(() => {
|
|
4104
4192
|
const onKeyDown = (event) => {
|
|
4105
4193
|
const key = event.key.toLowerCase();
|
|
4106
4194
|
const isUndo = (event.metaKey || event.ctrlKey) && key === "z" && !event.shiftKey;
|
|
@@ -4118,7 +4206,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
4118
4206
|
window.addEventListener("keydown", onKeyDown);
|
|
4119
4207
|
return () => window.removeEventListener("keydown", onKeyDown);
|
|
4120
4208
|
}, [canRedo, canUndo, futureSnapshots, pastSnapshots, currentSnapshot]);
|
|
4121
|
-
(0,
|
|
4209
|
+
(0, import_react3.useEffect)(() => {
|
|
4122
4210
|
window.parent?.postMessage(
|
|
4123
4211
|
{
|
|
4124
4212
|
dirty: isDirty,
|
|
@@ -4128,7 +4216,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
4128
4216
|
"*"
|
|
4129
4217
|
);
|
|
4130
4218
|
}, [isDirty]);
|
|
4131
|
-
(0,
|
|
4219
|
+
(0, import_react3.useEffect)(() => {
|
|
4132
4220
|
window.parent?.postMessage(
|
|
4133
4221
|
{
|
|
4134
4222
|
canRedo,
|
|
@@ -4139,7 +4227,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
4139
4227
|
"*"
|
|
4140
4228
|
);
|
|
4141
4229
|
}, [canRedo, canUndo]);
|
|
4142
|
-
(0,
|
|
4230
|
+
(0, import_react3.useEffect)(() => {
|
|
4143
4231
|
const onMessage = (event) => {
|
|
4144
4232
|
const data = event.data;
|
|
4145
4233
|
if (!data || data.source !== "payload-visual-builder-parent") {
|
|
@@ -4192,7 +4280,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
4192
4280
|
window.addEventListener("message", onMessage);
|
|
4193
4281
|
return () => window.removeEventListener("message", onMessage);
|
|
4194
4282
|
}, [canRedo, canUndo, isDirty, layout, pageDefaults.pageWidthDefault, title]);
|
|
4195
|
-
(0,
|
|
4283
|
+
(0, import_react3.useEffect)(() => {
|
|
4196
4284
|
const preventNavigationWhileEditing = (event) => {
|
|
4197
4285
|
const editorRoot = editorRootRef.current;
|
|
4198
4286
|
if (!editorRoot) {
|
|
@@ -4214,7 +4302,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
4214
4302
|
document.addEventListener("click", preventNavigationWhileEditing, true);
|
|
4215
4303
|
return () => document.removeEventListener("click", preventNavigationWhileEditing, true);
|
|
4216
4304
|
}, []);
|
|
4217
|
-
return /* @__PURE__ */ (0,
|
|
4305
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
4218
4306
|
"div",
|
|
4219
4307
|
{
|
|
4220
4308
|
ref: editorRootRef,
|
|
@@ -4225,7 +4313,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
4225
4313
|
padding: "0 0 1.2rem"
|
|
4226
4314
|
},
|
|
4227
4315
|
children: [
|
|
4228
|
-
sessionExpired ? /* @__PURE__ */ (0,
|
|
4316
|
+
sessionExpired ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
4229
4317
|
"div",
|
|
4230
4318
|
{
|
|
4231
4319
|
style: {
|
|
@@ -4238,7 +4326,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
4238
4326
|
position: "fixed",
|
|
4239
4327
|
zIndex: 9999
|
|
4240
4328
|
},
|
|
4241
|
-
children: /* @__PURE__ */ (0,
|
|
4329
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
4242
4330
|
"div",
|
|
4243
4331
|
{
|
|
4244
4332
|
style: {
|
|
@@ -4253,9 +4341,9 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
4253
4341
|
width: "100%"
|
|
4254
4342
|
},
|
|
4255
4343
|
children: [
|
|
4256
|
-
/* @__PURE__ */ (0,
|
|
4257
|
-
/* @__PURE__ */ (0,
|
|
4258
|
-
/* @__PURE__ */ (0,
|
|
4344
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { style: { color: "#8d1d1d", fontSize: "1.1rem", fontWeight: 700 }, children: "Session Expired" }),
|
|
4345
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { style: { color: "#333", fontSize: "0.9rem", lineHeight: 1.5 }, children: "Your login session has expired. Your edits are still here, but you must log in again before saving. Open the login page in a new tab, sign in, then return here and try saving again." }),
|
|
4346
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
4259
4347
|
"a",
|
|
4260
4348
|
{
|
|
4261
4349
|
href: "/admin",
|
|
@@ -4274,7 +4362,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
4274
4362
|
children: "Open Login Page"
|
|
4275
4363
|
}
|
|
4276
4364
|
),
|
|
4277
|
-
/* @__PURE__ */ (0,
|
|
4365
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
4278
4366
|
"button",
|
|
4279
4367
|
{
|
|
4280
4368
|
onClick: () => setSessionExpired(false),
|
|
@@ -4296,7 +4384,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
4296
4384
|
)
|
|
4297
4385
|
}
|
|
4298
4386
|
) : null,
|
|
4299
|
-
/* @__PURE__ */ (0,
|
|
4387
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { style: { minWidth: 0 }, children: [
|
|
4300
4388
|
layout.map((block, index) => {
|
|
4301
4389
|
const type = normalizeText2(block.blockType, "unknown");
|
|
4302
4390
|
const selectBlock = () => setSelectedIndex(index);
|
|
@@ -4371,7 +4459,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
4371
4459
|
const heroStyle = {
|
|
4372
4460
|
borderRadius: heroCornerRadius
|
|
4373
4461
|
};
|
|
4374
|
-
return /* @__PURE__ */ (0,
|
|
4462
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
4375
4463
|
BlockFrame,
|
|
4376
4464
|
{
|
|
4377
4465
|
dragIndex,
|
|
@@ -4384,13 +4472,13 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
4384
4472
|
children: renderWithSectionShell(
|
|
4385
4473
|
block,
|
|
4386
4474
|
"",
|
|
4387
|
-
/* @__PURE__ */ (0,
|
|
4388
|
-
/* @__PURE__ */ (0,
|
|
4389
|
-
/* @__PURE__ */ (0,
|
|
4390
|
-
isBlockUploadTarget(index, "hero") ? /* @__PURE__ */ (0,
|
|
4475
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("section", { className: `hero ${variant === "centered" ? "hero-centered" : ""}`, style: heroStyle, children: [
|
|
4476
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "hero-grid", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "orion-builder-upload-slot", children: [
|
|
4477
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "hero-media", role: "img", style: mediaStyle }),
|
|
4478
|
+
isBlockUploadTarget(index, "hero") ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(UploadOverlay, { label: "Uploading hero image..." }) : null
|
|
4391
4479
|
] }) }),
|
|
4392
|
-
/* @__PURE__ */ (0,
|
|
4393
|
-
/* @__PURE__ */ (0,
|
|
4480
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "hero-content", children: [
|
|
4481
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "kicker", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
4394
4482
|
InlineText,
|
|
4395
4483
|
{
|
|
4396
4484
|
as: "span",
|
|
@@ -4399,7 +4487,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
4399
4487
|
value: normalizeText2(block.kicker)
|
|
4400
4488
|
}
|
|
4401
4489
|
) }),
|
|
4402
|
-
/* @__PURE__ */ (0,
|
|
4490
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
4403
4491
|
InlineText,
|
|
4404
4492
|
{
|
|
4405
4493
|
as: "h1",
|
|
@@ -4408,7 +4496,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
4408
4496
|
value: normalizeText2(block.headline)
|
|
4409
4497
|
}
|
|
4410
4498
|
),
|
|
4411
|
-
/* @__PURE__ */ (0,
|
|
4499
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
4412
4500
|
InlineText,
|
|
4413
4501
|
{
|
|
4414
4502
|
as: "p",
|
|
@@ -4418,8 +4506,8 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
4418
4506
|
value: normalizeText2(block.subheadline)
|
|
4419
4507
|
}
|
|
4420
4508
|
),
|
|
4421
|
-
/* @__PURE__ */ (0,
|
|
4422
|
-
/* @__PURE__ */ (0,
|
|
4509
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "hero-actions", children: [
|
|
4510
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("button", { className: "btn btn-primary", type: "button", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
4423
4511
|
InlineText,
|
|
4424
4512
|
{
|
|
4425
4513
|
as: "span",
|
|
@@ -4428,7 +4516,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
4428
4516
|
value: normalizeText2(block.primaryLabel)
|
|
4429
4517
|
}
|
|
4430
4518
|
) }),
|
|
4431
|
-
/* @__PURE__ */ (0,
|
|
4519
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("button", { className: "btn btn-secondary", type: "button", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
4432
4520
|
InlineText,
|
|
4433
4521
|
{
|
|
4434
4522
|
as: "span",
|
|
@@ -4452,7 +4540,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
4452
4540
|
const itemsPerRow = Math.max(1, Math.min(6, itemsPerRowRaw));
|
|
4453
4541
|
const items = Array.isArray(block.items) ? block.items : [];
|
|
4454
4542
|
if (variant === "highlight") {
|
|
4455
|
-
return /* @__PURE__ */ (0,
|
|
4543
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
4456
4544
|
BlockFrame,
|
|
4457
4545
|
{
|
|
4458
4546
|
dragIndex,
|
|
@@ -4465,8 +4553,8 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
4465
4553
|
children: renderWithSectionShell(
|
|
4466
4554
|
block,
|
|
4467
4555
|
"section",
|
|
4468
|
-
/* @__PURE__ */ (0,
|
|
4469
|
-
/* @__PURE__ */ (0,
|
|
4556
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "features", style: backgroundColor ? { background: backgroundColor } : void 0, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "inner", children: [
|
|
4557
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "section-heading", style: { margin: 0 }, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
4470
4558
|
InlineText,
|
|
4471
4559
|
{
|
|
4472
4560
|
as: "h2",
|
|
@@ -4476,7 +4564,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
4476
4564
|
value: normalizeText2(block.title)
|
|
4477
4565
|
}
|
|
4478
4566
|
) }) }),
|
|
4479
|
-
/* @__PURE__ */ (0,
|
|
4567
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
4480
4568
|
"div",
|
|
4481
4569
|
{
|
|
4482
4570
|
className: "feature-grid",
|
|
@@ -4503,7 +4591,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
4503
4591
|
positionY: itemPositionY
|
|
4504
4592
|
});
|
|
4505
4593
|
const isItemSelected = selectedIndex === index && selectedItemIndex === itemIndex;
|
|
4506
|
-
return /* @__PURE__ */ (0,
|
|
4594
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
4507
4595
|
"article",
|
|
4508
4596
|
{
|
|
4509
4597
|
className: "feature-item",
|
|
@@ -4513,10 +4601,10 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
4513
4601
|
},
|
|
4514
4602
|
style: isItemSelected ? { outline: "2px solid rgba(255, 255, 255, 0.72)", outlineOffset: 2 } : void 0,
|
|
4515
4603
|
children: [
|
|
4516
|
-
/* @__PURE__ */ (0,
|
|
4604
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "orion-builder-upload-slot", children: [
|
|
4517
4605
|
itemMedia?.url ? (
|
|
4518
4606
|
// eslint-disable-next-line @next/next/no-img-element
|
|
4519
|
-
/* @__PURE__ */ (0,
|
|
4607
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
4520
4608
|
"img",
|
|
4521
4609
|
{
|
|
4522
4610
|
alt: itemMedia.alt || normalizeText2(itemRecord?.title, "Feature image"),
|
|
@@ -4525,7 +4613,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
4525
4613
|
style: { ...itemImageStyle, height: itemImageHeight }
|
|
4526
4614
|
}
|
|
4527
4615
|
)
|
|
4528
|
-
) : /* @__PURE__ */ (0,
|
|
4616
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "feature-icon", children: iconType === "lucide" ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(FeatureLucideIcon, { iconName: iconLucide }) : /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
4529
4617
|
InlineText,
|
|
4530
4618
|
{
|
|
4531
4619
|
as: "span",
|
|
@@ -4534,9 +4622,9 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
4534
4622
|
value: iconBadge
|
|
4535
4623
|
}
|
|
4536
4624
|
) }),
|
|
4537
|
-
isFeatureGridItemUploading(index, itemIndex) ? /* @__PURE__ */ (0,
|
|
4625
|
+
isFeatureGridItemUploading(index, itemIndex) ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(UploadOverlay, { label: "Uploading image..." }) : null
|
|
4538
4626
|
] }),
|
|
4539
|
-
/* @__PURE__ */ (0,
|
|
4627
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
4540
4628
|
InlineText,
|
|
4541
4629
|
{
|
|
4542
4630
|
as: "h3",
|
|
@@ -4545,7 +4633,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
4545
4633
|
value: normalizeText2(itemRecord?.title)
|
|
4546
4634
|
}
|
|
4547
4635
|
),
|
|
4548
|
-
/* @__PURE__ */ (0,
|
|
4636
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
4549
4637
|
InlineText,
|
|
4550
4638
|
{
|
|
4551
4639
|
as: "p",
|
|
@@ -4568,7 +4656,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
4568
4656
|
`feature-highlight-${index}`
|
|
4569
4657
|
);
|
|
4570
4658
|
}
|
|
4571
|
-
return /* @__PURE__ */ (0,
|
|
4659
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
4572
4660
|
BlockFrame,
|
|
4573
4661
|
{
|
|
4574
4662
|
dragIndex,
|
|
@@ -4581,8 +4669,8 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
4581
4669
|
children: renderWithSectionShell(
|
|
4582
4670
|
block,
|
|
4583
4671
|
"section",
|
|
4584
|
-
/* @__PURE__ */ (0,
|
|
4585
|
-
/* @__PURE__ */ (0,
|
|
4672
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
|
|
4673
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "section-heading", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
4586
4674
|
InlineText,
|
|
4587
4675
|
{
|
|
4588
4676
|
as: "h2",
|
|
@@ -4591,7 +4679,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
4591
4679
|
value: normalizeText2(block.title)
|
|
4592
4680
|
}
|
|
4593
4681
|
) }) }),
|
|
4594
|
-
/* @__PURE__ */ (0,
|
|
4682
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
4595
4683
|
"div",
|
|
4596
4684
|
{
|
|
4597
4685
|
className: "card-grid services",
|
|
@@ -4618,7 +4706,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
4618
4706
|
positionY: itemPositionY
|
|
4619
4707
|
});
|
|
4620
4708
|
const isItemSelected = selectedIndex === index && selectedItemIndex === itemIndex;
|
|
4621
|
-
return /* @__PURE__ */ (0,
|
|
4709
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
4622
4710
|
"article",
|
|
4623
4711
|
{
|
|
4624
4712
|
className: "service-card",
|
|
@@ -4627,11 +4715,11 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
4627
4715
|
openSelectedItem(itemIndex);
|
|
4628
4716
|
},
|
|
4629
4717
|
style: isItemSelected ? { outline: "2px solid rgba(15, 125, 82, 0.55)", outlineOffset: 3 } : void 0,
|
|
4630
|
-
children: /* @__PURE__ */ (0,
|
|
4631
|
-
/* @__PURE__ */ (0,
|
|
4718
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "service-body", children: [
|
|
4719
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "orion-builder-upload-slot", children: [
|
|
4632
4720
|
itemMedia?.url ? (
|
|
4633
4721
|
// eslint-disable-next-line @next/next/no-img-element
|
|
4634
|
-
/* @__PURE__ */ (0,
|
|
4722
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
4635
4723
|
"img",
|
|
4636
4724
|
{
|
|
4637
4725
|
alt: itemMedia.alt || normalizeText2(itemRecord?.title, "Feature image"),
|
|
@@ -4640,7 +4728,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
4640
4728
|
style: { ...itemImageStyle, height: itemImageHeight }
|
|
4641
4729
|
}
|
|
4642
4730
|
)
|
|
4643
|
-
) : /* @__PURE__ */ (0,
|
|
4731
|
+
) : iconType === "lucide" ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "service-tag service-tag-icon", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(FeatureLucideIcon, { iconName: iconLucide }) }) : /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "service-tag", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
4644
4732
|
InlineText,
|
|
4645
4733
|
{
|
|
4646
4734
|
as: "span",
|
|
@@ -4649,9 +4737,9 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
4649
4737
|
value: iconBadge
|
|
4650
4738
|
}
|
|
4651
4739
|
) }),
|
|
4652
|
-
isFeatureGridItemUploading(index, itemIndex) ? /* @__PURE__ */ (0,
|
|
4740
|
+
isFeatureGridItemUploading(index, itemIndex) ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(UploadOverlay, { label: "Uploading image..." }) : null
|
|
4653
4741
|
] }),
|
|
4654
|
-
/* @__PURE__ */ (0,
|
|
4742
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
4655
4743
|
InlineText,
|
|
4656
4744
|
{
|
|
4657
4745
|
as: "h3",
|
|
@@ -4660,7 +4748,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
4660
4748
|
value: normalizeText2(itemRecord?.title)
|
|
4661
4749
|
}
|
|
4662
4750
|
),
|
|
4663
|
-
/* @__PURE__ */ (0,
|
|
4751
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
4664
4752
|
InlineText,
|
|
4665
4753
|
{
|
|
4666
4754
|
as: "p",
|
|
@@ -4685,7 +4773,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
4685
4773
|
}
|
|
4686
4774
|
if (type === "stats") {
|
|
4687
4775
|
const items = Array.isArray(block.items) ? block.items : [];
|
|
4688
|
-
return /* @__PURE__ */ (0,
|
|
4776
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
4689
4777
|
BlockFrame,
|
|
4690
4778
|
{
|
|
4691
4779
|
dragIndex,
|
|
@@ -4698,9 +4786,9 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
4698
4786
|
children: renderWithSectionShell(
|
|
4699
4787
|
block,
|
|
4700
4788
|
"section",
|
|
4701
|
-
/* @__PURE__ */ (0,
|
|
4702
|
-
/* @__PURE__ */ (0,
|
|
4703
|
-
/* @__PURE__ */ (0,
|
|
4789
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
|
|
4790
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "section-heading", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { children: [
|
|
4791
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
4704
4792
|
InlineText,
|
|
4705
4793
|
{
|
|
4706
4794
|
as: "h2",
|
|
@@ -4709,7 +4797,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
4709
4797
|
value: normalizeText2(block.title)
|
|
4710
4798
|
}
|
|
4711
4799
|
),
|
|
4712
|
-
/* @__PURE__ */ (0,
|
|
4800
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
4713
4801
|
InlineText,
|
|
4714
4802
|
{
|
|
4715
4803
|
as: "p",
|
|
@@ -4720,9 +4808,9 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
4720
4808
|
}
|
|
4721
4809
|
)
|
|
4722
4810
|
] }) }),
|
|
4723
|
-
/* @__PURE__ */ (0,
|
|
4811
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "orion-stats-grid", children: items.map((item, itemIndex) => {
|
|
4724
4812
|
const isItemSelected = selectedIndex === index && selectedItemIndex === itemIndex;
|
|
4725
|
-
return /* @__PURE__ */ (0,
|
|
4813
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
4726
4814
|
"article",
|
|
4727
4815
|
{
|
|
4728
4816
|
className: "orion-stat-card",
|
|
@@ -4732,7 +4820,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
4732
4820
|
},
|
|
4733
4821
|
style: isItemSelected ? { outline: "2px solid rgba(15, 125, 82, 0.55)", outlineOffset: 3 } : void 0,
|
|
4734
4822
|
children: [
|
|
4735
|
-
/* @__PURE__ */ (0,
|
|
4823
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
4736
4824
|
InlineText,
|
|
4737
4825
|
{
|
|
4738
4826
|
as: "h3",
|
|
@@ -4741,7 +4829,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
4741
4829
|
value: normalizeText2(item?.value)
|
|
4742
4830
|
}
|
|
4743
4831
|
),
|
|
4744
|
-
/* @__PURE__ */ (0,
|
|
4832
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
4745
4833
|
InlineText,
|
|
4746
4834
|
{
|
|
4747
4835
|
as: "span",
|
|
@@ -4750,7 +4838,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
4750
4838
|
value: normalizeText2(item?.label)
|
|
4751
4839
|
}
|
|
4752
4840
|
),
|
|
4753
|
-
/* @__PURE__ */ (0,
|
|
4841
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
4754
4842
|
InlineText,
|
|
4755
4843
|
{
|
|
4756
4844
|
as: "p",
|
|
@@ -4773,7 +4861,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
4773
4861
|
}
|
|
4774
4862
|
if (type === "logoWall") {
|
|
4775
4863
|
const items = Array.isArray(block.items) ? block.items : [];
|
|
4776
|
-
return /* @__PURE__ */ (0,
|
|
4864
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
4777
4865
|
BlockFrame,
|
|
4778
4866
|
{
|
|
4779
4867
|
dragIndex,
|
|
@@ -4786,9 +4874,9 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
4786
4874
|
children: renderWithSectionShell(
|
|
4787
4875
|
block,
|
|
4788
4876
|
"section",
|
|
4789
|
-
/* @__PURE__ */ (0,
|
|
4790
|
-
/* @__PURE__ */ (0,
|
|
4791
|
-
/* @__PURE__ */ (0,
|
|
4877
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
|
|
4878
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "section-heading", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { children: [
|
|
4879
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
4792
4880
|
InlineText,
|
|
4793
4881
|
{
|
|
4794
4882
|
as: "h2",
|
|
@@ -4797,7 +4885,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
4797
4885
|
value: normalizeText2(block.title)
|
|
4798
4886
|
}
|
|
4799
4887
|
),
|
|
4800
|
-
/* @__PURE__ */ (0,
|
|
4888
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
4801
4889
|
InlineText,
|
|
4802
4890
|
{
|
|
4803
4891
|
as: "p",
|
|
@@ -4808,7 +4896,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
4808
4896
|
}
|
|
4809
4897
|
)
|
|
4810
4898
|
] }) }),
|
|
4811
|
-
/* @__PURE__ */ (0,
|
|
4899
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "orion-logo-wall", children: items.map((item, itemIndex) => {
|
|
4812
4900
|
const itemRecord = item;
|
|
4813
4901
|
const media = resolveMedia(itemRecord?.media);
|
|
4814
4902
|
const imageHeight = parsePixelNumber(itemRecord?.imageHeight, 54);
|
|
@@ -4823,7 +4911,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
4823
4911
|
roundedRadius: 10
|
|
4824
4912
|
});
|
|
4825
4913
|
const isItemSelected = selectedIndex === index && selectedItemIndex === itemIndex;
|
|
4826
|
-
return /* @__PURE__ */ (0,
|
|
4914
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
4827
4915
|
"article",
|
|
4828
4916
|
{
|
|
4829
4917
|
className: "orion-logo-wall-item",
|
|
@@ -4832,10 +4920,10 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
4832
4920
|
openSelectedItem(itemIndex);
|
|
4833
4921
|
},
|
|
4834
4922
|
style: isItemSelected ? { outline: "2px solid rgba(15, 125, 82, 0.55)", outlineOffset: 3 } : void 0,
|
|
4835
|
-
children: /* @__PURE__ */ (0,
|
|
4923
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "orion-builder-upload-slot", children: [
|
|
4836
4924
|
media?.url ? (
|
|
4837
4925
|
// eslint-disable-next-line @next/next/no-img-element
|
|
4838
|
-
/* @__PURE__ */ (0,
|
|
4926
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
4839
4927
|
"img",
|
|
4840
4928
|
{
|
|
4841
4929
|
alt: media.alt || normalizeText2(itemRecord?.name, "Logo"),
|
|
@@ -4844,7 +4932,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
4844
4932
|
style: { ...imageStyle, height: imageHeight }
|
|
4845
4933
|
}
|
|
4846
4934
|
)
|
|
4847
|
-
) : /* @__PURE__ */ (0,
|
|
4935
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
4848
4936
|
InlineText,
|
|
4849
4937
|
{
|
|
4850
4938
|
as: "span",
|
|
@@ -4853,7 +4941,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
4853
4941
|
value: normalizeText2(itemRecord?.name)
|
|
4854
4942
|
}
|
|
4855
4943
|
),
|
|
4856
|
-
isLogoWallItemUploading(index, itemIndex) ? /* @__PURE__ */ (0,
|
|
4944
|
+
isLogoWallItemUploading(index, itemIndex) ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(UploadOverlay, { label: "Uploading logo..." }) : null
|
|
4857
4945
|
] })
|
|
4858
4946
|
},
|
|
4859
4947
|
`logo-${itemIndex}`
|
|
@@ -4869,7 +4957,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
4869
4957
|
const items = Array.isArray(block.items) ? block.items : [];
|
|
4870
4958
|
const itemsPerRowRaw = Math.floor(parsePixelNumber(block.itemsPerRow, 2));
|
|
4871
4959
|
const itemsPerRow = Math.max(1, Math.min(4, itemsPerRowRaw));
|
|
4872
|
-
return /* @__PURE__ */ (0,
|
|
4960
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
4873
4961
|
BlockFrame,
|
|
4874
4962
|
{
|
|
4875
4963
|
dragIndex,
|
|
@@ -4882,9 +4970,9 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
4882
4970
|
children: renderWithSectionShell(
|
|
4883
4971
|
block,
|
|
4884
4972
|
"section",
|
|
4885
|
-
/* @__PURE__ */ (0,
|
|
4886
|
-
/* @__PURE__ */ (0,
|
|
4887
|
-
/* @__PURE__ */ (0,
|
|
4973
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
|
|
4974
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "section-heading", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { children: [
|
|
4975
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
4888
4976
|
InlineText,
|
|
4889
4977
|
{
|
|
4890
4978
|
as: "h2",
|
|
@@ -4893,7 +4981,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
4893
4981
|
value: normalizeText2(block.title)
|
|
4894
4982
|
}
|
|
4895
4983
|
),
|
|
4896
|
-
/* @__PURE__ */ (0,
|
|
4984
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
4897
4985
|
InlineText,
|
|
4898
4986
|
{
|
|
4899
4987
|
as: "p",
|
|
@@ -4904,7 +4992,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
4904
4992
|
}
|
|
4905
4993
|
)
|
|
4906
4994
|
] }) }),
|
|
4907
|
-
/* @__PURE__ */ (0,
|
|
4995
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
4908
4996
|
"div",
|
|
4909
4997
|
{
|
|
4910
4998
|
className: "orion-before-after-grid",
|
|
@@ -4929,7 +5017,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
4929
5017
|
positionY: itemPositionY
|
|
4930
5018
|
});
|
|
4931
5019
|
const isItemSelected = selectedIndex === index && selectedItemIndex === itemIndex;
|
|
4932
|
-
return /* @__PURE__ */ (0,
|
|
5020
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
4933
5021
|
"article",
|
|
4934
5022
|
{
|
|
4935
5023
|
className: "orion-before-after-card",
|
|
@@ -4939,11 +5027,11 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
4939
5027
|
},
|
|
4940
5028
|
style: isItemSelected ? { outline: "2px solid rgba(15, 125, 82, 0.55)", outlineOffset: 3 } : void 0,
|
|
4941
5029
|
children: [
|
|
4942
|
-
/* @__PURE__ */ (0,
|
|
4943
|
-
/* @__PURE__ */ (0,
|
|
5030
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "orion-before-after-media", children: [
|
|
5031
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("figure", { children: [
|
|
4944
5032
|
beforeMedia?.url ? (
|
|
4945
5033
|
// eslint-disable-next-line @next/next/no-img-element
|
|
4946
|
-
/* @__PURE__ */ (0,
|
|
5034
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
4947
5035
|
"img",
|
|
4948
5036
|
{
|
|
4949
5037
|
alt: beforeMedia.alt || `${normalizeText2(itemRecord?.label, "Project")} before`,
|
|
@@ -4951,14 +5039,14 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
4951
5039
|
style: { ...imageStyle, height: imageHeight }
|
|
4952
5040
|
}
|
|
4953
5041
|
)
|
|
4954
|
-
) : /* @__PURE__ */ (0,
|
|
4955
|
-
isBeforeAfterItemUploading(index, itemIndex, "beforeMedia") ? /* @__PURE__ */ (0,
|
|
4956
|
-
/* @__PURE__ */ (0,
|
|
5042
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "orion-before-after-placeholder", style: { height: imageHeight }, children: "Before" }),
|
|
5043
|
+
isBeforeAfterItemUploading(index, itemIndex, "beforeMedia") ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(UploadOverlay, { label: "Uploading before image..." }) : null,
|
|
5044
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("figcaption", { children: "Before" })
|
|
4957
5045
|
] }),
|
|
4958
|
-
/* @__PURE__ */ (0,
|
|
5046
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("figure", { children: [
|
|
4959
5047
|
afterMedia?.url ? (
|
|
4960
5048
|
// eslint-disable-next-line @next/next/no-img-element
|
|
4961
|
-
/* @__PURE__ */ (0,
|
|
5049
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
4962
5050
|
"img",
|
|
4963
5051
|
{
|
|
4964
5052
|
alt: afterMedia.alt || `${normalizeText2(itemRecord?.label, "Project")} after`,
|
|
@@ -4966,13 +5054,13 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
4966
5054
|
style: { ...imageStyle, height: imageHeight }
|
|
4967
5055
|
}
|
|
4968
5056
|
)
|
|
4969
|
-
) : /* @__PURE__ */ (0,
|
|
4970
|
-
isBeforeAfterItemUploading(index, itemIndex, "afterMedia") ? /* @__PURE__ */ (0,
|
|
4971
|
-
/* @__PURE__ */ (0,
|
|
5057
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "orion-before-after-placeholder", style: { height: imageHeight }, children: "After" }),
|
|
5058
|
+
isBeforeAfterItemUploading(index, itemIndex, "afterMedia") ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(UploadOverlay, { label: "Uploading after image..." }) : null,
|
|
5059
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("figcaption", { children: "After" })
|
|
4972
5060
|
] })
|
|
4973
5061
|
] }),
|
|
4974
|
-
/* @__PURE__ */ (0,
|
|
4975
|
-
/* @__PURE__ */ (0,
|
|
5062
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "orion-before-after-body", children: [
|
|
5063
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
4976
5064
|
InlineText,
|
|
4977
5065
|
{
|
|
4978
5066
|
as: "h3",
|
|
@@ -4981,7 +5069,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
4981
5069
|
value: normalizeText2(itemRecord?.label)
|
|
4982
5070
|
}
|
|
4983
5071
|
),
|
|
4984
|
-
/* @__PURE__ */ (0,
|
|
5072
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
4985
5073
|
InlineText,
|
|
4986
5074
|
{
|
|
4987
5075
|
as: "p",
|
|
@@ -5018,7 +5106,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
5018
5106
|
const itemIndex = (offset + slotIndex) % items.length;
|
|
5019
5107
|
return { item: items[itemIndex], itemIndex };
|
|
5020
5108
|
}) : items.map((item, itemIndex) => ({ item, itemIndex }));
|
|
5021
|
-
return /* @__PURE__ */ (0,
|
|
5109
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
5022
5110
|
BlockFrame,
|
|
5023
5111
|
{
|
|
5024
5112
|
dragIndex,
|
|
@@ -5031,8 +5119,8 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
5031
5119
|
children: renderWithSectionShell(
|
|
5032
5120
|
block,
|
|
5033
5121
|
"section",
|
|
5034
|
-
/* @__PURE__ */ (0,
|
|
5035
|
-
/* @__PURE__ */ (0,
|
|
5122
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
|
|
5123
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "section-heading", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
5036
5124
|
InlineText,
|
|
5037
5125
|
{
|
|
5038
5126
|
as: "h2",
|
|
@@ -5041,8 +5129,8 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
5041
5129
|
value: normalizeText2(block.title)
|
|
5042
5130
|
}
|
|
5043
5131
|
) }) }),
|
|
5044
|
-
shouldWindow ? /* @__PURE__ */ (0,
|
|
5045
|
-
/* @__PURE__ */ (0,
|
|
5132
|
+
shouldWindow ? /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "testimonials-stage is-navigable", children: [
|
|
5133
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
5046
5134
|
"button",
|
|
5047
5135
|
{
|
|
5048
5136
|
"aria-label": "Previous testimonials",
|
|
@@ -5058,13 +5146,13 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
5058
5146
|
});
|
|
5059
5147
|
},
|
|
5060
5148
|
type: "button",
|
|
5061
|
-
children: /* @__PURE__ */ (0,
|
|
5149
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { "aria-hidden": "true", children: "\u2039" })
|
|
5062
5150
|
}
|
|
5063
5151
|
),
|
|
5064
|
-
/* @__PURE__ */ (0,
|
|
5152
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "split testimonials-grid", children: windowedItems.map(({ item, itemIndex }) => {
|
|
5065
5153
|
const isItemSelected = selectedIndex === index && selectedItemIndex === itemIndex;
|
|
5066
5154
|
const ratingValue = parseTestimonialRating(item?.rating, 5);
|
|
5067
|
-
return /* @__PURE__ */ (0,
|
|
5155
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
5068
5156
|
"article",
|
|
5069
5157
|
{
|
|
5070
5158
|
className: "panel",
|
|
@@ -5074,14 +5162,14 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
5074
5162
|
},
|
|
5075
5163
|
style: isItemSelected ? { outline: "2px solid rgba(15, 125, 82, 0.55)", outlineOffset: 3 } : void 0,
|
|
5076
5164
|
children: [
|
|
5077
|
-
/* @__PURE__ */ (0,
|
|
5078
|
-
/* @__PURE__ */ (0,
|
|
5079
|
-
/* @__PURE__ */ (0,
|
|
5165
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "testimonial-quote-top", children: [
|
|
5166
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "testimonial-quote-mark", "aria-hidden": "true", children: "\u201C" }),
|
|
5167
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "testimonial-stars", "aria-label": `${ratingValue} out of 5 stars`, role: "img", children: [
|
|
5080
5168
|
"\u2605".repeat(ratingValue),
|
|
5081
|
-
/* @__PURE__ */ (0,
|
|
5169
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "testimonial-stars-muted", children: "\u2605".repeat(5 - ratingValue) })
|
|
5082
5170
|
] })
|
|
5083
5171
|
] }),
|
|
5084
|
-
/* @__PURE__ */ (0,
|
|
5172
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { className: "quote testimonial-quote", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
5085
5173
|
InlineText,
|
|
5086
5174
|
{
|
|
5087
5175
|
as: "span",
|
|
@@ -5091,10 +5179,10 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
5091
5179
|
value: normalizeText2(item?.quote)
|
|
5092
5180
|
}
|
|
5093
5181
|
) }),
|
|
5094
|
-
/* @__PURE__ */ (0,
|
|
5095
|
-
/* @__PURE__ */ (0,
|
|
5096
|
-
/* @__PURE__ */ (0,
|
|
5097
|
-
/* @__PURE__ */ (0,
|
|
5182
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "quote-author", children: [
|
|
5183
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "quote-avatar", children: normalizeText2(item?.name, "C").split(" ").slice(0, 2).map((part) => part[0]).join("").toUpperCase() }),
|
|
5184
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { children: [
|
|
5185
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
5098
5186
|
InlineText,
|
|
5099
5187
|
{
|
|
5100
5188
|
as: "span",
|
|
@@ -5103,7 +5191,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
5103
5191
|
value: normalizeText2(item?.name)
|
|
5104
5192
|
}
|
|
5105
5193
|
),
|
|
5106
|
-
/* @__PURE__ */ (0,
|
|
5194
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { style: { color: "var(--ink-500)", fontSize: "0.88rem" }, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
5107
5195
|
InlineText,
|
|
5108
5196
|
{
|
|
5109
5197
|
as: "span",
|
|
@@ -5119,7 +5207,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
5119
5207
|
`testimonial-${itemIndex}`
|
|
5120
5208
|
);
|
|
5121
5209
|
}) }),
|
|
5122
|
-
/* @__PURE__ */ (0,
|
|
5210
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
5123
5211
|
"button",
|
|
5124
5212
|
{
|
|
5125
5213
|
"aria-label": "Next testimonials",
|
|
@@ -5135,13 +5223,13 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
5135
5223
|
});
|
|
5136
5224
|
},
|
|
5137
5225
|
type: "button",
|
|
5138
|
-
children: /* @__PURE__ */ (0,
|
|
5226
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { "aria-hidden": "true", children: "\u203A" })
|
|
5139
5227
|
}
|
|
5140
5228
|
)
|
|
5141
|
-
] }) : /* @__PURE__ */ (0,
|
|
5229
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "split testimonials-grid", children: windowedItems.map(({ item, itemIndex }) => {
|
|
5142
5230
|
const isItemSelected = selectedIndex === index && selectedItemIndex === itemIndex;
|
|
5143
5231
|
const ratingValue = parseTestimonialRating(item?.rating, 5);
|
|
5144
|
-
return /* @__PURE__ */ (0,
|
|
5232
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
5145
5233
|
"article",
|
|
5146
5234
|
{
|
|
5147
5235
|
className: "panel",
|
|
@@ -5151,14 +5239,14 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
5151
5239
|
},
|
|
5152
5240
|
style: isItemSelected ? { outline: "2px solid rgba(15, 125, 82, 0.55)", outlineOffset: 3 } : void 0,
|
|
5153
5241
|
children: [
|
|
5154
|
-
/* @__PURE__ */ (0,
|
|
5155
|
-
/* @__PURE__ */ (0,
|
|
5156
|
-
/* @__PURE__ */ (0,
|
|
5242
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "testimonial-quote-top", children: [
|
|
5243
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "testimonial-quote-mark", "aria-hidden": "true", children: "\u201C" }),
|
|
5244
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "testimonial-stars", "aria-label": `${ratingValue} out of 5 stars`, role: "img", children: [
|
|
5157
5245
|
"\u2605".repeat(ratingValue),
|
|
5158
|
-
/* @__PURE__ */ (0,
|
|
5246
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "testimonial-stars-muted", children: "\u2605".repeat(5 - ratingValue) })
|
|
5159
5247
|
] })
|
|
5160
5248
|
] }),
|
|
5161
|
-
/* @__PURE__ */ (0,
|
|
5249
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { className: "quote testimonial-quote", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
5162
5250
|
InlineText,
|
|
5163
5251
|
{
|
|
5164
5252
|
as: "span",
|
|
@@ -5168,10 +5256,10 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
5168
5256
|
value: normalizeText2(item?.quote)
|
|
5169
5257
|
}
|
|
5170
5258
|
) }),
|
|
5171
|
-
/* @__PURE__ */ (0,
|
|
5172
|
-
/* @__PURE__ */ (0,
|
|
5173
|
-
/* @__PURE__ */ (0,
|
|
5174
|
-
/* @__PURE__ */ (0,
|
|
5259
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "quote-author", children: [
|
|
5260
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "quote-avatar", children: normalizeText2(item?.name, "C").split(" ").slice(0, 2).map((part) => part[0]).join("").toUpperCase() }),
|
|
5261
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { children: [
|
|
5262
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
5175
5263
|
InlineText,
|
|
5176
5264
|
{
|
|
5177
5265
|
as: "span",
|
|
@@ -5180,7 +5268,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
5180
5268
|
value: normalizeText2(item?.name)
|
|
5181
5269
|
}
|
|
5182
5270
|
),
|
|
5183
|
-
/* @__PURE__ */ (0,
|
|
5271
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { style: { color: "var(--ink-500)", fontSize: "0.88rem" }, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
5184
5272
|
InlineText,
|
|
5185
5273
|
{
|
|
5186
5274
|
as: "span",
|
|
@@ -5204,7 +5292,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
5204
5292
|
}
|
|
5205
5293
|
if (type === "faq") {
|
|
5206
5294
|
const items = Array.isArray(block.items) ? block.items : [];
|
|
5207
|
-
return /* @__PURE__ */ (0,
|
|
5295
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
5208
5296
|
BlockFrame,
|
|
5209
5297
|
{
|
|
5210
5298
|
dragIndex,
|
|
@@ -5217,8 +5305,8 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
5217
5305
|
children: renderWithSectionShell(
|
|
5218
5306
|
block,
|
|
5219
5307
|
"section",
|
|
5220
|
-
/* @__PURE__ */ (0,
|
|
5221
|
-
/* @__PURE__ */ (0,
|
|
5308
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
|
|
5309
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "section-heading", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
5222
5310
|
InlineText,
|
|
5223
5311
|
{
|
|
5224
5312
|
as: "h2",
|
|
@@ -5227,8 +5315,8 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
5227
5315
|
value: normalizeText2(block.title)
|
|
5228
5316
|
}
|
|
5229
5317
|
) }) }),
|
|
5230
|
-
/* @__PURE__ */ (0,
|
|
5231
|
-
/* @__PURE__ */ (0,
|
|
5318
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "faq-list", children: items.map((item, itemIndex) => /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("details", { className: "faq-item", open: true, children: [
|
|
5319
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("summary", { children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
5232
5320
|
InlineText,
|
|
5233
5321
|
{
|
|
5234
5322
|
as: "span",
|
|
@@ -5237,7 +5325,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
5237
5325
|
value: normalizeText2(item?.question)
|
|
5238
5326
|
}
|
|
5239
5327
|
) }),
|
|
5240
|
-
/* @__PURE__ */ (0,
|
|
5328
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
5241
5329
|
InlineText,
|
|
5242
5330
|
{
|
|
5243
5331
|
as: "p",
|
|
@@ -5257,7 +5345,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
5257
5345
|
if (type === "cta") {
|
|
5258
5346
|
const ctaStyle = normalizeText2(block.style, "light");
|
|
5259
5347
|
const backgroundColor = normalizeText2(block.backgroundColor);
|
|
5260
|
-
return /* @__PURE__ */ (0,
|
|
5348
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
5261
5349
|
BlockFrame,
|
|
5262
5350
|
{
|
|
5263
5351
|
dragIndex,
|
|
@@ -5270,14 +5358,14 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
5270
5358
|
children: renderWithSectionShell(
|
|
5271
5359
|
block,
|
|
5272
5360
|
"section",
|
|
5273
|
-
/* @__PURE__ */ (0,
|
|
5361
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
5274
5362
|
"div",
|
|
5275
5363
|
{
|
|
5276
5364
|
className: `contact-strip ${ctaStyle === "dark" ? "contact-strip-dark" : ""}`,
|
|
5277
5365
|
style: backgroundColor ? { background: backgroundColor } : void 0,
|
|
5278
5366
|
children: [
|
|
5279
|
-
/* @__PURE__ */ (0,
|
|
5280
|
-
/* @__PURE__ */ (0,
|
|
5367
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { children: [
|
|
5368
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
5281
5369
|
InlineText,
|
|
5282
5370
|
{
|
|
5283
5371
|
as: "h3",
|
|
@@ -5287,7 +5375,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
5287
5375
|
value: normalizeText2(block.headline)
|
|
5288
5376
|
}
|
|
5289
5377
|
),
|
|
5290
|
-
/* @__PURE__ */ (0,
|
|
5378
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
5291
5379
|
InlineText,
|
|
5292
5380
|
{
|
|
5293
5381
|
as: "p",
|
|
@@ -5299,7 +5387,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
5299
5387
|
}
|
|
5300
5388
|
)
|
|
5301
5389
|
] }),
|
|
5302
|
-
/* @__PURE__ */ (0,
|
|
5390
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("button", { className: "btn btn-primary", type: "button", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
5303
5391
|
InlineText,
|
|
5304
5392
|
{
|
|
5305
5393
|
as: "span",
|
|
@@ -5319,7 +5407,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
5319
5407
|
if (type === "richText") {
|
|
5320
5408
|
const width = normalizeText2(block.width, "normal");
|
|
5321
5409
|
const plainTextValue = extractLexicalText(block.content);
|
|
5322
|
-
return /* @__PURE__ */ (0,
|
|
5410
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
5323
5411
|
BlockFrame,
|
|
5324
5412
|
{
|
|
5325
5413
|
dragIndex,
|
|
@@ -5332,8 +5420,8 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
5332
5420
|
children: renderWithSectionShell(
|
|
5333
5421
|
block,
|
|
5334
5422
|
"section",
|
|
5335
|
-
/* @__PURE__ */ (0,
|
|
5336
|
-
/* @__PURE__ */ (0,
|
|
5423
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: `richtext-wrap ${width === "narrow" ? "narrow" : ""}`, children: [
|
|
5424
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
5337
5425
|
InlineText,
|
|
5338
5426
|
{
|
|
5339
5427
|
as: "h2",
|
|
@@ -5342,7 +5430,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
5342
5430
|
value: normalizeText2(block.title)
|
|
5343
5431
|
}
|
|
5344
5432
|
),
|
|
5345
|
-
/* @__PURE__ */ (0,
|
|
5433
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "richtext-content", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
5346
5434
|
InlineText,
|
|
5347
5435
|
{
|
|
5348
5436
|
as: "p",
|
|
@@ -5367,7 +5455,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
5367
5455
|
fit: normalizeImageFit2(block?.imageFit),
|
|
5368
5456
|
position: normalizeImagePosition2(block?.imagePosition)
|
|
5369
5457
|
});
|
|
5370
|
-
return /* @__PURE__ */ (0,
|
|
5458
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
5371
5459
|
BlockFrame,
|
|
5372
5460
|
{
|
|
5373
5461
|
dragIndex,
|
|
@@ -5380,11 +5468,11 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
5380
5468
|
children: renderWithSectionShell(
|
|
5381
5469
|
block,
|
|
5382
5470
|
"section",
|
|
5383
|
-
/* @__PURE__ */ (0,
|
|
5471
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("figure", { className: `media-figure ${size === "wide" ? "wide" : ""}`, children: [
|
|
5384
5472
|
image?.url ? (
|
|
5385
5473
|
// eslint-disable-next-line @next/next/no-img-element
|
|
5386
|
-
/* @__PURE__ */ (0,
|
|
5387
|
-
) : /* @__PURE__ */ (0,
|
|
5474
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("img", { alt: image.alt || "Page media", src: image.url, style: imageStyle })
|
|
5475
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
5388
5476
|
"div",
|
|
5389
5477
|
{
|
|
5390
5478
|
style: {
|
|
@@ -5397,8 +5485,8 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
5397
5485
|
children: "No image selected"
|
|
5398
5486
|
}
|
|
5399
5487
|
),
|
|
5400
|
-
isBlockUploadTarget(index, "media") ? /* @__PURE__ */ (0,
|
|
5401
|
-
/* @__PURE__ */ (0,
|
|
5488
|
+
isBlockUploadTarget(index, "media") ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(UploadOverlay, { label: "Uploading image..." }) : null,
|
|
5489
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("figcaption", { children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
5402
5490
|
InlineText,
|
|
5403
5491
|
{
|
|
5404
5492
|
as: "span",
|
|
@@ -5414,7 +5502,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
5414
5502
|
);
|
|
5415
5503
|
}
|
|
5416
5504
|
if (type === "formEmbed") {
|
|
5417
|
-
return /* @__PURE__ */ (0,
|
|
5505
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
5418
5506
|
BlockFrame,
|
|
5419
5507
|
{
|
|
5420
5508
|
dragIndex,
|
|
@@ -5427,8 +5515,8 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
5427
5515
|
children: renderWithSectionShell(
|
|
5428
5516
|
block,
|
|
5429
5517
|
"section",
|
|
5430
|
-
/* @__PURE__ */ (0,
|
|
5431
|
-
/* @__PURE__ */ (0,
|
|
5518
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("article", { className: "panel", children: [
|
|
5519
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
5432
5520
|
InlineText,
|
|
5433
5521
|
{
|
|
5434
5522
|
as: "h2",
|
|
@@ -5437,7 +5525,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
5437
5525
|
value: normalizeText2(block.title)
|
|
5438
5526
|
}
|
|
5439
5527
|
),
|
|
5440
|
-
/* @__PURE__ */ (0,
|
|
5528
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
5441
5529
|
InlineText,
|
|
5442
5530
|
{
|
|
5443
5531
|
as: "p",
|
|
@@ -5447,7 +5535,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
5447
5535
|
value: normalizeText2(block.description)
|
|
5448
5536
|
}
|
|
5449
5537
|
),
|
|
5450
|
-
/* @__PURE__ */ (0,
|
|
5538
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { style: {
|
|
5451
5539
|
border: "1px dashed rgba(19, 33, 28, 0.25)",
|
|
5452
5540
|
borderRadius: 14,
|
|
5453
5541
|
color: "#54655f",
|
|
@@ -5461,7 +5549,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
5461
5549
|
);
|
|
5462
5550
|
}
|
|
5463
5551
|
if (type === "bookingEmbed") {
|
|
5464
|
-
return /* @__PURE__ */ (0,
|
|
5552
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
5465
5553
|
BlockFrame,
|
|
5466
5554
|
{
|
|
5467
5555
|
dragIndex,
|
|
@@ -5474,8 +5562,8 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
5474
5562
|
children: renderWithSectionShell(
|
|
5475
5563
|
block,
|
|
5476
5564
|
"section",
|
|
5477
|
-
/* @__PURE__ */ (0,
|
|
5478
|
-
/* @__PURE__ */ (0,
|
|
5565
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("article", { className: "panel", children: [
|
|
5566
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
5479
5567
|
InlineText,
|
|
5480
5568
|
{
|
|
5481
5569
|
as: "h2",
|
|
@@ -5484,7 +5572,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
5484
5572
|
value: normalizeText2(block.title)
|
|
5485
5573
|
}
|
|
5486
5574
|
),
|
|
5487
|
-
/* @__PURE__ */ (0,
|
|
5575
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
5488
5576
|
InlineText,
|
|
5489
5577
|
{
|
|
5490
5578
|
as: "p",
|
|
@@ -5494,7 +5582,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
5494
5582
|
value: normalizeText2(block.description)
|
|
5495
5583
|
}
|
|
5496
5584
|
),
|
|
5497
|
-
/* @__PURE__ */ (0,
|
|
5585
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("button", { className: "button-link btn btn-primary", style: { marginTop: "1rem" }, type: "button", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
5498
5586
|
InlineText,
|
|
5499
5587
|
{
|
|
5500
5588
|
as: "span",
|
|
@@ -5509,7 +5597,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
5509
5597
|
`bookingEmbed-${index}`
|
|
5510
5598
|
);
|
|
5511
5599
|
}
|
|
5512
|
-
return /* @__PURE__ */ (0,
|
|
5600
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
5513
5601
|
BlockFrame,
|
|
5514
5602
|
{
|
|
5515
5603
|
dragIndex,
|
|
@@ -5522,24 +5610,24 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
5522
5610
|
children: renderWithSectionShell(
|
|
5523
5611
|
block,
|
|
5524
5612
|
"section",
|
|
5525
|
-
/* @__PURE__ */ (0,
|
|
5526
|
-
/* @__PURE__ */ (0,
|
|
5613
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("article", { className: "panel", children: [
|
|
5614
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("h3", { children: [
|
|
5527
5615
|
"Unsupported block type: ",
|
|
5528
5616
|
type
|
|
5529
5617
|
] }),
|
|
5530
|
-
/* @__PURE__ */ (0,
|
|
5618
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("pre", { style: { overflow: "auto" }, children: JSON.stringify(block, null, 2) })
|
|
5531
5619
|
] })
|
|
5532
5620
|
)
|
|
5533
5621
|
},
|
|
5534
5622
|
`unknown-${index}`
|
|
5535
5623
|
);
|
|
5536
5624
|
}),
|
|
5537
|
-
layout.length === 0 ? /* @__PURE__ */ (0,
|
|
5538
|
-
/* @__PURE__ */ (0,
|
|
5539
|
-
/* @__PURE__ */ (0,
|
|
5625
|
+
layout.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "container", style: { marginTop: "1.2rem" }, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("article", { className: "panel", children: [
|
|
5626
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("h3", { style: { color: "var(--forest-900)" }, children: "No sections yet" }),
|
|
5627
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { style: { color: "var(--ink-700)", marginTop: 8 }, children: "Use the right sidebar to apply a starter template or add your first section block." })
|
|
5540
5628
|
] }) }) : null
|
|
5541
5629
|
] }),
|
|
5542
|
-
/* @__PURE__ */ (0,
|
|
5630
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
5543
5631
|
"aside",
|
|
5544
5632
|
{
|
|
5545
5633
|
style: {
|
|
@@ -5549,7 +5637,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
5549
5637
|
top: 12,
|
|
5550
5638
|
zIndex: 60
|
|
5551
5639
|
},
|
|
5552
|
-
children: /* @__PURE__ */ (0,
|
|
5640
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
5553
5641
|
"div",
|
|
5554
5642
|
{
|
|
5555
5643
|
style: {
|
|
@@ -5562,7 +5650,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
5562
5650
|
width: sidebarOpen ? 340 : 52
|
|
5563
5651
|
},
|
|
5564
5652
|
children: [
|
|
5565
|
-
/* @__PURE__ */ (0,
|
|
5653
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
5566
5654
|
"button",
|
|
5567
5655
|
{
|
|
5568
5656
|
onClick: () => setSidebarOpen((open) => !open),
|
|
@@ -5581,10 +5669,10 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
5581
5669
|
width: "100%"
|
|
5582
5670
|
},
|
|
5583
5671
|
type: "button",
|
|
5584
|
-
children: sidebarOpen ? /* @__PURE__ */ (0,
|
|
5585
|
-
/* @__PURE__ */ (0,
|
|
5586
|
-
/* @__PURE__ */ (0,
|
|
5587
|
-
] }) : /* @__PURE__ */ (0,
|
|
5672
|
+
children: sidebarOpen ? /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
|
|
5673
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { children: "Sections & Settings" }),
|
|
5674
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { children: "Collapse" })
|
|
5675
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { children: "+" })
|
|
5588
5676
|
}
|
|
5589
5677
|
),
|
|
5590
5678
|
(() => {
|
|
@@ -5596,7 +5684,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
5596
5684
|
const isActive = activeSidebarPanel === panel.key;
|
|
5597
5685
|
const iconFill = isActive ? "#ffffff" : "#124a37";
|
|
5598
5686
|
const iconButtonBg = isActive ? "#124a37" : "rgba(18, 74, 55, 0.08)";
|
|
5599
|
-
return /* @__PURE__ */ (0,
|
|
5687
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
5600
5688
|
"button",
|
|
5601
5689
|
{
|
|
5602
5690
|
"aria-label": panel.label,
|
|
@@ -5615,22 +5703,22 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
5615
5703
|
title: panel.label,
|
|
5616
5704
|
type: "button",
|
|
5617
5705
|
children: [
|
|
5618
|
-
panel.key === "pageDefaults" ? /* @__PURE__ */ (0,
|
|
5619
|
-
/* @__PURE__ */ (0,
|
|
5620
|
-
/* @__PURE__ */ (0,
|
|
5706
|
+
panel.key === "pageDefaults" ? /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("svg", { fill: "none", height: "18", viewBox: "0 0 24 24", width: "18", children: [
|
|
5707
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("rect", { height: "14", rx: "2", stroke: iconFill, strokeWidth: "2", width: "18", x: "3", y: "5" }),
|
|
5708
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("path", { d: "M9 5v14", stroke: iconFill, strokeWidth: "2" })
|
|
5621
5709
|
] }) : null,
|
|
5622
|
-
panel.key === "addSections" ? /* @__PURE__ */ (0,
|
|
5623
|
-
/* @__PURE__ */ (0,
|
|
5624
|
-
/* @__PURE__ */ (0,
|
|
5710
|
+
panel.key === "addSections" ? /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("svg", { fill: "none", height: "18", viewBox: "0 0 24 24", width: "18", children: [
|
|
5711
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("path", { d: "M12 5v14", stroke: iconFill, strokeWidth: "2", strokeLinecap: "round" }),
|
|
5712
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("path", { d: "M5 12h14", stroke: iconFill, strokeWidth: "2", strokeLinecap: "round" })
|
|
5625
5713
|
] }) : null,
|
|
5626
|
-
panel.key === "selected" ? /* @__PURE__ */ (0,
|
|
5714
|
+
panel.key === "selected" ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("svg", { fill: "none", height: "18", viewBox: "0 0 24 24", width: "18", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("path", { d: "M6 3l12 9-7 2-2 7-3-18z", fill: iconFill, opacity: "0.92" }) }) : null
|
|
5627
5715
|
]
|
|
5628
5716
|
},
|
|
5629
5717
|
panel.key
|
|
5630
5718
|
);
|
|
5631
5719
|
});
|
|
5632
|
-
return sidebarOpen ? /* @__PURE__ */ (0,
|
|
5633
|
-
/* @__PURE__ */ (0,
|
|
5720
|
+
return sidebarOpen ? /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { style: { display: "grid", gridTemplateRows: "auto 1fr", maxHeight: "calc(100vh - 90px)", overflow: "hidden" }, children: [
|
|
5721
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
5634
5722
|
"div",
|
|
5635
5723
|
{
|
|
5636
5724
|
style: {
|
|
@@ -5643,7 +5731,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
5643
5731
|
},
|
|
5644
5732
|
children: [
|
|
5645
5733
|
tabs,
|
|
5646
|
-
/* @__PURE__ */ (0,
|
|
5734
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
5647
5735
|
"button",
|
|
5648
5736
|
{
|
|
5649
5737
|
onClick: () => setSettingsPanelV2Override((current) => current === false ? true : false),
|
|
@@ -5668,11 +5756,11 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
5668
5756
|
]
|
|
5669
5757
|
}
|
|
5670
5758
|
),
|
|
5671
|
-
/* @__PURE__ */ (0,
|
|
5672
|
-
activeSidebarPanel === "pageDefaults" ? /* @__PURE__ */ (0,
|
|
5673
|
-
/* @__PURE__ */ (0,
|
|
5674
|
-
/* @__PURE__ */ (0,
|
|
5675
|
-
/* @__PURE__ */ (0,
|
|
5759
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { style: { display: "grid", overflowY: "auto", padding: 12 }, children: [
|
|
5760
|
+
activeSidebarPanel === "pageDefaults" ? /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("section", { style: sidebarSectionStyle, children: [
|
|
5761
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { style: { alignItems: "center", display: "flex", justifyContent: "space-between" }, children: [
|
|
5762
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { style: { fontSize: 13, fontWeight: 800 }, children: "Page Defaults" }),
|
|
5763
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
5676
5764
|
"button",
|
|
5677
5765
|
{
|
|
5678
5766
|
onClick: collapseSidebar,
|
|
@@ -5690,10 +5778,10 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
5690
5778
|
}
|
|
5691
5779
|
)
|
|
5692
5780
|
] }),
|
|
5693
|
-
/* @__PURE__ */ (0,
|
|
5694
|
-
/* @__PURE__ */ (0,
|
|
5781
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { style: { display: "grid", gap: 8, marginTop: 10 }, children: [
|
|
5782
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("label", { style: sidebarLabelStyle, children: [
|
|
5695
5783
|
"Default Page Width",
|
|
5696
|
-
/* @__PURE__ */ (0,
|
|
5784
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
5697
5785
|
"select",
|
|
5698
5786
|
{
|
|
5699
5787
|
onChange: (event) => setPageDefaults((current) => ({
|
|
@@ -5703,15 +5791,15 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
5703
5791
|
style: sidebarInputStyle,
|
|
5704
5792
|
value: pageDefaults.pageWidthDefault,
|
|
5705
5793
|
children: [
|
|
5706
|
-
/* @__PURE__ */ (0,
|
|
5707
|
-
/* @__PURE__ */ (0,
|
|
5708
|
-
/* @__PURE__ */ (0,
|
|
5794
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: "content", children: "Content" }),
|
|
5795
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: "wide", children: "Wide" }),
|
|
5796
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: "full", children: "Full" })
|
|
5709
5797
|
]
|
|
5710
5798
|
}
|
|
5711
5799
|
)
|
|
5712
5800
|
] }),
|
|
5713
|
-
/* @__PURE__ */ (0,
|
|
5714
|
-
/* @__PURE__ */ (0,
|
|
5801
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { style: { color: "var(--ink-700)", fontSize: 11 }, children: "Applies when section/content width is set to inherit." }),
|
|
5802
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
5715
5803
|
"div",
|
|
5716
5804
|
{
|
|
5717
5805
|
style: {
|
|
@@ -5726,9 +5814,9 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
5726
5814
|
children: "Theme (Page Overrides)"
|
|
5727
5815
|
}
|
|
5728
5816
|
),
|
|
5729
|
-
/* @__PURE__ */ (0,
|
|
5817
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("label", { style: sidebarLabelStyle, children: [
|
|
5730
5818
|
"Accent Color",
|
|
5731
|
-
/* @__PURE__ */ (0,
|
|
5819
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
5732
5820
|
"input",
|
|
5733
5821
|
{
|
|
5734
5822
|
onChange: (event) => setPageDefaults((current) => ({
|
|
@@ -5741,9 +5829,9 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
5741
5829
|
}
|
|
5742
5830
|
)
|
|
5743
5831
|
] }),
|
|
5744
|
-
/* @__PURE__ */ (0,
|
|
5832
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("label", { style: sidebarLabelStyle, children: [
|
|
5745
5833
|
"Heading Text Color",
|
|
5746
|
-
/* @__PURE__ */ (0,
|
|
5834
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
5747
5835
|
"input",
|
|
5748
5836
|
{
|
|
5749
5837
|
onChange: (event) => setPageDefaults((current) => ({
|
|
@@ -5756,9 +5844,9 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
5756
5844
|
}
|
|
5757
5845
|
)
|
|
5758
5846
|
] }),
|
|
5759
|
-
/* @__PURE__ */ (0,
|
|
5847
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("label", { style: sidebarLabelStyle, children: [
|
|
5760
5848
|
"Body Text Color",
|
|
5761
|
-
/* @__PURE__ */ (0,
|
|
5849
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
5762
5850
|
"input",
|
|
5763
5851
|
{
|
|
5764
5852
|
onChange: (event) => setPageDefaults((current) => ({
|
|
@@ -5771,9 +5859,9 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
5771
5859
|
}
|
|
5772
5860
|
)
|
|
5773
5861
|
] }),
|
|
5774
|
-
/* @__PURE__ */ (0,
|
|
5862
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("label", { style: sidebarLabelStyle, children: [
|
|
5775
5863
|
"Panel Radius (px)",
|
|
5776
|
-
/* @__PURE__ */ (0,
|
|
5864
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
5777
5865
|
"input",
|
|
5778
5866
|
{
|
|
5779
5867
|
max: 40,
|
|
@@ -5794,10 +5882,10 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
5794
5882
|
] })
|
|
5795
5883
|
] })
|
|
5796
5884
|
] }) : null,
|
|
5797
|
-
activeSidebarPanel === "addSections" ? /* @__PURE__ */ (0,
|
|
5798
|
-
/* @__PURE__ */ (0,
|
|
5799
|
-
/* @__PURE__ */ (0,
|
|
5800
|
-
/* @__PURE__ */ (0,
|
|
5885
|
+
activeSidebarPanel === "addSections" ? /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("section", { style: sidebarSectionStyle, children: [
|
|
5886
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { style: { alignItems: "center", display: "flex", justifyContent: "space-between" }, children: [
|
|
5887
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { style: { fontSize: 13, fontWeight: 800 }, children: "Add Sections" }),
|
|
5888
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
5801
5889
|
"button",
|
|
5802
5890
|
{
|
|
5803
5891
|
onClick: collapseSidebar,
|
|
@@ -5815,8 +5903,8 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
5815
5903
|
}
|
|
5816
5904
|
)
|
|
5817
5905
|
] }),
|
|
5818
|
-
/* @__PURE__ */ (0,
|
|
5819
|
-
/* @__PURE__ */ (0,
|
|
5906
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { style: { display: "grid", gap: 10, marginTop: 10 }, children: [
|
|
5907
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
5820
5908
|
"button",
|
|
5821
5909
|
{
|
|
5822
5910
|
onClick: applyTemplateStarter,
|
|
@@ -5838,8 +5926,8 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
5838
5926
|
]
|
|
5839
5927
|
}
|
|
5840
5928
|
),
|
|
5841
|
-
/* @__PURE__ */ (0,
|
|
5842
|
-
/* @__PURE__ */ (0,
|
|
5929
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { style: { display: "grid", gap: 8 }, children: [
|
|
5930
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
5843
5931
|
"input",
|
|
5844
5932
|
{
|
|
5845
5933
|
onChange: (event) => setPresetQuery(event.target.value),
|
|
@@ -5849,7 +5937,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
5849
5937
|
value: presetQuery
|
|
5850
5938
|
}
|
|
5851
5939
|
),
|
|
5852
|
-
filteredSectionPresets.map((preset) => /* @__PURE__ */ (0,
|
|
5940
|
+
filteredSectionPresets.map((preset) => /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
5853
5941
|
"button",
|
|
5854
5942
|
{
|
|
5855
5943
|
onClick: () => addSectionPreset(preset.blocks),
|
|
@@ -5864,17 +5952,17 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
5864
5952
|
},
|
|
5865
5953
|
type: "button",
|
|
5866
5954
|
children: [
|
|
5867
|
-
/* @__PURE__ */ (0,
|
|
5868
|
-
/* @__PURE__ */ (0,
|
|
5955
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { style: { fontSize: 12, fontWeight: 700 }, children: preset.title }),
|
|
5956
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { style: { color: "var(--ink-700)", fontSize: 11 }, children: preset.description })
|
|
5869
5957
|
]
|
|
5870
5958
|
},
|
|
5871
5959
|
preset.id
|
|
5872
5960
|
)),
|
|
5873
|
-
filteredSectionPresets.length === 0 ? /* @__PURE__ */ (0,
|
|
5961
|
+
filteredSectionPresets.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { style: { color: "var(--ink-700)", fontSize: 11 }, children: "No presets match this search." }) : null
|
|
5874
5962
|
] }),
|
|
5875
|
-
/* @__PURE__ */ (0,
|
|
5876
|
-
/* @__PURE__ */ (0,
|
|
5877
|
-
/* @__PURE__ */ (0,
|
|
5963
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { style: { borderTop: "1px solid rgba(13, 74, 55, 0.12)", marginTop: 2, paddingTop: 10 }, children: [
|
|
5964
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { style: { color: "var(--ink-700)", fontSize: 11, fontWeight: 800, textTransform: "uppercase" }, children: "Quick Add Blocks" }),
|
|
5965
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { style: { display: "grid", gap: 6, gridTemplateColumns: "1fr 1fr", marginTop: 8 }, children: quickAddBlockTypes.map((type) => /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
5878
5966
|
"button",
|
|
5879
5967
|
{
|
|
5880
5968
|
onClick: () => addBlockByType(type),
|
|
@@ -5897,13 +5985,13 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
5897
5985
|
] })
|
|
5898
5986
|
] })
|
|
5899
5987
|
] }) : null,
|
|
5900
|
-
activeSidebarPanel === "selected" ? /* @__PURE__ */ (0,
|
|
5901
|
-
/* @__PURE__ */ (0,
|
|
5902
|
-
/* @__PURE__ */ (0,
|
|
5988
|
+
activeSidebarPanel === "selected" ? /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("section", { style: sidebarSectionStyle, children: [
|
|
5989
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { style: { alignItems: "center", display: "flex", justifyContent: "space-between" }, children: [
|
|
5990
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { style: { fontSize: 13, fontWeight: 800 }, children: [
|
|
5903
5991
|
"Selected Section ",
|
|
5904
5992
|
selectedIndex !== null ? `#${selectedIndex + 1}` : ""
|
|
5905
5993
|
] }),
|
|
5906
|
-
/* @__PURE__ */ (0,
|
|
5994
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
5907
5995
|
"button",
|
|
5908
5996
|
{
|
|
5909
5997
|
onClick: collapseSidebar,
|
|
@@ -5921,10 +6009,10 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
5921
6009
|
}
|
|
5922
6010
|
)
|
|
5923
6011
|
] }),
|
|
5924
|
-
/* @__PURE__ */ (0,
|
|
5925
|
-
/* @__PURE__ */ (0,
|
|
5926
|
-
/* @__PURE__ */ (0,
|
|
5927
|
-
/* @__PURE__ */ (0,
|
|
6012
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { style: { display: "grid", gap: 8, marginTop: 10 }, children: selectedBlock ? /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
|
|
6013
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { style: { color: "var(--ink-700)", fontSize: 12, fontWeight: 600 }, children: blockTypeLabels[selectedType] || selectedType }),
|
|
6014
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { style: { display: "flex", flexWrap: "wrap", gap: 6 }, children: [
|
|
6015
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
5928
6016
|
"button",
|
|
5929
6017
|
{
|
|
5930
6018
|
disabled: selectedIndex === null || selectedIndex <= 0,
|
|
@@ -5934,7 +6022,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
5934
6022
|
children: "Move Up"
|
|
5935
6023
|
}
|
|
5936
6024
|
),
|
|
5937
|
-
/* @__PURE__ */ (0,
|
|
6025
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
5938
6026
|
"button",
|
|
5939
6027
|
{
|
|
5940
6028
|
disabled: selectedIndex === null || selectedIndex >= layout.length - 1,
|
|
@@ -5944,7 +6032,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
5944
6032
|
children: "Move Down"
|
|
5945
6033
|
}
|
|
5946
6034
|
),
|
|
5947
|
-
/* @__PURE__ */ (0,
|
|
6035
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
5948
6036
|
"button",
|
|
5949
6037
|
{
|
|
5950
6038
|
onClick: duplicateSelectedBlock,
|
|
@@ -5953,7 +6041,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
5953
6041
|
children: "Duplicate"
|
|
5954
6042
|
}
|
|
5955
6043
|
),
|
|
5956
|
-
/* @__PURE__ */ (0,
|
|
6044
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
5957
6045
|
"button",
|
|
5958
6046
|
{
|
|
5959
6047
|
onClick: removeSelectedBlock,
|
|
@@ -5971,8 +6059,8 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
5971
6059
|
}
|
|
5972
6060
|
)
|
|
5973
6061
|
] }),
|
|
5974
|
-
v2InspectorEnabledForSelected ? /* @__PURE__ */ (0,
|
|
5975
|
-
/* @__PURE__ */ (0,
|
|
6062
|
+
v2InspectorEnabledForSelected ? /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
|
|
6063
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
5976
6064
|
BlockInspectorRenderer,
|
|
5977
6065
|
{
|
|
5978
6066
|
block: selectedBlock,
|
|
@@ -5985,7 +6073,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
5985
6073
|
searchQuery: settingsSearchQuery
|
|
5986
6074
|
}
|
|
5987
6075
|
),
|
|
5988
|
-
isArrayItemBlockSelected ? /* @__PURE__ */ (0,
|
|
6076
|
+
isArrayItemBlockSelected ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
5989
6077
|
ArrayItemsEditor,
|
|
5990
6078
|
{
|
|
5991
6079
|
blockType: selectedType,
|
|
@@ -6008,84 +6096,84 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
6008
6096
|
uploadDisabled: uploadingTarget !== null
|
|
6009
6097
|
}
|
|
6010
6098
|
) : null
|
|
6011
|
-
] }) : /* @__PURE__ */ (0,
|
|
6012
|
-
/* @__PURE__ */ (0,
|
|
6099
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
|
|
6100
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { style: { color: "var(--ink-700)", fontSize: 11 }, children: [
|
|
6013
6101
|
"Section width follows ",
|
|
6014
|
-
/* @__PURE__ */ (0,
|
|
6102
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("strong", { children: "Page Defaults" }),
|
|
6015
6103
|
" for a consistent page layout."
|
|
6016
6104
|
] }),
|
|
6017
|
-
/* @__PURE__ */ (0,
|
|
6105
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("label", { style: sidebarLabelStyle, children: [
|
|
6018
6106
|
"Content Width",
|
|
6019
|
-
/* @__PURE__ */ (0,
|
|
6107
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
6020
6108
|
"select",
|
|
6021
6109
|
{
|
|
6022
6110
|
onChange: (event) => setSelectedStyleField("contentWidth", event.target.value),
|
|
6023
6111
|
style: sidebarInputStyle,
|
|
6024
6112
|
value: normalizeText2(selectedSectionStyle.contentWidth, "inherit"),
|
|
6025
6113
|
children: [
|
|
6026
|
-
/* @__PURE__ */ (0,
|
|
6027
|
-
/* @__PURE__ */ (0,
|
|
6028
|
-
/* @__PURE__ */ (0,
|
|
6029
|
-
/* @__PURE__ */ (0,
|
|
6030
|
-
/* @__PURE__ */ (0,
|
|
6114
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: "inherit", children: "Inherit Page Default" }),
|
|
6115
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: "narrow", children: "Narrow" }),
|
|
6116
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: "content", children: "Content" }),
|
|
6117
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: "wide", children: "Wide" }),
|
|
6118
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: "full", children: "Full" })
|
|
6031
6119
|
]
|
|
6032
6120
|
}
|
|
6033
6121
|
)
|
|
6034
6122
|
] }),
|
|
6035
|
-
/* @__PURE__ */ (0,
|
|
6123
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("label", { style: sidebarLabelStyle, children: [
|
|
6036
6124
|
"Section Vertical Spacing",
|
|
6037
|
-
/* @__PURE__ */ (0,
|
|
6125
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
6038
6126
|
"select",
|
|
6039
6127
|
{
|
|
6040
6128
|
onChange: (event) => setSelectedStyleField("sectionPaddingY", event.target.value),
|
|
6041
6129
|
style: sidebarInputStyle,
|
|
6042
6130
|
value: normalizeText2(selectedSectionStyle.sectionPaddingY, "md"),
|
|
6043
6131
|
children: [
|
|
6044
|
-
/* @__PURE__ */ (0,
|
|
6045
|
-
/* @__PURE__ */ (0,
|
|
6046
|
-
/* @__PURE__ */ (0,
|
|
6047
|
-
/* @__PURE__ */ (0,
|
|
6132
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: "none", children: "None" }),
|
|
6133
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: "sm", children: "Small" }),
|
|
6134
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: "md", children: "Medium" }),
|
|
6135
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: "lg", children: "Large" })
|
|
6048
6136
|
]
|
|
6049
6137
|
}
|
|
6050
6138
|
)
|
|
6051
6139
|
] }),
|
|
6052
|
-
/* @__PURE__ */ (0,
|
|
6140
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("label", { style: sidebarLabelStyle, children: [
|
|
6053
6141
|
"Section Horizontal Spacing",
|
|
6054
|
-
/* @__PURE__ */ (0,
|
|
6142
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
6055
6143
|
"select",
|
|
6056
6144
|
{
|
|
6057
6145
|
onChange: (event) => setSelectedStyleField("sectionPaddingX", event.target.value),
|
|
6058
6146
|
style: sidebarInputStyle,
|
|
6059
6147
|
value: normalizeText2(selectedSectionStyle.sectionPaddingX, "inherit"),
|
|
6060
6148
|
children: [
|
|
6061
|
-
/* @__PURE__ */ (0,
|
|
6062
|
-
/* @__PURE__ */ (0,
|
|
6063
|
-
/* @__PURE__ */ (0,
|
|
6064
|
-
/* @__PURE__ */ (0,
|
|
6065
|
-
/* @__PURE__ */ (0,
|
|
6149
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: "inherit", children: "Inherit (Edge-to-Edge on Full Width)" }),
|
|
6150
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: "none", children: "None" }),
|
|
6151
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: "sm", children: "Small" }),
|
|
6152
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: "md", children: "Medium" }),
|
|
6153
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: "lg", children: "Large" })
|
|
6066
6154
|
]
|
|
6067
6155
|
}
|
|
6068
6156
|
)
|
|
6069
6157
|
] }),
|
|
6070
|
-
/* @__PURE__ */ (0,
|
|
6158
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("label", { style: sidebarLabelStyle, children: [
|
|
6071
6159
|
"Section Background",
|
|
6072
|
-
/* @__PURE__ */ (0,
|
|
6160
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
6073
6161
|
"select",
|
|
6074
6162
|
{
|
|
6075
6163
|
onChange: (event) => setSelectedStyleField("sectionBackgroundMode", event.target.value),
|
|
6076
6164
|
style: sidebarInputStyle,
|
|
6077
6165
|
value: normalizeText2(selectedSectionStyle.sectionBackgroundMode, "none"),
|
|
6078
6166
|
children: [
|
|
6079
|
-
/* @__PURE__ */ (0,
|
|
6080
|
-
/* @__PURE__ */ (0,
|
|
6081
|
-
/* @__PURE__ */ (0,
|
|
6167
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: "none", children: "None" }),
|
|
6168
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: "color", children: "Color" }),
|
|
6169
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: "gradient", children: "Gradient" })
|
|
6082
6170
|
]
|
|
6083
6171
|
}
|
|
6084
6172
|
)
|
|
6085
6173
|
] }),
|
|
6086
|
-
normalizeText2(selectedSectionStyle.sectionBackgroundMode, "none") === "color" ? /* @__PURE__ */ (0,
|
|
6174
|
+
normalizeText2(selectedSectionStyle.sectionBackgroundMode, "none") === "color" ? /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("label", { style: sidebarLabelStyle, children: [
|
|
6087
6175
|
"Section Background Color",
|
|
6088
|
-
/* @__PURE__ */ (0,
|
|
6176
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
6089
6177
|
"input",
|
|
6090
6178
|
{
|
|
6091
6179
|
onChange: (event) => setSelectedStyleField("sectionBackgroundColor", event.target.value),
|
|
@@ -6095,23 +6183,23 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
6095
6183
|
}
|
|
6096
6184
|
)
|
|
6097
6185
|
] }) : null,
|
|
6098
|
-
normalizeText2(selectedSectionStyle.sectionBackgroundMode, "none") === "gradient" ? /* @__PURE__ */ (0,
|
|
6099
|
-
/* @__PURE__ */ (0,
|
|
6186
|
+
normalizeText2(selectedSectionStyle.sectionBackgroundMode, "none") === "gradient" ? /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
|
|
6187
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("label", { style: sidebarLabelStyle, children: [
|
|
6100
6188
|
"Section Gradient Preset",
|
|
6101
|
-
/* @__PURE__ */ (0,
|
|
6189
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
6102
6190
|
"select",
|
|
6103
6191
|
{
|
|
6104
6192
|
onChange: (event) => applyGradientPreset("section", event.target.value),
|
|
6105
6193
|
style: sidebarInputStyle,
|
|
6106
6194
|
value: normalizeText2(selectedSectionStyle.sectionGradientPreset, "forest"),
|
|
6107
|
-
children: Object.keys(gradientPresetPairs).map((preset) => /* @__PURE__ */ (0,
|
|
6195
|
+
children: Object.keys(gradientPresetPairs).map((preset) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: preset, children: preset }, preset))
|
|
6108
6196
|
}
|
|
6109
6197
|
)
|
|
6110
6198
|
] }),
|
|
6111
|
-
/* @__PURE__ */ (0,
|
|
6112
|
-
/* @__PURE__ */ (0,
|
|
6199
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { style: { display: "grid", gap: 6, gridTemplateColumns: "1fr 1fr" }, children: [
|
|
6200
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("label", { style: sidebarLabelStyle, children: [
|
|
6113
6201
|
"From",
|
|
6114
|
-
/* @__PURE__ */ (0,
|
|
6202
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
6115
6203
|
"input",
|
|
6116
6204
|
{
|
|
6117
6205
|
onChange: (event) => setSelectedStyleField("sectionGradientFrom", event.target.value),
|
|
@@ -6121,9 +6209,9 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
6121
6209
|
}
|
|
6122
6210
|
)
|
|
6123
6211
|
] }),
|
|
6124
|
-
/* @__PURE__ */ (0,
|
|
6212
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("label", { style: sidebarLabelStyle, children: [
|
|
6125
6213
|
"To",
|
|
6126
|
-
/* @__PURE__ */ (0,
|
|
6214
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
6127
6215
|
"input",
|
|
6128
6216
|
{
|
|
6129
6217
|
onChange: (event) => setSelectedStyleField("sectionGradientTo", event.target.value),
|
|
@@ -6134,9 +6222,9 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
6134
6222
|
)
|
|
6135
6223
|
] })
|
|
6136
6224
|
] }),
|
|
6137
|
-
/* @__PURE__ */ (0,
|
|
6225
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("label", { style: sidebarLabelStyle, children: [
|
|
6138
6226
|
"Angle",
|
|
6139
|
-
/* @__PURE__ */ (0,
|
|
6227
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
6140
6228
|
"input",
|
|
6141
6229
|
{
|
|
6142
6230
|
max: 360,
|
|
@@ -6149,25 +6237,25 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
6149
6237
|
)
|
|
6150
6238
|
] })
|
|
6151
6239
|
] }) : null,
|
|
6152
|
-
/* @__PURE__ */ (0,
|
|
6240
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("label", { style: sidebarLabelStyle, children: [
|
|
6153
6241
|
"Content Background",
|
|
6154
|
-
/* @__PURE__ */ (0,
|
|
6242
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
6155
6243
|
"select",
|
|
6156
6244
|
{
|
|
6157
6245
|
onChange: (event) => setSelectedStyleField("contentBackgroundMode", event.target.value),
|
|
6158
6246
|
style: sidebarInputStyle,
|
|
6159
6247
|
value: normalizeText2(selectedSectionStyle.contentBackgroundMode, "none"),
|
|
6160
6248
|
children: [
|
|
6161
|
-
/* @__PURE__ */ (0,
|
|
6162
|
-
/* @__PURE__ */ (0,
|
|
6163
|
-
/* @__PURE__ */ (0,
|
|
6249
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: "none", children: "None" }),
|
|
6250
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: "color", children: "Color" }),
|
|
6251
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: "gradient", children: "Gradient" })
|
|
6164
6252
|
]
|
|
6165
6253
|
}
|
|
6166
6254
|
)
|
|
6167
6255
|
] }),
|
|
6168
|
-
normalizeText2(selectedSectionStyle.contentBackgroundMode, "none") === "color" ? /* @__PURE__ */ (0,
|
|
6256
|
+
normalizeText2(selectedSectionStyle.contentBackgroundMode, "none") === "color" ? /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("label", { style: sidebarLabelStyle, children: [
|
|
6169
6257
|
"Content Background Color",
|
|
6170
|
-
/* @__PURE__ */ (0,
|
|
6258
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
6171
6259
|
"input",
|
|
6172
6260
|
{
|
|
6173
6261
|
onChange: (event) => setSelectedStyleField("contentBackgroundColor", event.target.value),
|
|
@@ -6177,23 +6265,23 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
6177
6265
|
}
|
|
6178
6266
|
)
|
|
6179
6267
|
] }) : null,
|
|
6180
|
-
normalizeText2(selectedSectionStyle.contentBackgroundMode, "none") === "gradient" ? /* @__PURE__ */ (0,
|
|
6181
|
-
/* @__PURE__ */ (0,
|
|
6268
|
+
normalizeText2(selectedSectionStyle.contentBackgroundMode, "none") === "gradient" ? /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
|
|
6269
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("label", { style: sidebarLabelStyle, children: [
|
|
6182
6270
|
"Content Gradient Preset",
|
|
6183
|
-
/* @__PURE__ */ (0,
|
|
6271
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
6184
6272
|
"select",
|
|
6185
6273
|
{
|
|
6186
6274
|
onChange: (event) => applyGradientPreset("content", event.target.value),
|
|
6187
6275
|
style: sidebarInputStyle,
|
|
6188
6276
|
value: normalizeText2(selectedSectionStyle.contentGradientPreset, "none"),
|
|
6189
|
-
children: Object.keys(gradientPresetPairs).map((preset) => /* @__PURE__ */ (0,
|
|
6277
|
+
children: Object.keys(gradientPresetPairs).map((preset) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: preset, children: preset }, preset))
|
|
6190
6278
|
}
|
|
6191
6279
|
)
|
|
6192
6280
|
] }),
|
|
6193
|
-
/* @__PURE__ */ (0,
|
|
6194
|
-
/* @__PURE__ */ (0,
|
|
6281
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { style: { display: "grid", gap: 6, gridTemplateColumns: "1fr 1fr" }, children: [
|
|
6282
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("label", { style: sidebarLabelStyle, children: [
|
|
6195
6283
|
"From",
|
|
6196
|
-
/* @__PURE__ */ (0,
|
|
6284
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
6197
6285
|
"input",
|
|
6198
6286
|
{
|
|
6199
6287
|
onChange: (event) => setSelectedStyleField("contentGradientFrom", event.target.value),
|
|
@@ -6203,9 +6291,9 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
6203
6291
|
}
|
|
6204
6292
|
)
|
|
6205
6293
|
] }),
|
|
6206
|
-
/* @__PURE__ */ (0,
|
|
6294
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("label", { style: sidebarLabelStyle, children: [
|
|
6207
6295
|
"To",
|
|
6208
|
-
/* @__PURE__ */ (0,
|
|
6296
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
6209
6297
|
"input",
|
|
6210
6298
|
{
|
|
6211
6299
|
onChange: (event) => setSelectedStyleField("contentGradientTo", event.target.value),
|
|
@@ -6216,9 +6304,9 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
6216
6304
|
)
|
|
6217
6305
|
] })
|
|
6218
6306
|
] }),
|
|
6219
|
-
/* @__PURE__ */ (0,
|
|
6307
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("label", { style: sidebarLabelStyle, children: [
|
|
6220
6308
|
"Angle",
|
|
6221
|
-
/* @__PURE__ */ (0,
|
|
6309
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
6222
6310
|
"input",
|
|
6223
6311
|
{
|
|
6224
6312
|
max: 360,
|
|
@@ -6231,59 +6319,59 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
6231
6319
|
)
|
|
6232
6320
|
] })
|
|
6233
6321
|
] }) : null,
|
|
6234
|
-
selectedType === "hero" ? /* @__PURE__ */ (0,
|
|
6235
|
-
/* @__PURE__ */ (0,
|
|
6322
|
+
selectedType === "hero" ? /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
|
|
6323
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("label", { style: sidebarLabelStyle, children: [
|
|
6236
6324
|
"Variant",
|
|
6237
|
-
/* @__PURE__ */ (0,
|
|
6325
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
6238
6326
|
"select",
|
|
6239
6327
|
{
|
|
6240
6328
|
onChange: (event) => updateSelectedField("variant", event.target.value),
|
|
6241
6329
|
style: sidebarInputStyle,
|
|
6242
6330
|
value: normalizeText2(selectedBlock.variant, "default"),
|
|
6243
6331
|
children: [
|
|
6244
|
-
/* @__PURE__ */ (0,
|
|
6245
|
-
/* @__PURE__ */ (0,
|
|
6332
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: "default", children: "Default" }),
|
|
6333
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: "centered", children: "Centered" })
|
|
6246
6334
|
]
|
|
6247
6335
|
}
|
|
6248
6336
|
)
|
|
6249
6337
|
] }),
|
|
6250
|
-
/* @__PURE__ */ (0,
|
|
6338
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("label", { style: sidebarLabelStyle, children: [
|
|
6251
6339
|
"Hero Height",
|
|
6252
|
-
/* @__PURE__ */ (0,
|
|
6340
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
6253
6341
|
"select",
|
|
6254
6342
|
{
|
|
6255
6343
|
onChange: (event) => updateSelectedField("heroHeight", event.target.value),
|
|
6256
6344
|
style: sidebarInputStyle,
|
|
6257
6345
|
value: normalizeHeroHeight(selectedBlock.heroHeight),
|
|
6258
6346
|
children: [
|
|
6259
|
-
/* @__PURE__ */ (0,
|
|
6260
|
-
/* @__PURE__ */ (0,
|
|
6261
|
-
/* @__PURE__ */ (0,
|
|
6347
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: "sm", children: "Small" }),
|
|
6348
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: "md", children: "Medium (Half Screen)" }),
|
|
6349
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: "full", children: "Full Screen" })
|
|
6262
6350
|
]
|
|
6263
6351
|
}
|
|
6264
6352
|
)
|
|
6265
6353
|
] }),
|
|
6266
|
-
/* @__PURE__ */ (0,
|
|
6267
|
-
/* @__PURE__ */ (0,
|
|
6268
|
-
/* @__PURE__ */ (0,
|
|
6269
|
-
/* @__PURE__ */ (0,
|
|
6354
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { style: { ...sidebarSectionStyle, display: "grid", gap: 8 }, children: [
|
|
6355
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { style: { color: "var(--ink-700)", fontSize: 12, fontWeight: 600 }, children: "Hero Image" }),
|
|
6356
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { style: { color: "var(--ink-700)", fontSize: 12 }, children: selectedHeroMedia ? `${selectedHeroMedia.filename || `Media #${selectedHeroMedia.id}`}${selectedHeroMedia.alt ? ` (${selectedHeroMedia.alt})` : ""}` : "No image selected." }),
|
|
6357
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("label", { style: sidebarLabelStyle, children: [
|
|
6270
6358
|
"Choose from Media Library",
|
|
6271
|
-
/* @__PURE__ */ (0,
|
|
6359
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
6272
6360
|
"select",
|
|
6273
6361
|
{
|
|
6274
6362
|
onChange: (event) => setHeroMediaFromLibrary(event.target.value),
|
|
6275
6363
|
style: sidebarInputStyle,
|
|
6276
6364
|
value: selectedHeroMediaID,
|
|
6277
6365
|
children: [
|
|
6278
|
-
/* @__PURE__ */ (0,
|
|
6279
|
-
mediaLibrary.map((item) => /* @__PURE__ */ (0,
|
|
6366
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: "", children: "No image" }),
|
|
6367
|
+
mediaLibrary.map((item) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: String(item.id), children: mediaLabel2(item) }, String(item.id)))
|
|
6280
6368
|
]
|
|
6281
6369
|
}
|
|
6282
6370
|
)
|
|
6283
6371
|
] }),
|
|
6284
|
-
mediaLibraryLoading ? /* @__PURE__ */ (0,
|
|
6285
|
-
mediaLibraryError ? /* @__PURE__ */ (0,
|
|
6286
|
-
/* @__PURE__ */ (0,
|
|
6372
|
+
mediaLibraryLoading ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { style: { color: "var(--ink-700)", fontSize: 11 }, children: "Loading media library..." }) : null,
|
|
6373
|
+
mediaLibraryError ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { style: { color: "#8d1d1d", fontSize: 11 }, children: mediaLibraryError }) : null,
|
|
6374
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
6287
6375
|
"button",
|
|
6288
6376
|
{
|
|
6289
6377
|
disabled: !selectedHeroMedia && !selectedHeroMediaID,
|
|
@@ -6298,9 +6386,9 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
6298
6386
|
children: "Remove Hero Image"
|
|
6299
6387
|
}
|
|
6300
6388
|
),
|
|
6301
|
-
/* @__PURE__ */ (0,
|
|
6389
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("label", { style: sidebarLabelStyle, children: [
|
|
6302
6390
|
"Upload Hero Background Image",
|
|
6303
|
-
/* @__PURE__ */ (0,
|
|
6391
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
6304
6392
|
"input",
|
|
6305
6393
|
{
|
|
6306
6394
|
accept: "image/*",
|
|
@@ -6317,24 +6405,24 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
6317
6405
|
}
|
|
6318
6406
|
)
|
|
6319
6407
|
] }),
|
|
6320
|
-
/* @__PURE__ */ (0,
|
|
6408
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("label", { style: sidebarLabelStyle, children: [
|
|
6321
6409
|
"Image Fit",
|
|
6322
|
-
/* @__PURE__ */ (0,
|
|
6410
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
6323
6411
|
"select",
|
|
6324
6412
|
{
|
|
6325
6413
|
onChange: (event) => updateSelectedField("backgroundImageFit", event.target.value),
|
|
6326
6414
|
style: sidebarInputStyle,
|
|
6327
6415
|
value: normalizeHeroImageFit(selectedBlock.backgroundImageFit),
|
|
6328
6416
|
children: [
|
|
6329
|
-
/* @__PURE__ */ (0,
|
|
6330
|
-
/* @__PURE__ */ (0,
|
|
6417
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: "cover", children: "Cover" }),
|
|
6418
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: "contain", children: "Contain" })
|
|
6331
6419
|
]
|
|
6332
6420
|
}
|
|
6333
6421
|
)
|
|
6334
6422
|
] }),
|
|
6335
|
-
/* @__PURE__ */ (0,
|
|
6423
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("label", { style: sidebarLabelStyle, children: [
|
|
6336
6424
|
"Image Corners",
|
|
6337
|
-
/* @__PURE__ */ (0,
|
|
6425
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
6338
6426
|
"select",
|
|
6339
6427
|
{
|
|
6340
6428
|
onChange: (event) => updateSelectedField("backgroundImageCornerStyle", event.target.value),
|
|
@@ -6344,53 +6432,53 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
6344
6432
|
selectedBlock.backgroundImageFit
|
|
6345
6433
|
),
|
|
6346
6434
|
children: [
|
|
6347
|
-
/* @__PURE__ */ (0,
|
|
6348
|
-
/* @__PURE__ */ (0,
|
|
6435
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: "rounded", children: "Rounded" }),
|
|
6436
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: "square", children: "Square" })
|
|
6349
6437
|
]
|
|
6350
6438
|
}
|
|
6351
6439
|
)
|
|
6352
6440
|
] }),
|
|
6353
|
-
/* @__PURE__ */ (0,
|
|
6441
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("label", { style: sidebarLabelStyle, children: [
|
|
6354
6442
|
"Image Position",
|
|
6355
|
-
/* @__PURE__ */ (0,
|
|
6443
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
6356
6444
|
"select",
|
|
6357
6445
|
{
|
|
6358
6446
|
onChange: (event) => updateSelectedField("backgroundImagePosition", event.target.value),
|
|
6359
6447
|
style: sidebarInputStyle,
|
|
6360
6448
|
value: normalizeHeroImagePosition(selectedBlock.backgroundImagePosition),
|
|
6361
6449
|
children: [
|
|
6362
|
-
/* @__PURE__ */ (0,
|
|
6363
|
-
/* @__PURE__ */ (0,
|
|
6364
|
-
/* @__PURE__ */ (0,
|
|
6365
|
-
/* @__PURE__ */ (0,
|
|
6366
|
-
/* @__PURE__ */ (0,
|
|
6450
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: "center", children: "Center" }),
|
|
6451
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: "top", children: "Top" }),
|
|
6452
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: "bottom", children: "Bottom" }),
|
|
6453
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: "left", children: "Left" }),
|
|
6454
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: "right", children: "Right" })
|
|
6367
6455
|
]
|
|
6368
6456
|
}
|
|
6369
6457
|
)
|
|
6370
6458
|
] })
|
|
6371
6459
|
] }),
|
|
6372
|
-
/* @__PURE__ */ (0,
|
|
6373
|
-
/* @__PURE__ */ (0,
|
|
6374
|
-
/* @__PURE__ */ (0,
|
|
6460
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { style: { ...sidebarSectionStyle, display: "grid", gap: 8 }, children: [
|
|
6461
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { style: { color: "var(--ink-700)", fontSize: 12, fontWeight: 600 }, children: "Hero Overlay" }),
|
|
6462
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("label", { style: sidebarLabelStyle, children: [
|
|
6375
6463
|
"Overlay Type",
|
|
6376
|
-
/* @__PURE__ */ (0,
|
|
6464
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
6377
6465
|
"select",
|
|
6378
6466
|
{
|
|
6379
6467
|
onChange: (event) => updateSelectedField("backgroundOverlayMode", event.target.value),
|
|
6380
6468
|
style: sidebarInputStyle,
|
|
6381
6469
|
value: normalizeText2(selectedBlock.backgroundOverlayMode, "none"),
|
|
6382
6470
|
children: [
|
|
6383
|
-
/* @__PURE__ */ (0,
|
|
6384
|
-
/* @__PURE__ */ (0,
|
|
6385
|
-
/* @__PURE__ */ (0,
|
|
6471
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: "none", children: "None" }),
|
|
6472
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: "solid", children: "Solid" }),
|
|
6473
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: "gradient", children: "Gradient" })
|
|
6386
6474
|
]
|
|
6387
6475
|
}
|
|
6388
6476
|
)
|
|
6389
6477
|
] }),
|
|
6390
|
-
/* @__PURE__ */ (0,
|
|
6478
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("label", { style: sidebarLabelStyle, children: [
|
|
6391
6479
|
"Opacity (%)",
|
|
6392
|
-
/* @__PURE__ */ (0,
|
|
6393
|
-
/* @__PURE__ */ (0,
|
|
6480
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { style: { alignItems: "center", display: "grid", gap: 8, gridTemplateColumns: "1fr 90px" }, children: [
|
|
6481
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
6394
6482
|
"input",
|
|
6395
6483
|
{
|
|
6396
6484
|
max: 100,
|
|
@@ -6400,7 +6488,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
6400
6488
|
value: parsePercentNumber(selectedBlock.backgroundOverlayOpacity, 45)
|
|
6401
6489
|
}
|
|
6402
6490
|
),
|
|
6403
|
-
/* @__PURE__ */ (0,
|
|
6491
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
6404
6492
|
"input",
|
|
6405
6493
|
{
|
|
6406
6494
|
max: 100,
|
|
@@ -6416,9 +6504,9 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
6416
6504
|
)
|
|
6417
6505
|
] })
|
|
6418
6506
|
] }),
|
|
6419
|
-
normalizeText2(selectedBlock.backgroundOverlayMode, "none") === "solid" ? /* @__PURE__ */ (0,
|
|
6507
|
+
normalizeText2(selectedBlock.backgroundOverlayMode, "none") === "solid" ? /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("label", { style: sidebarLabelStyle, children: [
|
|
6420
6508
|
"Overlay Color",
|
|
6421
|
-
/* @__PURE__ */ (0,
|
|
6509
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
6422
6510
|
"input",
|
|
6423
6511
|
{
|
|
6424
6512
|
onChange: (event) => updateSelectedField("backgroundOverlayColor", event.target.value),
|
|
@@ -6428,11 +6516,11 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
6428
6516
|
}
|
|
6429
6517
|
)
|
|
6430
6518
|
] }) : null,
|
|
6431
|
-
normalizeText2(selectedBlock.backgroundOverlayMode, "none") === "gradient" ? /* @__PURE__ */ (0,
|
|
6432
|
-
/* @__PURE__ */ (0,
|
|
6433
|
-
/* @__PURE__ */ (0,
|
|
6519
|
+
normalizeText2(selectedBlock.backgroundOverlayMode, "none") === "gradient" ? /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
|
|
6520
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { style: { display: "grid", gap: 6, gridTemplateColumns: "1fr 1fr" }, children: [
|
|
6521
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("label", { style: sidebarLabelStyle, children: [
|
|
6434
6522
|
"From",
|
|
6435
|
-
/* @__PURE__ */ (0,
|
|
6523
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
6436
6524
|
"input",
|
|
6437
6525
|
{
|
|
6438
6526
|
onChange: (event) => updateSelectedField("backgroundOverlayGradientFrom", event.target.value),
|
|
@@ -6442,9 +6530,9 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
6442
6530
|
}
|
|
6443
6531
|
)
|
|
6444
6532
|
] }),
|
|
6445
|
-
/* @__PURE__ */ (0,
|
|
6533
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("label", { style: sidebarLabelStyle, children: [
|
|
6446
6534
|
"To",
|
|
6447
|
-
/* @__PURE__ */ (0,
|
|
6535
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
6448
6536
|
"input",
|
|
6449
6537
|
{
|
|
6450
6538
|
onChange: (event) => updateSelectedField("backgroundOverlayGradientTo", event.target.value),
|
|
@@ -6455,10 +6543,10 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
6455
6543
|
)
|
|
6456
6544
|
] })
|
|
6457
6545
|
] }),
|
|
6458
|
-
/* @__PURE__ */ (0,
|
|
6459
|
-
/* @__PURE__ */ (0,
|
|
6546
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { style: { display: "grid", gap: 6, gridTemplateColumns: "1fr 1fr" }, children: [
|
|
6547
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("label", { style: sidebarLabelStyle, children: [
|
|
6460
6548
|
"From Strength (%)",
|
|
6461
|
-
/* @__PURE__ */ (0,
|
|
6549
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
6462
6550
|
"div",
|
|
6463
6551
|
{
|
|
6464
6552
|
style: {
|
|
@@ -6468,7 +6556,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
6468
6556
|
gridTemplateColumns: "1fr 70px"
|
|
6469
6557
|
},
|
|
6470
6558
|
children: [
|
|
6471
|
-
/* @__PURE__ */ (0,
|
|
6559
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
6472
6560
|
"input",
|
|
6473
6561
|
{
|
|
6474
6562
|
max: 100,
|
|
@@ -6481,7 +6569,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
6481
6569
|
value: parsePercentNumber(selectedBlock.backgroundOverlayGradientFromStrength, 100)
|
|
6482
6570
|
}
|
|
6483
6571
|
),
|
|
6484
|
-
/* @__PURE__ */ (0,
|
|
6572
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
6485
6573
|
"input",
|
|
6486
6574
|
{
|
|
6487
6575
|
max: 100,
|
|
@@ -6499,9 +6587,9 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
6499
6587
|
}
|
|
6500
6588
|
)
|
|
6501
6589
|
] }),
|
|
6502
|
-
/* @__PURE__ */ (0,
|
|
6590
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("label", { style: sidebarLabelStyle, children: [
|
|
6503
6591
|
"To Strength (%)",
|
|
6504
|
-
/* @__PURE__ */ (0,
|
|
6592
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
6505
6593
|
"div",
|
|
6506
6594
|
{
|
|
6507
6595
|
style: {
|
|
@@ -6511,7 +6599,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
6511
6599
|
gridTemplateColumns: "1fr 70px"
|
|
6512
6600
|
},
|
|
6513
6601
|
children: [
|
|
6514
|
-
/* @__PURE__ */ (0,
|
|
6602
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
6515
6603
|
"input",
|
|
6516
6604
|
{
|
|
6517
6605
|
max: 100,
|
|
@@ -6524,7 +6612,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
6524
6612
|
value: parsePercentNumber(selectedBlock.backgroundOverlayGradientToStrength, 100)
|
|
6525
6613
|
}
|
|
6526
6614
|
),
|
|
6527
|
-
/* @__PURE__ */ (0,
|
|
6615
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
6528
6616
|
"input",
|
|
6529
6617
|
{
|
|
6530
6618
|
max: 100,
|
|
@@ -6543,9 +6631,9 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
6543
6631
|
)
|
|
6544
6632
|
] })
|
|
6545
6633
|
] }),
|
|
6546
|
-
/* @__PURE__ */ (0,
|
|
6634
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("label", { style: sidebarLabelStyle, children: [
|
|
6547
6635
|
"Angle",
|
|
6548
|
-
/* @__PURE__ */ (0,
|
|
6636
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
6549
6637
|
"input",
|
|
6550
6638
|
{
|
|
6551
6639
|
max: 360,
|
|
@@ -6557,10 +6645,10 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
6557
6645
|
}
|
|
6558
6646
|
)
|
|
6559
6647
|
] }),
|
|
6560
|
-
/* @__PURE__ */ (0,
|
|
6648
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("label", { style: sidebarLabelStyle, children: [
|
|
6561
6649
|
"Gradient Start (%)",
|
|
6562
|
-
/* @__PURE__ */ (0,
|
|
6563
|
-
/* @__PURE__ */ (0,
|
|
6650
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { style: { alignItems: "center", display: "grid", gap: 8, gridTemplateColumns: "1fr 90px" }, children: [
|
|
6651
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
6564
6652
|
"input",
|
|
6565
6653
|
{
|
|
6566
6654
|
max: 100,
|
|
@@ -6577,7 +6665,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
6577
6665
|
value: parsePercentNumber(selectedBlock.backgroundOverlayGradientStart, 0)
|
|
6578
6666
|
}
|
|
6579
6667
|
),
|
|
6580
|
-
/* @__PURE__ */ (0,
|
|
6668
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
6581
6669
|
"input",
|
|
6582
6670
|
{
|
|
6583
6671
|
max: 100,
|
|
@@ -6597,10 +6685,10 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
6597
6685
|
)
|
|
6598
6686
|
] })
|
|
6599
6687
|
] }),
|
|
6600
|
-
/* @__PURE__ */ (0,
|
|
6688
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("label", { style: sidebarLabelStyle, children: [
|
|
6601
6689
|
"Gradient End (%)",
|
|
6602
|
-
/* @__PURE__ */ (0,
|
|
6603
|
-
/* @__PURE__ */ (0,
|
|
6690
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { style: { alignItems: "center", display: "grid", gap: 8, gridTemplateColumns: "1fr 90px" }, children: [
|
|
6691
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
6604
6692
|
"input",
|
|
6605
6693
|
{
|
|
6606
6694
|
max: 100,
|
|
@@ -6617,7 +6705,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
6617
6705
|
value: parsePercentNumber(selectedBlock.backgroundOverlayGradientEnd, 100)
|
|
6618
6706
|
}
|
|
6619
6707
|
),
|
|
6620
|
-
/* @__PURE__ */ (0,
|
|
6708
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
6621
6709
|
"input",
|
|
6622
6710
|
{
|
|
6623
6711
|
max: 100,
|
|
@@ -6637,10 +6725,10 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
6637
6725
|
)
|
|
6638
6726
|
] })
|
|
6639
6727
|
] }),
|
|
6640
|
-
/* @__PURE__ */ (0,
|
|
6728
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("label", { style: sidebarLabelStyle, children: [
|
|
6641
6729
|
"Feather (%)",
|
|
6642
|
-
/* @__PURE__ */ (0,
|
|
6643
|
-
/* @__PURE__ */ (0,
|
|
6730
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { style: { alignItems: "center", display: "grid", gap: 8, gridTemplateColumns: "1fr 90px" }, children: [
|
|
6731
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
6644
6732
|
"input",
|
|
6645
6733
|
{
|
|
6646
6734
|
max: 100,
|
|
@@ -6650,7 +6738,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
6650
6738
|
value: parsePercentNumber(selectedBlock.backgroundOverlayGradientFeather, 100)
|
|
6651
6739
|
}
|
|
6652
6740
|
),
|
|
6653
|
-
/* @__PURE__ */ (0,
|
|
6741
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
6654
6742
|
"input",
|
|
6655
6743
|
{
|
|
6656
6744
|
max: 100,
|
|
@@ -6667,7 +6755,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
6667
6755
|
] })
|
|
6668
6756
|
] })
|
|
6669
6757
|
] }) : null,
|
|
6670
|
-
/* @__PURE__ */ (0,
|
|
6758
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
6671
6759
|
"button",
|
|
6672
6760
|
{
|
|
6673
6761
|
onClick: () => {
|
|
@@ -6683,9 +6771,9 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
6683
6771
|
}
|
|
6684
6772
|
)
|
|
6685
6773
|
] }),
|
|
6686
|
-
/* @__PURE__ */ (0,
|
|
6774
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("label", { style: sidebarLabelStyle, children: [
|
|
6687
6775
|
"Background Color",
|
|
6688
|
-
/* @__PURE__ */ (0,
|
|
6776
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
6689
6777
|
"input",
|
|
6690
6778
|
{
|
|
6691
6779
|
onChange: (event) => updateSelectedField("backgroundColor", event.target.value),
|
|
@@ -6695,7 +6783,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
6695
6783
|
}
|
|
6696
6784
|
)
|
|
6697
6785
|
] }),
|
|
6698
|
-
/* @__PURE__ */ (0,
|
|
6786
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
6699
6787
|
"button",
|
|
6700
6788
|
{
|
|
6701
6789
|
onClick: () => updateSelectedField("backgroundColor", ""),
|
|
@@ -6705,44 +6793,44 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
6705
6793
|
}
|
|
6706
6794
|
)
|
|
6707
6795
|
] }) : null,
|
|
6708
|
-
selectedType === "featureGrid" ? /* @__PURE__ */ (0,
|
|
6709
|
-
/* @__PURE__ */ (0,
|
|
6796
|
+
selectedType === "featureGrid" ? /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
|
|
6797
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("label", { style: sidebarLabelStyle, children: [
|
|
6710
6798
|
"Variant",
|
|
6711
|
-
/* @__PURE__ */ (0,
|
|
6799
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
6712
6800
|
"select",
|
|
6713
6801
|
{
|
|
6714
6802
|
onChange: (event) => updateSelectedField("variant", event.target.value),
|
|
6715
6803
|
style: sidebarInputStyle,
|
|
6716
6804
|
value: normalizeText2(selectedBlock.variant, "cards"),
|
|
6717
6805
|
children: [
|
|
6718
|
-
/* @__PURE__ */ (0,
|
|
6719
|
-
/* @__PURE__ */ (0,
|
|
6806
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: "cards", children: "Cards" }),
|
|
6807
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: "highlight", children: "Highlight" })
|
|
6720
6808
|
]
|
|
6721
6809
|
}
|
|
6722
6810
|
)
|
|
6723
6811
|
] }),
|
|
6724
|
-
/* @__PURE__ */ (0,
|
|
6812
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("label", { style: sidebarLabelStyle, children: [
|
|
6725
6813
|
"Items Per Row (Desktop)",
|
|
6726
|
-
/* @__PURE__ */ (0,
|
|
6814
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
6727
6815
|
"select",
|
|
6728
6816
|
{
|
|
6729
6817
|
onChange: (event) => updateSelectedField("itemsPerRow", Number(event.target.value)),
|
|
6730
6818
|
style: sidebarInputStyle,
|
|
6731
6819
|
value: Math.max(1, Math.min(6, Math.floor(parsePixelNumber(selectedBlock.itemsPerRow, 3)))),
|
|
6732
6820
|
children: [
|
|
6733
|
-
/* @__PURE__ */ (0,
|
|
6734
|
-
/* @__PURE__ */ (0,
|
|
6735
|
-
/* @__PURE__ */ (0,
|
|
6736
|
-
/* @__PURE__ */ (0,
|
|
6737
|
-
/* @__PURE__ */ (0,
|
|
6738
|
-
/* @__PURE__ */ (0,
|
|
6821
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: 1, children: "1" }),
|
|
6822
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: 2, children: "2" }),
|
|
6823
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: 3, children: "3" }),
|
|
6824
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: 4, children: "4" }),
|
|
6825
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: 5, children: "5" }),
|
|
6826
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: 6, children: "6" })
|
|
6739
6827
|
]
|
|
6740
6828
|
}
|
|
6741
6829
|
)
|
|
6742
6830
|
] }),
|
|
6743
|
-
/* @__PURE__ */ (0,
|
|
6831
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("label", { style: sidebarLabelStyle, children: [
|
|
6744
6832
|
"Highlight Background Color",
|
|
6745
|
-
/* @__PURE__ */ (0,
|
|
6833
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
6746
6834
|
"input",
|
|
6747
6835
|
{
|
|
6748
6836
|
onChange: (event) => updateSelectedField("backgroundColor", event.target.value),
|
|
@@ -6753,42 +6841,42 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
6753
6841
|
)
|
|
6754
6842
|
] })
|
|
6755
6843
|
] }) : null,
|
|
6756
|
-
selectedType === "beforeAfter" ? /* @__PURE__ */ (0,
|
|
6844
|
+
selectedType === "beforeAfter" ? /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("label", { style: sidebarLabelStyle, children: [
|
|
6757
6845
|
"Items Per Row (Desktop)",
|
|
6758
|
-
/* @__PURE__ */ (0,
|
|
6846
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
6759
6847
|
"select",
|
|
6760
6848
|
{
|
|
6761
6849
|
onChange: (event) => updateSelectedField("itemsPerRow", Number(event.target.value)),
|
|
6762
6850
|
style: sidebarInputStyle,
|
|
6763
6851
|
value: Math.max(1, Math.min(4, Math.floor(parsePixelNumber(selectedBlock.itemsPerRow, 2)))),
|
|
6764
6852
|
children: [
|
|
6765
|
-
/* @__PURE__ */ (0,
|
|
6766
|
-
/* @__PURE__ */ (0,
|
|
6767
|
-
/* @__PURE__ */ (0,
|
|
6768
|
-
/* @__PURE__ */ (0,
|
|
6853
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: 1, children: "1" }),
|
|
6854
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: 2, children: "2" }),
|
|
6855
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: 3, children: "3" }),
|
|
6856
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: 4, children: "4" })
|
|
6769
6857
|
]
|
|
6770
6858
|
}
|
|
6771
6859
|
)
|
|
6772
6860
|
] }) : null,
|
|
6773
|
-
selectedType === "cta" ? /* @__PURE__ */ (0,
|
|
6774
|
-
/* @__PURE__ */ (0,
|
|
6861
|
+
selectedType === "cta" ? /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
|
|
6862
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("label", { style: sidebarLabelStyle, children: [
|
|
6775
6863
|
"Style",
|
|
6776
|
-
/* @__PURE__ */ (0,
|
|
6864
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
6777
6865
|
"select",
|
|
6778
6866
|
{
|
|
6779
6867
|
onChange: (event) => updateSelectedField("style", event.target.value),
|
|
6780
6868
|
style: sidebarInputStyle,
|
|
6781
6869
|
value: normalizeText2(selectedBlock.style, "light"),
|
|
6782
6870
|
children: [
|
|
6783
|
-
/* @__PURE__ */ (0,
|
|
6784
|
-
/* @__PURE__ */ (0,
|
|
6871
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: "light", children: "Light" }),
|
|
6872
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: "dark", children: "Dark" })
|
|
6785
6873
|
]
|
|
6786
6874
|
}
|
|
6787
6875
|
)
|
|
6788
6876
|
] }),
|
|
6789
|
-
/* @__PURE__ */ (0,
|
|
6877
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("label", { style: sidebarLabelStyle, children: [
|
|
6790
6878
|
"Background Color",
|
|
6791
|
-
/* @__PURE__ */ (0,
|
|
6879
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
6792
6880
|
"input",
|
|
6793
6881
|
{
|
|
6794
6882
|
onChange: (event) => updateSelectedField("backgroundColor", event.target.value),
|
|
@@ -6799,18 +6887,18 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
6799
6887
|
)
|
|
6800
6888
|
] })
|
|
6801
6889
|
] }) : null,
|
|
6802
|
-
selectedType === "media" ? /* @__PURE__ */ (0,
|
|
6803
|
-
/* @__PURE__ */ (0,
|
|
6890
|
+
selectedType === "media" ? /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
|
|
6891
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("label", { style: sidebarLabelStyle, children: [
|
|
6804
6892
|
"Image Size",
|
|
6805
|
-
/* @__PURE__ */ (0,
|
|
6893
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
6806
6894
|
"select",
|
|
6807
6895
|
{
|
|
6808
6896
|
onChange: (event) => updateSelectedField("size", event.target.value),
|
|
6809
6897
|
style: sidebarInputStyle,
|
|
6810
6898
|
value: normalizeText2(selectedBlock.size, "default"),
|
|
6811
6899
|
children: [
|
|
6812
|
-
/* @__PURE__ */ (0,
|
|
6813
|
-
/* @__PURE__ */ (0,
|
|
6900
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: "default", children: "Default" }),
|
|
6901
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: "wide", children: "Wide" })
|
|
6814
6902
|
]
|
|
6815
6903
|
}
|
|
6816
6904
|
)
|
|
@@ -6818,26 +6906,26 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
6818
6906
|
(() => {
|
|
6819
6907
|
const selectedMedia = resolveMediaLibraryItemFromValue(selectedBlock.image);
|
|
6820
6908
|
const selectedMediaID = getRelationID2(selectedBlock.image);
|
|
6821
|
-
return /* @__PURE__ */ (0,
|
|
6822
|
-
/* @__PURE__ */ (0,
|
|
6823
|
-
/* @__PURE__ */ (0,
|
|
6909
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
|
|
6910
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { style: { color: "var(--ink-700)", fontSize: 12 }, children: selectedMedia ? `Selected image: ${mediaLabel2(selectedMedia)}` : "No image selected." }),
|
|
6911
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("label", { style: sidebarLabelStyle, children: [
|
|
6824
6912
|
"Choose from Media Library",
|
|
6825
|
-
/* @__PURE__ */ (0,
|
|
6913
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
6826
6914
|
"select",
|
|
6827
6915
|
{
|
|
6828
6916
|
onChange: (event) => setSelectedMediaFieldFromLibrary("image", event.target.value),
|
|
6829
6917
|
style: sidebarInputStyle,
|
|
6830
6918
|
value: selectedMediaID !== null ? String(selectedMediaID) : "",
|
|
6831
6919
|
children: [
|
|
6832
|
-
/* @__PURE__ */ (0,
|
|
6833
|
-
mediaLibrary.map((libraryItem) => /* @__PURE__ */ (0,
|
|
6920
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: "", children: "No image" }),
|
|
6921
|
+
mediaLibrary.map((libraryItem) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: String(libraryItem.id), children: mediaLabel2(libraryItem) }, String(libraryItem.id)))
|
|
6834
6922
|
]
|
|
6835
6923
|
}
|
|
6836
6924
|
)
|
|
6837
6925
|
] }),
|
|
6838
|
-
mediaLibraryLoading ? /* @__PURE__ */ (0,
|
|
6839
|
-
mediaLibraryError ? /* @__PURE__ */ (0,
|
|
6840
|
-
/* @__PURE__ */ (0,
|
|
6926
|
+
mediaLibraryLoading ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { style: { color: "var(--ink-700)", fontSize: 11 }, children: "Loading media library..." }) : null,
|
|
6927
|
+
mediaLibraryError ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { style: { color: "#8d1d1d", fontSize: 11 }, children: mediaLibraryError }) : null,
|
|
6928
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
6841
6929
|
"button",
|
|
6842
6930
|
{
|
|
6843
6931
|
disabled: !selectedMedia && selectedMediaID === null,
|
|
@@ -6852,59 +6940,59 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
6852
6940
|
children: "Remove Section Image"
|
|
6853
6941
|
}
|
|
6854
6942
|
),
|
|
6855
|
-
/* @__PURE__ */ (0,
|
|
6943
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("label", { style: sidebarLabelStyle, children: [
|
|
6856
6944
|
"Image Fit",
|
|
6857
|
-
/* @__PURE__ */ (0,
|
|
6945
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
6858
6946
|
"select",
|
|
6859
6947
|
{
|
|
6860
6948
|
onChange: (event) => updateSelectedField("imageFit", event.target.value),
|
|
6861
6949
|
style: sidebarInputStyle,
|
|
6862
6950
|
value: normalizeImageFit2(selectedBlock.imageFit),
|
|
6863
6951
|
children: [
|
|
6864
|
-
/* @__PURE__ */ (0,
|
|
6865
|
-
/* @__PURE__ */ (0,
|
|
6952
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: "cover", children: "Cover" }),
|
|
6953
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: "contain", children: "Contain" })
|
|
6866
6954
|
]
|
|
6867
6955
|
}
|
|
6868
6956
|
)
|
|
6869
6957
|
] }),
|
|
6870
|
-
/* @__PURE__ */ (0,
|
|
6958
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("label", { style: sidebarLabelStyle, children: [
|
|
6871
6959
|
"Image Corners",
|
|
6872
|
-
/* @__PURE__ */ (0,
|
|
6960
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
6873
6961
|
"select",
|
|
6874
6962
|
{
|
|
6875
6963
|
onChange: (event) => updateSelectedField("imageCornerStyle", event.target.value),
|
|
6876
6964
|
style: sidebarInputStyle,
|
|
6877
6965
|
value: normalizeImageCornerStyle2(selectedBlock.imageCornerStyle),
|
|
6878
6966
|
children: [
|
|
6879
|
-
/* @__PURE__ */ (0,
|
|
6880
|
-
/* @__PURE__ */ (0,
|
|
6967
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: "rounded", children: "Rounded" }),
|
|
6968
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: "square", children: "Square" })
|
|
6881
6969
|
]
|
|
6882
6970
|
}
|
|
6883
6971
|
)
|
|
6884
6972
|
] }),
|
|
6885
|
-
/* @__PURE__ */ (0,
|
|
6973
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("label", { style: sidebarLabelStyle, children: [
|
|
6886
6974
|
"Image Position",
|
|
6887
|
-
/* @__PURE__ */ (0,
|
|
6975
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
6888
6976
|
"select",
|
|
6889
6977
|
{
|
|
6890
6978
|
onChange: (event) => updateSelectedField("imagePosition", event.target.value),
|
|
6891
6979
|
style: sidebarInputStyle,
|
|
6892
6980
|
value: normalizeImagePosition2(selectedBlock.imagePosition),
|
|
6893
6981
|
children: [
|
|
6894
|
-
/* @__PURE__ */ (0,
|
|
6895
|
-
/* @__PURE__ */ (0,
|
|
6896
|
-
/* @__PURE__ */ (0,
|
|
6897
|
-
/* @__PURE__ */ (0,
|
|
6898
|
-
/* @__PURE__ */ (0,
|
|
6982
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: "center", children: "Center" }),
|
|
6983
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: "top", children: "Top" }),
|
|
6984
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: "bottom", children: "Bottom" }),
|
|
6985
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: "left", children: "Left" }),
|
|
6986
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: "right", children: "Right" })
|
|
6899
6987
|
]
|
|
6900
6988
|
}
|
|
6901
6989
|
)
|
|
6902
6990
|
] })
|
|
6903
6991
|
] });
|
|
6904
6992
|
})(),
|
|
6905
|
-
/* @__PURE__ */ (0,
|
|
6993
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("label", { style: sidebarLabelStyle, children: [
|
|
6906
6994
|
"Upload Section Image",
|
|
6907
|
-
/* @__PURE__ */ (0,
|
|
6995
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
6908
6996
|
"input",
|
|
6909
6997
|
{
|
|
6910
6998
|
accept: "image/*",
|
|
@@ -6922,10 +7010,10 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
6922
7010
|
)
|
|
6923
7011
|
] })
|
|
6924
7012
|
] }) : null,
|
|
6925
|
-
selectedType === "richText" ? /* @__PURE__ */ (0,
|
|
6926
|
-
/* @__PURE__ */ (0,
|
|
7013
|
+
selectedType === "richText" ? /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
|
|
7014
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("label", { style: sidebarLabelStyle, children: [
|
|
6927
7015
|
"Content",
|
|
6928
|
-
/* @__PURE__ */ (0,
|
|
7016
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
6929
7017
|
"textarea",
|
|
6930
7018
|
{
|
|
6931
7019
|
onChange: (event) => updateSelectedField("content", createLexicalText(event.target.value || "")),
|
|
@@ -6934,35 +7022,35 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
6934
7022
|
}
|
|
6935
7023
|
)
|
|
6936
7024
|
] }),
|
|
6937
|
-
/* @__PURE__ */ (0,
|
|
7025
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("label", { style: sidebarLabelStyle, children: [
|
|
6938
7026
|
"Content Width",
|
|
6939
|
-
/* @__PURE__ */ (0,
|
|
7027
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
6940
7028
|
"select",
|
|
6941
7029
|
{
|
|
6942
7030
|
onChange: (event) => updateSelectedField("width", event.target.value),
|
|
6943
7031
|
style: sidebarInputStyle,
|
|
6944
7032
|
value: normalizeText2(selectedBlock.width, "normal"),
|
|
6945
7033
|
children: [
|
|
6946
|
-
/* @__PURE__ */ (0,
|
|
6947
|
-
/* @__PURE__ */ (0,
|
|
7034
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: "normal", children: "Normal" }),
|
|
7035
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: "narrow", children: "Narrow" })
|
|
6948
7036
|
]
|
|
6949
7037
|
}
|
|
6950
7038
|
)
|
|
6951
7039
|
] })
|
|
6952
7040
|
] }) : null,
|
|
6953
|
-
selectedType === "formEmbed" ? /* @__PURE__ */ (0,
|
|
7041
|
+
selectedType === "formEmbed" ? /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("label", { style: sidebarLabelStyle, children: [
|
|
6954
7042
|
"Form Type",
|
|
6955
|
-
/* @__PURE__ */ (0,
|
|
7043
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
6956
7044
|
"select",
|
|
6957
7045
|
{
|
|
6958
7046
|
onChange: (event) => updateSelectedField("formType", event.target.value),
|
|
6959
7047
|
style: sidebarInputStyle,
|
|
6960
7048
|
value: normalizeText2(selectedBlock.formType, "quote"),
|
|
6961
|
-
children: /* @__PURE__ */ (0,
|
|
7049
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: "quote", children: "Quote" })
|
|
6962
7050
|
}
|
|
6963
7051
|
)
|
|
6964
7052
|
] }) : null,
|
|
6965
|
-
selectedType === "testimonials" ? /* @__PURE__ */ (0,
|
|
7053
|
+
selectedType === "testimonials" ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_jsx_runtime8.Fragment, { children: (() => {
|
|
6966
7054
|
const visibleCountValue = Math.max(
|
|
6967
7055
|
1,
|
|
6968
7056
|
Math.min(6, Math.floor(parsePixelNumber(selectedBlock.visibleCount, 3)))
|
|
@@ -6972,10 +7060,10 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
6972
7060
|
Math.min(30, Math.floor(parsePixelNumber(selectedBlock.rotateIntervalSeconds, 7)))
|
|
6973
7061
|
);
|
|
6974
7062
|
const autoRotateValue = typeof selectedBlock.autoRotate === "boolean" ? selectedBlock.autoRotate : true;
|
|
6975
|
-
return /* @__PURE__ */ (0,
|
|
6976
|
-
/* @__PURE__ */ (0,
|
|
7063
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
|
|
7064
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("label", { style: sidebarLabelStyle, children: [
|
|
6977
7065
|
"Visible At Once",
|
|
6978
|
-
/* @__PURE__ */ (0,
|
|
7066
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
6979
7067
|
"input",
|
|
6980
7068
|
{
|
|
6981
7069
|
max: 6,
|
|
@@ -6987,8 +7075,8 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
6987
7075
|
}
|
|
6988
7076
|
)
|
|
6989
7077
|
] }),
|
|
6990
|
-
/* @__PURE__ */ (0,
|
|
6991
|
-
/* @__PURE__ */ (0,
|
|
7078
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("label", { style: { ...sidebarLabelStyle, alignItems: "center", gridTemplateColumns: "auto 1fr" }, children: [
|
|
7079
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
6992
7080
|
"input",
|
|
6993
7081
|
{
|
|
6994
7082
|
checked: autoRotateValue,
|
|
@@ -6998,9 +7086,9 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
6998
7086
|
),
|
|
6999
7087
|
"Auto Rotate"
|
|
7000
7088
|
] }),
|
|
7001
|
-
autoRotateValue ? /* @__PURE__ */ (0,
|
|
7089
|
+
autoRotateValue ? /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("label", { style: sidebarLabelStyle, children: [
|
|
7002
7090
|
"Rotate Interval (seconds)",
|
|
7003
|
-
/* @__PURE__ */ (0,
|
|
7091
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
7004
7092
|
"input",
|
|
7005
7093
|
{
|
|
7006
7094
|
max: 30,
|
|
@@ -7014,7 +7102,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
7014
7102
|
] }) : null
|
|
7015
7103
|
] });
|
|
7016
7104
|
})() }) : null,
|
|
7017
|
-
isArrayItemBlockSelected ? /* @__PURE__ */ (0,
|
|
7105
|
+
isArrayItemBlockSelected ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
7018
7106
|
ArrayItemsEditor,
|
|
7019
7107
|
{
|
|
7020
7108
|
blockType: selectedType,
|
|
@@ -7038,9 +7126,9 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
7038
7126
|
}
|
|
7039
7127
|
) : null
|
|
7040
7128
|
] }),
|
|
7041
|
-
/* @__PURE__ */ (0,
|
|
7129
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("label", { style: sidebarLabelStyle, children: [
|
|
7042
7130
|
"Upload Alt Text",
|
|
7043
|
-
/* @__PURE__ */ (0,
|
|
7131
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
7044
7132
|
"input",
|
|
7045
7133
|
{
|
|
7046
7134
|
onChange: (event) => setUploadAltText(event.target.value),
|
|
@@ -7051,14 +7139,14 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
7051
7139
|
}
|
|
7052
7140
|
)
|
|
7053
7141
|
] }),
|
|
7054
|
-
/* @__PURE__ */ (0,
|
|
7055
|
-
uploadingTarget ? /* @__PURE__ */ (0,
|
|
7056
|
-
uploadMessage ? /* @__PURE__ */ (0,
|
|
7057
|
-
uploadError ? /* @__PURE__ */ (0,
|
|
7058
|
-
] }) : /* @__PURE__ */ (0,
|
|
7142
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { style: { color: "var(--ink-700)", fontSize: 11 }, children: "Click section text directly on the page for copy edits. Use this panel for layout and style options." }),
|
|
7143
|
+
uploadingTarget ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { style: { color: "var(--ink-700)", fontSize: 11 }, children: "Uploading image..." }) : null,
|
|
7144
|
+
uploadMessage ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { style: { color: "#0f7d52", fontSize: 11, fontWeight: 700 }, children: uploadMessage }) : null,
|
|
7145
|
+
uploadError ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { style: { color: "#8d1d1d", fontSize: 11, fontWeight: 700 }, children: uploadError }) : null
|
|
7146
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { style: { color: "var(--ink-700)", fontSize: 12, margin: 0 }, children: "Click a section on the page preview to edit its options here." }) })
|
|
7059
7147
|
] }) : null
|
|
7060
7148
|
] })
|
|
7061
|
-
] }) : /* @__PURE__ */ (0,
|
|
7149
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
7062
7150
|
"div",
|
|
7063
7151
|
{
|
|
7064
7152
|
style: {
|