@charisol/plexo-sdk 2.0.24 → 2.0.26

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/v2.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { $ as e, $t as t, A as n, At as r, B as i, Bt as a, C as o, Ct as s, D as c, Dt as l, E as u, Et as d, F as f, Ft as p, G as m, Gt as h, H as g, Ht as _, I as v, It as y, J as b, Jt as x, K as S, Kt as C, L as w, Lt as T, M as E, Mt as D, N as O, Nt as k, O as A, Ot as j, P as M, Pt as N, Q as P, Qt as F, R as ee, Rt as te, S as ne, St as re, T as I, Tt as ie, U as ae, Ut as oe, V as se, Vt as ce, W as L, Wt as le, X as ue, Xt as de, Y as fe, Yt as pe, Z as R, Zt as me, _ as he, _t as ge, a as _e, an as ve, at as ye, b as be, bt as xe, c as Se, cn as Ce, ct as we, d as Te, en as Ee, et as De, f as Oe, ft as ke, g as Ae, gt as je, h as Me, ht as Ne, i as Pe, in as Fe, it as Ie, j as Le, jt as Re, k as ze, kt as Be, l as Ve, ln as He, lt as Ue, m as We, nn as Ge, nt as Ke, o as qe, on as Je, ot as Ye, p as Xe, pt as z, q as Ze, qt as B, r as Qe, rn as V, rt as $e, s as et, sn as tt, st as nt, t as rt, tn as it, tt as at, u as ot, v as st, vt as ct, w as lt, wt as ut, x as dt, xt as ft, y as pt, yt as mt, z as ht, zt as gt } from "./InlineColorPicker-x6ODuEQD.js";
2
2
  import { a as _t, o as vt } from "./colorUtils-BaVkGjFC.js";
3
- import { $ as yt, $t as bt, A as xt, An as St, At as Ct, B as wt, Bt as Tt, C as Et, Cn as Dt, Ct as Ot, D as kt, Dn as At, Dt as jt, E as Mt, En as Nt, Et as Pt, F as Ft, Ft as It, G as Lt, Gt as Rt, H as zt, Ht as Bt, I as Vt, In as Ht, It as Ut, J as Wt, Jt as Gt, K as Kt, Kt as qt, L as Jt, Ln as Yt, Lt as Xt, M as Zt, Mn as Qt, Mt as $t, N as en, Nn as tn, Nt as nn, O as rn, On as an, Ot as on, Pn as sn, Pt as cn, Q as ln, Qt as un, R as dn, Rn as fn, Rt as pn, S as mn, Sn as hn, St as gn, T as _n, Tn as vn, Tt as yn, U as bn, Ut as xn, V as Sn, Vt as Cn, W as wn, Wt as Tn, X as En, Xt as Dn, Y as On, Yt as kn, Z as An, Zt as jn, _n as Mn, _t as Nn, an as Pn, at as Fn, b as In, bn as Ln, bt as Rn, c as zn, cn as Bn, ct as Vn, d as Hn, dn as Un, en as Wn, et as Gn, f as Kn, fn as qn, ft as Jn, g as Yn, gn as Xn, gt as Zn, h as Qn, ht as $n, in as er, it as tr, j as nr, jn as rr, jt as ir, k as ar, kn as or, kt as sr, l as cr, ln as lr, lt as ur, m as dr, mn as fr, mt as pr, n as mr, nn as hr, nt as gr, on as _r, ot as vr, p as yr, pn as br, pt as xr, q as Sr, qt as Cr, r as wr, rn as Tr, rt as Er, s as Dr, sn as Or, st as kr, t as Ar, tn as jr, tt as Mr, u as Nr, un as Pr, ut as Fr, vn as Ir, vt as Lr, w as Rr, wn as zr, wt as Br, x as Vr, xn as Hr, xt as Ur, y as Wr, yn as Gr, yt as Kr, z as qr, zt as Jr } from "./v1--XVVNQh9.js";
3
+ import { $ as yt, $t as bt, A as xt, An as St, At as Ct, B as wt, Bt as Tt, C as Et, Cn as Dt, Ct as Ot, D as kt, Dn as At, Dt as jt, E as Mt, En as Nt, Et as Pt, F as Ft, Ft as It, G as Lt, Gt as Rt, H as zt, Ht as Bt, I as Vt, In as Ht, It as Ut, J as Wt, Jt as Gt, K as Kt, Kt as qt, L as Jt, Ln as Yt, Lt as Xt, M as Zt, Mn as Qt, Mt as $t, N as en, Nn as tn, Nt as nn, O as rn, On as an, Ot as on, Pn as sn, Pt as cn, Q as ln, Qt as un, R as dn, Rn as fn, Rt as pn, S as mn, Sn as hn, St as gn, T as _n, Tn as vn, Tt as yn, U as bn, Ut as xn, V as Sn, Vt as Cn, W as wn, Wt as Tn, X as En, Xt as Dn, Y as On, Yt as kn, Z as An, Zt as jn, _n as Mn, _t as Nn, an as Pn, at as Fn, b as In, bn as Ln, bt as Rn, c as zn, cn as Bn, ct as Vn, d as Hn, dn as Un, en as Wn, et as Gn, f as Kn, fn as qn, ft as Jn, g as Yn, gn as Xn, gt as Zn, h as Qn, ht as $n, in as er, it as tr, j as nr, jn as rr, jt as ir, k as ar, kn as or, kt as sr, l as cr, ln as lr, lt as ur, m as dr, mn as fr, mt as pr, n as mr, nn as hr, nt as gr, on as _r, ot as vr, p as yr, pn as br, pt as xr, q as Sr, qt as Cr, r as wr, rn as Tr, rt as Er, s as Dr, sn as Or, st as kr, t as Ar, tn as jr, tt as Mr, u as Nr, un as Pr, ut as Fr, vn as Ir, vt as Lr, w as Rr, wn as zr, wt as Br, x as Vr, xn as Hr, xt as Ur, y as Wr, yn as Gr, yt as Kr, z as qr, zt as Jr } from "./v1-CvbzlaB_.js";
4
4
  import { A as Yr, B as Xr, C as Zr, D as Qr, E as $r, F as ei, I as ti, L as ni, M as ri, N as ii, O as ai, P as oi, R as si, S as ci, T as li, _ as ui, a as di, b as fi, c as pi, d as mi, f as hi, g as gi, h as _i, i as vi, j as yi, k as bi, l as xi, m as Si, n as Ci, o as wi, p as Ti, r as Ei, s as Di, t as Oi, u as ki, v as Ai, w as ji, x as Mi, y as Ni, z as Pi } from "./brandGuide-DgoZ7spo.js";
5
5
  import { d as Fi, o as Ii, s as Li, t as Ri, u as zi } from "./client-DUSU8g5z.js";
6
6
  import Bi, { createContext as Vi, forwardRef as Hi, useCallback as H, useContext as Ui, useDeferredValue as Wi, useEffect as U, useImperativeHandle as Gi, useLayoutEffect as Ki, useMemo as W, useRef as G, useState as K } from "react";
