@ohhwells/bridge 0.1.179-next.478 → 0.1.179-next.479

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -56,6 +56,8 @@ __export(index_exports, {
56
56
  HIDDEN_EDITABLES_KEY: () => HIDDEN_EDITABLES_KEY,
57
57
  ItemActionToolbar: () => ItemActionToolbar,
58
58
  ItemInteractionLayer: () => ItemInteractionLayer,
59
+ LAYOUT_PREVIEWS_REQUEST: () => LAYOUT_PREVIEWS_REQUEST,
60
+ LAYOUT_PREVIEW_REPLY: () => LAYOUT_PREVIEW_REPLY,
59
61
  LOGO_ON_DARK_KEY: () => LOGO_ON_DARK_KEY,
60
62
  LOGO_ON_LIGHT_KEY: () => LOGO_ON_LIGHT_KEY,
61
63
  LOGO_PRIMARY_ATTR: () => LOGO_PRIMARY_ATTR,
@@ -92,6 +94,7 @@ __export(index_exports, {
92
94
  blockPathFromEditKey: () => blockPathFromEditKey,
93
95
  brandColorVars: () => brandColorVars,
94
96
  buildDefaultFooterTree: () => buildDefaultFooterTree,
97
+ buildLayoutPreviewDoc: () => buildLayoutPreviewDoc,
95
98
  buildTarget: () => buildTarget,
96
99
  canRemoveAiBlock: () => canRemoveAiBlock,
97
100
  canRemoveAiTextBlock: () => canRemoveAiTextBlock,
@@ -114,11 +117,13 @@ __export(index_exports, {
114
117
  isDeadPageHref: () => isDeadPageHref,
115
118
  isEditSessionActive: () => isEditSessionActive,
116
119
  isEditableKeyHidden: () => isEditableKeyHidden,
120
+ isLayoutPreviewRequest: () => isLayoutPreviewRequest,
117
121
  isPlainLeftClick: () => isPlainLeftClick,
118
122
  isRenderableFooterTree: () => isRenderableFooterTree,
119
123
  isRenderableTree: () => isRenderableTree,
120
124
  isStickySearchParam: () => isStickySearchParam,
121
125
  isValidUrl: () => isValidUrl,
126
+ layoutPreviewBackground: () => layoutPreviewBackground,
122
127
  linearGradientColourAt: () => linearGradientColourAt,
123
128
  logoVersionNodesFromMessage: () => logoVersionNodesFromMessage,
124
129
  mapRegionToImage: () => mapRegionToImage,
@@ -171,8 +176,8 @@ module.exports = __toCommonJS(index_exports);
171
176
 
172
177
  // src/OhhwellsBridge.tsx
173
178
  var import_react27 = __toESM(require("react"), 1);
174
- var import_client3 = require("react-dom/client");
175
- var import_react_dom5 = require("react-dom");
179
+ var import_client4 = require("react-dom/client");
180
+ var import_react_dom6 = require("react-dom");
176
181
 
177
182
  // src/linkHrefStore.ts
178
183
  var linkHrefStore = /* @__PURE__ */ new Map();
@@ -882,7 +887,7 @@ function loadImage(url, onSettled) {
882
887
  img.crossOrigin = "anonymous";
883
888
  img.decoding = "async";
884
889
  let done = false;
885
- const settle = (ok) => {
890
+ const settle2 = (ok) => {
886
891
  if (done) return;
887
892
  done = true;
888
893
  clearTimeout(timer);
@@ -890,9 +895,9 @@ function loadImage(url, onSettled) {
890
895
  imageCache.set(url, ok ? { state: "ok", img } : { state: "fail" });
891
896
  for (const waiter of entry.waiters) waiter();
892
897
  };
893
- const timer = setTimeout(() => settle(false), SAMPLE_TIMEOUT_MS);
894
- img.onload = () => settle(img.naturalWidth > 0);
895
- img.onerror = () => settle(false);
898
+ const timer = setTimeout(() => settle2(false), SAMPLE_TIMEOUT_MS);
899
+ img.onload = () => settle2(img.naturalWidth > 0);
900
+ img.onerror = () => settle2(false);
896
901
  img.src = url;
897
902
  return entry;
898
903
  }
@@ -9997,6 +10002,8 @@ var AI_MOBILE_CSS = [
9997
10002
  // layout decision this responsive shim has no business making.
9998
10003
  "[data-ai-fill-height] [data-ai-row] > [data-ai-cell]:only-child{flex:1 1 auto;min-height:0}",
9999
10004
  "[data-ai-grid]{grid-template-columns:1fr !important}",
10005
+ // Masonry keeps two staggered columns on phones (Section System 2 mobile frame).
10006
+ "[data-ai-masonry]{column-count:2 !important}",
10000
10007
  // Group containers flatten to a column on phones; span placements come along for free.
10001
10008
  // Excludes `overlap` (OHH-796): its whole point is stacking children on top of each other via
10002
10009
  // CSS grid (`grid-area: 1 / 1` on every child) at every viewport width — flattening it to a
@@ -10438,6 +10445,8 @@ function ButtonEl({
10438
10445
  style: {
10439
10446
  display: fullWidth ? "flex" : "inline-flex",
10440
10447
  width: fullWidth ? "100%" : void 0,
10448
+ // Padding inside the 100%, or a full-width CTA runs past its card's edge by its own padding.
10449
+ boxSizing: "border-box",
10441
10450
  alignItems: "center",
10442
10451
  justifyContent: "center",
10443
10452
  textDecoration: "none",
@@ -10669,7 +10678,7 @@ function PricingCard({ node, ctx, path }) {
10669
10678
  {
10670
10679
  ...ctx.keyFor ? { "data-ohw-key": ctx.keyFor(`${path}.featured.badge`), "data-ohw-editable": "plain" } : {},
10671
10680
  style: {
10672
- alignSelf: "flex-start",
10681
+ ...horizontal ? { alignSelf: "flex-start" } : { position: "absolute", top: 0, left: "50%", transform: "translate(-50%, -50%)", zIndex: 1, whiteSpace: "nowrap" },
10673
10682
  padding: `${AI_TREE_TOKENS.spacing2 / 2}px ${AI_TREE_TOKENS.spacing3}px`,
10674
10683
  borderRadius: 999,
10675
10684
  background: ctx.brand.palette.primary,
@@ -10842,6 +10851,58 @@ function TestimonialCard({ node, ctx, path }) {
10842
10851
  const hasBg = slots.background === true;
10843
10852
  const person = slots.person;
10844
10853
  const avatarPos = avatarPosition(slots);
10854
+ if (slots.layout === "centered") {
10855
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
10856
+ "div",
10857
+ {
10858
+ "data-ohw-card": "",
10859
+ style: {
10860
+ display: "flex",
10861
+ flexDirection: "column",
10862
+ alignItems: "center",
10863
+ gap: AI_TREE_TOKENS.spacing6,
10864
+ textAlign: "center",
10865
+ maxWidth: 720,
10866
+ margin: "0 auto",
10867
+ padding: hasBg ? AI_TREE_TOKENS.paddingBlock : 0,
10868
+ background: hasBg ? ctx.cardSurface : "transparent",
10869
+ borderRadius: hasBg ? cardRadius(slots) : 0,
10870
+ minWidth: 0,
10871
+ boxSizing: "border-box"
10872
+ },
10873
+ children: [
10874
+ typeof slots.rating === "number" && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(RatingEl, { value: slots.rating, ctx }),
10875
+ str(slots.quote) && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
10876
+ "div",
10877
+ {
10878
+ ...textAttrs(ctx, `${path}.quote`),
10879
+ style: { ...typeStyle(AI_TREE_TOKENS.type.h2, ctx.brand.fonts.heading), color: ctx.brand.palette.dark },
10880
+ dangerouslySetInnerHTML: { __html: `"${str(slots.quote)}"` }
10881
+ }
10882
+ ),
10883
+ person?.avatar && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(AvatarDisc, { person, ctx, path, size: 72 }),
10884
+ person && /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { children: [
10885
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
10886
+ "div",
10887
+ {
10888
+ ...textAttrs(ctx, `${path}.person.name`),
10889
+ style: { ...typeStyle(AI_TREE_TOKENS.type.bodyMBold, ctx.brand.fonts.body), color: ctx.brand.palette.dark },
10890
+ children: person.name
10891
+ }
10892
+ ),
10893
+ person.role && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
10894
+ "div",
10895
+ {
10896
+ ...textAttrs(ctx, `${path}.person.role`),
10897
+ style: { ...typeStyle(AI_TREE_TOKENS.type.bodyM, ctx.brand.fonts.body), color: ctx.brand.palette.accent },
10898
+ children: person.role
10899
+ }
10900
+ )
10901
+ ] })
10902
+ ]
10903
+ }
10904
+ );
10905
+ }
10845
10906
  const content = /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
10846
10907
  "div",
10847
10908
  {
@@ -10876,7 +10937,9 @@ function TestimonialCard({ node, ctx, path }) {
10876
10937
  borderRadius: hasBg ? cardRadius(slots) : 0,
10877
10938
  overflow: "hidden",
10878
10939
  outline: slots.featured === true ? `2px solid ${ctx.brand.palette.primary}` : void 0,
10879
- minWidth: 0
10940
+ minWidth: 0,
10941
+ // Same reason as TeamCard: copy lines up with the left-hand avatar.
10942
+ textAlign: "left"
10880
10943
  },
10881
10944
  children: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
10882
10945
  "div",
@@ -10916,6 +10979,9 @@ function TeamCard({ node, ctx, path }) {
10916
10979
  overflow: "hidden",
10917
10980
  outline: slots.featured === true ? `2px solid ${ctx.brand.palette.primary}` : void 0,
10918
10981
  minWidth: 0,
10982
+ // The avatar is a block at the left edge, so the copy under it must be left too, or a
10983
+ // centred section centres the name and role under a left-hand avatar.
10984
+ textAlign: "left",
10919
10985
  display: avatarPos === "left" ? "flex" : "block",
10920
10986
  alignItems: avatarPos === "left" ? "flex-start" : void 0
10921
10987
  },
@@ -11359,31 +11425,34 @@ function Carousel({ items, itemsPerRow, ctx }) {
11359
11425
  cursor: "pointer",
11360
11426
  padding: 0
11361
11427
  });
11362
- const viewport = /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { style: { flex: isMobile ? "0 0 auto" : 1, minWidth: 0, width: "100%", overflow: "hidden" }, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
11363
- "div",
11364
- {
11365
- style: {
11366
- display: "flex",
11367
- transform: `translateX(-${current * 100}%)`,
11368
- transition: "transform 0.4s ease"
11369
- },
11370
- children: pageGroups.map((group, p) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
11371
- "div",
11372
- {
11373
- "data-ai-grid": String(perPage),
11374
- style: {
11375
- flex: "0 0 100%",
11376
- display: "grid",
11377
- gridTemplateColumns: `repeat(${perPage}, 1fr)`,
11378
- gap: AI_TREE_TOKENS.spacing8,
11379
- alignItems: "start"
11380
- },
11381
- children: group
11428
+ const viewport = (
11429
+ // Clip sideways only: a featured pricing card's badge rides above the card's top edge.
11430
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { style: { flex: isMobile ? "0 0 auto" : 1, minWidth: 0, width: "100%", overflowX: "clip", overflowY: "visible" }, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
11431
+ "div",
11432
+ {
11433
+ style: {
11434
+ display: "flex",
11435
+ transform: `translateX(-${current * 100}%)`,
11436
+ transition: "transform 0.4s ease"
11382
11437
  },
11383
- p
11384
- ))
11385
- }
11386
- ) });
11438
+ children: pageGroups.map((group, p) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
11439
+ "div",
11440
+ {
11441
+ "data-ai-grid": String(perPage),
11442
+ style: {
11443
+ flex: "0 0 100%",
11444
+ display: "grid",
11445
+ gridTemplateColumns: `repeat(${perPage}, 1fr)`,
11446
+ gap: AI_TREE_TOKENS.spacing8,
11447
+ alignItems: "start"
11448
+ },
11449
+ children: group
11450
+ },
11451
+ p
11452
+ ))
11453
+ }
11454
+ ) })
11455
+ );
11387
11456
  const prevBtn = /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
11388
11457
  "button",
11389
11458
  {
@@ -11733,13 +11802,20 @@ function pricingIndexFromPath(path) {
11733
11802
  const m = /\.c(\d+)$/.exec(path);
11734
11803
  return m ? Number(m[1]) : 0;
11735
11804
  }
11805
+ function carouselPageSize(children) {
11806
+ const cardSlots = children.map((c) => c.type === "card" ? c.slots ?? {} : null);
11807
+ if (cardSlots.length && cardSlots.every((s) => s?.layout === "centered")) return 1;
11808
+ if (cardSlots.length && cardSlots.every((s) => s?.preset === "testimonial")) return 3;
11809
+ return 4;
11810
+ }
11736
11811
  function CollectionBlock({ node, ctx, path }) {
11737
11812
  const slots = node.slots ?? {};
11738
11813
  const behavior = str(slots.behavior);
11739
11814
  const children = node.children ?? [];
11740
11815
  const itemsPerRow = behavior === "grid" ? typeof slots.itemsPerRow === "number" ? slots.itemsPerRow : Math.min(4, children.length) : behavior === "carousel" ? (
11741
- // itemsPerRow is a grid-only slot; carousels show up to 4 and page the rest.
11742
- Math.min(4, children.length)
11816
+ // itemsPerRow is a grid-only slot; carousels show up to 4 and page the rest. Section
11817
+ // System 2: a centred (spotlight) quote is one per page, testimonial cards three.
11818
+ Math.min(carouselPageSize(children), children.length)
11743
11819
  ) : children.length;
11744
11820
  const isPricing = isPricingCardCollection(children);
11745
11821
  const rendered = children.map((child, i) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { style: { minWidth: 0 }, children: renderNode(child, ctx, `${path}.c${i}`) }, i));
@@ -11845,6 +11921,10 @@ function CollectionBlock({ node, ctx, path }) {
11845
11921
  const wide = children[0]?.slots?.layout === "horizontal";
11846
11922
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { "data-ohw-pricing-collection": "", style: { display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { style: { width: "100%", maxWidth: wide ? 960 : 420, minWidth: 0 }, children: rendered[0] }) });
11847
11923
  }
11924
+ const mixedAspects = children.length > 1 && children.every((child) => child.type === "media") && new Set(children.map((child) => str(child.slots?.aspect))).size > 1;
11925
+ if (behavior === "grid" && mixedAspects) {
11926
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { "data-ai-masonry": "", style: { columnCount: itemsPerRow, columnGap: AI_TREE_TOKENS.spacing6 }, children: rendered.map((tile, i) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { style: { breakInside: "avoid", marginBottom: AI_TREE_TOKENS.spacing6 }, children: tile }, i)) });
11927
+ }
11848
11928
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
11849
11929
  "div",
11850
11930
  {
@@ -12519,9 +12599,7 @@ function AiTreeRenderer({
12519
12599
  const hasOverlapBackground = tree.scaffold === "overlay" && tree.rows.some(
12520
12600
  (row) => (row.blocks ?? []).some((b) => b.type === "group" && str(b.slots?.layout) === "overlap")
12521
12601
  );
12522
- const hasFullBleedCarousel = tree.rows.some(
12523
- (row) => (row.blocks ?? []).some((b) => b.type === "carousel")
12524
- );
12602
+ const hasFullBleedCarousel = tree.rows.some((row) => (row.blocks ?? []).some((b) => b.type === "carousel")) && tree.rows.every((row) => (row.blocks ?? []).every((b) => b.type === "carousel"));
12525
12603
  const fullBleedMedia = hasOverlapBackground || hasFullBleedCarousel;
12526
12604
  const ctx = {
12527
12605
  brand: blockBrand,
@@ -12608,6 +12686,9 @@ function AiTreeRenderer({
12608
12686
  // horizontal). The overlap branch in `renderNode` re-introduces the reading-width
12609
12687
  // constraint around just the overlay text layer, via `ctx.heroOverlapFullBleed`.
12610
12688
  ...fullBleedMedia ? { maxWidth: void 0, margin: void 0, padding: 0 } : { maxWidth: AI_TREE_TOKENS.sectionMaxWidth, margin: "0 auto", padding: "0 40px" },
12689
+ // A full/half-height section is a grid, where `margin: auto` shrink-wraps this container to
12690
+ // its content and centres it: an Overlay hero's left-aligned copy floated mid-frame.
12691
+ ...fillHeight && !fullBleedMedia ? { width: "100%", boxSizing: "border-box", maxWidth: AI_TREE_TOKENS.sectionMaxWidth + 80 } : {},
12611
12692
  textAlign: settings.alignment === "center" ? "center" : void 0,
12612
12693
  ...fillHeight ? { display: "grid" } : {}
12613
12694
  },
@@ -12630,9 +12711,8 @@ function AiTreeRenderer({
12630
12711
  style: {
12631
12712
  gridArea: "1 / 1",
12632
12713
  zIndex: 1,
12633
- // Right side: Google's map embed always draws its own address box (with "Open in
12634
- // Maps") in the top-left corner, which a left card would cover.
12635
- justifySelf: "end",
12714
+ // Left side, as in Figma 4689:7282.
12715
+ justifySelf: "start",
12636
12716
  alignSelf: "center",
12637
12717
  width: "min(480px, calc(100% - 128px))",
12638
12718
  margin: 64,
@@ -13078,6 +13158,9 @@ var TEMPLATE_FONTS_SNAPSHOT = typeof document === "undefined" ? null : withOverr
13078
13158
  function deriveTemplateBrand() {
13079
13159
  return TEMPLATE_BRAND_SNAPSHOT;
13080
13160
  }
13161
+ function resolveGeneratedBrand(sectionBrand) {
13162
+ return brandForGenerated(deriveBrandOverride() ?? sectionBrand ?? TEMPLATE_BRAND_SNAPSHOT);
13163
+ }
13081
13164
  function deriveTemplateFonts() {
13082
13165
  return TEMPLATE_FONTS_SNAPSHOT;
13083
13166
  }
@@ -13412,10 +13495,157 @@ function unmountAllAiSections() {
13412
13495
  }
13413
13496
  }
13414
13497
 
13415
- // src/ui/ai-tree/aiFooterManager.tsx
13416
- var import_client2 = require("react-dom/client");
13498
+ // src/ui/ai-tree/layoutPreviews.tsx
13417
13499
  var import_react_dom2 = require("react-dom");
13500
+ var import_client2 = require("react-dom/client");
13501
+
13502
+ // src/lib/ai-layout-previews.ts
13503
+ var LAYOUT_PREVIEWS_REQUEST = "ow:ai-layout-previews";
13504
+ var LAYOUT_PREVIEW_REPLY = "ow:ai-layout-preview";
13505
+ var escapeAttr = (value) => value.replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;");
13506
+ var safeCss = (css) => css.replace(/<\/style/gi, "<\\/style");
13507
+ function buildLayoutPreviewDoc(sectionHtml, ctx, width) {
13508
+ const links = ctx.stylesheets.map((href) => `<link rel="stylesheet" href="${escapeAttr(href)}">`).join("");
13509
+ const styles = ctx.styles.map((css) => `<style>${safeCss(css)}</style>`).join("");
13510
+ const htmlAttrs = (ctx.htmlClass ? ` class="${escapeAttr(ctx.htmlClass)}"` : "") + (ctx.htmlStyle ? ` style="${escapeAttr(ctx.htmlStyle)}"` : "");
13511
+ const bodyAttrs = (ctx.bodyClass ? ` class="${escapeAttr(ctx.bodyClass)}"` : "") + ` style="${escapeAttr(`${ctx.bodyStyle ? `${ctx.bodyStyle};` : ""}margin:0;overflow:hidden;background:transparent`)}"`;
13512
+ const wrapperStyle = `${ctx.inherited ? `${ctx.inherited};` : ""}width:${Math.round(width)}px`;
13513
+ return `<!doctype html><html${htmlAttrs}><head><meta charset="utf-8"><base href="${escapeAttr(ctx.origin.replace(/\/?$/, "/"))}"><meta name="viewport" content="width=${Math.round(width)}">` + links + styles + // Nothing in a preview is interactive, and scroll-linked or entrance animations would freeze
13514
+ // mid-way without scripts.
13515
+ `<style>*,*::before,*::after{animation:none!important;transition:none!important}</style></head><body${bodyAttrs}><div style="${escapeAttr(wrapperStyle)}">${sectionHtml}</div></body></html>`;
13516
+ }
13517
+ var TRANSPARENT2 = /^(transparent|rgba\(\s*0\s*,\s*0\s*,\s*0\s*,\s*0\s*\))$/i;
13518
+ function layoutPreviewBackground(backgroundColor, backgroundImage) {
13519
+ const color = backgroundColor.trim();
13520
+ const image = backgroundImage.trim();
13521
+ if (image && image !== "none") return "#ffffff";
13522
+ if (!color || TRANSPARENT2.test(color)) return "#ffffff";
13523
+ return color;
13524
+ }
13525
+ function isLayoutPreviewRequest(value) {
13526
+ if (!value || typeof value !== "object") return false;
13527
+ const v = value;
13528
+ return typeof v.requestId === "string" && Array.isArray(v.layouts) && v.layouts.length > 0 && v.layouts.every((l) => l && typeof l.id === "string" && l.tree && typeof l.tree === "object");
13529
+ }
13530
+
13531
+ // src/ui/ai-tree/layoutPreviews.tsx
13418
13532
  var import_jsx_runtime4 = require("react/jsx-runtime");
13533
+ var HOST_ATTR = "data-ohw-layout-preview-host";
13534
+ var SETTLE_CAP_MS = 2500;
13535
+ var activeRequest = null;
13536
+ var wait = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
13537
+ function cssTextOf(el) {
13538
+ try {
13539
+ const rules = el.sheet?.cssRules;
13540
+ if (rules && rules.length > 0) return Array.from(rules, (r2) => r2.cssText).join("\n");
13541
+ } catch {
13542
+ }
13543
+ return el.textContent ?? "";
13544
+ }
13545
+ function readPageContext(parent) {
13546
+ const stylesheets = Array.from(document.querySelectorAll('link[rel~="stylesheet"]')).filter((l) => !l.disabled && l.href).map((l) => l.href);
13547
+ const styles = Array.from(document.querySelectorAll("style")).filter((s) => !s.closest(`[${HOST_ATTR}]`)).map(cssTextOf).filter(Boolean);
13548
+ const cs = getComputedStyle(parent);
13549
+ const inherited = [
13550
+ `font-family:${cs.fontFamily}`,
13551
+ `color:${cs.color}`,
13552
+ `font-size:${cs.fontSize}`,
13553
+ `line-height:${cs.lineHeight}`,
13554
+ `letter-spacing:${cs.letterSpacing}`
13555
+ ].join(";");
13556
+ return {
13557
+ origin: window.location.origin,
13558
+ stylesheets,
13559
+ styles,
13560
+ htmlClass: document.documentElement.className,
13561
+ htmlStyle: document.documentElement.getAttribute("style") ?? "",
13562
+ bodyClass: document.body.className,
13563
+ bodyStyle: document.body.getAttribute("style") ?? "",
13564
+ inherited
13565
+ };
13566
+ }
13567
+ async function settle(host) {
13568
+ const images = Array.from(host.querySelectorAll("img"));
13569
+ for (const img of images) img.loading = "eager";
13570
+ const loads = images.map(
13571
+ (img) => img.complete ? Promise.resolve() : img.decode().catch(() => void 0)
13572
+ );
13573
+ await Promise.race([
13574
+ Promise.all([...loads, document.fonts?.ready ?? Promise.resolve()]),
13575
+ wait(SETTLE_CAP_MS)
13576
+ ]);
13577
+ }
13578
+ function backgroundOf(host) {
13579
+ let el = host.firstElementChild;
13580
+ for (let depth = 0; el && depth < 3; depth++) {
13581
+ const cs = getComputedStyle(el);
13582
+ const bg = layoutPreviewBackground(cs.backgroundColor, cs.backgroundImage);
13583
+ if (bg !== "#ffffff" || cs.backgroundImage && cs.backgroundImage !== "none") return bg;
13584
+ el = el.firstElementChild;
13585
+ }
13586
+ return "#ffffff";
13587
+ }
13588
+ async function renderOne(layout, req, anchor, width) {
13589
+ const empty = { id: layout.id, doc: "", width, height: 0, bg: "#ffffff" };
13590
+ if (!isRenderableTree(layout.tree)) return empty;
13591
+ const host = document.createElement("div");
13592
+ host.setAttribute(HOST_ATTR, "");
13593
+ host.setAttribute("aria-hidden", "true");
13594
+ host.style.cssText = `position:absolute;left:-100000px;top:0;width:${width}px;pointer-events:none;contain:layout paint`;
13595
+ const parent = anchor?.parentElement ?? document.body;
13596
+ parent.appendChild(host);
13597
+ const root = (0, import_client2.createRoot)(host);
13598
+ const media = req.media ?? {};
13599
+ try {
13600
+ (0, import_react_dom2.flushSync)(() => {
13601
+ root.render(
13602
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
13603
+ AiTreeRenderer,
13604
+ {
13605
+ tree: layout.tree,
13606
+ brand: resolveGeneratedBrand(req.brand ?? null),
13607
+ buttonStyle: deriveTemplateButtonStyle(),
13608
+ resolveMedia: (ref) => media[ref] ?? null
13609
+ }
13610
+ )
13611
+ );
13612
+ });
13613
+ await settle(host);
13614
+ const rect = host.getBoundingClientRect();
13615
+ const height = Math.max(1, Math.round(Math.max(rect.height, host.scrollHeight)));
13616
+ const doc = buildLayoutPreviewDoc(host.innerHTML, readPageContext(parent), width);
13617
+ return { id: layout.id, doc, width, height, bg: backgroundOf(host) };
13618
+ } catch {
13619
+ return empty;
13620
+ } finally {
13621
+ root.unmount();
13622
+ host.remove();
13623
+ }
13624
+ }
13625
+ async function renderLayoutPreviews(req, post) {
13626
+ activeRequest = req.requestId;
13627
+ const anchor = req.sectionId ? document.querySelector(`[data-ohw-section="${CSS.escape(req.sectionId)}"]`) : null;
13628
+ const width = Math.round(anchor?.getBoundingClientRect().width || document.documentElement.clientWidth);
13629
+ for (const layout of req.layouts) {
13630
+ if (activeRequest !== req.requestId) return;
13631
+ const result = await renderOne(layout, req, anchor, width);
13632
+ if (activeRequest !== req.requestId) return;
13633
+ post({ type: LAYOUT_PREVIEW_REPLY, requestId: req.requestId, ...result });
13634
+ await wait(0);
13635
+ }
13636
+ }
13637
+ function createLayoutPreviewsListener(post) {
13638
+ return (e) => {
13639
+ if (e.data?.type !== LAYOUT_PREVIEWS_REQUEST) return;
13640
+ if (!isLayoutPreviewRequest(e.data)) return;
13641
+ void renderLayoutPreviews(e.data, (reply) => post(reply));
13642
+ };
13643
+ }
13644
+
13645
+ // src/ui/ai-tree/aiFooterManager.tsx
13646
+ var import_client3 = require("react-dom/client");
13647
+ var import_react_dom3 = require("react-dom");
13648
+ var import_jsx_runtime5 = require("react/jsx-runtime");
13419
13649
  var CONTAINER_ATTR2 = "data-ohw-ai-footer";
13420
13650
  var HIDDEN_ATTR2 = "data-ohw-ai-footer-replaced";
13421
13651
  var mounted2 = null;
@@ -13551,11 +13781,11 @@ function applyAiFooterToDom(state, content) {
13551
13781
  } else {
13552
13782
  document.body.appendChild(container);
13553
13783
  }
13554
- const root = (0, import_client2.createRoot)(container);
13784
+ const root = (0, import_client3.createRoot)(container);
13555
13785
  const resolveMedia = (ref) => state.media?.[ref] ?? null;
13556
- (0, import_react_dom2.flushSync)(() => {
13786
+ (0, import_react_dom3.flushSync)(() => {
13557
13787
  root.render(
13558
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
13788
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
13559
13789
  AiFooterRenderer,
13560
13790
  {
13561
13791
  tree: state.tree,
@@ -14548,10 +14778,10 @@ var import_react11 = require("react");
14548
14778
  // src/ui/EmailCaptureModal.tsx
14549
14779
  var import_react10 = require("react");
14550
14780
  var import_radix_ui = require("radix-ui");
14551
- var import_jsx_runtime5 = require("react/jsx-runtime");
14781
+ var import_jsx_runtime6 = require("react/jsx-runtime");
14552
14782
  var isValidEmail = (value) => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(value);
14553
14783
  function Spinner() {
14554
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
14784
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
14555
14785
  "svg",
14556
14786
  {
14557
14787
  width: "32",
@@ -14560,9 +14790,9 @@ function Spinner() {
14560
14790
  fill: "none",
14561
14791
  style: { animation: "ohw-spin 0.75s linear infinite" },
14562
14792
  children: [
14563
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("style", { children: `@keyframes ohw-spin { to { transform: rotate(360deg); } }` }),
14564
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("circle", { cx: "16", cy: "16", r: "12", stroke: "#e5e7eb", strokeWidth: "3" }),
14565
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
14793
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("style", { children: `@keyframes ohw-spin { to { transform: rotate(360deg); } }` }),
14794
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "16", cy: "16", r: "12", stroke: "#e5e7eb", strokeWidth: "3" }),
14795
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
14566
14796
  "path",
14567
14797
  {
14568
14798
  d: "M16 4a12 12 0 0 1 12 12",
@@ -14604,10 +14834,10 @@ function EmailCaptureModal({ title, subtitle, onSubmit, onClose }) {
14604
14834
  const handleKeyDown = (e) => {
14605
14835
  if (e.key === "Enter" && !loading) handleSubmit();
14606
14836
  };
14607
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_radix_ui.Dialog.Root, { open: true, onOpenChange: (open) => {
14837
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_radix_ui.Dialog.Root, { open: true, onOpenChange: (open) => {
14608
14838
  if (!open) onClose();
14609
- }, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_radix_ui.Dialog.Portal, { children: [
14610
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
14839
+ }, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_radix_ui.Dialog.Portal, { children: [
14840
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
14611
14841
  import_radix_ui.Dialog.Overlay,
14612
14842
  {
14613
14843
  "data-ohw-scheduling-modal": "",
@@ -14615,16 +14845,16 @@ function EmailCaptureModal({ title, subtitle, onSubmit, onClose }) {
14615
14845
  style: { background: "rgba(0,0,0,0.45)" }
14616
14846
  }
14617
14847
  ),
14618
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
14848
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
14619
14849
  import_radix_ui.Dialog.Content,
14620
14850
  {
14621
14851
  "data-ohw-scheduling-modal": "",
14622
14852
  className: "fixed left-1/2 top-1/2 z-50 w-full -translate-x-1/2 -translate-y-1/2 bg-white rounded-xl shadow-xl outline-none font-body box-border overflow-hidden",
14623
14853
  style: { maxWidth: 400 },
14624
14854
  children: [
14625
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex items-start justify-between gap-3 p-6", children: [
14626
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex flex-col gap-1", children: [
14627
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
14855
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex items-start justify-between gap-3 p-6", children: [
14856
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex flex-col gap-1", children: [
14857
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
14628
14858
  import_radix_ui.Dialog.Title,
14629
14859
  {
14630
14860
  className: "font-body text-xl font-bold m-0 leading-tight",
@@ -14632,7 +14862,7 @@ function EmailCaptureModal({ title, subtitle, onSubmit, onClose }) {
14632
14862
  children: success ? isBook ? "Reservation confirmed!" : "You're on the waitlist!" : title
14633
14863
  }
14634
14864
  ),
14635
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
14865
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
14636
14866
  import_radix_ui.Dialog.Description,
14637
14867
  {
14638
14868
  className: "font-body text-sm m-0",
@@ -14641,31 +14871,31 @@ function EmailCaptureModal({ title, subtitle, onSubmit, onClose }) {
14641
14871
  }
14642
14872
  )
14643
14873
  ] }),
14644
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
14874
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
14645
14875
  import_radix_ui.Dialog.Close,
14646
14876
  {
14647
14877
  className: "shrink-0 w-7 h-7 flex items-center justify-center rounded-full bg-transparent border-none cursor-pointer mt-0.5 absolute top-2.5 right-1.5",
14648
14878
  style: { color: "#6B7280" },
14649
14879
  "aria-label": "Close",
14650
- children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
14651
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
14652
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
14880
+ children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
14881
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
14882
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
14653
14883
  ] })
14654
14884
  }
14655
14885
  )
14656
14886
  ] }),
14657
14887
  !success && (loading ? (
14658
14888
  /* Loading state — full body replaced */
14659
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex flex-col items-center justify-center gap-3 px-7 py-12", children: [
14660
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Spinner, {}),
14661
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("p", { className: "font-body text-sm m-0", style: { color: "#6B7280" }, children: "Please wait" })
14889
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex flex-col items-center justify-center gap-3 px-7 py-12", children: [
14890
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Spinner, {}),
14891
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { className: "font-body text-sm m-0", style: { color: "#6B7280" }, children: "Please wait" })
14662
14892
  ] })
14663
14893
  ) : (
14664
14894
  /* Email form */
14665
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "px-7 pt-2 pb-6", children: [
14666
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex flex-col gap-1.5 mb-8", children: [
14667
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("label", { className: "font-body text-sm font-medium", style: { color: "var(--color-dark,#200C02)" }, children: "Email" }),
14668
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
14895
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "px-7 pt-2 pb-6", children: [
14896
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex flex-col gap-1.5 mb-8", children: [
14897
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("label", { className: "font-body text-sm font-medium", style: { color: "var(--color-dark,#200C02)" }, children: "Email" }),
14898
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
14669
14899
  "input",
14670
14900
  {
14671
14901
  type: "email",
@@ -14685,9 +14915,9 @@ function EmailCaptureModal({ title, subtitle, onSubmit, onClose }) {
14685
14915
  }
14686
14916
  }
14687
14917
  ),
14688
- error && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("p", { className: "font-body text-xs text-red-500 m-0", children: error })
14918
+ error && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { className: "font-body text-xs text-red-500 m-0", children: error })
14689
14919
  ] }),
14690
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "flex justify-end", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
14920
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "flex justify-end", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
14691
14921
  "button",
14692
14922
  {
14693
14923
  onClick: handleSubmit,
@@ -14709,7 +14939,7 @@ function EmailCaptureModal({ title, subtitle, onSubmit, onClose }) {
14709
14939
  }
14710
14940
 
14711
14941
  // src/ui/SchedulingWidget.tsx
14712
- var import_jsx_runtime6 = require("react/jsx-runtime");
14942
+ var import_jsx_runtime7 = require("react/jsx-runtime");
14713
14943
  var API_URL = process.env.NEXT_PUBLIC_FLOWOPS_API_URL ?? "https://flowops-backend-staging-2yfdh7pwpq-as.a.run.app";
14714
14944
  var DAY_ABBR = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"];
14715
14945
  function classRunsOnDate(cls, date, type) {
@@ -14771,8 +15001,8 @@ function EmptyState({ inEditor, insertAfter }) {
14771
15001
  window.parent.postMessage({ type: "ow:scheduling-not-connected", insertAfter }, "*");
14772
15002
  }
14773
15003
  };
14774
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex flex-col items-center justify-center gap-6 p-12 bg-[#FAFAF9] border-2 border-dashed border-[#E7E5E4] rounded-[10px] h-[264px] w-full box-border", children: [
14775
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "w-10 h-10 bg-[#F5F5F4] rounded-[10px] flex items-center justify-center shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
15004
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex flex-col items-center justify-center gap-6 p-12 bg-[#FAFAF9] border-2 border-dashed border-[#E7E5E4] rounded-[10px] h-[264px] w-full box-border", children: [
15005
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "w-10 h-10 bg-[#F5F5F4] rounded-[10px] flex items-center justify-center shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
14776
15006
  "svg",
14777
15007
  {
14778
15008
  width: "20",
@@ -14784,20 +15014,20 @@ function EmptyState({ inEditor, insertAfter }) {
14784
15014
  strokeLinecap: "round",
14785
15015
  strokeLinejoin: "round",
14786
15016
  children: [
14787
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("rect", { x: "3", y: "4", width: "18", height: "18", rx: "2" }),
14788
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("line", { x1: "16", y1: "2", x2: "16", y2: "6" }),
14789
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("line", { x1: "8", y1: "2", x2: "8", y2: "6" }),
14790
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("line", { x1: "3", y1: "10", x2: "21", y2: "10" }),
14791
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("line", { x1: "12", y1: "14", x2: "12", y2: "18" }),
14792
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("line", { x1: "10", y1: "16", x2: "14", y2: "16" })
15017
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("rect", { x: "3", y: "4", width: "18", height: "18", rx: "2" }),
15018
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("line", { x1: "16", y1: "2", x2: "16", y2: "6" }),
15019
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("line", { x1: "8", y1: "2", x2: "8", y2: "6" }),
15020
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("line", { x1: "3", y1: "10", x2: "21", y2: "10" }),
15021
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("line", { x1: "12", y1: "14", x2: "12", y2: "18" }),
15022
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("line", { x1: "10", y1: "16", x2: "14", y2: "16" })
14793
15023
  ]
14794
15024
  }
14795
15025
  ) }),
14796
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex flex-col items-center gap-2", children: [
14797
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { className: "font-body text-lg font-medium text-center text-[#0A0A0A] m-0", children: "No schedule yet" }),
14798
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { className: "font-body text-base font-normal text-center text-(--color-accent,#A89B83) m-0", children: "Add a scheduling widget to get instant bookings." })
15026
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex flex-col items-center gap-2", children: [
15027
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("p", { className: "font-body text-lg font-medium text-center text-[#0A0A0A] m-0", children: "No schedule yet" }),
15028
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("p", { className: "font-body text-base font-normal text-center text-(--color-accent,#A89B83) m-0", children: "Add a scheduling widget to get instant bookings." })
14799
15029
  ] }),
14800
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
15030
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
14801
15031
  "button",
14802
15032
  {
14803
15033
  "data-ohw-bridge": true,
@@ -14814,35 +15044,35 @@ function LoadingSkeleton() {
14814
15044
  backgroundSize: "200% 100%",
14815
15045
  animation: "ohw-shimmer 1.5s infinite"
14816
15046
  };
14817
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "w-full flex flex-col gap-10", children: [
14818
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("style", { children: `@keyframes ohw-shimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}` }),
14819
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "flex h-[70px] items-stretch", children: Array.from({ length: 7 }).map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex-1 flex flex-col justify-between items-center px-1", children: [
14820
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { style: { ...shimmer, width: "32px", height: "14px", borderRadius: "4px" } }),
14821
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { style: { ...shimmer, width: "40px", height: "40px", borderRadius: "50%" } })
15047
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "w-full flex flex-col gap-10", children: [
15048
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("style", { children: `@keyframes ohw-shimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}` }),
15049
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "flex h-[70px] items-stretch", children: Array.from({ length: 7 }).map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex-1 flex flex-col justify-between items-center px-1", children: [
15050
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { style: { ...shimmer, width: "32px", height: "14px", borderRadius: "4px" } }),
15051
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { style: { ...shimmer, width: "40px", height: "40px", borderRadius: "50%" } })
14822
15052
  ] }, i)) }),
