@charisol/plexo-sdk 1.1.7 → 1.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -53314,7 +53314,215 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
53314
53314
  })
53315
53315
  })
53316
53316
  ] });
53317
- }, eW = (e) => /* @__PURE__ */ F(N, { children: [
53317
+ }, eW = [
53318
+ "blog_title",
53319
+ "blog_content",
53320
+ "blog_date",
53321
+ "blog_author",
53322
+ "blog_categories"
53323
+ ], tW = {
53324
+ blog_title: {
53325
+ fontSize: "32px",
53326
+ fontWeight: "800",
53327
+ color: "#1e293b"
53328
+ },
53329
+ blog_content: {
53330
+ fontSize: "16px",
53331
+ fontWeight: "400",
53332
+ color: "#334155"
53333
+ },
53334
+ blog_date: {
53335
+ fontSize: "14px",
53336
+ fontWeight: "400",
53337
+ color: "#64748b"
53338
+ },
53339
+ blog_author: {
53340
+ fontSize: "14px",
53341
+ fontWeight: "600",
53342
+ color: "#334155"
53343
+ },
53344
+ blog_categories: {
53345
+ fontSize: "13px",
53346
+ fontWeight: "600",
53347
+ color: "#4f46e5"
53348
+ }
53349
+ }, nW = (e) => {
53350
+ let { selectedElement: t, currentStyles: n, openAccordions: r, toggleAccordion: i, onTransientStyleChange: a, AccordionSection: o, InlineSelect: s, InlineColorPicker: c, InlineAlignment: l, InlineCounter: u } = e;
53351
+ if (!t || !eW.includes(t.type)) return null;
53352
+ let d = tW[t.type], f = v.reduce((e, t) => (e[t.style] || (e[t.style] = []), e[t.style].push(t), e), {}), p = [
53353
+ {
53354
+ label: "── System ──",
53355
+ value: "__sep__",
53356
+ disabled: !0
53357
+ },
53358
+ {
53359
+ label: "System Sans",
53360
+ value: "sans-serif"
53361
+ },
53362
+ {
53363
+ label: "System Serif",
53364
+ value: "serif"
53365
+ },
53366
+ {
53367
+ label: "System Mono",
53368
+ value: "monospace"
53369
+ },
53370
+ {
53371
+ label: "── Sans-serif ──",
53372
+ value: "__sep_sans__",
53373
+ disabled: !0
53374
+ },
53375
+ ...(f.sans || []).map((e) => ({
53376
+ label: e.label,
53377
+ value: e.value
53378
+ })),
53379
+ {
53380
+ label: "── Serif ──",
53381
+ value: "__sep_serif__",
53382
+ disabled: !0
53383
+ },
53384
+ ...(f.serif || []).map((e) => ({
53385
+ label: e.label,
53386
+ value: e.value
53387
+ })),
53388
+ {
53389
+ label: "── Display ──",
53390
+ value: "__sep_display__",
53391
+ disabled: !0
53392
+ },
53393
+ ...(f.display || []).map((e) => ({
53394
+ label: e.label,
53395
+ value: e.value
53396
+ })),
53397
+ {
53398
+ label: "── Handwriting ──",
53399
+ value: "__sep_hw__",
53400
+ disabled: !0
53401
+ },
53402
+ ...(f.handwriting || []).map((e) => ({
53403
+ label: e.label,
53404
+ value: e.value
53405
+ })),
53406
+ {
53407
+ label: "── Monospace ──",
53408
+ value: "__sep_mono__",
53409
+ disabled: !0
53410
+ },
53411
+ ...(f.mono || []).map((e) => ({
53412
+ label: e.label,
53413
+ value: e.value
53414
+ }))
53415
+ ];
53416
+ return /* @__PURE__ */ P(o, {
53417
+ title: "Typography",
53418
+ isOpen: r.typography,
53419
+ onToggle: () => i("typography"),
53420
+ children: /* @__PURE__ */ F("div", {
53421
+ className: "flex flex-col gap-1",
53422
+ children: [
53423
+ /* @__PURE__ */ P(s, {
53424
+ label: "Font Family",
53425
+ value: n.fontFamily || "'Plus Jakarta Sans', sans-serif",
53426
+ options: p,
53427
+ onChange: (e) => {
53428
+ e.startsWith("__sep") || a("fontFamily", e);
53429
+ }
53430
+ }),
53431
+ /* @__PURE__ */ P(s, {
53432
+ label: "Font Weight",
53433
+ value: n.fontWeight || d.fontWeight,
53434
+ options: [
53435
+ {
53436
+ label: "Thin",
53437
+ value: "100"
53438
+ },
53439
+ {
53440
+ label: "Extra Light",
53441
+ value: "200"
53442
+ },
53443
+ {
53444
+ label: "Light",
53445
+ value: "300"
53446
+ },
53447
+ {
53448
+ label: "Regular",
53449
+ value: "400"
53450
+ },
53451
+ {
53452
+ label: "Medium",
53453
+ value: "500"
53454
+ },
53455
+ {
53456
+ label: "Semi-Bold",
53457
+ value: "600"
53458
+ },
53459
+ {
53460
+ label: "Bold",
53461
+ value: "700"
53462
+ },
53463
+ {
53464
+ label: "Extra-Bold",
53465
+ value: "800"
53466
+ },
53467
+ {
53468
+ label: "Black",
53469
+ value: "900"
53470
+ }
53471
+ ],
53472
+ onChange: (e) => a("fontWeight", e)
53473
+ }),
53474
+ /* @__PURE__ */ P(u, {
53475
+ label: "Font Size",
53476
+ value: n.fontSize || d.fontSize,
53477
+ units: [
53478
+ "px",
53479
+ "em",
53480
+ "rem",
53481
+ "vw"
53482
+ ],
53483
+ min: 8,
53484
+ max: 120,
53485
+ onChange: (e) => a("fontSize", e)
53486
+ }),
53487
+ /* @__PURE__ */ P(c, {
53488
+ label: "Color",
53489
+ value: n.color || d.color,
53490
+ onChange: (e) => a("color", e)
53491
+ }),
53492
+ /* @__PURE__ */ P(l, {
53493
+ label: "Text Align",
53494
+ value: n.textAlign || "left",
53495
+ onChange: (e) => a("textAlign", e)
53496
+ }),
53497
+ /* @__PURE__ */ P(u, {
53498
+ label: "Line Height",
53499
+ value: n.lineHeight || "150%",
53500
+ units: [
53501
+ "%",
53502
+ "em",
53503
+ "px"
53504
+ ],
53505
+ min: 80,
53506
+ max: 300,
53507
+ step: 5,
53508
+ onChange: (e) => a("lineHeight", e)
53509
+ }),
53510
+ /* @__PURE__ */ P(u, {
53511
+ label: "Letter Spacing",
53512
+ value: n.letterSpacing || "0px",
53513
+ units: [
53514
+ "px",
53515
+ "em",
53516
+ "rem"
53517
+ ],
53518
+ min: -5,
53519
+ max: 20,
53520
+ onChange: (e) => a("letterSpacing", e)
53521
+ })
53522
+ ]
53523
+ })
53524
+ });
53525
+ }, rW = (e) => /* @__PURE__ */ F(N, { children: [
53318
53526
  /* @__PURE__ */ P(kU, { ...e }),
53319
53527
  /* @__PURE__ */ P(jU, { ...e }),
53320
53528
  /* @__PURE__ */ P(NU, { ...e }),
@@ -53331,10 +53539,11 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
53331
53539
  /* @__PURE__ */ P(KU, { ...e }),
53332
53540
  /* @__PURE__ */ P(qU, { ...e }),
53333
53541
  /* @__PURE__ */ P($U, { ...e }),
53542
+ /* @__PURE__ */ P(nW, { ...e }),
53334
53543
  /* @__PURE__ */ P(JU, { ...e }),
53335
53544
  /* @__PURE__ */ P(YU, { ...e }),
53336
53545
  /* @__PURE__ */ P(XU, { ...e })
53337
- ] }), tW = ({ message: e, onClose: t }) => /* @__PURE__ */ P("div", {
53546
+ ] }), iW = ({ message: e, onClose: t }) => /* @__PURE__ */ P("div", {
53338
53547
  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
53548
  children: /* @__PURE__ */ P("div", {
53340
53549
  className: "plexo-alert-top-card rounded-xl border shadow-2xl w-full px-4 py-3 pointer-events-auto",
@@ -53355,7 +53564,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
53355
53564
  })]
53356
53565
  })
53357
53566
  })