@@ -1390,7 +1390,8 @@ var ca = [
1390
1390
  checkout: "CreditCard",
1391
1391
  orderConfirmation: "PackageCheck",
1392
1392
  orderTracking: "Truck",
1393
- signupForm: "UserPlus"
1393
+ signupForm: "UserPlus",
1394
+ contentList: "LayoutGrid"
1394
1395
  }, ua = [
1395
1396
  "blogDate",
1396
1397
  "blogAuthor",
@@ -3958,7 +3959,7 @@ var Ga = [
3958
3959
  default:
3959
3960
  if (br(e)) {
3960
3961
  let t = Pr(e);
3961
- return J(t === "Blog" ? ue : t === "Store" ? f : Ve, { className: "w-3 h-3 text-violet-400" });
3962
+ return J(t === "Blog" || t === "Content" ? ue : t === "Store" ? f : Ve, { className: "w-3 h-3 text-violet-400" });
3962
3963
  }
3963
3964
  return /* @__PURE__ */ J(Ne, { className: "w-3 h-3 text-px-muted" });
3964
3965
  }
@@ -4173,7 +4174,8 @@ var Ga = [
4173
4174
  "interactive",
4174
4175
  "blog",
4175
4176
  "store",
4176
- "funnel"
4177
+ "funnel",
4178
+ "content"
4177
4179
  ].map((e) => /* @__PURE__ */ J("button", {
4178
4180
  onClick: () => s(e),
4179
4181
  className: `px-2 py-0.5 rounded-md capitalize whitespace-nowrap transition-colors ${o === e ? "bg-px-accent text-px-onaccent font-semibold" : "bg-px-raised2 text-gray-400 hover:text-gray-200"}`,
@@ -9007,7 +9009,8 @@ var zs = ({ node: e, preview: t }) => {
9007
9009
  case "checkout":
9008
9010
  case "orderConfirmation":
9009
9011
  case "orderTracking":
9010
- case "signupForm": return /* @__PURE__ */ Y("div", {
9012
+ case "signupForm":
9013
+ case "contentList": return /* @__PURE__ */ Y("div", {
9011
9014
  id: e.id,
9012
9015
  "data-plx-node": "",
9013
9016
  ref: I,
@@ -10391,7 +10394,127 @@ var pc = [
10391
10394
  })
10392
10395
  ]
10393
10396
  });
10394
- }, hc = "w-full bg-px-raised border border-px-line2 rounded px-2 py-1 text-xs text-px-text placeholder-px-faint focus:outline-none focus:border-px-accent", gc = "w-6 h-6 rounded flex items-center justify-center text-px-muted hover:text-white hover:bg-px-line2 disabled:opacity-30 disabled:hover:bg-transparent cursor-pointer", _c = ({ title: e, children: t }) => /* @__PURE__ */ Y("div", {
10397
+ }, hc = "w-full bg-px-raised border border-px-line2 rounded px-2 py-1 text-xs text-px-text placeholder-px-faint focus:outline-none focus:border-px-accent", gc = ({ src: e }) => e ? /* @__PURE__ */ J("img", {
10398
+ src: e,
10399
+ alt: "",
10400
+ className: "w-8 h-8 rounded object-cover shrink-0 bg-px-line2"
10401
+ }) : /* @__PURE__ */ J("span", {
10402
+ className: "w-8 h-8 rounded shrink-0 bg-px-line2",
10403
+ "aria-hidden": "true"
10404
+ }), _c = ({ p: e }) => /* @__PURE__ */ Y("span", {
10405
+ className: "flex items-center gap-2 min-w-0 text-left",
10406
+ children: [/* @__PURE__ */ J(gc, { src: e.imageUrl }), /* @__PURE__ */ Y("span", {
10407
+ className: "min-w-0",
10408
+ children: [/* @__PURE__ */ J("span", {
10409
+ className: "block text-[11px] text-px-text truncate",
10410
+ children: e.name
10411
+ }), e.priceLabel && /* @__PURE__ */ J("span", {
10412
+ className: "block text-[10px] text-px-faint truncate",
10413
+ children: e.priceLabel
10414
+ })]
10415
+ })]
10416
+ }), vc = ({ value: e, onChange: t }) => {
10417
+ let { products: n } = La(), [r, i] = K(!1), [a, o] = K(""), [s, c] = K(null), [l, u] = K(!1), d = n?.list, f = H(() => {
10418
+ if (!d) return;
10419
+ u(!1), c(null);
10420
+ let e = !0;
10421
+ return d().then((t) => {
10422
+ e && c(Array.isArray(t) ? t : []);
10423
+ }).catch(() => {
10424
+ e && u(!0);
10425
+ }), () => {
10426
+ e = !1;
10427
+ };
10428
+ }, [d]);
10429
+ U(() => f(), [f]);
10430
+ let p = W(() => (s ?? []).filter((e) => !a.trim() || e.name.toLowerCase().includes(a.trim().toLowerCase())), [s, a]);
10431
+ if (!d) return /* @__PURE__ */ J("input", {
10432
+ className: hc,
10433
+ value: e,
10434
+ onChange: (e) => t(e.target.value),
10435
+ placeholder: "Paste the product's code",
10436
+ "aria-label": "Product"
10437
+ });
10438
+ let m = s?.find((t) => t.id === e), h = n?.onCreate && /* @__PURE__ */ Y("button", {
10439
+ type: "button",
10440
+ onClick: n.onCreate,
10441
+ className: "flex items-center justify-center gap-1.5 w-full h-8 rounded border border-px-line2 bg-px-raised hover:border-px-accent/60 text-[11px] text-px-text cursor-pointer",
10442
+ children: [/* @__PURE__ */ J(L, {
10443
+ size: 12,
10444
+ "aria-hidden": "true"
10445
+ }), n.createLabel ?? "Create a product"]
10446
+ }), g;
10447
+ return g = l ? /* @__PURE__ */ Y("div", {
10448
+ className: "space-y-1.5",
10449
+ children: [/* @__PURE__ */ J("p", {
10450
+ className: "text-[11px] text-px-muted leading-snug",
10451
+ children: "We couldn't load your products. Check your connection and try again."
10452
+ }), /* @__PURE__ */ J("button", {
10453
+ type: "button",
10454
+ onClick: f,
10455
+ className: "h-7 px-2.5 rounded border border-px-line2 bg-px-raised text-[11px] text-px-text cursor-pointer",
10456
+ children: "Try again"
10457
+ })]
10458
+ }) : s === null ? /* @__PURE__ */ J("p", {
10459
+ className: "text-[11px] text-px-faint",
10460
+ children: "Loading your products…"
10461
+ }) : s.length === 0 ? /* @__PURE__ */ Y("div", {
10462
+ className: "space-y-1.5",
10463
+ children: [/* @__PURE__ */ J("p", {
10464
+ className: "text-[11px] text-px-muted leading-snug",
10465
+ children: "You have no products yet"
10466
+ }), h]
10467
+ }) : /* @__PURE__ */ Y("div", {
10468
+ className: "space-y-2",
10469
+ children: [
10470
+ /* @__PURE__ */ J("input", {
10471
+ className: hc,
10472
+ value: a,
10473
+ onChange: (e) => o(e.target.value),
10474
+ placeholder: "Search your products",
10475
+ "aria-label": "Search your products"
10476
+ }),
10477
+ /* @__PURE__ */ Y("div", {
10478
+ role: "listbox",
10479
+ "aria-label": "Your products",
10480
+ className: "max-h-48 overflow-y-auto space-y-0.5",
10481
+ children: [p.map((n) => /* @__PURE__ */ J("button", {
10482
+ type: "button",
10483
+ role: "option",
10484
+ "aria-selected": n.id === e,
10485
+ onClick: () => {
10486
+ t(n.id), i(!1), o("");
10487
+ },
10488
+ className: `w-full flex items-center px-1.5 py-1 rounded cursor-pointer ${n.id === e ? "bg-px-line2" : "hover:bg-px-line2"}`,
10489
+ children: /* @__PURE__ */ J(_c, { p: n })
10490
+ }, n.id)), p.length === 0 && /* @__PURE__ */ J("p", {
10491
+ className: "text-[11px] text-px-faint px-1.5 py-1",
10492
+ children: "No product matches that."
10493
+ })]
10494
+ }),
10495
+ h
10496
+ ]
10497
+ }), /* @__PURE__ */ Y("div", {
10498
+ className: "space-y-1.5",
10499
+ children: [/* @__PURE__ */ Y("button", {
10500
+ type: "button",
10501
+ onClick: () => i(!r),
10502
+ "aria-expanded": r,
10503
+ className: "flex items-center justify-between gap-2 w-full min-h-10 px-2 py-1 rounded border border-px-line2 bg-px-raised hover:border-px-accent/60 cursor-pointer",
10504
+ children: [m ? /* @__PURE__ */ J(_c, { p: m }) : /* @__PURE__ */ J("span", {
10505
+ className: "text-[11px] text-px-muted",
10506
+ children: e && s ? "That product is no longer available. Choose another" : "Choose a product"
10507
+ }), /* @__PURE__ */ J(C, {
10508
+ size: 14,
10509
+ className: "text-px-faint shrink-0",
10510
+ "aria-hidden": "true"
10511
+ })]
10512
+ }), (r || s?.length === 0 || l) && /* @__PURE__ */ J("div", {
10513
+ className: "rounded-lg border border-px-line2 bg-px-surface p-2",
10514
+ children: g
10515
+ })]
10516
+ });
10517
+ }, yc = "w-full bg-px-raised border border-px-line2 rounded px-2 py-1 text-xs text-px-text placeholder-px-faint focus:outline-none focus:border-px-accent", bc = "w-6 h-6 rounded flex items-center justify-center text-px-muted hover:text-white hover:bg-px-line2 disabled:opacity-30 disabled:hover:bg-transparent cursor-pointer", xc = ({ title: e, children: t }) => /* @__PURE__ */ Y("div", {
10395
10518
  className: "space-y-2",
10396
10519
  children: [/* @__PURE__ */ J("div", {
10397
10520
  className: "text-[10px] uppercase tracking-wider font-semibold text-px-faint",
@@ -10406,7 +10529,7 @@ var pc = [
10406
10529
  className: "flex-1 min-w-0",
10407
10530
  children: t
10408
10531
  })]
10409
- }), vc = ({ label: e, checked: t, onChange: n, hint: r }) => /* @__PURE__ */ Y("label", {
10532
+ }), Sc = ({ label: e, checked: t, onChange: n, hint: r }) => /* @__PURE__ */ Y("label", {
10410
10533
  className: "flex items-start gap-2 cursor-pointer",
10411
10534
  children: [/* @__PURE__ */ J("input", {
10412
10535
  type: "checkbox",
@@ -10421,7 +10544,7 @@ var pc = [
10421
10544
  })]
10422
10545
  })]
10423
10546
  });
10424
- function yc({ items: e, onChange: n, render: r, blank: i, addLabel: a, min: o = 0 }) {
10547
+ function Cc({ items: e, onChange: n, render: r, blank: i, addLabel: a, min: o = 0 }) {
10425
10548
  let s = (t, r) => {
10426
10549
  let i = e.slice(), [a] = i.splice(t, 1);
10427
10550
  i.splice(t + r, 0, a), n(i);
@@ -10434,21 +10557,21 @@ function yc({ items: e, onChange: n, render: r, blank: i, addLabel: a, min: o =
10434
10557
  className: "flex items-center justify-end gap-0.5",
10435
10558
  children: [
10436
10559
  /* @__PURE__ */ J("button", {
10437
- className: gc,
10560
+ className: bc,
10438
10561
  disabled: a === 0,
10439
10562
  onClick: () => s(a, -1),
10440
10563
  "aria-label": "Move up",
10441
10564
  children: /* @__PURE__ */ J(t, { className: "w-3 h-3" })
10442
10565
  }),
10443
10566
  /* @__PURE__ */ J("button", {
10444
- className: gc,
10567
+ className: bc,
10445
10568
  disabled: a === e.length - 1,
10446
10569
  onClick: () => s(a, 1),
10447
10570
  "aria-label": "Move down",
10448
10571
  children: /* @__PURE__ */ J(Ge, { className: "w-3 h-3" })
10449
10572
  }),
10450
10573
  /* @__PURE__ */ J("button", {
10451
- className: gc,
10574
+ className: bc,
10452
10575
  disabled: e.length <= o,
10453
10576
  onClick: () => n(e.filter((e, t) => t !== a)),
10454
10577
  "aria-label": "Remove",
@@ -10470,7 +10593,7 @@ function yc({ items: e, onChange: n, render: r, blank: i, addLabel: a, min: o =
10470
10593
  })]
10471
10594
  });
10472
10595
  }
10473
- var bc = ({ value: e, onChange: t }) => {
10596
+ var wc = ({ value: e, onChange: t }) => {
10474
10597
  let n = La(), r = G(null), [i, a] = K(null), [o, s] = K(!1), c = async (e) => {
10475
10598
  if (e) {
10476
10599
  s(!0), a(null);
@@ -10507,7 +10630,7 @@ var bc = ({ value: e, onChange: t }) => {
10507
10630
  ]
10508
10631
  }),
10509
10632
  /* @__PURE__ */ J("input", {
10510
- className: hc,
10633
+ className: yc,
10511
10634
  value: e.startsWith("data:") ? "" : e,
10512
10635
  onChange: (e) => t(e.target.value),
10513
10636
  placeholder: "…or paste an image link"
@@ -10518,7 +10641,7 @@ var bc = ({ value: e, onChange: t }) => {
10518
10641
  children: i
10519
10642
  })]
10520
10643
  });
10521
- }, xc = ({ name: e, size: t = 20 }) => /* @__PURE__ */ J("svg", {
10644
+ }, Tc = ({ name: e, size: t = 20 }) => /* @__PURE__ */ J("svg", {
10522
10645
  width: t,
10523
10646
  height: t,
10524
10647
  viewBox: "0 0 24 24",
@@ -10532,12 +10655,12 @@ var bc = ({ value: e, onChange: t }) => {
10532
10655
  key: n,
10533
10656
  ...t
10534
10657
  }))
10535
- }), Sc = (e) => e.replace(/-/g, " "), Cc = ({ node: e, p: t, set: n }) => {
10536
- let { updateNodeStyles: r } = Z(), [i, a] = K(""), o = i.trim().toLowerCase(), s = Object.entries(rn).map(([e, t]) => [e, o ? t.filter((t) => Sc(t).includes(o) || e.toLowerCase().includes(o)) : t]).filter(([, e]) => e.length), c = parseInt(String(e.styles.fontSize ?? "40"), 10) || 40;
10537
- return /* @__PURE__ */ Y(q, { children: [/* @__PURE__ */ Y(_c, {
10658
+ }), Ec = (e) => e.replace(/-/g, " "), Dc = ({ node: e, p: t, set: n }) => {
10659
+ let { updateNodeStyles: r } = Z(), [i, a] = K(""), o = i.trim().toLowerCase(), s = Object.entries(rn).map(([e, t]) => [e, o ? t.filter((t) => Ec(t).includes(o) || e.toLowerCase().includes(o)) : t]).filter(([, e]) => e.length), c = parseInt(String(e.styles.fontSize ?? "40"), 10) || 40;
10660
+ return /* @__PURE__ */ Y(q, { children: [/* @__PURE__ */ Y(xc, {
10538
10661
  title: "Icon",
10539
10662
  children: [/* @__PURE__ */ J("input", {
10540
- className: hc,
10663
+ className: yc,
10541
10664
  value: i,
10542
10665
  onChange: (e) => a(e.target.value),
10543
10666
  placeholder: "Search icons (try “mail” or “heart”)",
@@ -10558,16 +10681,16 @@ var bc = ({ value: e, onChange: t }) => {
10558
10681
  className: "grid grid-cols-6 gap-1",
10559
10682
  children: r.map((e) => /* @__PURE__ */ J("button", {
10560
10683
  type: "button",
10561
- title: Sc(e),
10562
- "aria-label": Sc(e),
10684
+ title: Ec(e),
10685
+ "aria-label": Ec(e),
10563
10686
  "aria-pressed": t.iconName === e,
10564
10687
  onClick: () => n({ iconName: e }),
10565
10688
  className: `h-8 rounded-md flex items-center justify-center cursor-pointer transition-colors ${t.iconName === e ? "bg-px-accent text-px-onaccent" : "bg-px-raised text-px-text hover:bg-px-line2"}`,
10566
- children: /* @__PURE__ */ J(xc, { name: e })
10689
+ children: /* @__PURE__ */ J(Tc, { name: e })
10567
10690
  }, e))
10568
10691
  })] }, e))]
10569
10692
  })]
10570
- }), /* @__PURE__ */ Y(_c, {
10693
+ }), /* @__PURE__ */ Y(xc, {
10571
10694
  title: "Look",
10572
10695
  children: [
10573
10696
  /* @__PURE__ */ J(Q, {
@@ -10591,7 +10714,7 @@ var bc = ({ value: e, onChange: t }) => {
10591
10714
  /* @__PURE__ */ J(Q, {
10592
10715
  label: "Line",
10593
10716
  children: /* @__PURE__ */ Y("select", {
10594
- className: hc,
10717
+ className: yc,
10595
10718
  value: t.strokeWidth ?? 2,
10596
10719
  onChange: (e) => n({ strokeWidth: Number(e.target.value) }),
10597
10720
  children: [
@@ -10613,7 +10736,7 @@ var bc = ({ value: e, onChange: t }) => {
10613
10736
  /* @__PURE__ */ J(Q, {
10614
10737
  label: "Describe",
10615
10738
  children: /* @__PURE__ */ J("input", {
10616
- className: hc,
10739
+ className: yc,
10617
10740
  value: t.label ?? "",
10618
10741
  onChange: (e) => n({ label: e.target.value }),
10619
10742
  placeholder: "For screen readers (optional)"
@@ -10621,9 +10744,9 @@ var bc = ({ value: e, onChange: t }) => {
10621
10744
  })
10622
10745
  ]
10623
10746
  })] });
10624
- }, wc = ({ p: e, set: t }) => /* @__PURE__ */ Y(q, { children: [/* @__PURE__ */ J(_c, {
10747
+ }, Oc = ({ p: e, set: t }) => /* @__PURE__ */ Y(q, { children: [/* @__PURE__ */ J(xc, {
10625
10748
  title: "Slides",
10626
- children: /* @__PURE__ */ J(yc, {
10749
+ children: /* @__PURE__ */ J(Cc, {
10627
10750
  items: e.slides ?? [],
10628
10751
  onChange: (e) => t({ slides: e }),
10629
10752
  blank: () => ({
@@ -10633,18 +10756,18 @@ var bc = ({ value: e, onChange: t }) => {
10633
10756
  }),
10634
10757
  addLabel: "Add slide",
10635
10758
  render: (e, t) => /* @__PURE__ */ Y(q, { children: [
10636
- /* @__PURE__ */ J(bc, {
10759
+ /* @__PURE__ */ J(wc, {
10637
10760
  value: e.src,
10638
10761
  onChange: (e) => t({ src: e })
10639
10762
  }),
10640
10763
  /* @__PURE__ */ J("input", {
10641
- className: hc,
10764
+ className: yc,
10642
10765
  value: e.caption ?? "",
10643
10766
  onChange: (e) => t({ caption: e.target.value }),
10644
10767
  placeholder: "Caption (optional)"
10645
10768
  }),
10646
10769
  /* @__PURE__ */ J("input", {
10647
- className: hc,
10770
+ className: yc,
10648
10771
  value: e.alt ?? "",
10649
10772
  onChange: (e) => t({ alt: e.target.value }),
10650
10773
  placeholder: "Describe the image (for accessibility)"
@@ -10656,20 +10779,20 @@ var bc = ({ value: e, onChange: t }) => {
10656
10779
  })
10657
10780
  ] })
10658
10781
  })
10659
- }), /* @__PURE__ */ Y(_c, {
10782
+ }), /* @__PURE__ */ Y(xc, {
10660
10783
  title: "Behaviour",
10661
10784
  children: [
10662
- /* @__PURE__ */ J(vc, {
10785
+ /* @__PURE__ */ J(Sc, {
10663
10786
  label: "Show arrows",
10664
10787
  checked: e.showArrows !== !1,
10665
10788
  onChange: (e) => t({ showArrows: e })
10666
10789
  }),
10667
- /* @__PURE__ */ J(vc, {
10790
+ /* @__PURE__ */ J(Sc, {
10668
10791
  label: "Show dots",
10669
10792
  checked: e.showDots !== !1,
10670
10793
  onChange: (e) => t({ showDots: e })
10671
10794
  }),
10672
- /* @__PURE__ */ J(vc, {
10795
+ /* @__PURE__ */ J(Sc, {
10673
10796
  label: "Slide automatically",
10674
10797
  checked: !!e.autoplay,
10675
10798
  onChange: (e) => t({ autoplay: e }),
@@ -10693,15 +10816,15 @@ var bc = ({ value: e, onChange: t }) => {
10693
10816
  })
10694
10817
  })
10695
10818
  ]
10696
- })] }), Tc = ({ p: e, set: t }) => {
10819
+ })] }), kc = ({ p: e, set: t }) => {
10697
10820
  let n = e.url ?? "", r = n ? Mt(n) : null;
10698
- return /* @__PURE__ */ Y(_c, {
10821
+ return /* @__PURE__ */ Y(xc, {
10699
10822
  title: "Video",
10700
10823
  children: [
10701
10824
  /* @__PURE__ */ J(Q, {
10702
10825
  label: "Link",
10703
10826
  children: /* @__PURE__ */ J("input", {
10704
- className: hc,
10827
+ className: yc,
10705
10828
  value: n,
10706
10829
  onChange: (e) => t({ url: e.target.value }),
10707
10830
  placeholder: "YouTube, Vimeo or .mp4 link"
@@ -10713,7 +10836,7 @@ var bc = ({ value: e, onChange: t }) => {
10713
10836
  }),
10714
10837
  r?.kind === "file" && /* @__PURE__ */ J(Q, {
10715
10838
  label: "Cover",
10716
- children: /* @__PURE__ */ J(bc, {
10839
+ children: /* @__PURE__ */ J(wc, {
10717
10840
  value: e.poster ?? "",
10718
10841
  onChange: (e) => t({ poster: e })
10719
10842
  })
@@ -10721,7 +10844,7 @@ var bc = ({ value: e, onChange: t }) => {
10721
10844
  /* @__PURE__ */ J(Q, {
10722
10845
  label: "Shape",
10723
10846
  children: /* @__PURE__ */ Y("select", {
10724
- className: hc,
10847
+ className: yc,
10725
10848
  value: e.ratio ?? "16:9",
10726
10849
  onChange: (e) => t({ ratio: e.target.value }),
10727
10850
  children: [
@@ -10744,20 +10867,20 @@ var bc = ({ value: e, onChange: t }) => {
10744
10867
  ]
10745
10868
  })
10746
10869
  }),
10747
- r?.kind === "file" && /* @__PURE__ */ Y(q, { children: [/* @__PURE__ */ J(vc, {
10870
+ r?.kind === "file" && /* @__PURE__ */ Y(q, { children: [/* @__PURE__ */ J(Sc, {
10748
10871
  label: "Play on load (muted)",
10749
10872
  checked: !!e.autoplay,
10750
10873
  onChange: (e) => t({ autoplay: e })
10751
- }), /* @__PURE__ */ J(vc, {
10874
+ }), /* @__PURE__ */ J(Sc, {
10752
10875
  label: "Loop",
10753
10876
  checked: !!e.loop,
10754
10877
  onChange: (e) => t({ loop: e })
10755
10878
  })] })
10756
10879
  ]
10757
10880
  });
10758
- }, Ec = ({ p: e, set: t }) => /* @__PURE__ */ Y(q, { children: [/* @__PURE__ */ J(_c, {
10881
+ }, Ac = ({ p: e, set: t }) => /* @__PURE__ */ Y(q, { children: [/* @__PURE__ */ J(xc, {
10759
10882
  title: "Links",
10760
- children: /* @__PURE__ */ J(yc, {
10883
+ children: /* @__PURE__ */ J(Cc, {
10761
10884
  items: e.links ?? [],
10762
10885
  onChange: (e) => t({ links: e }),
10763
10886
  blank: () => ({
@@ -10766,7 +10889,7 @@ var bc = ({ value: e, onChange: t }) => {
10766
10889
  }),
10767
10890
  addLabel: "Add link",
10768
10891
  render: (e, t) => /* @__PURE__ */ Y(q, { children: [/* @__PURE__ */ J("select", {
10769
- className: hc,
10892
+ className: yc,
10770
10893
  value: e.network,
10771
10894
  onChange: (e) => t({ network: e.target.value }),
10772
10895
  children: Object.entries(_r).map(([e, t]) => /* @__PURE__ */ J("option", {
@@ -10774,19 +10897,19 @@ var bc = ({ value: e, onChange: t }) => {
10774
10897
  children: t.label
10775
10898
  }, e))
10776
10899
  }), /* @__PURE__ */ J("input", {
10777
- className: hc,
10900
+ className: yc,
10778
10901
  value: e.url,
10779
10902
  onChange: (e) => t({ url: e.target.value }),
10780
10903
  placeholder: e.network === "email" ? "mailto:you@example.com" : "https://…"
10781
10904
  })] })
10782
10905
  })
10783
- }), /* @__PURE__ */ Y(_c, {
10906
+ }), /* @__PURE__ */ Y(xc, {
10784
10907
  title: "Look",
10785
10908
  children: [
10786
10909
  /* @__PURE__ */ J(Q, {
10787
10910
  label: "Style",
10788
10911
  children: /* @__PURE__ */ Y("select", {
10789
- className: hc,
10912
+ className: yc,
10790
10913
  value: e.shape ?? "circle",
10791
10914
  onChange: (e) => t({ shape: e.target.value }),
10792
10915
  children: [
@@ -10808,7 +10931,7 @@ var bc = ({ value: e, onChange: t }) => {
10808
10931
  /* @__PURE__ */ J(Q, {
10809
10932
  label: "Colours",
10810
10933
  children: /* @__PURE__ */ Y("select", {
10811
- className: hc,
10934
+ className: yc,
10812
10935
  value: e.colorMode ?? "brand",
10813
10936
  onChange: (e) => t({ colorMode: e.target.value }),
10814
10937
  children: [/* @__PURE__ */ J("option", {
@@ -10832,9 +10955,9 @@ var bc = ({ value: e, onChange: t }) => {
10832
10955
  })
10833
10956
  })
10834
10957
  ]
10835
- })] }), Dc = ({ p: e, set: t }) => /* @__PURE__ */ Y(q, { children: [/* @__PURE__ */ J(_c, {
10958
+ })] }), jc = ({ p: e, set: t }) => /* @__PURE__ */ Y(q, { children: [/* @__PURE__ */ J(xc, {
10836
10959
  title: "Menu items",
10837
- children: /* @__PURE__ */ J(yc, {
10960
+ children: /* @__PURE__ */ J(Cc, {
10838
10961
  items: e.links ?? [],
10839
10962
  onChange: (e) => t({ links: e }),
10840
10963
  blank: () => ({
@@ -10843,7 +10966,7 @@ var bc = ({ value: e, onChange: t }) => {
10843
10966
  }),
10844
10967
  addLabel: "Add menu item",
10845
10968
  render: (e, t) => /* @__PURE__ */ Y(q, { children: [/* @__PURE__ */ J("input", {
10846
- className: hc,
10969
+ className: yc,
10847
10970
  value: e.label,
10848
10971
  onChange: (e) => t({ label: e.target.value }),
10849
10972
  placeholder: "What it says",
@@ -10853,12 +10976,12 @@ var bc = ({ value: e, onChange: t }) => {
10853
10976
  onChange: (e) => t({ href: e })
10854
10977
  })] })
10855
10978
  })
10856
- }), /* @__PURE__ */ Y(_c, {
10979
+ }), /* @__PURE__ */ Y(xc, {
10857
10980
  title: "Layout",
10858
10981
  children: [/* @__PURE__ */ J(Q, {
10859
10982
  label: "Direction",
10860
10983
  children: /* @__PURE__ */ Y("select", {
10861
- className: hc,
10984
+ className: yc,
10862
10985
  value: e.layout ?? "horizontal",
10863
10986
  onChange: (e) => t({ layout: e.target.value }),
10864
10987
  children: [/* @__PURE__ */ J("option", {
@@ -10872,7 +10995,7 @@ var bc = ({ value: e, onChange: t }) => {
10872
10995
  }), /* @__PURE__ */ J(Q, {
10873
10996
  label: "On phones",
10874
10997
  children: /* @__PURE__ */ Y("select", {
10875
- className: hc,
10998
+ className: yc,
10876
10999
  value: e.mobile ?? "hamburger",
10877
11000
  onChange: (e) => t({ mobile: e.target.value }),
10878
11001
  children: [/* @__PURE__ */ J("option", {
@@ -10884,11 +11007,11 @@ var bc = ({ value: e, onChange: t }) => {
10884
11007
  })]
10885
11008
  })
10886
11009
  })]
10887
- })] }), Oc = ({ p: e, set: t }) => /* @__PURE__ */ Y(_c, {
11010
+ })] }), Mc = ({ p: e, set: t }) => /* @__PURE__ */ Y(xc, {
10888
11011
  title: "Embed code",
10889
11012
  children: [
10890
11013
  /* @__PURE__ */ J("textarea", {
10891
- className: `${hc} font-mono min-h-[140px] select-text`,
11014
+ className: `${yc} font-mono min-h-[140px] select-text`,
10892
11015
  value: e.code ?? "",
10893
11016
  onChange: (e) => t({ code: e.target.value }),
10894
11017
  placeholder: "Paste the embed code from your booking, map, form or video tool",
@@ -10901,27 +11024,27 @@ var bc = ({ value: e, onChange: t }) => {
10901
11024
  /* @__PURE__ */ J(Q, {
10902
11025
  label: "Title",
10903
11026
  children: /* @__PURE__ */ J("input", {
10904
- className: hc,
11027
+ className: yc,
10905
11028
  value: e.title ?? "",
10906
11029
  onChange: (e) => t({ title: e.target.value }),
10907
11030
  placeholder: "Describes it for screen readers"
10908
11031
  })
10909
11032
  })
10910
11033
  ]
10911
- }), kc = ({ p: e, set: t }) => {
11034
+ }), Nc = ({ p: e, set: t }) => {
10912
11035
  let n = e.rows?.length ? e.rows : [[""]], r = Math.max(...n.map((e) => e.length)), i = (e, i, a) => t({ rows: n.map((t, n) => n === e ? Array.from({ length: r }, (e, n) => n === i ? a : t[n] ?? "") : t) });
10913
- return /* @__PURE__ */ Y(q, { children: [/* @__PURE__ */ Y(_c, {
11036
+ return /* @__PURE__ */ Y(q, { children: [/* @__PURE__ */ Y(xc, {
10914
11037
  title: "Cells",
10915
11038
  children: [/* @__PURE__ */ J("div", {
10916
11039
  className: "overflow-x-auto",
10917
11040
  children: /* @__PURE__ */ J("table", {
10918
11041
  className: "border-separate border-spacing-1",
10919
11042
  children: /* @__PURE__ */ J("tbody", { children: n.map((a, o) => /* @__PURE__ */ Y("tr", { children: [Array.from({ length: r }, (t, n) => /* @__PURE__ */ J("td", { children: /* @__PURE__ */ J("input", {
10920
- className: `${hc} min-w-[72px] ${o === 0 && e.headerRow !== !1 ? "font-semibold" : ""}`,
11043
+ className: `${yc} min-w-[72px] ${o === 0 && e.headerRow !== !1 ? "font-semibold" : ""}`,
10921
11044
  value: a[n] ?? "",
10922
11045
  onChange: (e) => i(o, n, e.target.value)
10923
11046
  }) }, n)), /* @__PURE__ */ J("td", { children: /* @__PURE__ */ J("button", {
10924
- className: gc,
11047
+ className: bc,
10925
11048
  disabled: n.length <= 1,
10926
11049
  onClick: () => t({ rows: n.filter((e, t) => t !== o) }),
10927
11050
  "aria-label": "Remove row",
@@ -10949,32 +11072,32 @@ var bc = ({ value: e, onChange: t }) => {
10949
11072
  })
10950
11073
  ]
10951
11074
  })]
10952
- }), /* @__PURE__ */ Y(_c, {
11075
+ }), /* @__PURE__ */ Y(xc, {
10953
11076
  title: "Look",
10954
- children: [/* @__PURE__ */ J(vc, {
11077
+ children: [/* @__PURE__ */ J(Sc, {
10955
11078
  label: "First row is a heading",
10956
11079
  checked: e.headerRow !== !1,
10957
11080
  onChange: (e) => t({ headerRow: e })
10958
- }), /* @__PURE__ */ J(vc, {
11081
+ }), /* @__PURE__ */ J(Sc, {
10959
11082
  label: "Shade every other row",
10960
11083
  checked: e.striped !== !1,
10961
11084
  onChange: (e) => t({ striped: e })
10962
11085
  })]
10963
11086
  })] });
10964
- }, Ac = (e) => {
11087
+ }, Pc = (e) => {
10965
11088
  let t = new Date(e ?? "");
10966
11089
  if (Number.isNaN(t.getTime())) return "";
10967
11090
  let n = (e) => String(e).padStart(2, "0");
10968
11091
  return `${t.getFullYear()}-${n(t.getMonth() + 1)}-${n(t.getDate())}T${n(t.getHours())}:${n(t.getMinutes())}`;
10969
- }, jc = ({ p: e, set: t }) => /* @__PURE__ */ Y(_c, {
11092
+ }, Fc = ({ p: e, set: t }) => /* @__PURE__ */ Y(xc, {
10970
11093
  title: "Countdown",
10971
11094
  children: [
10972
11095
  /* @__PURE__ */ J(Q, {
10973
11096
  label: "Ends at",
10974
11097
  children: /* @__PURE__ */ J("input", {
10975
11098
  type: "datetime-local",
10976
- className: hc,
10977
- value: Ac(e.target),
11099
+ className: yc,
11100
+ value: Pc(e.target),
10978
11101
  onChange: (e) => e.target.value && t({ target: new Date(e.target.value).toISOString() })
10979
11102
  })
10980
11103
  }),
@@ -10985,26 +11108,26 @@ var bc = ({ value: e, onChange: t }) => {
10985
11108
  /* @__PURE__ */ J(Q, {
10986
11109
  label: "When over",
10987
11110
  children: /* @__PURE__ */ J("input", {
10988
- className: hc,
11111
+ className: yc,
10989
11112
  value: e.expiredMessage ?? "",
10990
11113
  onChange: (e) => t({ expiredMessage: e.target.value }),
10991
11114
  placeholder: "This offer has ended"
10992
11115
  })
10993
11116
  }),
10994
- /* @__PURE__ */ J(vc, {
11117
+ /* @__PURE__ */ J(Sc, {
10995
11118
  label: "Show Days / Hours / Minutes labels",
10996
11119
  checked: e.showLabels !== !1,
10997
11120
  onChange: (e) => t({ showLabels: e })
10998
11121
  })
10999
11122
  ]
11000
- }), Mc = [
11123
+ }), Ic = [
11001
11124
  ["text", "Short answer"],
11002
11125
  ["email", "Email"],
11003
11126
  ["tel", "Phone"],
11004
11127
  ["textarea", "Long answer"],
11005
11128
  ["select", "Dropdown"],
11006
11129
  ["checkbox", "Checkbox"]
11007
- ], Nc = ({ node: e, p: t, set: n }) => {
11130
+ ], Lc = ({ node: e, p: t, set: n }) => {
11008
11131
  let r = La(), i = Et(t.action, e.id, {
11009
11132
  apiKey: r.apiKey,
11010
11133
  templateId: r.templateId,
@@ -11023,9 +11146,9 @@ var bc = ({ value: e, onChange: t }) => {
11023
11146
  text: "This form has nowhere to send messages yet. Add an address below."
11024
11147
  };
11025
11148
  return /* @__PURE__ */ Y(q, { children: [
11026
- /* @__PURE__ */ J(_c, {
11149
+ /* @__PURE__ */ J(xc, {
11027
11150
  title: "Fields",
11028
- children: /* @__PURE__ */ J(yc, {
11151
+ children: /* @__PURE__ */ J(Cc, {
11029
11152
  items: t.fields ?? [],
11030
11153
  min: 1,
11031
11154
  onChange: (e) => n({ fields: e }),
@@ -11037,16 +11160,16 @@ var bc = ({ value: e, onChange: t }) => {
11037
11160
  addLabel: "Add field",
11038
11161
  render: (e, t) => /* @__PURE__ */ Y(q, { children: [
11039
11162
  /* @__PURE__ */ J("input", {
11040
- className: hc,
11163
+ className: yc,
11041
11164
  value: e.label,
11042
11165
  onChange: (e) => t({ label: e.target.value }),
11043
11166
  placeholder: "Question"
11044
11167
  }),
11045
11168
  /* @__PURE__ */ J("select", {
11046
- className: hc,
11169
+ className: yc,
11047
11170
  value: e.type,
11048
11171
  onChange: (e) => t({ type: e.target.value }),
11049
- children: Mc.map(([e, t]) => /* @__PURE__ */ J("option", {
11172
+ children: Ic.map(([e, t]) => /* @__PURE__ */ J("option", {
11050
11173
  value: e,
11051
11174
  children: t
11052
11175
  }, e))
@@ -11064,7 +11187,7 @@ var bc = ({ value: e, onChange: t }) => {
11064
11187
  onChange: (e) => t({ placeholder: e.target.value }),
11065
11188
  placeholder: "Hint text (optional)"
11066
11189
  }),
11067
- /* @__PURE__ */ J(vc, {
11190
+ /* @__PURE__ */ J(Sc, {
11068
11191
  label: "Required",
11069
11192
  checked: !!e.required,
11070
11193
  onChange: (e) => t({ required: e })
@@ -11072,12 +11195,12 @@ var bc = ({ value: e, onChange: t }) => {
11072
11195
  ] })
11073
11196
  })
11074
11197
  }),
11075
- /* @__PURE__ */ Y(_c, {
11198
+ /* @__PURE__ */ Y(xc, {
11076
11199
  title: "After sending",
11077
11200
  children: [/* @__PURE__ */ J(Q, {
11078
11201
  label: "Button",
11079
11202
  children: /* @__PURE__ */ J("input", {
11080
- className: hc,
11203
+ className: yc,
11081
11204
  value: t.submitLabel ?? "",
11082
11205
  onChange: (e) => n({ submitLabel: e.target.value }),
11083
11206
  placeholder: "Send message"
@@ -11085,14 +11208,14 @@ var bc = ({ value: e, onChange: t }) => {
11085
11208
  }), /* @__PURE__ */ J(Q, {
11086
11209
  label: "Thank-you",
11087
11210
  children: /* @__PURE__ */ J("input", {
11088
- className: hc,
11211
+ className: yc,
11089
11212
  value: t.successMessage ?? "",
11090
11213
  onChange: (e) => n({ successMessage: e.target.value }),
11091
11214
  placeholder: "Thanks! We got your message."
11092
11215
  })
11093
11216
  })]
11094
11217
  }),
11095
- /* @__PURE__ */ Y(_c, {
11218
+ /* @__PURE__ */ Y(xc, {
11096
11219
  title: "Send button look",
11097
11220
  children: [
11098
11221
  /* @__PURE__ */ J(Q, {
@@ -11126,7 +11249,7 @@ var bc = ({ value: e, onChange: t }) => {
11126
11249
  /* @__PURE__ */ J(Q, {
11127
11250
  label: "Corners",
11128
11251
  children: /* @__PURE__ */ Y("select", {
11129
- className: hc,
11252
+ className: yc,
11130
11253
  value: t.buttonRadius ?? "",
11131
11254
  onChange: (e) => n({ buttonRadius: e.target.value || void 0 }),
11132
11255
  children: [
@@ -11155,22 +11278,22 @@ var bc = ({ value: e, onChange: t }) => {
11155
11278
  })
11156
11279
  ]
11157
11280
  }),
11158
- /* @__PURE__ */ Y(_c, {
11281
+ /* @__PURE__ */ Y(xc, {
11159
11282
  title: "Where messages go",
11160
11283
  children: [/* @__PURE__ */ J("p", {
11161
11284
  className: `text-[11px] leading-snug ${a.ok ? "text-px-muted" : "text-amber-300"}`,
11162
11285
  children: a.text
11163
11286
  }), /* @__PURE__ */ J("input", {
11164
- className: hc,
11287
+ className: yc,
11165
11288
  value: t.action ?? "",
11166
11289
  onChange: (e) => n({ action: e.target.value }),
11167
11290
  placeholder: i.kind === "custom" ? "" : "Use a different address (optional)"
11168
11291
  })]
11169
11292
  })
11170
11293
  ] });
11171
- }, Pc = ({ p: e, set: t }) => /* @__PURE__ */ Y(q, { children: [/* @__PURE__ */ J(_c, {
11294
+ }, Rc = ({ p: e, set: t }) => /* @__PURE__ */ Y(q, { children: [/* @__PURE__ */ J(xc, {
11172
11295
  title: "Questions",
11173
- children: /* @__PURE__ */ J(yc, {
11296
+ children: /* @__PURE__ */ J(Cc, {
11174
11297
  items: e.items ?? [],
11175
11298
  onChange: (e) => t({ items: e }),
11176
11299
  blank: () => ({
@@ -11179,37 +11302,37 @@ var bc = ({ value: e, onChange: t }) => {
11179
11302
  }),
11180
11303
  addLabel: "Add question",
11181
11304
  render: (e, t) => /* @__PURE__ */ Y(q, { children: [/* @__PURE__ */ J("input", {
11182
- className: hc,
11305
+ className: yc,
11183
11306
  value: e.title,
11184
11307
  onChange: (e) => t({ title: e.target.value }),
11185
11308
  placeholder: "Question"
11186
11309
  }), /* @__PURE__ */ J("textarea", {
11187
- className: `${hc} select-text`,
11310
+ className: `${yc} select-text`,
11188
11311
  rows: 3,
11189
11312
  value: e.content,
11190
11313
  onChange: (e) => t({ content: e.target.value }),
11191
11314
  placeholder: "Answer"
11192
11315
  })] })
11193
11316
  })
11194
- }), /* @__PURE__ */ Y(_c, {
11317
+ }), /* @__PURE__ */ Y(xc, {
11195
11318
  title: "Behaviour",
11196
- children: [/* @__PURE__ */ J(vc, {
11319
+ children: [/* @__PURE__ */ J(Sc, {
11197
11320
  label: "Open the first one",
11198
11321
  checked: e.openFirst !== !1,
11199
11322
  onChange: (e) => t({ openFirst: e })
11200
- }), /* @__PURE__ */ J(vc, {
11323
+ }), /* @__PURE__ */ J(Sc, {
11201
11324
  label: "Allow several open at once",
11202
11325
  checked: !!e.allowMultiple,
11203
11326
  onChange: (e) => t({ allowMultiple: e })
11204
11327
  })]
11205
- })] }), Fc = (e) => e.trim() && Number.isFinite(Number(e)) ? Math.max(1, Math.round(Number(e))) : void 0, Ic = [
11328
+ })] }), zc = (e) => e.trim() && Number.isFinite(Number(e)) ? Math.max(1, Math.round(Number(e))) : void 0, Bc = [
11206
11329
  "",
11207
11330
  "best_seller",
11208
11331
  "most_recent"
11209
- ], Lc = ({ type: e, p: t, set: n }) => {
11210
- let r = (t) => qn(e, t), i = t.category ?? "", a = Ic.includes(i) ? i : "category", o = e === "shopGrid" && t.storeMode === !1;
11332
+ ], Vc = ({ type: e, p: t, set: n }) => {
11333
+ let r = (t) => qn(e, t), i = t.category ?? "", a = Bc.includes(i) ? i : "category", o = e === "shopGrid" && t.storeMode === !1;
11211
11334
  return /* @__PURE__ */ Y(q, { children: [
11212
- /* @__PURE__ */ Y(_c, {
11335
+ /* @__PURE__ */ Y(xc, {
11213
11336
  title: Un(e),
11214
11337
  children: [
11215
11338
  /* @__PURE__ */ J("p", {
@@ -11234,6 +11357,10 @@ var bc = ({ value: e, onChange: t }) => {
11234
11357
  value: t.mode ?? "",
11235
11358
  onChange: (e) => n({ mode: e.target.value }),
11236
11359
  children: [
11360
+ /* @__PURE__ */ J("option", {
11361
+ value: "buy",
11362
+ children: "A buy-now card"
11363
+ }),
11237
11364
  /* @__PURE__ */ J("option", {
11238
11365
  value: "detail",
11239
11366
  children: "A full product page"
@@ -11249,13 +11376,11 @@ var bc = ({ value: e, onChange: t }) => {
11249
11376
  ]
11250
11377
  })
11251
11378
  }),
11252
- t.mode !== "detail" && /* @__PURE__ */ J(Q, {
11253
- label: "Product",
11254
- children: /* @__PURE__ */ J("input", {
11255
- className: "w-full bg-px-raised border border-px-line2 rounded px-2 py-1 text-xs text-px-text placeholder-px-faint focus:outline-none focus:border-px-accent",
11379
+ t.mode !== "detail" && /* @__PURE__ */ J(xc, {
11380
+ title: "Product to sell",
11381
+ children: /* @__PURE__ */ J(vc, {
11256
11382
  value: t.productId ?? "",
11257
- onChange: (e) => n({ productId: e.target.value }),
11258
- placeholder: "Which product to sell"
11383
+ onChange: (e) => n({ productId: e })
11259
11384
  })
11260
11385
  }),
11261
11386
  t.mode === "detail" && /* @__PURE__ */ J("p", {
@@ -11274,10 +11399,10 @@ var bc = ({ value: e, onChange: t }) => {
11274
11399
  })
11275
11400
  ]
11276
11401
  }),
11277
- e === "shopGrid" && /* @__PURE__ */ Y(_c, {
11402
+ e === "shopGrid" && /* @__PURE__ */ Y(xc, {
11278
11403
  title: "Layout",
11279
11404
  children: [
11280
- /* @__PURE__ */ J(vc, {
11405
+ /* @__PURE__ */ J(Sc, {
11281
11406
  label: "Full shop with search and filters",
11282
11407
  checked: t.storeMode !== !1,
11283
11408
  onChange: (e) => n({ storeMode: e }),
@@ -11288,7 +11413,7 @@ var bc = ({ value: e, onChange: t }) => {
11288
11413
  children: /* @__PURE__ */ J("select", {
11289
11414
  className: "w-full bg-px-raised border border-px-line2 rounded px-2 py-1 text-xs text-px-text placeholder-px-faint focus:outline-none focus:border-px-accent",
11290
11415
  value: String(t.itemsPerRow ?? 3),
11291
- onChange: (e) => n({ itemsPerRow: Fc(e.target.value) }),
11416
+ onChange: (e) => n({ itemsPerRow: zc(e.target.value) }),
11292
11417
  children: [
11293
11418
  1,
11294
11419
  2,
@@ -11302,7 +11427,7 @@ var bc = ({ value: e, onChange: t }) => {
11302
11427
  }, e))
11303
11428
  })
11304
11429
  }),
11305
- /* @__PURE__ */ J(vc, {
11430
+ /* @__PURE__ */ J(Sc, {
11306
11431
  label: "Dark cards",
11307
11432
  checked: t.mode === "dark",
11308
11433
  onChange: (e) => n({ mode: e ? "dark" : "" })
@@ -11351,11 +11476,11 @@ var bc = ({ value: e, onChange: t }) => {
11351
11476
  min: 1,
11352
11477
  max: 96,
11353
11478
  value: t.limit ?? "",
11354
- onChange: (e) => n({ limit: Fc(e.target.value) }),
11479
+ onChange: (e) => n({ limit: zc(e.target.value) }),
11355
11480
  placeholder: "6"
11356
11481
  })
11357
11482
  }),
11358
- /* @__PURE__ */ J(vc, {
11483
+ /* @__PURE__ */ J(Sc, {
11359
11484
  label: "Split into pages",
11360
11485
  checked: !!t.paginated,
11361
11486
  onChange: (e) => n({ paginated: e })
@@ -11368,14 +11493,92 @@ var bc = ({ value: e, onChange: t }) => {
11368
11493
  min: 1,
11369
11494
  max: 96,
11370
11495
  value: t.itemsPerPage ?? "",
11371
- onChange: (e) => n({ itemsPerPage: Fc(e.target.value) }),
11496
+ onChange: (e) => n({ itemsPerPage: zc(e.target.value) }),
11372
11497
  placeholder: "12"
11373
11498
  })
11374
11499
  })
11375
11500
  ] })
11376
11501
  ]
11377
11502
  }),
11378
- e === "signupForm" && /* @__PURE__ */ Y(_c, {
11503
+ e === "contentList" && /* @__PURE__ */ Y(xc, {
11504
+ title: "What to show",
11505
+ children: [
11506
+ /* @__PURE__ */ J(Q, {
11507
+ label: "Content",
11508
+ children: /* @__PURE__ */ J("input", {
11509
+ className: "w-full bg-px-raised border border-px-line2 rounded px-2 py-1 text-xs text-px-text placeholder-px-faint focus:outline-none focus:border-px-accent",
11510
+ value: t.contentType ?? "",
11511
+ maxLength: 100,
11512
+ onChange: (e) => n({ contentType: e.target.value }),
11513
+ placeholder: "videos"
11514
+ })
11515
+ }),
11516
+ /* @__PURE__ */ J("p", {
11517
+ className: "text-[10px] text-px-faint pl-[72px]",
11518
+ children: "The name of what you post under Content: videos, stories or happenings."
11519
+ }),
11520
+ /* @__PURE__ */ J(Q, {
11521
+ label: "Look",
11522
+ children: /* @__PURE__ */ Y("select", {
11523
+ className: "w-full bg-px-raised border border-px-line2 rounded px-2 py-1 text-xs text-px-text placeholder-px-faint focus:outline-none focus:border-px-accent",
11524
+ value: t.layout ?? "gallery",
11525
+ onChange: (e) => n({ layout: e.target.value }),
11526
+ children: [
11527
+ /* @__PURE__ */ J("option", {
11528
+ value: "gallery",
11529
+ children: "Video gallery"
11530
+ }),
11531
+ /* @__PURE__ */ J("option", {
11532
+ value: "stories",
11533
+ children: "Story cards"
11534
+ }),
11535
+ /* @__PURE__ */ J("option", {
11536
+ value: "events",
11537
+ children: "Upcoming events"
11538
+ }),
11539
+ /* @__PURE__ */ J("option", {
11540
+ value: "featured",
11541
+ children: "One featured item"
11542
+ }),
11543
+ /* @__PURE__ */ J("option", {
11544
+ value: "list",
11545
+ children: "Simple list"
11546
+ })
11547
+ ]
11548
+ })
11549
+ }),
11550
+ (t.layout ?? "gallery") !== "featured" && (t.layout ?? "gallery") !== "events" && (t.layout ?? "gallery") !== "list" && /* @__PURE__ */ J(Q, {
11551
+ label: "Per row",
11552
+ children: /* @__PURE__ */ J("select", {
11553
+ className: "w-full bg-px-raised border border-px-line2 rounded px-2 py-1 text-xs text-px-text placeholder-px-faint focus:outline-none focus:border-px-accent",
11554
+ value: String(t.itemsPerRow ?? 3),
11555
+ onChange: (e) => n({ itemsPerRow: zc(e.target.value) }),
11556
+ children: [
11557
+ 1,
11558
+ 2,
11559
+ 3,
11560
+ 4
11561
+ ].map((e) => /* @__PURE__ */ J("option", {
11562
+ value: e,
11563
+ children: e
11564
+ }, e))
11565
+ })
11566
+ }),
11567
+ /* @__PURE__ */ J(Q, {
11568
+ label: "How many",
11569
+ children: /* @__PURE__ */ J("input", {
11570
+ className: "w-full bg-px-raised border border-px-line2 rounded px-2 py-1 text-xs text-px-text placeholder-px-faint focus:outline-none focus:border-px-accent",
11571
+ type: "number",
11572
+ min: 1,
11573
+ max: 96,
11574
+ value: t.limit ?? "",
11575
+ onChange: (e) => n({ limit: zc(e.target.value) }),
11576
+ placeholder: "All"
11577
+ })
11578
+ })
11579
+ ]
11580
+ }),
11581
+ e === "signupForm" && /* @__PURE__ */ Y(xc, {
11379
11582
  title: "Connection",
11380
11583
  children: [/* @__PURE__ */ J("p", {
11381
11584
  className: "text-[11px] text-px-muted leading-snug",
@@ -11391,64 +11594,64 @@ var bc = ({ value: e, onChange: t }) => {
11391
11594
  })]
11392
11595
  })
11393
11596
  ] });
11394
- }, Rc = ({ node: e }) => {
11597
+ }, Hc = ({ node: e }) => {
11395
11598
  let { updateNodeProps: t } = Z();
11396
11599
  if (!Bn(e.type)) return null;
11397
11600
  let n = e.props ?? {}, r = (n) => t(e.id, n);
11398
11601
  return /* @__PURE__ */ Y("div", {
11399
11602
  className: "p-3 space-y-4 border-b border-px-line",
11400
11603
  children: [
11401
- e.type === "icon" && /* @__PURE__ */ J(Cc, {
11604
+ e.type === "icon" && /* @__PURE__ */ J(Dc, {
11402
11605
  node: e,
11403
11606
  p: n,
11404
11607
  set: r
11405
11608
  }),
11406
- e.type === "carousel" && /* @__PURE__ */ J(wc, {
11609
+ e.type === "carousel" && /* @__PURE__ */ J(Oc, {
11407
11610
  p: n,
11408
11611
  set: r
11409
11612
  }),
11410
- e.type === "video" && /* @__PURE__ */ J(Tc, {
11613
+ e.type === "video" && /* @__PURE__ */ J(kc, {
11411
11614
  p: n,
11412
11615
  set: r
11413
11616
  }),
11414
- e.type === "social" && /* @__PURE__ */ J(Ec, {
11617
+ e.type === "social" && /* @__PURE__ */ J(Ac, {
11415
11618
  p: n,
11416
11619
  set: r
11417
11620
  }),
11418
- e.type === "menu" && /* @__PURE__ */ J(Dc, {
11621
+ e.type === "menu" && /* @__PURE__ */ J(jc, {
11419
11622
  p: n,
11420
11623
  set: r
11421
11624
  }),
11422
- e.type === "html" && /* @__PURE__ */ J(Oc, {
11625
+ e.type === "html" && /* @__PURE__ */ J(Mc, {
11423
11626
  p: n,
11424
11627
  set: r
11425
11628
  }),
11426
- e.type === "table" && /* @__PURE__ */ J(kc, {
11629
+ e.type === "table" && /* @__PURE__ */ J(Nc, {
11427
11630
  p: n,
11428
11631
  set: r
11429
11632
  }),
11430
- e.type === "timer" && /* @__PURE__ */ J(jc, {
11633
+ e.type === "timer" && /* @__PURE__ */ J(Fc, {
11431
11634
  p: n,
11432
11635
  set: r
11433
11636
  }),
11434
- e.type === "form" && /* @__PURE__ */ J(Nc, {
11637
+ e.type === "form" && /* @__PURE__ */ J(Lc, {
11435
11638
  node: e,
11436
11639
  p: n,
11437
11640
  set: r
11438
11641
  }),
11439
- e.type === "accordion" && /* @__PURE__ */ J(Pc, {
11642
+ e.type === "accordion" && /* @__PURE__ */ J(Rc, {
11440
11643
  p: n,
11441
11644
  set: r
11442
11645
  }),
11443
- br(e.type) && /* @__PURE__ */ J(Lc, {
11646
+ br(e.type) && /* @__PURE__ */ J(Vc, {
11444
11647
  type: e.type,
11445
11648
  p: n,
11446
11649
  set: r
11447
11650
  })
11448
11651
  ]
11449
11652
  });
11450
- }, zc = (e) => e.replace(/-/g, " "), Bc = ({ value: e, onChange: t }) => {
11451
- let [n, r] = K(!1), [i, a] = K(""), o = Object.values(rn).flat().filter((e, t, n) => n.indexOf(e) === t && (!i || zc(e).includes(i.toLowerCase()))), s = (e) => /* @__PURE__ */ J("svg", {
11653
+ }, Uc = (e) => e.replace(/-/g, " "), Wc = ({ value: e, onChange: t }) => {
11654
+ let [n, r] = K(!1), [i, a] = K(""), o = Object.values(rn).flat().filter((e, t, n) => n.indexOf(e) === t && (!i || Uc(e).includes(i.toLowerCase()))), s = (e) => /* @__PURE__ */ J("svg", {
11452
11655
  width: 18,
11453
11656
  height: 18,
11454
11657
  viewBox: "0 0 24 24",
@@ -11474,7 +11677,7 @@ var bc = ({ value: e, onChange: t }) => {
11474
11677
  s(e),
11475
11678
  /* @__PURE__ */ J("span", {
11476
11679
  className: "capitalize",
11477
- children: zc(e || "star")
11680
+ children: Uc(e || "star")
11478
11681
  }),
11479
11682
  /* @__PURE__ */ J("span", {
11480
11683
  className: "text-px-faint",
@@ -11493,8 +11696,8 @@ var bc = ({ value: e, onChange: t }) => {
11493
11696
  className: "grid grid-cols-7 gap-1 max-h-36 overflow-y-auto",
11494
11697
  children: o.map((n) => /* @__PURE__ */ J("button", {
11495
11698
  type: "button",
11496
- title: zc(n),
11497
- "aria-label": zc(n),
11699
+ title: Uc(n),
11700
+ "aria-label": Uc(n),
11498
11701
  "aria-pressed": n === e,
11499
11702
  onClick: () => {
11500
11703
  t(n), r(!1);
@@ -11505,7 +11708,7 @@ var bc = ({ value: e, onChange: t }) => {
11505
11708
  })]
11506
11709
  })]
11507
11710
  });
11508
- }, Vc = ({ fields: e, get: t, put: n }) => /* @__PURE__ */ J("div", {
11711
+ }, Gc = ({ fields: e, get: t, put: n }) => /* @__PURE__ */ J("div", {
11509
11712
  className: "space-y-3",
11510
11713
  children: e.map((e) => {
11511
11714
  let r = t(e.key);
@@ -11563,7 +11766,7 @@ var bc = ({ value: e, onChange: t }) => {
11563
11766
  }),
11564
11767
  e.type === "image" && /* @__PURE__ */ Y("div", {
11565
11768
  className: "space-y-1.5",
11566
- children: [/* @__PURE__ */ J(bc, {
11769
+ children: [/* @__PURE__ */ J(wc, {
11567
11770
  value: typeof r == "string" ? r : "",
11568
11771
  onChange: (t) => n(e.key, t)
11569
11772
  }), r ? /* @__PURE__ */ J("input", {
@@ -11574,11 +11777,15 @@ var bc = ({ value: e, onChange: t }) => {
11574
11777
  "aria-label": `${e.label} description`
11575
11778
  }) : null]
11576
11779
  }),
11577
- e.type === "icon" && /* @__PURE__ */ J(Bc, {
11780
+ e.type === "icon" && /* @__PURE__ */ J(Wc, {
11578
11781
  value: typeof r == "string" ? r : "",
11579
11782
  onChange: (t) => n(e.key, t)
11580
11783
  }),
11581
- e.type === "toggle" && /* @__PURE__ */ J(vc, {
11784
+ e.type === "product" && /* @__PURE__ */ J(vc, {
11785
+ value: typeof r == "string" ? r : "",
11786
+ onChange: (t) => n(e.key, t)
11787
+ }),
11788
+ e.type === "toggle" && /* @__PURE__ */ J(Sc, {
11582
11789
  label: e.label,
11583
11790
  checked: !!r,
11584
11791
  onChange: (t) => n(e.key, t)
@@ -11593,7 +11800,7 @@ var bc = ({ value: e, onChange: t }) => {
11593
11800
  children: t
11594
11801
  }, e))
11595
11802
  }),
11596
- e.type === "list" && /* @__PURE__ */ J(yc, {
11803
+ e.type === "list" && /* @__PURE__ */ J(Cc, {
11597
11804
  items: Array.isArray(r) ? r : [],
11598
11805
  min: e.min ?? 0,
11599
11806
  onChange: (t) => n(e.key, e.limit ? t.slice(0, e.limit) : t),
@@ -11602,7 +11809,7 @@ var bc = ({ value: e, onChange: t }) => {
11602
11809
  href: ""
11603
11810
  } : e.type === "toggle" ? !1 : e.type === "icon" ? "star" : ""])),
11604
11811
  addLabel: `Add ${e.itemName ?? "item"}`,
11605
- render: (t, n) => /* @__PURE__ */ J(Vc, {
11812
+ render: (t, n) => /* @__PURE__ */ J(Gc, {
11606
11813
  fields: e.item ?? [],
11607
11814
  get: (e) => t[e],
11608
11815
  put: (e, t) => n({ [e]: t })
@@ -11615,7 +11822,7 @@ var bc = ({ value: e, onChange: t }) => {
11615
11822
  ]
11616
11823
  }, e.key);
11617
11824
  })
11618
- }), Hc = [
11825
+ }), Kc = [
11619
11826
  ["canvas", "Page"],
11620
11827
  ["surface", "Card"],
11621
11828
  ["sunken", "Soft"],
@@ -11623,7 +11830,7 @@ var bc = ({ value: e, onChange: t }) => {
11623
11830
  ["inverted", "Dark"],
11624
11831
  ["gradient", "Gradient"],
11625
11832
  ["image", "Picture"]
11626
- ], Uc = ({ label: e, children: t }) => /* @__PURE__ */ Y("div", {
11833
+ ], qc = ({ label: e, children: t }) => /* @__PURE__ */ Y("div", {
11627
11834
  role: "group",
11628
11835
  "aria-label": e,
11629
11836
  className: "flex items-center gap-2",
@@ -11635,7 +11842,7 @@ var bc = ({ value: e, onChange: t }) => {
11635
11842
  children: t
11636
11843
  })]
11637
11844
  });
11638
- function Wc({ value: e, options: t, onChange: n, label: r }) {
11845
+ function Jc({ value: e, options: t, onChange: n, label: r }) {
11639
11846
  return /* @__PURE__ */ J("div", {
11640
11847
  role: "radiogroup",
11641
11848
  "aria-label": r,
@@ -11650,7 +11857,7 @@ function Wc({ value: e, options: t, onChange: n, label: r }) {
11650
11857
  }, t))
11651
11858
  });
11652
11859
  }
11653
- var Gc = ({ node: e }) => {
11860
+ var Yc = ({ node: e }) => {
11654
11861
  let { setSectionVariant: n, setSectionContent: r, setSectionStyle: i, detachSection: a, resetSectionTweaks: o, moveNodeUp: s, moveNodeDown: c, duplicateNode: l, deleteNode: u } = Z(), d = Jr(e);
11655
11862
  if (!d) return null;
11656
11863
  let f = er(d.kind), m = f.variants.find((e) => e.id === d.variant) ?? f.variants[0], h = f.fields.filter((e) => !m.uses || m.uses.includes(e.key)), g = d.style ?? {}, _ = Cn(e), v = (t, n) => r(e.id, t, n), y = "flex items-center justify-center w-7 h-7 rounded-md text-px-text2 hover:text-white hover:bg-px-line2 cursor-pointer transition-colors";
@@ -11707,7 +11914,7 @@ var Gc = ({ node: e }) => {
11707
11914
  ]
11708
11915
  })]
11709
11916
  }),
11710
- f.variants.length > 1 && /* @__PURE__ */ J(_c, {
11917
+ f.variants.length > 1 && /* @__PURE__ */ J(xc, {
11711
11918
  title: "Layout",
11712
11919
  children: /* @__PURE__ */ J("div", {
11713
11920
  className: "grid grid-cols-2 gap-2",
@@ -11738,45 +11945,45 @@ var Gc = ({ node: e }) => {
11738
11945
  }, t.id))
11739
11946
  })
11740
11947
  }),
11741
- /* @__PURE__ */ J(_c, {
11948
+ /* @__PURE__ */ J(xc, {
11742
11949
  title: "Words and pictures",
11743
- children: /* @__PURE__ */ J(Vc, {
11950
+ children: /* @__PURE__ */ J(Gc, {
11744
11951
  fields: h,
11745
11952
  get: (e) => d.content[e],
11746
11953
  put: v
11747
11954
  })
11748
11955
  }),
11749
- /* @__PURE__ */ Y(_c, {
11956
+ /* @__PURE__ */ Y(xc, {
11750
11957
  title: "Look",
11751
11958
  children: [
11752
- /* @__PURE__ */ J(Uc, {
11959
+ /* @__PURE__ */ J(qc, {
11753
11960
  label: "Background",
11754
- children: /* @__PURE__ */ J(Wc, {
11961
+ children: /* @__PURE__ */ J(Jc, {
11755
11962
  label: "Background",
11756
11963
  value: g.background ?? m.backgrounds?.[0] ?? "canvas",
11757
- options: Hc,
11964
+ options: Kc,
11758
11965
  onChange: (t) => i(e.id, { background: t })
11759
11966
  })
11760
11967
  }),
11761
- (g.background ?? m.backgrounds?.[0]) === "image" && /* @__PURE__ */ J(Uc, {
11968
+ (g.background ?? m.backgrounds?.[0]) === "image" && /* @__PURE__ */ J(qc, {
11762
11969
  label: "Picture",
11763
- children: /* @__PURE__ */ J(bc, {
11970
+ children: /* @__PURE__ */ J(wc, {
11764
11971
  value: g.image ?? "",
11765
11972
  onChange: (t) => i(e.id, { image: t })
11766
11973
  })
11767
11974
  }),
11768
- /* @__PURE__ */ J(Uc, {
11975
+ /* @__PURE__ */ J(qc, {
11769
11976
  label: "Align",
11770
- children: /* @__PURE__ */ J(Wc, {
11977
+ children: /* @__PURE__ */ J(Jc, {
11771
11978
  label: "Alignment",
11772
11979
  value: g.align ?? "left",
11773
11980
  options: [["left", "Left"], ["center", "Centre"]],
11774
11981
  onChange: (t) => i(e.id, { align: t })
11775
11982
  })
11776
11983
  }),
11777
- /* @__PURE__ */ J(Uc, {
11984
+ /* @__PURE__ */ J(qc, {
11778
11985
  label: "Spacing",
11779
- children: /* @__PURE__ */ J(Wc, {
11986
+ children: /* @__PURE__ */ J(Jc, {
11780
11987
  label: "Spacing",
11781
11988
  value: g.spacing ?? "normal",
11782
11989
  options: [
@@ -11787,14 +11994,14 @@ var Gc = ({ node: e }) => {
11787
11994
  onChange: (t) => i(e.id, { spacing: t })
11788
11995
  })
11789
11996
  }),
11790
- d.kind === "header" && /* @__PURE__ */ J(vc, {
11997
+ d.kind === "header" && /* @__PURE__ */ J(Sc, {
11791
11998
  label: "Keep at the top while scrolling",
11792
11999
  checked: !!g.pinned,
11793
12000
  onChange: (t) => i(e.id, { pinned: t })
11794
12001
  })
11795
12002
  ]
11796
12003
  }),
11797
- /* @__PURE__ */ Y(_c, {
12004
+ /* @__PURE__ */ Y(xc, {
11798
12005
  title: "Make it your own",
11799
12006
  children: [
11800
12007
  /* @__PURE__ */ J("p", {
@@ -11832,7 +12039,7 @@ var Gc = ({ node: e }) => {
11832
12039
  })
11833
12040
  ]
11834
12041
  });
11835
- }, Kc = ({ section: e, nodeId: t }) => {
12042
+ }, Xc = ({ section: e, nodeId: t }) => {
11836
12043
  let { selectNode: n, resetSectionTweaks: r } = Z(), i = G(null), a = Jr(e);
11837
12044
  if (!a) return null;
11838
12045
  let o = !!a.overrides?.[qt(e, t)];
@@ -11881,7 +12088,7 @@ var Gc = ({ node: e }) => {
11881
12088
  ]
11882
12089
  })]
11883
12090
  });
11884
- }, qc = ({ node: e }) => {
12091
+ }, Zc = ({ node: e }) => {
11885
12092
  let { resolveStyles: t, updateNodeStyles: n, isOverridden: r, resetResponsiveStyle: a, viewportMode: o } = Z(), s = t(e), c = s.horizontalConstraint || "left", l = s.verticalConstraint || "top", u = r(e, "horizontalConstraint"), d = r(e, "verticalConstraint"), f = (t) => {
11886
12093
  n(e.id, { horizontalConstraint: t });
11887
12094
  }, p = (t) => {
@@ -12049,7 +12256,7 @@ var Gc = ({ node: e }) => {
12049
12256
  })]
12050
12257
  })]
12051
12258
  });
12052
- }, Jc = ({ node: e }) => {
12259
+ }, Qc = ({ node: e }) => {
12053
12260
  let { resolveStyles: t, viewportMode: n, canvasCustomWidth: r, selectNode: i, documentTree: a } = Z(), [o, s] = K(null), c = or(a, e.id), l = t(e), u = r || (n === "mobile" ? 375 : n === "tablet" ? 768 : 1240), d = [];
12054
12261
  if (l.width && l.width.endsWith("px")) {
12055
12262
  let t = parseInt(l.width, 10);
@@ -12131,7 +12338,7 @@ var Gc = ({ node: e }) => {
12131
12338
  }, t.id);
12132
12339
  })
12133
12340
  });
12134
- }, Yc = ({ node: e }) => {
12341
+ }, $c = ({ node: e }) => {
12135
12342
  let { updateNodeStyles: t } = Z();
12136
12343
  return e.type === "section" ? /* @__PURE__ */ Y("div", {
12137
12344
  className: "p-3 space-y-2 border-b border-px-line",
@@ -12154,7 +12361,7 @@ var Gc = ({ node: e }) => {
12154
12361
  })]
12155
12362
  })]
12156
12363
  }) : null;
12157
- }, Xc = "bg-px-raised border border-px-line2 rounded px-2 py-1 text-xs text-px-text focus:outline-none focus:border-px-accent/60 font-mono", Zc = (e, t = 1) => String(Math.round(e * 10 ** t) / 10 ** t), Qc = ({ value: e, min: t, max: n, step: r, places: i = 1, width: a, label: o, onCommit: s }) => {
12364
+ }, el = "bg-px-raised border border-px-line2 rounded px-2 py-1 text-xs text-px-text focus:outline-none focus:border-px-accent/60 font-mono", tl = (e, t = 1) => String(Math.round(e * 10 ** t) / 10 ** t), nl = ({ value: e, min: t, max: n, step: r, places: i = 1, width: a, label: o, onCommit: s }) => {
12158
12365
  let [c, l] = K(null);
12159
12366
  U(() => l(null), [e]);
12160
12367
  let u = (e, r) => {
@@ -12171,7 +12378,7 @@ var Gc = ({ node: e }) => {
12171
12378
  step: r,
12172
12379
  min: t,
12173
12380
  max: n,
12174
- value: c ?? Zc(e, i),
12381
+ value: c ?? tl(e, i),
12175
12382
  onChange: (e) => {
12176
12383
  l(e.target.value), u(e.target.value, !1);
12177
12384
  },
@@ -12179,9 +12386,9 @@ var Gc = ({ node: e }) => {
12179
12386
  onKeyDown: (e) => {
12180
12387
  e.key === "Enter" && u(e.target.value, !0);
12181
12388
  },
12182
- className: `${a} ${Xc}`
12389
+ className: `${a} ${el}`
12183
12390
  });
12184
- }, $c = ({ node: e }) => {
12391
+ }, rl = ({ node: e }) => {
12185
12392
  let { designSystem: t, viewportMode: n, resolveStyles: r, updateNodeStyles: a } = Z(), o = r(e), s = W(() => yt(e, o, t, n), [
12186
12393
  e,
12187
12394
  o,
@@ -12264,7 +12471,7 @@ var Gc = ({ node: e }) => {
12264
12471
  onClick: () => a(e.id, { fontSize: `${Math.max(6, Math.round(s.fontSize) - 1)}px` }),
12265
12472
  children: /* @__PURE__ */ J(at, { className: "w-3 h-3" })
12266
12473
  }),
12267
- /* @__PURE__ */ J(Qc, {
12474
+ /* @__PURE__ */ J(nl, {
12268
12475
  label: "Size",
12269
12476
  value: s.fontSize,
12270
12477
  min: 6,
@@ -12294,7 +12501,7 @@ var Gc = ({ node: e }) => {
12294
12501
  children: "Line"
12295
12502
  }), /* @__PURE__ */ Y("div", {
12296
12503
  className: "flex items-center gap-1.5 flex-1 min-w-0",
12297
- children: [/* @__PURE__ */ J(Qc, {
12504
+ children: [/* @__PURE__ */ J(nl, {
12298
12505
  label: "Line height",
12299
12506
  value: s.lineHeight,
12300
12507
  min: .8,
@@ -12335,7 +12542,7 @@ var Gc = ({ node: e }) => {
12335
12542
  })]
12336
12543
  })
12337
12544
  ] });
12338
- }, el = "w-full min-w-0 bg-px-raised border border-px-line2 rounded-lg px-2 py-1 text-xs text-px-text placeholder:text-px-faint focus:outline-none focus:border-px-accent/60", tl = ({ title: e, defaultOpen: t = !0, hint: n, hide: r, children: i }) => {
12545
+ }, il = "w-full min-w-0 bg-px-raised border border-px-line2 rounded-lg px-2 py-1 text-xs text-px-text placeholder:text-px-faint focus:outline-none focus:border-px-accent/60", al = ({ title: e, defaultOpen: t = !0, hint: n, hide: r, children: i }) => {
12339
12546
  let [a, o] = K(t);
12340
12547
  return r ? null : /* @__PURE__ */ Y("section", {
12341
12548
  className: "border-b border-px-line",
@@ -12363,7 +12570,7 @@ var Gc = ({ node: e }) => {
12363
12570
  children: t
12364
12571
  })]
12365
12572
  });
12366
- function nl({ options: e, value: t, onChange: n, label: r }) {
12573
+ function ol({ options: e, value: t, onChange: n, label: r }) {
12367
12574
  return /* @__PURE__ */ J("div", {
12368
12575
  role: "group",
12369
12576
  "aria-label": r,
@@ -12378,7 +12585,7 @@ function nl({ options: e, value: t, onChange: n, label: r }) {
12378
12585
  }, e.id))
12379
12586
  });
12380
12587
  }
12381
- var rl = ({ value: e, onChange: t, label: n, placeholder: r, min: i = 0, max: a = 4e3 }) => {
12588
+ var sl = ({ value: e, onChange: t, label: n, placeholder: r, min: i = 0, max: a = 4e3 }) => {
12382
12589
  let o = parseInt(e ?? "", 10);
12383
12590
  return /* @__PURE__ */ Y("div", {
12384
12591
  className: "flex items-center gap-1 bg-px-raised border border-px-line2 rounded-lg px-2 py-1 min-w-0 focus-within:border-px-accent/60",
@@ -12396,10 +12603,10 @@ var rl = ({ value: e, onChange: t, label: n, placeholder: r, min: i = 0, max: a
12396
12603
  children: "px"
12397
12604
  })]
12398
12605
  });
12399
- }, il = ({ children: e }) => /* @__PURE__ */ J("p", {
12606
+ }, cl = ({ children: e }) => /* @__PURE__ */ J("p", {
12400
12607
  className: "text-[10.5px] leading-snug text-px-faint",
12401
12608
  children: e
12402
- }), al = [
12609
+ }), ll = [
12403
12610
  {
12404
12611
  id: "design",
12405
12612
  label: "Design"
@@ -12412,7 +12619,7 @@ var rl = ({ value: e, onChange: t, label: n, placeholder: r, min: i = 0, max: a
12412
12619
  id: "advanced",
12413
12620
  label: "Advanced"
12414
12621
  }
12415
- ], ol = [
12622
+ ], ul = [
12416
12623
  {
12417
12624
  id: "none",
12418
12625
  label: "None",
@@ -12434,16 +12641,16 @@ var rl = ({ value: e, onChange: t, label: n, placeholder: r, min: i = 0, max: a
12434
12641
  value: "0 20px 48px rgba(0,0,0,0.28)"
12435
12642
  }
12436
12643
  ];
12437
- function sl(e, t) {
12644
+ function dl(e, t) {
12438
12645
  if (e.id === t) return [e];
12439
12646
  for (let n of e.children ?? []) {
12440
- let r = sl(n, t);
12647
+ let r = dl(n, t);
12441
12648
  if (r.length) return [e, ...r];
12442
12649
  }
12443
12650
  return [];
12444
12651
  }
12445
- var cl = ({ node: e }) => {
12446
- let { selectNode: n, deleteNode: r, duplicateNode: a, documentTree: o, viewportMode: s, resolveStyles: c, updateNodeStyles: l, updateNodeContent: u, updateNodeProps: d, resetResponsiveStyle: f, resetAllResponsiveOverrides: m, isOverridden: h, updateNodeResponsiveVisibility: g, setContainerLayoutMode: v, alignNodeInParent: y, bringForward: b, sendBackward: x, bringToFront: S, sendToBack: C, canvasZoom: w } = Z(), T = La(), E = T.mode === "email", [D, O] = K("design"), k = W(() => sl(o, e.id), [o, e.id]), A = c(e), j = (t) => l(e.id, t), M = G(null), [N, P] = K(!1), [ee, te] = K(null), ne = async (t) => {
12652
+ var fl = ({ node: e }) => {
12653
+ let { selectNode: n, deleteNode: r, duplicateNode: a, documentTree: o, viewportMode: s, resolveStyles: c, updateNodeStyles: l, updateNodeContent: u, updateNodeProps: d, resetResponsiveStyle: f, resetAllResponsiveOverrides: m, isOverridden: h, updateNodeResponsiveVisibility: g, setContainerLayoutMode: v, alignNodeInParent: y, bringForward: b, sendBackward: x, bringToFront: S, sendToBack: C, canvasZoom: w } = Z(), T = La(), E = T.mode === "email", [D, O] = K("design"), k = W(() => dl(o, e.id), [o, e.id]), A = c(e), j = (t) => l(e.id, t), M = G(null), [N, P] = K(!1), [ee, te] = K(null), ne = async (t) => {
12447
12654
  if (t) {
12448
12655
  P(!0), te(null);
12449
12656
  try {
@@ -12521,10 +12728,10 @@ var cl = ({ node: e }) => {
12521
12728
  children: /* @__PURE__ */ J(n, { className: "w-3.5 h-3.5" })
12522
12729
  }, e);
12523
12730
  }, je = /* @__PURE__ */ Y(q, { children: [
12524
- Jr(e) && /* @__PURE__ */ J(Gc, { node: e }),
12731
+ Jr(e) && /* @__PURE__ */ J(Yc, { node: e }),
12525
12732
  (() => {
12526
12733
  let t = Tn(o, e.id);
12527
- return t ? /* @__PURE__ */ J(Kc, {
12734
+ return t ? /* @__PURE__ */ J(Xc, {
12528
12735
  section: t,
12529
12736
  nodeId: e.id
12530
12737
  }) : null;
@@ -12533,7 +12740,7 @@ var cl = ({ node: e }) => {
12533
12740
  className: "px-3.5 pt-3 pb-1 text-[10px] uppercase tracking-wider font-semibold text-px-faint",
12534
12741
  children: "Fine-tune this section"
12535
12742
  }),
12536
- ("content" in e || ie || e.type === "image") && /* @__PURE__ */ Y(tl, {
12743
+ ("content" in e || ie || e.type === "image") && /* @__PURE__ */ Y(al, {
12537
12744
  title: "Content",
12538
12745
  children: [
12539
12746
  "content" in e && /* @__PURE__ */ J($, {
@@ -12552,7 +12759,7 @@ var cl = ({ node: e }) => {
12552
12759
  }),
12553
12760
  e.type === "heading" && /* @__PURE__ */ J($, {
12554
12761
  label: "Level",
12555
- children: /* @__PURE__ */ J(nl, {
12762
+ children: /* @__PURE__ */ J(ol, {
12556
12763
  label: "Heading level",
12557
12764
  value: String(e.props?.level || 2),
12558
12765
  onChange: (e) => ve(Number(e)),
@@ -12658,12 +12865,12 @@ var cl = ({ node: e }) => {
12658
12865
  ] })
12659
12866
  ]
12660
12867
  }),
12661
- !Jr(e) && /* @__PURE__ */ J(Yc, { node: e }),
12662
- /* @__PURE__ */ J(Rc, { node: e }),
12663
- ie && /* @__PURE__ */ Y(tl, {
12868
+ !Jr(e) && /* @__PURE__ */ J($c, { node: e }),
12869
+ /* @__PURE__ */ J(Hc, { node: e }),
12870
+ ie && /* @__PURE__ */ Y(al, {
12664
12871
  title: "Typography",
12665
12872
  children: [
12666
- /* @__PURE__ */ J($c, { node: e }),
12873
+ /* @__PURE__ */ J(rl, { node: e }),
12667
12874
  /* @__PURE__ */ J($, {
12668
12875
  label: "Colour",
12669
12876
  children: /* @__PURE__ */ J(rc, {
@@ -12675,7 +12882,7 @@ var cl = ({ node: e }) => {
12675
12882
  label: "Align",
12676
12883
  children: /* @__PURE__ */ Y("div", {
12677
12884
  className: "flex items-center gap-2",
12678
- children: [/* @__PURE__ */ J(nl, {
12885
+ children: [/* @__PURE__ */ J(ol, {
12679
12886
  label: "Text alignment",
12680
12887
  value: A.textAlign || "left",
12681
12888
  onChange: (e) => j({ textAlign: e }),
@@ -12728,7 +12935,7 @@ var cl = ({ node: e }) => {
12728
12935
  })
12729
12936
  ]
12730
12937
  }),
12731
- /* @__PURE__ */ Y(tl, {
12938
+ /* @__PURE__ */ Y(al, {
12732
12939
  title: "Appearance",
12733
12940
  children: [
12734
12941
  /* @__PURE__ */ J($, {
@@ -12740,7 +12947,7 @@ var cl = ({ node: e }) => {
12740
12947
  }),
12741
12948
  /* @__PURE__ */ J($, {
12742
12949
  label: "Corners",
12743
- children: /* @__PURE__ */ J(rl, {
12950
+ children: /* @__PURE__ */ J(sl, {
12744
12951
  label: "Corner radius",
12745
12952
  value: A.borderRadius,
12746
12953
  onChange: (e) => j({ borderRadius: e ?? "0px" })
@@ -12767,17 +12974,17 @@ var cl = ({ node: e }) => {
12767
12974
  })
12768
12975
  ]
12769
12976
  }),
12770
- /* @__PURE__ */ Y(tl, {
12977
+ /* @__PURE__ */ Y(al, {
12771
12978
  hide: E,
12772
12979
  title: "Shadows & effects",
12773
12980
  children: [
12774
12981
  /* @__PURE__ */ J($, {
12775
12982
  label: "Shadow",
12776
- children: /* @__PURE__ */ J(nl, {
12983
+ children: /* @__PURE__ */ J(ol, {
12777
12984
  label: "Shadow",
12778
- value: ol.find((e) => e.value === A.boxShadow)?.id ?? (A.boxShadow ? "custom" : "none"),
12779
- onChange: (e) => j({ boxShadow: ol.find((t) => t.id === e)?.value }),
12780
- options: ol.map((e) => ({
12985
+ value: ul.find((e) => e.value === A.boxShadow)?.id ?? (A.boxShadow ? "custom" : "none"),
12986
+ onChange: (e) => j({ boxShadow: ul.find((t) => t.id === e)?.value }),
12987
+ options: ul.map((e) => ({
12781
12988
  id: e.id,
12782
12989
  label: e.label
12783
12990
  }))
@@ -12802,14 +13009,14 @@ var cl = ({ node: e }) => {
12802
13009
  })]
12803
13010
  })
12804
13011
  }),
12805
- /* @__PURE__ */ J(il, { children: "Blur behind frosts whatever is under this box, like a see-through header." })
13012
+ /* @__PURE__ */ J(cl, { children: "Blur behind frosts whatever is under this box, like a see-through header." })
12806
13013
  ]
12807
13014
  }),
12808
- /* @__PURE__ */ Y(tl, {
13015
+ /* @__PURE__ */ Y(al, {
12809
13016
  title: "Borders",
12810
13017
  children: [/* @__PURE__ */ J($, {
12811
13018
  label: "Line",
12812
- children: /* @__PURE__ */ J(nl, {
13019
+ children: /* @__PURE__ */ J(ol, {
12813
13020
  label: "Border style",
12814
13021
  value: A.borderStyle ?? "none",
12815
13022
  onChange: (e) => j({
@@ -12837,7 +13044,7 @@ var cl = ({ node: e }) => {
12837
13044
  })
12838
13045
  }), A.borderStyle && A.borderStyle !== "none" && /* @__PURE__ */ Y(q, { children: [/* @__PURE__ */ J($, {
12839
13046
  label: "Thickness",
12840
- children: /* @__PURE__ */ J(rl, {
13047
+ children: /* @__PURE__ */ J(sl, {
12841
13048
  label: "Border thickness",
12842
13049
  min: 0,
12843
13050
  max: 40,
@@ -12852,7 +13059,7 @@ var cl = ({ node: e }) => {
12852
13059
  })
12853
13060
  })] })]
12854
13061
  }),
12855
- /* @__PURE__ */ Y(tl, {
13062
+ /* @__PURE__ */ Y(al, {
12856
13063
  hide: E,
12857
13064
  title: "Animation",
12858
13065
  hint: "Make the page feel alive. These show on your published site, not while you edit (use Preview to see them).",
@@ -12863,7 +13070,7 @@ var cl = ({ node: e }) => {
12863
13070
  "aria-label": "Hover effect",
12864
13071
  value: A.hoverEffect ?? "none",
12865
13072
  onChange: (e) => j({ hoverEffect: e.target.value }),
12866
- className: el,
13073
+ className: il,
12867
13074
  children: [
12868
13075
  /* @__PURE__ */ J("option", {
12869
13076
  value: "none",
@@ -12894,7 +13101,7 @@ var cl = ({ node: e }) => {
12894
13101
  "aria-label": "Entrance",
12895
13102
  value: A.entrance ?? "none",
12896
13103
  onChange: (e) => j({ entrance: e.target.value }),
12897
- className: el,
13104
+ className: il,
12898
13105
  children: [
12899
13106
  /* @__PURE__ */ J("option", {
12900
13107
  value: "none",
@@ -12942,11 +13149,11 @@ var cl = ({ node: e }) => {
12942
13149
  })]
12943
13150
  })
12944
13151
  }),
12945
- A.entrance && A.entrance !== "none" && /* @__PURE__ */ J(il, { children: "Tip: give a row of cards a little more wait each (0, 100, 200…) so they arrive one after another." })
13152
+ A.entrance && A.entrance !== "none" && /* @__PURE__ */ J(cl, { children: "Tip: give a row of cards a little more wait each (0, 100, 200…) so they arrive one after another." })
12946
13153
  ]
12947
13154
  })
12948
13155
  ] }), Me = /* @__PURE__ */ Y(q, { children: [
12949
- /* @__PURE__ */ Y(tl, {
13156
+ /* @__PURE__ */ Y(al, {
12950
13157
  title: "Display & flow",
12951
13158
  children: [
12952
13159
  ae && !E && /* @__PURE__ */ J($, {
@@ -12955,7 +13162,7 @@ var cl = ({ node: e }) => {
12955
13162
  className: "flex items-center gap-1",
12956
13163
  children: [/* @__PURE__ */ J("div", {
12957
13164
  className: "flex-1 min-w-0",
12958
- children: /* @__PURE__ */ J(nl, {
13165
+ children: /* @__PURE__ */ J(ol, {
12959
13166
  label: "Layout mode",
12960
13167
  value: A.layoutMode || "free",
12961
13168
  onChange: (t) => v(e.id, t),
@@ -12982,7 +13189,7 @@ var cl = ({ node: e }) => {
12982
13189
  }),
12983
13190
  ae && A.layoutMode === "grid" && /* @__PURE__ */ Y(q, { children: [/* @__PURE__ */ J($, {
12984
13191
  label: "Columns",
12985
- children: /* @__PURE__ */ J(nl, {
13192
+ children: /* @__PURE__ */ J(ol, {
12986
13193
  label: "Grid columns",
12987
13194
  value: String(A.gridColumns || 3),
12988
13195
  onChange: (e) => j({ gridColumns: Number(e) }),
@@ -12999,7 +13206,7 @@ var cl = ({ node: e }) => {
12999
13206
  })
13000
13207
  }), /* @__PURE__ */ J($, {
13001
13208
  label: "Gap",
13002
- children: /* @__PURE__ */ J(rl, {
13209
+ children: /* @__PURE__ */ J(sl, {
13003
13210
  label: "Grid gap",
13004
13211
  value: A.gap || A.gridGap || "20px",
13005
13212
  onChange: (e) => j({
@@ -13011,7 +13218,7 @@ var cl = ({ node: e }) => {
13011
13218
  ae && (E || A.layoutMode === "flow" || !A.layoutMode) && /* @__PURE__ */ Y(q, { children: [
13012
13219
  /* @__PURE__ */ J($, {
13013
13220
  label: "Direction",
13014
- children: /* @__PURE__ */ J(nl, {
13221
+ children: /* @__PURE__ */ J(ol, {
13015
13222
  label: "Direction",
13016
13223
  value: A.flexDirection === "column" ? "column" : "row",
13017
13224
  onChange: (e) => j({ flexDirection: e }),
@@ -13026,7 +13233,7 @@ var cl = ({ node: e }) => {
13026
13233
  }),
13027
13234
  !E && /* @__PURE__ */ J($, {
13028
13235
  label: "Wrap",
13029
- children: /* @__PURE__ */ J(nl, {
13236
+ children: /* @__PURE__ */ J(ol, {
13030
13237
  label: "Wrap",
13031
13238
  value: A.flexWrap === "wrap" ? "wrap" : "nowrap",
13032
13239
  onChange: (e) => j({ flexWrap: e }),
@@ -13099,7 +13306,7 @@ var cl = ({ node: e }) => {
13099
13306
  }),
13100
13307
  /* @__PURE__ */ J($, {
13101
13308
  label: "Gap",
13102
- children: /* @__PURE__ */ J(rl, {
13309
+ children: /* @__PURE__ */ J(sl, {
13103
13310
  label: "Gap",
13104
13311
  value: A.gap || "16px",
13105
13312
  onChange: (e) => j({ gap: e })
@@ -13108,7 +13315,7 @@ var cl = ({ node: e }) => {
13108
13315
  ] }),
13109
13316
  I && /* @__PURE__ */ J($, {
13110
13317
  label: "Col span",
13111
- children: /* @__PURE__ */ J(nl, {
13318
+ children: /* @__PURE__ */ J(ol, {
13112
13319
  label: "Column span",
13113
13320
  value: String(A.gridColumnSpan || 1),
13114
13321
  onChange: (e) => j({ gridColumnSpan: Number(e) }),
@@ -13123,10 +13330,10 @@ var cl = ({ node: e }) => {
13123
13330
  }))
13124
13331
  })
13125
13332
  }),
13126
- !ae && !I && /* @__PURE__ */ J(il, { children: "This element sits inside its parent. Select the box around it to change how things are arranged." })
13333
+ !ae && !I && /* @__PURE__ */ J(cl, { children: "This element sits inside its parent. Select the box around it to change how things are arranged." })
13127
13334
  ]
13128
13335
  }),
13129
- /* @__PURE__ */ Y(tl, {
13336
+ /* @__PURE__ */ Y(al, {
13130
13337
  title: "Align & distribute",
13131
13338
  hint: "These line this element up inside the box it sits in.",
13132
13339
  children: [/* @__PURE__ */ Y("div", {
@@ -13140,14 +13347,14 @@ var cl = ({ node: e }) => {
13140
13347
  Ae("middle", "Align middle", He),
13141
13348
  Ae("bottom", "Align bottom", Ce)
13142
13349
  ]
13143
- }), /* @__PURE__ */ J(il, { children: "To line up or evenly space several elements: hold Shift and click each one on the page (or in Layers). Options to align them with each other and spread them out appear here." })]
13350
+ }), /* @__PURE__ */ J(cl, { children: "To line up or evenly space several elements: hold Shift and click each one on the page (or in Layers). Options to align them with each other and spread them out appear here." })]
13144
13351
  }),
13145
- /* @__PURE__ */ Y(tl, {
13352
+ /* @__PURE__ */ Y(al, {
13146
13353
  title: "Dimensions",
13147
13354
  children: [
13148
13355
  /* @__PURE__ */ J($, {
13149
13356
  label: "Width",
13150
- children: /* @__PURE__ */ J(nl, {
13357
+ children: /* @__PURE__ */ J(ol, {
13151
13358
  label: "Width",
13152
13359
  value: ce,
13153
13360
  onChange: le,
@@ -13182,7 +13389,7 @@ var cl = ({ node: e }) => {
13182
13389
  }),
13183
13390
  !E && /* @__PURE__ */ J($, {
13184
13391
  label: "Height",
13185
- children: /* @__PURE__ */ J(nl, {
13392
+ children: /* @__PURE__ */ J(ol, {
13186
13393
  label: "Height",
13187
13394
  value: L === "fill" ? "hug" : L,
13188
13395
  onChange: ue,
@@ -13198,7 +13405,7 @@ var cl = ({ node: e }) => {
13198
13405
  }),
13199
13406
  !E && L === "fixed" && /* @__PURE__ */ J($, {
13200
13407
  label: "",
13201
- children: /* @__PURE__ */ J(rl, {
13408
+ children: /* @__PURE__ */ J(sl, {
13202
13409
  label: "Minimum height",
13203
13410
  value: A.minHeight,
13204
13411
  onChange: (e) => j({ minHeight: e ?? "auto" })
@@ -13228,12 +13435,12 @@ var cl = ({ node: e }) => {
13228
13435
  })
13229
13436
  ]
13230
13437
  }),
13231
- /* @__PURE__ */ Y(tl, {
13438
+ /* @__PURE__ */ Y(al, {
13232
13439
  title: "Spacing",
13233
13440
  children: [
13234
13441
  /* @__PURE__ */ J($, {
13235
13442
  label: "Padding",
13236
- children: /* @__PURE__ */ J(rl, {
13443
+ children: /* @__PURE__ */ J(sl, {
13237
13444
  label: "Padding",
13238
13445
  value: A.padding,
13239
13446
  onChange: me
@@ -13257,7 +13464,7 @@ var cl = ({ node: e }) => {
13257
13464
  children: [/* @__PURE__ */ J("span", {
13258
13465
  className: "block text-[10px] text-px-muted",
13259
13466
  children: t
13260
- }), /* @__PURE__ */ J(rl, {
13467
+ }), /* @__PURE__ */ J(sl, {
13261
13468
  label: `Padding ${t.toLowerCase()}`,
13262
13469
  value: A[e] ?? A.padding,
13263
13470
  onChange: (t) => j({ [e]: t ?? "0px" })
@@ -13266,7 +13473,7 @@ var cl = ({ node: e }) => {
13266
13473
  })
13267
13474
  ]
13268
13475
  }),
13269
- /* @__PURE__ */ J(tl, {
13476
+ /* @__PURE__ */ J(al, {
13270
13477
  hide: E,
13271
13478
  title: "Positioning",
13272
13479
  children: /* @__PURE__ */ J($, {
@@ -13305,8 +13512,8 @@ var cl = ({ node: e }) => {
13305
13512
  })
13306
13513
  })
13307
13514
  }),
13308
- !E && /* @__PURE__ */ J(qc, { node: e }),
13309
- /* @__PURE__ */ J(tl, {
13515
+ !E && /* @__PURE__ */ J(Zc, { node: e }),
13516
+ /* @__PURE__ */ J(al, {
13310
13517
  hide: E,
13311
13518
  title: "Stacking (z-index)",
13312
13519
  children: /* @__PURE__ */ J($, {
@@ -13365,7 +13572,7 @@ var cl = ({ node: e }) => {
13365
13572
  })
13366
13573
  })
13367
13574
  }),
13368
- /* @__PURE__ */ Y(tl, {
13575
+ /* @__PURE__ */ Y(al, {
13369
13576
  hide: E,
13370
13577
  title: "Screens",
13371
13578
  defaultOpen: de,
@@ -13403,7 +13610,7 @@ var cl = ({ node: e }) => {
13403
13610
  ]
13404
13611
  })
13405
13612
  ] }), Ne = typeof e.props?.htmlTag == "string" && se?.includes(e.props.htmlTag) ? e.props.htmlTag : In[e.type], Pe = /* @__PURE__ */ Y(q, { children: [
13406
- /* @__PURE__ */ Y(tl, {
13613
+ /* @__PURE__ */ Y(al, {
13407
13614
  hide: E,
13408
13615
  title: "Identity",
13409
13616
  children: [
@@ -13420,7 +13627,7 @@ var cl = ({ node: e }) => {
13420
13627
  }, e))
13421
13628
  })
13422
13629
  }),
13423
- se && /* @__PURE__ */ J(il, { children: "Pick what this box is, like a header, navigation or footer. It helps search engines and screen readers understand your page." }),
13630
+ se && /* @__PURE__ */ J(cl, { children: "Pick what this box is, like a header, navigation or footer. It helps search engines and screen readers understand your page." }),
13424
13631
  e.type !== "section" && /* @__PURE__ */ J($, {
13425
13632
  label: "ID",
13426
13633
  children: /* @__PURE__ */ J("input", {
@@ -13432,7 +13639,7 @@ var cl = ({ node: e }) => {
13432
13639
  className: "w-full min-w-0 bg-px-raised border border-px-line2 rounded-lg px-2 py-1 text-xs text-px-text placeholder:text-px-faint focus:outline-none focus:border-px-accent/60"
13433
13640
  })
13434
13641
  }),
13435
- e.type !== "section" && /* @__PURE__ */ J(il, { children: "A name a link or button can scroll straight to, like #pricing. Letters, numbers and dashes." }),
13642
+ e.type !== "section" && /* @__PURE__ */ J(cl, { children: "A name a link or button can scroll straight to, like #pricing. Letters, numbers and dashes." }),
13436
13643
  /* @__PURE__ */ J($, {
13437
13644
  label: "Classes",
13438
13645
  children: /* @__PURE__ */ J("input", {
@@ -13441,17 +13648,17 @@ var cl = ({ node: e }) => {
13441
13648
  value: A.customClasses || "",
13442
13649
  onChange: (e) => j({ customClasses: e.target.value }),
13443
13650
  placeholder: "e.g. shadow-xl hover:scale-105",
13444
- className: `${el} font-mono`
13651
+ className: `${il} font-mono`
13445
13652
  })
13446
13653
  })
13447
13654
  ]
13448
13655
  }),
13449
- /* @__PURE__ */ Y(tl, {
13656
+ /* @__PURE__ */ Y(al, {
13450
13657
  hide: E,
13451
13658
  title: "Behaviour",
13452
13659
  children: [/* @__PURE__ */ J($, {
13453
13660
  label: "Overflow",
13454
- children: /* @__PURE__ */ J(nl, {
13661
+ children: /* @__PURE__ */ J(ol, {
13455
13662
  label: "Overflow",
13456
13663
  value: A.overflow === "hidden" || A.overflow === "clip" ? "hidden" : A.overflow === "auto" ? "auto" : "visible",
13457
13664
  onChange: (e) => j({ overflow: e }),
@@ -13479,7 +13686,7 @@ var cl = ({ node: e }) => {
13479
13686
  "aria-label": "Cursor",
13480
13687
  value: A.cursor ?? "auto",
13481
13688
  onChange: (e) => j({ cursor: e.target.value }),
13482
- className: el,
13689
+ className: il,
13483
13690
  children: [
13484
13691
  /* @__PURE__ */ J("option", {
13485
13692
  value: "auto",
@@ -13509,7 +13716,7 @@ var cl = ({ node: e }) => {
13509
13716
  })
13510
13717
  })]
13511
13718
  }),
13512
- /* @__PURE__ */ Y(tl, {
13719
+ /* @__PURE__ */ Y(al, {
13513
13720
  title: "Accessibility",
13514
13721
  children: [
13515
13722
  /* @__PURE__ */ J($, {
@@ -13520,7 +13727,7 @@ var cl = ({ node: e }) => {
13520
13727
  value: typeof e.props?.ariaLabel == "string" ? e.props.ariaLabel : "",
13521
13728
  onChange: (t) => d(e.id, { ariaLabel: t.target.value.slice(0, 200) || void 0 }),
13522
13729
  placeholder: "Read aloud by screen readers",
13523
- className: el
13730
+ className: il
13524
13731
  })
13525
13732
  }),
13526
13733
  /* @__PURE__ */ Y("label", {
@@ -13532,10 +13739,10 @@ var cl = ({ node: e }) => {
13532
13739
  className: "accent-px-accent"
13533
13740
  })]
13534
13741
  }),
13535
- /* @__PURE__ */ J(il, { children: "Use this for purely decorative things, like a background shape." })
13742
+ /* @__PURE__ */ J(cl, { children: "Use this for purely decorative things, like a background shape." })
13536
13743
  ]
13537
13744
  }),
13538
- /* @__PURE__ */ Y(tl, {
13745
+ /* @__PURE__ */ Y(al, {
13539
13746
  hide: E,
13540
13747
  title: "Transitions",
13541
13748
  hint: "For your own effects: how long a change takes (a hover colour, a size change), instead of snapping.",
@@ -13548,7 +13755,7 @@ var cl = ({ node: e }) => {
13548
13755
  transitionProperty: e.target.value,
13549
13756
  ...e.target.value !== "none" && A.transitionDuration === void 0 ? { transitionDuration: 200 } : {}
13550
13757
  }),
13551
- className: el,
13758
+ className: il,
13552
13759
  children: [
13553
13760
  /* @__PURE__ */ J("option", {
13554
13761
  value: "none",
@@ -13681,7 +13888,7 @@ var cl = ({ node: e }) => {
13681
13888
  role: "tablist",
13682
13889
  "aria-label": "Properties",
13683
13890
  className: "flex items-stretch px-2 border-b border-px-line shrink-0",
13684
- children: al.filter((e) => !E || e.id !== "advanced").map((e) => /* @__PURE__ */ J("button", {
13891
+ children: ll.filter((e) => !E || e.id !== "advanced").map((e) => /* @__PURE__ */ J("button", {
13685
13892
  role: "tab",
13686
13893
  type: "button",
13687
13894
  "aria-selected": D === e.id,
@@ -13692,7 +13899,7 @@ var cl = ({ node: e }) => {
13692
13899
  }),
13693
13900
  /* @__PURE__ */ J("div", {
13694
13901
  className: "px-3.5 pt-3 empty:hidden shrink-0",
13695
- children: /* @__PURE__ */ J(Jc, { node: e })
13902
+ children: /* @__PURE__ */ J(Qc, { node: e })
13696
13903
  }),
13697
13904
  /* @__PURE__ */ Y("div", {
13698
13905
  role: "tabpanel",
@@ -13705,7 +13912,7 @@ var cl = ({ node: e }) => {
13705
13912
  })
13706
13913
  ]
13707
13914
  });
13708
- }, ll = () => {
13915
+ }, pl = () => {
13709
13916
  let { selectedNode: e, selectedNodeIds: t, selectNodes: n, deleteNodes: r, documentTree: i, detachElementToFreePosition: a, returnElementToStructuredLayout: o, alignSelectedNodes: s, distributeSelectedNodes: c, canvasZoom: l } = Z();
13710
13917
  return t && t.length > 1 ? /* @__PURE__ */ Y("div", {
13711
13918
  className: "flex flex-col h-full w-[300px] shrink-0 border-l border-px-line bg-px-surface text-px-text select-none text-xs",
@@ -13865,8 +14072,8 @@ var cl = ({ node: e }) => {
13865
14072
  })]
13866
14073
  })]
13867
14074
  })]
13868
- }) : !e || e.type === "page" || e.id === i.id ? /* @__PURE__ */ J(sc, {}) : /* @__PURE__ */ J(cl, { node: e });
13869
- }, ul = () => {
14075
+ }) : !e || e.type === "page" || e.id === i.id ? /* @__PURE__ */ J(sc, {}) : /* @__PURE__ */ J(fl, { node: e });
14076
+ }, ml = () => {
13870
14077
  let { contextMenu: e, closeContextMenu: t, documentTree: n, selectedNodeIds: a, groupSelectedNodes: o, ungroupNode: c, duplicateNode: l, deleteNode: u, toggleNodeLock: d, toggleNodeVisibility: f, bringForward: m, sendBackward: h, bringToFront: g, sendToBack: v, zoomIn: y, zoomOut: b, resetZoom100: x, fitToPage: S, fitAllFrames: w, detachElementToFreePosition: T, returnElementToStructuredLayout: E, canvasZoom: D } = Z(), O = G(null), [k, A] = K({
13871
14078
  x: 0,
13872
14079
  y: 0
@@ -14134,7 +14341,7 @@ var cl = ({ node: e }) => {
14134
14341
  })
14135
14342
  ] })
14136
14343
  });
14137
- }, dl = [
14344
+ }, hl = [
14138
14345
  {
14139
14346
  id: "desktop",
14140
14347
  label: "Desktop",
@@ -14155,8 +14362,8 @@ var cl = ({ node: e }) => {
14155
14362
  label: "Phone",
14156
14363
  icon: /* @__PURE__ */ J(Le, { className: "w-3.5 h-3.5" })
14157
14364
  }
14158
- ], fl = () => {
14159
- let { getPages: e, currentPageId: t, getDesignSystem: n, setIsPreviewMode: r, viewportMode: i } = Z(), a = La(), o = a.mode === "email" ? dl.filter((e) => e.id === "desktop" || e.id === "mobile") : dl, [s, c] = K(a.mode === "email" && i !== "mobile" ? "desktop" : i), l = W(() => {
14365
+ ], gl = () => {
14366
+ let { getPages: e, currentPageId: t, getDesignSystem: n, setIsPreviewMode: r, viewportMode: i } = Z(), a = La(), o = a.mode === "email" ? hl.filter((e) => e.id === "desktop" || e.id === "mobile") : hl, [s, c] = K(a.mode === "email" && i !== "mobile" ? "desktop" : i), l = W(() => {
14160
14367
  let r = e(), i = r.find((e) => e.id === t) ?? r[0];
14161
14368
  if (a.mode === "email") {
14162
14369
  let e = yr(i, {
@@ -14238,7 +14445,7 @@ var cl = ({ node: e }) => {
14238
14445
  })
14239
14446
  ]
14240
14447
  });
14241
- }, pl = () => {
14448
+ }, _l = () => {
14242
14449
  let { selectedNodeId: e, selectedNodeIds: t, selectedNode: n, deleteNode: r, duplicateNode: i, undo: a, redo: o, selectParentNode: s, selectNode: c, selectAll: l, editingNodeId: u, stopInlineEditing: d, startInlineEditing: f, documentTree: p, activeSidebarTab: m, groupSelectedNodes: h, ungroupNode: g, bringForward: _, sendBackward: v, bringToFront: y, sendToBack: b, nudgeSelectedNodes: x, setIsPreviewMode: S, isPreviewMode: C } = Z(), w = La(), T = G(null), E = G(!1);
14243
14450
  return U(() => {
14244
14451
  let e = (e) => {
@@ -14349,14 +14556,14 @@ var cl = ({ node: e }) => {
14349
14556
  /* @__PURE__ */ J(eo, {}),
14350
14557
  m && /* @__PURE__ */ J(ws, {}),
14351
14558
  /* @__PURE__ */ J(tc, {}),
14352
- /* @__PURE__ */ J(ll, {})
14559
+ /* @__PURE__ */ J(pl, {})
14353
14560
  ]
14354
14561
  }),
14355
- C && /* @__PURE__ */ J(fl, {}),
14356
- /* @__PURE__ */ J(ul, {})
14562
+ C && /* @__PURE__ */ J(gl, {}),
14563
+ /* @__PURE__ */ J(ml, {})
14357
14564
  ]
14358
14565
  });
14359
- }, ml = Bi.forwardRef(({ rootRef: e, host: t }, n) => {
14566
+ }, vl = Bi.forwardRef(({ rootRef: e, host: t }, n) => {
14360
14567
  let { getPages: r, pages: i, getDesignSystem: a } = Z(), o = G(r);
14361
14568
  o.current = r, Gi(n, () => ({
14362
14569
  getPages: () => o.current(),
@@ -14380,8 +14587,8 @@ var cl = ({ node: e }) => {
14380
14587
  t.autoSaveDuration
14381
14588
  ]), null;
14382
14589
  });
14383
- ml.displayName = "V2EditorBridge";
14384
- var hl = Hi(function(e, t) {
14590
+ vl.displayName = "V2EditorBridge";
14591
+ var yl = Hi(function(e, t) {
14385
14592
  let { className: n, pages: r, initialPageId: i, onChange: a, designSystem: o, onDesignSystemChange: s, ...c } = e, l = G(null), u = W(() => r && r.length ? r : c.mode === "email" ? Hn() : ur(), []);
14386
14593
  return /* @__PURE__ */ J("div", {
14387
14594
  ref: l,
@@ -14401,14 +14608,14 @@ var hl = Hi(function(e, t) {
14401
14608
  designSystem: o,
14402
14609
  onDesignSystemChange: s,
14403
14610
  children: [
14404
- /* @__PURE__ */ J(ml, {
14611
+ /* @__PURE__ */ J(vl, {
14405
14612
  ref: t,
14406
14613
  rootRef: l,
14407
14614
  host: c
14408
14615
  }),
14409
14616
  /* @__PURE__ */ J(Ls, {}),
14410
14617
  /* @__PURE__ */ J(Pa, {}),
14411
- /* @__PURE__ */ J(pl, {}),
14618
+ /* @__PURE__ */ J(_l, {}),
14412
14619
  /* @__PURE__ */ J(za, {})
14413
14620
  ]
14414
14621
  })
@@ -14416,4 +14623,4 @@ var hl = Hi(function(e, t) {
14416
14623
  });
14417
14624
  });
14418
14625
  //#endregion
14419
- export { Vt as AUDIT_KINDS, Jt as AUDIT_KIND_LABELS, dr as EMAIL_WIDTH, yi as FONT_CHOICES, Ai as FONT_FILE_ACCEPT, Ni as MAX_CUSTOM_FONTS, xt as MAX_CUSTOM_JS, fi as MAX_FONT_FILE_BYTES, Mi as MAX_FONT_VARIANTS, sr as PAGE_TEMPLATES, ri as POPULAR_FONTS, ln as ROOT_FONT_PX, gr as SOL_SYSTEM_PROMPT, Mn as TEXT_STYLES, Ir as TEXT_STYLE_IDS, Jn as THEME_PRESETS, Ar as V1_DYNAMIC_EQUIVALENTS, hl as V2Editor, mr as V2_DYNAMIC_READY, ci as WEIGHT_LABELS, At as WORKSPACE_ID, Zr as addCustomFont, dn as applyAuditFixes, vr as applyCommands, xr as applyTheme, qr as auditDesign, Hn as blankEmailPages, ur as blankPages, Ct as buildPageFromTemplate, ir as buildTemplateSections, on as catalogSchema, wt as colorDistance, yr as compilePageToEmail, bo as componentStyle, yo as componentVariants, cr as convertLegacyDesign, wr as convertV1Design, Yt as createDefaultDesignSystem, ji as customFontFaceCss, li as customFontsOf, yn as deriveShades, Sn as describeAudit, Er as describeCommand, Fr as describeDesign, Kt as designSystemCss, Sr as designSystemVars, yt as effectiveTypeMetrics, Qn as emailIssues, an as ensureWorkspace, Gn as evalCssLength, $r as findCustomFont, ii as findFont, Wt as fontsNeeded, On as frameVars, En as frameVarsFor, zt as friendlyTokenName, $t as getPageTemplate, wi as getToken, Di as getValue, oi as googleFontPreviewHref, ei as googleFontsHrefs, Qr as guessFontFromFile, ai as isFontUrl, Gr as isHeadingTextStyle, Nr as isLegacyDesign, ti as isLoadableFamily, nn as isPageEmpty, ni as isSystemFont, Ln as isTextStyle, St as isWorkspaceNode, Hr as levelTextStyle, bn as linkAccentsToBrand, wn as linkExactValues, vi as lintDesignSystem, cn as listPageTemplates, pi as nameFromKey, pr as neutralScaleOf, rr as pageChildren, tr as parseSolReply, An as plexoVars, nr as prepareCustomJs, $n as previewSurfaces, si as primaryFamily, Fn as readStreamingSolReply, Pt as readableOn, xi as ref, ki as refKey, bi as removeCustomFont, mi as removeToken, di as repairDesignSystem, hi as resolveKey, Ti as resolveValue, Zn as roundnessOf, Dr as sanitizeCss, Yr as sanitizeCustomFonts, zn as sanitizeV2Html, Nn as setBrandSurfaces, Lr as setDensity, Kr as setFonts, Rn as setNeutralScale, kr as setPageTemplateResolver, Ur as setPrimaryColor, gn as setRoundness, Ot as setSecondaryColor, Br as setStatusColor, Si as setToken, _i as setTokens, Vn as solCommandSchema, Pi as stackFor, Kn as starterEmailPages, Qt as stripWorkspace, Lt as suggestedDecisions, It as templateSeed, hn as textStyleCss, Dt as textStyleDef, Mr as textStyleOf, zr as textStyleVars, jt as tint, gi as tokenCssValue, ui as tokenMap, en as validHtmlId, Xr as weightsToLoad, tn as workspaceOf };
14626
+ export { Vt as AUDIT_KINDS, Jt as AUDIT_KIND_LABELS, dr as EMAIL_WIDTH, yi as FONT_CHOICES, Ai as FONT_FILE_ACCEPT, Ni as MAX_CUSTOM_FONTS, xt as MAX_CUSTOM_JS, fi as MAX_FONT_FILE_BYTES, Mi as MAX_FONT_VARIANTS, sr as PAGE_TEMPLATES, ri as POPULAR_FONTS, ln as ROOT_FONT_PX, gr as SOL_SYSTEM_PROMPT, Mn as TEXT_STYLES, Ir as TEXT_STYLE_IDS, Jn as THEME_PRESETS, Ar as V1_DYNAMIC_EQUIVALENTS, yl as V2Editor, mr as V2_DYNAMIC_READY, ci as WEIGHT_LABELS, At as WORKSPACE_ID, Zr as addCustomFont, dn as applyAuditFixes, vr as applyCommands, xr as applyTheme, qr as auditDesign, Hn as blankEmailPages, ur as blankPages, Ct as buildPageFromTemplate, ir as buildTemplateSections, on as catalogSchema, wt as colorDistance, yr as compilePageToEmail, bo as componentStyle, yo as componentVariants, cr as convertLegacyDesign, wr as convertV1Design, Yt as createDefaultDesignSystem, ji as customFontFaceCss, li as customFontsOf, yn as deriveShades, Sn as describeAudit, Er as describeCommand, Fr as describeDesign, Kt as designSystemCss, Sr as designSystemVars, yt as effectiveTypeMetrics, Qn as emailIssues, an as ensureWorkspace, Gn as evalCssLength, $r as findCustomFont, ii as findFont, Wt as fontsNeeded, On as frameVars, En as frameVarsFor, zt as friendlyTokenName, $t as getPageTemplate, wi as getToken, Di as getValue, oi as googleFontPreviewHref, ei as googleFontsHrefs, Qr as guessFontFromFile, ai as isFontUrl, Gr as isHeadingTextStyle, Nr as isLegacyDesign, ti as isLoadableFamily, nn as isPageEmpty, ni as isSystemFont, Ln as isTextStyle, St as isWorkspaceNode, Hr as levelTextStyle, bn as linkAccentsToBrand, wn as linkExactValues, vi as lintDesignSystem, cn as listPageTemplates, pi as nameFromKey, pr as neutralScaleOf, rr as pageChildren, tr as parseSolReply, An as plexoVars, nr as prepareCustomJs, $n as previewSurfaces, si as primaryFamily, Fn as readStreamingSolReply, Pt as readableOn, xi as ref, ki as refKey, bi as removeCustomFont, mi as removeToken, di as repairDesignSystem, hi as resolveKey, Ti as resolveValue, Zn as roundnessOf, Dr as sanitizeCss, Yr as sanitizeCustomFonts, zn as sanitizeV2Html, Nn as setBrandSurfaces, Lr as setDensity, Kr as setFonts, Rn as setNeutralScale, kr as setPageTemplateResolver, Ur as setPrimaryColor, gn as setRoundness, Ot as setSecondaryColor, Br as setStatusColor, Si as setToken, _i as setTokens, Vn as solCommandSchema, Pi as stackFor, Kn as starterEmailPages, Qt as stripWorkspace, Lt as suggestedDecisions, It as templateSeed, hn as textStyleCss, Dt as textStyleDef, Mr as textStyleOf, zr as textStyleVars, jt as tint, gi as tokenCssValue, ui as tokenMap, en as validHtmlId, Xr as weightsToLoad, tn as workspaceOf };