14823
- [0, 1, 2].map((i) => /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { children: [
14824
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex gap-4 py-4 sm:hidden", children: [
14825
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex flex-col gap-2 shrink-0", children: [
14826
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { style: { ...shimmer, width: "100px", height: "16px", borderRadius: "4px" } }),
14827
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { style: { ...shimmer, width: "52px", height: "20px", borderRadius: "999px" } }),
14828
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { style: { ...shimmer, width: "60px", height: "14px", borderRadius: "4px" } })
15053
+ [0, 1, 2].map((i) => /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { children: [
15054
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex gap-4 py-4 sm:hidden", children: [
15055
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex flex-col gap-2 shrink-0", children: [
15056
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { style: { ...shimmer, width: "100px", height: "16px", borderRadius: "4px" } }),
15057
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { style: { ...shimmer, width: "52px", height: "20px", borderRadius: "999px" } }),
15058
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { style: { ...shimmer, width: "60px", height: "14px", borderRadius: "4px" } })
14829
15059
  ] }),
14830
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex flex-1 flex-col gap-2", children: [
14831
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { style: { ...shimmer, width: "75%", height: "16px", borderRadius: "4px" } }),
14832
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { style: { ...shimmer, width: "50%", height: "14px", borderRadius: "4px" } }),
14833
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { style: { ...shimmer, width: "100%", height: "44px", borderRadius: "8px" } })
15060
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex flex-1 flex-col gap-2", children: [
15061
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { style: { ...shimmer, width: "75%", height: "16px", borderRadius: "4px" } }),
15062
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { style: { ...shimmer, width: "50%", height: "14px", borderRadius: "4px" } }),
15063
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { style: { ...shimmer, width: "100%", height: "44px", borderRadius: "8px" } })
14834
15064
  ] })
14835
15065
  ] }),
14836
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "hidden sm:flex items-center gap-[60px] py-4", children: [
14837
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { style: { ...shimmer, width: "120px", height: "16px", borderRadius: "4px", flexShrink: 0 } }),
14838
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex-1 flex flex-col gap-2", children: [
14839
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { style: { ...shimmer, width: "55%", height: "16px", borderRadius: "4px" } }),
14840
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { style: { ...shimmer, width: "38%", height: "14px", borderRadius: "4px" } })
15066
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "hidden sm:flex items-center gap-[60px] py-4", children: [
15067
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { style: { ...shimmer, width: "120px", height: "16px", borderRadius: "4px", flexShrink: 0 } }),
15068
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex-1 flex flex-col gap-2", children: [
15069
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { style: { ...shimmer, width: "55%", height: "16px", borderRadius: "4px" } }),
15070
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { style: { ...shimmer, width: "38%", height: "14px", borderRadius: "4px" } })
14841
15071
  ] }),
14842
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { style: { ...shimmer, width: "56px", height: "32px", borderRadius: "4px", flexShrink: 0 } }),
14843
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { style: { ...shimmer, width: "200px", height: "44px", borderRadius: "8px", flexShrink: 0 } })
15072
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { style: { ...shimmer, width: "56px", height: "32px", borderRadius: "4px", flexShrink: 0 } }),
15073
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { style: { ...shimmer, width: "200px", height: "44px", borderRadius: "8px", flexShrink: 0 } })
14844
15074
  ] }),
14845
- i < 2 && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "h-px bg-black/20" })
15075
+ i < 2 && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "h-px bg-black/20" })
14846
15076
  ] }, i))
14847
15077
  ] });
14848
15078
  }
@@ -14909,43 +15139,43 @@ function ScheduleView({ schedule, dates, selectedIdx, onSelectDate, onOpenModal
14909
15139
  () => (schedule.classes ?? []).filter((c) => selectedDate && classRunsOnDate(c, selectedDate, schedule.type)),
14910
15140
  [schedule, selectedDate]
14911
15141
  );
14912
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "w-full flex flex-col gap-10", children: [
14913
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "relative w-full", children: [
14914
- canScrollLeft && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
15142
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "w-full flex flex-col gap-10", children: [
15143
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "relative w-full", children: [
15144
+ canScrollLeft && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
14915
15145
  "button",
14916
15146
  {
14917
15147
  onClick: () => scroll("left"),
14918
15148
  className: "hidden sm:flex absolute left-0 top-1/2 -translate-y-1/2 z-10 w-8 h-8 items-center justify-center rounded-full border-none cursor-pointer",
14919
15149
  style: { background: "var(--color-light,#FEFFF0)", boxShadow: "0 1px 4px rgba(0,0,0,0.15)" },
14920
15150
  "aria-label": "Scroll left",
14921
- children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "var(--color-dark,#200C02)", strokeWidth: "2.5", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("polyline", { points: "15 18 9 12 15 6" }) })
15151
+ children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "var(--color-dark,#200C02)", strokeWidth: "2.5", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("polyline", { points: "15 18 9 12 15 6" }) })
14922
15152
  }
14923
15153
  ),
14924
- canScrollRight && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
15154
+ canScrollRight && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
14925
15155
  "button",
14926
15156
  {
14927
15157
  onClick: () => scroll("right"),
14928
15158
  className: "hidden sm:flex absolute right-0 top-1/2 -translate-y-1/2 z-10 w-8 h-8 items-center justify-center rounded-full border-none cursor-pointer",
14929
15159
  style: { background: "var(--color-light,#FEFFF0)", boxShadow: "0 1px 4px rgba(0,0,0,0.15)" },
14930
15160
  "aria-label": "Scroll right",
14931
- children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "var(--color-dark,#200C02)", strokeWidth: "2.5", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("polyline", { points: "9 18 15 12 9 6" }) })
15161
+ children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "var(--color-dark,#200C02)", strokeWidth: "2.5", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("polyline", { points: "9 18 15 12 9 6" }) })
14932
15162
  }
14933
15163
  ),
14934
- canScrollLeft && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
15164
+ canScrollLeft && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
14935
15165
  "div",
14936
15166
  {
14937
15167
  className: "sm:hidden absolute left-0 top-0 bottom-0 w-10 z-10 pointer-events-none",
14938
15168
  style: { background: "linear-gradient(to right, var(--color-light,#FEFFF0), transparent)" }
14939
15169
  }
14940
15170
  ),
14941
- canScrollRight && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
15171
+ canScrollRight && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
14942
15172
  "div",
14943
15173
  {
14944
15174
  className: "sm:hidden absolute right-0 top-0 bottom-0 w-10 z-10 pointer-events-none",
14945
15175
  style: { background: "linear-gradient(to left, var(--color-light,#FEFFF0), transparent)" }
14946
15176
  }
14947
15177
  ),
14948
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
15178
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
14949
15179
  "div",
14950
15180
  {
14951
15181
  ref: scrollRef,
@@ -14955,24 +15185,24 @@ function ScheduleView({ schedule, dates, selectedIdx, onSelectDate, onOpenModal
14955
15185
  onMouseMove: onDragMove,
14956
15186
  onMouseUp: onDragEnd,
14957
15187
  onMouseLeave: onDragEnd,
14958
- children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "flex", style: { width: `max(100%, ${dates.length * 60}px)` }, children: dates.map((date, i) => {
15188
+ children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "flex", style: { width: `max(100%, ${dates.length * 60}px)` }, children: dates.map((date, i) => {
14959
15189
  const isToday = date.getTime() === todayMs;
14960
15190
  const isSelected = i === selectedIdx;
14961
15191
  const clickable = datesWithClasses.has(i);
14962
15192
  const label = isToday ? "TODAY" : DAY_ABBR[date.getDay()];
14963
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
15193
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
14964
15194
  "div",
14965
15195
  {
14966
15196
  onClick: () => clickable && onSelectDate(i),
14967
15197
  className: `flex-1 h-[70px] flex flex-col justify-between items-center ${clickable ? "cursor-pointer opacity-100" : "cursor-default opacity-50"}`,
14968
15198
  children: [
14969
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "font-body text-base font-normal text-center text-(--color-dark,#200C02)", children: label }),
14970
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
15199
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "font-body text-base font-normal text-center text-(--color-dark,#200C02)", children: label }),
15200
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
14971
15201
  "div",
14972
15202
  {
14973
15203
  className: "w-10 h-10 rounded-full flex items-center justify-center",
14974
15204
  style: { background: isSelected ? "var(--color-primary, #3D312B)" : "transparent" },
14975
- children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
15205
+ children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
14976
15206
  "span",
14977
15207
  {
14978
15208
  className: "font-body text-xl font-bold text-center tracking-display-tight",
@@ -14990,17 +15220,17 @@ function ScheduleView({ schedule, dates, selectedIdx, onSelectDate, onOpenModal
14990
15220
  }
14991
15221
  )
14992
15222
  ] }),
14993
- selectedClasses.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { className: "font-body text-base text-(--color-accent,#A89B83) text-center py-8 m-0", children: "No classes scheduled for this day." }) : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "flex flex-col", children: selectedClasses.map((cls, i) => {
15223
+ selectedClasses.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("p", { className: "font-body text-base text-(--color-accent,#A89B83) text-center py-8 m-0", children: "No classes scheduled for this day." }) : /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "flex flex-col", children: selectedClasses.map((cls, i) => {
14994
15224
  const booked = getBookingsOnDate(cls, selectedDate);
14995
15225
  const available = cls.maxParticipants - booked;
14996
15226
  const isFull = available <= 0;
14997
15227
  const isPrivate = cls.maxParticipants === 1;
14998
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { children: [
14999
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex gap-4 py-4 sm:items-center sm:gap-[60px] box-border", children: [
15000
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex flex-col gap-2 shrink-0 sm:contents", children: [
15001
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex flex-col gap-2 sm:w-[120px] sm:shrink-0", children: [
15002
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "font-body text-base font-bold text-(--color-dark,#200C02) block", children: formatClassTime(cls) }),
15003
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
15228
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { children: [
15229
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex gap-4 py-4 sm:items-center sm:gap-[60px] box-border", children: [
15230
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex flex-col gap-2 shrink-0 sm:contents", children: [
15231
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex flex-col gap-2 sm:w-[120px] sm:shrink-0", children: [
15232
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "font-body text-base font-bold text-(--color-dark,#200C02) block", children: formatClassTime(cls) }),
15233
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
15004
15234
  "span",
15005
15235
  {
15006
15236
  className: "inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium w-fit",
@@ -15009,20 +15239,20 @@ function ScheduleView({ schedule, dates, selectedIdx, onSelectDate, onOpenModal
15009
15239
  }
15010
15240
  )
15011
15241
  ] }),
15012
- cls.showAvailability !== false && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "sm:hidden flex flex-col gap-px", children: isFull ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "font-body text-sm text-(--color-dark,#200C02) opacity-80", children: "Full" }) : /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
15013
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("span", { className: "font-body text-sm text-(--color-dark,#200C02) opacity-80", children: [
15242
+ cls.showAvailability !== false && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "sm:hidden flex flex-col gap-px", children: isFull ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "font-body text-sm text-(--color-dark,#200C02) opacity-80", children: "Full" }) : /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_jsx_runtime7.Fragment, { children: [
15243
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("span", { className: "font-body text-sm text-(--color-dark,#200C02) opacity-80", children: [
15014
15244
  available,
15015
15245
  "/",
15016
15246
  cls.maxParticipants
15017
15247
  ] }),
15018
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "font-body text-sm text-(--color-dark,#200C02) opacity-80", children: "available" })
15248
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "font-body text-sm text-(--color-dark,#200C02) opacity-80", children: "available" })
15019
15249
  ] }) })
15020
15250
  ] }),
15021
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex flex-1 flex-col gap-2 min-w-0 sm:contents", children: [
15022
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex-1 flex flex-col gap-2 min-w-0", children: [
15023
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "font-body text-base font-bold text-(--color-dark,#200C02) block truncate", children: cls.name }),
15024
- cls.hostName && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "font-body text-base font-normal text-(--color-dark,#200C02) opacity-80 block truncate", children: cls.hostName }),
15025
- cls.description && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
15251
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex flex-1 flex-col gap-2 min-w-0 sm:contents", children: [
15252
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex-1 flex flex-col gap-2 min-w-0", children: [
15253
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "font-body text-base font-bold text-(--color-dark,#200C02) block truncate", children: cls.name }),
15254
+ cls.hostName && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "font-body text-base font-normal text-(--color-dark,#200C02) opacity-80 block truncate", children: cls.hostName }),
15255
+ cls.description && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
15026
15256
  "span",
15027
15257
  {
15028
15258
  className: "font-body text-base font-normal text-(--color-dark,#200C02) opacity-80 block",
@@ -15031,15 +15261,15 @@ function ScheduleView({ schedule, dates, selectedIdx, onSelectDate, onOpenModal
15031
15261
  }
15032
15262
  )
15033
15263
  ] }),
15034
- cls.showAvailability !== false && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "hidden sm:flex w-14 shrink-0 flex-col gap-px", children: isFull ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "font-body text-sm text-(--color-dark,#200C02) opacity-80", children: "Full" }) : /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
15035
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("span", { className: "font-body text-sm text-(--color-dark,#200C02) opacity-80", children: [
15264
+ cls.showAvailability !== false && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "hidden sm:flex w-14 shrink-0 flex-col gap-px", children: isFull ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "font-body text-sm text-(--color-dark,#200C02) opacity-80", children: "Full" }) : /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_jsx_runtime7.Fragment, { children: [
15265
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("span", { className: "font-body text-sm text-(--color-dark,#200C02) opacity-80", children: [
15036
15266
  available,
15037
15267
  "/",
15038
15268
  cls.maxParticipants
15039
15269
  ] }),
15040
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "font-body text-sm text-(--color-dark,#200C02) opacity-80", children: "available" })
15270
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "font-body text-sm text-(--color-dark,#200C02) opacity-80", children: "available" })
15041
15271
  ] }) }),
15042
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
15272
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
15043
15273
  "button",
15044
15274
  {
15045
15275
  className: "w-full sm:w-[200px] sm:shrink-0 px-5 py-[10px] flex items-center justify-center rounded-lg font-body text-base font-bold cursor-pointer box-border",
@@ -15061,13 +15291,13 @@ function ScheduleView({ schedule, dates, selectedIdx, onSelectDate, onOpenModal
15061
15291
  )
15062
15292
  ] })
15063
15293
  ] }),
15064
- i < selectedClasses.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "h-px bg-black/20" })
15294
+ i < selectedClasses.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "h-px bg-black/20" })
15065
15295
  ] }, cls.id ?? i);
15066
15296
  }) })
15067
15297
  ] });
15068
15298
  }
15069
15299
  function CalendarFoldIcon() {
15070
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
15300
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
15071
15301
  "svg",
15072
15302
  {
15073
15303
  width: "16",
@@ -15080,11 +15310,11 @@ function CalendarFoldIcon() {
15080
15310
  strokeLinejoin: "round",
15081
15311
  style: { flexShrink: 0 },
15082
15312
  children: [
15083
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M8 2v4" }),
15084
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M16 2v4" }),
15085
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M21 17V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h11Z" }),
15086
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M3 10h18" }),
15087
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M15 22v-4a2 2 0 0 1 2-2h4" })
15313
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("path", { d: "M8 2v4" }),
15314
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("path", { d: "M16 2v4" }),
15315
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("path", { d: "M21 17V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h11Z" }),
15316
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("path", { d: "M3 10h18" }),
15317
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("path", { d: "M15 22v-4a2 2 0 0 1 2-2h4" })
15088
15318
  ]
15089
15319
  }
15090
15320
  );
@@ -15269,9 +15499,9 @@ function SchedulingWidget({ notifyOnConnect = false, initialScheduleId, insertAf
15269
15499
  };
15270
15500
  const sectionId = `scheduling-${insertAfter}`;
15271
15501
  if (!inEditor && !loading && !schedule) {
15272
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("section", { "data-ohw-section": sectionId, "data-ohw-scheduling-anchor": insertAfter, style: { display: "none" } });
15502
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("section", { "data-ohw-section": sectionId, "data-ohw-scheduling-anchor": insertAfter, style: { display: "none" } });
15273
15503
  }
15274
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
15504
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
15275
15505
  "section",
15276
15506
  {
15277
15507
  "data-ohw-section": sectionId,
@@ -15280,15 +15510,15 @@ function SchedulingWidget({ notifyOnConnect = false, initialScheduleId, insertAf
15280
15510
  onMouseEnter: () => inEditor && setIsHovered(true),
15281
15511
  onMouseLeave: () => setIsHovered(false),
15282
15512
  children: [
15283
- inEditor && isHovered && !!schedule && /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
15513
+ inEditor && isHovered && !!schedule && /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
15284
15514
  "div",
15285
15515
  {
15286
15516
  className: "absolute inset-0 z-10 pointer-events-auto cursor-pointer",
15287
15517
  onClick: handleReplaceSchedule,
15288
15518
  children: [
15289
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "absolute inset-0", style: { background: "#0885FE", opacity: 0.18 } }),
15290
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "absolute inset-0", style: { boxShadow: "inset 0 0 0 1.5px #0885FE" } }),
15291
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "absolute inset-0 flex items-center justify-center pointer-events-none", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
15519
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "absolute inset-0", style: { background: "#0885FE", opacity: 0.18 } }),
15520
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "absolute inset-0", style: { boxShadow: "inset 0 0 0 1.5px #0885FE" } }),
15521
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "absolute inset-0 flex items-center justify-center pointer-events-none", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
15292
15522
  "div",
15293
15523
  {
15294
15524
  className: "bg-white border border-[#E7E5E4] rounded-md px-3 py-1.5 flex items-center gap-1.5",
@@ -15300,7 +15530,7 @@ function SchedulingWidget({ notifyOnConnect = false, initialScheduleId, insertAf
15300
15530
  color: "#0C0A09"
15301
15531
  },
15302
15532
  children: [
15303
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(CalendarFoldIcon, {}),
15533
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(CalendarFoldIcon, {}),
15304
15534
  "Replace schedule"
15305
15535
  ]
15306
15536
  }
@@ -15308,9 +15538,9 @@ function SchedulingWidget({ notifyOnConnect = false, initialScheduleId, insertAf
15308
15538
  ]
15309
15539
  }
15310
15540
  ),
15311
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "max-w-[1280px] mx-auto flex flex-col items-center gap-16", children: [
15312
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex flex-col items-center gap-4", children: [
15313
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
15541
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "max-w-[1280px] mx-auto flex flex-col items-center gap-16", children: [
15542
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex flex-col items-center gap-4", children: [
15543
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
15314
15544
  "h2",
15315
15545
  {
15316
15546
  className: "font-display text-center m-0 text-(--color-dark,#200C02)",
@@ -15323,11 +15553,11 @@ function SchedulingWidget({ notifyOnConnect = false, initialScheduleId, insertAf
15323
15553
  children: schedule?.name ?? "Book an appointment"
15324
15554
  }
15325
15555
  ),
15326
- schedule?.description && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { className: "font-body text-body text-center m-0 text-(--color-accent,#A89B83)", children: schedule.description })
15556
+ schedule?.description && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("p", { className: "font-body text-body text-center m-0 text-(--color-accent,#A89B83)", children: schedule.description })
15327
15557
  ] }),
15328
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "w-full flex flex-col items-end gap-3", children: [
15329
- timezoneLabel && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "font-body text-sm font-normal text-(--color-accent,#A89B83)", children: timezoneLabel }),
15330
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "w-full p-0 sm:p-10 box-border", children: loading ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(LoadingSkeleton, {}) : !schedule ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(EmptyState, { inEditor, insertAfter }) : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
15558
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "w-full flex flex-col items-end gap-3", children: [
15559
+ timezoneLabel && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "font-body text-sm font-normal text-(--color-accent,#A89B83)", children: timezoneLabel }),
15560
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "w-full p-0 sm:p-10 box-border", children: loading ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(LoadingSkeleton, {}) : !schedule ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(EmptyState, { inEditor, insertAfter }) : /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
15331
15561
  ScheduleView,
15332
15562
  {
15333
15563
  schedule,
@@ -15339,7 +15569,7 @@ function SchedulingWidget({ notifyOnConnect = false, initialScheduleId, insertAf
15339
15569
  ) })
15340
15570
  ] })
15341
15571
  ] }),
15342
- modalState && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
15572
+ modalState && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
15343
15573
  EmailCaptureModal,