53358
- }), nW = ({ widths: e, percentages: t }) => /* @__PURE__ */ P("div", {
53567
+ }), aW = ({ widths: e, percentages: t }) => /* @__PURE__ */ P("div", {
53359
53568
  className: "w-full h-full flex items-stretch gap-1 overflow-hidden",
53360
53569
  children: e.map((e, n) => /* @__PURE__ */ P("div", {
53361
53570
  style: {
@@ -53371,7 +53580,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
53371
53580
  children: t[n]
53372
53581
  })
53373
53582
  }, `${e}-${n}`))
53374
- }), rW = ({ children: e, rowIds: t, disabled: n }) => {
53583
+ }), oW = ({ children: e, rowIds: t, disabled: n }) => {
53375
53584
  let { setNodeRef: r, isOver: i } = xe({
53376
53585
  id: "canvas-root",
53377
53586
  data: { type: "canvas" },
@@ -53389,10 +53598,10 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
53389
53598
  })
53390
53599
  })
53391
53600
  });
53392
- }, iW = (e, t) => {
53601
+ }, sW = (e, t) => {
53393
53602
  let n = t === "tablet" ? "tablet" : t === "mobile" ? "mobile" : null, r = n === "tablet" ? e.styleTablet : n === "mobile" ? e.styleMobile : void 0;
53394
53603
  return S(e.style, r, n);
53395
- }, aW = ({ row: e, selectedRowId: t, selectRow: n, previewMode: r, children: i, deviceView: a, selectedElementId: o }) => {
53604
+ }, cW = ({ row: e, selectedRowId: t, selectRow: n, previewMode: r, children: i, deviceView: a, selectedElementId: o }) => {
53396
53605
  let { attributes: s, listeners: c, setNodeRef: l, transform: u, transition: d, isDragging: f, isOver: p } = L({
53397
53606
  id: e.id,
53398
53607
  data: {
@@ -53403,7 +53612,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
53403
53612
  }), m = pe(Me), h = p && m.overId === e.id && m.edge === "bottom", g = {
53404
53613
  transform: Ee.Transform.toString(u),
53405
53614
  transition: d,
53406
- ...iW(e, a)
53615
+ ...sW(e, a)
53407
53616
  }, _ = t === e.id, v = 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
53617
  return /* @__PURE__ */ F("div", {
53409
53618
  ref: l,
@@ -53431,7 +53640,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
53431
53640
  })
53432
53641
  ]
53433
53642
  });
53434
- }, oW = ({ row: e, parentRowId: t, parentColId: n, selectedRowId: r, selectRow: i, previewMode: a, children: o, deviceView: s, selectedElementId: c }) => {
53643
+ }, lW = ({ row: e, parentRowId: t, parentColId: n, selectedRowId: r, selectRow: i, previewMode: a, children: o, deviceView: s, selectedElementId: c }) => {
53435
53644
  let { attributes: l, listeners: u, setNodeRef: d, transform: f, transition: p, isDragging: m, isOver: h } = L({
53436
53645
  id: e.id,
53437
53646
  data: {
@@ -53444,7 +53653,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
53444
53653
  }), g = pe(Me), _ = h && g.overId === e.id && g.edge === "bottom", v = {
53445
53654
  transform: Ee.Transform.toString(f),
53446
53655
  transition: p,
53447
- ...iW(e, s)
53656
+ ...sW(e, s)
53448
53657
  }, y = r === e.id, b = 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
53658
  return /* @__PURE__ */ F("div", {
53450
53659
  ref: d,
@@ -53472,11 +53681,11 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
53472
53681
  })
53473
53682
  ]
53474
53683
  });
53475
- }, sW = (e) => e.parentRowId && e.parentColId ? /* @__PURE__ */ P(oW, {
53684
+ }, uW = (e) => e.parentRowId && e.parentColId ? /* @__PURE__ */ P(lW, {
53476
53685
  ...e,
53477
53686
  parentRowId: e.parentRowId,
53478
53687
  parentColId: e.parentColId
53479
- }) : /* @__PURE__ */ P(aW, { ...e }), cW = ({ col: e, rowId: n, parentRowId: r, parentColId: i, selectedColumnId: a, selectColumn: o, previewMode: s, children: c, deviceView: l }) => {
53688
+ }) : /* @__PURE__ */ P(cW, { ...e }), dW = ({ col: e, rowId: n, parentRowId: r, parentColId: i, selectedColumnId: a, selectColumn: o, previewMode: s, children: c, deviceView: l }) => {
53480
53689
  let { setNodeRef: u, isOver: d } = xe({
53481
53690
  id: e.id,
53482
53691
  data: {
@@ -53524,7 +53733,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
53524
53733
  })
53525
53734
  })]
53526
53735
  });
53527
- }, lW = ({ filter: e, onSelect: t, currentValue: n }) => {
53736
+ }, fW = ({ filter: e, onSelect: t, currentValue: n }) => {
53528
53737
  let [r, i] = A(!1), a = k(null), o = k(null), [s, c] = A({
53529
53738
  top: 0,
53530
53739
  left: 0
@@ -53618,7 +53827,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
53618
53827
  }, e.key);
53619
53828
  })
53620
53829
  }), document.body)] });
53621
- }, uW = ({ label: e, value: t, onChange: n, textColor: r, backgroundColor: i }) => {
53830
+ }, pW = ({ label: e, value: t, onChange: n, textColor: r, backgroundColor: i }) => {
53622
53831
  let [a, o] = A(!1), s = k(null), c = k(null), l = k(null), u = !t || t === "transparent", d = ((e) => {
53623
53832
  let t = "#ffffff", n = 100, r = (e || "").trim().toLowerCase();
53624
53833
  if (r.startsWith("#")) if (r.length === 9) {
@@ -53741,7 +53950,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
53741
53950
  className: "w-20 bg-transparent text-right font-mono text-sm outline-none pr-1",
53742
53951
  style: { color: "var(--builder-input-text)" }
53743
53952
  }),
53744
- /* @__PURE__ */ P(lW, {
53953
+ /* @__PURE__ */ P(fW, {
53745
53954
  filter: (e) => e.type === "color" || /^#[0-9a-fA-F]{3,8}$|^rgba?\(|^hsla?\(/.test(e.value),
53746
53955
  onSelect: n,
53747
53956
  currentValue: t
@@ -53880,7 +54089,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
53880
54089
  ]
53881
54090
  })]
53882
54091
  });
