@charisol/plexo-sdk 1.1.8 → 1.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{compiler-Dv-nnW6a.js → compiler-Bxo7wIKY.js} +4 -1
- package/dist/compiler.js +1 -1
- package/dist/compilerClient.js +1 -1
- package/dist/components/properties/accordionSections/BlogCommentsPropertiesAccordion.d.ts +14 -0
- package/dist/components/properties/accordionSections/BlogPostListPropertiesAccordion.d.ts +11 -0
- package/dist/components/properties/accordionSections/BlogTextPropertiesAccordion.d.ts +11 -0
- package/dist/index.js +715 -163
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as e, b as t, c as n, d as r, f as i, g as a, h as o, i as s, l as c, m as l, o as u, p as d, r as f, s as p, u as m, v as h, x as g, y as _ } from "./iconSvgStatic-D5PrYZfC.js";
|
|
2
|
-
import { _ as v, a as y, b, c as x, d as S, f as C, g as w, h as T, i as E, m as ee, n as te, o as ne, p as re, r as ie, u as ae, x as oe, y as se } from "./compiler-
|
|
2
|
+
import { _ as v, a as y, b, c as x, d as S, f as C, g as w, h as T, i as E, m as ee, n as te, o as ne, p as re, r as ie, u as ae, x as oe, y as se } from "./compiler-Bxo7wIKY.js";
|
|
3
3
|
import { parseJsonToTargetFormat as ce } from "./compilerClient.js";
|
|
4
4
|
import D, { createContext as le, createElement as ue, forwardRef as de, useCallback as fe, useContext as pe, useEffect as O, useImperativeHandle as me, useMemo as he, useRef as k, useState as A } from "react";
|
|
5
5
|
import { DndContext as ge, DragOverlay as j, PointerSensor as _e, TouchSensor as M, pointerWithin as ve, rectIntersection as ye, useDraggable as be, useDroppable as xe, useSensor as Se, useSensors as Ce } from "@dnd-kit/core";
|
|
@@ -53314,7 +53314,448 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
53314
53314
|
})
|
|
53315
53315
|
})
|
|
53316
53316
|
] });
|
|
53317
|
-
}, eW =
|
|
53317
|
+
}, eW = [
|
|
53318
|
+
"blog_title",
|
|
53319
|
+
"blog_content",
|
|
53320
|
+
"blog_date",
|
|
53321
|
+
"blog_author",
|
|
53322
|
+
"blog_categories"
|
|
53323
|
+
], tW = {
|
|
53324
|
+
blog_date: "e.g. \"Published on \"",
|
|
53325
|
+
blog_author: "e.g. \"By \"",
|
|
53326
|
+
blog_categories: "e.g. \"Filed under: \""
|
|
53327
|
+
}, nW = {
|
|
53328
|
+
blog_title: {
|
|
53329
|
+
fontSize: "32px",
|
|
53330
|
+
fontWeight: "800",
|
|
53331
|
+
color: "#1e293b"
|
|
53332
|
+
},
|
|
53333
|
+
blog_content: {
|
|
53334
|
+
fontSize: "16px",
|
|
53335
|
+
fontWeight: "400",
|
|
53336
|
+
color: "#334155"
|
|
53337
|
+
},
|
|
53338
|
+
blog_date: {
|
|
53339
|
+
fontSize: "14px",
|
|
53340
|
+
fontWeight: "400",
|
|
53341
|
+
color: "#64748b"
|
|
53342
|
+
},
|
|
53343
|
+
blog_author: {
|
|
53344
|
+
fontSize: "14px",
|
|
53345
|
+
fontWeight: "600",
|
|
53346
|
+
color: "#334155"
|
|
53347
|
+
},
|
|
53348
|
+
blog_categories: {
|
|
53349
|
+
fontSize: "13px",
|
|
53350
|
+
fontWeight: "600",
|
|
53351
|
+
color: "#4f46e5"
|
|
53352
|
+
}
|
|
53353
|
+
}, rW = { blog_categories: {
|
|
53354
|
+
color: "--plexo-categories-color",
|
|
53355
|
+
fontSize: "--plexo-categories-font-size",
|
|
53356
|
+
fontWeight: "--plexo-categories-font-weight"
|
|
53357
|
+
} }, iW = (e) => {
|
|
53358
|
+
let { selectedElement: t, currentAttrs: n, currentStyles: r, openAccordions: i, toggleAccordion: a, onTransientAttrChange: o, onTransientStyleChange: s, AccordionSection: c, InlineTextInput: l, InlineSelect: u, InlineColorPicker: d, InlineAlignment: f, InlineCounter: p } = e;
|
|
53359
|
+
if (!t || !eW.includes(t.type)) return null;
|
|
53360
|
+
let m = nW[t.type], h = tW[t.type], g = rW[t.type] || {}, _ = (e) => g[e] || e, y = v.reduce((e, t) => (e[t.style] || (e[t.style] = []), e[t.style].push(t), e), {}), b = [
|
|
53361
|
+
{
|
|
53362
|
+
label: "── System ──",
|
|
53363
|
+
value: "__sep__",
|
|
53364
|
+
disabled: !0
|
|
53365
|
+
},
|
|
53366
|
+
{
|
|
53367
|
+
label: "System Sans",
|
|
53368
|
+
value: "sans-serif"
|
|
53369
|
+
},
|
|
53370
|
+
{
|
|
53371
|
+
label: "System Serif",
|
|
53372
|
+
value: "serif"
|
|
53373
|
+
},
|
|
53374
|
+
{
|
|
53375
|
+
label: "System Mono",
|
|
53376
|
+
value: "monospace"
|
|
53377
|
+
},
|
|
53378
|
+
{
|
|
53379
|
+
label: "── Sans-serif ──",
|
|
53380
|
+
value: "__sep_sans__",
|
|
53381
|
+
disabled: !0
|
|
53382
|
+
},
|
|
53383
|
+
...(y.sans || []).map((e) => ({
|
|
53384
|
+
label: e.label,
|
|
53385
|
+
value: e.value
|
|
53386
|
+
})),
|
|
53387
|
+
{
|
|
53388
|
+
label: "── Serif ──",
|
|
53389
|
+
value: "__sep_serif__",
|
|
53390
|
+
disabled: !0
|
|
53391
|
+
},
|
|
53392
|
+
...(y.serif || []).map((e) => ({
|
|
53393
|
+
label: e.label,
|
|
53394
|
+
value: e.value
|
|
53395
|
+
})),
|
|
53396
|
+
{
|
|
53397
|
+
label: "── Display ──",
|
|
53398
|
+
value: "__sep_display__",
|
|
53399
|
+
disabled: !0
|
|
53400
|
+
},
|
|
53401
|
+
...(y.display || []).map((e) => ({
|
|
53402
|
+
label: e.label,
|
|
53403
|
+
value: e.value
|
|
53404
|
+
})),
|
|
53405
|
+
{
|
|
53406
|
+
label: "── Handwriting ──",
|
|
53407
|
+
value: "__sep_hw__",
|
|
53408
|
+
disabled: !0
|
|
53409
|
+
},
|
|
53410
|
+
...(y.handwriting || []).map((e) => ({
|
|
53411
|
+
label: e.label,
|
|
53412
|
+
value: e.value
|
|
53413
|
+
})),
|
|
53414
|
+
{
|
|
53415
|
+
label: "── Monospace ──",
|
|
53416
|
+
value: "__sep_mono__",
|
|
53417
|
+
disabled: !0
|
|
53418
|
+
},
|
|
53419
|
+
...(y.mono || []).map((e) => ({
|
|
53420
|
+
label: e.label,
|
|
53421
|
+
value: e.value
|
|
53422
|
+
}))
|
|
53423
|
+
];
|
|
53424
|
+
return /* @__PURE__ */ F(N, { children: [h && /* @__PURE__ */ P(c, {
|
|
53425
|
+
title: "Text",
|
|
53426
|
+
isOpen: i.text,
|
|
53427
|
+
onToggle: () => a("text"),
|
|
53428
|
+
children: /* @__PURE__ */ P(l, {
|
|
53429
|
+
label: "Prefix",
|
|
53430
|
+
placeholder: h,
|
|
53431
|
+
value: n.prefix || "",
|
|
53432
|
+
onChange: (e) => o("prefix", e)
|
|
53433
|
+
})
|
|
53434
|
+
}), /* @__PURE__ */ P(c, {
|
|
53435
|
+
title: "Typography",
|
|
53436
|
+
isOpen: i.typography,
|
|
53437
|
+
onToggle: () => a("typography"),
|
|
53438
|
+
children: /* @__PURE__ */ F("div", {
|
|
53439
|
+
className: "flex flex-col gap-1",
|
|
53440
|
+
children: [
|
|
53441
|
+
/* @__PURE__ */ P(u, {
|
|
53442
|
+
label: "Font Family",
|
|
53443
|
+
value: r.fontFamily || "'Plus Jakarta Sans', sans-serif",
|
|
53444
|
+
options: b,
|
|
53445
|
+
onChange: (e) => {
|
|
53446
|
+
e.startsWith("__sep") || s("fontFamily", e);
|
|
53447
|
+
}
|
|
53448
|
+
}),
|
|
53449
|
+
/* @__PURE__ */ P(u, {
|
|
53450
|
+
label: "Font Weight",
|
|
53451
|
+
value: r[_("fontWeight")] || m.fontWeight,
|
|
53452
|
+
options: [
|
|
53453
|
+
{
|
|
53454
|
+
label: "Thin",
|
|
53455
|
+
value: "100"
|
|
53456
|
+
},
|
|
53457
|
+
{
|
|
53458
|
+
label: "Extra Light",
|
|
53459
|
+
value: "200"
|
|
53460
|
+
},
|
|
53461
|
+
{
|
|
53462
|
+
label: "Light",
|
|
53463
|
+
value: "300"
|
|
53464
|
+
},
|
|
53465
|
+
{
|
|
53466
|
+
label: "Regular",
|
|
53467
|
+
value: "400"
|
|
53468
|
+
},
|
|
53469
|
+
{
|
|
53470
|
+
label: "Medium",
|
|
53471
|
+
value: "500"
|
|
53472
|
+
},
|
|
53473
|
+
{
|
|
53474
|
+
label: "Semi-Bold",
|
|
53475
|
+
value: "600"
|
|
53476
|
+
},
|
|
53477
|
+
{
|
|
53478
|
+
label: "Bold",
|
|
53479
|
+
value: "700"
|
|
53480
|
+
},
|
|
53481
|
+
{
|
|
53482
|
+
label: "Extra-Bold",
|
|
53483
|
+
value: "800"
|
|
53484
|
+
},
|
|
53485
|
+
{
|
|
53486
|
+
label: "Black",
|
|
53487
|
+
value: "900"
|
|
53488
|
+
}
|
|
53489
|
+
],
|
|
53490
|
+
onChange: (e) => s(_("fontWeight"), e)
|
|
53491
|
+
}),
|
|
53492
|
+
/* @__PURE__ */ P(p, {
|
|
53493
|
+
label: "Font Size",
|
|
53494
|
+
value: r[_("fontSize")] || m.fontSize,
|
|
53495
|
+
units: [
|
|
53496
|
+
"px",
|
|
53497
|
+
"em",
|
|
53498
|
+
"rem",
|
|
53499
|
+
"vw"
|
|
53500
|
+
],
|
|
53501
|
+
min: 8,
|
|
53502
|
+
max: 120,
|
|
53503
|
+
onChange: (e) => s(_("fontSize"), e)
|
|
53504
|
+
}),
|
|
53505
|
+
/* @__PURE__ */ P(d, {
|
|
53506
|
+
label: "Color",
|
|
53507
|
+
value: r[_("color")] || m.color,
|
|
53508
|
+
onChange: (e) => s(_("color"), e)
|
|
53509
|
+
}),
|
|
53510
|
+
/* @__PURE__ */ P(f, {
|
|
53511
|
+
label: "Text Align",
|
|
53512
|
+
value: r.textAlign || "left",
|
|
53513
|
+
onChange: (e) => s("textAlign", e)
|
|
53514
|
+
}),
|
|
53515
|
+
/* @__PURE__ */ P(p, {
|
|
53516
|
+
label: "Line Height",
|
|
53517
|
+
value: r.lineHeight || "150%",
|
|
53518
|
+
units: [
|
|
53519
|
+
"%",
|
|
53520
|
+
"em",
|
|
53521
|
+
"px"
|
|
53522
|
+
],
|
|
53523
|
+
min: 80,
|
|
53524
|
+
max: 300,
|
|
53525
|
+
step: 5,
|
|
53526
|
+
onChange: (e) => s("lineHeight", e)
|
|
53527
|
+
}),
|
|
53528
|
+
/* @__PURE__ */ P(p, {
|
|
53529
|
+
label: "Letter Spacing",
|
|
53530
|
+
value: r.letterSpacing || "0px",
|
|
53531
|
+
units: [
|
|
53532
|
+
"px",
|
|
53533
|
+
"em",
|
|
53534
|
+
"rem"
|
|
53535
|
+
],
|
|
53536
|
+
min: -5,
|
|
53537
|
+
max: 20,
|
|
53538
|
+
onChange: (e) => s("letterSpacing", e)
|
|
53539
|
+
})
|
|
53540
|
+
]
|
|
53541
|
+
})
|
|
53542
|
+
})] });
|
|
53543
|
+
}, aW = (e) => {
|
|
53544
|
+
let { selectedElement: t, currentStyles: n, openAccordions: r, toggleAccordion: i, onTransientStyleChange: a, AccordionSection: o, InlineColorPicker: s, InlineCounter: c, InlineSelect: l } = e;
|
|
53545
|
+
if (!t || t.type !== "blog_comments") return null;
|
|
53546
|
+
let u = v.reduce((e, t) => (e[t.style] || (e[t.style] = []), e[t.style].push(t), e), {}), d = [
|
|
53547
|
+
{
|
|
53548
|
+
label: "── System ──",
|
|
53549
|
+
value: "__sep__",
|
|
53550
|
+
disabled: !0
|
|
53551
|
+
},
|
|
53552
|
+
{
|
|
53553
|
+
label: "System Sans",
|
|
53554
|
+
value: "sans-serif"
|
|
53555
|
+
},
|
|
53556
|
+
{
|
|
53557
|
+
label: "System Serif",
|
|
53558
|
+
value: "serif"
|
|
53559
|
+
},
|
|
53560
|
+
{
|
|
53561
|
+
label: "System Mono",
|
|
53562
|
+
value: "monospace"
|
|
53563
|
+
},
|
|
53564
|
+
{
|
|
53565
|
+
label: "── Sans-serif ──",
|
|
53566
|
+
value: "__sep_sans__",
|
|
53567
|
+
disabled: !0
|
|
53568
|
+
},
|
|
53569
|
+
...(u.sans || []).map((e) => ({
|
|
53570
|
+
label: e.label,
|
|
53571
|
+
value: e.value
|
|
53572
|
+
})),
|
|
53573
|
+
{
|
|
53574
|
+
label: "── Serif ──",
|
|
53575
|
+
value: "__sep_serif__",
|
|
53576
|
+
disabled: !0
|
|
53577
|
+
},
|
|
53578
|
+
...(u.serif || []).map((e) => ({
|
|
53579
|
+
label: e.label,
|
|
53580
|
+
value: e.value
|
|
53581
|
+
})),
|
|
53582
|
+
{
|
|
53583
|
+
label: "── Display ──",
|
|
53584
|
+
value: "__sep_display__",
|
|
53585
|
+
disabled: !0
|
|
53586
|
+
},
|
|
53587
|
+
...(u.display || []).map((e) => ({
|
|
53588
|
+
label: e.label,
|
|
53589
|
+
value: e.value
|
|
53590
|
+
})),
|
|
53591
|
+
{
|
|
53592
|
+
label: "── Handwriting ──",
|
|
53593
|
+
value: "__sep_hw__",
|
|
53594
|
+
disabled: !0
|
|
53595
|
+
},
|
|
53596
|
+
...(u.handwriting || []).map((e) => ({
|
|
53597
|
+
label: e.label,
|
|
53598
|
+
value: e.value
|
|
53599
|
+
})),
|
|
53600
|
+
{
|
|
53601
|
+
label: "── Monospace ──",
|
|
53602
|
+
value: "__sep_mono__",
|
|
53603
|
+
disabled: !0
|
|
53604
|
+
},
|
|
53605
|
+
...(u.mono || []).map((e) => ({
|
|
53606
|
+
label: e.label,
|
|
53607
|
+
value: e.value
|
|
53608
|
+
}))
|
|
53609
|
+
];
|
|
53610
|
+
return /* @__PURE__ */ P(o, {
|
|
53611
|
+
title: "Comment Box Styles",
|
|
53612
|
+
isOpen: r.typography,
|
|
53613
|
+
onToggle: () => i("typography"),
|
|
53614
|
+
children: /* @__PURE__ */ F("div", {
|
|
53615
|
+
className: "flex flex-col gap-1",
|
|
53616
|
+
children: [
|
|
53617
|
+
/* @__PURE__ */ P(l, {
|
|
53618
|
+
label: "Font Family",
|
|
53619
|
+
value: n["--plexo-comment-font-family"] || "__sep__",
|
|
53620
|
+
options: d,
|
|
53621
|
+
onChange: (e) => {
|
|
53622
|
+
e.startsWith("__sep") || a("--plexo-comment-font-family", e);
|
|
53623
|
+
}
|
|
53624
|
+
}),
|
|
53625
|
+
/* @__PURE__ */ P(s, {
|
|
53626
|
+
label: "Comment Text",
|
|
53627
|
+
value: n["--plexo-comment-text"] || "#1f2430",
|
|
53628
|
+
onChange: (e) => a("--plexo-comment-text", e)
|
|
53629
|
+
}),
|
|
53630
|
+
/* @__PURE__ */ P(c, {
|
|
53631
|
+
label: "Comment Font Size",
|
|
53632
|
+
value: n["--plexo-comment-font-size"] || "0.92rem",
|
|
53633
|
+
units: [
|
|
53634
|
+
"px",
|
|
53635
|
+
"em",
|
|
53636
|
+
"rem"
|
|
53637
|
+
],
|
|
53638
|
+
min: 8,
|
|
53639
|
+
max: 32,
|
|
53640
|
+
onChange: (e) => a("--plexo-comment-font-size", e)
|
|
53641
|
+
}),
|
|
53642
|
+
/* @__PURE__ */ P(s, {
|
|
53643
|
+
label: "Meta Text (date, author)",
|
|
53644
|
+
value: n["--plexo-comment-meta"] || "#6b7280",
|
|
53645
|
+
onChange: (e) => a("--plexo-comment-meta", e)
|
|
53646
|
+
}),
|
|
53647
|
+
/* @__PURE__ */ P(s, {
|
|
53648
|
+
label: "Input Background",
|
|
53649
|
+
value: n["--plexo-comment-input-bg"] || "#ffffff",
|
|
53650
|
+
onChange: (e) => a("--plexo-comment-input-bg", e)
|
|
53651
|
+
}),
|
|
53652
|
+
/* @__PURE__ */ P(s, {
|
|
53653
|
+
label: "Input Border",
|
|
53654
|
+
value: n["--plexo-comment-input-border"] || "#e5e7eb",
|
|
53655
|
+
onChange: (e) => a("--plexo-comment-input-border", e)
|
|
53656
|
+
}),
|
|
53657
|
+
/* @__PURE__ */ P(s, {
|
|
53658
|
+
label: "Input Text",
|
|
53659
|
+
value: n["--plexo-comment-input-text"] || "#1f2430",
|
|
53660
|
+
onChange: (e) => a("--plexo-comment-input-text", e)
|
|
53661
|
+
}),
|
|
53662
|
+
/* @__PURE__ */ P(s, {
|
|
53663
|
+
label: "Button Background",
|
|
53664
|
+
value: n["--plexo-comment-button-bg"] || "#6d28d9",
|
|
53665
|
+
onChange: (e) => a("--plexo-comment-button-bg", e)
|
|
53666
|
+
}),
|
|
53667
|
+
/* @__PURE__ */ P(s, {
|
|
53668
|
+
label: "Button Text",
|
|
53669
|
+
value: n["--plexo-comment-button-text"] || "#ffffff",
|
|
53670
|
+
onChange: (e) => a("--plexo-comment-button-text", e)
|
|
53671
|
+
})
|
|
53672
|
+
]
|
|
53673
|
+
})
|
|
53674
|
+
});
|
|
53675
|
+
}, oW = (e) => {
|
|
53676
|
+
let { selectedElement: t, currentStyles: n, openAccordions: r, toggleAccordion: i, onTransientStyleChange: a, AccordionSection: o, InlineColorPicker: s, InlineCounter: c, InlineSelect: l } = e;
|
|
53677
|
+
return !t || t.type !== "blog_post_list" ? null : /* @__PURE__ */ P(o, {
|
|
53678
|
+
title: "Post Card Styles",
|
|
53679
|
+
isOpen: r.typography,
|
|
53680
|
+
onToggle: () => i("typography"),
|
|
53681
|
+
children: /* @__PURE__ */ F("div", {
|
|
53682
|
+
className: "flex flex-col gap-1",
|
|
53683
|
+
children: [
|
|
53684
|
+
/* @__PURE__ */ P(s, {
|
|
53685
|
+
label: "Title Color",
|
|
53686
|
+
value: n["--plexo-postlist-title-color"] || "#17181c",
|
|
53687
|
+
onChange: (e) => a("--plexo-postlist-title-color", e)
|
|
53688
|
+
}),
|
|
53689
|
+
/* @__PURE__ */ P(c, {
|
|
53690
|
+
label: "Title Font Size",
|
|
53691
|
+
value: n["--plexo-postlist-title-font-size"] || "1.5rem",
|
|
53692
|
+
units: [
|
|
53693
|
+
"px",
|
|
53694
|
+
"em",
|
|
53695
|
+
"rem"
|
|
53696
|
+
],
|
|
53697
|
+
min: 10,
|
|
53698
|
+
max: 64,
|
|
53699
|
+
onChange: (e) => a("--plexo-postlist-title-font-size", e)
|
|
53700
|
+
}),
|
|
53701
|
+
/* @__PURE__ */ P(l, {
|
|
53702
|
+
label: "Title Font Weight",
|
|
53703
|
+
value: n["--plexo-postlist-title-font-weight"] || "700",
|
|
53704
|
+
options: [
|
|
53705
|
+
{
|
|
53706
|
+
label: "Regular",
|
|
53707
|
+
value: "400"
|
|
53708
|
+
},
|
|
53709
|
+
{
|
|
53710
|
+
label: "Medium",
|
|
53711
|
+
value: "500"
|
|
53712
|
+
},
|
|
53713
|
+
{
|
|
53714
|
+
label: "Semi-Bold",
|
|
53715
|
+
value: "600"
|
|
53716
|
+
},
|
|
53717
|
+
{
|
|
53718
|
+
label: "Bold",
|
|
53719
|
+
value: "700"
|
|
53720
|
+
},
|
|
53721
|
+
{
|
|
53722
|
+
label: "Extra-Bold",
|
|
53723
|
+
value: "800"
|
|
53724
|
+
}
|
|
53725
|
+
],
|
|
53726
|
+
onChange: (e) => a("--plexo-postlist-title-font-weight", e)
|
|
53727
|
+
}),
|
|
53728
|
+
/* @__PURE__ */ P(s, {
|
|
53729
|
+
label: "Excerpt Color",
|
|
53730
|
+
value: n["--plexo-postlist-excerpt-color"] || "#4b5563",
|
|
53731
|
+
onChange: (e) => a("--plexo-postlist-excerpt-color", e)
|
|
53732
|
+
}),
|
|
53733
|
+
/* @__PURE__ */ P(c, {
|
|
53734
|
+
label: "Excerpt Font Size",
|
|
53735
|
+
value: n["--plexo-postlist-excerpt-font-size"] || "1rem",
|
|
53736
|
+
units: [
|
|
53737
|
+
"px",
|
|
53738
|
+
"em",
|
|
53739
|
+
"rem"
|
|
53740
|
+
],
|
|
53741
|
+
min: 8,
|
|
53742
|
+
max: 32,
|
|
53743
|
+
onChange: (e) => a("--plexo-postlist-excerpt-font-size", e)
|
|
53744
|
+
}),
|
|
53745
|
+
/* @__PURE__ */ P(s, {
|
|
53746
|
+
label: "Meta Text Color (date, author)",
|
|
53747
|
+
value: n["--plexo-postlist-meta-color"] || "#6b7280",
|
|
53748
|
+
onChange: (e) => a("--plexo-postlist-meta-color", e)
|
|
53749
|
+
}),
|
|
53750
|
+
/* @__PURE__ */ P(s, {
|
|
53751
|
+
label: "Card Background",
|
|
53752
|
+
value: n["--plexo-postlist-card-bg"] || "transparent",
|
|
53753
|
+
onChange: (e) => a("--plexo-postlist-card-bg", e)
|
|
53754
|
+
})
|
|
53755
|
+
]
|
|
53756
|
+
})
|
|
53757
|
+
});
|
|
53758
|
+
}, sW = (e) => /* @__PURE__ */ F(N, { children: [
|
|
53318
53759
|
/* @__PURE__ */ P(kU, { ...e }),
|
|
53319
53760
|
/* @__PURE__ */ P(jU, { ...e }),
|
|
53320
53761
|
/* @__PURE__ */ P(NU, { ...e }),
|
|
@@ -53331,10 +53772,13 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
53331
53772
|
/* @__PURE__ */ P(KU, { ...e }),
|
|
53332
53773
|
/* @__PURE__ */ P(qU, { ...e }),
|
|
53333
53774
|
/* @__PURE__ */ P($U, { ...e }),
|
|
53775
|
+
/* @__PURE__ */ P(iW, { ...e }),
|
|
53776
|
+
/* @__PURE__ */ P(aW, { ...e }),
|
|
53777
|
+
/* @__PURE__ */ P(oW, { ...e }),
|
|
53334
53778
|
/* @__PURE__ */ P(JU, { ...e }),
|
|
53335
53779
|
/* @__PURE__ */ P(YU, { ...e }),
|
|
53336
53780
|
/* @__PURE__ */ P(XU, { ...e })
|
|
53337
|
-
] }),
|
|
53781
|
+
] }), cW = ({ message: e, onClose: t }) => /* @__PURE__ */ P("div", {
|
|
53338
53782
|
className: "plexo-alert-top fixed left-1/2 top-4 z-[1400] w-full max-w-[460px] -translate-x-1/2 px-4 pointer-events-none",
|
|
53339
53783
|
children: /* @__PURE__ */ P("div", {
|
|
53340
53784
|
className: "plexo-alert-top-card rounded-xl border shadow-2xl w-full px-4 py-3 pointer-events-auto",
|
|
@@ -53355,7 +53799,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
53355
53799
|
})]
|
|
53356
53800
|
})
|
|
53357
53801
|
})
|
|
53358
|
-
}),
|
|
53802
|
+
}), lW = ({ widths: e, percentages: t }) => /* @__PURE__ */ P("div", {
|
|
53359
53803
|
className: "w-full h-full flex items-stretch gap-1 overflow-hidden",
|
|
53360
53804
|
children: e.map((e, n) => /* @__PURE__ */ P("div", {
|
|
53361
53805
|
style: {
|
|
@@ -53371,7 +53815,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
53371
53815
|
children: t[n]
|
|
53372
53816
|
})
|
|
53373
53817
|
}, `${e}-${n}`))
|
|
53374
|
-
}),
|
|
53818
|
+
}), uW = ({ children: e, rowIds: t, disabled: n }) => {
|
|
53375
53819
|
let { setNodeRef: r, isOver: i } = xe({
|
|
53376
53820
|
id: "canvas-root",
|
|
53377
53821
|
data: { type: "canvas" },
|
|
@@ -53389,10 +53833,10 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
53389
53833
|
})
|
|
53390
53834
|
})
|
|
53391
53835
|
});
|
|
53392
|
-
},
|
|
53836
|
+
}, dW = (e, t) => {
|
|
53393
53837
|
let n = t === "tablet" ? "tablet" : t === "mobile" ? "mobile" : null, r = n === "tablet" ? e.styleTablet : n === "mobile" ? e.styleMobile : void 0;
|
|
53394
53838
|
return S(e.style, r, n);
|
|
53395
|
-
},
|
|
53839
|
+
}, fW = ({ row: e, selectedRowId: t, selectRow: n, previewMode: r, children: i, deviceView: a, selectedElementId: o }) => {
|
|
53396
53840
|
let { attributes: s, listeners: c, setNodeRef: l, transform: u, transition: d, isDragging: f, isOver: p } = L({
|
|
53397
53841
|
id: e.id,
|
|
53398
53842
|
data: {
|
|
@@ -53400,11 +53844,11 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
53400
53844
|
id: e.id
|
|
53401
53845
|
},
|
|
53402
53846
|
disabled: r
|
|
53403
|
-
}), m = pe(Me), h = p && m.overId === e.id && m.edge === "bottom", g = {
|
|
53847
|
+
}), m = pe(Me), h = p && m.overId === e.id && m.edge === "bottom", { alignItems: g, ..._ } = dW(e, a), v = {
|
|
53404
53848
|
transform: Ee.Transform.toString(u),
|
|
53405
53849
|
transition: d,
|
|
53406
|
-
...
|
|
53407
|
-
},
|
|
53850
|
+
..._
|
|
53851
|
+
}, y = t === e.id, b = o && e.columns.some((e) => e.elements.some((e) => e.id === o) || (e.nestedRows || []).some((e) => e.id === o || e.columns.some((e) => e.elements.some((e) => e.id === o))));
|
|
53408
53852
|
return /* @__PURE__ */ F("div", {
|
|
53409
53853
|
ref: l,
|
|
53410
53854
|
id: e.id,
|
|
@@ -53412,8 +53856,8 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
53412
53856
|
onClick: (t) => {
|
|
53413
53857
|
r || (t.stopPropagation(), n(e.id));
|
|
53414
53858
|
},
|
|
53415
|
-
className: `group relative transition duration-155 ${r ? "cursor-default" : "cursor-pointer"} ${!r && f ? "opacity-35 border-dashed border border-indigo-500 bg-indigo-500/5" : ""} ${!r && p ? h ? "border-b border-indigo-500" : "border-t border-indigo-500" : ""} ${!r &&
|
|
53416
|
-
style:
|
|
53859
|
+
className: `group relative transition duration-155 ${r ? "cursor-default" : "cursor-pointer"} ${!r && f ? "opacity-35 border-dashed border border-indigo-500 bg-indigo-500/5" : ""} ${!r && p ? h ? "border-b border-indigo-500" : "border-t border-indigo-500" : ""} ${!r && y ? "outline outline-1 outline-indigo-500 bg-indigo-500/[0.01]" : r ? "" : "hover:outline hover:outline-1 hover:outline-slate-200"} ${!r && (y || b) ? "z-[30] relative" : ""}`,
|
|
53860
|
+
style: v,
|
|
53417
53861
|
children: [
|
|
53418
53862
|
!r && /* @__PURE__ */ P("div", {
|
|
53419
53863
|
...c,
|
|
@@ -53421,17 +53865,18 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
53421
53865
|
className: "plexo-drag-handle absolute -left-3 top-1/2 -translate-y-1/2 opacity-0 group-hover:opacity-100 max-xl:opacity-70 bg-[#0c1221] hover:bg-slate-900 text-slate-250 p-1 max-xl:p-2 rounded-md cursor-grab border border-slate-700 z-20 transition shadow-sm",
|
|
53422
53866
|
children: "⠿"
|
|
53423
53867
|
}),
|
|
53424
|
-
!r &&
|
|
53868
|
+
!r && y && /* @__PURE__ */ P("span", {
|
|
53425
53869
|
className: "absolute -top-3 left-2 bg-[#0c1221] border border-slate-700 text-slate-200 font-mono text-[8px] px-2 py-0.5 rounded-md font-bold z-30 pointer-events-none shadow-sm",
|
|
53426
53870
|
children: "Row"
|
|
53427
53871
|
}),
|
|
53428
53872
|
/* @__PURE__ */ P("div", {
|
|
53429
53873
|
className: "plexo-editor-row-cols flex w-full gap-2 md:gap-0",
|
|
53874
|
+
style: { alignItems: g || "stretch" },
|
|
53430
53875
|
children: i
|
|
53431
53876
|
})
|
|
53432
53877
|
]
|
|
53433
53878
|
});
|
|
53434
|
-
},
|
|
53879
|
+
}, pW = ({ row: e, parentRowId: t, parentColId: n, selectedRowId: r, selectRow: i, previewMode: a, children: o, deviceView: s, selectedElementId: c }) => {
|
|
53435
53880
|
let { attributes: l, listeners: u, setNodeRef: d, transform: f, transition: p, isDragging: m, isOver: h } = L({
|
|
53436
53881
|
id: e.id,
|
|
53437
53882
|
data: {
|
|
@@ -53441,11 +53886,11 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
53441
53886
|
parentColId: n
|
|
53442
53887
|
},
|
|
53443
53888
|
disabled: a
|
|
53444
|
-
}), g = pe(Me), _ = h && g.overId === e.id && g.edge === "bottom", v = {
|
|
53889
|
+
}), g = pe(Me), _ = h && g.overId === e.id && g.edge === "bottom", { alignItems: v, ...y } = dW(e, s), b = {
|
|
53445
53890
|
transform: Ee.Transform.toString(f),
|
|
53446
53891
|
transition: p,
|
|
53447
|
-
...
|
|
53448
|
-
},
|
|
53892
|
+
...y
|
|
53893
|
+
}, x = r === e.id, S = c && e.columns.some((e) => e.elements.some((e) => e.id === c) || (e.nestedRows || []).some((e) => e.id === c || e.columns.some((e) => e.elements.some((e) => e.id === c))));
|
|
53449
53894
|
return /* @__PURE__ */ F("div", {
|
|
53450
53895
|
ref: d,
|
|
53451
53896
|
id: e.id,
|
|
@@ -53453,8 +53898,8 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
53453
53898
|
onClick: (t) => {
|
|
53454
53899
|
a || (t.stopPropagation(), i(e.id));
|
|
53455
53900
|
},
|
|
53456
|
-
className: `group relative transition duration-150 mt-2 ${a ? "cursor-default" : "cursor-pointer"} ${!a && m ? "opacity-35 border-dashed border border-indigo-500 bg-indigo-500/5" : ""} ${!a && h ? _ ? "border-b border-indigo-500" : "border-t border-indigo-500" : ""} ${!a &&
|
|
53457
|
-
style:
|
|
53901
|
+
className: `group relative transition duration-150 mt-2 ${a ? "cursor-default" : "cursor-pointer"} ${!a && m ? "opacity-35 border-dashed border border-indigo-500 bg-indigo-500/5" : ""} ${!a && h ? _ ? "border-b border-indigo-500" : "border-t border-indigo-500" : ""} ${!a && x ? "outline outline-1 outline-indigo-500 bg-indigo-500/[0.01]" : a ? "" : "hover:outline hover:outline-1 hover:outline-slate-200"} ${!a && (x || S) ? "z-[30] relative" : ""}`,
|
|
53902
|
+
style: b,
|
|
53458
53903
|
children: [
|
|
53459
53904
|
!a && /* @__PURE__ */ P("div", {
|
|
53460
53905
|
...u,
|
|
@@ -53462,21 +53907,22 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
53462
53907
|
className: "plexo-drag-handle absolute -left-3 top-1/2 -translate-y-1/2 opacity-0 group-hover:opacity-100 max-xl:opacity-70 bg-[#0c1221] hover:bg-slate-900 text-slate-250 p-1 max-xl:p-2 rounded-md cursor-grab border border-slate-700 z-20 transition shadow-sm",
|
|
53463
53908
|
children: "⠿"
|
|
53464
53909
|
}),
|
|
53465
|
-
!a &&
|
|
53910
|
+
!a && x && /* @__PURE__ */ P("span", {
|
|
53466
53911
|
className: "absolute -top-3 left-2 bg-[#0c1221] border border-slate-700 text-slate-200 font-mono text-[8px] px-2 py-0.5 rounded-md font-bold z-30 pointer-events-none shadow-sm",
|
|
53467
53912
|
children: "Nested Row"
|
|
53468
53913
|
}),
|
|
53469
53914
|
/* @__PURE__ */ P("div", {
|
|
53470
53915
|
className: "plexo-editor-row-cols flex w-full gap-2 md:gap-0",
|
|
53916
|
+
style: { alignItems: v || "stretch" },
|
|
53471
53917
|
children: o
|
|
53472
53918
|
})
|
|
53473
53919
|
]
|
|
53474
53920
|
});
|
|
53475
|
-
},
|
|
53921
|
+
}, mW = (e) => e.parentRowId && e.parentColId ? /* @__PURE__ */ P(pW, {
|
|
53476
53922
|
...e,
|
|
53477
53923
|
parentRowId: e.parentRowId,
|
|
53478
53924
|
parentColId: e.parentColId
|
|
53479
|
-
}) : /* @__PURE__ */ P(
|
|
53925
|
+
}) : /* @__PURE__ */ P(fW, { ...e }), hW = ({ col: e, rowId: n, parentRowId: r, parentColId: i, selectedColumnId: a, selectColumn: o, previewMode: s, children: c, deviceView: l }) => {
|
|
53480
53926
|
let { setNodeRef: u, isOver: d } = xe({
|
|
53481
53927
|
id: e.id,
|
|
53482
53928
|
data: {
|
|
@@ -53524,7 +53970,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
53524
53970
|
})
|
|
53525
53971
|
})]
|
|
53526
53972
|
});
|
|
53527
|
-
},
|
|
53973
|
+
}, gW = ({ filter: e, onSelect: t, currentValue: n }) => {
|
|
53528
53974
|
let [r, i] = A(!1), a = k(null), o = k(null), [s, c] = A({
|
|
53529
53975
|
top: 0,
|
|
53530
53976
|
left: 0
|
|
@@ -53618,7 +54064,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
53618
54064
|
}, e.key);
|
|
53619
54065
|
})
|
|
53620
54066
|
}), document.body)] });
|
|
53621
|
-
},
|
|
54067
|
+
}, _W = ({ label: e, value: t, onChange: n, textColor: r, backgroundColor: i }) => {
|
|
53622
54068
|
let [a, o] = A(!1), s = k(null), c = k(null), l = k(null), u = !t || t === "transparent", d = ((e) => {
|
|
53623
54069
|
let t = "#ffffff", n = 100, r = (e || "").trim().toLowerCase();
|
|
53624
54070
|
if (r.startsWith("#")) if (r.length === 9) {
|
|
@@ -53741,7 +54187,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
53741
54187
|
className: "w-20 bg-transparent text-right font-mono text-sm outline-none pr-1",
|
|
53742
54188
|
style: { color: "var(--builder-input-text)" }
|
|
53743
54189
|
}),
|
|
53744
|
-
/* @__PURE__ */ P(
|
|
54190
|
+
/* @__PURE__ */ P(gW, {
|
|
53745
54191
|
filter: (e) => e.type === "color" || /^#[0-9a-fA-F]{3,8}$|^rgba?\(|^hsla?\(/.test(e.value),
|
|
53746
54192
|
onSelect: n,
|
|
53747
54193
|
currentValue: t
|
|
@@ -53880,7 +54326,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
53880
54326
|
]
|
|
53881
54327
|
})]
|
|
53882
54328
|
});
|
|
53883
|
-
},
|
|
54329
|
+
}, vW = ({ elem: t, columnId: r, rowId: o, selectedElementId: m, selectElement: h, deviceView: g, transientStyle: _, transientAttr: v, updateElement: y, onTransientStyleChange: b, onTransientAttrChange: x, clearTransientOverrides: C, duplicateElement: w, deleteElement: T, previewMode: E, useAi: ee, aiProvider: te, aiTier: ne, apiKey: re, externalUserId: ie, templateKind: ae, onRequestComment: oe, ICONS: se, getFormFields: ce, getDefaultStyle: le, isElementHiddenForView: ue, renderSocialIcon: de, onNotify: fe, textColor: me = "#e2e8f0", backgroundColor: he = "#0e1526", customCss: ge = "", mergeTags: j = [], themeBgColor: _e = "#273df2" }) => {
|
|
53884
54330
|
let { attributes: M, listeners: ve, setNodeRef: ye, transform: be, transition: xe, isDragging: Se, isOver: Ce } = L({
|
|
53885
54331
|
id: t.id,
|
|
53886
54332
|
data: {
|
|
@@ -54300,7 +54746,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
54300
54746
|
className: "absolute top-full mt-2 left-0 p-3 rounded-xl border border-slate-700 shadow-2xl z-[99999] w-72",
|
|
54301
54747
|
style: { backgroundColor: he },
|
|
54302
54748
|
onClick: (e) => e.stopPropagation(),
|
|
54303
|
-
children: /* @__PURE__ */ P(
|
|
54749
|
+
children: /* @__PURE__ */ P(_W, {
|
|
54304
54750
|
label: "Text Color",
|
|
54305
54751
|
value: H.color || "#6366f1",
|
|
54306
54752
|
textColor: me,
|
|
@@ -54324,7 +54770,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
54324
54770
|
className: "absolute top-full mt-2 left-0 p-3 rounded-xl border border-slate-700 shadow-2xl z-[99999] w-72",
|
|
54325
54771
|
style: { backgroundColor: he },
|
|
54326
54772
|
onClick: (e) => e.stopPropagation(),
|
|
54327
|
-
children: /* @__PURE__ */ P(
|
|
54773
|
+
children: /* @__PURE__ */ P(_W, {
|
|
54328
54774
|
label: "Highlight Color",
|
|
54329
54775
|
value: H.backgroundColor || "#ffffff",
|
|
54330
54776
|
textColor: me,
|
|
@@ -54918,14 +55364,14 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
54918
55364
|
blog_categories: "28px",
|
|
54919
55365
|
blog_comments: "160px",
|
|
54920
55366
|
blog_post_list: "260px"
|
|
54921
|
-
}, r = {
|
|
55367
|
+
}, r = typeof U.prefix == "string" ? U.prefix : "", i = {
|
|
54922
55368
|
blog_title: "Sample Post Title",
|
|
54923
55369
|
blog_content: "This is sample post content, styled exactly as a real post’s body will render — check that it reads clearly against its background before publishing.",
|
|
54924
|
-
blog_date:
|
|
54925
|
-
blog_author: "By Jane Doe
|
|
54926
|
-
blog_categories:
|
|
54927
|
-
}[t.type];
|
|
54928
|
-
|
|
55370
|
+
blog_date: `${r}August 7, 2026`,
|
|
55371
|
+
blog_author: `${r || "By "}Jane Doe`,
|
|
55372
|
+
blog_categories: `${r}Design · Marketing`
|
|
55373
|
+
}[t.type], a = t.type === "blog_categories" ? "--plexo-categories-color" : "color", o = t.type === "blog_categories" ? "--plexo-categories-font-size" : "fontSize", s = t.type === "blog_categories" ? "--plexo-categories-font-weight" : "fontWeight";
|
|
55374
|
+
if (i) return /* @__PURE__ */ F("div", {
|
|
54929
55375
|
style: {
|
|
54930
55376
|
width: "100%",
|
|
54931
55377
|
position: "relative"
|
|
@@ -54936,9 +55382,9 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
54936
55382
|
}), /* @__PURE__ */ P("div", {
|
|
54937
55383
|
style: {
|
|
54938
55384
|
minHeight: n[t.type],
|
|
54939
|
-
color: H
|
|
54940
|
-
fontSize: H
|
|
54941
|
-
fontWeight: H
|
|
55385
|
+
color: H[a],
|
|
55386
|
+
fontSize: H[o],
|
|
55387
|
+
fontWeight: H[s],
|
|
54942
55388
|
fontFamily: H.fontFamily,
|
|
54943
55389
|
fontStyle: H.fontStyle,
|
|
54944
55390
|
textDecoration: H.textDecoration,
|
|
@@ -54954,9 +55400,79 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
54954
55400
|
margin: H.margin,
|
|
54955
55401
|
whiteSpace: "pre-wrap"
|
|
54956
55402
|
},
|
|
54957
|
-
children:
|
|
55403
|
+
children: i
|
|
54958
55404
|
})]
|
|
54959
|
-
})
|
|
55405
|
+
});
|
|
55406
|
+
if (t.type === "blog_post_list") {
|
|
55407
|
+
let n = H, r = n["--plexo-postlist-card-bg"] || "transparent", i = n["--plexo-postlist-title-color"] || "#17181c", a = n["--plexo-postlist-title-font-size"] || "1.1em", o = n["--plexo-postlist-title-font-weight"] || "700", s = n["--plexo-postlist-excerpt-color"] || "#4b5563", c = n["--plexo-postlist-meta-color"] || "#6b7280";
|
|
55408
|
+
return /* @__PURE__ */ F("div", {
|
|
55409
|
+
style: {
|
|
55410
|
+
width: "100%",
|
|
55411
|
+
position: "relative",
|
|
55412
|
+
padding: H.padding,
|
|
55413
|
+
margin: H.margin
|
|
55414
|
+
},
|
|
55415
|
+
children: [/* @__PURE__ */ P("span", {
|
|
55416
|
+
className: "absolute -top-2 left-2 z-10 px-1.5 py-0.5 rounded bg-purple-500/90 text-white text-[9px] font-bold uppercase tracking-wide pointer-events-none",
|
|
55417
|
+
children: e[t.type]
|
|
55418
|
+
}), /* @__PURE__ */ P("div", {
|
|
55419
|
+
style: {
|
|
55420
|
+
display: "grid",
|
|
55421
|
+
gridTemplateColumns: "repeat(3, 1fr)",
|
|
55422
|
+
gap: 12,
|
|
55423
|
+
border: "2px dashed rgba(168,85,247,0.4)",
|
|
55424
|
+
borderRadius: 8,
|
|
55425
|
+
padding: 12
|
|
55426
|
+
},
|
|
55427
|
+
children: [
|
|
55428
|
+
1,
|
|
55429
|
+
2,
|
|
55430
|
+
3
|
|
55431
|
+
].map((e) => /* @__PURE__ */ F("div", {
|
|
55432
|
+
style: {
|
|
55433
|
+
background: r,
|
|
55434
|
+
borderRadius: 6,
|
|
55435
|
+
padding: 8,
|
|
55436
|
+
display: "flex",
|
|
55437
|
+
flexDirection: "column",
|
|
55438
|
+
gap: 4
|
|
55439
|
+
},
|
|
55440
|
+
children: [
|
|
55441
|
+
/* @__PURE__ */ P("div", { style: {
|
|
55442
|
+
width: "100%",
|
|
55443
|
+
aspectRatio: "2/1",
|
|
55444
|
+
background: "#e2e8f0",
|
|
55445
|
+
borderRadius: 4
|
|
55446
|
+
} }),
|
|
55447
|
+
/* @__PURE__ */ F("div", {
|
|
55448
|
+
style: {
|
|
55449
|
+
color: i,
|
|
55450
|
+
fontSize: a,
|
|
55451
|
+
fontWeight: o,
|
|
55452
|
+
lineHeight: 1.25
|
|
55453
|
+
},
|
|
55454
|
+
children: ["Sample Post ", e]
|
|
55455
|
+
}),
|
|
55456
|
+
/* @__PURE__ */ P("div", {
|
|
55457
|
+
style: {
|
|
55458
|
+
color: s,
|
|
55459
|
+
fontSize: "0.75em"
|
|
55460
|
+
},
|
|
55461
|
+
children: "A short excerpt preview line…"
|
|
55462
|
+
}),
|
|
55463
|
+
/* @__PURE__ */ P("div", {
|
|
55464
|
+
style: {
|
|
55465
|
+
color: c,
|
|
55466
|
+
fontSize: "0.7em"
|
|
55467
|
+
},
|
|
55468
|
+
children: "Jane Doe · Aug 7, 2026"
|
|
55469
|
+
})
|
|
55470
|
+
]
|
|
55471
|
+
}, e))
|
|
55472
|
+
})]
|
|
55473
|
+
});
|
|
55474
|
+
}
|
|
55475
|
+
return /* @__PURE__ */ P("div", {
|
|
54960
55476
|
style: {
|
|
54961
55477
|
padding: H.padding,
|
|
54962
55478
|
margin: H.margin,
|
|
@@ -55400,13 +55916,13 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
55400
55916
|
};
|
|
55401
55917
|
//#endregion
|
|
55402
55918
|
//#region src/components/inlineControls/InlineCounter.tsx
|
|
55403
|
-
function
|
|
55919
|
+
function yW(e, t) {
|
|
55404
55920
|
if (t) return t;
|
|
55405
55921
|
let n = e.toLowerCase();
|
|
55406
55922
|
return n.includes("font size") || n.includes("font-size") ? "font-size" : n.includes("font weight") || n.includes("font-weight") || n.includes("weight") ? "font-weight" : n.includes("line height") || n.includes("line-height") ? "line-height" : n.includes("letter spacing") || n.includes("letter-spacing") ? "letter-spacing" : n.includes("border radius") || n.includes("border-radius") || n.includes("rounded") ? "border-radius" : n.includes("blur") ? "filter-blur" : null;
|
|
55407
55923
|
}
|
|
55408
|
-
var
|
|
55409
|
-
let l = String(t || "").match(/^([+-]?\d+(?:\.\d+)?)(.*)$/), u = l ? parseFloat(l[1]) : 0, d = l && l[2] ? l[2].trim() : r && r.length > 0 ? r[0] : n, f =
|
|
55924
|
+
var bW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 500, step: o = 1, onChange: s, strataTokenKey: c }) => {
|
|
55925
|
+
let l = String(t || "").match(/^([+-]?\d+(?:\.\d+)?)(.*)$/), u = l ? parseFloat(l[1]) : 0, d = l && l[2] ? l[2].trim() : r && r.length > 0 ? r[0] : n, f = yW(e, c), p = (e) => {
|
|
55410
55926
|
s(`${e}${d}`);
|
|
55411
55927
|
}, m = (e) => {
|
|
55412
55928
|
s(`${u}${e}`);
|
|
@@ -55419,7 +55935,7 @@ var pW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
|
|
|
55419
55935
|
}), /* @__PURE__ */ F("div", {
|
|
55420
55936
|
className: "flex items-center gap-1.5",
|
|
55421
55937
|
children: [
|
|
55422
|
-
f && /* @__PURE__ */ P(
|
|
55938
|
+
f && /* @__PURE__ */ P(gW, {
|
|
55423
55939
|
filter: (e) => e.key.includes(f),
|
|
55424
55940
|
onSelect: (e) => s(e),
|
|
55425
55941
|
currentValue: t
|
|
@@ -55490,7 +56006,7 @@ var pW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
|
|
|
55490
56006
|
]
|
|
55491
56007
|
})]
|
|
55492
56008
|
});
|
|
55493
|
-
},
|
|
56009
|
+
}, xW = ({ label: e, value: t, options: n, onChange: r }) => /* @__PURE__ */ F("div", {
|
|
55494
56010
|
className: "flex items-center justify-between py-3 border-b border-slate-800/10 last:border-b-0",
|
|
55495
56011
|
children: [/* @__PURE__ */ P("span", {
|
|
55496
56012
|
className: "text-sm text-slate-300 font-semibold leading-5 tracking-[0.01em]",
|
|
@@ -55503,7 +56019,7 @@ var pW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
|
|
|
55503
56019
|
menuClassName: "min-w-[190px]",
|
|
55504
56020
|
align: "right"
|
|
55505
56021
|
})]
|
|
55506
|
-
}),
|
|
56022
|
+
}), SW = ({ label: e, value: t, onChange: n }) => {
|
|
55507
56023
|
let r = [
|
|
55508
56024
|
{
|
|
55509
56025
|
value: "left",
|
|
@@ -55541,7 +56057,7 @@ var pW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
|
|
|
55541
56057
|
}, e.value))
|
|
55542
56058
|
})]
|
|
55543
56059
|
});
|
|
55544
|
-
},
|
|
56060
|
+
}, CW = ({ label: e, value: t, onChange: n }) => /* @__PURE__ */ F("div", {
|
|
55545
56061
|
className: "flex flex-col gap-2 py-3 border-b border-slate-800/10 last:border-b-0",
|
|
55546
56062
|
children: [/* @__PURE__ */ P("span", {
|
|
55547
56063
|
className: "text-[11px] text-slate-350 font-semibold uppercase tracking-[0.12em] leading-5",
|
|
@@ -55557,7 +56073,7 @@ var pW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
|
|
|
55557
56073
|
color: "var(--builder-input-text)"
|
|
55558
56074
|
}
|
|
55559
56075
|
})]
|
|
55560
|
-
}),
|
|
56076
|
+
}), wW = ({ label: e, value: t, rows: n = 4, onChange: r, codeMode: i }) => /* @__PURE__ */ F("div", {
|
|
55561
56077
|
className: "flex flex-col gap-2 py-3 border-b border-slate-800/10 last:border-b-0",
|
|
55562
56078
|
children: [/* @__PURE__ */ P("span", {
|
|
55563
56079
|
className: "text-[11px] text-slate-350 font-semibold uppercase tracking-[0.12em] leading-5",
|
|
@@ -55575,7 +56091,7 @@ var pW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
|
|
|
55575
56091
|
fontFamily: i ? "Fira Code, Consolas, Monaco, monospace" : void 0
|
|
55576
56092
|
}
|
|
55577
56093
|
})]
|
|
55578
|
-
}),
|
|
56094
|
+
}), TW = ({ styles: e, onChange: t }) => {
|
|
55579
56095
|
let [n, r] = A(!1), i = parseInt(e.borderRadius) || 0, a = parseInt(e.borderTopLeftRadius) || i || 0, o = parseInt(e.borderTopRightRadius) || i || 0, s = parseInt(e.borderBottomRightRadius) || i || 0, c = parseInt(e.borderBottomLeftRadius) || i || 0, l = (e) => {
|
|
55580
56096
|
t("borderRadius", e), t("borderTopLeftRadius", e), t("borderTopRightRadius", e), t("borderBottomRightRadius", e), t("borderBottomLeftRadius", e);
|
|
55581
56097
|
}, u = (n, r) => {
|
|
@@ -55602,7 +56118,7 @@ var pW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
|
|
|
55602
56118
|
}), /* @__PURE__ */ F("div", {
|
|
55603
56119
|
className: "flex items-center gap-1.5",
|
|
55604
56120
|
children: [
|
|
55605
|
-
/* @__PURE__ */ P(
|
|
56121
|
+
/* @__PURE__ */ P(gW, {
|
|
55606
56122
|
filter: (e) => e.key.includes("border-radius") && e.type === "dimension",
|
|
55607
56123
|
onSelect: l,
|
|
55608
56124
|
currentValue: `${i}px`
|
|
@@ -55622,7 +56138,7 @@ var pW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
|
|
|
55622
56138
|
}), n ? /* @__PURE__ */ F("div", {
|
|
55623
56139
|
className: "grid grid-cols-1 gap-2 mt-1.5",
|
|
55624
56140
|
children: [
|
|
55625
|
-
/* @__PURE__ */ P(
|
|
56141
|
+
/* @__PURE__ */ P(bW, {
|
|
55626
56142
|
label: "Top-Left",
|
|
55627
56143
|
value: `${a}px`,
|
|
55628
56144
|
units: [
|
|
@@ -55633,7 +56149,7 @@ var pW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
|
|
|
55633
56149
|
],
|
|
55634
56150
|
onChange: (e) => u("borderTopLeftRadius", e)
|
|
55635
56151
|
}),
|
|
55636
|
-
/* @__PURE__ */ P(
|
|
56152
|
+
/* @__PURE__ */ P(bW, {
|
|
55637
56153
|
label: "Top-Right",
|
|
55638
56154
|
value: `${o}px`,
|
|
55639
56155
|
units: [
|
|
@@ -55644,7 +56160,7 @@ var pW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
|
|
|
55644
56160
|
],
|
|
55645
56161
|
onChange: (e) => u("borderTopRightRadius", e)
|
|
55646
56162
|
}),
|
|
55647
|
-
/* @__PURE__ */ P(
|
|
56163
|
+
/* @__PURE__ */ P(bW, {
|
|
55648
56164
|
label: "Bottom-Right",
|
|
55649
56165
|
value: `${s}px`,
|
|
55650
56166
|
units: [
|
|
@@ -55655,7 +56171,7 @@ var pW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
|
|
|
55655
56171
|
],
|
|
55656
56172
|
onChange: (e) => u("borderBottomRightRadius", e)
|
|
55657
56173
|
}),
|
|
55658
|
-
/* @__PURE__ */ P(
|
|
56174
|
+
/* @__PURE__ */ P(bW, {
|
|
55659
56175
|
label: "Bottom-Left",
|
|
55660
56176
|
value: `${c}px`,
|
|
55661
56177
|
units: [
|
|
@@ -55667,7 +56183,7 @@ var pW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
|
|
|
55667
56183
|
onChange: (e) => u("borderBottomLeftRadius", e)
|
|
55668
56184
|
})
|
|
55669
56185
|
]
|
|
55670
|
-
}) : /* @__PURE__ */ P(
|
|
56186
|
+
}) : /* @__PURE__ */ P(bW, {
|
|
55671
56187
|
label: "All Sides",
|
|
55672
56188
|
value: `${i}px`,
|
|
55673
56189
|
units: [
|
|
@@ -55679,28 +56195,28 @@ var pW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
|
|
|
55679
56195
|
onChange: l
|
|
55680
56196
|
})]
|
|
55681
56197
|
});
|
|
55682
|
-
},
|
|
56198
|
+
}, EW = {
|
|
55683
56199
|
offsetX: 0,
|
|
55684
56200
|
offsetY: 4,
|
|
55685
56201
|
blur: 6,
|
|
55686
56202
|
spread: -1,
|
|
55687
56203
|
color: "#0000001a"
|
|
55688
|
-
},
|
|
56204
|
+
}, DW = (e) => {
|
|
55689
56205
|
let t = (e || "").trim();
|
|
55690
|
-
if (!t || t === "none") return
|
|
56206
|
+
if (!t || t === "none") return EW;
|
|
55691
56207
|
let n = t.match(/^(-?[\d.]+)px\s+(-?[\d.]+)px(?:\s+(-?[\d.]+)px)?(?:\s+(-?[\d.]+)px)?\s*(.*)$/);
|
|
55692
|
-
if (!n) return
|
|
56208
|
+
if (!n) return EW;
|
|
55693
56209
|
let [, r, i, a, o, s] = n;
|
|
55694
56210
|
return {
|
|
55695
56211
|
offsetX: parseFloat(r) || 0,
|
|
55696
56212
|
offsetY: parseFloat(i) || 0,
|
|
55697
56213
|
blur: a === void 0 ? 0 : parseFloat(a) || 0,
|
|
55698
56214
|
spread: o === void 0 ? 0 : parseFloat(o) || 0,
|
|
55699
|
-
color: s?.trim() ||
|
|
56215
|
+
color: s?.trim() || EW.color
|
|
55700
56216
|
};
|
|
55701
|
-
},
|
|
55702
|
-
let n = !e.boxShadow || e.boxShadow === "none", r =
|
|
55703
|
-
t("boxShadow",
|
|
56217
|
+
}, OW = (e) => `${e.offsetX}px ${e.offsetY}px ${e.blur}px ${e.spread}px ${e.color}`, kW = ({ styles: e, onChange: t }) => {
|
|
56218
|
+
let n = !e.boxShadow || e.boxShadow === "none", r = DW(e.boxShadow), i = (e) => {
|
|
56219
|
+
t("boxShadow", OW({
|
|
55704
56220
|
...r,
|
|
55705
56221
|
...e
|
|
55706
56222
|
}));
|
|
@@ -55714,42 +56230,42 @@ var pW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
|
|
|
55714
56230
|
children: "Box Shadow"
|
|
55715
56231
|
}), /* @__PURE__ */ P("button", {
|
|
55716
56232
|
type: "button",
|
|
55717
|
-
onClick: () => t("boxShadow", n ?
|
|
56233
|
+
onClick: () => t("boxShadow", n ? OW(r) : "none"),
|
|
55718
56234
|
className: `plexo-switch-track plexo-switch-track-sm ${n ? "plexo-switch-track-off" : "plexo-switch-track-on"}`,
|
|
55719
56235
|
children: /* @__PURE__ */ P("span", { className: `plexo-switch-thumb plexo-switch-thumb-sm ${n ? "plexo-switch-thumb-off" : "plexo-switch-thumb-on-sm"}` })
|
|
55720
56236
|
})]
|
|
55721
56237
|
}), !n && /* @__PURE__ */ F("div", {
|
|
55722
56238
|
className: "grid grid-cols-1 gap-2 mt-1.5",
|
|
55723
56239
|
children: [
|
|
55724
|
-
/* @__PURE__ */ P(
|
|
56240
|
+
/* @__PURE__ */ P(bW, {
|
|
55725
56241
|
label: "Offset X",
|
|
55726
56242
|
value: `${r.offsetX}px`,
|
|
55727
56243
|
min: -100,
|
|
55728
56244
|
max: 100,
|
|
55729
56245
|
onChange: (e) => i({ offsetX: parseFloat(e) || 0 })
|
|
55730
56246
|
}),
|
|
55731
|
-
/* @__PURE__ */ P(
|
|
56247
|
+
/* @__PURE__ */ P(bW, {
|
|
55732
56248
|
label: "Offset Y",
|
|
55733
56249
|
value: `${r.offsetY}px`,
|
|
55734
56250
|
min: -100,
|
|
55735
56251
|
max: 100,
|
|
55736
56252
|
onChange: (e) => i({ offsetY: parseFloat(e) || 0 })
|
|
55737
56253
|
}),
|
|
55738
|
-
/* @__PURE__ */ P(
|
|
56254
|
+
/* @__PURE__ */ P(bW, {
|
|
55739
56255
|
label: "Blur",
|
|
55740
56256
|
value: `${r.blur}px`,
|
|
55741
56257
|
min: 0,
|
|
55742
56258
|
max: 200,
|
|
55743
56259
|
onChange: (e) => i({ blur: parseFloat(e) || 0 })
|
|
55744
56260
|
}),
|
|
55745
|
-
/* @__PURE__ */ P(
|
|
56261
|
+
/* @__PURE__ */ P(bW, {
|
|
55746
56262
|
label: "Spread",
|
|
55747
56263
|
value: `${r.spread}px`,
|
|
55748
56264
|
min: -100,
|
|
55749
56265
|
max: 100,
|
|
55750
56266
|
onChange: (e) => i({ spread: parseFloat(e) || 0 })
|
|
55751
56267
|
}),
|
|
55752
|
-
/* @__PURE__ */ P(
|
|
56268
|
+
/* @__PURE__ */ P(_W, {
|
|
55753
56269
|
label: "Shadow Color",
|
|
55754
56270
|
value: r.color,
|
|
55755
56271
|
onChange: (e) => i({ color: e })
|
|
@@ -55757,20 +56273,20 @@ var pW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
|
|
|
55757
56273
|
]
|
|
55758
56274
|
})]
|
|
55759
56275
|
});
|
|
55760
|
-
},
|
|
56276
|
+
}, AW = ({ onSelect: e }) => /* @__PURE__ */ P("div", {
|
|
55761
56277
|
className: "grid grid-cols-1 gap-2.5",
|
|
55762
56278
|
children: ee.map((t, n) => /* @__PURE__ */ P("button", {
|
|
55763
56279
|
onClick: () => e(t.widths),
|
|
55764
56280
|
className: "group w-full h-14 bg-[#09132a] border border-slate-700/80 hover:border-cyan-400 p-2 flex items-center justify-between transition",
|
|
55765
56281
|
children: /* @__PURE__ */ P("div", {
|
|
55766
56282
|
className: "flex-1 h-full",
|
|
55767
|
-
children: /* @__PURE__ */ P(
|
|
56283
|
+
children: /* @__PURE__ */ P(lW, {
|
|
55768
56284
|
widths: t.widths,
|
|
55769
56285
|
percentages: t.percentages
|
|
55770
56286
|
})
|
|
55771
56287
|
})
|
|
55772
56288
|
}, n))
|
|
55773
|
-
}),
|
|
56289
|
+
}), jW = ({ label: e, stylePrefix: t, styles: n, onChange: r, allowNegative: i = !1 }) => {
|
|
55774
56290
|
let a = i ? -500 : 0, o = {
|
|
55775
56291
|
all: t,
|
|
55776
56292
|
top: `${t}Top`,
|
|
@@ -55803,7 +56319,7 @@ var pW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
|
|
|
55803
56319
|
}), /* @__PURE__ */ F("div", {
|
|
55804
56320
|
className: "flex items-center gap-1.5",
|
|
55805
56321
|
children: [
|
|
55806
|
-
/* @__PURE__ */ P(
|
|
56322
|
+
/* @__PURE__ */ P(gW, {
|
|
55807
56323
|
filter: (e) => (e.key.includes("space-padding") || e.key.includes("space-gap") || e.key.includes("space-margin")) && (e.type === "dimension" || /px$|rem$|em$/.test(e.value)),
|
|
55808
56324
|
onSelect: h,
|
|
55809
56325
|
currentValue: `${u}px`
|
|
@@ -55823,7 +56339,7 @@ var pW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
|
|
|
55823
56339
|
}), s ? /* @__PURE__ */ F("div", {
|
|
55824
56340
|
className: "grid grid-cols-1 gap-2 mt-1.5",
|
|
55825
56341
|
children: [
|
|
55826
|
-
/* @__PURE__ */ P(
|
|
56342
|
+
/* @__PURE__ */ P(bW, {
|
|
55827
56343
|
label: "Top",
|
|
55828
56344
|
value: `${d}px`,
|
|
55829
56345
|
units: [
|
|
@@ -55835,7 +56351,7 @@ var pW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
|
|
|
55835
56351
|
min: a,
|
|
55836
56352
|
onChange: (e) => g(o.top, e)
|
|
55837
56353
|
}),
|
|
55838
|
-
/* @__PURE__ */ P(
|
|
56354
|
+
/* @__PURE__ */ P(bW, {
|
|
55839
56355
|
label: "Right",
|
|
55840
56356
|
value: `${m}px`,
|
|
55841
56357
|
units: [
|
|
@@ -55847,7 +56363,7 @@ var pW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
|
|
|
55847
56363
|
min: a,
|
|
55848
56364
|
onChange: (e) => g(o.right, e)
|
|
55849
56365
|
}),
|
|
55850
|
-
/* @__PURE__ */ P(
|
|
56366
|
+
/* @__PURE__ */ P(bW, {
|
|
55851
56367
|
label: "Bottom",
|
|
55852
56368
|
value: `${f}px`,
|
|
55853
56369
|
units: [
|
|
@@ -55859,7 +56375,7 @@ var pW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
|
|
|
55859
56375
|
min: a,
|
|
55860
56376
|
onChange: (e) => g(o.bottom, e)
|
|
55861
56377
|
}),
|
|
55862
|
-
/* @__PURE__ */ P(
|
|
56378
|
+
/* @__PURE__ */ P(bW, {
|
|
55863
56379
|
label: "Left",
|
|
55864
56380
|
value: `${p}px`,
|
|
55865
56381
|
units: [
|
|
@@ -55872,7 +56388,7 @@ var pW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
|
|
|
55872
56388
|
onChange: (e) => g(o.left, e)
|
|
55873
56389
|
})
|
|
55874
56390
|
]
|
|
55875
|
-
}) : /* @__PURE__ */ P(
|
|
56391
|
+
}) : /* @__PURE__ */ P(bW, {
|
|
55876
56392
|
label: "All Sides",
|
|
55877
56393
|
value: `${u}px`,
|
|
55878
56394
|
units: [
|
|
@@ -55885,7 +56401,7 @@ var pW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
|
|
|
55885
56401
|
onChange: h
|
|
55886
56402
|
})]
|
|
55887
56403
|
});
|
|
55888
|
-
},
|
|
56404
|
+
}, MW = ({ label: e, onUploadMock: t }) => /* @__PURE__ */ F("div", {
|
|
55889
56405
|
className: "py-1",
|
|
55890
56406
|
children: [/* @__PURE__ */ P("label", {
|
|
55891
56407
|
className: "text-xs text-slate-400 font-medium block mb-1.5",
|
|
@@ -55895,7 +56411,7 @@ var pW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
|
|
|
55895
56411
|
className: "w-full h-12 border border-dashed border-slate-800/60 hover:border-indigo-500 rounded-md flex flex-col items-center justify-center gap-0.5 text-slate-550 hover:text-indigo-400 bg-slate-950/20 hover:bg-indigo-500/[0.01] transition select-none text-[10px] font-semibold",
|
|
55896
56412
|
children: /* @__PURE__ */ P("span", { children: "Upload File" })
|
|
55897
56413
|
})]
|
|
55898
|
-
}),
|
|
56414
|
+
}), NW = { body: {
|
|
55899
56415
|
style: {
|
|
55900
56416
|
background: "#ffffffff",
|
|
55901
56417
|
padding: "32px"
|
|
@@ -55939,7 +56455,7 @@ var pW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
|
|
|
55939
56455
|
}]
|
|
55940
56456
|
}]
|
|
55941
56457
|
}]
|
|
55942
|
-
} },
|
|
56458
|
+
} }, PW = ({ apiKey: e, mode: t, onSave: n, isSavingLayout: r, setIsSavingLayout: i, normalizeTemplateWithDefaults: a, templateId: o, allowPublishLandingPage: s }) => {
|
|
55943
56459
|
let c = fe(() => JSON.parse(JSON.stringify(Ie.getState().template)), []), l = fe(async (t) => {
|
|
55944
56460
|
let n = c(), r = a(n);
|
|
55945
56461
|
if (t === "email") {
|
|
@@ -56013,8 +56529,8 @@ var pW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
|
|
|
56013
56529
|
exportDesign: l,
|
|
56014
56530
|
handleBuiltInSave: u
|
|
56015
56531
|
};
|
|
56016
|
-
},
|
|
56017
|
-
let [e, t] = A(() => typeof window < "u" ? window.innerWidth :
|
|
56532
|
+
}, FW = 1280, IW = (e) => e < 768 ? "mobile" : e < 1280 ? "tablet" : "desktop", LW = () => {
|
|
56533
|
+
let [e, t] = A(() => typeof window < "u" ? window.innerWidth : FW);
|
|
56018
56534
|
return O(() => {
|
|
56019
56535
|
if (typeof window > "u") return;
|
|
56020
56536
|
let e = null, n = () => {
|
|
@@ -56027,14 +56543,14 @@ var pW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
|
|
|
56027
56543
|
};
|
|
56028
56544
|
}, []), {
|
|
56029
56545
|
width: e,
|
|
56030
|
-
category:
|
|
56546
|
+
category: IW(e)
|
|
56031
56547
|
};
|
|
56032
|
-
},
|
|
56548
|
+
}, RW = (e) => {
|
|
56033
56549
|
let t = {};
|
|
56034
56550
|
return e.tokens.forEach((e) => {
|
|
56035
56551
|
t[e.cssVariableName] = e, t[e.id] = e;
|
|
56036
56552
|
}), t;
|
|
56037
|
-
},
|
|
56553
|
+
}, zW = (e, t) => {
|
|
56038
56554
|
let n = { ...e }, r = e.style || {}, i = {};
|
|
56039
56555
|
return Object.entries(r).forEach(([e, n]) => {
|
|
56040
56556
|
if (typeof n == "string" && t[n]) {
|
|
@@ -56042,7 +56558,7 @@ var pW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
|
|
|
56042
56558
|
i[e] = `var(${r.cssVariableName})`;
|
|
56043
56559
|
} else i[e] = n;
|
|
56044
56560
|
}), n.style = i, n;
|
|
56045
|
-
},
|
|
56561
|
+
}, BW = (e, t) => e.tokens.filter((e) => e.category === t), VW = (e) => `:root {\n${e.tokens.map((e) => ` ${e.cssVariableName}: ${e.value};`).join("\n")}\n}`, HW = (e, t) => e ? e.startsWith("var(") ? e : t[e] ? `var(${t[e].cssVariableName})` : e : "", UW = (e, t = "") => {
|
|
56046
56562
|
let n = "";
|
|
56047
56563
|
switch (e.category) {
|
|
56048
56564
|
case "color":
|
|
@@ -56064,10 +56580,10 @@ var pW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
|
|
|
56064
56580
|
}
|
|
56065
56581
|
return n;
|
|
56066
56582
|
};
|
|
56067
|
-
function
|
|
56583
|
+
function WW(e) {
|
|
56068
56584
|
return /^#[0-9a-fA-F]{3,8}$/.test(e) || /^rgb|^hsl/.test(e) ? "color" : /px$|rem$|em$|%$/.test(e) ? "spacing" : /^\d+(\.\d+)?$/.test(e) ? "number" : "string";
|
|
56069
56585
|
}
|
|
56070
|
-
async function
|
|
56586
|
+
async function GW(e, t) {
|
|
56071
56587
|
if (!e || !e.trim()) return !1;
|
|
56072
56588
|
try {
|
|
56073
56589
|
let n = `https://snapshot.strata.charisol.io/snapshots/${e}/strata.json`, r = await fetch(n);
|
|
@@ -56079,7 +56595,7 @@ async function RW(e, t) {
|
|
|
56079
56595
|
key: e,
|
|
56080
56596
|
name: t.name || e,
|
|
56081
56597
|
value: n,
|
|
56082
|
-
type: t.type ||
|
|
56598
|
+
type: t.type || WW(n)
|
|
56083
56599
|
};
|
|
56084
56600
|
})), !0;
|
|
56085
56601
|
} catch (e) {
|
|
@@ -56088,7 +56604,7 @@ async function RW(e, t) {
|
|
|
56088
56604
|
}
|
|
56089
56605
|
//#endregion
|
|
56090
56606
|
//#region src/components/PlexoBuilder.tsx
|
|
56091
|
-
var
|
|
56607
|
+
var KW = (e) => ({ body: {
|
|
56092
56608
|
style: {
|
|
56093
56609
|
background: "#0b0f19",
|
|
56094
56610
|
padding: "24px"
|
|
@@ -56111,11 +56627,11 @@ var zW = (e) => ({ body: {
|
|
|
56111
56627
|
}]
|
|
56112
56628
|
}]
|
|
56113
56629
|
}]
|
|
56114
|
-
} }),
|
|
56630
|
+
} }), qW = (e, t, n) => {
|
|
56115
56631
|
if (t === void 0 && n === void 0) return e;
|
|
56116
56632
|
let r = JSON.parse(JSON.stringify(e));
|
|
56117
56633
|
return r.body.style = r.body.style || {}, t !== void 0 && (r.body.style.customCss = t), n !== void 0 && (r.body.style.customJs = n), r;
|
|
56118
|
-
},
|
|
56634
|
+
}, JW = (e, t) => {
|
|
56119
56635
|
let n = e.trim(), r = n.match(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/);
|
|
56120
56636
|
if (r) {
|
|
56121
56637
|
let e = r[1], n = e.length === 3 ? e.split("").map((e) => `${e}${e}`).join("") : e;
|
|
@@ -56134,7 +56650,7 @@ var zW = (e) => ({ body: {
|
|
|
56134
56650
|
}
|
|
56135
56651
|
}
|
|
56136
56652
|
return `rgba(79, 70, 229, ${t})`;
|
|
56137
|
-
},
|
|
56653
|
+
}, YW = ({ title: e, plan: t }) => /* @__PURE__ */ F("div", {
|
|
56138
56654
|
className: "flex flex-col items-center justify-center gap-3 py-10 px-4 text-center rounded-lg border border-dashed",
|
|
56139
56655
|
style: { borderColor: "var(--builder-border-color)" },
|
|
56140
56656
|
children: [
|
|
@@ -56161,7 +56677,7 @@ var zW = (e) => ({ body: {
|
|
|
56161
56677
|
children: "Upgrade your plan to unlock this feature."
|
|
56162
56678
|
})
|
|
56163
56679
|
]
|
|
56164
|
-
}),
|
|
56680
|
+
}), XW = (e, t = 1200, n = 1200, r = .8) => new Promise((i) => {
|
|
56165
56681
|
if (!e.type.startsWith("image/")) {
|
|
56166
56682
|
i(e);
|
|
56167
56683
|
return;
|
|
@@ -56194,13 +56710,13 @@ var zW = (e) => ({ body: {
|
|
|
56194
56710
|
}, "image/jpeg", r);
|
|
56195
56711
|
}, o.onerror = () => i(e), o.src = a.target?.result;
|
|
56196
56712
|
}, a.onerror = () => i(e), a.readAsDataURL(e);
|
|
56197
|
-
}),
|
|
56713
|
+
}), ZW = de((e, n) => {
|
|
56198
56714
|
let { showSaveButton: r = !1, mode: i, apiKey: a, backgroundColor: o = "#0e1526", themeBgColor: s = "#4f46e5", themeFgColor: c = "#ffffff", textColor: l = "#e2e8f0", builderFontFamily: u = "'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif", initialTemplate: d, initialHtml: f, initialCss: p, initialJs: m, onSave: h, useAi: g, aiProvider: _, aiTier: v, externalUserId: y, onUpload: b, customUpload: x, disableImageUpload: w = !1, autoSave: ee = !1, autoSaveDuration: te = 3e3, unsplashKey: ie, pexelsKey: ae, pixabayKey: se, allowPublishLandingPage: ce = !1, templateId: D, headerLeftContent: le, headerRightContent: ue, mergeTags: de, isBlogLayout: fe = !1, readOnly: pe = !1, commentMode: _e = !1, onRequestComment: M } = e, ve = e.__internalPlan, ye = IH(a, ve), be = jH(ye.plan), xe = e.themeBgColor === void 0 ? ye.branding?.brandColor ?? s : s, Se = k(null), { template: Ce, selectedElementId: we, selectedRowId: I, selectedColumnId: L, past: Te, future: Ee, selectElement: R, selectRow: De, selectColumn: Oe, undo: ke, redo: Ne, hydrateTemplate: Pe, addRow: Fe, moveRow: Le, addElement: z, moveElement: ze, updateElement: Be, deleteElement: Ve, duplicateElement: Ue, deleteRow: We, duplicateRow: Ge, updateRowStyle: Ke, updateRowAttrs: qe, updateColumnStyle: Je, updateColumnAttrs: Ye, updateTemplateBodyStyle: Xe, updateRowColumns: Ze, updateColumnWidth: Qe, addColumnToRow: B, deleteColumnFromRow: V, duplicateColumn: $e, addUploadedImage: et, addNestedRowToColumn: tt, nestRowInColumn: nt, moveNestedRowToTopLevel: H, moveNestedRowBetweenColumns: U } = Ie(), [rt, it] = A(null), at = Ce?.body?.publishConfig?.apiKeyOverride ?? "", ot = () => at.trim() || a, st = (e) => typeof window < "u" && (window.location.hostname === "localhost" || window.location.hostname === "127.0.0.1") && window.location.port !== "3000" ? `http://localhost:3000${e}` : e, ct = (e, t) => {
|
|
56199
56715
|
it(t), It(e), R(null), De(null), Oe(null);
|
|
56200
56716
|
}, lt = {
|
|
56201
56717
|
useAi: Ce.body.aiConfig?.useAi ?? g,
|
|
56202
56718
|
tier: Ce.body.aiConfig?.tier || v
|
|
56203
|
-
}, ut = _ || ye.aiProvider, dt = ye.status === "valid" ? ye.manageLandingPagePublishing : ce, ft = i === "email" ? "EMAIL" : "LANDING_PAGE", [pt, mt] = A(null), [ht, gt] = A(je), [_t, vt] = A("desktop"), [yt, bt] = A("600px"), [xt, St] = A("imac"), [Ct, wt] = A("design"), [Tt, Et] = A(!1), Dt = pe || Tt, [Ot, kt] = A("light"), { width: At, category: jt } =
|
|
56719
|
+
}, ut = _ || ye.aiProvider, dt = ye.status === "valid" ? ye.manageLandingPagePublishing : ce, ft = i === "email" ? "EMAIL" : "LANDING_PAGE", [pt, mt] = A(null), [ht, gt] = A(je), [_t, vt] = A("desktop"), [yt, bt] = A("600px"), [xt, St] = A("imac"), [Ct, wt] = A("design"), [Tt, Et] = A(!1), Dt = pe || Tt, [Ot, kt] = A("light"), { width: At, category: jt } = LW(), Mt = jt !== "desktop", [Nt, Pt] = A(!1), [Ft, It] = A("content"), [Lt, Rt] = A("all"), [zt, Bt] = A([]), [Vt, Ht] = A(!1), [Ut, Wt] = A(null), [Gt, Kt] = A(0), [qt, Jt] = A(""), [Yt, Xt] = A(""), [Zt, Qt] = A([]);
|
|
56204
56720
|
O(() => {
|
|
56205
56721
|
let e = !1;
|
|
56206
56722
|
return (async () => {
|
|
@@ -56285,7 +56801,7 @@ var zW = (e) => ({ body: {
|
|
|
56285
56801
|
D,
|
|
56286
56802
|
a
|
|
56287
56803
|
]);
|
|
56288
|
-
let { sensors: Dn, getJson: On, exportDesign: kn, handleBuiltInSave: An } =
|
|
56804
|
+
let { sensors: Dn, getJson: On, exportDesign: kn, handleBuiltInSave: An } = PW({
|
|
56289
56805
|
apiKey: a,
|
|
56290
56806
|
mode: i,
|
|
56291
56807
|
onSave: h,
|
|
@@ -56339,7 +56855,7 @@ var zW = (e) => ({ body: {
|
|
|
56339
56855
|
h
|
|
56340
56856
|
]), O(() => {
|
|
56341
56857
|
let e = f?.trim(), t, n, r = p === void 0 ? "__undefined__" : p, i = m === void 0 ? "__undefined__" : m;
|
|
56342
|
-
d ? (n = `json:${JSON.stringify(d)}:css:${r}:js:${i}`, t =
|
|
56858
|
+
d ? (n = `json:${JSON.stringify(d)}:css:${r}:js:${i}`, t = qW(d, p, m)) : e ? (n = `html:${e}:css:${r}:js:${i}`, t = qW(KW(e), p, m)) : (n = `demo:css:${r}:js:${i}`, t = qW(NW, p, m)), wn.current !== n && (wn.current = n, Pe(t));
|
|
56343
56859
|
}, [
|
|
56344
56860
|
d,
|
|
56345
56861
|
f,
|
|
@@ -56363,7 +56879,7 @@ var zW = (e) => ({ body: {
|
|
|
56363
56879
|
let e = Ce?.body?.style?.strataConfig?.projectId, t = typeof window < "u" ? localStorage.getItem("plexo-strata-config") : null, n = t ? JSON.parse(t) : null, r = e || n?.projectId;
|
|
56364
56880
|
if (r) {
|
|
56365
56881
|
let e = Ie.getState().setStrataTokens;
|
|
56366
|
-
|
|
56882
|
+
GW(r, e);
|
|
56367
56883
|
}
|
|
56368
56884
|
}, [(Ce?.body?.style)?.strataConfig?.projectId]), O(() => {
|
|
56369
56885
|
rn(null), on(null), sn.current && clearTimeout(sn.current);
|
|
@@ -56892,7 +57408,7 @@ var zW = (e) => ({ body: {
|
|
|
56892
57408
|
}
|
|
56893
57409
|
return;
|
|
56894
57410
|
}
|
|
56895
|
-
}, tr = (e, n, r) => /* @__PURE__ */ P(
|
|
57411
|
+
}, tr = (e, n, r) => /* @__PURE__ */ P(mW, {
|
|
56896
57412
|
row: e,
|
|
56897
57413
|
parentRowId: n,
|
|
56898
57414
|
parentColId: r,
|
|
@@ -56901,7 +57417,7 @@ var zW = (e) => ({ body: {
|
|
|
56901
57417
|
previewMode: Dt,
|
|
56902
57418
|
deviceView: _t,
|
|
56903
57419
|
selectedElementId: we,
|
|
56904
|
-
children: e.columns.map((i) => /* @__PURE__ */ P(
|
|
57420
|
+
children: e.columns.map((i) => /* @__PURE__ */ P(hW, {
|
|
56905
57421
|
col: i,
|
|
56906
57422
|
rowId: e.id,
|
|
56907
57423
|
parentRowId: n,
|
|
@@ -56980,7 +57496,7 @@ var zW = (e) => ({ body: {
|
|
|
56980
57496
|
})]
|
|
56981
57497
|
}) : /* @__PURE__ */ P(N, { children: t(i).map((t) => {
|
|
56982
57498
|
let n = i.elements.find((e) => e.id === t);
|
|
56983
|
-
if (n) return /* @__PURE__ */ P(
|
|
57499
|
+
if (n) return /* @__PURE__ */ P(vW, {
|
|
56984
57500
|
elem: n,
|
|
56985
57501
|
columnId: i.id,
|
|
56986
57502
|
rowId: e.id,
|
|
@@ -57092,7 +57608,7 @@ var zW = (e) => ({ body: {
|
|
|
57092
57608
|
let n = t.name;
|
|
57093
57609
|
try {
|
|
57094
57610
|
let e = t;
|
|
57095
|
-
t.type.startsWith("image/") && (Fn(`Compressing "${n}"...`), e = await
|
|
57611
|
+
t.type.startsWith("image/") && (Fn(`Compressing "${n}"...`), e = await XW(t)), Fn(`Uploading "${n}"...`);
|
|
57096
57612
|
let r = "", i = x || b;
|
|
57097
57613
|
if (i) {
|
|
57098
57614
|
let t = await i(e);
|
|
@@ -57349,9 +57865,9 @@ var zW = (e) => ({ body: {
|
|
|
57349
57865
|
themeBgColor: xe,
|
|
57350
57866
|
textColor: l,
|
|
57351
57867
|
fontFamily: u,
|
|
57352
|
-
borderColor:
|
|
57353
|
-
panelColor:
|
|
57354
|
-
mutedTextColor:
|
|
57868
|
+
borderColor: JW(xe, .35),
|
|
57869
|
+
panelColor: JW(o, .68),
|
|
57870
|
+
mutedTextColor: JW(l, .76),
|
|
57355
57871
|
themeOnAccent: c,
|
|
57356
57872
|
inputBackground: c,
|
|
57357
57873
|
inputText: PH(c, l),
|
|
@@ -57535,9 +58051,9 @@ var zW = (e) => ({ body: {
|
|
|
57535
58051
|
"--builder-input-border": J.inputBorder,
|
|
57536
58052
|
"--theme-fg": J.themeOnAccent,
|
|
57537
58053
|
"--theme-accent": J.themeBgColor,
|
|
57538
|
-
"--theme-accent-strong":
|
|
57539
|
-
"--theme-accent-soft":
|
|
57540
|
-
"--theme-accent-border-soft":
|
|
58054
|
+
"--theme-accent-strong": JW(J.themeBgColor, .86),
|
|
58055
|
+
"--theme-accent-soft": JW(J.themeBgColor, .16),
|
|
58056
|
+
"--theme-accent-border-soft": JW(J.themeBgColor, .35),
|
|
57541
58057
|
"--theme-accent-text": J.themeOnAccent
|
|
57542
58058
|
},
|
|
57543
58059
|
children: [
|
|
@@ -57545,7 +58061,7 @@ var zW = (e) => ({ body: {
|
|
|
57545
58061
|
rel: "stylesheet",
|
|
57546
58062
|
href: Pn
|
|
57547
58063
|
}),
|
|
57548
|
-
bn && /* @__PURE__ */ P(
|
|
58064
|
+
bn && /* @__PURE__ */ P(cW, {
|
|
57549
58065
|
message: bn.message,
|
|
57550
58066
|
onClose: In
|
|
57551
58067
|
}),
|
|
@@ -57801,7 +58317,7 @@ var zW = (e) => ({ body: {
|
|
|
57801
58317
|
fontFamily: W.body.style.fontFamily || "-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif"
|
|
57802
58318
|
},
|
|
57803
58319
|
className: `${Dt ? "min-h-[460px]" : "min-h-full"}`,
|
|
57804
|
-
children: /* @__PURE__ */ P(
|
|
58320
|
+
children: /* @__PURE__ */ P(uW, {
|
|
57805
58321
|
rowIds: hr,
|
|
57806
58322
|
disabled: Dt,
|
|
57807
58323
|
children: W.body.rows.length === 0 ? /* @__PURE__ */ F("div", {
|
|
@@ -57925,7 +58441,7 @@ var zW = (e) => ({ body: {
|
|
|
57925
58441
|
isOpen: $t.columnsSection,
|
|
57926
58442
|
onToggle: () => tn("columnsSection"),
|
|
57927
58443
|
contentClassName: "px-4 pb-4 pt-0 flex flex-col gap-0 bg-transparent",
|
|
57928
|
-
children: /* @__PURE__ */ P(
|
|
58444
|
+
children: /* @__PURE__ */ P(AW, { onSelect: (e) => Ze(lr.id, e) })
|
|
57929
58445
|
}),
|
|
57930
58446
|
/* @__PURE__ */ P(XH, {
|
|
57931
58447
|
title: "Row Properties",
|
|
@@ -57934,7 +58450,7 @@ var zW = (e) => ({ body: {
|
|
|
57934
58450
|
children: /* @__PURE__ */ F("div", {
|
|
57935
58451
|
className: "flex flex-col gap-1",
|
|
57936
58452
|
children: [
|
|
57937
|
-
/* @__PURE__ */ P(
|
|
58453
|
+
/* @__PURE__ */ P(bW, {
|
|
57938
58454
|
label: "Height",
|
|
57939
58455
|
value: q.height || "auto",
|
|
57940
58456
|
units: [
|
|
@@ -57947,26 +58463,62 @@ var zW = (e) => ({ body: {
|
|
|
57947
58463
|
max: 2e3,
|
|
57948
58464
|
onChange: (e) => G("height", e)
|
|
57949
58465
|
}),
|
|
57950
|
-
/* @__PURE__ */
|
|
58466
|
+
/* @__PURE__ */ F("div", {
|
|
58467
|
+
className: "flex items-center justify-between py-3 border-b border-slate-800/10 last:border-b-0",
|
|
58468
|
+
children: [/* @__PURE__ */ P("span", {
|
|
58469
|
+
className: "text-sm text-slate-300 font-semibold leading-5 tracking-[0.01em]",
|
|
58470
|
+
children: "Vertical Align"
|
|
58471
|
+
}), /* @__PURE__ */ P("div", {
|
|
58472
|
+
className: "flex items-center gap-1",
|
|
58473
|
+
children: [
|
|
58474
|
+
{
|
|
58475
|
+
value: "flex-start",
|
|
58476
|
+
label: "Top",
|
|
58477
|
+
icon: "⬆"
|
|
58478
|
+
},
|
|
58479
|
+
{
|
|
58480
|
+
value: "center",
|
|
58481
|
+
label: "Center",
|
|
58482
|
+
icon: "⬍"
|
|
58483
|
+
},
|
|
58484
|
+
{
|
|
58485
|
+
value: "flex-end",
|
|
58486
|
+
label: "Bottom",
|
|
58487
|
+
icon: "⬇"
|
|
58488
|
+
},
|
|
58489
|
+
{
|
|
58490
|
+
value: "stretch",
|
|
58491
|
+
label: "Stretch",
|
|
58492
|
+
icon: "↕"
|
|
58493
|
+
}
|
|
58494
|
+
].map((e) => /* @__PURE__ */ P("button", {
|
|
58495
|
+
title: e.label,
|
|
58496
|
+
onClick: () => G("alignItems", e.value),
|
|
58497
|
+
className: `h-6 w-8 rounded text-[11px] transition border ${(q.alignItems || "stretch") === e.value ? "bg-indigo-600 border-indigo-500 text-white" : "bg-slate-900 border-slate-700 text-slate-400 hover:text-white"}`,
|
|
58498
|
+
children: e.icon
|
|
58499
|
+
}, e.value))
|
|
58500
|
+
})]
|
|
58501
|
+
}),
|
|
58502
|
+
/* @__PURE__ */ P(_W, {
|
|
57951
58503
|
label: "Background Color",
|
|
57952
58504
|
value: q.backgroundColor || "#ffffff",
|
|
57953
58505
|
onChange: (e) => G("backgroundColor", e)
|
|
57954
58506
|
}),
|
|
57955
|
-
/* @__PURE__ */ P(
|
|
58507
|
+
/* @__PURE__ */ P(_W, {
|
|
57956
58508
|
label: "Content Background Color",
|
|
57957
58509
|
value: q.contentBackgroundColor || "#ffffff",
|
|
57958
58510
|
onChange: (e) => G("contentBackgroundColor", e)
|
|
57959
58511
|
}),
|
|
57960
|
-
/* @__PURE__ */ P(
|
|
58512
|
+
/* @__PURE__ */ P(SW, {
|
|
57961
58513
|
label: "Content Alignment",
|
|
57962
58514
|
value: q.textAlign || "left",
|
|
57963
58515
|
onChange: (e) => G("textAlign", e)
|
|
57964
58516
|
}),
|
|
57965
|
-
/* @__PURE__ */ P(
|
|
58517
|
+
/* @__PURE__ */ P(MW, {
|
|
57966
58518
|
label: "Upload background",
|
|
57967
58519
|
onUploadMock: rr
|
|
57968
58520
|
}),
|
|
57969
|
-
/* @__PURE__ */ P(
|
|
58521
|
+
/* @__PURE__ */ P(CW, {
|
|
57970
58522
|
label: "Image URL",
|
|
57971
58523
|
value: (() => {
|
|
57972
58524
|
let e = q.backgroundImage || "", t = e.match(/^url\(['"]?([^'"\)]+)['"]?\)$/);
|
|
@@ -57986,27 +58538,27 @@ var zW = (e) => ({ body: {
|
|
|
57986
58538
|
});
|
|
57987
58539
|
}
|
|
57988
58540
|
}),
|
|
57989
|
-
/* @__PURE__ */ P(
|
|
58541
|
+
/* @__PURE__ */ P(jW, {
|
|
57990
58542
|
label: "Padding",
|
|
57991
58543
|
stylePrefix: "padding",
|
|
57992
58544
|
styles: q,
|
|
57993
58545
|
onChange: G
|
|
57994
58546
|
}),
|
|
57995
|
-
/* @__PURE__ */ P(
|
|
58547
|
+
/* @__PURE__ */ P(jW, {
|
|
57996
58548
|
label: "Margin",
|
|
57997
58549
|
stylePrefix: "margin",
|
|
57998
58550
|
styles: q,
|
|
57999
58551
|
onChange: G,
|
|
58000
58552
|
allowNegative: !0
|
|
58001
58553
|
}),
|
|
58002
|
-
/* @__PURE__ */ P(
|
|
58554
|
+
/* @__PURE__ */ P(bW, {
|
|
58003
58555
|
label: "Border Width",
|
|
58004
58556
|
value: q.borderWidth || "1px",
|
|
58005
58557
|
min: 0,
|
|
58006
58558
|
max: 12,
|
|
58007
58559
|
onChange: (e) => G("borderWidth", e)
|
|
58008
58560
|
}),
|
|
58009
|
-
/* @__PURE__ */ P(
|
|
58561
|
+
/* @__PURE__ */ P(xW, {
|
|
58010
58562
|
label: "Border Style",
|
|
58011
58563
|
value: q.borderStyle || "solid",
|
|
58012
58564
|
options: [
|
|
@@ -58029,12 +58581,12 @@ var zW = (e) => ({ body: {
|
|
|
58029
58581
|
],
|
|
58030
58582
|
onChange: (e) => G("borderStyle", e)
|
|
58031
58583
|
}),
|
|
58032
|
-
/* @__PURE__ */ P(
|
|
58584
|
+
/* @__PURE__ */ P(_W, {
|
|
58033
58585
|
label: "Border Color",
|
|
58034
58586
|
value: q.borderColor || "#e2e8f0",
|
|
58035
58587
|
onChange: (e) => G("borderColor", e)
|
|
58036
58588
|
}),
|
|
58037
|
-
/* @__PURE__ */ P(
|
|
58589
|
+
/* @__PURE__ */ P(TW, {
|
|
58038
58590
|
styles: q,
|
|
58039
58591
|
onChange: G
|
|
58040
58592
|
})
|
|
@@ -58047,13 +58599,13 @@ var zW = (e) => ({ body: {
|
|
|
58047
58599
|
onToggle: () => tn("actions"),
|
|
58048
58600
|
children: /* @__PURE__ */ F("div", {
|
|
58049
58601
|
className: "flex flex-col gap-1",
|
|
58050
|
-
children: [/* @__PURE__ */ P(
|
|
58602
|
+
children: [/* @__PURE__ */ P(CW, {
|
|
58051
58603
|
label: "HTML ID",
|
|
58052
58604
|
value: lr?.htmlId || "",
|
|
58053
58605
|
onChange: (e) => {
|
|
58054
58606
|
I && qe(I, { htmlId: e });
|
|
58055
58607
|
}
|
|
58056
|
-
}), /* @__PURE__ */ P(
|
|
58608
|
+
}), /* @__PURE__ */ P(CW, {
|
|
58057
58609
|
label: "HTML Class Names",
|
|
58058
58610
|
value: lr?.htmlClass || "",
|
|
58059
58611
|
onChange: (e) => {
|
|
@@ -58107,7 +58659,7 @@ var zW = (e) => ({ body: {
|
|
|
58107
58659
|
children: /* @__PURE__ */ F("div", {
|
|
58108
58660
|
className: "flex flex-col gap-1",
|
|
58109
58661
|
children: [
|
|
58110
|
-
/* @__PURE__ */ P(
|
|
58662
|
+
/* @__PURE__ */ P(bW, {
|
|
58111
58663
|
label: "Width",
|
|
58112
58664
|
value: ur?.width || "100%",
|
|
58113
58665
|
units: [
|
|
@@ -58122,7 +58674,7 @@ var zW = (e) => ({ body: {
|
|
|
58122
58674
|
L && e && Qe(L, e);
|
|
58123
58675
|
}
|
|
58124
58676
|
}),
|
|
58125
|
-
/* @__PURE__ */ P(
|
|
58677
|
+
/* @__PURE__ */ P(bW, {
|
|
58126
58678
|
label: "Height",
|
|
58127
58679
|
value: q.height || "auto",
|
|
58128
58680
|
units: [
|
|
@@ -58169,7 +58721,7 @@ var zW = (e) => ({ body: {
|
|
|
58169
58721
|
})]
|
|
58170
58722
|
}),
|
|
58171
58723
|
q.display === "flex" && /* @__PURE__ */ F(N, { children: [
|
|
58172
|
-
/* @__PURE__ */ P(
|
|
58724
|
+
/* @__PURE__ */ P(bW, {
|
|
58173
58725
|
label: "Gap",
|
|
58174
58726
|
value: q.gap || "10px",
|
|
58175
58727
|
units: [
|
|
@@ -58254,32 +58806,32 @@ var zW = (e) => ({ body: {
|
|
|
58254
58806
|
}, e.value))
|
|
58255
58807
|
})]
|
|
58256
58808
|
}),
|
|
58257
|
-
/* @__PURE__ */ P(
|
|
58809
|
+
/* @__PURE__ */ P(_W, {
|
|
58258
58810
|
label: "Background Color",
|
|
58259
58811
|
value: q.backgroundColor || "transparent",
|
|
58260
58812
|
onChange: (e) => G("backgroundColor", e)
|
|
58261
58813
|
}),
|
|
58262
|
-
/* @__PURE__ */ P(
|
|
58814
|
+
/* @__PURE__ */ P(jW, {
|
|
58263
58815
|
label: "Padding",
|
|
58264
58816
|
stylePrefix: "padding",
|
|
58265
58817
|
styles: q,
|
|
58266
58818
|
onChange: G
|
|
58267
58819
|
}),
|
|
58268
|
-
/* @__PURE__ */ P(
|
|
58820
|
+
/* @__PURE__ */ P(jW, {
|
|
58269
58821
|
label: "Margin",
|
|
58270
58822
|
stylePrefix: "margin",
|
|
58271
58823
|
styles: q,
|
|
58272
58824
|
onChange: G,
|
|
58273
58825
|
allowNegative: !0
|
|
58274
58826
|
}),
|
|
58275
|
-
/* @__PURE__ */ P(
|
|
58827
|
+
/* @__PURE__ */ P(bW, {
|
|
58276
58828
|
label: "Border Width",
|
|
58277
58829
|
value: q.borderWidth || "0px",
|
|
58278
58830
|
min: 0,
|
|
58279
58831
|
max: 12,
|
|
58280
58832
|
onChange: (e) => G("borderWidth", e)
|
|
58281
58833
|
}),
|
|
58282
|
-
/* @__PURE__ */ P(
|
|
58834
|
+
/* @__PURE__ */ P(xW, {
|
|
58283
58835
|
label: "Border Style",
|
|
58284
58836
|
value: q.borderStyle || "solid",
|
|
58285
58837
|
options: [
|
|
@@ -58302,25 +58854,25 @@ var zW = (e) => ({ body: {
|
|
|
58302
58854
|
],
|
|
58303
58855
|
onChange: (e) => G("borderStyle", e)
|
|
58304
58856
|
}),
|
|
58305
|
-
/* @__PURE__ */ P(
|
|
58857
|
+
/* @__PURE__ */ P(_W, {
|
|
58306
58858
|
label: "Border Color",
|
|
58307
58859
|
value: q.borderColor || "#cbd5e1",
|
|
58308
58860
|
onChange: (e) => G("borderColor", e)
|
|
58309
58861
|
}),
|
|
58310
|
-
/* @__PURE__ */ P(
|
|
58862
|
+
/* @__PURE__ */ P(TW, {
|
|
58311
58863
|
styles: q,
|
|
58312
58864
|
onChange: G
|
|
58313
58865
|
}),
|
|
58314
|
-
/* @__PURE__ */ P(
|
|
58866
|
+
/* @__PURE__ */ P(kW, {
|
|
58315
58867
|
styles: q,
|
|
58316
58868
|
onChange: G
|
|
58317
58869
|
}),
|
|
58318
|
-
/* @__PURE__ */ P(
|
|
58870
|
+
/* @__PURE__ */ P(CW, {
|
|
58319
58871
|
label: "HTML ID",
|
|
58320
58872
|
value: dr.htmlId || "",
|
|
58321
58873
|
onChange: (e) => Wn("htmlId", e)
|
|
58322
58874
|
}),
|
|
58323
|
-
/* @__PURE__ */ P(
|
|
58875
|
+
/* @__PURE__ */ P(CW, {
|
|
58324
58876
|
label: "HTML Class Names",
|
|
58325
58877
|
value: dr.htmlClass || "",
|
|
58326
58878
|
onChange: (e) => Wn("htmlClass", e)
|
|
@@ -58338,7 +58890,7 @@ var zW = (e) => ({ body: {
|
|
|
58338
58890
|
]
|
|
58339
58891
|
})
|
|
58340
58892
|
})] }),
|
|
58341
|
-
/* @__PURE__ */ P(
|
|
58893
|
+
/* @__PURE__ */ P(sW, {
|
|
58342
58894
|
selectedElement: K,
|
|
58343
58895
|
currentAttrs: dr,
|
|
58344
58896
|
currentStyles: q,
|
|
@@ -58347,16 +58899,16 @@ var zW = (e) => ({ body: {
|
|
|
58347
58899
|
onTransientAttrChange: Wn,
|
|
58348
58900
|
onTransientStyleChange: G,
|
|
58349
58901
|
AccordionSection: XH,
|
|
58350
|
-
InlineTextInput:
|
|
58351
|
-
InlineSelect:
|
|
58352
|
-
InlineColorPicker:
|
|
58353
|
-
InlineAlignment:
|
|
58354
|
-
InlineCounter:
|
|
58902
|
+
InlineTextInput: CW,
|
|
58903
|
+
InlineSelect: xW,
|
|
58904
|
+
InlineColorPicker: _W,
|
|
58905
|
+
InlineAlignment: SW,
|
|
58906
|
+
InlineCounter: bW,
|
|
58355
58907
|
Toggle: hU,
|
|
58356
|
-
InlineTextArea:
|
|
58357
|
-
SpacingControls:
|
|
58358
|
-
BorderRadiusControls:
|
|
58359
|
-
BoxShadowControls:
|
|
58908
|
+
InlineTextArea: wW,
|
|
58909
|
+
SpacingControls: jW,
|
|
58910
|
+
BorderRadiusControls: TW,
|
|
58911
|
+
BoxShadowControls: kW,
|
|
58360
58912
|
handleUploadMock: rr,
|
|
58361
58913
|
disableImageUpload: w,
|
|
58362
58914
|
onOpenImageLibrary: ct,
|
|
@@ -58396,7 +58948,7 @@ var zW = (e) => ({ body: {
|
|
|
58396
58948
|
}),
|
|
58397
58949
|
Ft === "blocks" && /* @__PURE__ */ P(YH, {
|
|
58398
58950
|
DraggablePaletteItem: eU,
|
|
58399
|
-
LayoutPreview:
|
|
58951
|
+
LayoutPreview: lW,
|
|
58400
58952
|
tierFeatures: be,
|
|
58401
58953
|
onTapAdd: jt === "mobile" ? Yn : void 0
|
|
58402
58954
|
}),
|
|
@@ -58410,13 +58962,13 @@ var zW = (e) => ({ body: {
|
|
|
58410
58962
|
handleUploadFavicon: ir,
|
|
58411
58963
|
disableImageUpload: w,
|
|
58412
58964
|
onOpenImageLibrary: ct,
|
|
58413
|
-
InlineColorPicker:
|
|
58414
|
-
InlineAlignment:
|
|
58415
|
-
InlineSelect:
|
|
58965
|
+
InlineColorPicker: _W,
|
|
58966
|
+
InlineAlignment: SW,
|
|
58967
|
+
InlineSelect: xW,
|
|
58416
58968
|
Toggle: hU,
|
|
58417
|
-
InlineTextInput:
|
|
58418
|
-
InlineTextArea:
|
|
58419
|
-
SpacingControls:
|
|
58969
|
+
InlineTextInput: CW,
|
|
58970
|
+
InlineTextArea: wW,
|
|
58971
|
+
SpacingControls: jW,
|
|
58420
58972
|
notify: Fn
|
|
58421
58973
|
}),
|
|
58422
58974
|
Ft === "images" && (be.stockImagesEnabled ? /* @__PURE__ */ P(QH, {
|
|
@@ -58432,7 +58984,7 @@ var zW = (e) => ({ body: {
|
|
|
58432
58984
|
applyImageToSelection: Or,
|
|
58433
58985
|
ICONS: X,
|
|
58434
58986
|
panelBackgroundColor: o
|
|
58435
|
-
}) : /* @__PURE__ */ P(
|
|
58987
|
+
}) : /* @__PURE__ */ P(YW, {
|
|
58436
58988
|
title: "Stock Images",
|
|
58437
58989
|
plan: "PRO"
|
|
58438
58990
|
})),
|
|
@@ -58447,7 +58999,7 @@ var zW = (e) => ({ body: {
|
|
|
58447
58999
|
ICONS: X,
|
|
58448
59000
|
panelBackgroundColor: o
|
|
58449
59001
|
}),
|
|
58450
|
-
Ft === "strata" && (be.strataEnabled ? /* @__PURE__ */ P(fU, {}) : /* @__PURE__ */ P(
|
|
59002
|
+
Ft === "strata" && (be.strataEnabled ? /* @__PURE__ */ P(fU, {}) : /* @__PURE__ */ P(YW, {
|
|
58451
59003
|
title: "Strata Design System",
|
|
58452
59004
|
plan: "PRO"
|
|
58453
59005
|
})),
|
|
@@ -58590,10 +59142,10 @@ var zW = (e) => ({ body: {
|
|
|
58590
59142
|
})
|
|
58591
59143
|
});
|
|
58592
59144
|
});
|
|
58593
|
-
|
|
59145
|
+
ZW.displayName = "PlexoBuilder";
|
|
58594
59146
|
//#endregion
|
|
58595
59147
|
//#region src/playground.tsx
|
|
58596
|
-
var
|
|
59148
|
+
var QW = de((e, t) => {
|
|
58597
59149
|
let n = k(null), r = k(null), i = k(null), [a, o] = A(1), s = k(1), [c, l] = A(!0);
|
|
58598
59150
|
return me(t, () => ({
|
|
58599
59151
|
exportDesign: async (e) => {
|
|
@@ -58648,13 +59200,13 @@ var GW = de((e, t) => {
|
|
|
58648
59200
|
width: "100%",
|
|
58649
59201
|
height: "100%"
|
|
58650
59202
|
},
|
|
58651
|
-
children: /* @__PURE__ */ P(
|
|
59203
|
+
children: /* @__PURE__ */ P(ZW, {
|
|
58652
59204
|
ref: n,
|
|
58653
59205
|
...e
|
|
58654
59206
|
})
|
|
58655
59207
|
})]
|
|
58656
59208
|
});
|
|
58657
59209
|
});
|
|
58658
|
-
|
|
59210
|
+
QW.displayName = "PlexoBuilder";
|
|
58659
59211
|
//#endregion
|
|
58660
|
-
export { NV as ColumnJSONSchema, MV as ElementJSONSchema,
|
|
59212
|
+
export { NV as ColumnJSONSchema, MV as ElementJSONSchema, QW as PlexoBuilder, tH as PlexoRenderer, PV as RowJSONSchema, UV as SafeHTML, zV as TemplateJSONSchema, zW as applyTokensToElement, E as compileToHTML, y as compileToHTMLWithStrataAuto, ne as compileToPlainText, RW as createTokenMapping, UW as createTokenSwatch, VW as generateTokenCSS, BW as getTokensByCategory, ae as injectStrataBundle, ce as parseJsonToTargetFormat, HW as resolveTokenValue, DV as safeJsonParse, HV as sanitizeHtml, EV as sanitizeObject, VV as sanitizeStyleObject, BV as sanitizeStyleString };
|