15344
15574
  {
15345
15575
  title: modalState.mode === "book" ? "Confirm your spot" : "Leave your email",
@@ -15354,7 +15584,7 @@ function SchedulingWidget({ notifyOnConnect = false, initialScheduleId, insertAf
15354
15584
  }
15355
15585
 
15356
15586
  // src/ui/OhwLoaderSurface.tsx
15357
- var import_jsx_runtime7 = require("react/jsx-runtime");
15587
+ var import_jsx_runtime8 = require("react/jsx-runtime");
15358
15588
  var OHW_LOADER_STYLE = {
15359
15589
  position: "fixed",
15360
15590
  inset: 0,
@@ -15366,9 +15596,9 @@ var OHW_LOADER_STYLE = {
15366
15596
  };
15367
15597
  var OHW_LOADER_SPIN_KEYFRAMES = "@keyframes ohw-loader-spin{to{transform:rotate(360deg)}}";
15368
15598
  function OhwLoaderSpinner() {
15369
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_jsx_runtime7.Fragment, { children: [
15370
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("style", { suppressHydrationWarning: true, dangerouslySetInnerHTML: { __html: OHW_LOADER_SPIN_KEYFRAMES } }),
15371
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
15599
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
15600
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("style", { suppressHydrationWarning: true, dangerouslySetInnerHTML: { __html: OHW_LOADER_SPIN_KEYFRAMES } }),
15601
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
15372
15602
  "svg",
15373
15603
  {
15374
15604
  width: "28",
@@ -15378,8 +15608,8 @@ function OhwLoaderSpinner() {
15378
15608
  "aria-hidden": true,
15379
15609
  style: { animation: "ohw-loader-spin 0.7s linear infinite", transformOrigin: "center" },
15380
15610
  children: [
15381
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("circle", { cx: "14", cy: "14", r: "11", style: { stroke: "var(--brand-border, #E7E5E4)" }, strokeWidth: "3" }),
15382
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
15611
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("circle", { cx: "14", cy: "14", r: "11", style: { stroke: "var(--brand-border, #E7E5E4)" }, strokeWidth: "3" }),
15612
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
15383
15613
  "circle",
15384
15614
  {
15385
15615
  cx: "14",
@@ -15398,9 +15628,9 @@ function OhwLoaderSpinner() {
15398
15628
  }
15399
15629
  var OHW_LOADER_PREHYDRATE_SCRIPT = `(function(){try{var fromGlobal=typeof window!=="undefined"&&window.__OHW_SUBDOMAIN__?String(window.__OHW_SUBDOMAIN__):"";var p=location.hostname.split(".");var fromHost=location.hostname.endsWith(".ohhwells.site")&&p[0]&&p[0]!=="www"?p[0]:"";var fromQuery=new URLSearchParams(location.search).get("subdomain")||"";var fromCookie=(document.cookie.match(/(?:^|; )ohw-subdomain=([^;]*)/)||[])[1];fromCookie=fromCookie?decodeURIComponent(fromCookie):"";if(!fromGlobal&&!fromHost&&!fromQuery&&!fromCookie)return;var e=document.getElementById("ohw-loader");if(e)e.style.display="flex"}catch(e){}})();`;
15400
15630
  function OhwLoaderSurface() {
15401
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_jsx_runtime7.Fragment, { children: [
15402
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { id: "ohw-loader", suppressHydrationWarning: true, style: { ...OHW_LOADER_STYLE, display: "none" }, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(OhwLoaderSpinner, {}) }),
15403
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
15631
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
15632
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { id: "ohw-loader", suppressHydrationWarning: true, style: { ...OHW_LOADER_STYLE, display: "none" }, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(OhwLoaderSpinner, {}) }),
15633
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
15404
15634
  "script",
15405
15635
  {
15406
15636
  suppressHydrationWarning: true,
@@ -18731,7 +18961,7 @@ var cva = (base, config) => (props) => {
18731
18961
 
18732
18962
  // src/ui/toggle.tsx
18733
18963
  var import_radix_ui2 = require("radix-ui");
18734
- var import_jsx_runtime8 = require("react/jsx-runtime");
18964
+ var import_jsx_runtime9 = require("react/jsx-runtime");
18735
18965
  var toggleVariants = cva(
18736
18966
  "inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-[color,box-shadow] outline-none hover:bg-muted hover:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=on]:bg-bridge-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
18737
18967
  {
@@ -18758,7 +18988,7 @@ function Toggle({
18758
18988
  size,
18759
18989
  ...props
18760
18990
  }) {
18761
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
18991
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
18762
18992
  import_radix_ui2.Toggle.Root,
18763
18993
  {
18764
18994
  "data-slot": "toggle",
@@ -18769,7 +18999,7 @@ function Toggle({
18769
18999
  }
18770
19000
 
18771
19001
  // src/ui/toggle-group.tsx
18772
- var import_jsx_runtime9 = require("react/jsx-runtime");
19002
+ var import_jsx_runtime10 = require("react/jsx-runtime");
18773
19003
  var ToggleGroupContext = React4.createContext({
18774
19004
  value: "",
18775
19005
  onValueChange: () => {
@@ -18782,13 +19012,13 @@ function ToggleGroup({
18782
19012
  children,
18783
19013
  ...props
18784
19014
  }) {
18785
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
19015
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
18786
19016
  "div",
18787
19017
  {
18788
19018
  role: "group",
18789
19019
  className: cn("flex items-center gap-1 p-1 bg-muted rounded-md", className),
18790
19020
  ...props,
18791
- children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(ToggleGroupContext.Provider, { value: { value, onValueChange }, children })
19021
+ children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(ToggleGroupContext.Provider, { value: { value, onValueChange }, children })
18792
19022
  }
18793
19023
  );
18794
19024
  }
@@ -18799,7 +19029,7 @@ function ToggleGroupItem({
18799
19029
  ...props
18800
19030
  }) {
18801
19031
  const { value: groupValue, onValueChange } = React4.useContext(ToggleGroupContext);
18802
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
19032
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
18803
19033
  Toggle,
18804
19034
  {
18805
19035
  pressed: groupValue === value,
@@ -18821,10 +19051,10 @@ function ToggleGroupItem({
18821
19051
  // src/ui/drag-handle.tsx
18822
19052
  var React5 = __toESM(require("react"), 1);
18823
19053
  var import_lucide_react3 = require("lucide-react");
18824
- var import_jsx_runtime10 = require("react/jsx-runtime");
19054
+ var import_jsx_runtime11 = require("react/jsx-runtime");
18825
19055
  var DragHandle = React5.forwardRef(
18826
19056
  ({ className, type = "button", ...props }, ref) => {
18827
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
19057
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
18828
19058
  "button",
18829
19059
  {
18830
19060
  ref,
@@ -18839,7 +19069,7 @@ var DragHandle = React5.forwardRef(
18839
19069
  className
18840
19070
  ),
18841
19071
  ...props,
18842
- children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_lucide_react3.GripVertical, { className: "size-4 shrink-0", "aria-hidden": "true" })
19072
+ children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_lucide_react3.GripVertical, { className: "size-4 shrink-0", "aria-hidden": "true" })
18843
19073
  }
18844
19074
  );
18845
19075
  }
@@ -18848,8 +19078,8 @@ DragHandle.displayName = "DragHandle";
18848
19078
 
18849
19079
  // src/ui/custom-toolbar.tsx
18850
19080
  var React6 = __toESM(require("react"), 1);
18851
- var import_jsx_runtime11 = require("react/jsx-runtime");
18852
- var CustomToolbar = React6.forwardRef(({ className, onMouseDown, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
19081
+ var import_jsx_runtime12 = require("react/jsx-runtime");
19082
+ var CustomToolbar = React6.forwardRef(({ className, onMouseDown, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
18853
19083
  "div",
18854
19084
  {
18855
19085
  ref,
@@ -18868,7 +19098,7 @@ var CustomToolbar = React6.forwardRef(({ className, onMouseDown, ...props }, ref
18868
19098
  ));
18869
19099
  CustomToolbar.displayName = "CustomToolbar";
18870
19100
  function CustomToolbarDivider({ className, ...props }) {
18871
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
19101
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
18872
19102
  "span",
18873
19103
  {
18874
19104
  "aria-hidden": true,
@@ -18878,7 +19108,7 @@ function CustomToolbarDivider({ className, ...props }) {
18878
19108
  );
18879
19109
  }
18880
19110
  var CustomToolbarButton = React6.forwardRef(
18881
- ({ className, active = false, type = "button", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
19111
+ ({ className, active = false, type = "button", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
18882
19112
  "button",
18883
19113
  {
18884
19114
  ref,
@@ -18901,17 +19131,17 @@ var import_lucide_react4 = require("lucide-react");
18901
19131
  // src/ui/dropdown-menu.tsx
18902
19132
  var React7 = __toESM(require("react"), 1);
18903
19133
  var import_radix_ui3 = require("radix-ui");
18904
- var import_jsx_runtime12 = require("react/jsx-runtime");
19134
+ var import_jsx_runtime13 = require("react/jsx-runtime");
18905
19135
  function DropdownMenu({ ...props }) {
18906
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_radix_ui3.DropdownMenu.Root, { "data-slot": "dropdown-menu", ...props });
19136
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_radix_ui3.DropdownMenu.Root, { "data-slot": "dropdown-menu", ...props });
18907
19137
  }
18908
- var DropdownMenuTrigger = React7.forwardRef((props, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_radix_ui3.DropdownMenu.Trigger, { ref, "data-slot": "dropdown-menu-trigger", ...props }));
19138
+ var DropdownMenuTrigger = React7.forwardRef((props, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_radix_ui3.DropdownMenu.Trigger, { ref, "data-slot": "dropdown-menu-trigger", ...props }));
18909
19139
  DropdownMenuTrigger.displayName = "DropdownMenuTrigger";
18910
19140
  function DropdownMenuGroup({
18911
19141
  className,
18912
19142
  ...props
18913
19143
  }) {
18914
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
19144
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
18915
19145
  import_radix_ui3.DropdownMenu.Group,
18916
19146
  {
18917
19147
  "data-slot": "dropdown-menu-group",
@@ -18925,7 +19155,7 @@ function DropdownMenuContent({
18925
19155
  sideOffset = 6,
18926
19156
  ...props
18927
19157
  }) {
18928
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_radix_ui3.DropdownMenu.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
19158
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_radix_ui3.DropdownMenu.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
18929
19159
  import_radix_ui3.DropdownMenu.Content,
18930
19160
  {
18931
19161
  "data-slot": "dropdown-menu-content",
@@ -18949,7 +19179,7 @@ function DropdownMenuItem({
18949
19179
  variant = "default",
18950
19180
  ...props
18951
19181
  }) {
18952
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
19182
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
18953
19183
  import_radix_ui3.DropdownMenu.Item,
18954
19184
  {
18955
19185
  "data-slot": "dropdown-menu-item",
@@ -18979,7 +19209,7 @@ function DropdownMenuSeparator({
18979
19209
  className,
18980
19210
  ...props
18981
19211
  }) {
18982
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
19212
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
18983
19213
  import_radix_ui3.DropdownMenu.Separator,
18984
19214
  {
18985
19215
  "data-slot": "dropdown-menu-separator",
@@ -18991,18 +19221,18 @@ function DropdownMenuSeparator({
18991
19221
 
18992
19222
  // src/ui/tooltip.tsx
18993
19223
  var import_radix_ui4 = require("radix-ui");
18994
- var import_jsx_runtime13 = require("react/jsx-runtime");
19224
+ var import_jsx_runtime14 = require("react/jsx-runtime");
18995
19225
  function TooltipProvider({
18996
19226
  delayDuration = 0,
18997
19227
  ...props
18998
19228
  }) {
18999
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_radix_ui4.Tooltip.Provider, { "data-slot": "tooltip-provider", delayDuration, ...props });
19229
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_radix_ui4.Tooltip.Provider, { "data-slot": "tooltip-provider", delayDuration, ...props });
19000
19230
  }
19001
19231
  function Tooltip({ ...props }) {
19002
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_radix_ui4.Tooltip.Root, { "data-slot": "tooltip", ...props });
19232
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_radix_ui4.Tooltip.Root, { "data-slot": "tooltip", ...props });
19003
19233
  }
19004
19234
  function TooltipTrigger({ ...props }) {
19005
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_radix_ui4.Tooltip.Trigger, { "data-slot": "tooltip-trigger", ...props });
19235
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_radix_ui4.Tooltip.Trigger, { "data-slot": "tooltip-trigger", ...props });
19006
19236
  }
19007
19237
  var arrowClassBySide = {
19008
19238
  top: "before:bottom-0 before:left-1/2 before:-translate-x-1/2 before:translate-y-1/2",
@@ -19019,7 +19249,7 @@ function TooltipContent({
19019
19249
  ...props
19020
19250
  }) {
19021
19251
  const resolvedSide = side ?? "bottom";
19022
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_radix_ui4.Tooltip.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
19252
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_radix_ui4.Tooltip.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
19023
19253
  import_radix_ui4.Tooltip.Content,
19024
19254
  {
19025
19255
  "data-slot": "tooltip-content",
@@ -19042,7 +19272,7 @@ function TooltipContent({
19042
19272
  }
19043
19273
 
19044
19274
  // src/ui/item-action-toolbar.tsx
19045
- var import_jsx_runtime14 = require("react/jsx-runtime");
19275
+ var import_jsx_runtime15 = require("react/jsx-runtime");
19046
19276
  function ToolbarActionTooltip({
19047
19277
  label,
19048
19278
  side = "bottom",
@@ -19050,10 +19280,10 @@ function ToolbarActionTooltip({
19050
19280
  buttonProps,
19051
19281
  children
19052
19282
  }) {
19053
- const button = /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(CustomToolbarButton, { type: "button", "aria-label": label, disabled, ...buttonProps, children });
19054
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(Tooltip, { children: [
19055
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(TooltipTrigger, { asChild: true, children: disabled ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "inline-flex", children: button }) : button }),
19056
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(TooltipContent, { side, sideOffset: 9, children: label })
19283
+ const button = /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(CustomToolbarButton, { type: "button", "aria-label": label, disabled, ...buttonProps, children });
19284
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(Tooltip, { children: [
19285
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(TooltipTrigger, { asChild: true, children: disabled ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "inline-flex", children: button }) : button }),
19286
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(TooltipContent, { side, sideOffset: 9, children: label })
19057
19287
  ] });
19058
19288
  }
19059
19289
  function ItemActionToolbar({
@@ -19084,9 +19314,9 @@ function ItemActionToolbar({
19084
19314
  const showDropdownToggle = dropdownOpen !== null && dropdownOpen !== void 0;
19085
19315
  const showHeadingToggle = headingVisible !== null && headingVisible !== void 0;
19086
19316
  const headingTooltip = headingVisible ? "Hide heading" : "Show heading";
19087
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(CustomToolbar, { children: [
19088
- showDropdownToggle ? /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(import_jsx_runtime14.Fragment, { children: [
19089
- /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
19317
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(CustomToolbar, { children: [
19318
+ showDropdownToggle ? /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(import_jsx_runtime15.Fragment, { children: [
19319
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
19090
19320
  ToggleGroup,
19091
19321
  {
19092
19322
  value: dropdownOpen ? "open" : "closed",
@@ -19098,7 +19328,7 @@ function ItemActionToolbar({
19098
19328
  e.stopPropagation();
19099
19329
  },
19100
19330
  children: [
19101
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
19331
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
19102
19332
  ToggleGroupItem,
19103
19333
  {
19104
19334
  value: "closed",
@@ -19113,7 +19343,7 @@ function ItemActionToolbar({
19113
19343
  children: "Closed"
19114
19344
  }
19115
19345
  ),
19116
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
19346
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
19117
19347
  ToggleGroupItem,
19118
19348
  {
19119
19349
  value: "open",
@@ -19131,9 +19361,9 @@ function ItemActionToolbar({
19131
19361
  ]
19132
19362
  }
19133
19363
  ),
19134
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(CustomToolbarDivider, {})
19364
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(CustomToolbarDivider, {})
19135
19365
  ] }) : null,
19136
- showEditLink ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
19366
+ showEditLink ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
19137
19367
  ToolbarActionTooltip,
19138
19368
  {
19139
19369
  label: "Edit link",
@@ -19151,10 +19381,10 @@ function ItemActionToolbar({
19151
19381
  e.stopPropagation();
19152
19382
  }
19153
19383
  },
19154
- children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_lucide_react4.Link, { className: "size-4 shrink-0", "aria-hidden": true })
19384
+ children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_lucide_react4.Link, { className: "size-4 shrink-0", "aria-hidden": true })
19155
19385
  }
19156
19386
  ) : null,
19157
- showStyle ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
19387
+ showStyle ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
19158
19388
  ToolbarActionTooltip,
19159
19389
  {
19160
19390
  label: "Style",
@@ -19175,10 +19405,10 @@ function ItemActionToolbar({
19175
19405
  e.stopPropagation();
19176
19406
  }
19177
19407
  },
19178
- children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_lucide_react4.Brush, { className: "size-4 shrink-0", "aria-hidden": true })
19408
+ children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_lucide_react4.Brush, { className: "size-4 shrink-0", "aria-hidden": true })
19179
19409
  }
19180
19410
  ) : null,
19181
- showAddItem ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
19411
+ showAddItem ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
19182
19412
  ToolbarActionTooltip,
19183
19413
  {
19184
19414
  label: "Add item",
@@ -19192,10 +19422,10 @@ function ItemActionToolbar({
19192
19422
  onAddItem?.();
19193
19423
  }
19194
19424
  },
19195
- children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_lucide_react4.Plus, { className: "size-4 shrink-0", "aria-hidden": true })
19425
+ children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_lucide_react4.Plus, { className: "size-4 shrink-0", "aria-hidden": true })
19196
19426
  }
19197
19427
  ) : null,
19198
- showHeadingToggle ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
19428
+ showHeadingToggle ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
19199
19429
  ToolbarActionTooltip,
19200
19430
  {
19201
19431
  label: headingTooltip,
@@ -19212,12 +19442,12 @@ function ItemActionToolbar({
19212
19442
  onHeadingVisibleChange?.(!headingVisible);
19213
19443
  }
19214
19444
  },
19215
- children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_lucide_react4.Heading, { className: "size-4 shrink-0", "aria-hidden": true })
19445
+ children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_lucide_react4.Heading, { className: "size-4 shrink-0", "aria-hidden": true })
19216
19446
  }
19217
19447
  ) : null,
19218
- showMore ? /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(DropdownMenu, { open: moreOpen, onOpenChange: setMoreOpen, children: [
19219
- /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(Tooltip, { open: moreOpen ? false : void 0, children: [
19220
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(DropdownMenuTrigger, { asChild: true, disabled: moreDisabled, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
19448
+ showMore ? /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(DropdownMenu, { open: moreOpen, onOpenChange: setMoreOpen, children: [
19449
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(Tooltip, { open: moreOpen ? false : void 0, children: [
19450
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(DropdownMenuTrigger, { asChild: true, disabled: moreDisabled, children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
19221
19451
  CustomToolbarButton,
19222
19452
  {
19223
19453
  type: "button",
@@ -19227,12 +19457,12 @@ function ItemActionToolbar({
19227
19457
  e.preventDefault();
19228
19458
  e.stopPropagation();
19229
19459
  },
19230
- children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_lucide_react4.MoreHorizontal, { className: "size-4 shrink-0", "aria-hidden": true })
19460
+ children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_lucide_react4.MoreHorizontal, { className: "size-4 shrink-0", "aria-hidden": true })
19231
19461
  }
19232
19462
  ) }) }),
19233
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(TooltipContent, { side: tooltipSide, sideOffset: 9, children: "More" })
19463
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(TooltipContent, { side: tooltipSide, sideOffset: 9, children: "More" })
19234
19464
  ] }),
19235
- /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
19465
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
19236
19466
  DropdownMenuContent,
19237
19467
  {
19238
19468
  align: "end",
@@ -19243,39 +19473,39 @@ function ItemActionToolbar({
19243
19473
  e.stopPropagation();
19244
19474
  },
19245
19475
  children: [
19246
- /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(DropdownMenuGroup, { children: [
19247
- /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
19476
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(DropdownMenuGroup, { children: [
19477
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
19248
19478
  DropdownMenuItem,
19249
19479
  {
19250
19480
  disabled: selectParentDisabled,
19251
19481
  onSelect: () => onSelectParent?.(),
19252
19482
  children: [
19253
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_lucide_react4.CornerLeftUp, { size: 12, "aria-hidden": true }),
19483
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_lucide_react4.CornerLeftUp, { size: 12, "aria-hidden": true }),
19254
19484
  "Select parent"
19255
19485
  ]
19256
19486
  }
19257
19487
  ),
19258
- /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
19488
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
19259
19489
  DropdownMenuItem,
19260
19490
  {
19261
19491
  disabled: duplicateDisabled,
19262
19492
  onSelect: () => onDuplicate?.(),
19263
19493
  children: [
19264
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_lucide_react4.Copy, { size: 12, "aria-hidden": true }),
19494
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_lucide_react4.Copy, { size: 12, "aria-hidden": true }),
19265
19495
  "Duplicate"
19266
19496
  ]
19267
19497
  }
19268
19498
  )
19269
19499
  ] }),
19270
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(DropdownMenuSeparator, {}),
19271
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(DropdownMenuGroup, { children: /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
19500
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(DropdownMenuSeparator, {}),
19501
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(DropdownMenuGroup, { children: /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
19272
19502
  DropdownMenuItem,
19273
19503
  {
19274
19504
  variant: "destructive",
19275
19505
  disabled: deleteDisabled,
19276
19506
  onSelect: () => onDelete?.(),
19277
19507
  children: [
19278
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_lucide_react4.Trash2, { size: 15, "aria-hidden": true }),
19508
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_lucide_react4.Trash2, { size: 15, "aria-hidden": true }),
19279
19509
  "Delete"
19280
19510
  ]
19281
19511
  }
@@ -19289,8 +19519,8 @@ function ItemActionToolbar({
19289
19519
 
19290
19520
  // src/ui/item-interaction-layer.tsx
19291
19521
  var import_react13 = require("react");
19292
- var import_react_dom3 = require("react-dom");
19293
- var import_jsx_runtime15 = require("react/jsx-runtime");
19522
+ var import_react_dom4 = require("react-dom");
19523
+ var import_jsx_runtime16 = require("react/jsx-runtime");
19294
19524
  var PRIMARY = "var(--ohw-primary, #0885FE)";
19295
19525
  var CHROME_RADIUS = 6;
19296
19526
  var FOCUS_RING = `0 0 0 4px color-mix(in srgb, ${PRIMARY} 12%, transparent)`;
@@ -19384,7 +19614,7 @@ function ClampedToolbarSlot({
19384
19614
  window.removeEventListener("resize", clamp);
19385
19615
  };
19386
19616
  }, [placement, children, align]);
19387
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
19617
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
19388
19618
  "div",
19389
19619
  {
19390
19620
  ref: slotRef,
@@ -19458,8 +19688,8 @@ function DetachedBelowToolbarSlot({
19458
19688
  };
19459
19689
  }, [centerX, belowRect, belowEl, children]);
19460
19690
  if (!portalTarget) return null;
19461
- return (0, import_react_dom3.createPortal)(
19462
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
19691
+ return (0, import_react_dom4.createPortal)(
19692
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
19463
19693
  "div",
19464
19694
  {
19465
19695
  ref: slotRef,
@@ -19517,7 +19747,7 @@ function ItemInteractionLayer({
19517
19747
  if (typeof elRef === "function") elRef(node);
19518
19748
  else if (elRef) elRef.current = node;
19519
19749
  };
19520
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
19750
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
19521
19751
  "div",
19522
19752
  {
19523
19753
  ref: setRootRef,
@@ -19534,7 +19764,7 @@ function ItemInteractionLayer({
19534
19764
  display: hidden ? "none" : "block"
19535
19765
  },
19536
19766
  children: [
19537
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
19767
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
19538
19768
  "div",
19539
19769
  {
19540
19770
  "aria-hidden": true,
@@ -19551,7 +19781,7 @@ function ItemInteractionLayer({
19551
19781
  }
19552
19782
  }
19553
19783
  ),
19554
- itemDragEnabled && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
19784
+ itemDragEnabled && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
19555
19785
  "div",
19556
19786
  {
19557
19787
  "data-ohw-item-drag-surface": "",
@@ -19568,14 +19798,14 @@ function ItemInteractionLayer({
19568
19798
  }
19569
19799
  }
19570
19800
  ),
19571
- showDragHandle && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
19801
+ showDragHandle && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
19572
19802
  "div",
19573
19803
  {
19574
19804
  "data-ohw-drag-handle-container": "",
19575
19805
  className: "pointer-events-auto absolute left-0 top-1/2 z-10 -translate-x-[calc(100%+7px)] -translate-y-1/2",
19576
19806
  style: isDragging ? { opacity: 0 } : void 0,
19577
19807
  "aria-hidden": isDragging || void 0,
19578
- children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
19808
+ children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
19579
19809
  DragHandle,
19580
19810
  {
19581
19811
  draggable: !dragDisabled,
@@ -19605,9 +19835,9 @@ function ItemInteractionLayer({
19605
19835
  )
19606
19836
  }
19607
19837
  ),
19608
- showToolbar && state === "active-top" && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(ClampedToolbarSlot, { align: toolbarAlign, placement: "top", children: toolbar }),
19609
- showToolbar && state === "active-bottom" && !useDetachedBelowToolbar && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(ClampedToolbarSlot, { align: toolbarAlign, placement: "bottom", children: toolbar }),
19610
- useDetachedBelowToolbar && toolbarBelowRect ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
19838
+ showToolbar && state === "active-top" && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(ClampedToolbarSlot, { align: toolbarAlign, placement: "top", children: toolbar }),
19839
+ showToolbar && state === "active-bottom" && !useDetachedBelowToolbar && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(ClampedToolbarSlot, { align: toolbarAlign, placement: "bottom", children: toolbar }),
19840
+ useDetachedBelowToolbar && toolbarBelowRect ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
19611
19841
  DetachedBelowToolbarSlot,
19612
19842
  {
19613
19843
  centerX: rect.left + rect.width / 2,
@@ -20469,7 +20699,7 @@ function apiBase() {
20469
20699
  function bridgeVersion() {
20470
20700
  try {
20471
20701
  if (true) {
20472
- return "0.1.179-next.478";
20702
+ return "0.1.179-next.479";
20473
20703
  }
20474
20704
  } catch {
20475
20705
  }
@@ -20483,7 +20713,7 @@ function stampBridgeVersionOnDocument() {
20483
20713
  return;
20484
20714
  }
20485
20715
  try {
20486
- const v = true ? "0.1.179-next.478" : "";
20716
+ const v = true ? "0.1.179-next.479" : "";
20487
20717
  if (v) {
20488
20718
  document.documentElement.setAttribute("data-ohw-bridge-version", v);
20489
20719
  window.__OHW_BRIDGE_VERSION__ = v;
@@ -20563,7 +20793,7 @@ function armLoaderHangBeacon(subdomain, fetchState, hangMs = 15e3) {
20563
20793
 
20564
20794
  // src/ui/form-field-toolbar.tsx
20565
20795
  var import_lucide_react5 = require("lucide-react");
20566
- var import_jsx_runtime16 = require("react/jsx-runtime");
20796
+ var import_jsx_runtime17 = require("react/jsx-runtime");
20567
20797
  var TYPE_ICONS = {
20568
20798
  "short-text": import_lucide_react5.Type,
20569
20799
  "long-text": import_lucide_react5.TextQuote,
@@ -20584,35 +20814,35 @@ function FormFieldToolbar({
20584
20814
  const TypeIcon = TYPE_ICONS[type];
20585
20815
  const typeLabel = FIELD_TYPES.find((entry) => entry.type === type)?.label ?? "Short text";
20586
20816
  const showDropdownToggle = type === "dropdown" && dropdownOpen !== null && dropdownOpen !== void 0;
20587
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
20817
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
20588
20818
  "div",
20589
20819
  {
20590
20820
  "data-ohw-field-toolbar": "",
20591
20821
  className: "pointer-events-auto flex items-center gap-0.5 whitespace-nowrap rounded-lg border border-border bg-background p-1 shadow-md",
20592
20822
  children: [
20593
- /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(DropdownMenu, { children: [
20594
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
20823
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(DropdownMenu, { children: [
20824
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
20595
20825
  "button",
20596
20826
  {
20597
20827
  type: "button",
20598
20828
  className: "flex h-7 items-center gap-1.5 whitespace-nowrap rounded-md px-2 text-[13px] font-medium text-foreground transition-colors hover:bg-muted/70",
20599
20829
  "data-ohw-field-type-trigger": "",
20600
20830
  children: [
20601
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(TypeIcon, { size: 14, strokeWidth: 1.75, "aria-hidden": true }),
20831
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(TypeIcon, { size: 14, strokeWidth: 1.75, "aria-hidden": true }),
20602
20832
  typeLabel,
20603
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_lucide_react5.ChevronDown, { size: 13, className: "text-muted-foreground", "aria-hidden": true })
20833
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_lucide_react5.ChevronDown, { size: 13, className: "text-muted-foreground", "aria-hidden": true })
20604
20834
  ]
20605
20835
  }
20606
20836
  ) }),
20607
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(DropdownMenuContent, { align: "start", sideOffset: 8, className: "min-w-47.5 p-1", children: FIELD_TYPES.map((entry) => {
20837
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(DropdownMenuContent, { align: "start", sideOffset: 8, className: "min-w-47.5 p-1", children: FIELD_TYPES.map((entry) => {
20608
20838
  const Icon = TYPE_ICONS[entry.type];
20609
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
20839
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
20610
20840
  DropdownMenuItem,
20611
20841
  {
20612
20842
  onSelect: () => onTypeChange(entry.type),
20613
20843
  className: "rounded-md py-2 text-[13px] " + (entry.type === type ? "bg-bridge-primary/10" : ""),
20614
20844
  children: [
20615
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Icon, { size: 14, strokeWidth: 1.75, className: "shrink-0", "aria-hidden": true }),
20845
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Icon, { size: 14, strokeWidth: 1.75, className: "shrink-0", "aria-hidden": true }),
20616
20846
  entry.label
20617
20847
  ]
20618
20848
  },
@@ -20620,8 +20850,8 @@ function FormFieldToolbar({
20620
20850
  );
20621
20851
  }) })
20622
20852
  ] }),
20623
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "mx-0.5 h-5 w-px bg-border" }),
20624
- /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
20853
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "mx-0.5 h-5 w-px bg-border" }),
20854
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
20625
20855
  "button",
20626
20856
  {
20627
20857
  type: "button",
@@ -20630,14 +20860,14 @@ function FormFieldToolbar({
20630
20860
  className: "flex h-7 items-center gap-1.5 whitespace-nowrap rounded-md px-2 text-[13px] font-medium transition-colors " + (required ? "bg-bridge-primary/10 text-bridge-primary" : "text-foreground hover:bg-muted/70"),
20631
20861
  "data-ohw-field-required-toggle": "",
20632
20862
  children: [
20633
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_lucide_react5.Asterisk, { size: 14, strokeWidth: 2, "aria-hidden": true }),
20863
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_lucide_react5.Asterisk, { size: 14, strokeWidth: 2, "aria-hidden": true }),
20634
20864
  "Required"
20635
20865
  ]
20636
20866
  }
20637
20867
  ),
20638
- showDropdownToggle ? /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_jsx_runtime16.Fragment, { children: [
20639
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "mx-0.5 h-5 w-px bg-border" }),
20640
- /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
20868
+ showDropdownToggle ? /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_jsx_runtime17.Fragment, { children: [
20869
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "mx-0.5 h-5 w-px bg-border" }),
20870
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
20641
20871
  ToggleGroup,
20642
20872
  {
20643
20873
  value: dropdownOpen ? "open" : "closed",
@@ -20649,7 +20879,7 @@ function FormFieldToolbar({
20649
20879
  e.stopPropagation();
20650
20880
  },
20651
20881
  children: [
20652
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
20882
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
20653
20883
  ToggleGroupItem,
20654
20884
  {
20655
20885
  value: "closed",
@@ -20668,7 +20898,7 @@ function FormFieldToolbar({
20668
20898
  children: "Closed"
20669
20899
  }
20670
20900
  ),
20671
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
20901
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
20672
20902
  ToggleGroupItem,
20673
20903
  {
20674
20904
  value: "open",
@@ -20691,8 +20921,8 @@ function FormFieldToolbar({
20691
20921
  }
20692
20922
  )
20693
20923
  ] }) : null,
20694
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "mx-0.5 h-5 w-px bg-border" }),
20695
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
20924
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "mx-0.5 h-5 w-px bg-border" }),
20925
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
20696
20926
  "button",
20697
20927
  {
20698
20928
  type: "button",
@@ -20700,10 +20930,10 @@ function FormFieldToolbar({
20700
20930
  "aria-label": "Duplicate",
20701
20931
  onClick: onDuplicate,
20702
20932
  className: "flex h-7 w-7 items-center justify-center rounded-md text-foreground transition-colors hover:bg-muted/70",
20703
- children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_lucide_react5.Copy, { size: 15, strokeWidth: 1.75, "aria-hidden": true })
20933
+ children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_lucide_react5.Copy, { size: 15, strokeWidth: 1.75, "aria-hidden": true })
20704
20934
  }
20705
20935
  ),
20706
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
20936
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
20707
20937
  "button",
20708
20938
  {
20709
20939
  type: "button",
@@ -20711,7 +20941,7 @@ function FormFieldToolbar({
20711
20941
  "aria-label": "Delete",
20712
20942
  onClick: onDelete,
20713
20943
  className: "flex h-7 w-7 items-center justify-center rounded-md text-foreground transition-colors hover:bg-muted/70",
20714
- children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_lucide_react5.Trash2, { size: 15, strokeWidth: 1.75, "aria-hidden": true })
20944
+ children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_lucide_react5.Trash2, { size: 15, strokeWidth: 1.75, "aria-hidden": true })
20715
20945
  }
20716
20946
  )
20717
20947
  ]
@@ -20723,13 +20953,13 @@ function DropdownOptionToolbar({
20723
20953
  onDuplicate,
20724
20954
  onDelete
20725
20955
  }) {
20726
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
20956
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
20727
20957
  "div",
20728
20958
  {
20729
20959
  "data-ohw-dropdown-option-toolbar": "",
20730
20960
  className: "pointer-events-auto flex items-center gap-0.5 whitespace-nowrap rounded-lg border border-border bg-background p-1 shadow-md",
20731
20961
  children: [
20732
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
20962
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
20733
20963
  "button",
20734
20964
  {
20735
20965
  type: "button",
@@ -20741,10 +20971,10 @@ function DropdownOptionToolbar({
20741
20971
  onDuplicate();
20742
20972
  },
20743
20973
  className: "flex h-7 w-7 items-center justify-center rounded-md text-foreground transition-colors hover:bg-muted/70",
20744
- children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_lucide_react5.Copy, { size: 15, strokeWidth: 1.75, "aria-hidden": true })
20974
+ children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_lucide_react5.Copy, { size: 15, strokeWidth: 1.75, "aria-hidden": true })
20745
20975
  }
20746
20976
  ),
20747
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
20977
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
20748
20978
  "button",
20749
20979
  {
20750
20980
  type: "button",
@@ -20757,7 +20987,7 @@ function DropdownOptionToolbar({
20757
20987
  if (canDelete) onDelete();
20758
20988
  },
20759
20989
  className: "flex h-7 w-7 items-center justify-center rounded-md transition-colors " + (canDelete ? "text-foreground hover:bg-muted/70" : "cursor-not-allowed text-muted-foreground opacity-40"),
20760
- children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_lucide_react5.Trash2, { size: 15, strokeWidth: 1.75, "aria-hidden": true })
20990
+ children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_lucide_react5.Trash2, { size: 15, strokeWidth: 1.75, "aria-hidden": true })
20761
20991
  }
20762
20992
  )
20763
20993
  ]
@@ -20765,21 +20995,21 @@ function DropdownOptionToolbar({
20765
20995
  );
20766
20996
  }
20767
20997
  function FieldTypePicker({ onPick }) {
20768
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
20998
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
20769
20999
  "div",
20770
21000
  {
20771
21001
  "data-ohw-field-type-picker": "",
20772
21002
  className: "pointer-events-auto grid w-[280px] grid-cols-2 gap-2 rounded-xl border border-border bg-background p-3 shadow-lg",
20773
21003
  children: FIELD_TYPES.map((entry) => {
20774
21004
  const Icon = TYPE_ICONS[entry.type];
20775
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
21005
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
20776
21006
  "button",
20777
21007
  {
20778
21008
  type: "button",
20779
21009
  onClick: () => onPick(entry.type),
20780
21010
  className: "flex h-[76px] flex-col items-center justify-center gap-2 rounded-xl border border-border text-[15px] font-medium text-foreground transition-colors hover:border-bridge-primary hover:bg-bridge-primary/5",
20781
21011
  children: [
20782
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Icon, { size: 26, strokeWidth: 1.5, "aria-hidden": true }),
21012
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Icon, { size: 26, strokeWidth: 1.5, "aria-hidden": true }),
20783
21013
  entry.label
20784
21014
  ]
20785
21015
  },
@@ -20797,7 +21027,7 @@ var import_lucide_react6 = require("lucide-react");
20797
21027
  // src/ui/button.tsx
20798
21028
  var React8 = __toESM(require("react"), 1);
20799
21029
  var import_radix_ui5 = require("radix-ui");
20800
- var import_jsx_runtime17 = require("react/jsx-runtime");
21030
+ var import_jsx_runtime18 = require("react/jsx-runtime");
20801
21031
  var buttonVariants = cva(
20802
21032
  "inline-flex items-center justify-center gap-1 whitespace-nowrap rounded-md text-sm font-medium transition-colors outline-none disabled:pointer-events-none disabled:opacity-50 min-w-[80px] px-3 py-2",
20803
21033
  {
@@ -20821,7 +21051,7 @@ var buttonVariants = cva(
20821
21051
  var Button = React8.forwardRef(
20822
21052
  ({ className, variant, size, asChild = false, ...props }, ref) => {
20823
21053
  const Comp = asChild ? import_radix_ui5.Slot.Root : "button";
20824
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
21054
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
20825
21055
  Comp,
20826
21056
  {
20827
21057
  ref,
@@ -20855,7 +21085,7 @@ var MEDIA_SKELETON_CSS = `
20855
21085
  `;
20856
21086
 
20857
21087
  // src/ui/MediaOverlay.tsx
20858
- var import_jsx_runtime18 = require("react/jsx-runtime");
21088
+ var import_jsx_runtime19 = require("react/jsx-runtime");
20859
21089
  var VIDEO_SETTINGS_BAR_INSET = 8;
20860
21090
  var OVERLAY_BUTTON_STYLE = {
20861
21091
  pointerEvents: "auto",
@@ -20923,7 +21153,7 @@ function MediaOverlay({
20923
21153
  return () => anim.cancel();
20924
21154
  }, [isUploading, fadingOut, onFadeOutComplete, hover.key]);
20925
21155
  if (isUploading) {
20926
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
21156
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
20927
21157
  "div",
20928
21158
  {
20929
21159
  ref: skeletonRef,
@@ -20932,11 +21162,11 @@ function MediaOverlay({
20932
21162
  "data-ohw-media-skeleton": "",
20933
21163
  "aria-hidden": true,
20934
21164
  style: { ...box, pointerEvents: "none" },
20935
- children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("style", { children: MEDIA_SKELETON_CSS })
21165
+ children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("style", { children: MEDIA_SKELETON_CSS })
20936
21166
  }
20937
21167
  );
20938
21168
  }
20939
- const settingsBar = isVideo && !hover.isDragOver && showChrome ? /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
21169
+ const settingsBar = isVideo && !hover.isDragOver && showChrome ? /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
20940
21170
  "div",
20941
21171
  {
20942
21172
  "data-ohw-bridge": "",
@@ -20952,7 +21182,7 @@ function MediaOverlay({
20952
21182
  },
20953
21183
  onClick: (e) => e.stopPropagation(),
20954
21184
  children: [
20955
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
21185
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
20956
21186
  Button,
20957
21187
  {
20958
21188
  "data-ohw-media-overlay": "",
@@ -20967,10 +21197,10 @@ function MediaOverlay({
20967
21197
  e.stopPropagation();
20968
21198
  onVideoSettingsChange?.(hover.key, { autoplay: !autoplay });
20969
21199
  },
20970
- children: autoplay ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_lucide_react6.Pause, { size: 14 }) : /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_lucide_react6.Play, { size: 14 })
21200
+ children: autoplay ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_lucide_react6.Pause, { size: 14 }) : /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_lucide_react6.Play, { size: 14 })
20971
21201
  }
20972
21202
  ),
20973
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
21203
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
20974
21204
  Button,
20975
21205
  {
20976
21206
  "data-ohw-media-overlay": "",
@@ -20985,15 +21215,15 @@ function MediaOverlay({
20985
21215
  e.stopPropagation();
20986
21216
  onVideoSettingsChange?.(hover.key, { muted: !muted });
20987
21217
  },
20988
- children: muted ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_lucide_react6.VolumeX, { size: 14 }) : /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_lucide_react6.Volume2, { size: 14 })
21218
+ children: muted ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_lucide_react6.VolumeX, { size: 14 }) : /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_lucide_react6.Volume2, { size: 14 })
20989
21219
  }
20990
21220
  )
20991
21221
  ]
20992
21222
  }
20993
21223
  ) : null;
20994
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_jsx_runtime18.Fragment, { children: [
21224
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_jsx_runtime19.Fragment, { children: [
20995
21225
  settingsBar,
20996
- /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
21226
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
20997
21227
  "div",
20998
21228
  {
20999
21229
  "data-ohw-bridge": "",
@@ -21012,7 +21242,7 @@ function MediaOverlay({
21012
21242
  },
21013
21243
  onClick: () => onSelect && !selected ? onSelect(hover.key) : onReplace(hover.key),
21014
21244
  children: [
21015
- /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
21245
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
21016
21246
  Button,
21017
21247
  {
21018
21248
  ref: probeRef,
@@ -21030,12 +21260,12 @@ function MediaOverlay({
21030
21260
  pointerEvents: "none"
21031
21261
  },
21032
21262
  children: [
21033
- isVideo ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_lucide_react6.Film, { size: 14 }) : /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_lucide_react6.ImageIcon, { size: 14 }),
21263
+ isVideo ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_lucide_react6.Film, { size: 14 }) : /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_lucide_react6.ImageIcon, { size: 14 }),
21034
21264
  replaceLabel
21035
21265
  ]
21036
21266
  }
21037
21267
  ),
21038
- showChrome && replaceMode !== "none" && /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
21268
+ showChrome && replaceMode !== "none" && /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
21039
21269
  "div",
21040
21270
  {
21041
21271
  className: "flex items-center gap-1.5",
@@ -21045,7 +21275,7 @@ function MediaOverlay({
21045
21275
  },
21046
21276
  onClick: (e) => e.stopPropagation(),
21047
21277
  children: [
21048
- /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
21278
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
21049
21279
  Button,
21050
21280
  {
21051
21281
  "data-ohw-media-overlay": "",
@@ -21071,12 +21301,12 @@ function MediaOverlay({
21071
21301
  onReplace(hover.key);
21072
21302
  },
21073
21303
  children: [
21074
- isVideo ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_lucide_react6.Film, { size: 14 }) : /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_lucide_react6.ImageIcon, { size: 14 }),
21304
+ isVideo ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_lucide_react6.Film, { size: 14 }) : /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_lucide_react6.ImageIcon, { size: 14 }),
21075
21305
  replaceMode === "full" ? replaceLabel : null
21076
21306
  ]
21077
21307
  }
21078
21308
  ),
21079
- selected && onDelete ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
21309
+ selected && onDelete ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
21080
21310
  Button,
21081
21311
  {
21082
21312
  "data-ohw-media-overlay": "",
@@ -21096,7 +21326,7 @@ function MediaOverlay({
21096
21326
  e.stopPropagation();
21097
21327
  onDelete(hover.key);
21098
21328
  },
21099
- children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_lucide_react6.Trash2, { size: 14 })
21329
+ children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_lucide_react6.Trash2, { size: 14 })
21100
21330
  }
21101
21331
  ) : null
21102
21332
  ]
@@ -21110,7 +21340,7 @@ function MediaOverlay({
21110
21340
 
21111
21341
  // src/ui/CarouselOverlay.tsx
21112
21342
  var import_lucide_react7 = require("lucide-react");
21113
- var import_jsx_runtime19 = require("react/jsx-runtime");
21343
+ var import_jsx_runtime20 = require("react/jsx-runtime");
21114
21344
  var OVERLAY_BUTTON_STYLE2 = {
21115
21345
  pointerEvents: "auto",
21116
21346
  fontFamily: "Inter, sans-serif",
@@ -21123,7 +21353,7 @@ function CarouselOverlay({
21123
21353
  cueOnly = false
21124
21354
  }) {
21125
21355
  const { rect } = hover;
21126
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
21356
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
21127
21357
  "div",
21128
21358
  {
21129
21359
  "data-ohw-bridge": "",
@@ -21141,7 +21371,7 @@ function CarouselOverlay({
21141
21371
  background: "color-mix(in srgb, var(--color-bridge-primary) 20%, transparent)"
21142
21372
  },
21143
21373
  onClick: () => onEdit(hover.key),
21144
- children: cueOnly ? null : /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
21374
+ children: cueOnly ? null : /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
21145
21375
  Button,
21146
21376
  {
21147
21377
  "data-ohw-carousel-overlay": "",
@@ -21155,7 +21385,7 @@ function CarouselOverlay({
21155
21385
  onEdit(hover.key);
21156
21386
  },
21157
21387
  children: [
21158
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_lucide_react7.GalleryHorizontal, { size: 14 }),
21388
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_lucide_react7.GalleryHorizontal, { size: 14 }),
21159
21389
  "Edit gallery"
21160
21390
  ]
21161
21391
  }
@@ -21287,7 +21517,7 @@ function installHistoryKeyRelay() {
21287
21517
  }
21288
21518
 
21289
21519
  // src/ui/ai-section/AiSectionOverlay.tsx
21290
- var import_jsx_runtime20 = require("react/jsx-runtime");
21520
+ var import_jsx_runtime21 = require("react/jsx-runtime");
21291
21521
  var findSectionElement = findByInstanceId;
21292
21522
  function readRect(instanceId) {
21293
21523
  const el = findSectionElement(instanceId);
@@ -21401,8 +21631,8 @@ function ReviewButton({
21401
21631
  color
21402
21632
  }) {
21403
21633
  const [hover, setHover] = (0, import_react14.useState)(false);
21404
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { style: { position: "relative" }, children: [
21405
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
21634
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { style: { position: "relative" }, children: [
21635
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
21406
21636
  "button",
21407
21637
  {
21408
21638
  type: "button",
@@ -21426,7 +21656,7 @@ function ReviewButton({
21426
21656
  children
21427
21657
  }
21428
21658
  ),
21429
- hover && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
21659
+ hover && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
21430
21660
  "div",
21431
21661
  {
21432
21662
  style: {
@@ -21629,8 +21859,8 @@ function AiSectionOverlay({
21629
21859
  isLast
21630
21860
  });
21631
21861
  }, [activeSelectionId, selectionRect, postToParent2]);
21632
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_jsx_runtime20.Fragment, { children: [
21633
- hoverRect && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
21862
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(import_jsx_runtime21.Fragment, { children: [
21863
+ hoverRect && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
21634
21864
  "div",
21635
21865
  {
21636
21866
  "data-ohw-ai-section-hover": "",
@@ -21648,7 +21878,7 @@ function AiSectionOverlay({
21648
21878
  }
21649
21879
  }
21650
21880
  ),
21651
- showSelectionBorder && selectionRect && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
21881
+ showSelectionBorder && selectionRect && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
21652
21882
  "div",
21653
21883
  {
21654
21884
  "data-ohw-ai-section-selected": "",
@@ -21666,8 +21896,8 @@ function AiSectionOverlay({
21666
21896
  }
21667
21897
  }
21668
21898
  ),
21669
- reviewRect && /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_jsx_runtime20.Fragment, { children: [
21670
- subtractRect(reviewRect, navToggleHole).map((r2, i) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
21899
+ reviewRect && /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(import_jsx_runtime21.Fragment, { children: [
21900
+ subtractRect(reviewRect, navToggleHole).map((r2, i) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
21671
21901
  "div",
21672
21902
  {
21673
21903
  "data-ohw-ai-review": "",
@@ -21687,7 +21917,7 @@ function AiSectionOverlay({
21687
21917
  },
21688
21918
  i
21689
21919
  )),
21690
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
21920
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
21691
21921
  "div",
21692
21922
  {
21693
21923
  "aria-hidden": true,
@@ -21704,7 +21934,7 @@ function AiSectionOverlay({
21704
21934
  }
21705
21935
  }
21706
21936
  ),
21707
- !reviewButtonsHidden && /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
21937
+ !reviewButtonsHidden && /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
21708
21938
  "div",
21709
21939
  {
21710
21940
  style: {
@@ -21719,8 +21949,8 @@ function AiSectionOverlay({
21719
21949
  zIndex: 2147483201
21720
21950
  },
21721
21951
  children: [
21722
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(ReviewButton, { label: "Accept", onClick: () => decide("accept"), background: PRIMARY2, color: "#ffffff", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_lucide_react8.Check, { size: 16, strokeWidth: 2.5, "aria-hidden": true }) }),
21723
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(ReviewButton, { label: "Discard", onClick: () => decide("discard"), background: "#EFF6FF", color: "#0c0a09", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_lucide_react8.X, { size: 16, strokeWidth: 2, "aria-hidden": true }) })
21952
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(ReviewButton, { label: "Accept", onClick: () => decide("accept"), background: PRIMARY2, color: "#ffffff", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_lucide_react8.Check, { size: 16, strokeWidth: 2.5, "aria-hidden": true }) }),
21953
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(ReviewButton, { label: "Discard", onClick: () => decide("discard"), background: "#EFF6FF", color: "#0c0a09", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_lucide_react8.X, { size: 16, strokeWidth: 2, "aria-hidden": true }) })
21724
21954
  ]
21725
21955
  }
21726
21956
  )
@@ -21865,22 +22095,22 @@ function setMediaStripItemLink(tree, index, link) {
21865
22095
  var React10 = __toESM(require("react"), 1);
21866
22096
  var import_radix_ui6 = require("radix-ui");
21867
22097
  var import_lucide_react9 = require("lucide-react");
21868
- var import_jsx_runtime21 = require("react/jsx-runtime");
22098
+ var import_jsx_runtime22 = require("react/jsx-runtime");
21869
22099
  function Dialog2({
21870
22100
  ...props
21871
22101
  }) {
21872
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_radix_ui6.Dialog.Root, { "data-slot": "dialog", ...props });
22102
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_radix_ui6.Dialog.Root, { "data-slot": "dialog", ...props });
21873
22103
  }
21874
22104
  function DialogPortal({
21875
22105
  ...props
21876
22106
  }) {
21877
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_radix_ui6.Dialog.Portal, { ...props });
22107
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_radix_ui6.Dialog.Portal, { ...props });
21878
22108
  }
21879
22109
  function DialogOverlay({
21880
22110
  className,
21881
22111
  ...props
21882
22112
  }) {
21883
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
22113
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
21884
22114
  import_radix_ui6.Dialog.Overlay,
21885
22115
  {
21886
22116
  "data-slot": "dialog-overlay",
@@ -21893,9 +22123,9 @@ function DialogOverlay({
21893
22123
  var DialogContent = React10.forwardRef(
21894
22124
  ({ className, children, showCloseButton = true, container, ...props }, ref) => {
21895
22125
  const positionMode = container ? "absolute" : "fixed";
21896
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(DialogPortal, { container: container ?? void 0, children: [
21897
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(DialogOverlay, { className: cn(positionMode, "inset-0") }),
21898
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
22126
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(DialogPortal, { container: container ?? void 0, children: [
22127
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(DialogOverlay, { className: cn(positionMode, "inset-0") }),
22128
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
21899
22129
  import_radix_ui6.Dialog.Content,
21900
22130
  {
21901
22131
  ref,
@@ -21911,13 +22141,13 @@ var DialogContent = React10.forwardRef(
21911
22141
  ...props,
21912
22142
  children: [
21913
22143
  children,
21914
- showCloseButton ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
22144
+ showCloseButton ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
21915
22145
  import_radix_ui6.Dialog.Close,
21916
22146
  {
21917
22147
  type: "button",
21918
22148
  className: "absolute right-[9px] top-[9px] rounded-sm p-1.5 text-foreground hover:bg-muted/50",
21919
22149
  "aria-label": "Close",
21920
- children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_lucide_react9.X, { size: 16, "aria-hidden": true })
22150
+ children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_lucide_react9.X, { size: 16, "aria-hidden": true })
21921
22151
  }
21922
22152
  ) : null
21923
22153
  ]
@@ -21931,13 +22161,13 @@ function DialogHeader({
21931
22161
  className,
21932
22162
  ...props
21933
22163
  }) {
21934
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: cn("flex flex-col gap-1.5", className), ...props });
22164
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: cn("flex flex-col gap-1.5", className), ...props });
21935
22165
  }
21936
22166
  function DialogFooter({
21937
22167
  className,
21938
22168
  ...props
21939
22169
  }) {
21940
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
22170
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
21941
22171
  "div",
21942
22172
  {
21943
22173
  className: cn("flex items-center justify-end gap-2", className),
@@ -21945,7 +22175,7 @@ function DialogFooter({
21945
22175
  }
21946
22176
  );
21947
22177
  }
21948
- var DialogTitle = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
22178
+ var DialogTitle = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
21949
22179
  import_radix_ui6.Dialog.Title,
21950
22180
  {
21951
22181
  ref,
@@ -21957,7 +22187,7 @@ var DialogTitle = React10.forwardRef(({ className, ...props }, ref) => /* @__PUR
21957
22187
  }
21958
22188
  ));
21959
22189
  DialogTitle.displayName = import_radix_ui6.Dialog.Title.displayName;
21960
- var DialogDescription = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
22190
+ var DialogDescription = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
21961
22191
  import_radix_ui6.Dialog.Description,
21962
22192
  {
21963
22193
  ref,
@@ -21969,7 +22199,7 @@ DialogDescription.displayName = import_radix_ui6.Dialog.Description.displayName;
21969
22199
  var DialogClose = import_radix_ui6.Dialog.Close;
21970
22200
 
21971
22201
  // src/ui/ai-section/AiMediaStripOverlay.tsx
21972
- var import_jsx_runtime22 = require("react/jsx-runtime");
22202
+ var import_jsx_runtime23 = require("react/jsx-runtime");
21973
22203
  var PRIMARY3 = "var(--ohw-primary, #0885FE)";
21974
22204
  var CHROME_SELECTOR = "[data-ohw-toolbar], [data-ohw-edit-chrome], [data-ohw-item-interaction], [data-ohw-link-modal-root], [data-ohw-section-picker], [data-ohw-ai-review], [data-ohw-more-menu]";
21975
22205
  function findMediaStripItemElement(sectionId, index) {
@@ -22058,7 +22288,7 @@ function StripToolbarSlot({ stripRect, children }) {
22058
22288
  return () => ro.disconnect();
22059
22289
  }, [centerX, children]);
22060
22290
  const mobile = window.innerWidth <= 480;
22061
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
22291
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
22062
22292
  "div",
22063
22293
  {
22064
22294
  ref: slotRef,
@@ -22118,14 +22348,14 @@ function ToolbarAction({
22118
22348
  active = false,
22119
22349
  children
22120
22350
  }) {
22121
- const button = /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CustomToolbarButton, { type: "button", "aria-label": label, disabled, active, onClick, className: "size-8", children });
22122
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(Tooltip, { children: [
22123
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(TooltipTrigger, { asChild: true, children: disabled ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: "inline-flex", children: button }) : button }),
22124
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(TooltipContent, { side: "bottom", sideOffset: 8, children: label })
22351
+ const button = /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(CustomToolbarButton, { type: "button", "aria-label": label, disabled, active, onClick, className: "size-8", children });
22352
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(Tooltip, { children: [
22353
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(TooltipTrigger, { asChild: true, children: disabled ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "inline-flex", children: button }) : button }),
22354
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(TooltipContent, { side: "bottom", sideOffset: 8, children: label })
22125
22355
  ] });
22126
22356
  }
22127
22357
  function ToolbarSeparator() {
22128
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { "aria-hidden": true, className: "mx-0.5 block h-6 w-px shrink-0 bg-border" });
22358
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { "aria-hidden": true, className: "mx-0.5 block h-6 w-px shrink-0 bg-border" });
22129
22359
  }
22130
22360
  function OptionMenu({
22131
22361
  label,
@@ -22134,24 +22364,24 @@ function OptionMenu({
22134
22364
  onChange
22135
22365
  }) {
22136
22366
  const current = options.find((o) => o.value === value) ?? options[0];
22137
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "flex items-center gap-1.5 pl-1.5", children: [
22138
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: "text-xs text-muted-foreground", children: label }),
22139
- /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(DropdownMenu, { modal: false, children: [
22140
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
22367
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "flex items-center gap-1.5 pl-1.5", children: [
22368
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "text-xs text-muted-foreground", children: label }),
22369
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(DropdownMenu, { modal: false, children: [
22370
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
22141
22371
  "button",
22142
22372
  {
22143
22373
  type: "button",
22144
22374
  "aria-label": label,
22145
22375
  className: "inline-flex h-8 min-w-[76px] items-center gap-[7px] rounded-[6px] bg-transparent px-2 text-[13px] font-medium text-foreground transition-colors hover:bg-muted data-[state=open]:bg-muted",
22146
22376
  children: [
22147
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: "flex-1 text-left", children: current.label }),
22148
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_lucide_react10.ChevronDown, { size: 16, style: { pointerEvents: "none" } })
22377
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "flex-1 text-left", children: current.label }),
22378
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react10.ChevronDown, { size: 16, style: { pointerEvents: "none" } })
22149
22379
  ]
22150
22380
  }
22151
22381
  ) }),
22152
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(DropdownMenuContent, { align: "end", sideOffset: 8, className: "w-[132px] min-w-[132px] p-1", children: options.map((option) => {
22382
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(DropdownMenuContent, { align: "end", sideOffset: 8, className: "w-[132px] min-w-[132px] p-1", children: options.map((option) => {
22153
22383
  const selected = option.value === value;
22154
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
22384
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
22155
22385
  DropdownMenuItem,
22156
22386
  {
22157
22387
  role: "menuitemradio",
@@ -22159,8 +22389,8 @@ function OptionMenu({
22159
22389
  onSelect: () => onChange(option.value),
22160
22390
  className: cn("grid grid-cols-[1fr_16px] gap-2 py-2 pl-2 pr-2 text-[13px]", selected && "bg-muted"),
22161
22391
  children: [
22162
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { children: option.label }),
22163
- selected && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_lucide_react10.Check, { size: 16, className: "text-bridge-primary" })
22392
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { children: option.label }),
22393
+ selected && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react10.Check, { size: 16, className: "text-bridge-primary" })
22164
22394
  ]
22165
22395
  },
22166
22396
  option.value
@@ -22203,10 +22433,10 @@ function LinkModal({
22203
22433
  onSave(next, newTab ? "new-tab" : "same-tab");
22204
22434
  onClose();
22205
22435
  };
22206
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Dialog2, { open: true, onOpenChange: (open) => !open && onClose(), children: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(DialogContent, { "data-ohw-link-modal-root": "", className: "max-w-[400px] gap-4 p-5", children: [
22207
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(DialogHeader, { children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(DialogTitle, { className: "text-base", children: "Image link" }) }),
22208
- /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "flex flex-col gap-3", children: [
22209
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
22436
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Dialog2, { open: true, onOpenChange: (open) => !open && onClose(), children: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(DialogContent, { "data-ohw-link-modal-root": "", className: "max-w-[400px] gap-4 p-5", children: [
22437
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(DialogHeader, { children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(DialogTitle, { className: "text-base", children: "Image link" }) }),
22438
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "flex flex-col gap-3", children: [
22439
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
22210
22440
  "input",
22211
22441
  {
22212
22442
  autoFocus: true,
@@ -22229,14 +22459,14 @@ function LinkModal({
22229
22459
  )
22230
22460
  }
22231
22461
  ),
22232
- invalid && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { className: "text-xs text-destructive", children: "Enter a full URL starting with http:// or https://" }),
22233
- /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("label", { className: "flex items-center gap-2 text-[13px] text-foreground", children: [
22234
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("input", { type: "checkbox", checked: newTab, onChange: (e) => setNewTab(e.target.checked) }),
22462
+ invalid && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("p", { className: "text-xs text-destructive", children: "Enter a full URL starting with http:// or https://" }),
22463
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("label", { className: "flex items-center gap-2 text-[13px] text-foreground", children: [
22464
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("input", { type: "checkbox", checked: newTab, onChange: (e) => setNewTab(e.target.checked) }),
22235
22465
  "Open in new tab"
22236
22466
  ] })
22237
22467
  ] }),
22238
- /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(DialogFooter, { children: [
22239
- href && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
22468
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(DialogFooter, { children: [
22469
+ href && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
22240
22470
  "button",
22241
22471
  {
22242
22472
  type: "button",
@@ -22248,7 +22478,7 @@ function LinkModal({
22248
22478
  children: "Remove link"
22249
22479
  }
22250
22480
  ),
22251
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
22481
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
22252
22482
  "button",
22253
22483
  {
22254
22484
  type: "button",
@@ -22257,7 +22487,7 @@ function LinkModal({
22257
22487
  children: "Cancel"
22258
22488
  }
22259
22489
  ),
22260
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
22490
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
22261
22491
  "button",
22262
22492
  {
22263
22493
  type: "button",
@@ -22298,7 +22528,7 @@ function MediaStripToolbar({
22298
22528
  const sizeValue = variant === "logos" ? typeof slots?.logoMaxHeight === "number" ? slots.logoMaxHeight : 48 : typeof slots?.cardWidth === "number" ? slots.cardWidth : 240;
22299
22529
  const mobile = window.innerWidth <= 480;
22300
22530
  const gatedLabel = (label) => itemEditOn ? label : "Turn on the star to edit this image";
22301
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
22531
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
22302
22532
  "div",
22303
22533
  {
22304
22534
  "data-ohw-bridge": "",
@@ -22307,7 +22537,7 @@ function MediaStripToolbar({
22307
22537
  className: cn("flex flex-col items-center gap-1.5 font-sans", pending && "pointer-events-none opacity-60"),
22308
22538
  style: { maxWidth: mobile ? "calc(100vw - 24px)" : void 0 },
22309
22539
  children: [
22310
- /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
22540
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
22311
22541
  "div",
22312
22542
  {
22313
22543
  className: cn(
@@ -22316,8 +22546,8 @@ function MediaStripToolbar({
22316
22546
  mobile ? "flex-wrap justify-center" : "flex-nowrap"
22317
22547
  ),
22318
22548
  children: [
22319
- /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(Tooltip, { children: [
22320
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
22549
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(Tooltip, { children: [
22550
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
22321
22551
  CustomToolbarButton,
22322
22552
  {
22323
22553
  type: "button",
@@ -22325,7 +22555,7 @@ function MediaStripToolbar({
22325
22555
  "aria-pressed": itemEditOn,
22326
22556
  onClick: onToggleItemEdit,
22327
22557
  className: "group size-8",
22328
- children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
22558
+ children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
22329
22559
  import_lucide_react10.Star,
22330
22560
  {
22331
22561
  size: 16,
@@ -22340,49 +22570,49 @@ function MediaStripToolbar({
22340
22570
  )
22341
22571
  }
22342
22572
  ) }),
22343
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(TooltipContent, { side: "bottom", sideOffset: 8, children: itemEditOn ? "Done editing this image" : "Edit this image" })
22573
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(TooltipContent, { side: "bottom", sideOffset: 8, children: itemEditOn ? "Done editing this image" : "Edit this image" })
22344
22574
  ] }),
22345
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(ToolbarSeparator, {}),
22346
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(ToolbarAction, { label: gatedLabel("Change image"), onClick: onChangeImage, disabled: !itemEditOn, children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_lucide_react10.Image, { size: 16, style: { pointerEvents: "none" } }) }),
22347
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(ToolbarAction, { label: gatedLabel("Link"), onClick: onOpenLink, disabled: !itemEditOn, children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_lucide_react10.Link, { size: 16, style: { pointerEvents: "none" } }) }),
22348
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(ToolbarAction, { label: gatedLabel("Move left"), onClick: onMoveLeft, disabled: !itemEditOn || index <= 0, children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_lucide_react10.ArrowLeft, { size: 16, style: { pointerEvents: "none" } }) }),
22349
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
22575
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(ToolbarSeparator, {}),
22576
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(ToolbarAction, { label: gatedLabel("Change image"), onClick: onChangeImage, disabled: !itemEditOn, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react10.Image, { size: 16, style: { pointerEvents: "none" } }) }),
22577
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(ToolbarAction, { label: gatedLabel("Link"), onClick: onOpenLink, disabled: !itemEditOn, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react10.Link, { size: 16, style: { pointerEvents: "none" } }) }),
22578
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(ToolbarAction, { label: gatedLabel("Move left"), onClick: onMoveLeft, disabled: !itemEditOn || index <= 0, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react10.ArrowLeft, { size: 16, style: { pointerEvents: "none" } }) }),
22579
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
22350
22580
  ToolbarAction,
22351
22581
  {
22352
22582
  label: gatedLabel("Move right"),
22353
22583
  onClick: onMoveRight,
22354
22584
  disabled: !itemEditOn || index >= itemCount - 1,
22355
- children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_lucide_react10.ArrowRight, { size: 16, style: { pointerEvents: "none" } })
22585
+ children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react10.ArrowRight, { size: 16, style: { pointerEvents: "none" } })
22356
22586
  }
22357
22587
  ),
22358
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(ToolbarAction, { label: gatedLabel("Remove image"), onClick: onRemoveItem, disabled: !itemEditOn || itemCount <= 1, children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_lucide_react10.ImageMinus, { size: 16, style: { pointerEvents: "none" } }) }),
22359
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(ToolbarSeparator, {}),
22360
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(OptionMenu, { label: "Layout", value: variant, options: VARIANTS, onChange: onSetVariant }),
22361
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(OptionMenu, { label: "Hover", value: hover, options: HOVERS, onChange: onSetHover }),
22362
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
22588
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(ToolbarAction, { label: gatedLabel("Remove image"), onClick: onRemoveItem, disabled: !itemEditOn || itemCount <= 1, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react10.ImageMinus, { size: 16, style: { pointerEvents: "none" } }) }),
22589
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(ToolbarSeparator, {}),
22590
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(OptionMenu, { label: "Layout", value: variant, options: VARIANTS, onChange: onSetVariant }),
22591
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(OptionMenu, { label: "Hover", value: hover, options: HOVERS, onChange: onSetHover }),
22592
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
22363
22593
  ToolbarAction,
22364
22594
  {
22365
22595
  label: treatment === "grayscale" ? "Show in color" : "Show grayscale",
22366
22596
  active: treatment === "grayscale",
22367
22597
  onClick: () => onSetTreatment(treatment === "grayscale" ? "color" : "grayscale"),
22368
- children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_lucide_react10.Palette, { size: 16, style: { pointerEvents: "none" } })
22598
+ children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react10.Palette, { size: 16, style: { pointerEvents: "none" } })
22369
22599
  }
22370
22600
  ),
22371
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(ToolbarSeparator, {}),
22372
- ALIGNS.map(({ value, label, Icon }) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(ToolbarAction, { label, active: align === value, onClick: () => onSetAlign(value), children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Icon, { size: 16, style: { pointerEvents: "none" } }) }, value)),
22373
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(ToolbarSeparator, {}),
22374
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(ToolbarAction, { label: "Smaller", onClick: () => onResize(-8), children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_lucide_react10.Minus, { size: 16, style: { pointerEvents: "none" } }) }),
22375
- /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("span", { className: "min-w-[40px] text-center text-xs tabular-nums text-muted-foreground", children: [
22601
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(ToolbarSeparator, {}),
22602
+ ALIGNS.map(({ value, label, Icon }) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(ToolbarAction, { label, active: align === value, onClick: () => onSetAlign(value), children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Icon, { size: 16, style: { pointerEvents: "none" } }) }, value)),
22603
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(ToolbarSeparator, {}),
22604
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(ToolbarAction, { label: "Smaller", onClick: () => onResize(-8), children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react10.Minus, { size: 16, style: { pointerEvents: "none" } }) }),
22605
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("span", { className: "min-w-[40px] text-center text-xs tabular-nums text-muted-foreground", children: [
22376
22606
  sizeValue,
22377
22607
  "px"
22378
22608
  ] }),
22379
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(ToolbarAction, { label: "Larger", onClick: () => onResize(8), children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_lucide_react10.Plus, { size: 16, style: { pointerEvents: "none" } }) }),
22380
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(ToolbarSeparator, {}),
22381
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(ToolbarAction, { label: "Add image", onClick: onAddItem, children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_lucide_react10.ImagePlus, { size: 16, style: { pointerEvents: "none" } }) })
22609
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(ToolbarAction, { label: "Larger", onClick: () => onResize(8), children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react10.Plus, { size: 16, style: { pointerEvents: "none" } }) }),
22610
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(ToolbarSeparator, {}),
22611
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(ToolbarAction, { label: "Add image", onClick: onAddItem, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react10.ImagePlus, { size: 16, style: { pointerEvents: "none" } }) })
22382
22612
  ]
22383
22613
  }
22384
22614
  ),
22385
- error && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: "max-w-[260px] rounded-md bg-background px-2 py-1 text-center text-[11px] text-destructive shadow-sm", children: error })
22615
+ error && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: "max-w-[260px] rounded-md bg-background px-2 py-1 text-center text-[11px] text-destructive shadow-sm", children: error })
22386
22616
  ]
22387
22617
  }
22388
22618
  ) });
@@ -22514,11 +22744,11 @@ function AiMediaStripOverlay({
22514
22744
  const activeItem = active ? activeItems[active.index] : void 0;
22515
22745
  const activeHref = activeItem?.href ?? "";
22516
22746
  const activeTarget = activeItem?.linkTarget === "same-tab" ? "same-tab" : "new-tab";
22517
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_jsx_runtime22.Fragment, { children: [
22518
- hoverRect && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(ItemInteractionLayer, { rect: hoverRect, state: "hover" }),
22519
- activeItemRect && activeStripRect && active && activeEntry && /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_jsx_runtime22.Fragment, { children: [
22520
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(ItemInteractionLayer, { rect: activeItemRect, state: "active-top" }),
22521
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(StripToolbarSlot, { stripRect: activeStripRect, children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
22747
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_jsx_runtime23.Fragment, { children: [
22748
+ hoverRect && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(ItemInteractionLayer, { rect: hoverRect, state: "hover" }),
22749
+ activeItemRect && activeStripRect && active && activeEntry && /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_jsx_runtime23.Fragment, { children: [
22750
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(ItemInteractionLayer, { rect: activeItemRect, state: "active-top" }),
22751
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(StripToolbarSlot, { stripRect: activeStripRect, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
22522
22752
  MediaStripToolbar,
22523
22753
  {
22524
22754
  entry: activeEntry,
@@ -22584,7 +22814,7 @@ function AiMediaStripOverlay({
22584
22814
  }
22585
22815
  }
22586
22816
  ) }),
22587
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
22817
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
22588
22818
  "div",
22589
22819
  {
22590
22820
  "data-ohw-bridge": "",
@@ -22600,7 +22830,7 @@ function AiMediaStripOverlay({
22600
22830
  children: "Media item"
22601
22831
  }
22602
22832
  ),
22603
- linkOpen && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
22833
+ linkOpen && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
22604
22834
  LinkModal,
22605
22835
  {
22606
22836
  href: activeHref,
@@ -22621,7 +22851,7 @@ function AiMediaStripOverlay({
22621
22851
  // src/ui/ai-section/AiPricingCardOverlay.tsx
22622
22852
  var import_react16 = require("react");
22623
22853
  var import_lucide_react11 = require("lucide-react");
22624
- var import_jsx_runtime23 = require("react/jsx-runtime");
22854
+ var import_jsx_runtime24 = require("react/jsx-runtime");
22625
22855
  var PRIMARY4 = "var(--ohw-primary, #0885FE)";
22626
22856
  var CHROME_SELECTOR2 = "[data-ohw-toolbar], [data-ohw-edit-chrome], [data-ohw-item-interaction], [data-ohw-link-modal-root], [data-ohw-section-picker], [data-ohw-ai-review], [data-ohw-more-menu]";
22627
22857
  function findPricingCardElement(sectionId, index) {
@@ -22710,7 +22940,7 @@ function GridToolbarSlot({ gridRect, children }) {
22710
22940
  return () => ro.disconnect();
22711
22941
  }, [centerX, children]);
22712
22942
  const mobile = window.innerWidth <= 480;
22713
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
22943
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
22714
22944
  "div",
22715
22945
  {
22716
22946
  ref: slotRef,
@@ -22745,7 +22975,7 @@ function requestValidateTree2(postToParent2, tree) {
22745
22975
  });
22746
22976
  }
22747
22977
  function StyleSwatch({ style }) {
22748
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
22978
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
22749
22979
  "span",
22750
22980
  {
22751
22981
  "aria-hidden": true,
@@ -22759,19 +22989,19 @@ function StyleSwatch({ style }) {
22759
22989
  );
22760
22990
  }
22761
22991
  function ButtonGlyph() {
22762
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("svg", { width: "18", height: "12", viewBox: "0 0 18 12", fill: "none", "aria-hidden": true, style: { pointerEvents: "none" }, children: [
22763
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("rect", { x: "0.75", y: "0.75", width: "16.5", height: "10.5", rx: "3", stroke: "currentColor", strokeWidth: "1.5" }),
22764
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "M5.5 6H12.5", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round" })
22992
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("svg", { width: "18", height: "12", viewBox: "0 0 18 12", fill: "none", "aria-hidden": true, style: { pointerEvents: "none" }, children: [
22993
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("rect", { x: "0.75", y: "0.75", width: "16.5", height: "10.5", rx: "3", stroke: "currentColor", strokeWidth: "1.5" }),
22994
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("path", { d: "M5.5 6H12.5", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round" })
22765
22995
  ] });
22766
22996
  }
22767
22997
  function FeatureGlyph({ mode }) {
22768
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("svg", { width: "18", height: "18", viewBox: "0 0 18 18", fill: "none", "aria-hidden": true, style: { pointerEvents: "none" }, children: [
22769
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("circle", { cx: "8", cy: "8", r: "7.25", stroke: "currentColor", strokeWidth: "1.5" }),
22770
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "M5 8.2L7.2 10.3L11 6", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
22771
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("circle", { cx: "13.5", cy: "13.5", r: "4.25", fill: "var(--ohw-background, #ffffff)", stroke: "var(--ohw-background, #ffffff)", strokeWidth: "1" }),
22772
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("circle", { cx: "13.5", cy: "13.5", r: "3.75", fill: "var(--ohw-background, #ffffff)", stroke: PRIMARY4, strokeWidth: "1" }),
22773
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "M11.5 13.5H15.5", stroke: PRIMARY4, strokeWidth: "1.5", strokeLinecap: "round" }),
22774
- mode === "add" && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "M13.5 11.5V15.5", stroke: PRIMARY4, strokeWidth: "1.5", strokeLinecap: "round" })
22998
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("svg", { width: "18", height: "18", viewBox: "0 0 18 18", fill: "none", "aria-hidden": true, style: { pointerEvents: "none" }, children: [
22999
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("circle", { cx: "8", cy: "8", r: "7.25", stroke: "currentColor", strokeWidth: "1.5" }),
23000
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("path", { d: "M5 8.2L7.2 10.3L11 6", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
23001
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("circle", { cx: "13.5", cy: "13.5", r: "4.25", fill: "var(--ohw-background, #ffffff)", stroke: "var(--ohw-background, #ffffff)", strokeWidth: "1" }),
23002
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("circle", { cx: "13.5", cy: "13.5", r: "3.75", fill: "var(--ohw-background, #ffffff)", stroke: PRIMARY4, strokeWidth: "1" }),
23003
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("path", { d: "M11.5 13.5H15.5", stroke: PRIMARY4, strokeWidth: "1.5", strokeLinecap: "round" }),
23004
+ mode === "add" && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("path", { d: "M13.5 11.5V15.5", stroke: PRIMARY4, strokeWidth: "1.5", strokeLinecap: "round" })
22775
23005
  ] });
22776
23006
  }
22777
23007
  function ToolbarAction2({
@@ -22780,14 +23010,14 @@ function ToolbarAction2({
22780
23010
  disabled = false,
22781
23011
  children
22782
23012
  }) {
22783
- const button = /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(CustomToolbarButton, { type: "button", "aria-label": label, disabled, onClick, className: "size-8", children });
22784
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(Tooltip, { children: [
22785
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(TooltipTrigger, { asChild: true, children: disabled ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "inline-flex", children: button }) : button }),
22786
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(TooltipContent, { side: "bottom", sideOffset: 8, children: label })
23013
+ const button = /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CustomToolbarButton, { type: "button", "aria-label": label, disabled, onClick, className: "size-8", children });
23014
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(Tooltip, { children: [
23015
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(TooltipTrigger, { asChild: true, children: disabled ? /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: "inline-flex", children: button }) : button }),
23016
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(TooltipContent, { side: "bottom", sideOffset: 8, children: label })
22787
23017
  ] });
22788
23018
  }
22789
23019
  function ToolbarSeparator2() {
22790
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { "aria-hidden": true, className: "mx-0.5 block h-6 w-px shrink-0 bg-border" });
23020
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { "aria-hidden": true, className: "mx-0.5 block h-6 w-px shrink-0 bg-border" });
22791
23021
  }
22792
23022
  function CardStyleMenu({
22793
23023
  value,
@@ -22795,7 +23025,7 @@ function CardStyleMenu({
22795
23025
  disabled = false
22796
23026
  }) {
22797
23027
  const current = PRICING_CARD_STYLES.find((s) => s.value === value) ?? PRICING_CARD_STYLES[0];
22798
- const trigger = /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
23028
+ const trigger = /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
22799
23029
  "button",
22800
23030
  {
22801
23031
  type: "button",
@@ -22806,28 +23036,28 @@ function CardStyleMenu({
22806
23036
  disabled && "cursor-not-allowed opacity-40 hover:bg-transparent"
22807
23037
  ),
22808
23038
  children: [
22809
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(StyleSwatch, { style: current.value }),
22810
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "flex-1 text-left", children: current.label }),
22811
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react11.ChevronDown, { size: 16, style: { pointerEvents: "none" } })
23039
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(StyleSwatch, { style: current.value }),
23040
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: "flex-1 text-left", children: current.label }),
23041
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_lucide_react11.ChevronDown, { size: 16, style: { pointerEvents: "none" } })
22812
23042
  ]
22813
23043
  }
22814
23044
  );
22815
23045
  if (disabled) {
22816
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "flex items-center gap-1.5 pl-1.5", children: [
22817
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "text-xs text-muted-foreground opacity-50", children: "Card style" }),
22818
- /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(Tooltip, { children: [
22819
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "inline-flex", children: trigger }) }),
22820
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(TooltipContent, { side: "bottom", sideOffset: 8, children: "Mark as featured to edit card style" })
23046
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "flex items-center gap-1.5 pl-1.5", children: [
23047
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: "text-xs text-muted-foreground opacity-50", children: "Card style" }),
23048
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(Tooltip, { children: [
23049
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: "inline-flex", children: trigger }) }),
23050
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(TooltipContent, { side: "bottom", sideOffset: 8, children: "Mark as featured to edit card style" })
22821
23051
  ] })
22822
23052
  ] });
22823
23053
  }
22824
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "flex items-center gap-1.5 pl-1.5", children: [
22825
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "text-xs text-muted-foreground", children: "Card style" }),
22826
- /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(DropdownMenu, { modal: false, children: [
22827
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(DropdownMenuTrigger, { asChild: true, children: trigger }),
22828
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(DropdownMenuContent, { align: "end", sideOffset: 8, className: "w-[152px] min-w-[152px] p-1", children: PRICING_CARD_STYLES.map((style) => {
23054
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "flex items-center gap-1.5 pl-1.5", children: [
23055
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: "text-xs text-muted-foreground", children: "Card style" }),
23056
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(DropdownMenu, { modal: false, children: [
23057
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(DropdownMenuTrigger, { asChild: true, children: trigger }),
23058
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(DropdownMenuContent, { align: "end", sideOffset: 8, className: "w-[152px] min-w-[152px] p-1", children: PRICING_CARD_STYLES.map((style) => {
22829
23059
  const selected = style.value === value;
22830
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
23060
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
22831
23061
  DropdownMenuItem,
22832
23062
  {
22833
23063
  role: "menuitemradio",
@@ -22835,9 +23065,9 @@ function CardStyleMenu({
22835
23065
  onSelect: () => onChange(style.value),
22836
23066
  className: cn("grid grid-cols-[18px_1fr_16px] gap-2 py-2 pl-2 pr-2 text-[13px]", selected && "bg-muted"),
22837
23067
  children: [
22838
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(StyleSwatch, { style: style.value }),
22839
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { children: style.label }),
22840
- selected && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react11.Check, { size: 16, className: "text-bridge-primary" })
23068
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(StyleSwatch, { style: style.value }),
23069
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { children: style.label }),
23070
+ selected && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_lucide_react11.Check, { size: 16, className: "text-bridge-primary" })
22841
23071
  ]
22842
23072
  },
22843
23073
  style.value
@@ -22867,7 +23097,7 @@ function PricingCardToolbar({
22867
23097
  const style = pricingCardStyle(entry.tree, index);
22868
23098
  const featuredTag = pricingCardFeaturedTag(entry.tree, index);
22869
23099
  const mobile = window.innerWidth <= 480;
22870
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
23100
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
22871
23101
  "div",
22872
23102
  {
22873
23103
  "data-ohw-bridge": "",
@@ -22879,7 +23109,7 @@ function PricingCardToolbar({
22879
23109
  ),
22880
23110
  style: { maxWidth: mobile ? "calc(100vw - 24px)" : void 0 },
22881
23111
  children: [
22882
- /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
23112
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
22883
23113
  "div",
22884
23114
  {
22885
23115
  className: cn(
@@ -22888,8 +23118,8 @@ function PricingCardToolbar({
22888
23118
  mobile ? "flex-wrap justify-center" : "flex-nowrap"
22889
23119
  ),
22890
23120
  children: [
22891
- /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(Tooltip, { children: [
22892
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
23121
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(Tooltip, { children: [
23122
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
22893
23123
  CustomToolbarButton,
22894
23124
  {
22895
23125
  type: "button",
@@ -22897,7 +23127,7 @@ function PricingCardToolbar({
22897
23127
  "aria-pressed": featuredTag,
22898
23128
  onClick: () => onSetFeaturedTag(!featuredTag),
22899
23129
  className: "group size-8",
22900
- children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
23130
+ children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
22901
23131
  import_lucide_react11.Star,
22902
23132
  {
22903
23133
  size: 16,
@@ -22912,25 +23142,25 @@ function PricingCardToolbar({
22912
23142
  )
22913
23143
  }
22914
23144
  ) }),
22915
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(TooltipContent, { side: "bottom", sideOffset: 8, children: featuredTag ? "Unmark featured" : "Mark as featured" })
23145
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(TooltipContent, { side: "bottom", sideOffset: 8, children: featuredTag ? "Unmark featured" : "Mark as featured" })
22916
23146
  ] }),
22917
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(ToolbarSeparator2, {}),
22918
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(CardStyleMenu, { value: style, onChange: onSetStyle, disabled: !featuredTag }),
22919
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(ToolbarSeparator2, {}),
22920
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(ToolbarAction2, { label: "Add button", onClick: onAddButton, disabled: buttonCount >= 2, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(ButtonGlyph, {}) }),
22921
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(ToolbarAction2, { label: "Remove button", onClick: onRemoveButton, disabled: buttonCount === 0, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("span", { className: "relative inline-flex", children: [
22922
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(ButtonGlyph, {}),
22923
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react11.Minus, { size: 10, strokeWidth: 2.5, className: "absolute -right-1.5 -top-1.5 rounded-full bg-background text-bridge-primary" })
23147
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(ToolbarSeparator2, {}),
23148
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CardStyleMenu, { value: style, onChange: onSetStyle, disabled: !featuredTag }),
23149
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(ToolbarSeparator2, {}),
23150
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(ToolbarAction2, { label: "Add button", onClick: onAddButton, disabled: buttonCount >= 2, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(ButtonGlyph, {}) }),
23151
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(ToolbarAction2, { label: "Remove button", onClick: onRemoveButton, disabled: buttonCount === 0, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("span", { className: "relative inline-flex", children: [
23152
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(ButtonGlyph, {}),
23153
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_lucide_react11.Minus, { size: 10, strokeWidth: 2.5, className: "absolute -right-1.5 -top-1.5 rounded-full bg-background text-bridge-primary" })
22924
23154
  ] }) }),
22925
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(ToolbarAction2, { label: "Add feature", onClick: onAddFeature, disabled: featureCount >= 10, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(FeatureGlyph, { mode: "add" }) }),
22926
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(ToolbarAction2, { label: "Remove feature", onClick: onRemoveFeature, disabled: featureCount <= 1, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(FeatureGlyph, { mode: "remove" }) }),
22927
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(ToolbarSeparator2, {}),
22928
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(ToolbarAction2, { label: "Add tier", onClick: onAddTier, disabled: collectionCount >= 4, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react11.Plus, { size: 16, style: { pointerEvents: "none" } }) }),
22929
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(ToolbarAction2, { label: "Remove tier", onClick: onRemoveTier, disabled: collectionCount <= 1, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react11.Minus, { size: 16, style: { pointerEvents: "none" } }) })
23155
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(ToolbarAction2, { label: "Add feature", onClick: onAddFeature, disabled: featureCount >= 10, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(FeatureGlyph, { mode: "add" }) }),
23156
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(ToolbarAction2, { label: "Remove feature", onClick: onRemoveFeature, disabled: featureCount <= 1, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(FeatureGlyph, { mode: "remove" }) }),
23157
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(ToolbarSeparator2, {}),
23158
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(ToolbarAction2, { label: "Add tier", onClick: onAddTier, disabled: collectionCount >= 4, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_lucide_react11.Plus, { size: 16, style: { pointerEvents: "none" } }) }),
23159
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(ToolbarAction2, { label: "Remove tier", onClick: onRemoveTier, disabled: collectionCount <= 1, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_lucide_react11.Minus, { size: 16, style: { pointerEvents: "none" } }) })
22930
23160
  ]
22931
23161
  }
22932
23162
  ),
22933
- error && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: "max-w-[260px] rounded-md bg-background px-2 py-1 text-center text-[11px] text-destructive shadow-sm", children: error })
23163
+ error && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "max-w-[260px] rounded-md bg-background px-2 py-1 text-center text-[11px] text-destructive shadow-sm", children: error })
22934
23164
  ]
22935
23165
  }
22936
23166
  ) });
@@ -23048,11 +23278,11 @@ function AiPricingCardOverlay({
23048
23278
  const activeCardRect = useLiveCardRect(active);
23049
23279
  const activeGridRect = useLiveCardRect(active, true);
23050
23280
  const hoverRect = useLiveCardRect(hover && !sameRef2(hover, active) ? hover : null);
23051
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_jsx_runtime23.Fragment, { children: [
23052
- hoverRect && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(ItemInteractionLayer, { rect: hoverRect, state: "hover" }),
23053
- activeCardRect && activeGridRect && active && activeEntry && /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_jsx_runtime23.Fragment, { children: [
23054
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(ItemInteractionLayer, { rect: activeCardRect, state: "active-top" }),
23055
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(GridToolbarSlot, { gridRect: activeGridRect, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
23281
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_jsx_runtime24.Fragment, { children: [
23282
+ hoverRect && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(ItemInteractionLayer, { rect: hoverRect, state: "hover" }),
23283
+ activeCardRect && activeGridRect && active && activeEntry && /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_jsx_runtime24.Fragment, { children: [
23284
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(ItemInteractionLayer, { rect: activeCardRect, state: "active-top" }),
23285
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(GridToolbarSlot, { gridRect: activeGridRect, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
23056
23286
  PricingCardToolbar,
23057
23287
  {
23058
23288
  entry: activeEntry,
@@ -23080,7 +23310,7 @@ function AiPricingCardOverlay({
23080
23310
  onRemoveFeature: () => runMutation(active.sectionId, (tree) => removePricingCardFeature(tree, active.index))
23081
23311
  }
23082
23312
  ) }),
23083
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
23313
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
23084
23314
  "div",
23085
23315
  {
23086
23316
  "data-ohw-bridge": "",
@@ -23145,7 +23375,7 @@ function clearVideo(tree, path) {
23145
23375
  }
23146
23376
 
23147
23377
  // src/ui/ai-section/AiVideoOverlay.tsx
23148
- var import_jsx_runtime24 = require("react/jsx-runtime");
23378
+ var import_jsx_runtime25 = require("react/jsx-runtime");
23149
23379
  var PRIMARY5 = "#0885FE";
23150
23380
  var OHW_BLUE = `var(--ohw-primary, ${PRIMARY5})`;
23151
23381
  var OHW_BLUE_DARK = `color-mix(in srgb, var(--ohw-primary, ${PRIMARY5}) 60%, #000000)`;
@@ -23213,7 +23443,7 @@ function Pill({
23213
23443
  onClick,
23214
23444
  disabled
23215
23445
  }) {
23216
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
23446
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
23217
23447
  "button",
23218
23448
  {
23219
23449
  type: "button",
@@ -23272,8 +23502,8 @@ function VideoUrlInput({ value, onCommit }) {
23272
23502
  onCommit(id);
23273
23503
  }
23274
23504
  };
23275
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { style: { display: "flex", flexDirection: "column", gap: 4, width: "100%", maxWidth: 280 }, children: [
23276
- /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
23505
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { style: { display: "flex", flexDirection: "column", gap: 4, width: "100%", maxWidth: 280 }, children: [
23506
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
23277
23507
  "div",
23278
23508
  {
23279
23509
  style: {
@@ -23289,7 +23519,7 @@ function VideoUrlInput({ value, onCommit }) {
23289
23519
  boxShadow: invalid ? "inset 0 0 0 1.5px #EF4444" : "none"
23290
23520
  },
23291
23521
  children: [
23292
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
23522
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
23293
23523
  "span",
23294
23524
  {
23295
23525
  style: {
@@ -23304,7 +23534,7 @@ function VideoUrlInput({ value, onCommit }) {
23304
23534
  children: "Video"
23305
23535
  }
23306
23536
  ),
23307
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
23537
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
23308
23538
  "input",
23309
23539
  {
23310
23540
  type: "text",
@@ -23341,7 +23571,7 @@ function VideoUrlInput({ value, onCommit }) {
23341
23571
  ]
23342
23572
  }
23343
23573
  ),
23344
- invalid && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { style: { color: "#FCA5A5", fontSize: 11, textAlign: "center" }, children: "That doesn't look like a YouTube link \u2014 try pasting the video URL again." })
23574
+ invalid && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { style: { color: "#FCA5A5", fontSize: 11, textAlign: "center" }, children: "That doesn't look like a YouTube link \u2014 try pasting the video URL again." })
23345
23575
  ] });
23346
23576
  }
23347
23577
  function VideoToolbar({
@@ -23351,7 +23581,7 @@ function VideoToolbar({
23351
23581
  onSetVideoId,
23352
23582
  onRemove
23353
23583
  }) {
23354
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
23584
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
23355
23585
  "div",
23356
23586
  {
23357
23587
  "data-ohw-bridge": "",
@@ -23371,9 +23601,9 @@ function VideoToolbar({
23371
23601
  opacity: pending ? 0.6 : 1
23372
23602
  },
23373
23603
  children: [
23374
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(VideoUrlInput, { value: videoId, onCommit: onSetVideoId }),
23375
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Pill, { label: "Remove video", onClick: onRemove, disabled: !videoId }),
23376
- error && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { style: { color: "#FCA5A5", fontSize: 11, maxWidth: 220, textAlign: "center" }, children: error })
23604
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(VideoUrlInput, { value: videoId, onCommit: onSetVideoId }),
23605
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Pill, { label: "Remove video", onClick: onRemove, disabled: !videoId }),
23606
+ error && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { style: { color: "#FCA5A5", fontSize: 11, maxWidth: 220, textAlign: "center" }, children: error })
23377
23607
  ]
23378
23608
  }
23379
23609
  );
@@ -23493,8 +23723,8 @@ function AiVideoOverlay({
23493
23723
  const activeBlockRect = useLiveBlockRect(active);
23494
23724
  const TOOLBAR_APPROX_H = 90;
23495
23725
  const toolbarState = activeBlockRect && activeBlockRect.top < TOOLBAR_APPROX_H ? "active-bottom" : "active-top";
23496
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_jsx_runtime24.Fragment, { children: [
23497
- hoverHandleRect && hover && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
23726
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_jsx_runtime25.Fragment, { children: [
23727
+ hoverHandleRect && hover && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
23498
23728
  "button",
23499
23729
  {
23500
23730
  type: "button",
@@ -23522,15 +23752,15 @@ function AiVideoOverlay({
23522
23752
  fontSize: 14,
23523
23753
  fontWeight: 700
23524
23754
  },
23525
- children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_lucide_react12.Star, { size: 14, style: { pointerEvents: "none" } })
23755
+ children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_lucide_react12.Star, { size: 14, style: { pointerEvents: "none" } })
23526
23756
  }
23527
23757
  ),
23528
- activeBlockRect && active && activeEntry && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
23758
+ activeBlockRect && active && activeEntry && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
23529
23759
  ItemInteractionLayer,
23530
23760
  {
23531
23761
  rect: activeBlockRect,
23532
23762
  state: toolbarState,
23533
- toolbar: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
23763
+ toolbar: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
23534
23764
  VideoToolbar,
23535
23765
  {
23536
23766
  videoId: videoIdAt(activeEntry.tree, active.path),
@@ -23605,7 +23835,7 @@ function setCarouselAutoplay(tree, on) {
23605
23835
  }
23606
23836
 
23607
23837
  // src/ui/ai-section/AiFadeCarouselOverlay.tsx
23608
- var import_jsx_runtime25 = require("react/jsx-runtime");
23838
+ var import_jsx_runtime26 = require("react/jsx-runtime");
23609
23839
  var PRIMARY6 = "#0885FE";
23610
23840
  var OHW_BLUE2 = `var(--ohw-primary, ${PRIMARY6})`;
23611
23841
  var OHW_BLUE_DARK2 = `color-mix(in srgb, var(--ohw-primary, ${PRIMARY6}) 60%, #000000)`;
@@ -23688,7 +23918,7 @@ function requestAssetPick2(postToParent2) {
23688
23918
  });
23689
23919
  }
23690
23920
  function Pill2({ label, onClick, disabled }) {
23691
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
23921
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
23692
23922
  "button",
23693
23923
  {
23694
23924
  type: "button",
@@ -23722,7 +23952,7 @@ function TogglePill({
23722
23952
  onToggle,
23723
23953
  disabled
23724
23954
  }) {
23725
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
23955
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
23726
23956
  "button",
23727
23957
  {
23728
23958
  type: "button",
@@ -23751,7 +23981,7 @@ function TogglePill({
23751
23981
  },
23752
23982
  children: [
23753
23983
  label,
23754
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
23984
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
23755
23985
  "span",
23756
23986
  {
23757
23987
  "aria-hidden": true,
@@ -23767,7 +23997,7 @@ function TogglePill({
23767
23997
  background: on ? OHW_BLUE_DARK2 : "#CBD5E1",
23768
23998
  transition: "background 120ms ease"
23769
23999
  },
23770
- children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
24000
+ children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
23771
24001
  "span",
23772
24002
  {
23773
24003
  style: {
@@ -23796,7 +24026,7 @@ function CarouselSlideToolbar({
23796
24026
  onChangeImage,
23797
24027
  onToggleAutoplay
23798
24028
  }) {
23799
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
24029
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
23800
24030
  "div",
23801
24031
  {
23802
24032
  "data-ohw-bridge": "",
@@ -23819,11 +24049,11 @@ function CarouselSlideToolbar({
23819
24049
  pointerEvents: pending ? "none" : "auto"
23820
24050
  },
23821
24051
  children: [
23822
- /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { style: { display: "flex", gap: 6, alignItems: "center" }, children: [
23823
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Pill2, { label: "Change Image", onClick: onChangeImage }),
23824
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(TogglePill, { label: "Autoplay", on: autoplay, onToggle: onToggleAutoplay })
24052
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { style: { display: "flex", gap: 6, alignItems: "center" }, children: [
24053
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Pill2, { label: "Change Image", onClick: onChangeImage }),
24054
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(TogglePill, { label: "Autoplay", on: autoplay, onToggle: onToggleAutoplay })
23825
24055
  ] }),
23826
- error && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { style: { color: "#FCA5A5", fontSize: 11, maxWidth: 220, textAlign: "center" }, children: error })
24056
+ error && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { style: { color: "#FCA5A5", fontSize: 11, maxWidth: 220, textAlign: "center" }, children: error })
23827
24057
  ]
23828
24058
  }
23829
24059
  );
@@ -23963,8 +24193,8 @@ function AiFadeCarouselOverlay({
23963
24193
  const activeItemRect = useLiveItemRect2(active);
23964
24194
  const TOOLBAR_APPROX_H = 90;
23965
24195
  const toolbarState = activeItemRect && activeItemRect.top < TOOLBAR_APPROX_H ? "active-bottom" : "active-top";
23966
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_jsx_runtime25.Fragment, { children: [
23967
- hoverHandleRect && hover && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
24196
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_jsx_runtime26.Fragment, { children: [
24197
+ hoverHandleRect && hover && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
23968
24198
  "button",
23969
24199
  {
23970
24200
  type: "button",
@@ -23993,10 +24223,10 @@ function AiFadeCarouselOverlay({
23993
24223
  fontSize: 14,
23994
24224
  fontWeight: 700
23995
24225
  },
23996
- children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_lucide_react13.Star, { size: 14, style: { pointerEvents: "none" } })
24226
+ children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_lucide_react13.Star, { size: 14, style: { pointerEvents: "none" } })
23997
24227
  }
23998
24228
  ),
23999
- swapping && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
24229
+ swapping && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
24000
24230
  "div",
24001
24231
  {
24002
24232
  ref: skeletonRef,
@@ -24014,15 +24244,15 @@ function AiFadeCarouselOverlay({
24014
24244
  zIndex: 2147483646,
24015
24245
  pointerEvents: "none"
24016
24246
  },
24017
- children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("style", { children: MEDIA_SKELETON_CSS })
24247
+ children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("style", { children: MEDIA_SKELETON_CSS })
24018
24248
  }
24019
24249
  ),
24020
- activeItemRect && active && activeEntry && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
24250
+ activeItemRect && active && activeEntry && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
24021
24251
  ItemInteractionLayer,
24022
24252
  {
24023
24253
  rect: activeItemRect,
24024
24254
  state: toolbarState,
24025
- toolbar: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
24255
+ toolbar: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
24026
24256
  CarouselSlideToolbar,
24027
24257
  {
24028
24258
  pending,
@@ -24067,7 +24297,7 @@ function AiFadeCarouselOverlay({
24067
24297
  }
24068
24298
 
24069
24299
  // src/OhhwellsBridge.tsx
24070
- var import_react_dom6 = require("react-dom");
24300
+ var import_react_dom7 = require("react-dom");
24071
24301
  var import_navigation4 = require("next/navigation");
24072
24302
 
24073
24303
  // src/lib/seeable.ts
@@ -24265,19 +24495,19 @@ var import_lucide_react17 = require("lucide-react");
24265
24495
 
24266
24496
  // src/ui/link-modal/DestinationBreadcrumb.tsx
24267
24497
  var import_lucide_react14 = require("lucide-react");
24268
- var import_jsx_runtime26 = require("react/jsx-runtime");
24498
+ var import_jsx_runtime27 = require("react/jsx-runtime");
24269
24499
  function DestinationBreadcrumb({
24270
24500
  pageTitle,
24271
24501
  sectionLabel
24272
24502
  }) {
24273
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "flex w-full flex-col gap-2", children: [
24274
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "text-sm font-medium! text-foreground m-0", children: "Destination" }),
24275
- /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "flex items-center gap-3", children: [
24276
- /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "flex items-center gap-2", children: [
24277
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_lucide_react14.File, { size: 16, className: "shrink-0 text-foreground", "aria-hidden": true }),
24278
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "text-sm font-medium leading-none text-foreground!", children: pageTitle })
24503
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "flex w-full flex-col gap-2", children: [
24504
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("p", { className: "text-sm font-medium! text-foreground m-0", children: "Destination" }),
24505
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "flex items-center gap-3", children: [
24506
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "flex items-center gap-2", children: [
24507
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_lucide_react14.File, { size: 16, className: "shrink-0 text-foreground", "aria-hidden": true }),
24508
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "text-sm font-medium leading-none text-foreground!", children: pageTitle })
24279
24509
  ] }),
24280
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
24510
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
24281
24511
  import_lucide_react14.ArrowRight,
24282
24512
  {
24283
24513
  size: 16,
@@ -24285,8 +24515,8 @@ function DestinationBreadcrumb({
24285
24515
  "aria-hidden": true
24286
24516
  }
24287
24517
  ),
24288
- /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
24289
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
24518
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
24519
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
24290
24520
  import_lucide_react14.GalleryVertical,
24291
24521
  {
24292
24522
  size: 16,
@@ -24294,7 +24524,7 @@ function DestinationBreadcrumb({
24294
24524
  "aria-hidden": true
24295
24525
  }
24296
24526
  ),
24297
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "truncate text-sm font-medium leading-none text-foreground", children: sectionLabel })
24527
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "truncate text-sm font-medium leading-none text-foreground", children: sectionLabel })
24298
24528
  ] })
24299
24529
  ] })
24300
24530
  ] });
@@ -24302,22 +24532,22 @@ function DestinationBreadcrumb({
24302
24532
 
24303
24533
  // src/ui/link-modal/SectionTreeItem.tsx
24304
24534
  var import_lucide_react15 = require("lucide-react");
24305
- var import_jsx_runtime27 = require("react/jsx-runtime");
24535
+ var import_jsx_runtime28 = require("react/jsx-runtime");
24306
24536
  function SectionTreeItem({
24307
24537
  section,
24308
24538
  onSelect,
24309
24539
  selected
24310
24540
  }) {
24311
24541
  const interactive = Boolean(onSelect);
24312
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "flex h-9 w-full items-end pl-3", children: [
24313
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
24542
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "flex h-9 w-full items-end pl-3", children: [
24543
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
24314
24544
  "div",
24315
24545
  {
24316
24546
  className: "-mr-px h-9 w-2 shrink-0 rounded-bl-sm border-b border-l border-border mb-4",
24317
24547
  "aria-hidden": true
24318
24548
  }
24319
24549
  ),
24320
- /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
24550
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
24321
24551
  "div",
24322
24552
  {
24323
24553
  role: interactive ? "button" : void 0,
@@ -24335,7 +24565,7 @@ function SectionTreeItem({
24335
24565
  interactive && selected && "border-bridge-primary"
24336
24566
  ),
24337
24567
  children: [
24338
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
24568
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
24339
24569
  import_lucide_react15.GalleryVertical,
24340
24570
  {
24341
24571
  size: 16,
@@ -24343,7 +24573,7 @@ function SectionTreeItem({
24343
24573
  "aria-hidden": true
24344
24574
  }
24345
24575
  ),
24346
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "truncate text-sm font-normal leading-5 text-foreground", children: section.label })
24576
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "truncate text-sm font-normal leading-5 text-foreground", children: section.label })
24347
24577
  ]
24348
24578
  }
24349
24579
  )
@@ -24355,10 +24585,10 @@ var import_react19 = require("react");
24355
24585
 
24356
24586
  // src/ui/input.tsx
24357
24587
  var React11 = __toESM(require("react"), 1);
24358
- var import_jsx_runtime28 = require("react/jsx-runtime");
24588
+ var import_jsx_runtime29 = require("react/jsx-runtime");
24359
24589
  var Input = React11.forwardRef(
24360
24590
  ({ className, type, ...props }, ref) => {
24361
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
24591
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
24362
24592
  "input",
24363
24593
  {
24364
24594
  type,
@@ -24377,9 +24607,9 @@ Input.displayName = "Input";
24377
24607
 
24378
24608
  // src/ui/label.tsx
24379
24609
  var import_radix_ui7 = require("radix-ui");
24380
- var import_jsx_runtime29 = require("react/jsx-runtime");
24610
+ var import_jsx_runtime30 = require("react/jsx-runtime");
24381
24611
  function Label({ className, ...props }) {
24382
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
24612
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
24383
24613
  import_radix_ui7.Label.Root,
24384
24614
  {
24385
24615
  "data-slot": "label",
@@ -24391,11 +24621,11 @@ function Label({ className, ...props }) {
24391
24621
 
24392
24622
  // src/ui/link-modal/UrlOrPageInput.tsx
24393
24623
  var import_lucide_react16 = require("lucide-react");
24394
- var import_jsx_runtime30 = require("react/jsx-runtime");
24624
+ var import_jsx_runtime31 = require("react/jsx-runtime");
24395
24625
  function FieldChevron({
24396
24626
  onClick
24397
24627
  }) {
24398
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
24628
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
24399
24629
  "button",
24400
24630
  {
24401
24631
  type: "button",
@@ -24403,7 +24633,7 @@ function FieldChevron({
24403
24633
  onClick,
24404
24634
  "aria-label": "Open page list",
24405
24635
  tabIndex: -1,
24406
- children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_lucide_react16.ChevronDown, { size: 16 })
24636
+ children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react16.ChevronDown, { size: 16 })
24407
24637
  }
24408
24638
  );
24409
24639
  }
@@ -24464,11 +24694,11 @@ function UrlOrPageInput({
24464
24694
  "data-ohw-link-field flex h-[36px] w-full items-center overflow-hidden rounded-md border bg-background pl-3 pr-3 py-2 outline-none transition-[border-color,box-shadow]",
24465
24695
  urlError ? "border-destructive shadow-[0_0_0_1px_var(--ohw-destructive)]" : isFocused ? "border-bridge-primary shadow-[0_0_0_1px_var(--ohw-primary)]" : "border-input"
24466
24696
  );
24467
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex w-full flex-col gap-2 p-0", children: [
24468
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Label, { htmlFor: inputId, className: cn(urlError && "text-destructive"), children: "Destination" }),
24469
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { ref: rootRef, className: "relative w-full", children: [
24470
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { "data-ohw-link-field": true, className: fieldClassName, children: [
24471
- selectedPage ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "flex shrink-0 items-center pr-2", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
24697
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex w-full flex-col gap-2 p-0", children: [
24698
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Label, { htmlFor: inputId, className: cn(urlError && "text-destructive"), children: "Destination" }),
24699
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { ref: rootRef, className: "relative w-full", children: [
24700
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { "data-ohw-link-field": true, className: fieldClassName, children: [
24701
+ selectedPage ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "flex shrink-0 items-center pr-2", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
24472
24702
  import_lucide_react16.File,
24473
24703
  {
24474
24704
  size: 16,
@@ -24476,7 +24706,7 @@ function UrlOrPageInput({
24476
24706
  "aria-hidden": true
24477
24707
  }
24478
24708
  ) }) : null,
24479
- readOnly ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "min-w-0 flex-1 truncate text-sm leading-5 text-foreground", children: selectedPage?.title ?? value }) : /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
24709
+ readOnly ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "min-w-0 flex-1 truncate text-sm leading-5 text-foreground", children: selectedPage?.title ?? value }) : /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
24480
24710
  Input,
24481
24711
  {
24482
24712
  ref: inputRef,
@@ -24502,7 +24732,7 @@ function UrlOrPageInput({
24502
24732
  )
24503
24733
  }
24504
24734
  ),
24505
- selectedPage && !readOnly ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
24735
+ selectedPage && !readOnly ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
24506
24736
  "button",
24507
24737
  {
24508
24738
  type: "button",
@@ -24510,26 +24740,26 @@ function UrlOrPageInput({
24510
24740
  onMouseDown: clearSelection,
24511
24741
  "aria-label": "Clear selected page",
24512
24742
  tabIndex: -1,
24513
- children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_lucide_react16.X, { size: 16, "aria-hidden": true })
24743
+ children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react16.X, { size: 16, "aria-hidden": true })
24514
24744
  }
24515
24745
  ) : null,
24516
- !readOnly ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(FieldChevron, { onClick: toggleDropdown }) : null
24746
+ !readOnly ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(FieldChevron, { onClick: toggleDropdown }) : null
24517
24747
  ] }),
24518
- dropdownOpen && !readOnly && filteredPages.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
24748
+ dropdownOpen && !readOnly && filteredPages.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
24519
24749
  "div",
24520
24750
  {
24521
24751
  "data-ohw-link-page-dropdown": "",
24522
24752
  className: "absolute left-0 right-0 top-[calc(100%+4px)] z-50 max-h-48 overflow-auto rounded-lg border border-border bg-popover py-1 shadow-lg",
24523
24753
  onMouseDown: (e) => e.preventDefault(),
24524
- children: filteredPages.map((page) => /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
24754
+ children: filteredPages.map((page) => /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
24525
24755
  "button",
24526
24756
  {
24527
24757
  type: "button",
24528
24758
  className: "flex h-9 w-full items-center gap-2 border-0 bg-transparent px-3 text-left text-sm leading-5 text-foreground outline-none hover:bg-muted",
24529
24759
  onClick: () => onPageSelect(page),
24530
24760
  children: [
24531
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_lucide_react16.File, { size: 16, className: "shrink-0", "aria-hidden": true }),
24532
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "truncate", children: page.title })
24761
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react16.File, { size: 16, className: "shrink-0", "aria-hidden": true }),
24762
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "truncate", children: page.title })
24533
24763
  ]
24534
24764
  },
24535
24765
  page.path
@@ -24537,34 +24767,34 @@ function UrlOrPageInput({
24537
24767
  }
24538
24768
  ) : null
24539
24769
  ] }),
24540
- urlError ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("p", { className: "text-sm font-medium text-destructive", children: urlError }) : null
24770
+ urlError ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("p", { className: "text-sm font-medium text-destructive", children: urlError }) : null
24541
24771
  ] });
24542
24772
  }
24543
24773
 
24544
24774
  // src/ui/link-modal/LinkEditorPanel.tsx
24545
- var import_jsx_runtime31 = require("react/jsx-runtime");
24775
+ var import_jsx_runtime32 = require("react/jsx-runtime");
24546
24776
  function LinkEditorPanel({ state, onClose }) {
24547
24777
  const isCancel = state.secondaryLabel === "Cancel" || state.secondaryLabel === "Back to sections";
24548
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_jsx_runtime31.Fragment, { children: [
24549
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(DialogClose, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
24778
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_jsx_runtime32.Fragment, { children: [
24779
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DialogClose, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
24550
24780
  "button",
24551
24781
  {
24552
24782
  type: "button",
24553
24783
  className: "absolute right-[9px] top-[9px] rounded-sm p-1.5 text-foreground hover:bg-muted/50 h-7",
24554
24784
  "aria-label": "Close",
24555
24785
  onClick: onClose,
24556
- children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react17.X, { size: 16, "aria-hidden": true })
24786
+ children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_lucide_react17.X, { size: 16, "aria-hidden": true })
24557
24787
  }
24558
24788
  ) }),
24559
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(DialogHeader, { className: "w-full gap-1.5 p-6 pr-12", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(DialogTitle, { className: "m-0 w-full break-words", children: state.title }) }),
24560
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex w-full flex-col gap-3 px-6 pb-8 pt-1", children: [
24561
- state.showBreadcrumb && state.selectedPage && state.selectedSection ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
24789
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DialogHeader, { className: "w-full gap-1.5 p-6 pr-12", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DialogTitle, { className: "m-0 w-full break-words", children: state.title }) }),
24790
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex w-full flex-col gap-3 px-6 pb-8 pt-1", children: [
24791
+ state.showBreadcrumb && state.selectedPage && state.selectedSection ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
24562
24792
  DestinationBreadcrumb,
24563
24793
  {
24564
24794
  pageTitle: state.selectedPage.title,
24565
24795
  sectionLabel: state.selectedSection.label
24566
24796
  }
24567
- ) : /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
24797
+ ) : /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
24568
24798
  UrlOrPageInput,
24569
24799
  {
24570
24800
  value: state.searchValue,
@@ -24577,8 +24807,8 @@ function LinkEditorPanel({ state, onClose }) {
24577
24807
  urlError: state.urlError
24578
24808
  }
24579
24809
  ),
24580
- state.showChooseSection ? /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex flex-col justify-center gap-2", children: [
24581
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
24810
+ state.showChooseSection ? /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex flex-col justify-center gap-2", children: [
24811
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
24582
24812
  Button,
24583
24813
  {
24584
24814
  type: "button",
@@ -24589,15 +24819,15 @@ function LinkEditorPanel({ state, onClose }) {
24589
24819
  children: "Choose a section"
24590
24820
  }
24591
24821
  ),
24592
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex items-center gap-1 text-sm text-muted-foreground", children: [
24593
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react17.Info, { size: 16, className: "shrink-0", "aria-hidden": true }),
24594
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { children: "Pick a section this link should scroll to." })
24822
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex items-center gap-1 text-sm text-muted-foreground", children: [
24823
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_lucide_react17.Info, { size: 16, className: "shrink-0", "aria-hidden": true }),
24824
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { children: "Pick a section this link should scroll to." })
24595
24825
  ] })
24596
24826
  ] }) : null,
24597
- state.showSectionRow && state.selectedSection ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(SectionTreeItem, { section: state.selectedSection, selected: true }) : null
24827
+ state.showSectionRow && state.selectedSection ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(SectionTreeItem, { section: state.selectedSection, selected: true }) : null
24598
24828
  ] }),
24599
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(DialogFooter, { className: "w-full px-6 pb-6", children: [
24600
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
24829
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(DialogFooter, { className: "w-full px-6 pb-6", children: [
24830
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
24601
24831
  Button,
24602
24832
  {
24603
24833
  type: "button",
@@ -24612,7 +24842,7 @@ function LinkEditorPanel({ state, onClose }) {
24612
24842
  children: state.secondaryLabel
24613
24843
  }
24614
24844
  ),
24615
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
24845
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
24616
24846
  Button,
24617
24847
  {
24618
24848
  type: "button",
@@ -24632,7 +24862,7 @@ function LinkEditorPanel({ state, onClose }) {
24632
24862
 
24633
24863
  // src/ui/link-modal/SectionPickerOverlay.tsx
24634
24864
  var import_react20 = require("react");
24635
- var import_react_dom4 = require("react-dom");
24865
+ var import_react_dom5 = require("react-dom");
24636
24866
  var import_lucide_react18 = require("lucide-react");
24637
24867
  var import_navigation3 = require("next/navigation");
24638
24868
 
@@ -24655,7 +24885,7 @@ function getIframeChromeClip(parentScroll) {
24655
24885
  }
24656
24886
 
24657
24887
  // src/ui/link-modal/SectionPickerOverlay.tsx
24658
- var import_jsx_runtime32 = require("react/jsx-runtime");
24888
+ var import_jsx_runtime33 = require("react/jsx-runtime");
24659
24889
  var DIM_OVERLAY = "rgba(0, 0, 0, 0.45)";
24660
24890
  function rectsEqual(a, b) {
24661
24891
  if (a.size !== b.size) return false;
@@ -24885,8 +25115,8 @@ function SectionPickerOverlay({
24885
25115
  }, [onBack]);
24886
25116
  const portalRoot = typeof document !== "undefined" ? document.querySelector("[data-ohw-bridge-root]") ?? document.body : null;
24887
25117
  if (!portalRoot) return null;
24888
- return (0, import_react_dom4.createPortal)(
24889
- /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
25118
+ return (0, import_react_dom5.createPortal)(
25119
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
24890
25120
  "div",
24891
25121
  {
24892
25122
  "data-ohw-section-picker": "",
@@ -24896,12 +25126,12 @@ function SectionPickerOverlay({
24896
25126
  role: "dialog",
24897
25127
  "aria-label": "Choose a section",
24898
25128
  children: [
24899
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
25129
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
24900
25130
  "div",
24901
25131
  {
24902
25132
  className: "pointer-events-auto fixed left-5 z-[2]",
24903
25133
  style: { top: chromeClip.top + 20 },
24904
- children: /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
25134
+ children: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
24905
25135
  Button,
24906
25136
  {
24907
25137
  type: "button",
@@ -24910,14 +25140,14 @@ function SectionPickerOverlay({
24910
25140
  className: "h-8 min-w-0 gap-1 border-border bg-background px-2 py-1.5 shadow-sm hover:bg-muted cursor-pointer",
24911
25141
  onClick: onBack,
24912
25142
  children: [
24913
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_lucide_react18.ArrowLeft, { className: "size-4 shrink-0", "aria-hidden": true }),
25143
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_lucide_react18.ArrowLeft, { className: "size-4 shrink-0", "aria-hidden": true }),
24914
25144
  "Back"
24915
25145
  ]
24916
25146
  }
24917
25147
  )
24918
25148
  }
24919
25149
  ),
24920
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
25150
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
24921
25151
  "div",
24922
25152
  {
24923
25153
  className: "pointer-events-none fixed left-1/2 z-[2] rounded-lg px-4 py-3 text-xs leading-4 tracking-[0.18px] text-white shadow-md",
@@ -24930,7 +25160,7 @@ function SectionPickerOverlay({
24930
25160
  children: "Click on section to select"
24931
25161
  }
24932
25162
  ),
24933
- !isOnTargetPage ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
25163
+ !isOnTargetPage ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
24934
25164
  "div",
24935
25165
  {
24936
25166
  className: "pointer-events-none fixed left-1/2 z-[1] -translate-x-1/2 rounded-md px-3 py-2 text-sm text-muted-foreground shadow-sm",
@@ -24938,14 +25168,14 @@ function SectionPickerOverlay({
24938
25168
  children: "Loading page preview\u2026"
24939
25169
  }
24940
25170
  ) : null,
24941
- isOnTargetPage && liveSections.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "pointer-events-auto fixed inset-0 z-[1] flex items-center justify-center bg-muted/40", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("p", { className: "text-sm text-muted-foreground", children: "No sections found on this page." }) }) : null,
25171
+ isOnTargetPage && liveSections.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "pointer-events-auto fixed inset-0 z-[1] flex items-center justify-center bg-muted/40", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { className: "text-sm text-muted-foreground", children: "No sections found on this page." }) }) : null,
24942
25172
  isOnTargetPage ? liveSections.map((section) => {
24943
25173
  const rect = rects.get(section.id);
24944
25174
  if (!rect || rect.width <= 0 || rect.height <= 0) return null;
24945
25175
  const isSelected = selectedId === section.id;
24946
25176
  const isHovered = hoveredId === section.id;
24947
25177
  const isLit = isSelected || isHovered;
24948
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
25178
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
24949
25179
  "button",
24950
25180
  {
24951
25181
  type: "button",
@@ -24960,7 +25190,7 @@ function SectionPickerOverlay({
24960
25190
  "aria-label": `Select section ${section.label}`,
24961
25191
  onClick: () => handleSelect(section),
24962
25192
  children: [
24963
- isLit ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
25193
+ isLit ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
24964
25194
  "span",
24965
25195
  {
24966
25196
  className: "pointer-events-none absolute",
@@ -24973,13 +25203,13 @@ function SectionPickerOverlay({
24973
25203
  "aria-hidden": true
24974
25204
  }
24975
25205
  ) : null,
24976
- isSelected ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
25206
+ isSelected ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
24977
25207
  "span",
24978
25208
  {
24979
25209
  className: "absolute right-3 top-3 flex size-8 items-center justify-center rounded-full text-white",
24980
25210
  style: { backgroundColor: "var(--ohw-primary, #0885fe)" },
24981
25211
  "aria-hidden": true,
24982
- children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_lucide_react18.Check, { className: "size-5" })
25212
+ children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_lucide_react18.Check, { className: "size-5" })
24983
25213
  }
24984
25214
  ) : null
24985
25215
  ]
@@ -25159,7 +25389,7 @@ function useLinkModalState({
25159
25389
  }
25160
25390
 
25161
25391
  // src/ui/link-modal/LinkPopover.tsx
25162
- var import_jsx_runtime33 = require("react/jsx-runtime");
25392
+ var import_jsx_runtime34 = require("react/jsx-runtime");
25163
25393
  function postToParent(data) {
25164
25394
  window.parent?.postMessage(data, "*");
25165
25395
  }
@@ -25255,15 +25485,15 @@ function LinkPopover({
25255
25485
  );
25256
25486
  };
25257
25487
  }, [open, sectionPickerActive]);
25258
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(import_jsx_runtime33.Fragment, { children: [
25259
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
25488
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_jsx_runtime34.Fragment, { children: [
25489
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
25260
25490
  Dialog2,
25261
25491
  {
25262
25492
  open: open && !sectionPickerActive,
25263
25493
  onOpenChange: (next) => {
25264
25494
  if (!next) onClose?.();
25265
25495
  },
25266
- children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
25496
+ children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
25267
25497
  DialogContent,
25268
25498
  {
25269
25499
  ref: panelRef,
@@ -25273,12 +25503,12 @@ function LinkPopover({
25273
25503
  "data-ohw-bridge": "",
25274
25504
  showCloseButton: false,
25275
25505
  className: "gap-0 p-0 w-full max-w-[448px] pointer-events-auto z-[2147483646] overflow-visible",
25276
- children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(LinkEditorPanel, { state, onClose })
25506
+ children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(LinkEditorPanel, { state, onClose })
25277
25507
  }
25278
25508
  )
25279
25509
  }
25280
25510
  ),
25281
- sectionPickerActive && state.selectedPage ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
25511
+ sectionPickerActive && state.selectedPage ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
25282
25512
  SectionPickerOverlay,
25283
25513
  {
25284
25514
  pagePath: state.selectedPage.path,
@@ -25432,7 +25662,7 @@ function addFooterColumnWithPersist({
25432
25662
  // src/ui/FloatingPanel.tsx
25433
25663
  var import_react23 = require("react");
25434
25664
  var import_lucide_react19 = require("lucide-react");
25435
- var import_jsx_runtime34 = require("react/jsx-runtime");
25665
+ var import_jsx_runtime35 = require("react/jsx-runtime");
25436
25666
  var PANEL_WIDTH = 256;
25437
25667
  var EDGE_MARGIN = 16;
25438
25668
  var HEADER_MIN = 56;
@@ -25604,7 +25834,7 @@ function FloatingPanel({
25604
25834
  }, [open]);
25605
25835
  (0, import_react23.useEffect)(() => () => document.documentElement.removeAttribute("data-ohw-panel-dragging"), []);
25606
25836
  if (!open) return null;
25607
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
25837
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
25608
25838
  "div",
25609
25839
  {
25610
25840
  ref: panelRef,
@@ -25621,7 +25851,7 @@ function FloatingPanel({
25621
25851
  onPointerDown: (e) => e.stopPropagation(),
25622
25852
  onClick: (e) => e.stopPropagation(),
25623
25853
  children: [
25624
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
25854
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
25625
25855
  "div",
25626
25856
  {
25627
25857
  "data-ohw-floating-panel-header": "",
@@ -25631,14 +25861,14 @@ function FloatingPanel({
25631
25861
  onPointerUp: endDrag,
25632
25862
  onPointerCancel: endDrag,
25633
25863
  children: [
25634
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-1.5", children: [
25635
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex items-center gap-2", children: [
25636
- icon ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "shrink-0 text-foreground", children: icon }) : null,
25637
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("p", { className: "min-w-0 flex-1 text-lg font-semibold leading-7 text-foreground", children: title })
25864
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-1.5", children: [
25865
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex items-center gap-2", children: [
25866
+ icon ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "shrink-0 text-foreground", children: icon }) : null,
25867
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("p", { className: "min-w-0 flex-1 text-lg font-semibold leading-7 text-foreground", children: title })
25638
25868
  ] }),
25639
- context ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("p", { className: "w-full text-sm leading-5 text-muted-foreground", children: context }) : null
25869
+ context ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("p", { className: "w-full text-sm leading-5 text-muted-foreground", children: context }) : null
25640
25870
  ] }),
25641
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
25871
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
25642
25872
  "button",
25643
25873
  {
25644
25874
  type: "button",
@@ -25650,13 +25880,13 @@ function FloatingPanel({
25650
25880
  onClose();
25651
25881
  },
25652
25882
  onPointerDown: (e) => e.stopPropagation(),
25653
- children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_lucide_react19.X, { size: 16, "aria-hidden": true })
25883
+ children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_lucide_react19.X, { size: 16, "aria-hidden": true })
25654
25884
  }
25655
25885
  )
25656
25886
  ]
25657
25887
  }
25658
25888
  ),
25659
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
25889
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
25660
25890
  "div",
25661
25891
  {
25662
25892
  "data-ohw-floating-panel-body": "",
@@ -25674,15 +25904,15 @@ function FloatingPanel({
25674
25904
  }
25675
25905
 
25676
25906
  // src/ui/socials-display-panel.tsx
25677
- var import_jsx_runtime35 = require("react/jsx-runtime");
25907
+ var import_jsx_runtime36 = require("react/jsx-runtime");
25678
25908
  function DisplaySwitch({
25679
25909
  label,
25680
25910
  checked,
25681
25911
  disabled,
25682
25912
  onChange
25683
25913
  }) {
25684
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex w-full items-center gap-2", children: [
25685
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
25914
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "flex w-full items-center gap-2", children: [
25915
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
25686
25916
  "span",
25687
25917
  {
25688
25918
  className: cn(
@@ -25692,7 +25922,7 @@ function DisplaySwitch({
25692
25922
  children: label
25693
25923
  }
25694
25924
  ),
25695
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
25925
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
25696
25926
  "button",
25697
25927
  {
25698
25928
  type: "button",
@@ -25706,7 +25936,7 @@ function DisplaySwitch({
25706
25936
  checked ? "bg-bridge-primary" : "bg-primary-50",
25707
25937
  disabled ? "cursor-default opacity-50" : "cursor-pointer"
25708
25938
  ),
25709
- children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
25939
+ children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
25710
25940
  "span",
25711
25941
  {
25712
25942
  className: cn(
@@ -25720,8 +25950,8 @@ function DisplaySwitch({
25720
25950
  ] });
25721
25951
  }
25722
25952
  function SocialsDisplayPanel({ display, onChange, className }) {
25723
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: cn("flex w-full flex-col gap-3", className), children: [
25724
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
25953
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: cn("flex w-full flex-col gap-3", className), children: [
25954
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
25725
25955
  DisplaySwitch,
25726
25956
  {
25727
25957
  label: "Text",
@@ -25730,7 +25960,7 @@ function SocialsDisplayPanel({ display, onChange, className }) {
25730
25960
  onChange: (text) => onChange({ ...display, text })
25731
25961
  }
25732
25962
  ),
25733
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
25963
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
25734
25964
  DisplaySwitch,
25735
25965
  {
25736
25966
  label: "Icon",
@@ -25744,7 +25974,7 @@ function SocialsDisplayPanel({ display, onChange, className }) {
25744
25974
 
25745
25975
  // src/ui/button-style-panel.tsx
25746
25976
  var import_lucide_react20 = require("lucide-react");
25747
- var import_jsx_runtime36 = require("react/jsx-runtime");
25977
+ var import_jsx_runtime37 = require("react/jsx-runtime");
25748
25978
  var SIZE_LABEL = { s: "S", m: "M", l: "L" };
25749
25979
  function ButtonStylePanel({
25750
25980
  variants,
@@ -25758,15 +25988,15 @@ function ButtonStylePanel({
25758
25988
  }) {
25759
25989
  const preview = scaleGeometry(sizes.m, 0.75);
25760
25990
  const label = previewLabel.trim() || "Book Now";
25761
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "flex w-full flex-col gap-5", children: [
25762
- /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("section", { className: "flex w-full flex-col gap-2.5", children: [
25763
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("h3", { className: "text-xs font-semibold uppercase leading-4 tracking-[0.6px] text-stone-500 font-sans", children: "Variants" }),
25764
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "flex w-full flex-col gap-2.5", children: BUTTON_VARIANT_IDS.map((id) => {
25991
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "flex w-full flex-col gap-5", children: [
25992
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("section", { className: "flex w-full flex-col gap-2.5", children: [
25993
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("h3", { className: "text-xs font-semibold uppercase leading-4 tracking-[0.6px] text-stone-500 font-sans", children: "Variants" }),
25994
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "flex w-full flex-col gap-2.5", children: BUTTON_VARIANT_IDS.map((id) => {
25765
25995
  const chrome = variants[id];
25766
25996
  const selected = id === variant;
25767
25997
  const hasBorder = parseFloat(chrome.borderWidth) > 0;
25768
25998
  const cardSlot = previewSlotForChrome(chrome, slotBackground);
25769
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
25999
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
25770
26000
  "button",
25771
26001
  {
25772
26002
  type: "button",
@@ -25782,12 +26012,12 @@ function ButtonStylePanel({
25782
26012
  selected ? "border-2 border-primary" : "border border-border"
25783
26013
  ),
25784
26014
  children: [
25785
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
26015
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
25786
26016
  "div",
25787
26017
  {
25788
26018
  className: "flex w-full items-center justify-center py-4",
25789
26019
  style: { background: cardSlot },
25790
- children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
26020
+ children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
25791
26021
  "span",
25792
26022
  {
25793
26023
  className: "inline-flex items-center justify-center whitespace-nowrap font-semibold uppercase leading-none",
@@ -25809,12 +26039,12 @@ function ButtonStylePanel({
25809
26039
  )
25810
26040
  }
25811
26041
  ),
25812
- selected ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
26042
+ selected ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
25813
26043
  "span",
25814
26044
  {
25815
26045
  className: "absolute right-0.5 top-0.5 flex size-5 items-center justify-center rounded-full bg-primary text-primary-foreground",
25816
26046
  "aria-hidden": true,
25817
- children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_lucide_react20.Check, { className: "size-3", strokeWidth: 3 })
26047
+ children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_lucide_react20.Check, { className: "size-3", strokeWidth: 3 })
25818
26048
  }
25819
26049
  ) : null
25820
26050
  ]
@@ -25823,9 +26053,9 @@ function ButtonStylePanel({
25823
26053
  );
25824
26054
  }) })
25825
26055
  ] }),
25826
- /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("section", { className: "flex w-full flex-col gap-2.5", children: [
25827
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("h3", { className: "text-xs font-semibold uppercase leading-4 tracking-[0.6px] text-stone-500 font-sans", children: "Size" }),
25828
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
26056
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("section", { className: "flex w-full flex-col gap-2.5", children: [
26057
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("h3", { className: "text-xs font-semibold uppercase leading-4 tracking-[0.6px] text-stone-500 font-sans", children: "Size" }),
26058
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
25829
26059
  "div",
25830
26060
  {
25831
26061
  className: "flex w-full items-start rounded-lg bg-stone-100 p-1",
@@ -25833,7 +26063,7 @@ function ButtonStylePanel({
25833
26063
  "aria-label": "Size",
25834
26064
  children: BUTTON_SIZE_IDS.map((id) => {
25835
26065
  const selected = id === size;
25836
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
26066
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
25837
26067
  "button",
25838
26068
  {
25839
26069
  type: "button",
@@ -26847,7 +27077,7 @@ function useSectionDrag({
26847
27077
 
26848
27078
  // src/ui/footer-container-chrome.tsx
26849
27079
  var import_lucide_react21 = require("lucide-react");
26850
- var import_jsx_runtime37 = require("react/jsx-runtime");
27080
+ var import_jsx_runtime38 = require("react/jsx-runtime");
26851
27081
  function FooterContainerChrome({
26852
27082
  rect,
26853
27083
  onAdd,
@@ -26855,7 +27085,7 @@ function FooterContainerChrome({
26855
27085
  }) {
26856
27086
  const chromeGap = 6;
26857
27087
  const buttonMargin = 7;
26858
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
27088
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
26859
27089
  "div",
26860
27090
  {
26861
27091
  "data-ohw-footer-container-chrome": "",
@@ -26867,8 +27097,8 @@ function FooterContainerChrome({
26867
27097
  width: rect.width + chromeGap * 2,
26868
27098
  height: rect.height + chromeGap * 2
26869
27099
  },
26870
- children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(Tooltip, { children: [
26871
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
27100
+ children: /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(Tooltip, { children: [
27101
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
26872
27102
  "button",
26873
27103
  {
26874
27104
  type: "button",
@@ -26887,10 +27117,10 @@ function FooterContainerChrome({
26887
27117
  if (addDisabled) return;
26888
27118
  onAdd();
26889
27119
  },
26890
- children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_lucide_react21.Plus, { className: "size-4 shrink-0 text-foreground", "aria-hidden": true })
27120
+ children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_lucide_react21.Plus, { className: "size-4 shrink-0 text-foreground", "aria-hidden": true })
26891
27121
  }
26892
27122
  ) }),
26893
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(TooltipContent, { side: "bottom", sideOffset: 9, children: addDisabled ? "Maximum columns reached" : "Add item" })
27123
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(TooltipContent, { side: "bottom", sideOffset: 9, children: addDisabled ? "Maximum columns reached" : "Add item" })
26894
27124
  ] })
26895
27125
  }
26896
27126
  ) });
@@ -27295,13 +27525,13 @@ function retargetPageLinks(change, deps) {
27295
27525
 
27296
27526
  // src/ui/navbar-container-chrome.tsx
27297
27527
  var import_lucide_react22 = require("lucide-react");
27298
- var import_jsx_runtime38 = require("react/jsx-runtime");
27528
+ var import_jsx_runtime39 = require("react/jsx-runtime");
27299
27529
  function NavbarContainerChrome({
27300
27530
  rect,
27301
27531
  onAdd
27302
27532
  }) {
27303
27533
  const chromeGap = 6;
27304
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
27534
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
27305
27535
  "div",
27306
27536
  {
27307
27537
  "data-ohw-navbar-container-chrome": "",
@@ -27313,7 +27543,7 @@ function NavbarContainerChrome({
27313
27543
  width: rect.width + chromeGap * 2,
27314
27544
  height: rect.height + chromeGap * 2
27315
27545
  },
27316
- children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
27546
+ children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
27317
27547
  "button",
27318
27548
  {
27319
27549
  type: "button",
@@ -27330,7 +27560,7 @@ function NavbarContainerChrome({
27330
27560
  e.stopPropagation();
27331
27561
  onAdd();
27332
27562
  },
27333
- children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_lucide_react22.Plus, { className: "size-4 shrink-0 text-foreground", "aria-hidden": true })
27563
+ children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_lucide_react22.Plus, { className: "size-4 shrink-0 text-foreground", "aria-hidden": true })
27334
27564
  }
27335
27565
  )
27336
27566
  }
@@ -27339,7 +27569,7 @@ function NavbarContainerChrome({
27339
27569
 
27340
27570
  // src/ui/drop-indicator.tsx
27341
27571
  var React12 = __toESM(require("react"), 1);
27342
- var import_jsx_runtime39 = require("react/jsx-runtime");
27572
+ var import_jsx_runtime40 = require("react/jsx-runtime");
27343
27573
  var dropIndicatorVariants = cva(
27344
27574
  "ov-gap-line pointer-events-none shrink-0 transition-opacity duration-150",
27345
27575
  {
@@ -27363,7 +27593,7 @@ var dropIndicatorVariants = cva(
27363
27593
  );
27364
27594
  var DropIndicator = React12.forwardRef(
27365
27595
  ({ className, direction, state, ...props }, ref) => {
27366
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
27596
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
27367
27597
  "div",
27368
27598
  {
27369
27599
  ref,
@@ -27380,7 +27610,7 @@ var DropIndicator = React12.forwardRef(
27380
27610
  DropIndicator.displayName = "DropIndicator";
27381
27611
 
27382
27612
  // src/ui/badge.tsx
27383
- var import_jsx_runtime40 = require("react/jsx-runtime");
27613
+ var import_jsx_runtime41 = require("react/jsx-runtime");
27384
27614
  var badgeVariants = cva(
27385
27615
  "inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
27386
27616
  {
@@ -27398,12 +27628,12 @@ var badgeVariants = cva(
27398
27628
  }
27399
27629
  );
27400
27630
  function Badge({ className, variant, ...props }) {
27401
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: cn(badgeVariants({ variant }), className), ...props });
27631
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: cn(badgeVariants({ variant }), className), ...props });
27402
27632
  }
27403
27633
 
27404
27634
  // src/OhhwellsBridge.tsx
27405
27635
  var import_lucide_react23 = require("lucide-react");
27406
- var import_jsx_runtime41 = require("react/jsx-runtime");
27636
+ var import_jsx_runtime42 = require("react/jsx-runtime");
27407
27637
  var PRIMARY7 = "#0885FE";
27408
27638
  var IMAGE_FADE_MS = 300;
27409
27639
  var MEDIA_SETTLE_TIMEOUT_MS = 2500;
@@ -27522,11 +27752,11 @@ function duplicateSchedulingWidget(instanceId, scheduleId) {
27522
27752
  container.dataset.ohwInstance = sectionId;
27523
27753
  sourceWrapper.insertAdjacentElement("afterend", container);
27524
27754
  try {
27525
- const root = (0, import_client3.createRoot)(container);
27755
+ const root = (0, import_client4.createRoot)(container);
27526
27756
  schedulingRoots.set(container, root);
27527
- (0, import_react_dom5.flushSync)(() => {
27757
+ (0, import_react_dom6.flushSync)(() => {
27528
27758
  root.render(
27529
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
27759
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
27530
27760
  SchedulingWidget,
27531
27761
  {
27532
27762
  notifyOnConnect: false,
@@ -27650,11 +27880,11 @@ function mountSchedulingWidget(anchorId, notifyOnConnect = false, scheduleId, be
27650
27880
  tail.insertAdjacentElement("afterend", container);
27651
27881
  }
27652
27882
  try {
27653
- const root = (0, import_client3.createRoot)(container);
27883
+ const root = (0, import_client4.createRoot)(container);
27654
27884
  schedulingRoots.set(container, root);
27655
- (0, import_react_dom5.flushSync)(() => {
27885
+ (0, import_react_dom6.flushSync)(() => {
27656
27886
  root.render(
27657
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
27887
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
27658
27888
  SchedulingWidget,
27659
27889
  {
27660
27890
  notifyOnConnect,
@@ -28433,7 +28663,7 @@ function EditGlowChrome({
28433
28663
  hideHandle = false
28434
28664
  }) {
28435
28665
  const GAP = SELECTION_CHROME_GAP2;
28436
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
28666
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
28437
28667
  "div",
28438
28668
  {
28439
28669
  ref: elRef,
@@ -28448,7 +28678,7 @@ function EditGlowChrome({
28448
28678
  zIndex: 2147483646
28449
28679
  },
28450
28680
  children: [
28451
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
28681
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
28452
28682
  "div",
28453
28683
  {
28454
28684
  style: {
@@ -28462,7 +28692,7 @@ function EditGlowChrome({
28462
28692
  }
28463
28693
  }
28464
28694
  ),
28465
- reorderHrefKey && !hideHandle && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
28695
+ reorderHrefKey && !hideHandle && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
28466
28696
  "div",
28467
28697
  {
28468
28698
  "data-ohw-drag-handle-container": "",
@@ -28474,7 +28704,7 @@ function EditGlowChrome({
28474
28704
  transform: "translate(calc(-100% - 7px), -50%)",
28475
28705
  pointerEvents: dragDisabled ? "none" : "auto"
28476
28706
  },
28477
- children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
28707
+ children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
28478
28708
  DragHandle,
28479
28709
  {
28480
28710
  "aria-label": `Reorder ${reorderHrefKey}`,
@@ -28681,7 +28911,7 @@ function FloatingToolbar({
28681
28911
  return () => ro.disconnect();
28682
28912
  }, [showEditLink, showDelete, activeCommands]);
28683
28913
  const { top, left, transform } = calcToolbarPos(rect, parentScroll, measuredW);
28684
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
28914
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
28685
28915
  "div",
28686
28916
  {
28687
28917
  ref: setRefs,
@@ -28693,12 +28923,12 @@ function FloatingToolbar({
28693
28923
  zIndex: 2147483647,
28694
28924
  pointerEvents: "auto"
28695
28925
  },
28696
- children: /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(CustomToolbar, { children: [
28697
- TOOLBAR_GROUPS.map((btns, gi) => /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(import_react27.default.Fragment, { children: [
28698
- gi > 0 && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(CustomToolbarDivider, {}),
28926
+ children: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(CustomToolbar, { children: [
28927
+ TOOLBAR_GROUPS.map((btns, gi) => /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_react27.default.Fragment, { children: [
28928
+ gi > 0 && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(CustomToolbarDivider, {}),
28699
28929
  btns.map((btn) => {
28700
28930
  const isActive = activeCommands.has(btn.cmd);
28701
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
28931
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
28702
28932
  CustomToolbarButton,
28703
28933
  {
28704
28934
  title: btn.title,
@@ -28707,7 +28937,7 @@ function FloatingToolbar({
28707
28937
  e.preventDefault();
28708
28938
  onCommand(btn.cmd);
28709
28939
  },
28710
- children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
28940
+ children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
28711
28941
  "svg",
28712
28942
  {
28713
28943
  width: "16",
@@ -28728,7 +28958,7 @@ function FloatingToolbar({
28728
28958
  );
28729
28959
  })
28730
28960
  ] }, gi)),
28731
- showEditLink ? /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
28961
+ showEditLink ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
28732
28962
  CustomToolbarButton,
28733
28963
  {
28734
28964
  type: "button",
@@ -28742,12 +28972,12 @@ function FloatingToolbar({
28742
28972
  e.preventDefault();
28743
28973
  e.stopPropagation();
28744
28974
  },
28745
- children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_lucide_react23.Link, { className: "size-4 shrink-0", "aria-hidden": true })
28975
+ children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_lucide_react23.Link, { className: "size-4 shrink-0", "aria-hidden": true })
28746
28976
  }
28747
28977
  ) : null,
28748
- showDelete ? /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(import_jsx_runtime41.Fragment, { children: [
28749
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(CustomToolbarDivider, {}),
28750
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
28978
+ showDelete ? /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_jsx_runtime42.Fragment, { children: [
28979
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(CustomToolbarDivider, {}),
28980
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
28751
28981
  CustomToolbarButton,
28752
28982
  {
28753
28983
  type: "button",
@@ -28762,7 +28992,7 @@ function FloatingToolbar({
28762
28992
  e.preventDefault();
28763
28993
  e.stopPropagation();
28764
28994
  },
28765
- children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_lucide_react23.Trash2, { className: "size-4 shrink-0", "aria-hidden": true })
28995
+ children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_lucide_react23.Trash2, { className: "size-4 shrink-0", "aria-hidden": true })
28766
28996
  }
28767
28997
  )
28768
28998
  ] }) : null
@@ -28780,7 +29010,7 @@ function StateToggle({
28780
29010
  states,
28781
29011
  onStateChange
28782
29012
  }) {
28783
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
29013
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
28784
29014
  ToggleGroup,
28785
29015
  {
28786
29016
  "data-ohw-state-toggle": "",
@@ -28794,7 +29024,7 @@ function StateToggle({
28794
29024
  left: rect.right - 8,
28795
29025
  transform: "translateX(-100%)"
28796
29026
  },
28797
- children: states.map((state) => /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(ToggleGroupItem, { value: state, size: "sm", children: state }, state))
29027
+ children: states.map((state) => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(ToggleGroupItem, { value: state, size: "sm", children: state }, state))
28798
29028
  }
28799
29029
  );
28800
29030
  }
@@ -28802,7 +29032,7 @@ var contentCache = /* @__PURE__ */ new Map();
28802
29032
  var fetchedContentPaths = /* @__PURE__ */ new Set();
28803
29033
  var brandingCache = /* @__PURE__ */ new Map();
28804
29034
  function OhwBrandMark() {
28805
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
29035
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
28806
29036
  "svg",
28807
29037
  {
28808
29038
  width: "16",
@@ -28813,7 +29043,7 @@ function OhwBrandMark() {
28813
29043
  style: { display: "block", flexShrink: 0 },
28814
29044
  xmlns: "http://www.w3.org/2000/svg",
28815
29045
  children: [
28816
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
29046
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
28817
29047
  "mask",
28818
29048
  {
28819
29049
  id: "ohw-badge-mark",
@@ -28823,15 +29053,15 @@ function OhwBrandMark() {
28823
29053
  y: "0",
28824
29054
  width: "48",
28825
29055
  height: "48",
28826
- children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("path", { d: "M23.8741 48C37.0594 48 47.7481 37.2548 47.7481 24C47.7481 10.7452 37.0594 0 23.8741 0C10.6888 0 0 10.7452 0 24C0 37.2548 10.6888 48 23.8741 48Z", fill: "white" })
29056
+ children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("path", { d: "M23.8741 48C37.0594 48 47.7481 37.2548 47.7481 24C47.7481 10.7452 37.0594 0 23.8741 0C10.6888 0 0 10.7452 0 24C0 37.2548 10.6888 48 23.8741 48Z", fill: "white" })
28827
29057
  }
28828
29058
  ),
28829
- /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("g", { mask: "url(#ohw-badge-mark)", children: [
28830
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("path", { d: "M23.8731 48.0497C37.0584 48.0497 47.7472 37.3046 47.7472 24.0497C47.7472 10.7949 37.0584 0.0497208 23.8731 0.0497208C10.6878 0.0497208 -0.000976562 10.7949 -0.000976562 24.0497C-0.000976562 37.3046 10.6878 48.0497 23.8731 48.0497Z", fill: "#0078E5" }),
28831
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("path", { d: "M17.1307 14.7172C13.1687 14.7172 9.38102 18.1154 8.65114 22.34C8.38885 23.8488 8.5598 25.2581 9.06929 26.4451C6.20005 29.1677 1.77216 27.8721 -1.40212 26.1536C-2.73618 25.4317 -3.92695 27.4745 -2.59037 28.1981C1.33389 30.3226 6.86037 31.6621 10.4402 28.4188C11.4718 29.3859 12.867 29.9621 14.4894 29.9621C18.4161 29.9621 22.2038 26.5318 22.9337 22.34C23.6636 18.1162 21.0566 14.7172 17.1298 14.7172H17.1307ZM19.9798 22.34C19.5281 25.0399 17.2689 27.231 14.9754 27.231C12.6466 27.231 11.1877 25.0399 11.6394 22.34C12.1262 19.6401 14.3151 17.4482 16.6438 17.4482C18.9374 17.4482 20.4667 19.6401 19.9798 22.34Z", fill: "white" }),
28832
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("path", { d: "M40.0017 27.0262C39.1797 27.081 38.2721 26.995 37.4668 26.7415C37.3344 26.6993 37.28 26.5401 37.3529 26.4205C37.5959 26.0212 37.8255 25.6152 38.009 25.1889C38.1071 24.9918 38.2018 24.793 38.2897 24.5908C38.3274 24.5041 38.4163 24.451 38.5101 24.4619C38.63 24.4754 38.7054 24.4821 38.8881 24.4821L39.1529 24.4796L39.8283 24.4543C45.9229 24.0492 50.4765 20.4319 54.8466 16.9014C56.0172 15.9554 57.6932 17.6208 56.5116 18.5752C51.7687 22.4065 47.1966 26.5081 40.9319 26.9689", fill: "white" }),
28833
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("path", { d: "M37.9687 24.27C38.4472 23.1319 38.7656 21.9045 38.9609 20.6991C39.5927 16.76 38.5058 14.2193 36.1553 14.2193C34.1835 14.2193 33.1469 17.2427 32.9199 18.8694C32.743 19.9872 32.5914 22.1219 33.6028 23.9524C33.7553 24.259 34.15 24.7712 34.471 25.1259C34.5447 25.2067 34.6746 25.2 34.7349 25.1082C34.9528 24.7788 35.1615 24.4039 35.3584 24.0257C35.5444 23.6677 35.5888 23.6138 35.8587 23.0207C35.8838 22.966 35.8813 22.9002 35.8478 22.8505C35.5888 22.4597 35.2168 21.9787 35.1204 21.4614C34.9184 20.4455 34.9436 19.2257 35.2218 18.1078C35.4413 17.3118 35.7195 16.7844 35.9039 16.5106C35.9466 16.4466 36.0279 16.4129 36.0975 16.4449C36.369 16.5671 36.5827 16.8838 36.7385 17.396C37.0167 18.2089 37.0167 19.3782 36.814 20.6999C36.6991 21.5271 36.4771 22.3729 36.1746 23.1673C36.1293 23.308 36.0757 23.4461 36.0187 23.5826C36.0187 23.5868 36.0187 23.591 36.0187 23.5961C35.9911 23.6946 35.9207 23.8067 35.8846 23.901C35.5536 24.5497 35.2344 25.1697 34.8439 25.7838C34.8388 25.7863 34.8346 25.7914 34.8296 25.7931C34.6528 26.0525 34.4718 26.2901 34.2866 26.4965C34.2774 26.5099 34.2682 26.5234 34.2589 26.5369C34.2405 26.5638 34.2179 26.5815 34.1944 26.595C33.5064 27.3212 32.7665 27.6893 32.0123 27.6893C31.8606 27.6893 31.6838 27.664 31.507 27.4349C31.3042 27.1299 30.85 26.0879 31.2539 22.9112C31.4785 21.3949 31.8011 20.0268 31.931 19.5408C31.9579 19.4413 31.8908 19.3419 31.7886 19.3293L30.0062 19.1162C29.9241 19.1061 29.8478 19.1566 29.8252 19.2366C29.2704 21.1615 27.0305 27.6885 24.9599 27.6885C24.328 27.6885 24.1512 26.6211 24.1001 26.2909C23.775 23.6264 25.528 18.5492 29.5302 16.2267C29.6048 16.1838 29.635 16.0928 29.5998 16.0136L28.9042 14.467C28.8632 14.3752 28.7501 14.3389 28.6638 14.3886C25.8079 16.0414 24.1847 18.5231 23.2915 20.3436C22.2046 22.5793 21.6993 25.0189 21.9515 26.8738C22.1795 28.7794 23.1398 29.872 24.6054 29.872C26.0543 29.872 27.4369 28.9066 28.7098 27.0187C28.7953 26.8915 28.9889 26.9311 29.0149 27.0819C29.2646 28.5283 29.9811 29.872 31.6579 29.872C33.5282 29.872 35.3232 28.7288 36.7134 26.6447C36.7712 26.5874 36.7972 26.5411 36.8181 26.4906C36.8232 26.4931 36.8282 26.4948 36.8332 26.4973C37.01 26.2025 37.181 25.9051 37.3444 25.6027C37.4508 25.4005 37.5572 25.1992 37.6586 24.9945C37.7181 24.874 37.7743 24.7527 37.8262 24.6289C37.838 24.6002 37.8547 24.5665 37.8706 24.5337", fill: "white" }),
28834
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("path", { d: "M30.5839 31.6397C25.7546 34.8577 19.4773 34.7853 14.6907 31.5243C13.5368 30.7384 12.5044 32.6498 13.6474 33.4281C19.034 37.0985 26.3077 37.096 31.7218 33.488C32.8791 32.7172 31.7478 30.8639 30.5839 31.6397Z", fill: "white" })
29059
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("g", { mask: "url(#ohw-badge-mark)", children: [
29060
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("path", { d: "M23.8731 48.0497C37.0584 48.0497 47.7472 37.3046 47.7472 24.0497C47.7472 10.7949 37.0584 0.0497208 23.8731 0.0497208C10.6878 0.0497208 -0.000976562 10.7949 -0.000976562 24.0497C-0.000976562 37.3046 10.6878 48.0497 23.8731 48.0497Z", fill: "#0078E5" }),
29061
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("path", { d: "M17.1307 14.7172C13.1687 14.7172 9.38102 18.1154 8.65114 22.34C8.38885 23.8488 8.5598 25.2581 9.06929 26.4451C6.20005 29.1677 1.77216 27.8721 -1.40212 26.1536C-2.73618 25.4317 -3.92695 27.4745 -2.59037 28.1981C1.33389 30.3226 6.86037 31.6621 10.4402 28.4188C11.4718 29.3859 12.867 29.9621 14.4894 29.9621C18.4161 29.9621 22.2038 26.5318 22.9337 22.34C23.6636 18.1162 21.0566 14.7172 17.1298 14.7172H17.1307ZM19.9798 22.34C19.5281 25.0399 17.2689 27.231 14.9754 27.231C12.6466 27.231 11.1877 25.0399 11.6394 22.34C12.1262 19.6401 14.3151 17.4482 16.6438 17.4482C18.9374 17.4482 20.4667 19.6401 19.9798 22.34Z", fill: "white" }),
29062
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("path", { d: "M40.0017 27.0262C39.1797 27.081 38.2721 26.995 37.4668 26.7415C37.3344 26.6993 37.28 26.5401 37.3529 26.4205C37.5959 26.0212 37.8255 25.6152 38.009 25.1889C38.1071 24.9918 38.2018 24.793 38.2897 24.5908C38.3274 24.5041 38.4163 24.451 38.5101 24.4619C38.63 24.4754 38.7054 24.4821 38.8881 24.4821L39.1529 24.4796L39.8283 24.4543C45.9229 24.0492 50.4765 20.4319 54.8466 16.9014C56.0172 15.9554 57.6932 17.6208 56.5116 18.5752C51.7687 22.4065 47.1966 26.5081 40.9319 26.9689", fill: "white" }),
29063
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("path", { d: "M37.9687 24.27C38.4472 23.1319 38.7656 21.9045 38.9609 20.6991C39.5927 16.76 38.5058 14.2193 36.1553 14.2193C34.1835 14.2193 33.1469 17.2427 32.9199 18.8694C32.743 19.9872 32.5914 22.1219 33.6028 23.9524C33.7553 24.259 34.15 24.7712 34.471 25.1259C34.5447 25.2067 34.6746 25.2 34.7349 25.1082C34.9528 24.7788 35.1615 24.4039 35.3584 24.0257C35.5444 23.6677 35.5888 23.6138 35.8587 23.0207C35.8838 22.966 35.8813 22.9002 35.8478 22.8505C35.5888 22.4597 35.2168 21.9787 35.1204 21.4614C34.9184 20.4455 34.9436 19.2257 35.2218 18.1078C35.4413 17.3118 35.7195 16.7844 35.9039 16.5106C35.9466 16.4466 36.0279 16.4129 36.0975 16.4449C36.369 16.5671 36.5827 16.8838 36.7385 17.396C37.0167 18.2089 37.0167 19.3782 36.814 20.6999C36.6991 21.5271 36.4771 22.3729 36.1746 23.1673C36.1293 23.308 36.0757 23.4461 36.0187 23.5826C36.0187 23.5868 36.0187 23.591 36.0187 23.5961C35.9911 23.6946 35.9207 23.8067 35.8846 23.901C35.5536 24.5497 35.2344 25.1697 34.8439 25.7838C34.8388 25.7863 34.8346 25.7914 34.8296 25.7931C34.6528 26.0525 34.4718 26.2901 34.2866 26.4965C34.2774 26.5099 34.2682 26.5234 34.2589 26.5369C34.2405 26.5638 34.2179 26.5815 34.1944 26.595C33.5064 27.3212 32.7665 27.6893 32.0123 27.6893C31.8606 27.6893 31.6838 27.664 31.507 27.4349C31.3042 27.1299 30.85 26.0879 31.2539 22.9112C31.4785 21.3949 31.8011 20.0268 31.931 19.5408C31.9579 19.4413 31.8908 19.3419 31.7886 19.3293L30.0062 19.1162C29.9241 19.1061 29.8478 19.1566 29.8252 19.2366C29.2704 21.1615 27.0305 27.6885 24.9599 27.6885C24.328 27.6885 24.1512 26.6211 24.1001 26.2909C23.775 23.6264 25.528 18.5492 29.5302 16.2267C29.6048 16.1838 29.635 16.0928 29.5998 16.0136L28.9042 14.467C28.8632 14.3752 28.7501 14.3389 28.6638 14.3886C25.8079 16.0414 24.1847 18.5231 23.2915 20.3436C22.2046 22.5793 21.6993 25.0189 21.9515 26.8738C22.1795 28.7794 23.1398 29.872 24.6054 29.872C26.0543 29.872 27.4369 28.9066 28.7098 27.0187C28.7953 26.8915 28.9889 26.9311 29.0149 27.0819C29.2646 28.5283 29.9811 29.872 31.6579 29.872C33.5282 29.872 35.3232 28.7288 36.7134 26.6447C36.7712 26.5874 36.7972 26.5411 36.8181 26.4906C36.8232 26.4931 36.8282 26.4948 36.8332 26.4973C37.01 26.2025 37.181 25.9051 37.3444 25.6027C37.4508 25.4005 37.5572 25.1992 37.6586 24.9945C37.7181 24.874 37.7743 24.7527 37.8262 24.6289C37.838 24.6002 37.8547 24.5665 37.8706 24.5337", fill: "white" }),
29064
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("path", { d: "M30.5839 31.6397C25.7546 34.8577 19.4773 34.7853 14.6907 31.5243C13.5368 30.7384 12.5044 32.6498 13.6474 33.4281C19.034 37.0985 26.3077 37.096 31.7218 33.488C32.8791 32.7172 31.7478 30.8639 30.5839 31.6397Z", fill: "white" })
28835
29065
  ] })
28836
29066
  ]
28837
29067
  }
@@ -28868,7 +29098,7 @@ var OHW_BADGE_LABEL_STYLE = {
28868
29098
  whiteSpace: "nowrap"
28869
29099
  };
28870
29100
  function MadeWithOhhWells() {
28871
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
29101
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
28872
29102
  "a",
28873
29103
  {
28874
29104
  href: "https://ohhwells.com",
@@ -28878,8 +29108,8 @@ function MadeWithOhhWells() {
28878
29108
  "data-ohw-badge": "",
28879
29109
  style: OHW_BADGE_STYLE,
28880
29110
  children: [
28881
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(OhwBrandMark, {}),
28882
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { style: OHW_BADGE_LABEL_STYLE, children: "Made with OhhWells" })
29111
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(OhwBrandMark, {}),
29112
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { style: OHW_BADGE_LABEL_STYLE, children: "Made with OhhWells" })
28883
29113
  ]
28884
29114
  }
28885
29115
  );
@@ -34208,6 +34438,8 @@ function OhhwellsBridge() {
34208
34438
  applyTreeToLocalState(payload);
34209
34439
  };
34210
34440
  window.addEventListener("message", handleAiApplyTree);
34441
+ const handleAiLayoutPreviews = createLayoutPreviewsListener((data) => postToParentRef.current(data));
34442
+ window.addEventListener("message", handleAiLayoutPreviews);
34211
34443
  const handleAiDeleteSection = (e) => {
34212
34444
  if (e.data?.type !== "ow:ai-delete-section") return;
34213
34445
  const sectionId = typeof e.data.sectionId === "string" ? e.data.sectionId : "";
@@ -35455,6 +35687,7 @@ function OhhwellsBridge() {
35455
35687
  window.removeEventListener("message", handleViewMode);
35456
35688
  window.removeEventListener("message", handleHydrate);
35457
35689
  window.removeEventListener("message", handleAiApplyTree);
35690
+ window.removeEventListener("message", handleAiLayoutPreviews);
35458
35691
  window.removeEventListener("message", handleAiApplyFooter);
35459
35692
  window.removeEventListener("message", handleAiDeleteSection);
35460
35693
  window.removeEventListener("message", handleAiMoveSection);
@@ -35771,7 +36004,7 @@ function OhhwellsBridge() {
35771
36004
  postToParent2({
35772
36005
  type: "ow:ready",
35773
36006
  version: "1",
35774
- bridgeVersion: "0.1.179-next.478",
36007
+ bridgeVersion: "0.1.179-next.479",
35775
36008
  path: pathname,
35776
36009
  nodes: collectEditableNodes(editContentRef.current),
35777
36010
  sections
@@ -36457,13 +36690,13 @@ function OhhwellsBridge() {
36457
36690
  },
36458
36691
  [postToParent2]
36459
36692
  );
36460
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(import_jsx_runtime41.Fragment, { children: [
36461
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(OhwLoaderSurface, {}),
36462
- subdomain && !isEditMode && showBranding && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(MadeWithOhhWells, {}),
36463
- bridgeRoot ? (0, import_react_dom6.createPortal)(
36464
- /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(import_jsx_runtime41.Fragment, { children: [
36465
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { ref: attachVisibleViewport, "data-ohw-visible-viewport": "", "aria-hidden": true }),
36466
- isEditMode && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
36693
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_jsx_runtime42.Fragment, { children: [
36694
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(OhwLoaderSurface, {}),
36695
+ subdomain && !isEditMode && showBranding && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(MadeWithOhhWells, {}),
36696
+ bridgeRoot ? (0, import_react_dom7.createPortal)(
36697
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_jsx_runtime42.Fragment, { children: [
36698
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { ref: attachVisibleViewport, "data-ohw-visible-viewport": "", "aria-hidden": true }),
36699
+ isEditMode && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
36467
36700
  AiSectionOverlay,
36468
36701
  {
36469
36702
  postToParent: postToParent2,
@@ -36471,7 +36704,7 @@ function OhhwellsBridge() {
36471
36704
  onSelectionChange: handleAiSectionSelectionChange
36472
36705
  }
36473
36706
  ),
36474
- isEditMode && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
36707
+ isEditMode && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
36475
36708
  AiMediaStripOverlay,
36476
36709
  {
36477
36710
  postToParent: postToParent2,
@@ -36480,7 +36713,7 @@ function OhhwellsBridge() {
36480
36713
  clearInteractionChromeRef
36481
36714
  }
36482
36715
  ),
36483
- isEditMode && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
36716
+ isEditMode && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
36484
36717
  AiPricingCardOverlay,
36485
36718
  {
36486
36719
  postToParent: postToParent2,
@@ -36488,7 +36721,7 @@ function OhhwellsBridge() {
36488
36721
  applyTreeLocalRef
36489
36722
  }
36490
36723
  ),
36491
- isEditMode && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
36724
+ isEditMode && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
36492
36725
  AiVideoOverlay,
36493
36726
  {
36494
36727
  postToParent: postToParent2,
@@ -36497,7 +36730,7 @@ function OhhwellsBridge() {
36497
36730
  clearInteractionChromeRef
36498
36731
  }
36499
36732
  ),
36500
- isEditMode && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
36733
+ isEditMode && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
36501
36734
  AiFadeCarouselOverlay,
36502
36735
  {
36503
36736
  postToParent: postToParent2,
@@ -36506,12 +36739,12 @@ function OhhwellsBridge() {
36506
36739
  clearInteractionChromeRef
36507
36740
  }
36508
36741
  ),
36509
- isSectionDragging && sectionDropSlots.map((slot, i) => /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
36742
+ isSectionDragging && sectionDropSlots.map((slot, i) => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
36510
36743
  "div",
36511
36744
  {
36512
36745
  className: "pointer-events-none fixed z-2147483646",
36513
36746
  style: { left: slot.left, top: slot.y, width: slot.width, height: 3, transform: "translateY(-50%)" },
36514
- children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
36747
+ children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
36515
36748
  DropIndicator,
36516
36749
  {
36517
36750
  direction: "horizontal",
@@ -36522,7 +36755,7 @@ function OhhwellsBridge() {
36522
36755
  },
36523
36756
  `section-drop-${slot.insertIndex}-${i}`
36524
36757
  )),
36525
- Object.entries(uploadingRects).map(([key, { rect, fadingOut }]) => /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
36758
+ Object.entries(uploadingRects).map(([key, { rect, fadingOut }]) => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
36526
36759
  MediaOverlay,
36527
36760
  {
36528
36761
  hover: { key, rect, elementType: "image", isDragOver: false, hasTextOverlap: false },
@@ -36533,7 +36766,7 @@ function OhhwellsBridge() {
36533
36766
  },
36534
36767
  `uploading-${key}`
36535
36768
  )),
36536
- mediaHover && !(mediaHover.key in uploadingRects) && mediaHover.key !== selectedMedia?.key && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
36769
+ mediaHover && !(mediaHover.key in uploadingRects) && mediaHover.key !== selectedMedia?.key && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
36537
36770
  MediaOverlay,
36538
36771
  {
36539
36772
  hover: mediaHover,
@@ -36544,7 +36777,7 @@ function OhhwellsBridge() {
36544
36777
  onVideoSettingsChange: handleVideoSettingsChange
36545
36778
  }
36546
36779
  ),
36547
- selectedMedia && !(selectedMedia.key in uploadingRects) && !linkPopover && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
36780
+ selectedMedia && !(selectedMedia.key in uploadingRects) && !linkPopover && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
36548
36781
  MediaOverlay,
36549
36782
  {
36550
36783
  hover: selectedMedia,
@@ -36563,7 +36796,7 @@ function OhhwellsBridge() {
36563
36796
  onVideoSettingsChange: handleVideoSettingsChange
36564
36797
  }
36565
36798
  ),
36566
- carouselHover && !linkPopover && !isItemDragging && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
36799
+ carouselHover && !linkPopover && !isItemDragging && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
36567
36800
  CarouselOverlay,
36568
36801
  {
36569
36802
  hover: carouselHover,
@@ -36571,10 +36804,10 @@ function OhhwellsBridge() {
36571
36804
  cueOnly: !!carouselHover.fullBleedSectionId && carouselHover.fullBleedSectionId !== selectedAiSectionId
36572
36805
  }
36573
36806
  ),
36574
- siblingHintRect && !linkPopover && !isItemDragging && siblingHintRects.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(ItemInteractionLayer, { rect: siblingHintRect, state: "sibling-hint" }),
36575
- siblingHintRects.length > 0 && !linkPopover && !isItemDragging && siblingHintRects.map((rect, i) => /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(ItemInteractionLayer, { rect, state: "sibling-hint" }, `sibling-hint-${i}`)),
36576
- isItemDragging && draggedItemRect && selectedElRef.current !== footerDragRef.current?.draggedEl && selectedElRef.current !== navDragRef.current?.draggedEl && selectedElRef.current !== buttonCollectionDragRef.current && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(ItemInteractionLayer, { rect: draggedItemRect, state: "dragging" }),
36577
- isItemDragging && footerDropSlots.map((slot, i) => /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
36807
+ siblingHintRect && !linkPopover && !isItemDragging && siblingHintRects.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(ItemInteractionLayer, { rect: siblingHintRect, state: "sibling-hint" }),
36808
+ siblingHintRects.length > 0 && !linkPopover && !isItemDragging && siblingHintRects.map((rect, i) => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(ItemInteractionLayer, { rect, state: "sibling-hint" }, `sibling-hint-${i}`)),
36809
+ isItemDragging && draggedItemRect && selectedElRef.current !== footerDragRef.current?.draggedEl && selectedElRef.current !== navDragRef.current?.draggedEl && selectedElRef.current !== buttonCollectionDragRef.current && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(ItemInteractionLayer, { rect: draggedItemRect, state: "dragging" }),
36810
+ isItemDragging && footerDropSlots.map((slot, i) => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
36578
36811
  "div",
36579
36812
  {
36580
36813
  className: "pointer-events-none fixed z-2147483646",
@@ -36584,7 +36817,7 @@ function OhhwellsBridge() {
36584
36817
  width: slot.width,
36585
36818
  height: slot.height
36586
36819
  },
36587
- children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
36820
+ children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
36588
36821
  DropIndicator,
36589
36822
  {
36590
36823
  direction: slot.direction,
@@ -36595,7 +36828,7 @@ function OhhwellsBridge() {
36595
36828
  },
36596
36829
  `footer-drop-${slot.direction}-${slot.columnIndex}-${slot.insertIndex}-${i}`
36597
36830
  )),
36598
- isItemDragging && navDropSlots.map((slot, i) => /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
36831
+ isItemDragging && navDropSlots.map((slot, i) => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
36599
36832
  "div",
36600
36833
  {
36601
36834
  className: "pointer-events-none fixed z-2147483646",
@@ -36605,7 +36838,7 @@ function OhhwellsBridge() {
36605
36838
  width: slot.width,
36606
36839
  height: slot.height
36607
36840
  },
36608
- children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
36841
+ children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
36609
36842
  DropIndicator,
36610
36843
  {
36611
36844
  direction: slot.direction,
@@ -36616,7 +36849,7 @@ function OhhwellsBridge() {
36616
36849
  },
36617
36850
  `nav-drop-${slot.direction}-${slot.parentId ?? "root"}-${slot.insertIndex}-${i}`
36618
36851
  )),
36619
- isItemDragging && buttonDropSlots.map((slot, i) => /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
36852
+ isItemDragging && buttonDropSlots.map((slot, i) => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
36620
36853
  "div",
36621
36854
  {
36622
36855
  className: "pointer-events-none fixed z-2147483646",
@@ -36626,7 +36859,7 @@ function OhhwellsBridge() {
36626
36859
  width: slot.width,
36627
36860
  height: slot.height
36628
36861
  },
36629
- children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
36862
+ children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
36630
36863
  DropIndicator,
36631
36864
  {
36632
36865
  direction: slot.direction,
@@ -36637,10 +36870,10 @@ function OhhwellsBridge() {
36637
36870
  },
36638
36871
  `button-drop-${slot.direction}-${slot.insertIndex}-${i}`
36639
36872
  )),
36640
- hoveredNavContainerRect && (toolbarVariant !== "select-frame" || isFooterFrameSelection) && !linkPopover && !isItemDragging && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(ItemInteractionLayer, { rect: hoveredNavContainerRect, state: "hover" }),
36641
- hoveredItemRect && !linkPopover && !hoveredNavContainerRect && !isItemDragging && hoveredItemElRef.current !== selectedElRef.current && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(ItemInteractionLayer, { rect: hoveredItemRect, state: "hover" }),
36642
- hoveredTextRect && !hoveredNavContainerRect && !hoveredItemRect && !isItemDragging && toolbarVariant !== "rich-text" && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(ItemInteractionLayer, { rect: hoveredTextRect, state: "hover" }),
36643
- formPickRect && !isItemDragging && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
36873
+ hoveredNavContainerRect && (toolbarVariant !== "select-frame" || isFooterFrameSelection) && !linkPopover && !isItemDragging && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(ItemInteractionLayer, { rect: hoveredNavContainerRect, state: "hover" }),
36874
+ hoveredItemRect && !linkPopover && !hoveredNavContainerRect && !isItemDragging && hoveredItemElRef.current !== selectedElRef.current && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(ItemInteractionLayer, { rect: hoveredItemRect, state: "hover" }),
36875
+ hoveredTextRect && !hoveredNavContainerRect && !hoveredItemRect && !isItemDragging && toolbarVariant !== "rich-text" && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(ItemInteractionLayer, { rect: hoveredTextRect, state: "hover" }),
36876
+ formPickRect && !isItemDragging && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
36644
36877
  ItemInteractionLayer,
36645
36878
  {
36646
36879
  rect: formPickRect,
@@ -36648,13 +36881,13 @@ function OhhwellsBridge() {
36648
36881
  itemDragSurface: false,
36649
36882
  toolbarAlign: "left",
36650
36883
  chromeGap: 24,
36651
- toolbar: fieldPickRect ? void 0 : /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
36884
+ toolbar: fieldPickRect ? void 0 : /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
36652
36885
  "div",
36653
36886
  {
36654
36887
  "data-ohw-form-toolbar": "",
36655
36888
  className: "pointer-events-auto flex items-center gap-0.5 whitespace-nowrap rounded-lg border border-border bg-background p-1 shadow-md",
36656
36889
  children: [
36657
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
36890
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
36658
36891
  "button",
36659
36892
  {
36660
36893
  type: "button",
@@ -36662,11 +36895,11 @@ function OhhwellsBridge() {
36662
36895
  className: "flex h-7 w-7 items-center justify-center rounded-md text-foreground transition-colors hover:bg-muted/80",
36663
36896
  onClick: () => setFieldTypePickerOpen((open) => !open),
36664
36897
  "data-ohw-add-field": "",
36665
- children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_lucide_react23.Plus, { size: 15, "aria-hidden": true })
36898
+ children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_lucide_react23.Plus, { size: 15, "aria-hidden": true })
36666
36899
  }
36667
36900
  ),
36668
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "mx-0.5 h-5 w-px bg-border" }),
36669
- /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
36901
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "mx-0.5 h-5 w-px bg-border" }),
36902
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
36670
36903
  "button",
36671
36904
  {
36672
36905
  type: "button",
@@ -36682,11 +36915,11 @@ function OhhwellsBridge() {
36682
36915
  });
36683
36916
  },
36684
36917
  children: [
36685
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_lucide_react23.Settings, { size: 14, "aria-hidden": true }),
36918
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_lucide_react23.Settings, { size: 14, "aria-hidden": true }),
36686
36919
  "Form settings",
36687
36920
  formPickCount ? (
36688
36921
  // Counter pill, per the design — not a text suffix.
36689
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
36922
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
36690
36923
  "span",
36691
36924
  {
36692
36925
  "data-ohw-form-count": "",
@@ -36698,8 +36931,8 @@ function OhhwellsBridge() {
36698
36931
  ]
36699
36932
  }
36700
36933
  ),
36701
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "mx-0.5 h-5 w-px bg-border" }),
36702
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "flex items-center rounded-md bg-muted/70 p-0.5", children: ["default", "success"].map((state) => /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
36934
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "mx-0.5 h-5 w-px bg-border" }),
36935
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "flex items-center rounded-md bg-muted/70 p-0.5", children: ["default", "success"].map((state) => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
36703
36936
  "button",
36704
36937
  {
36705
36938
  type: "button",
@@ -36725,8 +36958,8 @@ function OhhwellsBridge() {
36725
36958
  },
36726
36959
  state
36727
36960
  )) }),
36728
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "mx-0.5 h-5 w-px bg-border" }),
36729
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
36961
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "mx-0.5 h-5 w-px bg-border" }),
36962
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
36730
36963
  "button",
36731
36964
  {
36732
36965
  type: "button",
@@ -36739,7 +36972,7 @@ function OhhwellsBridge() {
36739
36972
  if (!form) return;
36740
36973
  softHideTemplateEditable(form, { fromToolbar: true });
36741
36974
  },
36742
- children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_lucide_react23.Trash2, { size: 15, "aria-hidden": true })
36975
+ children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_lucide_react23.Trash2, { size: 15, "aria-hidden": true })
36743
36976
  }
36744
36977
  )
36745
36978
  ]
@@ -36747,7 +36980,7 @@ function OhhwellsBridge() {
36747
36980
  )
36748
36981
  }
36749
36982
  ),
36750
- formHoverRect && !isItemDragging && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
36983
+ formHoverRect && !isItemDragging && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
36751
36984
  ItemInteractionLayer,
36752
36985
  {
36753
36986
  rect: formHoverRect,
@@ -36755,7 +36988,7 @@ function OhhwellsBridge() {
36755
36988
  chromeGap: formHoverElRef.current && getFieldWrapper(formHoverElRef.current) ? 8 : 24
36756
36989
  }
36757
36990
  ),
36758
- fieldPickRect && fieldPickState && !dropdownOptionPick && !isItemDragging && toolbarVariant !== "rich-text" && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
36991
+ fieldPickRect && fieldPickState && !dropdownOptionPick && !isItemDragging && toolbarVariant !== "rich-text" && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
36759
36992
  ItemInteractionLayer,
36760
36993
  {
36761
36994
  rect: fieldPickRect,
@@ -36767,7 +37000,7 @@ function OhhwellsBridge() {
36767
37000
  dragHandleLabel: "Reorder field",
36768
37001
  onDragHandleDragStart: handleFieldDragStart,
36769
37002
  onDragHandleDragEnd: handleFieldDragEnd,
36770
- toolbar: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
37003
+ toolbar: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
36771
37004
  FormFieldToolbar,
36772
37005
  {
36773
37006
  type: fieldPickState.type,
@@ -36782,7 +37015,7 @@ function OhhwellsBridge() {
36782
37015
  )
36783
37016
  }
36784
37017
  ),
36785
- dropdownOptionPick && !isItemDragging && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
37018
+ dropdownOptionPick && !isItemDragging && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
36786
37019
  ItemInteractionLayer,
36787
37020
  {
36788
37021
  rect: dropdownOptionPick.rect,
@@ -36791,7 +37024,7 @@ function OhhwellsBridge() {
36791
37024
  toolbarAlign: "center",
36792
37025
  chromeGap: 0,
36793
37026
  showHandle: false,
36794
- toolbar: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
37027
+ toolbar: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
36795
37028
  DropdownOptionToolbar,
36796
37029
  {
36797
37030
  canDelete: dropdownOptionPick.canDelete,
@@ -36801,12 +37034,12 @@ function OhhwellsBridge() {
36801
37034
  )
36802
37035
  }
36803
37036
  ),
36804
- fieldDragging ? fieldDropSlots.map((slot, i) => /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
37037
+ fieldDragging ? fieldDropSlots.map((slot, i) => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
36805
37038
  "div",
36806
37039
  {
36807
37040
  className: "pointer-events-none fixed z-[2147483644]",
36808
37041
  style: { top: slot.top, left: slot.left, width: slot.width },
36809
- children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
37042
+ children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
36810
37043
  DropIndicator,
36811
37044
  {
36812
37045
  direction: "horizontal",
@@ -36819,7 +37052,7 @@ function OhhwellsBridge() {
36819
37052
  )) : null,
36820
37053
  fieldTypePickerOpen && formPickRect ? (() => {
36821
37054
  const toolbar = document.querySelector("[data-ohw-form-toolbar]")?.getBoundingClientRect();
36822
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
37055
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
36823
37056
  "div",
36824
37057
  {
36825
37058
  className: "pointer-events-none fixed z-[2147483645]",
@@ -36827,12 +37060,12 @@ function OhhwellsBridge() {
36827
37060
  top: toolbar ? toolbar.bottom + 6 : formPickRect.top + 16,
36828
37061
  left: toolbar ? toolbar.left : formPickRect.left + 24
36829
37062
  },
36830
- children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(FieldTypePicker, { onPick: handleAddField })
37063
+ children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(FieldTypePicker, { onPick: handleAddField })
36831
37064
  }
36832
37065
  );
36833
37066
  })() : null,
36834
- toolbarVariant === "select-frame" && toolbarRect && !linkPopover && !isItemDragging && !isFooterFrameSelection && selectedElRef.current && isNavbarLinksContainer2(selectedElRef.current) && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(NavbarContainerChrome, { rect: toolbarRect, onAdd: handleAddTopLevelNavItem }),
36835
- toolbarVariant === "select-frame" && toolbarRect && !linkPopover && !isItemDragging && !isFooterFrameSelection && selectedElRef.current && isFooterLinksContainer(selectedElRef.current) && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
37067
+ toolbarVariant === "select-frame" && toolbarRect && !linkPopover && !isItemDragging && !isFooterFrameSelection && selectedElRef.current && isNavbarLinksContainer2(selectedElRef.current) && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(NavbarContainerChrome, { rect: toolbarRect, onAdd: handleAddTopLevelNavItem }),
37068
+ toolbarVariant === "select-frame" && toolbarRect && !linkPopover && !isItemDragging && !isFooterFrameSelection && selectedElRef.current && isFooterLinksContainer(selectedElRef.current) && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
36836
37069
  FooterContainerChrome,
36837
37070
  {
36838
37071
  rect: toolbarRect,
@@ -36840,7 +37073,7 @@ function OhhwellsBridge() {
36840
37073
  addDisabled: !canAddFooterColumn()
36841
37074
  }
36842
37075
  ),
36843
- toolbarRect && !linkPopover && (toolbarVariant === "link-action" || toolbarVariant === "select-frame" || toolbarVariant === "logo") && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
37076
+ toolbarRect && !linkPopover && (toolbarVariant === "link-action" || toolbarVariant === "select-frame" || toolbarVariant === "logo") && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
36844
37077
  ItemInteractionLayer,
36845
37078
  {
36846
37079
  rect: isItemDragging && draggedItemRect && (footerDragRef.current?.wasSelected || navDragRef.current?.wasSelected || selectedElRef.current === buttonCollectionDragRef.current) ? draggedItemRect : toolbarRect,
@@ -36860,7 +37093,7 @@ function OhhwellsBridge() {
36860
37093
  onItemPointerDown: toolbarVariant === "logo" ? void 0 : handleItemChromePointerDown,
36861
37094
  onItemClick: toolbarVariant === "logo" ? void 0 : handleItemChromeClick,
36862
37095
  itemDragSurface: toolbarVariant !== "logo" && !isFooterFrameSelection && !selectedIsSocialsRow,
36863
- toolbar: toolbarVariant === "link-action" && !isItemDragging || toolbarVariant === "select-frame" && (isFooterFrameSelection || selectedIsSocialsRow) && !isItemDragging ? /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
37096
+ toolbar: toolbarVariant === "link-action" && !isItemDragging || toolbarVariant === "select-frame" && (isFooterFrameSelection || selectedIsSocialsRow) && !isItemDragging ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
36864
37097
  ItemActionToolbar,
36865
37098
  {
36866
37099
  onEditLink: openLinkPopoverForSelected,
@@ -36911,8 +37144,8 @@ function OhhwellsBridge() {
36911
37144
  ) : void 0
36912
37145
  }
36913
37146
  ),
36914
- toolbarRect && toolbarVariant === "rich-text" && !linkPopover && !isRectOutsideClip(toolbarRect, getIframeVisibleClip(parentScrollRef.current)) && /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(import_jsx_runtime41.Fragment, { children: [
36915
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
37147
+ toolbarRect && toolbarVariant === "rich-text" && !linkPopover && !isRectOutsideClip(toolbarRect, getIframeVisibleClip(parentScrollRef.current)) && /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_jsx_runtime42.Fragment, { children: [
37148
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
36916
37149
  EditGlowChrome,
36917
37150
  {
36918
37151
  rect: toolbarRect,
@@ -36922,7 +37155,7 @@ function OhhwellsBridge() {
36922
37155
  hideHandle: isItemDragging
36923
37156
  }
36924
37157
  ),
36925
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
37158
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
36926
37159
  FloatingToolbar,
36927
37160
  {
36928
37161
  rect: toolbarRect,
@@ -36943,7 +37176,7 @@ function OhhwellsBridge() {
36943
37176
  }
36944
37177
  )
36945
37178
  ] }),
36946
- maxBadge && /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
37179
+ maxBadge && /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
36947
37180
  "div",
36948
37181
  {
36949
37182
  "data-ohw-max-badge": "",
@@ -36969,7 +37202,7 @@ function OhhwellsBridge() {
36969
37202
  ]
36970
37203
  }
36971
37204
  ),
36972
- toggleState && !linkPopover && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
37205
+ toggleState && !linkPopover && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
36973
37206
  StateToggle,
36974
37207
  {
36975
37208
  rect: toggleState.rect,
@@ -36978,15 +37211,15 @@ function OhhwellsBridge() {
36978
37211
  onStateChange: handleStateChange
36979
37212
  }
36980
37213
  ),
36981
- sectionGap && !linkPopover && /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
37214
+ sectionGap && !linkPopover && /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
36982
37215
  "div",
36983
37216
  {
36984
37217
  "data-ohw-section-insert-line": "",
36985
37218
  className: "fixed left-0 w-full z-2147483646 flex items-center pointer-events-none",
36986
37219
  style: { top: sectionGap.y, transform: "translateY(-50%)" },
36987
37220
  children: [
36988
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "flex-1 bg-bridge-primary", style: { height: 3 } }),
36989
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
37221
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "flex-1 bg-bridge-primary", style: { height: 3 } }),
37222
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
36990
37223
  Badge,
36991
37224
  {
36992
37225
  className: "px-8 py-1 bg-bridge-primary hover:bg-bridge-primary text-primary-foreground text-xs font-medium shrink-0 rounded-full cursor-pointer pointer-events-auto",
@@ -37003,11 +37236,11 @@ function OhhwellsBridge() {
37003
37236
  children: "Add Section"
37004
37237
  }
37005
37238
  ),
37006
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "flex-1 bg-bridge-primary", style: { height: 3 } })
37239
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "flex-1 bg-bridge-primary", style: { height: 3 } })
37007
37240
  ]
37008
37241
  }
37009
37242
  ),
37010
- linkPopover && dialogPortalContainer ? /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
37243
+ linkPopover && dialogPortalContainer ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
37011
37244
  LinkPopover,
37012
37245
  {
37013
37246
  panelRef: linkPopoverPanelRef,
@@ -37024,7 +37257,7 @@ function OhhwellsBridge() {
37024
37257
  },
37025
37258
  linkPopover.key
37026
37259
  ) : null,
37027
- floatingPanel && floatingPanel.kind === "socials-display" ? /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
37260
+ floatingPanel && floatingPanel.kind === "socials-display" ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
37028
37261
  FloatingPanel,
37029
37262
  {
37030
37263
  open: true,
@@ -37034,7 +37267,7 @@ function OhhwellsBridge() {
37034
37267
  onPositionChange: setFloatingPanelPos,
37035
37268
  parentScroll: parentScrollSnap ?? parentScrollRef.current,
37036
37269
  onClose: closeFloatingPanelOnly,
37037
- children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
37270
+ children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
37038
37271
  SocialsDisplayPanel,
37039
37272
  {
37040
37273
  display: socialsDisplayFor(floatingPanel.row, editContentRef.current),
@@ -37055,19 +37288,19 @@ function OhhwellsBridge() {
37055
37288
  const tokens = tokensFromButton(button);
37056
37289
  const current = assignmentFor(button, editContentRef.current, tokens);
37057
37290
  void buttonStyleTick;
37058
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
37291
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
37059
37292
  FloatingPanel,
37060
37293
  {
37061
37294
  open: true,
37062
37295
  title: floatingPanel.title,
37063
37296
  context: floatingPanel.context,
37064
- icon: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_lucide_react23.Brush, { className: "size-4 shrink-0", "aria-hidden": true }),
37297
+ icon: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_lucide_react23.Brush, { className: "size-4 shrink-0", "aria-hidden": true }),
37065
37298
  position: floatingPanelPos,
37066
37299
  onPositionChange: setFloatingPanelPos,
37067
37300
  parentScroll: parentScrollSnap ?? parentScrollRef.current,
37068
37301
  onClose: closeFloatingPanelOnly,
37069
37302
  bodyClassName: "gap-5",
37070
- children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
37303
+ children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
37071
37304
  ButtonStylePanel,
37072
37305
  {
37073
37306
  variants: tokens.variants,
@@ -37095,10 +37328,10 @@ function OhhwellsBridge() {
37095
37328
 
37096
37329
  // src/ui/EmptySection.tsx
37097
37330
  var import_link = __toESM(require("next/link"), 1);
37098
- var import_jsx_runtime42 = require("react/jsx-runtime");
37331
+ var import_jsx_runtime43 = require("react/jsx-runtime");
37099
37332
  function EmptySection({ title, homeHref = "/", eyebrowKey, titleKey, subtitleKey }) {
37100
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_jsx_runtime42.Fragment, { children: [
37101
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
37333
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_jsx_runtime43.Fragment, { children: [
37334
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
37102
37335
  "p",
37103
37336
  {
37104
37337
  style: {
@@ -37110,10 +37343,10 @@ function EmptySection({ title, homeHref = "/", eyebrowKey, titleKey, subtitleKey
37110
37343
  color: "var(--brand-accent)",
37111
37344
  marginBottom: "1.5rem"
37112
37345
  },
37113
- children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_link.default, { href: homeHref, style: { color: "inherit" }, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { ...eyebrowKey ? { "data-ohw-editable": "text", "data-ohw-key": eyebrowKey } : {}, children: "Home" }) })
37346
+ children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_link.default, { href: homeHref, style: { color: "inherit" }, children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { ...eyebrowKey ? { "data-ohw-editable": "text", "data-ohw-key": eyebrowKey } : {}, children: "Home" }) })
37114
37347
  }
37115
37348
  ),
37116
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
37349
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
37117
37350
  "h1",
37118
37351
  {
37119
37352
  style: {
@@ -37128,7 +37361,7 @@ function EmptySection({ title, homeHref = "/", eyebrowKey, titleKey, subtitleKey
37128
37361
  children: title
37129
37362
  }
37130
37363
  ),
37131
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
37364
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
37132
37365
  "p",
37133
37366
  {
37134
37367
  style: {
@@ -37172,6 +37405,8 @@ function EmptySection({ title, homeHref = "/", eyebrowKey, titleKey, subtitleKey
37172
37405
  HIDDEN_EDITABLES_KEY,
37173
37406
  ItemActionToolbar,
37174
37407
  ItemInteractionLayer,
37408
+ LAYOUT_PREVIEWS_REQUEST,
37409
+ LAYOUT_PREVIEW_REPLY,
37175
37410
  LOGO_ON_DARK_KEY,
37176
37411
  LOGO_ON_LIGHT_KEY,
37177
37412
  LOGO_PRIMARY_ATTR,
@@ -37208,6 +37443,7 @@ function EmptySection({ title, homeHref = "/", eyebrowKey, titleKey, subtitleKey
37208
37443
  blockPathFromEditKey,
37209
37444
  brandColorVars,
37210
37445
  buildDefaultFooterTree,
37446
+ buildLayoutPreviewDoc,
37211
37447
  buildTarget,
37212
37448
  canRemoveAiBlock,
37213
37449
  canRemoveAiTextBlock,
@@ -37230,11 +37466,13 @@ function EmptySection({ title, homeHref = "/", eyebrowKey, titleKey, subtitleKey
37230
37466
  isDeadPageHref,
37231
37467
  isEditSessionActive,
37232
37468
  isEditableKeyHidden,
37469
+ isLayoutPreviewRequest,
37233
37470
  isPlainLeftClick,
37234
37471
  isRenderableFooterTree,
37235
37472
  isRenderableTree,
37236
37473
  isStickySearchParam,
37237
37474
  isValidUrl,
37475
+ layoutPreviewBackground,
37238
37476
  linearGradientColourAt,
37239
37477
  logoVersionNodesFromMessage,
37240
37478
  mapRegionToImage,