53883
- }, dW = ({ 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" }) => {
54092
+ }, mW = ({ 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
54093
  let { attributes: M, listeners: ve, setNodeRef: ye, transform: be, transition: xe, isDragging: Se, isOver: Ce } = L({
53885
54094
  id: t.id,
53886
54095
  data: {
@@ -54300,7 +54509,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
54300
54509
  className: "absolute top-full mt-2 left-0 p-3 rounded-xl border border-slate-700 shadow-2xl z-[99999] w-72",
54301
54510
  style: { backgroundColor: he },
54302
54511
  onClick: (e) => e.stopPropagation(),
54303
- children: /* @__PURE__ */ P(uW, {
54512
+ children: /* @__PURE__ */ P(pW, {
54304
54513
  label: "Text Color",
54305
54514
  value: H.color || "#6366f1",
54306
54515
  textColor: me,
@@ -54324,7 +54533,7 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
54324
54533
  className: "absolute top-full mt-2 left-0 p-3 rounded-xl border border-slate-700 shadow-2xl z-[99999] w-72",
54325
54534
  style: { backgroundColor: he },
54326
54535
  onClick: (e) => e.stopPropagation(),
54327
- children: /* @__PURE__ */ P(uW, {
54536
+ children: /* @__PURE__ */ P(pW, {
54328
54537
  label: "Highlight Color",
54329
54538
  value: H.backgroundColor || "#ffffff",
54330
54539
  textColor: me,
@@ -54901,40 +55110,62 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
54901
55110
  }),
54902
55111
  (t.type === "blog_title" || t.type === "blog_content" || t.type === "blog_featured_image" || t.type === "blog_date" || t.type === "blog_author" || t.type === "blog_categories" || t.type === "blog_comments" || t.type === "blog_post_list") && (() => {
54903
55112
  let e = {
54904
- blog_title: {
54905
- label: "Post Title",
54906
- minHeight: "48px"
54907
- },
54908
- blog_content: {
54909
- label: "Post Content",
54910
- minHeight: "220px"
54911
- },
54912
- blog_featured_image: {
54913
- label: "Featured Image",
54914
- minHeight: "200px"
54915
- },
54916
- blog_date: {
54917
- label: "Post Date",
54918
- minHeight: "28px"
54919
- },
54920
- blog_author: {
54921
- label: "Post Author",
54922
- minHeight: "28px"
54923
- },
54924
- blog_categories: {
54925
- label: "Categories",
54926
- minHeight: "28px"
54927
- },
54928
- blog_comments: {
54929
- label: "Comments Section",
54930
- minHeight: "160px"
54931
- },
54932
- blog_post_list: {
54933
- label: "Post List (posts render here in a grid)",
54934
- minHeight: "260px"
54935
- }
55113
+ blog_title: "Post Title",
55114
+ blog_content: "Post Content",
55115
+ blog_featured_image: "Featured Image",
55116
+ blog_date: "Post Date",
55117
+ blog_author: "Post Author",
55118
+ blog_categories: "Categories",
55119
+ blog_comments: "Comments Section",
55120
+ blog_post_list: "Post List (posts render here in a grid)"
55121
+ }, n = {
55122
+ blog_title: "48px",
55123
+ blog_content: "220px",
55124
+ blog_featured_image: "200px",
55125
+ blog_date: "28px",
55126
+ blog_author: "28px",
55127
+ blog_categories: "28px",
55128
+ blog_comments: "160px",
55129
+ blog_post_list: "260px"
55130
+ }, r = {
55131
+ blog_title: "Sample Post Title",
55132
+ blog_content: "This is sample post content, styled exactly as a real post’s body will render — check that it reads clearly against its background before publishing.",
55133
+ blog_date: "August 7, 2026",
55134
+ blog_author: "By Jane Doe",
55135
+ blog_categories: "Design · Marketing"
54936
55136
  }[t.type];
54937
- return /* @__PURE__ */ P("div", {
55137
+ return r ? /* @__PURE__ */ F("div", {
55138
+ style: {
55139
+ width: "100%",
55140
+ position: "relative"
55141
+ },
55142
+ children: [/* @__PURE__ */ P("span", {
55143
+ 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",
55144
+ children: e[t.type]
55145
+ }), /* @__PURE__ */ P("div", {
55146
+ style: {
55147
+ minHeight: n[t.type],
55148
+ color: H.color,
55149
+ fontSize: H.fontSize,
55150
+ fontWeight: H.fontWeight,
55151
+ fontFamily: H.fontFamily,
55152
+ fontStyle: H.fontStyle,
55153
+ textDecoration: H.textDecoration,
55154
+ lineHeight: H.lineHeight,
55155
+ letterSpacing: H.letterSpacing,
55156
+ textAlign: H.textAlign,
55157
+ backgroundColor: H.backgroundColor,
55158
+ borderWidth: H.borderWidth,
55159
+ borderStyle: H.borderStyle,
55160
+ borderColor: H.borderColor,
55161
+ borderRadius: H.borderRadius,
55162
+ padding: H.padding ?? "4px",
55163
+ margin: H.margin,
55164
+ whiteSpace: "pre-wrap"
55165
+ },
55166
+ children: r
55167
+ })]
55168
+ }) : /* @__PURE__ */ P("div", {
54938
55169
  style: {
54939
55170
  padding: H.padding,
54940
55171
  margin: H.margin,
@@ -54943,10 +55174,10 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
54943
55174
  children: /* @__PURE__ */ P("div", {
54944
55175
  className: "flex items-center justify-center text-center rounded-lg border-2 border-dashed border-purple-500/40 bg-purple-500/5 text-purple-300 text-xs font-semibold gap-2",
54945
55176
  style: {
54946
- minHeight: e.minHeight,
55177
+ minHeight: n[t.type],
54947
55178
  width: "100%"
54948
55179
  },
54949
- children: e.label
55180
+ children: e[t.type]
54950
55181
  })
54951
55182
  });
54952
55183
  })(),
@@ -55378,13 +55609,13 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
55378
55609
  };
55379
55610
  //#endregion
55380
55611
  //#region src/components/inlineControls/InlineCounter.tsx
55381
- function fW(e, t) {
55612
+ function hW(e, t) {
55382
55613
  if (t) return t;
55383
55614
  let n = e.toLowerCase();
55384
55615
  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;
55385
55616
  }
55386
- var pW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 500, step: o = 1, onChange: s, strataTokenKey: c }) => {
55387
- 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 = fW(e, c), p = (e) => {
55617
+ var gW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 500, step: o = 1, onChange: s, strataTokenKey: c }) => {
55618
+ let l = String(t || "").match(/^([+-]?\d+(?:\.\d+)?)(.*)$/), u = l ? parseFloat(l[1]) : 0, d = l && l[2] ? l[2].trim() : r && r.length > 0 ? r[0] : n, f = hW(e, c), p = (e) => {
55388
55619
  s(`${e}${d}`);
55389
55620
  }, m = (e) => {
55390
55621
  s(`${u}${e}`);
@@ -55397,7 +55628,7 @@ var pW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
55397
55628
  }), /* @__PURE__ */ F("div", {
55398
55629
  className: "flex items-center gap-1.5",
55399
55630
  children: [
55400
- f && /* @__PURE__ */ P(lW, {
55631
+ f && /* @__PURE__ */ P(fW, {
55401
55632
  filter: (e) => e.key.includes(f),
55402
55633
  onSelect: (e) => s(e),
55403
55634
  currentValue: t
@@ -55468,7 +55699,7 @@ var pW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
55468
55699
  ]
55469
55700
  })]
55470
55701
  });
55471
- }, mW = ({ label: e, value: t, options: n, onChange: r }) => /* @__PURE__ */ F("div", {
55702
+ }, _W = ({ label: e, value: t, options: n, onChange: r }) => /* @__PURE__ */ F("div", {
55472
55703
  className: "flex items-center justify-between py-3 border-b border-slate-800/10 last:border-b-0",
55473
55704
  children: [/* @__PURE__ */ P("span", {
55474
55705
  className: "text-sm text-slate-300 font-semibold leading-5 tracking-[0.01em]",
@@ -55481,7 +55712,7 @@ var pW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
55481
55712
  menuClassName: "min-w-[190px]",
55482
55713
  align: "right"
55483
55714
  })]
55484
- }), hW = ({ label: e, value: t, onChange: n }) => {
55715
+ }), vW = ({ label: e, value: t, onChange: n }) => {
55485
55716
  let r = [
55486
55717
  {
55487
55718
  value: "left",
@@ -55519,7 +55750,7 @@ var pW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
55519
55750
  }, e.value))
55520
55751
  })]
55521
55752
  });
55522
- }, gW = ({ label: e, value: t, onChange: n }) => /* @__PURE__ */ F("div", {
55753
+ }, yW = ({ label: e, value: t, onChange: n }) => /* @__PURE__ */ F("div", {
55523
55754
  className: "flex flex-col gap-2 py-3 border-b border-slate-800/10 last:border-b-0",
55524
55755
  children: [/* @__PURE__ */ P("span", {
55525
55756
  className: "text-[11px] text-slate-350 font-semibold uppercase tracking-[0.12em] leading-5",
@@ -55535,7 +55766,7 @@ var pW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
55535
55766
  color: "var(--builder-input-text)"
55536
55767
  }
55537
55768
  })]
55538
- }), _W = ({ label: e, value: t, rows: n = 4, onChange: r, codeMode: i }) => /* @__PURE__ */ F("div", {
55769
+ }), bW = ({ label: e, value: t, rows: n = 4, onChange: r, codeMode: i }) => /* @__PURE__ */ F("div", {
55539
55770
  className: "flex flex-col gap-2 py-3 border-b border-slate-800/10 last:border-b-0",
55540
55771
  children: [/* @__PURE__ */ P("span", {
55541
55772
  className: "text-[11px] text-slate-350 font-semibold uppercase tracking-[0.12em] leading-5",
@@ -55553,7 +55784,7 @@ var pW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
55553
55784
  fontFamily: i ? "Fira Code, Consolas, Monaco, monospace" : void 0
55554
55785
  }
55555
55786
  })]
55556
- }), vW = ({ styles: e, onChange: t }) => {
55787
+ }), xW = ({ styles: e, onChange: t }) => {
55557
55788
  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) => {
55558
55789
  t("borderRadius", e), t("borderTopLeftRadius", e), t("borderTopRightRadius", e), t("borderBottomRightRadius", e), t("borderBottomLeftRadius", e);
55559
55790
  }, u = (n, r) => {
@@ -55580,7 +55811,7 @@ var pW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
55580
55811
  }), /* @__PURE__ */ F("div", {
55581
55812
  className: "flex items-center gap-1.5",
55582
55813
  children: [
55583
- /* @__PURE__ */ P(lW, {
55814
+ /* @__PURE__ */ P(fW, {
55584
55815
  filter: (e) => e.key.includes("border-radius") && e.type === "dimension",
55585
55816
  onSelect: l,
55586
55817
  currentValue: `${i}px`
@@ -55600,7 +55831,7 @@ var pW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
55600
55831
  }), n ? /* @__PURE__ */ F("div", {
55601
55832
  className: "grid grid-cols-1 gap-2 mt-1.5",
55602
55833
  children: [
55603
- /* @__PURE__ */ P(pW, {
55834
+ /* @__PURE__ */ P(gW, {
55604
55835
  label: "Top-Left",
55605
55836
  value: `${a}px`,
55606
55837
  units: [
@@ -55611,7 +55842,7 @@ var pW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
55611
55842
  ],
55612
55843
  onChange: (e) => u("borderTopLeftRadius", e)
55613
55844
  }),
55614
- /* @__PURE__ */ P(pW, {
55845
+ /* @__PURE__ */ P(gW, {
55615
55846
  label: "Top-Right",
55616
55847
  value: `${o}px`,
55617
55848
  units: [
@@ -55622,7 +55853,7 @@ var pW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
55622
55853
  ],
55623
55854
  onChange: (e) => u("borderTopRightRadius", e)
55624
55855
  }),
55625
- /* @__PURE__ */ P(pW, {
55856
+ /* @__PURE__ */ P(gW, {
55626
55857
  label: "Bottom-Right",
55627
55858
  value: `${s}px`,
55628
55859
  units: [
@@ -55633,7 +55864,7 @@ var pW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
55633
55864
  ],
55634
55865
  onChange: (e) => u("borderBottomRightRadius", e)
55635
55866
  }),
55636
- /* @__PURE__ */ P(pW, {
55867
+ /* @__PURE__ */ P(gW, {
55637
55868
  label: "Bottom-Left",
55638
55869
  value: `${c}px`,
55639
55870
  units: [
@@ -55645,7 +55876,7 @@ var pW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
55645
55876
  onChange: (e) => u("borderBottomLeftRadius", e)
55646
55877
  })
55647
55878
  ]
55648
- }) : /* @__PURE__ */ P(pW, {
55879
+ }) : /* @__PURE__ */ P(gW, {
55649
55880
  label: "All Sides",
55650
55881
  value: `${i}px`,
55651
55882
  units: [
@@ -55657,28 +55888,28 @@ var pW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
55657
55888
  onChange: l
55658
55889
  })]
55659
55890
  });
55660
- }, yW = {
55891
+ }, SW = {
55661
55892
  offsetX: 0,
55662
55893
  offsetY: 4,
55663
55894
  blur: 6,
55664
55895
  spread: -1,
55665
55896
  color: "#0000001a"
55666
- }, bW = (e) => {
55897
+ }, CW = (e) => {
55667
55898
  let t = (e || "").trim();
55668
- if (!t || t === "none") return yW;
55899
+ if (!t || t === "none") return SW;
55669
55900
  let n = t.match(/^(-?[\d.]+)px\s+(-?[\d.]+)px(?:\s+(-?[\d.]+)px)?(?:\s+(-?[\d.]+)px)?\s*(.*)$/);
55670
- if (!n) return yW;
55901
+ if (!n) return SW;
55671
55902
  let [, r, i, a, o, s] = n;
55672
55903
  return {
55673
55904
  offsetX: parseFloat(r) || 0,
55674
55905
  offsetY: parseFloat(i) || 0,
55675
55906
  blur: a === void 0 ? 0 : parseFloat(a) || 0,
55676
55907
  spread: o === void 0 ? 0 : parseFloat(o) || 0,
55677
- color: s?.trim() || yW.color
55908
+ color: s?.trim() || SW.color
55678
55909
  };
55679
- }, xW = (e) => `${e.offsetX}px ${e.offsetY}px ${e.blur}px ${e.spread}px ${e.color}`, SW = ({ styles: e, onChange: t }) => {
55680
- let n = !e.boxShadow || e.boxShadow === "none", r = bW(e.boxShadow), i = (e) => {
55681
- t("boxShadow", xW({
55910
+ }, wW = (e) => `${e.offsetX}px ${e.offsetY}px ${e.blur}px ${e.spread}px ${e.color}`, TW = ({ styles: e, onChange: t }) => {
55911
+ let n = !e.boxShadow || e.boxShadow === "none", r = CW(e.boxShadow), i = (e) => {
55912
+ t("boxShadow", wW({
55682
55913
  ...r,
55683
55914
  ...e
55684
55915
  }));
@@ -55692,42 +55923,42 @@ var pW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
55692
55923
  children: "Box Shadow"
55693
55924
  }), /* @__PURE__ */ P("button", {
55694
55925
  type: "button",
55695
- onClick: () => t("boxShadow", n ? xW(r) : "none"),
55926
+ onClick: () => t("boxShadow", n ? wW(r) : "none"),
55696
55927
  className: `plexo-switch-track plexo-switch-track-sm ${n ? "plexo-switch-track-off" : "plexo-switch-track-on"}`,
55697
55928
  children: /* @__PURE__ */ P("span", { className: `plexo-switch-thumb plexo-switch-thumb-sm ${n ? "plexo-switch-thumb-off" : "plexo-switch-thumb-on-sm"}` })
55698
55929
  })]
55699
55930
  }), !n && /* @__PURE__ */ F("div", {
55700
55931
  className: "grid grid-cols-1 gap-2 mt-1.5",
55701
55932
  children: [
55702
- /* @__PURE__ */ P(pW, {
55933
+ /* @__PURE__ */ P(gW, {
55703
55934
  label: "Offset X",
55704
55935
  value: `${r.offsetX}px`,
55705
55936
  min: -100,
55706
55937
  max: 100,
55707
55938
  onChange: (e) => i({ offsetX: parseFloat(e) || 0 })
55708
55939
  }),
55709
- /* @__PURE__ */ P(pW, {
55940
+ /* @__PURE__ */ P(gW, {
55710
55941
  label: "Offset Y",
55711
55942
  value: `${r.offsetY}px`,
55712
55943
  min: -100,
55713
55944
  max: 100,
55714
55945
  onChange: (e) => i({ offsetY: parseFloat(e) || 0 })
55715
55946
  }),
55716
- /* @__PURE__ */ P(pW, {
55947
+ /* @__PURE__ */ P(gW, {
55717
55948
  label: "Blur",
55718
55949
  value: `${r.blur}px`,
55719
55950
  min: 0,
55720
55951
  max: 200,
55721
55952
  onChange: (e) => i({ blur: parseFloat(e) || 0 })
55722
55953
  }),
55723
- /* @__PURE__ */ P(pW, {
55954
+ /* @__PURE__ */ P(gW, {
55724
55955
  label: "Spread",
55725
55956
  value: `${r.spread}px`,
55726
55957
  min: -100,
55727
55958
  max: 100,
55728
55959
  onChange: (e) => i({ spread: parseFloat(e) || 0 })
55729
55960
  }),
55730
- /* @__PURE__ */ P(uW, {
55961
+ /* @__PURE__ */ P(pW, {
55731
55962
  label: "Shadow Color",
55732
55963
  value: r.color,
55733
55964
  onChange: (e) => i({ color: e })
@@ -55735,20 +55966,20 @@ var pW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
55735
55966
  ]
55736
55967
  })]
55737
55968
  });
55738
- }, CW = ({ onSelect: e }) => /* @__PURE__ */ P("div", {
55969
+ }, EW = ({ onSelect: e }) => /* @__PURE__ */ P("div", {
55739
55970
  className: "grid grid-cols-1 gap-2.5",
55740
55971
  children: ee.map((t, n) => /* @__PURE__ */ P("button", {
55741
55972
  onClick: () => e(t.widths),
55742
55973
  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",
55743
55974
  children: /* @__PURE__ */ P("div", {
55744
55975
  className: "flex-1 h-full",
55745
- children: /* @__PURE__ */ P(nW, {
55976
+ children: /* @__PURE__ */ P(aW, {
55746
55977
  widths: t.widths,
55747
55978
  percentages: t.percentages
55748
55979
  })
55749
55980
  })
55750
55981
  }, n))
55751
- }), wW = ({ label: e, stylePrefix: t, styles: n, onChange: r, allowNegative: i = !1 }) => {
55982
+ }), DW = ({ label: e, stylePrefix: t, styles: n, onChange: r, allowNegative: i = !1 }) => {
55752
55983
  let a = i ? -500 : 0, o = {
55753
55984
  all: t,
55754
55985
  top: `${t}Top`,
@@ -55781,7 +56012,7 @@ var pW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
55781
56012
  }), /* @__PURE__ */ F("div", {
55782
56013
  className: "flex items-center gap-1.5",
55783
56014
  children: [
55784
- /* @__PURE__ */ P(lW, {
56015
+ /* @__PURE__ */ P(fW, {
55785
56016
  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)),
55786
56017
  onSelect: h,
55787
56018
  currentValue: `${u}px`
@@ -55801,7 +56032,7 @@ var pW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
55801
56032
  }), s ? /* @__PURE__ */ F("div", {
55802
56033
  className: "grid grid-cols-1 gap-2 mt-1.5",
55803
56034
  children: [
55804
- /* @__PURE__ */ P(pW, {
56035
+ /* @__PURE__ */ P(gW, {
55805
56036
  label: "Top",
55806
56037
  value: `${d}px`,
55807
56038
  units: [
@@ -55813,7 +56044,7 @@ var pW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
55813
56044
  min: a,
55814
56045
  onChange: (e) => g(o.top, e)
55815
56046
  }),
55816
- /* @__PURE__ */ P(pW, {
56047
+ /* @__PURE__ */ P(gW, {
55817
56048
  label: "Right",
55818
56049
  value: `${m}px`,
55819
56050
  units: [
@@ -55825,7 +56056,7 @@ var pW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
55825
56056
  min: a,
55826
56057
  onChange: (e) => g(o.right, e)
55827
56058
  }),
55828
- /* @__PURE__ */ P(pW, {
56059
+ /* @__PURE__ */ P(gW, {
55829
56060
  label: "Bottom",
55830
56061
  value: `${f}px`,
55831
56062
  units: [
@@ -55837,7 +56068,7 @@ var pW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
55837
56068
  min: a,
55838
56069
  onChange: (e) => g(o.bottom, e)
55839
56070
  }),
55840
- /* @__PURE__ */ P(pW, {
56071
+ /* @__PURE__ */ P(gW, {
55841
56072
  label: "Left",
55842
56073
  value: `${p}px`,
55843
56074
  units: [
@@ -55850,7 +56081,7 @@ var pW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
55850
56081
  onChange: (e) => g(o.left, e)
55851
56082
  })
55852
56083
  ]
55853
- }) : /* @__PURE__ */ P(pW, {
56084
+ }) : /* @__PURE__ */ P(gW, {
55854
56085
  label: "All Sides",
55855
56086
  value: `${u}px`,
55856
56087
  units: [
@@ -55863,7 +56094,7 @@ var pW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
55863
56094
  onChange: h
55864
56095
  })]
55865
56096
  });
55866
- }, TW = ({ label: e, onUploadMock: t }) => /* @__PURE__ */ F("div", {
56097
+ }, OW = ({ label: e, onUploadMock: t }) => /* @__PURE__ */ F("div", {
55867
56098
  className: "py-1",
55868
56099
  children: [/* @__PURE__ */ P("label", {
55869
56100
  className: "text-xs text-slate-400 font-medium block mb-1.5",
@@ -55873,7 +56104,7 @@ var pW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
55873
56104
  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",
55874
56105
  children: /* @__PURE__ */ P("span", { children: "Upload File" })
55875
56106
  })]
55876
- }), EW = { body: {
56107
+ }), kW = { body: {
55877
56108
  style: {
55878
56109
  background: "#ffffffff",
55879
56110
  padding: "32px"
@@ -55917,7 +56148,7 @@ var pW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
55917
56148
  }]
55918
56149
  }]
55919
56150
  }]
55920
- } }, DW = ({ apiKey: e, mode: t, onSave: n, isSavingLayout: r, setIsSavingLayout: i, normalizeTemplateWithDefaults: a, templateId: o, allowPublishLandingPage: s }) => {
56151
+ } }, AW = ({ apiKey: e, mode: t, onSave: n, isSavingLayout: r, setIsSavingLayout: i, normalizeTemplateWithDefaults: a, templateId: o, allowPublishLandingPage: s }) => {
55921
56152
  let c = fe(() => JSON.parse(JSON.stringify(Ie.getState().template)), []), l = fe(async (t) => {
55922
56153
  let n = c(), r = a(n);
55923
56154
  if (t === "email") {
@@ -55991,8 +56222,8 @@ var pW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
55991
56222
  exportDesign: l,
55992
56223
  handleBuiltInSave: u
55993
56224
  };
55994
- }, OW = 1280, kW = (e) => e < 768 ? "mobile" : e < 1280 ? "tablet" : "desktop", AW = () => {
55995
- let [e, t] = A(() => typeof window < "u" ? window.innerWidth : OW);
56225
+ }, jW = 1280, MW = (e) => e < 768 ? "mobile" : e < 1280 ? "tablet" : "desktop", NW = () => {
56226
+ let [e, t] = A(() => typeof window < "u" ? window.innerWidth : jW);
55996
56227
  return O(() => {
55997
56228
  if (typeof window > "u") return;
55998
56229
  let e = null, n = () => {
@@ -56005,14 +56236,14 @@ var pW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
56005
56236
  };
56006
56237
  }, []), {
56007
56238
  width: e,
56008
- category: kW(e)
56239
+ category: MW(e)
56009
56240
  };
56010
- }, jW = (e) => {
56241
+ }, PW = (e) => {
56011
56242
  let t = {};
56012
56243
  return e.tokens.forEach((e) => {
56013
56244
  t[e.cssVariableName] = e, t[e.id] = e;
56014
56245
  }), t;
56015
- }, MW = (e, t) => {
56246
+ }, FW = (e, t) => {
56016
56247
  let n = { ...e }, r = e.style || {}, i = {};
56017
56248
  return Object.entries(r).forEach(([e, n]) => {
56018
56249
  if (typeof n == "string" && t[n]) {
@@ -56020,7 +56251,7 @@ var pW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
56020
56251
  i[e] = `var(${r.cssVariableName})`;
56021
56252
  } else i[e] = n;
56022
56253
  }), n.style = i, n;
56023
- }, NW = (e, t) => e.tokens.filter((e) => e.category === t), PW = (e) => `:root {\n${e.tokens.map((e) => ` ${e.cssVariableName}: ${e.value};`).join("\n")}\n}`, FW = (e, t) => e ? e.startsWith("var(") ? e : t[e] ? `var(${t[e].cssVariableName})` : e : "", IW = (e, t = "") => {
56254
+ }, IW = (e, t) => e.tokens.filter((e) => e.category === t), LW = (e) => `:root {\n${e.tokens.map((e) => ` ${e.cssVariableName}: ${e.value};`).join("\n")}\n}`, RW = (e, t) => e ? e.startsWith("var(") ? e : t[e] ? `var(${t[e].cssVariableName})` : e : "", zW = (e, t = "") => {
56024
56255
  let n = "";
56025
56256
  switch (e.category) {
56026
56257
  case "color":
@@ -56042,10 +56273,10 @@ var pW = ({ label: e, value: t, unit: n = "px", units: r, min: i = 0, max: a = 5
56042
56273
  }
56043
56274
  return n;
56044
56275
  };
56045
- function LW(e) {
56276
+ function BW(e) {
56046
56277
  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";
56047
56278
  }
56048
- async function RW(e, t) {
56279
+ async function VW(e, t) {
56049
56280
  if (!e || !e.trim()) return !1;
56050
56281
  try {
56051
56282
  let n = `https://snapshot.strata.charisol.io/snapshots/${e}/strata.json`, r = await fetch(n);
@@ -56057,7 +56288,7 @@ async function RW(e, t) {
56057
56288
  key: e,
56058
56289
  name: t.name || e,
56059
56290
  value: n,
56060
- type: t.type || LW(n)
56291
+ type: t.type || BW(n)
56061
56292
  };
56062
56293
  })), !0;
56063
56294
  } catch (e) {
@@ -56066,7 +56297,7 @@ async function RW(e, t) {
56066
56297
  }
56067
56298
  //#endregion
56068
56299
  //#region src/components/PlexoBuilder.tsx
56069
- var zW = (e) => ({ body: {
56300
+ var HW = (e) => ({ body: {
56070
56301
  style: {
56071
56302
  background: "#0b0f19",
56072
56303
  padding: "24px"
@@ -56089,11 +56320,11 @@ var zW = (e) => ({ body: {
56089
56320
  }]
56090
56321
  }]
56091
56322
  }]
56092
- } }), BW = (e, t, n) => {
56323
+ } }), UW = (e, t, n) => {
56093
56324
  if (t === void 0 && n === void 0) return e;
56094
56325
  let r = JSON.parse(JSON.stringify(e));
56095
56326
  return r.body.style = r.body.style || {}, t !== void 0 && (r.body.style.customCss = t), n !== void 0 && (r.body.style.customJs = n), r;
56096
- }, VW = (e, t) => {
56327
+ }, WW = (e, t) => {
56097
56328
  let n = e.trim(), r = n.match(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/);
56098
56329
  if (r) {
56099
56330
  let e = r[1], n = e.length === 3 ? e.split("").map((e) => `${e}${e}`).join("") : e;
@@ -56112,7 +56343,7 @@ var zW = (e) => ({ body: {
56112
56343
  }
56113
56344
  }
56114
56345
  return `rgba(79, 70, 229, ${t})`;
56115
- }, HW = ({ title: e, plan: t }) => /* @__PURE__ */ F("div", {
56346
+ }, GW = ({ title: e, plan: t }) => /* @__PURE__ */ F("div", {
56116
56347
  className: "flex flex-col items-center justify-center gap-3 py-10 px-4 text-center rounded-lg border border-dashed",
56117
56348
  style: { borderColor: "var(--builder-border-color)" },
56118
56349
  children: [
@@ -56139,7 +56370,7 @@ var zW = (e) => ({ body: {
56139
56370
  children: "Upgrade your plan to unlock this feature."
56140
56371
  })
56141
56372
  ]
56142
- }), UW = (e, t = 1200, n = 1200, r = .8) => new Promise((i) => {
56373
+ }), KW = (e, t = 1200, n = 1200, r = .8) => new Promise((i) => {
56143
56374
  if (!e.type.startsWith("image/")) {
56144
56375
  i(e);
56145
56376
  return;
@@ -56172,13 +56403,13 @@ var zW = (e) => ({ body: {
56172
56403
  }, "image/jpeg", r);
56173
56404
  }, o.onerror = () => i(e), o.src = a.target?.result;
56174
56405
  }, a.onerror = () => i(e), a.readAsDataURL(e);
56175
- }), WW = de((e, n) => {
56406
+ }), qW = de((e, n) => {
56176
56407
  let { showSaveButton: r = !1, mode: i, apiKey: a, backgroundColor: o = "#0e1526", themeBgColor: s = "#4f46e5", themeFgColor: c = "#ffffff", textColor: l = "#e2e8f0", builderFontFamily: u = "'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif", initialTemplate: d, initialHtml: f, initialCss: p, initialJs: m, onSave: h, useAi: g, aiProvider: _, aiTier: v, externalUserId: y, onUpload: b, customUpload: x, disableImageUpload: 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) => {
56177
56408
  it(t), It(e), R(null), De(null), Oe(null);
56178
56409
  }, lt = {
56179
56410
  useAi: Ce.body.aiConfig?.useAi ?? g,
56180
56411
  tier: Ce.body.aiConfig?.tier || v
56181
- }, 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 } = AW(), 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([]);
56412
+ }, ut = _ || ye.aiProvider, dt = ye.status === "valid" ? ye.manageLandingPagePublishing : ce, ft = i === "email" ? "EMAIL" : "LANDING_PAGE", [pt, mt] = A(null), [ht, gt] = A(je), [_t, vt] = A("desktop"), [yt, bt] = A("600px"), [xt, St] = A("imac"), [Ct, wt] = A("design"), [Tt, Et] = A(!1), Dt = pe || Tt, [Ot, kt] = A("light"), { width: At, category: jt } = NW(), 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([]);
56182
56413
  O(() => {
56183
56414
  let e = !1;
56184
56415
  return (async () => {
@@ -56263,7 +56494,7 @@ var zW = (e) => ({ body: {
56263
56494
  D,
56264
56495
  a
56265
56496
  ]);
56266
- let { sensors: Dn, getJson: On, exportDesign: kn, handleBuiltInSave: An } = DW({
56497
+ let { sensors: Dn, getJson: On, exportDesign: kn, handleBuiltInSave: An } = AW({
56267
56498
  apiKey: a,
56268
56499
  mode: i,
56269
56500
  onSave: h,
@@ -56317,7 +56548,7 @@ var zW = (e) => ({ body: {
56317
56548
  h
56318
56549
  ]), O(() => {
56319
56550
  let e = f?.trim(), t, n, r = p === void 0 ? "__undefined__" : p, i = m === void 0 ? "__undefined__" : m;
56320
- d ? (n = `json:${JSON.stringify(d)}:css:${r}:js:${i}`, t = BW(d, p, m)) : e ? (n = `html:${e}:css:${r}:js:${i}`, t = BW(zW(e), p, m)) : (n = `demo:css:${r}:js:${i}`, t = BW(EW, p, m)), wn.current !== n && (wn.current = n, Pe(t));
56551
+ d ? (n = `json:${JSON.stringify(d)}:css:${r}:js:${i}`, t = UW(d, p, m)) : e ? (n = `html:${e}:css:${r}:js:${i}`, t = UW(HW(e), p, m)) : (n = `demo:css:${r}:js:${i}`, t = UW(kW, p, m)), wn.current !== n && (wn.current = n, Pe(t));
56321
56552
  }, [
56322
56553
  d,
56323
56554
  f,
@@ -56341,7 +56572,7 @@ var zW = (e) => ({ body: {
56341
56572
  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;
56342
56573
  if (r) {
56343
56574
  let e = Ie.getState().setStrataTokens;
56344
- RW(r, e);
56575
+ VW(r, e);
56345
56576
  }
56346
56577
  }, [(Ce?.body?.style)?.strataConfig?.projectId]), O(() => {
56347
56578
  rn(null), on(null), sn.current && clearTimeout(sn.current);
@@ -56870,7 +57101,7 @@ var zW = (e) => ({ body: {
56870
57101
  }
56871
57102
  return;
56872
57103
  }
56873
- }, tr = (e, n, r) => /* @__PURE__ */ P(sW, {
57104
+ }, tr = (e, n, r) => /* @__PURE__ */ P(uW, {
56874
57105
  row: e,
56875
57106
  parentRowId: n,
56876
57107
  parentColId: r,
@@ -56879,7 +57110,7 @@ var zW = (e) => ({ body: {
56879
57110
  previewMode: Dt,
56880
57111
  deviceView: _t,
56881
57112
  selectedElementId: we,
56882
- children: e.columns.map((i) => /* @__PURE__ */ P(cW, {
57113
+ children: e.columns.map((i) => /* @__PURE__ */ P(dW, {
56883
57114
  col: i,
56884
57115
  rowId: e.id,
56885
57116
  parentRowId: n,
@@ -56958,7 +57189,7 @@ var zW = (e) => ({ body: {
56958
57189
  })]
56959
57190
  }) : /* @__PURE__ */ P(N, { children: t(i).map((t) => {
56960
57191
  let n = i.elements.find((e) => e.id === t);
56961
- if (n) return /* @__PURE__ */ P(dW, {
57192
+ if (n) return /* @__PURE__ */ P(mW, {
56962
57193
  elem: n,
56963
57194
  columnId: i.id,
56964
57195
  rowId: e.id,
@@ -57070,7 +57301,7 @@ var zW = (e) => ({ body: {
57070
57301
  let n = t.name;
57071
57302
  try {
57072
57303
  let e = t;
57073
- t.type.startsWith("image/") && (Fn(`Compressing "${n}"...`), e = await UW(t)), Fn(`Uploading "${n}"...`);
57304
+ t.type.startsWith("image/") && (Fn(`Compressing "${n}"...`), e = await KW(t)), Fn(`Uploading "${n}"...`);
57074
57305
  let r = "", i = x || b;
57075
57306
  if (i) {
57076
57307
  let t = await i(e);
@@ -57327,9 +57558,9 @@ var zW = (e) => ({ body: {
57327
57558
  themeBgColor: xe,
57328
57559
  textColor: l,
57329
57560
  fontFamily: u,
57330
- borderColor: VW(xe, .35),
57331
- panelColor: VW(o, .68),
57332
- mutedTextColor: VW(l, .76),
57561
+ borderColor: WW(xe, .35),
57562
+ panelColor: WW(o, .68),
57563
+ mutedTextColor: WW(l, .76),
57333
57564
  themeOnAccent: c,
57334
57565
  inputBackground: c,
57335
57566
  inputText: PH(c, l),
@@ -57513,9 +57744,9 @@ var zW = (e) => ({ body: {
57513
57744
  "--builder-input-border": J.inputBorder,
57514
57745
  "--theme-fg": J.themeOnAccent,
57515
57746
  "--theme-accent": J.themeBgColor,
57516
- "--theme-accent-strong": VW(J.themeBgColor, .86),
57517
- "--theme-accent-soft": VW(J.themeBgColor, .16),
57518
- "--theme-accent-border-soft": VW(J.themeBgColor, .35),
57747
+ "--theme-accent-strong": WW(J.themeBgColor, .86),
57748
+ "--theme-accent-soft": WW(J.themeBgColor, .16),
57749
+ "--theme-accent-border-soft": WW(J.themeBgColor, .35),
57519
57750
  "--theme-accent-text": J.themeOnAccent
57520
57751
  },
57521
57752
  children: [
@@ -57523,7 +57754,7 @@ var zW = (e) => ({ body: {
57523
57754
  rel: "stylesheet",
57524
57755
  href: Pn
57525
57756
  }),
57526
- bn && /* @__PURE__ */ P(tW, {
57757
+ bn && /* @__PURE__ */ P(iW, {
57527
57758
  message: bn.message,
57528
57759
  onClose: In
57529
57760
  }),
@@ -57779,7 +58010,7 @@ var zW = (e) => ({ body: {
57779
58010
  fontFamily: W.body.style.fontFamily || "-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif"
57780
58011
  },
57781
58012
  className: `${Dt ? "min-h-[460px]" : "min-h-full"}`,
57782
- children: /* @__PURE__ */ P(rW, {
58013
+ children: /* @__PURE__ */ P(oW, {
57783
58014
  rowIds: hr,
57784
58015
  disabled: Dt,
57785
58016
  children: W.body.rows.length === 0 ? /* @__PURE__ */ F("div", {
@@ -57903,7 +58134,7 @@ var zW = (e) => ({ body: {
57903
58134
  isOpen: $t.columnsSection,
57904
58135
  onToggle: () => tn("columnsSection"),
57905
58136
  contentClassName: "px-4 pb-4 pt-0 flex flex-col gap-0 bg-transparent",
57906
- children: /* @__PURE__ */ P(CW, { onSelect: (e) => Ze(lr.id, e) })
58137
+ children: /* @__PURE__ */ P(EW, { onSelect: (e) => Ze(lr.id, e) })
57907
58138
  }),
57908
58139
  /* @__PURE__ */ P(XH, {
57909
58140
  title: "Row Properties",
@@ -57912,7 +58143,7 @@ var zW = (e) => ({ body: {
57912
58143
  children: /* @__PURE__ */ F("div", {
57913
58144
  className: "flex flex-col gap-1",
57914
58145
  children: [
57915
- /* @__PURE__ */ P(pW, {
58146
+ /* @__PURE__ */ P(gW, {
57916
58147
  label: "Height",
57917
58148
  value: q.height || "auto",
57918
58149
  units: [
@@ -57925,26 +58156,26 @@ var zW = (e) => ({ body: {
57925
58156
  max: 2e3,
57926
58157
  onChange: (e) => G("height", e)
57927
58158
  }),
57928
- /* @__PURE__ */ P(uW, {
58159
+ /* @__PURE__ */ P(pW, {
57929
58160
  label: "Background Color",
57930
58161
  value: q.backgroundColor || "#ffffff",
57931
58162
  onChange: (e) => G("backgroundColor", e)
57932
58163
  }),
57933
- /* @__PURE__ */ P(uW, {
58164
+ /* @__PURE__ */ P(pW, {
57934
58165
  label: "Content Background Color",
57935
58166
  value: q.contentBackgroundColor || "#ffffff",
57936
58167
  onChange: (e) => G("contentBackgroundColor", e)
57937
58168
  }),
57938
- /* @__PURE__ */ P(hW, {
58169
+ /* @__PURE__ */ P(vW, {
57939
58170
  label: "Content Alignment",
57940
58171
  value: q.textAlign || "left",
57941
58172
  onChange: (e) => G("textAlign", e)
57942
58173
  }),
57943
- /* @__PURE__ */ P(TW, {
58174
+ /* @__PURE__ */ P(OW, {
57944
58175
  label: "Upload background",
57945
58176
  onUploadMock: rr
57946
58177
  }),
57947
- /* @__PURE__ */ P(gW, {
58178
+ /* @__PURE__ */ P(yW, {
57948
58179
  label: "Image URL",
57949
58180
  value: (() => {
57950
58181
  let e = q.backgroundImage || "", t = e.match(/^url\(['"]?([^'"\)]+)['"]?\)$/);
@@ -57964,27 +58195,27 @@ var zW = (e) => ({ body: {
57964
58195
  });
57965
58196
  }
57966
58197
  }),
57967
- /* @__PURE__ */ P(wW, {
58198
+ /* @__PURE__ */ P(DW, {
57968
58199
  label: "Padding",
57969
58200
  stylePrefix: "padding",
57970
58201
  styles: q,
57971
58202
  onChange: G
57972
58203
  }),
57973
- /* @__PURE__ */ P(wW, {
58204
+ /* @__PURE__ */ P(DW, {
57974
58205
  label: "Margin",
57975
58206
  stylePrefix: "margin",
57976
58207
  styles: q,
57977
58208
  onChange: G,
57978
58209
  allowNegative: !0
57979
58210
  }),
57980
- /* @__PURE__ */ P(pW, {
58211
+ /* @__PURE__ */ P(gW, {
57981
58212
  label: "Border Width",
57982
58213
  value: q.borderWidth || "1px",
57983
58214
  min: 0,
57984
58215
  max: 12,
57985
58216
  onChange: (e) => G("borderWidth", e)
57986
58217
  }),
57987
- /* @__PURE__ */ P(mW, {
58218
+ /* @__PURE__ */ P(_W, {
57988
58219
  label: "Border Style",
57989
58220
  value: q.borderStyle || "solid",
57990
58221
  options: [
@@ -58007,12 +58238,12 @@ var zW = (e) => ({ body: {
58007
58238
  ],
58008
58239
  onChange: (e) => G("borderStyle", e)
58009
58240
  }),
58010
- /* @__PURE__ */ P(uW, {
58241
+ /* @__PURE__ */ P(pW, {
58011
58242
  label: "Border Color",
58012
58243
  value: q.borderColor || "#e2e8f0",
58013
58244
  onChange: (e) => G("borderColor", e)
58014
58245
  }),
58015
- /* @__PURE__ */ P(vW, {
58246
+ /* @__PURE__ */ P(xW, {
58016
58247
  styles: q,
58017
58248
  onChange: G
58018
58249
  })
@@ -58025,13 +58256,13 @@ var zW = (e) => ({ body: {
58025
58256
  onToggle: () => tn("actions"),
58026
58257
  children: /* @__PURE__ */ F("div", {
58027
58258
  className: "flex flex-col gap-1",
58028
- children: [/* @__PURE__ */ P(gW, {
58259
+ children: [/* @__PURE__ */ P(yW, {
58029
58260
  label: "HTML ID",
58030
58261
  value: lr?.htmlId || "",
58031
58262
  onChange: (e) => {
58032
58263
  I && qe(I, { htmlId: e });
58033
58264
  }
58034
- }), /* @__PURE__ */ P(gW, {
58265
+ }), /* @__PURE__ */ P(yW, {
58035
58266
  label: "HTML Class Names",
58036
58267
  value: lr?.htmlClass || "",
58037
58268
  onChange: (e) => {
@@ -58085,7 +58316,7 @@ var zW = (e) => ({ body: {
58085
58316
  children: /* @__PURE__ */ F("div", {
58086
58317
  className: "flex flex-col gap-1",
58087
58318
  children: [
58088
- /* @__PURE__ */ P(pW, {
58319
+ /* @__PURE__ */ P(gW, {
58089
58320
  label: "Width",
58090
58321
  value: ur?.width || "100%",
58091
58322
  units: [
@@ -58100,7 +58331,7 @@ var zW = (e) => ({ body: {
58100
58331
  L && e && Qe(L, e);
58101
58332
  }
58102
58333
  }),
58103
- /* @__PURE__ */ P(pW, {
58334
+ /* @__PURE__ */ P(gW, {
58104
58335
  label: "Height",
58105
58336
  value: q.height || "auto",
58106
58337
  units: [
@@ -58147,7 +58378,7 @@ var zW = (e) => ({ body: {
58147
58378
  })]
58148
58379
  }),
58149
58380
  q.display === "flex" && /* @__PURE__ */ F(N, { children: [
58150
- /* @__PURE__ */ P(pW, {
58381
+ /* @__PURE__ */ P(gW, {
58151
58382
  label: "Gap",
58152
58383
  value: q.gap || "10px",
58153
58384
  units: [
@@ -58232,32 +58463,32 @@ var zW = (e) => ({ body: {
58232
58463
  }, e.value))
58233
58464
  })]
58234
58465
  }),
58235
- /* @__PURE__ */ P(uW, {
58466
+ /* @__PURE__ */ P(pW, {
58236
58467
  label: "Background Color",
58237
58468
  value: q.backgroundColor || "transparent",
58238
58469
  onChange: (e) => G("backgroundColor", e)
58239
58470
  }),
58240
- /* @__PURE__ */ P(wW, {
58471
+ /* @__PURE__ */ P(DW, {
58241
58472
  label: "Padding",
58242
58473
  stylePrefix: "padding",
58243
58474
  styles: q,
58244
58475
  onChange: G
58245
58476
  }),
58246
- /* @__PURE__ */ P(wW, {
58477
+ /* @__PURE__ */ P(DW, {
58247
58478
  label: "Margin",
58248
58479
  stylePrefix: "margin",
58249
58480
  styles: q,
58250
58481
  onChange: G,
58251
58482
  allowNegative: !0
58252
58483
  }),
58253
- /* @__PURE__ */ P(pW, {
58484
+ /* @__PURE__ */ P(gW, {
58254
58485
  label: "Border Width",
58255
58486
  value: q.borderWidth || "0px",
58256
58487
  min: 0,
58257
58488
  max: 12,
58258
58489
  onChange: (e) => G("borderWidth", e)
58259
58490
  }),
58260
- /* @__PURE__ */ P(mW, {
58491
+ /* @__PURE__ */ P(_W, {
58261
58492
  label: "Border Style",
58262
58493
  value: q.borderStyle || "solid",
58263
58494
  options: [
@@ -58280,25 +58511,25 @@ var zW = (e) => ({ body: {
58280
58511
  ],
58281
58512
  onChange: (e) => G("borderStyle", e)
58282
58513
  }),
58283
- /* @__PURE__ */ P(uW, {
58514
+ /* @__PURE__ */ P(pW, {
58284
58515
  label: "Border Color",
58285
58516
  value: q.borderColor || "#cbd5e1",
58286
58517
  onChange: (e) => G("borderColor", e)
58287
58518
  }),
58288
- /* @__PURE__ */ P(vW, {
58519
+ /* @__PURE__ */ P(xW, {
58289
58520
  styles: q,
58290
58521
  onChange: G
58291
58522
  }),
58292
- /* @__PURE__ */ P(SW, {
58523
+ /* @__PURE__ */ P(TW, {
58293
58524
  styles: q,
58294
58525
  onChange: G
58295
58526
  }),
58296
- /* @__PURE__ */ P(gW, {
58527
+ /* @__PURE__ */ P(yW, {
58297
58528
  label: "HTML ID",
58298
58529
  value: dr.htmlId || "",
58299
58530
  onChange: (e) => Wn("htmlId", e)
58300
58531
  }),
58301
- /* @__PURE__ */ P(gW, {
58532
+ /* @__PURE__ */ P(yW, {
58302
58533
  label: "HTML Class Names",
58303
58534
  value: dr.htmlClass || "",
58304
58535
  onChange: (e) => Wn("htmlClass", e)
@@ -58316,7 +58547,7 @@ var zW = (e) => ({ body: {
58316
58547
  ]
58317
58548
  })
58318
58549
  })] }),
58319
- /* @__PURE__ */ P(eW, {
58550
+ /* @__PURE__ */ P(rW, {
58320
58551
  selectedElement: K,
58321
58552
  currentAttrs: dr,
58322
58553
  currentStyles: q,
@@ -58325,16 +58556,16 @@ var zW = (e) => ({ body: {
58325
58556
  onTransientAttrChange: Wn,
58326
58557
  onTransientStyleChange: G,
58327
58558
  AccordionSection: XH,
58328
- InlineTextInput: gW,
58329
- InlineSelect: mW,
58330
- InlineColorPicker: uW,
58331
- InlineAlignment: hW,
58332
- InlineCounter: pW,
58559
+ InlineTextInput: yW,
58560
+ InlineSelect: _W,
58561
+ InlineColorPicker: pW,
58562
+ InlineAlignment: vW,
58563
+ InlineCounter: gW,
58333
58564
  Toggle: hU,
58334
- InlineTextArea: _W,
58335
- SpacingControls: wW,
58336
- BorderRadiusControls: vW,
58337
- BoxShadowControls: SW,
58565
+ InlineTextArea: bW,
58566
+ SpacingControls: DW,
58567
+ BorderRadiusControls: xW,
58568
+ BoxShadowControls: TW,
58338
58569
  handleUploadMock: rr,
58339
58570
  disableImageUpload: w,
58340
58571
  onOpenImageLibrary: ct,
@@ -58374,7 +58605,7 @@ var zW = (e) => ({ body: {
58374
58605
  }),
58375
58606
  Ft === "blocks" && /* @__PURE__ */ P(YH, {
58376
58607
  DraggablePaletteItem: eU,
58377
- LayoutPreview: nW,
58608
+ LayoutPreview: aW,
58378
58609
  tierFeatures: be,
58379
58610
  onTapAdd: jt === "mobile" ? Yn : void 0
58380
58611
  }),
@@ -58388,13 +58619,13 @@ var zW = (e) => ({ body: {
58388
58619
  handleUploadFavicon: ir,
58389
58620
  disableImageUpload: w,
58390
58621
  onOpenImageLibrary: ct,
58391
- InlineColorPicker: uW,
58392
- InlineAlignment: hW,
58393
- InlineSelect: mW,
58622
+ InlineColorPicker: pW,
58623
+ InlineAlignment: vW,
58624
+ InlineSelect: _W,
58394
58625
  Toggle: hU,
58395
- InlineTextInput: gW,
58396
- InlineTextArea: _W,
58397
- SpacingControls: wW,
58626
+ InlineTextInput: yW,
58627
+ InlineTextArea: bW,
58628
+ SpacingControls: DW,
58398
58629
  notify: Fn
58399
58630
  }),
58400
58631
  Ft === "images" && (be.stockImagesEnabled ? /* @__PURE__ */ P(QH, {
@@ -58410,7 +58641,7 @@ var zW = (e) => ({ body: {
58410
58641
  applyImageToSelection: Or,
58411
58642
  ICONS: X,
58412
58643
  panelBackgroundColor: o
58413
- }) : /* @__PURE__ */ P(HW, {
58644
+ }) : /* @__PURE__ */ P(GW, {
58414
58645
  title: "Stock Images",
58415
58646
  plan: "PRO"
58416
58647
  })),
@@ -58425,7 +58656,7 @@ var zW = (e) => ({ body: {
58425
58656
  ICONS: X,
58426
58657
  panelBackgroundColor: o
58427
58658
  }),
58428
- Ft === "strata" && (be.strataEnabled ? /* @__PURE__ */ P(fU, {}) : /* @__PURE__ */ P(HW, {
58659
+ Ft === "strata" && (be.strataEnabled ? /* @__PURE__ */ P(fU, {}) : /* @__PURE__ */ P(GW, {
58429
58660
  title: "Strata Design System",
58430
58661
  plan: "PRO"
58431
58662
  })),
@@ -58568,10 +58799,10 @@ var zW = (e) => ({ body: {
58568
58799
  })
58569
58800
  });
58570
58801
  });
58571
- WW.displayName = "PlexoBuilder";
58802
+ qW.displayName = "PlexoBuilder";
58572
58803
  //#endregion
58573
58804
  //#region src/playground.tsx
58574
- var GW = de((e, t) => {
58805
+ var JW = de((e, t) => {
58575
58806
  let n = k(null), r = k(null), i = k(null), [a, o] = A(1), s = k(1), [c, l] = A(!0);
58576
58807
  return me(t, () => ({
58577
58808
  exportDesign: async (e) => {
@@ -58626,13 +58857,13 @@ var GW = de((e, t) => {
58626
58857
  width: "100%",
58627
58858
  height: "100%"
58628
58859
  },
58629
- children: /* @__PURE__ */ P(WW, {
58860
+ children: /* @__PURE__ */ P(qW, {
58630
58861
  ref: n,
58631
58862
  ...e
58632
58863
  })
58633
58864
  })]
58634
58865
  });
58635
58866
  });
58636
- GW.displayName = "PlexoBuilder";
58867
+ JW.displayName = "PlexoBuilder";
58637
58868
  //#endregion
58638
- export { NV as ColumnJSONSchema, MV as ElementJSONSchema, GW as PlexoBuilder, tH as PlexoRenderer, PV as RowJSONSchema, UV as SafeHTML, zV as TemplateJSONSchema, MW as applyTokensToElement, E as compileToHTML, y as compileToHTMLWithStrataAuto, ne as compileToPlainText, jW as createTokenMapping, IW as createTokenSwatch, PW as generateTokenCSS, NW as getTokensByCategory, ae as injectStrataBundle, ce as parseJsonToTargetFormat, FW as resolveTokenValue, DV as safeJsonParse, HV as sanitizeHtml, EV as sanitizeObject, VV as sanitizeStyleObject, BV as sanitizeStyleString };
58869
+ export { NV as ColumnJSONSchema, MV as ElementJSONSchema, JW as PlexoBuilder, tH as PlexoRenderer, PV as RowJSONSchema, UV as SafeHTML, zV as TemplateJSONSchema, FW as applyTokensToElement, E as compileToHTML, y as compileToHTMLWithStrataAuto, ne as compileToPlainText, PW as createTokenMapping, zW as createTokenSwatch, LW as generateTokenCSS, IW as getTokensByCategory, ae as injectStrataBundle, ce as parseJsonToTargetFormat, RW as resolveTokenValue, DV as safeJsonParse, HV as sanitizeHtml, EV as sanitizeObject, VV as sanitizeStyleObject, BV as sanitizeStyleString };