@riverbankcms/sdk 0.176.0 → 0.177.0

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.
Files changed (101) hide show
  1. package/README.md +12 -4
  2. package/dist/_dts/{BlocksIslandsHydrator-DvoTk7Py.d.ts → BlocksIslandsHydrator-sYraeqm9.d.ts} +1 -1
  3. package/dist/_dts/{Page-D-l374tU.d.ts → Page-Bp7hTDTy.d.ts} +7 -7
  4. package/dist/_dts/{SdkPreviewMode-22DdQAj5.d.ts → SdkPreviewMode-CxkCCyKw.d.ts} +2 -2
  5. package/dist/_dts/{client-D4p0J1lK.d.ts → client-K6UhbL3t.d.ts} +1 -1
  6. package/dist/_dts/{content-types-0WWR6dC4.d.ts → content-types-BLAdIMyr.d.ts} +4 -8
  7. package/dist/_dts/{contracts-f_ZG_SwY.d.ts → contracts-BG7yTZ6t.d.ts} +3 -3
  8. package/dist/_dts/{footerPageOutline-DSeZvOaj.d.ts → footerPageOutline-DwMHeYmQ.d.ts} +6 -6
  9. package/dist/_dts/{generatePageMetadata-BlitPA2D.d.ts → generatePageMetadata-X_WpGzZZ.d.ts} +2 -2
  10. package/dist/_dts/{index-CKkkCgb6.d.ts → index--n-wV8Xd.d.ts} +1 -1
  11. package/dist/_dts/{index-DDsfmM4d.d.ts → index-BLseXObg.d.ts} +2 -2
  12. package/dist/_dts/{index-CoLcwjqJ.d.ts → index-BMGif2r3.d.ts} +1 -1
  13. package/dist/_dts/{index-ZKEDvLuN.d.ts → index-BpAW9AKB.d.ts} +1 -1
  14. package/dist/_dts/{index-D-ai8IQd.d.ts → index-Bygd2RCg.d.ts} +4 -4
  15. package/dist/_dts/{index-EJMo-KSo.d.ts → index-CBRbZJ6u.d.ts} +2 -15
  16. package/dist/_dts/{index-tcPtGdag.d.ts → index-CX9bp60k.d.ts} +3 -3
  17. package/dist/_dts/{loadContent-Ci932ORy.d.ts → loadContent-uhUThWaq.d.ts} +7 -7
  18. package/dist/_dts/{request-B8jVdvgI.d.ts → request-Bf9YImJw.d.ts} +54543 -54643
  19. package/dist/_dts/{resolveBlockData-DrSMuD76.d.ts → resolveBlockData-D6M5NMZB.d.ts} +5 -5
  20. package/dist/_dts/{resolvePageContent-Be4iL6-F.d.ts → resolvePageContent-DkzWvFbG.d.ts} +2 -2
  21. package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
  22. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  23. package/dist/_dts/sdk/src/client.d.ts +7 -7
  24. package/dist/_dts/sdk/src/config/index.d.ts +6 -6
  25. package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
  26. package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
  27. package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
  28. package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
  29. package/dist/_dts/sdk/src/data/types.d.ts +2 -2
  30. package/dist/_dts/sdk/src/gifting/client.d.ts +1 -1
  31. package/dist/_dts/sdk/src/index.d.ts +8 -8
  32. package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
  33. package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
  34. package/dist/_dts/sdk/src/navigation/index.d.ts +3 -3
  35. package/dist/_dts/sdk/src/next/index.d.ts +7 -7
  36. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  37. package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
  38. package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
  39. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  40. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  41. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  42. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  43. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  44. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
  45. package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
  46. package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
  47. package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
  48. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  49. package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
  50. package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
  51. package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
  52. package/dist/_dts/sdk/src/server.d.ts +5 -5
  53. package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
  54. package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
  55. package/dist/_dts/{types-lwSgCWZ4.d.ts → types-BdZ5pJSk.d.ts} +11 -3
  56. package/dist/_dts/{types-DXY64Xh4.d.ts → types-C1l2Sm2h.d.ts} +4 -4
  57. package/dist/_dts/{types-BXMX4z2j.d.ts → types-DgV8P2mz.d.ts} +7 -7
  58. package/dist/_dts/{validation-C5xp--Fu.d.ts → validation-BtbZIT5f.d.ts} +4 -6
  59. package/dist/client/{Page-F3lhDvw1.mjs → Page-C03rc6jw.mjs} +10 -1
  60. package/dist/client/client.mjs +36 -9
  61. package/dist/client/portal/client.mjs +40 -19
  62. package/dist/client/rendering.mjs +1 -1
  63. package/dist/preview-next/client/{LocationPickerEnvironment-8iKKoYZr.mjs → LocationPickerEnvironment-BHAT81Wx.mjs} +1 -1
  64. package/dist/preview-next/client/{MapLibreEditMap-AIUPN1Zx.mjs → MapLibreEditMap-B52hkdIZ.mjs} +2 -2
  65. package/dist/preview-next/client/{PageSectionToolbar-0xyUPWUB.mjs → PageSectionToolbar-D6-jojqh.mjs} +52 -8
  66. package/dist/preview-next/client/{PreviewEditorSidebar-D8vUzXtI.mjs → PreviewEditorSidebar-BUVFKZ4k.mjs} +24 -31
  67. package/dist/preview-next/client/{PreviewEditorUI-CRjS4gAu.mjs → PreviewEditorUI-292pOiSt.mjs} +10 -10
  68. package/dist/preview-next/client/{PreviewShell-BvdBdeH_.mjs → PreviewShell-CW0Yzj3h.mjs} +9 -8
  69. package/dist/preview-next/client/{SdkPreviewModeRuntime-DWTyKbFj.mjs → SdkPreviewModeRuntime-Dba7zoZK.mjs} +16 -7
  70. package/dist/preview-next/client/{lucide-react-Dfgl3Vtq.mjs → lucide-react-McYZeSMb.mjs} +1 -1
  71. package/dist/preview-next/client/{previewAssistantSlot-BqY2TTcZ.mjs → previewAssistantSlot-B-utyhbS.mjs} +71 -5
  72. package/dist/preview-next/client/{previewChromeRoot-BuRYe2iL.mjs → previewChromeRoot-CCoGydUD.mjs} +1 -1
  73. package/dist/preview-next/client/runtime.mjs +3 -3
  74. package/dist/preview-next/client/{sdk-runtime-BnK5kH9f.mjs → sdk-runtime-DCpXVcA0.mjs} +2 -2
  75. package/dist/preview-next/client/{siteStyleAccess-DbKozRSn.mjs → siteStyleAccess-sjOvRAHY.mjs} +27 -17
  76. package/dist/preview-next/client/{useAutosaveStatus-D9s6dyMW.mjs → useAutosaveStatus-R1rZ9-IZ.mjs} +3 -30
  77. package/dist/preview-next/client/{useOpenBlockForSetup-Ce4WCxpT.mjs → useOpenBlockForSetup-BS7CANPv.mjs} +2 -2
  78. package/dist/preview-next/container-responsive.css +3 -0
  79. package/dist/preview-next/editor-chrome.css +4 -2
  80. package/dist/preview-next/keepAlive.mjs +1 -1
  81. package/dist/preview-next/middleware.mjs +1 -1
  82. package/dist/preview-next/{route-contract-BYezcMx5.mjs → route-contract-BSSbtz6A.mjs} +16 -3
  83. package/dist/server/{Block.shared-Cn7gg13_.mjs → Block.shared-Dc3DX7Cf.mjs} +1 -1
  84. package/dist/server/{client-Bvag5OtW.mjs → client-BPLLL22F.mjs} +35 -8
  85. package/dist/server/config-validation.mjs +1 -1
  86. package/dist/server/config.mjs +1 -1
  87. package/dist/server/index.mjs +2 -2
  88. package/dist/server/next/revalidate.mjs +15 -8
  89. package/dist/server/next.mjs +4 -4
  90. package/dist/server/{overrideResolution-BqVLO4gX.mjs → overrideResolution-CkpwAHvW.mjs} +1 -1
  91. package/dist/server/{pageShared-D23o5QgC.mjs → pageShared-6z6JBU41.mjs} +11 -2
  92. package/dist/server/{prebuild-BuoXWT9y.mjs → prebuild-B4_Llisx.mjs} +1 -1
  93. package/dist/server/prebuild.mjs +1 -1
  94. package/dist/server/rendering/components/pageShared.mjs +1 -1
  95. package/dist/server/rendering/server.mjs +3 -3
  96. package/dist/server/rendering.mjs +2 -2
  97. package/dist/server/server.mjs +1 -1
  98. package/dist/server/{validation-CozQ7wE0.mjs → validation-BvHio6QI.mjs} +0 -2
  99. package/dist/server/{version-CgCWRFEY.mjs → version-SuFlio6n.mjs} +1 -1
  100. package/dist/styles/index.css +8 -1
  101. package/package.json +1 -1
@@ -29154,7 +29154,16 @@ function prepareEntry(entry, input) {
29154
29154
  */
29155
29155
  function previewableEditorContent(entry) {
29156
29156
  if (entry.block.presentationAdmission.kind !== "editor") return entry.renderableContent;
29157
- return validateManifestDraft(compileManifestContentContract(entry.definition.manifest), entry.ownerEditableContent).kind === "previewable" ? entry.renderableContent : null;
29157
+ return validateManifestDraft(compileManifestContentContract(entry.definition.manifest), withoutRenderOnlyLocation(entry)).kind === "previewable" ? entry.renderableContent : null;
29158
+ }
29159
+ /**
29160
+ * The editor gives a custom map its public projection to draw (authoringLocationMaps).
29161
+ * The draft contract rightly refuses that shape, because it mustn't be saved, and
29162
+ * the owner's stored location was admitted before it was projected.
29163
+ */
29164
+ function withoutRenderOnlyLocation(entry) {
29165
+ const { location, ...content } = entry.ownerEditableContent;
29166
+ return entry.block.kind === "block.location-map" && publicLocationSchema.safeParse(location).success ? content : entry.ownerEditableContent;
29158
29167
  }
29159
29168
  function buildPreparedContent(entry, content, input) {
29160
29169
  const { dataContext } = input;
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { us as parseSiteId } from "./display-4HYOb-AK.mjs";
3
- import { E as resolveSiteCustomBlocks, M as materializeEntriesMedia, T as siteBlockRenderContext, _ as buildRenderablePageOutline, at as encodePublicProductCategorySelector, j as prefetchBlockDataWithFailures, k as requireSdkTheme, t as Page, ut as isSupportedLoaderEndpoint, v as buildSiteRenderSupport, x as projectRenderablePageOutline, y as collectMediaAssetSidecar } from "./Page-F3lhDvw1.mjs";
3
+ import { E as resolveSiteCustomBlocks, M as materializeEntriesMedia, T as siteBlockRenderContext, _ as buildRenderablePageOutline, at as encodePublicProductCategorySelector, j as prefetchBlockDataWithFailures, k as requireSdkTheme, t as Page, ut as isSupportedLoaderEndpoint, v as buildSiteRenderSupport, x as projectRenderablePageOutline, y as collectMediaAssetSidecar } from "./Page-C03rc6jw.mjs";
4
4
  import { Wn as publicMapLocationParamsSchema } from "./registry.server-CIWYKz1V.mjs";
5
5
  import { t as BEFORE_BOOKING_QUESTIONS_ROUTE } from "./bookingQuestions-BHq83mzS.mjs";
6
6
  import { t as restoreRuntimeResponse } from "./runtimeResponse-9v8q2NBc.mjs";
@@ -988,7 +988,8 @@ z.intersection(z.object({ occurrenceDate: localDate }), z.union([
988
988
  ]) }),
989
989
  z.object({
990
990
  code: z.literal("clash"),
991
- customerFirstName: z.string().nullable()
991
+ customerFirstName: z.string().nullable(),
992
+ clashKind: z.enum(["appointment", "arrangement_hold"]).optional()
992
993
  }),
993
994
  z.object({
994
995
  code: z.literal("command_failed"),
@@ -3575,7 +3576,7 @@ const PUBLIC_READ_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
3575
3576
  path: "/public/content/{siteId}/{type}/{slug}/preview",
3576
3577
  method: "GET",
3577
3578
  revalidate: publicReadFreshnessSeconds("getPublishedEntryPreview"),
3578
- tags: ["content-{siteId}-{type}-{slug}"],
3579
+ tags: [TAG_TEMPLATES.siteRoutableContent],
3579
3580
  auth: "public",
3580
3581
  responseKind: "json"
3581
3582
  },
@@ -3583,7 +3584,7 @@ const PUBLIC_READ_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
3583
3584
  path: "/public/content/{siteId}/{type}/entries",
3584
3585
  method: "GET",
3585
3586
  revalidate: publicReadFreshnessSeconds("listPublishedEntries"),
3586
- tags: ["content-{siteId}-{type}"],
3587
+ tags: [TAG_TEMPLATES.siteRoutableContent],
3587
3588
  auth: "public",
3588
3589
  responseKind: "json"
3589
3590
  },
@@ -7713,6 +7714,18 @@ const API_ENDPOINTS$1 = {
7713
7714
  auth: "admin",
7714
7715
  responseKind: "json"
7715
7716
  },
7717
+ adminSyncPriceOverride: {
7718
+ path: "/admin/billing/price-override",
7719
+ method: "PUT",
7720
+ tags: [
7721
+ "admin",
7722
+ "billing",
7723
+ "price-override"
7724
+ ],
7725
+ auth: "admin",
7726
+ responseKind: "json",
7727
+ errors: []
7728
+ },
7716
7729
  ...EVENT_MANAGEMENT_ENDPOINT_DEFINITIONS,
7717
7730
  getEventSeries: {
7718
7731
  path: "/sites/{siteId}/bookings/events/{eventId}/schedules/{seriesId}",
@@ -11224,7 +11237,7 @@ var SimpleCache = class {
11224
11237
  //#endregion
11225
11238
  //#region src/request-options.ts
11226
11239
  /** Every API client the SDK creates sends its version as `x-sdk-version`. */
11227
- const sdkRequestOptions = { sdkVersion: "0.176.0" };
11240
+ const sdkRequestOptions = { sdkVersion: "0.177.0" };
11228
11241
  //#endregion
11229
11242
  //#region src/client/error.ts
11230
11243
  let _Symbol$for;
@@ -11474,7 +11487,7 @@ const API_ENDPOINTS = Object.freeze({
11474
11487
  path: "/public/content/{siteId}/{type}/entries",
11475
11488
  method: "GET",
11476
11489
  revalidate: publicReadFreshnessSeconds("listPublishedEntries"),
11477
- tags: ["content-{siteId}-{type}"],
11490
+ tags: [TAG_TEMPLATES.siteRoutableContent],
11478
11491
  auth: "public",
11479
11492
  responseKind: "json"
11480
11493
  },
@@ -11482,7 +11495,7 @@ const API_ENDPOINTS = Object.freeze({
11482
11495
  path: "/public/content/{siteId}/{type}/{slug}/preview",
11483
11496
  method: "GET",
11484
11497
  revalidate: publicReadFreshnessSeconds("getPublishedEntryPreview"),
11485
- tags: ["content-{siteId}-{type}-{slug}"],
11498
+ tags: [TAG_TEMPLATES.siteRoutableContent],
11486
11499
  auth: "public",
11487
11500
  responseKind: "json"
11488
11501
  },
@@ -12643,13 +12656,27 @@ const defaultRiverbankClientDeps = {
12643
12656
  * const site = await client.getSite({ slug: 'my-site' });
12644
12657
  * ```
12645
12658
  */
12659
+ /**
12660
+ * A memory hit skips fetch, so Next never sees the read's tags: an ISR render would store old
12661
+ * content under a page no webhook can reach. Next's tagged fetch cache already covers these reads.
12662
+ */
12663
+ function isRunningInNextServer() {
12664
+ return typeof window === "undefined" && typeof process !== "undefined" && Boolean(process.env.NEXT_RUNTIME);
12665
+ }
12666
+ function resolveMemoryCachePolicy(config) {
12667
+ const enabled = config.cache?.enabled;
12668
+ return {
12669
+ cacheEnabled: enabled ?? true,
12670
+ servesFreshMemoryHits: enabled ?? !isRunningInNextServer()
12671
+ };
12672
+ }
12646
12673
  function createRiverbankClient(config) {
12647
12674
  return createRiverbankClientWithDeps(defaultRiverbankClientDeps, config);
12648
12675
  }
12649
12676
  function createRiverbankClientWithDeps(deps, config) {
12650
12677
  if (!config.baseUrl) throw new Error("baseUrl is required when creating a Riverbank client. Expected format: https://dashboard.example.com/api (must include /api path)");
12651
12678
  if (!config.baseUrl.endsWith("/api")) throw new Error(`baseUrl must end with '/api'. Received: ${config.baseUrl}. Expected format: https://dashboard.example.com/api`);
12652
- const cacheEnabled = config.cache?.enabled ?? true;
12679
+ const { cacheEnabled, servesFreshMemoryHits } = resolveMemoryCachePolicy(config);
12653
12680
  const cacheTTL = (config.cache?.ttl ?? 300) * 1e3;
12654
12681
  const cacheMaxSize = config.cache?.maxSize ?? 100;
12655
12682
  const resilienceEnabled = config.resilience?.enabled ?? true;
@@ -12798,7 +12825,7 @@ function createRiverbankClientWithDeps(deps, config) {
12798
12825
  durationMs: Date.now() - startTime,
12799
12826
  ...extra
12800
12827
  });
12801
- if (cacheEnabled && !options.force) {
12828
+ if (servesFreshMemoryHits && !options.force) {
12802
12829
  const fresh = cache.getFresh(cacheKey);
12803
12830
  if (fresh !== null) return emitStatus("cache", fresh, statusDetails({ cacheTier: "memory-fresh" }));
12804
12831
  }
@@ -8644,6 +8644,11 @@ function appointmentCancelCopy(appointment, siteTitle) {
8644
8644
  buttonLabel: "Cancel",
8645
8645
  title: "Cancel appointment?",
8646
8646
  body: [cancelBody(outcome, siteTitle), outcome.kind === "refund" ? protectedDepositCancelSentence(outcome) : null].filter(Boolean).join(" "),
8647
+ terms: appointment.cancellation.termsApplyOnCancel === true ? {
8648
+ before: `${siteTitle?.trim() ? `${siteTitle.trim()}'s` : "Their"} `,
8649
+ linkLabel: "booking terms",
8650
+ href: "/terms"
8651
+ } : null,
8647
8652
  keepLabel: "Keep appointment",
8648
8653
  confirmLabel: "Confirm cancel",
8649
8654
  confirmAcceptsNoRefund: outcome.kind === "keep_credit"
@@ -8702,6 +8707,7 @@ function presentPortalAppointment(appointment, display) {
8702
8707
  buttonLabel: "Cancel request",
8703
8708
  title: `Cancel your request for ${appointment.serviceName} on ${slot.when}?`,
8704
8709
  body: display.siteTitle ? `We'll let ${display.siteTitle} know.` : "We'll let them know.",
8710
+ terms: null,
8705
8711
  keepLabel: "Keep it",
8706
8712
  confirmLabel: "Cancel request",
8707
8713
  confirmAcceptsNoRefund: false
@@ -10888,6 +10894,17 @@ function PortalCardNote({ text }) {
10888
10894
  children: text
10889
10895
  }) : null;
10890
10896
  }
10897
+ function CancelDialogTerms({ terms }) {
10898
+ if (terms === null) return null;
10899
+ return /* @__PURE__ */ jsxs("div", { children: [
10900
+ terms.before,
10901
+ /* @__PURE__ */ jsx("a", {
10902
+ href: terms.href,
10903
+ children: terms.linkLabel
10904
+ }),
10905
+ " still apply."
10906
+ ] });
10907
+ }
10891
10908
  function AppointmentCard({ appointment, bookPath, siteTitle, isPast: isApptPast = false, onRefresh, cancelledNotice, onCancelled }) {
10892
10909
  const { context } = usePortalDateDisplay();
10893
10910
  const presentation = presentPortalAppointment(appointment, {
@@ -10916,25 +10933,29 @@ function AppointmentCard({ appointment, bookPath, siteTitle, isPast: isApptPast
10916
10933
  title: cancelCopy.title,
10917
10934
  titleId: `cp-cancel-appointment-${appointment.id}`,
10918
10935
  onClose: cancelFlow.dismissCancelFlow,
10919
- children: [/* @__PURE__ */ jsx("div", { children: cancelCopy.body }), /* @__PURE__ */ jsxs("div", {
10920
- className: "cp-modal__actions",
10921
- children: [/* @__PURE__ */ jsx(ThemedButton, {
10922
- type: "button",
10923
- disabled: cancelFlow.submitting,
10924
- onClick: cancelFlow.dismissCancelFlow,
10925
- variant: "secondary",
10926
- size: "sm",
10927
- label: cancelCopy.keepLabel
10928
- }), /* @__PURE__ */ jsx(ThemedButton, {
10929
- type: "button",
10930
- disabled: cancelFlow.submitting,
10931
- onClick: () => void cancelFlow.submitCancel(cancelCopy.confirmAcceptsNoRefund ? { confirmCancelWithoutRefund: true } : void 0),
10932
- variant: "primary",
10933
- size: "sm",
10934
- extraClassName: "cp-button--danger",
10935
- label: cancelFlow.submitting ? "Cancelling..." : cancelCopy.confirmLabel
10936
- })]
10937
- })]
10936
+ children: [
10937
+ /* @__PURE__ */ jsx("div", { children: cancelCopy.body }),
10938
+ /* @__PURE__ */ jsx(CancelDialogTerms, { terms: cancelCopy.terms }),
10939
+ /* @__PURE__ */ jsxs("div", {
10940
+ className: "cp-modal__actions",
10941
+ children: [/* @__PURE__ */ jsx(ThemedButton, {
10942
+ type: "button",
10943
+ disabled: cancelFlow.submitting,
10944
+ onClick: cancelFlow.dismissCancelFlow,
10945
+ variant: "secondary",
10946
+ size: "sm",
10947
+ label: cancelCopy.keepLabel
10948
+ }), /* @__PURE__ */ jsx(ThemedButton, {
10949
+ type: "button",
10950
+ disabled: cancelFlow.submitting,
10951
+ onClick: () => void cancelFlow.submitCancel(cancelCopy.confirmAcceptsNoRefund ? { confirmCancelWithoutRefund: true } : void 0),
10952
+ variant: "primary",
10953
+ size: "sm",
10954
+ extraClassName: "cp-button--danger",
10955
+ label: cancelFlow.submitting ? "Cancelling..." : cancelCopy.confirmLabel
10956
+ })]
10957
+ })
10958
+ ]
10938
10959
  }) : null,
10939
10960
  cancelFlow.dialog.tag === "confirmWithoutRefund" ? /* @__PURE__ */ jsxs(PortalModal, {
10940
10961
  title: "Cancel without a refund?",
@@ -3,7 +3,7 @@ import { Mn as unsafeAsContentEntryId } from "./shop.interactive-CxDJ8P2r.mjs";
3
3
  import { a as mediaIdentifierSchema, i as resolveManagedMediaReference, n as renderableMediaAssetSchema, o as parseCanonicalMediaIdentifier, s as parseMediaIdentifier, t as buildRenderableMediaAssetIndex } from "./renderableMediaAssetAdmission-BlfqYLJW.mjs";
4
4
  import { $o as offeringLabelForPageSurfaceSubject, Dr as computeMediaTransformStyle, Fa as readRuntimeNow, Ia as resolveDateRuntimeContext, Mr as resolveImageUrl$1, Nr as resolveImageUrlWithContext$1, Xr as plainTextToInlineText, Yr as parseInlineTextFromUnknown, jr as resolveImageSourceSetWithContext$1, ko as sanitizeHref, ps as unsafeAsEventCategoryId, qr as inlineTextToPlainText, wr as RichText$2 } from "./display-4HYOb-AK.mjs";
5
5
  import { Ft as EVENT_PRESET_VALUES, Pt as isRecord, dt as runtimeMediaSchema, hn as toUtcIsoDateTimeString, it as createRichTextDoc, lt as mediaSchema, rt as buildRichTextSchema, ut as persistableMediaSchema } from "./noop-CaQxI-Js.mjs";
6
- import { $ as projectRepeaterGridLayout$1, A as SUPPORTED_LOADER_ENDPOINTS, B as resolveRouteHrefForStage, C as resolveSdkBlockManifest, D as MISSING_SDK_THEME_ERROR_CODE, E as resolveSiteCustomBlocks, F as renderBlock, G as siteHeaderManifest, H as getBlockDefinition, I as getDefaultComponentRegistry, J as compileManifestContentContract, K as blockDesignCapabilityMapFromDefinitions, L as resolveAuthoredLinkHref, N as planBlockDataRequests, O as MissingSdkThemeError, P as makeDefaultBlockComponent, Q as fieldPlanToZod, R as isRouteVisibleInStage, S as readInvalidBlockAdmission, T as siteBlockRenderContext, U as systemBlockDefinitions, V as allOutlineBlocks, W as siteFooterManifest, X as admitLayoutGridForPlan, Y as registeredManifestContentContract, Z as deriveFieldValidationPlan, _ as buildRenderablePageOutline, a as solvedInksForThemeRuntime, b as invalidRenderableBlock$1, c as MissingBlockOverrideError, ct as applyCompiledRuntimeFieldsToContent, d as buildThemeRuntime, dt as readPublishedBlockPlacement, et as projectRepeaterGridLayoutForRendering$1, f as parseBlocksTheme, g as blockDesignInputsForDefinition, h as resolveRuntimeJoinFacts, i as renderWithSdkThemeRuntime, it as isRecord$1, j as prefetchBlockDataWithFailures, k as requireSdkTheme, l as PageRenderer, lt as compileEditorModelRuntime, m as isEntryBoundBlockEmpty, n as planLayoutThemeRuntime, nt as normalizeRepeaterGridSpan, o as ThemeScope, ot as parseListLook, p as applyBindingsToContent, q as admitTransportedRenderableManifestContent, r as renderWithOverrideOnlyRuntime, rt as resolveRepeaterGridAcceptedSpans, s as EditorPageRenderer, st as buildPageDesignEditorReadModel, t as Page, tt as flowRepeaterGridItems, u as toBlocksPageRendererDataContext, v as buildSiteRenderSupport, w as sanitizeSdkRuntimeBlockContent, x as projectRenderablePageOutline, y as collectMediaAssetSidecar, z as normalizeRenderStage } from "./Page-F3lhDvw1.mjs";
6
+ import { $ as projectRepeaterGridLayout$1, A as SUPPORTED_LOADER_ENDPOINTS, B as resolveRouteHrefForStage, C as resolveSdkBlockManifest, D as MISSING_SDK_THEME_ERROR_CODE, E as resolveSiteCustomBlocks, F as renderBlock, G as siteHeaderManifest, H as getBlockDefinition, I as getDefaultComponentRegistry, J as compileManifestContentContract, K as blockDesignCapabilityMapFromDefinitions, L as resolveAuthoredLinkHref, N as planBlockDataRequests, O as MissingSdkThemeError, P as makeDefaultBlockComponent, Q as fieldPlanToZod, R as isRouteVisibleInStage, S as readInvalidBlockAdmission, T as siteBlockRenderContext, U as systemBlockDefinitions, V as allOutlineBlocks, W as siteFooterManifest, X as admitLayoutGridForPlan, Y as registeredManifestContentContract, Z as deriveFieldValidationPlan, _ as buildRenderablePageOutline, a as solvedInksForThemeRuntime, b as invalidRenderableBlock$1, c as MissingBlockOverrideError, ct as applyCompiledRuntimeFieldsToContent, d as buildThemeRuntime, dt as readPublishedBlockPlacement, et as projectRepeaterGridLayoutForRendering$1, f as parseBlocksTheme, g as blockDesignInputsForDefinition, h as resolveRuntimeJoinFacts, i as renderWithSdkThemeRuntime, it as isRecord$1, j as prefetchBlockDataWithFailures, k as requireSdkTheme, l as PageRenderer, lt as compileEditorModelRuntime, m as isEntryBoundBlockEmpty, n as planLayoutThemeRuntime, nt as normalizeRepeaterGridSpan, o as ThemeScope, ot as parseListLook, p as applyBindingsToContent, q as admitTransportedRenderableManifestContent, r as renderWithOverrideOnlyRuntime, rt as resolveRepeaterGridAcceptedSpans, s as EditorPageRenderer, st as buildPageDesignEditorReadModel, t as Page, tt as flowRepeaterGridItems, u as toBlocksPageRendererDataContext, v as buildSiteRenderSupport, w as sanitizeSdkRuntimeBlockContent, x as projectRenderablePageOutline, y as collectMediaAssetSidecar, z as normalizeRenderStage } from "./Page-C03rc6jw.mjs";
7
7
  import { Bn as resolveRepeaterGridRowFieldId, Kn as isCanonicalRichTextDoc, Vn as resolveRepeaterGridSpanFieldId, zn as resolveRepeaterGridColumnFieldId, zt as parseFieldDefinition } from "./registry.server-CIWYKz1V.mjs";
8
8
  import { F as surfaceResolutionContextFromTheme, O as componentRuntimeRulesForSiteStyle, Q as parsePageDesignIntent, hn as asLayoutVariantKey, j as requireCuratedSiteStyle, k as designRuntimeRulesForSiteStyle, mn as asDesignBlockId, pn as asAppearancePresetId, w as buildInitialPolicyPageDesignIntent, wt as appearancePresets } from "./lookSurfaces-BwiNdgMU.mjs";
9
9
  import { l as parseBackgroundContent } from "./boxStyleClassNames-B_hcuT06.mjs";
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { Ft as locationPinSchema } from "./lucide-react-Dfgl3Vtq.mjs";
2
+ import { Pt as locationPinSchema } from "./lucide-react-McYZeSMb.mjs";
3
3
  import { createContext, useContext } from "react";
4
4
  import { jsx } from "react/jsx-runtime";
5
5
  //#region ../editor-blocks/src/widgets/location/editMapDecision.ts
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { r as __toESM } from "./rolldown-runtime-CE6sIgz8.mjs";
3
- import { At as sameMeaningfulAddress, Ft as locationPinSchema, T as Minus, k as LocateFixed, v as Plus } from "./lucide-react-Dfgl3Vtq.mjs";
4
- import { a as NO_EDIT_MAP_OVERLAY, c as overlayFeatures, d as editMapResource, f as editMapStyleUrl, i as useOptionalLocationPickerEnvironment, l as EMPTY_EDIT_MAP_VIEW, m as moveEditingPin, o as midpoint, p as isPinArrow, s as overlayExtent, u as editMapInteraction } from "./LocationPickerEnvironment-8iKKoYZr.mjs";
3
+ import { Pt as locationPinSchema, T as Minus, k as LocateFixed, kt as sameMeaningfulAddress, v as Plus } from "./lucide-react-McYZeSMb.mjs";
4
+ import { a as NO_EDIT_MAP_OVERLAY, c as overlayFeatures, d as editMapResource, f as editMapStyleUrl, i as useOptionalLocationPickerEnvironment, l as EMPTY_EDIT_MAP_VIEW, m as moveEditingPin, o as midpoint, p as isPinArrow, s as overlayExtent, u as editMapInteraction } from "./LocationPickerEnvironment-BHAT81Wx.mjs";
5
5
  import { useEffect, useEffectEvent, useMemo, useRef, useState } from "react";
6
6
  import { jsx, jsxs } from "react/jsx-runtime";
7
7
  import { createPortal } from "react-dom";
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import { r as __toESM, t as __commonJSMin } from "./rolldown-runtime-CE6sIgz8.mjs";
3
- import { $a as richTextVariantCapabilities, $c as composeEventHandlers, $o as gradientToCss, $u as unsafeAsEditorBlockId, Ac as __spreadArrays, Cc as __assign, Ci as getRichTextImageSize, Dc as __read, Di as resolveMediaStorageUrl, E as selectedImageFromRenderableAsset, Ec as __generator, Ei as resolveImageUrlWithContext, F as lookTilePosition, Gl as parseAspectRatioValue, Gs as selectedCanvasBlockId, Hc as useSize, Hl as isRotationDimensionSwap, Jl as getImageUrl, Kl as resolveMediaTransformForAspect, L as nextLookTilePin, Nl as surfaceForegroundValue, Oc as __rest, Oi as SECTION_BACKGROUND_MIN_SOURCE_WIDTH, P as lookPositionLabel, Qc as createContextScope, Qi as readThemeScopeContext, Qs as Dialog, S as pageDesignLookPosition, T as selectedImageFromMediaValue, Tc as __extends, Ul as normalizeRightAngle, Wl as formatAspectRatioToken, Ws as unwrapResponse, Xc as useControllableState, Ys as Callout, Za as RichTextDocSchema, al as cva, an as getDashboardBaseUrl, bn as useEditorUiStoreInstance, bo as replaceInlineTextRange, cc as DialogClose, cd as assertNever, cu as asLayoutVariantKey, dc as DialogOverlay, dd as unsafeAsPositiveByteCount, do as inlineTextEqual, du as generateUuidV4, ec as DialogContent$1, el as Primitive, er as backgroundColorTokens, eu as resolveManagedMediaReference, fc as DialogPortal, fo as inlineTextHighlightTones, go as normalizeInlineTextMarks, gs as assertNever$1, ho as normalizeInlineText, i as usePreviewSidebarNavigation, ic as DialogTitle$1, il as useControlReadiness, j as usePreviewRenderBackgrounds, kc as __spreadArray, lc as DialogContent, ll as useComposedRefs, lr as rankBackgroundImagePoolItems, ni as getBlockDefinition, nl as Button, nr as defaultBackgroundOverrideForMode, nu as mediaIdentifierSchema, o as usePreviewPageDesignEditorState, oc as overlayScrimClass, pc as DialogTitle, po as inlineTextToPlainText, ql as getDirectImageUrlForMediaAsset, qo as getCuratedSiteStyle, rc as DialogHeader, so as applyInlineTextMarkToRange, tc as DialogDescription$1, ts as getGradientPreset, uc as DialogDescription, ud as unsafeAsMediaAssetId, ul as cn$2, uo as inlineTextAccentTones, uu as authoredValuesEqual, vo as plainTextToInlineText, wc as __awaiter, wi as computeMediaTransformStyle, x as cyclePageDesignBlockLook, xc as usePortalContainer, xo as truncateInlineText, yn as useEditorUiStore, yo as removeInlineTextMarkFromRange } from "./previewAssistantSlot-BqY2TTcZ.mjs";
4
- import { A as LoaderCircle, F as Italic$1, G as FileText, H as Highlighter, I as Info, J as FileHeadphone, K as FileSpreadsheet, Kt as err, L as Image, M as ListOrdered, N as Link$1, R as ImageUp, S as Palette, St as Archive, W as File, Y as FileArchive, Z as EyeOff, a as Upload, c as Trash2, j as List, mt as Check, n as X, q as FilePlay, qt as ok, s as TriangleAlert, tt as Crop, vt as Bold$1, y as Pencil } from "./lucide-react-Dfgl3Vtq.mjs";
5
- import { At as useFieldDescribedBy, Dt as Input, E as usePreviewCompiledThemeOptional, G as TransferError, H as useMediaEditor, L as siteColourCss, S as planBlockToolbarPlacement, St as usePrevious, U as useMediaEditorOptional, W as useApiMediaUploader, _ as PreviewChromeFloatingControl, _t as Select, b as measureSiteTopChromeClearance, bt as SelectTrigger, ct as EditorCanvasChoiceChip, dt as EditorInsertionMarker, ft as EditorSelectionFrame, h as CustomizeBackgroundColorPicker, lt as EditorCanvasCycleChip, pt as CHOSEN_OPTION_CLASS, st as EditorCanvasChipRow, ut as EditorCanvasNameChip, vt as SelectContent, xt as SelectValue, y as readThemeCustomProperties, yt as SelectItem, zt as classifyKnownMimeType } from "./siteStyleAccess-DbKozRSn.mjs";
6
- import { A as Tooltip, F as DropdownMenu, H as DropdownMenuTrigger, I as DropdownMenuContent, L as DropdownMenuItem, M as TooltipProvider, N as TooltipTrigger, P as Badge, a as blockNoticeAction, d as arrangementBackgroundControlFor, f as arrangementBlockControlsFor, j as TooltipContent, o as blockNoticeLabel, r as useBlockCustomizeControls, s as blockNoticeMessage, t as useOpenBlockForSetup, u as useBlockNotice } from "./useOpenBlockForSetup-Ce4WCxpT.mjs";
3
+ import { $a as richTextVariantCapabilities, $c as createContextScope, $o as gradientToCss, $s as Dialog, Ac as __spreadArray, Ci as getRichTextImageSize, Dc as __generator, Di as resolveMediaStorageUrl, E as selectedImageFromRenderableAsset, Ec as __extends, Ei as resolveImageUrlWithContext, F as lookTilePosition, Gl as formatAspectRatioToken, Gs as selectedCanvasBlockId, Jl as getDirectImageUrlForMediaAsset, Kl as parseAspectRatioValue, L as nextLookTilePin, Oc as __read, Oi as SECTION_BACKGROUND_MIN_SOURCE_WIDTH, P as lookPositionLabel, Pl as surfaceForegroundValue, Qi as readThemeScopeContext, Qs as Spinner, S as pageDesignLookPosition, Sc as usePortalContainer, T as selectedImageFromMediaValue, Tc as __awaiter, Uc as useSize, Ul as isRotationDimensionSwap, Wl as normalizeRightAngle, Ws as unwrapResponse, Yl as getImageUrl, Ys as Callout, Za as RichTextDocSchema, Zc as useControllableState, ac as DialogTitle$1, al as useControlReadiness, an as getDashboardBaseUrl, bn as useEditorUiStoreInstance, bo as replaceInlineTextRange, dc as DialogDescription, dd as unsafeAsMediaAssetId, dl as cn$2, do as inlineTextEqual, du as authoredValuesEqual, ed as unsafeAsEditorBlockId, el as composeEventHandlers, er as backgroundColorTokens, fc as DialogOverlay, fd as unsafeAsPositiveByteCount, fo as inlineTextHighlightTones, fu as generateUuidV4, go as normalizeInlineTextMarks, gs as assertNever$1, ho as normalizeInlineText, i as usePreviewSidebarNavigation, ic as DialogHeader, j as usePreviewRenderBackgrounds, jc as __spreadArrays, kc as __rest, lc as DialogClose, ld as assertNever, lr as rankBackgroundImagePoolItems, lu as asLayoutVariantKey, mc as DialogTitle, nc as DialogDescription$1, ni as getBlockDefinition, nr as defaultBackgroundOverrideForMode, o as usePreviewPageDesignEditorState, ol as cva, pc as DialogPortal, po as inlineTextToPlainText, ql as resolveMediaTransformForAspect, qo as getCuratedSiteStyle, rl as Button, ru as mediaIdentifierSchema, sc as overlayScrimClass, so as applyInlineTextMarkToRange, tc as DialogContent$1, tl as Primitive, ts as getGradientPreset, tu as resolveManagedMediaReference, uc as DialogContent, ul as useComposedRefs, uo as inlineTextAccentTones, vo as plainTextToInlineText, wc as __assign, wi as computeMediaTransformStyle, x as cyclePageDesignBlockLook, xo as truncateInlineText, yn as useEditorUiStore, yo as removeInlineTextMarkFromRange } from "./previewAssistantSlot-B-utyhbS.mjs";
4
+ import { A as List, F as Info, G as FileSpreadsheet, Gt as err, I as Image, J as FileArchive, K as FilePlay, Kt as ok, L as ImageUp, M as Link$1, P as Italic$1, S as Palette, U as File, V as Highlighter, W as FileText, X as EyeOff, _t as Bold$1, a as Upload, c as Trash2, et as Crop, j as ListOrdered, n as X, pt as Check, q as FileHeadphone, s as TriangleAlert, xt as Archive, y as Pencil } from "./lucide-react-McYZeSMb.mjs";
5
+ import { At as useFieldDescribedBy, Dt as Input, E as usePreviewCompiledThemeOptional, G as TransferError, H as useMediaEditor, L as siteColourCss, S as planBlockToolbarPlacement, St as usePrevious, U as useMediaEditorOptional, W as useApiMediaUploader, _ as PreviewChromeFloatingControl, _t as Select, b as measureSiteTopChromeClearance, bt as SelectTrigger, ct as EditorCanvasChoiceChip, dt as EditorInsertionMarker, ft as EditorSelectionFrame, h as CustomizeBackgroundColorPicker, lt as EditorCanvasCycleChip, pt as CHOSEN_OPTION_CLASS, st as EditorCanvasChipRow, ut as EditorCanvasNameChip, vt as SelectContent, xt as SelectValue, y as readThemeCustomProperties, yt as SelectItem, zt as classifyKnownMimeType } from "./siteStyleAccess-sjOvRAHY.mjs";
6
+ import { A as Tooltip, F as DropdownMenu, H as DropdownMenuTrigger, I as DropdownMenuContent, L as DropdownMenuItem, M as TooltipProvider, N as TooltipTrigger, P as Badge, a as blockNoticeAction, d as arrangementBackgroundControlFor, f as arrangementBlockControlsFor, j as TooltipContent, o as blockNoticeLabel, r as useBlockCustomizeControls, s as blockNoticeMessage, t as useOpenBlockForSetup, u as useBlockNotice } from "./useOpenBlockForSetup-BS7CANPv.mjs";
7
7
  import * as React$1 from "react";
8
8
  import React, { Component, createContext, createRef, forwardRef, useCallback, useContext, useDebugValue, useEffect, useId, useImperativeHandle, useLayoutEffect, useMemo, useRef, useState } from "react";
9
9
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
@@ -329,6 +329,49 @@ function SegmentedControl({ options, value, onValueChange, size = "default", cla
329
329
  });
330
330
  }
331
331
  //#endregion
332
+ //#region ../ui/src/content-spinner.tsx
333
+ const LOADING_PANEL_MARK_SIZE = {
334
+ section: 24,
335
+ page: 48
336
+ };
337
+ /**
338
+ * The layout of a panel-sized wait, whichever mark it's showing.
339
+ *
340
+ * It renders straight away on the server and has no hold-back: `loading.tsx`
341
+ * files are shown during SSR streaming, and a delayed loader would show nothing
342
+ * until hydration.
343
+ */
344
+ function LoadingPanel({ mark, scale, words, srLabel, className }) {
345
+ return /* @__PURE__ */ jsxs("div", {
346
+ role: "status",
347
+ "aria-live": "polite",
348
+ className: cn$2("flex flex-col items-center justify-center gap-3", scale === "page" ? "py-24" : "py-8", className),
349
+ children: [mark, words === void 0 ? /* @__PURE__ */ jsx("span", {
350
+ className: "sr-only",
351
+ children: srLabel
352
+ }) : /* @__PURE__ */ jsx("p", {
353
+ className: "text-sm text-muted-foreground",
354
+ children: words
355
+ })]
356
+ });
357
+ }
358
+ /**
359
+ * The neutral panel: what a shared package shows, because it can't know the
360
+ * surface and may be running on a customer's domain. The dashboard's own panels
361
+ * use `WaitPanel`, which picks the surface's mark.
362
+ */
363
+ function ContentSpinner({ scale, className, ...label }) {
364
+ return /* @__PURE__ */ jsx(LoadingPanel, {
365
+ ...label,
366
+ scale,
367
+ className,
368
+ mark: /* @__PURE__ */ jsx(Spinner, {
369
+ size: LOADING_PANEL_MARK_SIZE[scale],
370
+ className: "text-primary"
371
+ })
372
+ });
373
+ }
374
+ //#endregion
332
375
  //#region ../../node_modules/.pnpm/@radix-ui+react-switch@1.3.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@_5ced62f53b2a5960b397a73a077192c7/node_modules/@radix-ui/react-switch/dist/index.mjs
333
376
  var SWITCH_NAME = "Switch";
334
377
  var [createSwitchContext, createSwitchScope] = createContextScope(SWITCH_NAME);
@@ -29191,9 +29234,10 @@ const DASHBOARD_ORIGIN = process.env.NEXT_PUBLIC_DASHBOARD_URL ? getDashboardBas
29191
29234
  const MEDIA_UPGRADE_HREF = `${DASHBOARD_ORIGIN}/dashboard/account/billing`;
29192
29235
  const MEDIA_SIGN_IN_HREF = `${DASHBOARD_ORIGIN}/auth/login`;
29193
29236
  function MediaPickerLibraryStatus({ loading, error, visibleCount, hasMore, retryLoad }) {
29194
- if (loading && visibleCount === 0) return /* @__PURE__ */ jsxs("div", {
29195
- className: "col-span-full flex min-h-32 items-center justify-center gap-2 rounded border border-dashed p-4 text-sm text-muted-foreground",
29196
- children: [/* @__PURE__ */ jsx(LoaderCircle, { className: "h-4 w-4 animate-spin" }), "Loading media library..."]
29237
+ if (loading && visibleCount === 0) return /* @__PURE__ */ jsx(ContentSpinner, {
29238
+ scale: "section",
29239
+ words: "Loading your media library…",
29240
+ className: "col-span-full min-h-32 rounded border border-dashed p-4"
29197
29241
  });
29198
29242
  if (!loading && error) return /* @__PURE__ */ jsxs("div", {
29199
29243
  className: "col-span-full flex min-h-32 flex-col items-center justify-center gap-3 rounded border border-destructive/30 p-4 text-center text-sm",
@@ -31422,4 +31466,4 @@ function PageSectionToolbar({ blockId, content }) {
31422
31466
  ] });
31423
31467
  }
31424
31468
  //#endregion
31425
- export { ScrollableDialogContent as A, EMPTY_DOC as C, resolveSdkFooterMode as D, decideDocumentReplacement as E, resolveVideoSelectionIntentForMediaField as F, isSvgMimeType as I, Surface as M, surfaceVariants as N, Switch as O, emitMediaCropDebug as P, useRichTextEditor as S, InlineTextEditor as T, MediaPickerMiniDialog as _, ArrangementOptionsBody as a, getRichTextImagePositionFromTarget as b, BackgroundChooser as c, gradientLabel as d, readBackgroundColorPaletteSnapshot as f, MediaEditor as g, getUnresolvedRichTextImageWarnings as h, ArrangementLookNote as i, ScrollableDialogShell as j, SegmentedControl as k, BackgroundPreviewSwatch as l, useRichTextImageProjection as m, pageSectionIdFromBlockId as n, lookIsAutomatic as o, useSiteColourVariables as p, BlockToolbar as r, useArrangementToolbar as s, PageSectionToolbar as t, formatTokenLabel as u, MediaPickerMini as v, parseRichTextDoc as w, insertOrReplaceRichTextImage as x, RichTextEditorSurface as y };
31469
+ export { SegmentedControl as A, EMPTY_DOC as C, resolveSdkFooterMode as D, decideDocumentReplacement as E, emitMediaCropDebug as F, resolveVideoSelectionIntentForMediaField as I, isSvgMimeType as L, ScrollableDialogShell as M, Surface as N, Switch as O, surfaceVariants as P, useRichTextEditor as S, InlineTextEditor as T, MediaPickerMiniDialog as _, ArrangementOptionsBody as a, getRichTextImagePositionFromTarget as b, BackgroundChooser as c, gradientLabel as d, readBackgroundColorPaletteSnapshot as f, MediaEditor as g, getUnresolvedRichTextImageWarnings as h, ArrangementLookNote as i, ScrollableDialogContent as j, ContentSpinner as k, BackgroundPreviewSwatch as l, useRichTextImageProjection as m, pageSectionIdFromBlockId as n, lookIsAutomatic as o, useSiteColourVariables as p, BlockToolbar as r, useArrangementToolbar as s, PageSectionToolbar as t, formatTokenLabel as u, MediaPickerMini as v, parseRichTextDoc as w, insertOrReplaceRichTextImage as x, RichTextEditorSurface as y };
@@ -1,14 +1,14 @@
1
1
  "use client";
2
2
  import { n as __exportAll } from "./rolldown-runtime-CE6sIgz8.mjs";
3
- import { $ as useFooterComposerState, $c as composeEventHandlers, $i as themeRuntimeScopeProps, $n as readSliderFieldUiConfig, $o as gradientToCss, $s as DialogClose, $t as listEntryPageContentSlots, $u as unsafeAsEditorBlockId, A as usePreviewJoinOutcome, Ai as resolveMediaSlotContract, An as lifecycleOutcomeMessage, As as resolveBlockTitle, At as toRoutableLinkPayload, Au as parseMailchimpAudienceId, Ba as BLOCK_BUTTON_ROLE_OPTIONS, Bc as Root2$1, Bn as withoutServerVersions, Bo as concretePaletteFromTheme, Bt as derivePromotedFieldPlan, C as pageDesignLookTiles, Cl as buttonStyleHoverPreferenceValue, Cn as recoveryConflictCopy, Co as buildThemeRuntime, Cs as flowRepeaterGridItems, Cu as unsafeAsFooterModuleId, Dl as updateButtonStyleHoverPreference, Ds as resolveRepeaterGridAcceptedSpans, Dt as sendPageCommand, Du as mailingListTargetingChoiceIds, Ei as resolveImageUrlWithContext, El as resolveButtonStyleSelection, Eo as DEFAULT_THEME_RESPONSIVE_MODE, Es as planRepeaterGridStartNewRow, Eu as DEFAULT_MAILING_LIST_TARGETING, F as lookTilePosition, Fc as Presence, Fr as siblingPath$2, Ft as NewsletterFormClient, Fu as parsePublicProfile, Gc as useFocusGuards, Gi as isOfferingsPreviewSourceKey, Gl as parseAspectRatioValue, Gn as createManifestFormAdapter, Gt as hasVisibilityConditions, Gu as pristineValueSync, Hc as useSize, Hl as isRotationDimensionSwap, Ht as evaluateVisibility, I as lookTilesFor, Ic as Portal$1, Ir as withValueAtPath, Iu as publicProfileWeekdays, J as footerLayoutSelection, Jc as useDirection, Ji as planOfferingPreviewCardSelection, Jn as getFieldDefault, Jt as createBlock, Ju as createEditorInsertBlockCommand, Kc as DismissableLayer, Ki as normalizeOfferingsPreviewGroupOrder, Kl as resolveMediaTransformForAspect, Kn as createManifestValidation, Ks as sidebarReturnView, Kt as isNonEmptyValue, Ku as syncStateOf, Lc as Anchor, Lt as useImageResolveContextOptional, Lu as publishedContactDetails, M as usePreviewRenderReadiness, Mo as sectionPhotoPresence, Mt as updateFooterComposition, Mu as parseNewsletterListId, Nt as footerCreditLine, Nu as knownSocialPlatformLabels, Ol as updateButtonStyleSelectionChoice, Oo as resolveVisiblePromotedFieldPathsForEditorBlock, Os as resolveRepeaterGridBreakpointForWidth, Ot as missingReceiptError, Pr as getAtPath, Pu as knownSocialPlatforms, Q as useFooterAuthoringOptional, Qa as isRichTextDoc, Qc as createContextScope, Qn as readNumberFieldUiConfig, Qs as Dialog, Qt as isSurfaceSlotBlockTarget, Qu as editorBlockCollectionOwnersEqual, R as selectedLookTile, Rc as Arrow$1, Ri as buildResolveImageUrlContext, Ro as getHeaderLayout, Rs as OPERATION_ID_HEADER, Rt as FormNodeClient, Sc as ReactRemoveScroll, Sl as siteOptionSources, Sn as useSidebarView, So as parseFieldDefinition, Ss as findFirstAvailableRepeaterGridPlacement, Su as setFooterSectionSelected, Ti as resolveImageSourceSetWithContext, Tl as findButtonStyleRecipe, Tn as unfinishedBlockCopy, Ts as normalizeRepeaterGridSpan, Tt as LeaseNoticeButtons, Tu as parseMailingListPlacementTargeting, U as usePreviewAuth, Uc as useId$1, Us as extractApiEnvelopeErrorDetails, Ut as getFieldIntent, Uu as displayedValues, Va as isBlockButtonRole, Vc as createPopperScope, Vn as deriveEditorValuePublicationState, Vo as concretePaletteToTheme, Vt as collectVisibleWhenWatchPaths, Wc as FocusScope, Wi as inferLegacyOfferingsPreviewGroupOrder, Wn as initialBlockDraftValues, Wo as defaultPolicyPageFlowPresetId, Ws as unwrapResponse, Wt as getWidgetKey, Wu as knownRevision, X as resolveFooterEngagementPreview, Xa as deriveFieldValidationPlan, Xc as useControllableState, Xi as resolveOfferingsPreviewGroupOrderEntries, Xl as runtimeMediaSchema, Xn as normalizeFieldForCanonicalValidation, Xo as palettesForSiteStyle, Xs as CalloutDescription, Xt as deleteBlock, Xu as createEditorReorderBlocksCommand, Y as resolveFooterEngagementAuthoringState, Ya as admitLayoutGridForPlan, Yc as createCollection, Yl as mediaSchema, Yn as getRepeaterItemDefault, Yo as offeredSiteStyles, Ys as Callout, Yt as createSlotBlock, Yu as createEditorRemoveBlockCommand, Z as FooterComposerProvider, Zi as buildThemeDataAttrs, Zn as getGroupChildFields, Zs as CalloutTitle, Zt as deleteSlotBlock, Zu as editorBlockCollectionOwnerKey, _c as Trigger$1, _i as chooseScheduleScope, _n as resolveContentTitle, _s as isInternalResolvedLinkValue, _u as deriveFooterEditorOverview, aa as suggestSemanticIconForFeatureCard, ac as DialogTrigger, ad as resolveBookingTimeZoneId, al as cva, ao as parseGeneratedIconSetId, at as readFooterEngagementDraft, au as isBodyFontFamily, b as buildPageDesignEditorReadModelForBlocks, bi as writeEventSelectionChips, bl as resolveRepeaterGridRowFieldId, bn as useEditorUiStoreInstance, bs as planRepeaterGridSpanChange, cd as assertNever$1, co as coerceInlineTextWithFallback, cr as planBackgroundTransition, cs as sectionTransitionFamilies, d as cycleSiteChromeSelectionId, dl as useShallow, dt as DONE, du as generateUuidV4, ea as FEATURE_CARD_GENERATED_ICON_SIZE_PX, ec as DialogContent, ed as unsafeAsEditorBlockValues, el as Primitive, en as listPageSurfaceContentSlots, eo as sanitizeHref, es as GRADIENT_PRESETS, ft as runHeldLifecycle, fu as slugify$1, gc as Root$2, gi as chooseAllEvents, gl as canEditorWrite, gn as resolvePageRouteSlug, gu as mailingListProviderName, hc as Content, hi as EVENT_SELECTION_TYPE_OPTIONS, hl as readLinkedEntryLease, hn as deriveRouteMetadataPresentation, hu as resolveMailingListDefaultDestination, i as usePreviewSidebarNavigation, ia as resolveFeatureCardGeneratedIconSizePx, ic as DialogTitle$1, id as resolveBookingBusinessTimeZone, in as blocksKeys, io as parseGeneratedIconAssetId, ir as imagePoolForOverride, it as footerPartKey, jc as hideOthers, jt as publishContentEntry, ju as parseMailchimpInterestId, ki as resolveMediaSlot, kl as buttonStyleSelectionKey, ks as resolveRepeaterGridColumnsForBreakpoint, kt as footerMenuNavigationFacts, ku as parseBrevoListId, ld as parseMediaAssetId, ll as useComposedRefs, lr as rankBackgroundImagePoolItems, ls as sectionTransitionFamilyForBoundaryOptionId, lt as useEntryController, md as expectParsedBrandedId, mi as EVENT_SELECTION_SCOPE_OPTIONS, ml as canWriteLinkedEntry, mn as routeLifecycleContext, ms as appearancePresets, mu as assessMailingListTargeting, n as usePreviewAssistantSlot, na as getFeatureCardIconCompletion, nc as DialogFooter, nd as formatDateTime, ni as getBlockDefinition, nl as Button$1, nn as reorderSlotBlocks, no as getGeneratedBlockIconStyleState, ns as buildFontPreviewUrl, nt as footerHeaderStatus, nu as mediaIdentifierSchema, o as usePreviewPageDesignEditorState, oa as toFeatureCardIconSuggestionInputs, od as parseUtcIsoDateTimeString, ol as createSlot, on as getDashboardUrl, oo as parseSiteIconStyleGuideVersionId, or as parseBackgroundOverrideFromContent, os as findCuratedPalette, ot as footerEngagementEventFields, ou as asAppearancePresetId, pc as DialogTitle, pd as parseSiteId, pl as isEdited, po as inlineTextToPlainText, pt as useServerRefresh, q as buildFooterRuntimeViewModel, ql as getDirectImageUrlForMediaAsset, qn as manifestFieldSectionOptions, qo as getCuratedSiteStyle, qt as partitionFieldsByIntent, qu as valueStatus, ra as parseFeatureCardGeneratedIconSizePx, rc as DialogHeader, rd as parseBookingLocalDate, ri as listBlockDescriptors, rl as buttonVariants, rn as withSlotCompositionHash, ro as parseBlockIconValue, rr as enabledBackgroundModes, rt as footerEngagementStarted, ru as asRecord, s as usePreviewPageDesignRenderState, sd as toUtcIsoDateTimeString, ss as defaultSectionTransitionVariantForFamily, st as parseFooterEngagementDraft, ta as createFeatureCardIconKey, tc as DialogDescription$1, td as formatDate, tn as reorderBlocks, to as getBlockIconSemanticId, tr as canCycleBackgroundOverrideValue, ts as getGradientPreset, tu as PUBLIC_FILE_FIELD_KINDS, u as useSiteChromeCustomizeOptional, uc as DialogDescription, ui as buildNewsletterFormInteractiveIslandProps, ul as cn, un as ApiRequestError, ur as resolveBackgroundCapability, us as sectionTransitionVariantForBoundaryOptionId, uu as authoredValuesEqual, v as useLiveFooterRuntime, vi as readEventSelectionChips, vl as isAcceptedRepeaterGridSpan, vn as planLeaseNotice, vo as plainTextToInlineText, vs as planLayoutGridColumnEdit, vu as normalizeLegacyFooterContentToV1, w as setPageDesignBlockBackground, wi as computeMediaTransformStyle, wl as buttonStyleSelectionParameterValue, ws as isRepeaterGridLayoutInvalid, wt as LeaseDiscardedNoticeView, wu as planFooterLayout, xc as usePortalContainer, xl as resolveRepeaterGridSpanFieldId, xs as projectRepeaterGridLayout, xu as resolveFooterSections, ya as buildFormInteractiveIslandProps, yi as toggleEventType, yl as resolveRepeaterGridColumnFieldId, yn as useEditorUiStore, ys as buildRepeaterGridDropTargets, yu as parseFooterCompositionV1, zc as Content$1, zl as paletteValueKey, zn as toEditorBlockItem, zo as getHeaderStyle, zt as BlockApiProvider } from "./previewAssistantSlot-BqY2TTcZ.mjs";
4
- import { $ as EllipsisVertical, A as LoaderCircle, B as ImageOff, E as Maximize2, G as FileText, Kt as err, L as Image, O as Lock, P as Link2, R as ImageUp, S as Palette, U as GripVertical, Z as EyeOff, _t as Box$1, b as PanelTop, bt as ArrowUpRight, c as Trash2, d as SlidersHorizontal, dt as ChevronRight, f as Settings, ft as ChevronLeft, g as RotateCcw, ht as Calendar$1, i as Video, it as Clock3, lt as CircleAlert, m as Rows3, mt as Check, n as X$1, nt as Copy, pt as ChevronDown, qt as ok, rt as Clock, s as TriangleAlert, t as lucide_react_exports, tt as Crop, u as Sparkles, v as Plus, x as PanelBottom, xt as ArrowDown, y as Pencil, yt as ArrowUp, z as ImagePlus } from "./lucide-react-Dfgl3Vtq.mjs";
5
- import { $ as FieldFrame, B as useSiteOptionWidgetContext, Ct as clamp, D as SiteFontFaceStyles, Dt as Input, Et as NativeSelect, Ft as Content$2, H as useMediaEditor, It as List, J as SelectField, K as BlockContextProvider, L as siteColourCss, Lt as Root2$2, Mt as TabsContent, Nt as TabsList, Ot as FIELD_FOCUS_WITHIN_CLASS, Pt as TabsTrigger, Q as unmapValueFromSelect, R as locationWidgetOverrides, Rt as Trigger$2, St as usePrevious$1, Tt as FieldTrigger, X as mapCurrentValueForSelect, Y as hasEmptyOption, Z as mapOptionValueForSelect, _t as Select$1, at as ThemeScopeCore, bt as SelectTrigger, c as resolvePreviewSidebarChromeModel, d as dashboardLogoSettingsHref, et as FieldLabelText, f as HeaderMenuControls, gt as Textarea, i as resolvePreviewDashboardSetupHandoff, it as revealEditorElement, jt as Tabs, k as useRememberSiteFonts, kt as FIELD_SURFACE_CLASS, m as CustomizeBackgroundControlRows, mt as ChoiceTileGroup, nt as useField, o as resolvePreviewEditorGuidanceModel, p as isHeaderMenuSurfaceState, pt as CHOSEN_OPTION_CLASS, q as useBlockContext, r as buildPreviewDashboardSetupUrl, rt as useLinkedInlineTextField, t as canInspectSiteStyle, tt as hintWithCharacterLimit, u as SiteChromeSurfaceControls, vt as SelectContent, wt as SearchInput, xt as SelectValue, yt as SelectItem, z as SiteOptionWidgetProvider, zt as classifyKnownMimeType } from "./siteStyleAccess-DbKozRSn.mjs";
3
+ import { $ as useFooterComposerState, $c as createContextScope, $i as themeRuntimeScopeProps, $n as readSliderFieldUiConfig, $o as gradientToCss, $s as Dialog, $t as listEntryPageContentSlots, $u as editorBlockCollectionOwnersEqual, A as usePreviewJoinOutcome, Ai as resolveMediaSlotContract, Al as buttonStyleSelectionKey, An as lifecycleOutcomeMessage, As as resolveBlockTitle, At as toRoutableLinkPayload, Au as parseBrevoListId, Ba as BLOCK_BUTTON_ROLE_OPTIONS, Bc as Content$1, Bl as paletteValueKey, Bn as withoutServerVersions, Bo as concretePaletteFromTheme, Bt as derivePromotedFieldPlan, C as pageDesignLookTiles, Cc as ReactRemoveScroll, Cl as siteOptionSources, Cn as recoveryConflictCopy, Co as buildThemeRuntime, Cs as flowRepeaterGridItems, Cu as setFooterSectionSelected, Dl as resolveButtonStyleSelection, Ds as resolveRepeaterGridAcceptedSpans, Dt as sendPageCommand, Du as DEFAULT_MAILING_LIST_TARGETING, Ei as resolveImageUrlWithContext, El as findButtonStyleRecipe, Eo as DEFAULT_THEME_RESPONSIVE_MODE, Es as planRepeaterGridStartNewRow, Eu as parseMailingListPlacementTargeting, F as lookTilePosition, Fr as siblingPath$2, Ft as NewsletterFormClient, Fu as knownSocialPlatforms, Gc as FocusScope, Gi as isOfferingsPreviewSourceKey, Gn as createManifestFormAdapter, Gt as hasVisibilityConditions, Gu as knownRevision, Hc as createPopperScope, Ht as evaluateVisibility, I as lookTilesFor, Ic as Presence, Ir as withValueAtPath, Iu as parsePublicProfile, J as footerLayoutSelection, Ji as planOfferingPreviewCardSelection, Jl as getDirectImageUrlForMediaAsset, Jn as getFieldDefault, Jt as createBlock, Ju as valueStatus, Kc as useFocusGuards, Ki as normalizeOfferingsPreviewGroupOrder, Kl as parseAspectRatioValue, Kn as createManifestValidation, Ks as sidebarReturnView, Kt as isNonEmptyValue, Ku as pristineValueSync, Lc as Portal$1, Lt as useImageResolveContextOptional, Lu as publicProfileWeekdays, M as usePreviewRenderReadiness, Mc as hideOthers, Mo as sectionPhotoPresence, Mt as updateFooterComposition, Mu as parseMailchimpInterestId, Nt as footerCreditLine, Nu as parseNewsletterListId, Ol as updateButtonStyleHoverPreference, Oo as resolveVisiblePromotedFieldPathsForEditorBlock, Os as resolveRepeaterGridBreakpointForWidth, Ot as missingReceiptError, Ou as mailingListTargetingChoiceIds, Pr as getAtPath, Pu as knownSocialPlatformLabels, Q as useFooterAuthoringOptional, Qa as isRichTextDoc, Qn as readNumberFieldUiConfig, Qs as Spinner, Qt as isSurfaceSlotBlockTarget, Qu as editorBlockCollectionOwnerKey, R as selectedLookTile, Rc as Anchor, Ri as buildResolveImageUrlContext, Ro as getHeaderLayout, Rs as OPERATION_ID_HEADER, Rt as FormNodeClient, Ru as publishedContactDetails, Sc as usePortalContainer, Sl as resolveRepeaterGridSpanFieldId, Sn as useSidebarView, So as parseFieldDefinition, Ss as findFirstAvailableRepeaterGridPlacement, Su as resolveFooterSections, Ti as resolveImageSourceSetWithContext, Tl as buttonStyleSelectionParameterValue, Tn as unfinishedBlockCopy, Ts as normalizeRepeaterGridSpan, Tt as LeaseNoticeButtons, Tu as planFooterLayout, U as usePreviewAuth, Uc as useSize, Ul as isRotationDimensionSwap, Us as extractApiEnvelopeErrorDetails, Ut as getFieldIntent, Va as isBlockButtonRole, Vc as Root2$1, Vn as deriveEditorValuePublicationState, Vo as concretePaletteToTheme, Vt as collectVisibleWhenWatchPaths, Wc as useId$1, Wi as inferLegacyOfferingsPreviewGroupOrder, Wn as initialBlockDraftValues, Wo as defaultPolicyPageFlowPresetId, Ws as unwrapResponse, Wt as getWidgetKey, Wu as displayedValues, X as resolveFooterEngagementPreview, Xa as deriveFieldValidationPlan, Xc as createCollection, Xi as resolveOfferingsPreviewGroupOrderEntries, Xl as mediaSchema, Xn as normalizeFieldForCanonicalValidation, Xo as palettesForSiteStyle, Xs as CalloutDescription, Xt as deleteBlock, Xu as createEditorRemoveBlockCommand, Y as resolveFooterEngagementAuthoringState, Ya as admitLayoutGridForPlan, Yc as useDirection, Yn as getRepeaterItemDefault, Yo as offeredSiteStyles, Ys as Callout, Yt as createSlotBlock, Yu as createEditorInsertBlockCommand, Z as FooterComposerProvider, Zc as useControllableState, Zi as buildThemeDataAttrs, Zl as runtimeMediaSchema, Zn as getGroupChildFields, Zs as CalloutTitle, Zt as deleteSlotBlock, Zu as createEditorReorderBlocksCommand, _c as Root$2, _i as chooseScheduleScope, _l as canEditorWrite, _n as resolveContentTitle, _s as isInternalResolvedLinkValue, _u as mailingListProviderName, aa as suggestSemanticIconForFeatureCard, ac as DialogTitle$1, ad as resolveBookingBusinessTimeZone, ao as parseGeneratedIconSetId, at as readFooterEngagementDraft, b as buildPageDesignEditorReadModelForBlocks, bi as writeEventSelectionChips, bl as resolveRepeaterGridColumnFieldId, bn as useEditorUiStoreInstance, bs as planRepeaterGridSpanChange, bu as parseFooterCompositionV1, cd as toUtcIsoDateTimeString, co as coerceInlineTextWithFallback, cr as planBackgroundTransition, cs as sectionTransitionFamilies, d as cycleSiteChromeSelectionId, dc as DialogDescription, dl as cn, dt as DONE, du as authoredValuesEqual, ea as FEATURE_CARD_GENERATED_ICON_SIZE_PX, ec as DialogClose, ed as unsafeAsEditorBlockId, el as composeEventHandlers, en as listPageSurfaceContentSlots, eo as sanitizeHref, es as GRADIENT_PRESETS, fl as useShallow, ft as runHeldLifecycle, fu as generateUuidV4, gc as Content, gi as chooseAllEvents, gl as readLinkedEntryLease, gn as resolvePageRouteSlug, gu as resolveMailingListDefaultDestination, hd as expectParsedBrandedId, hi as EVENT_SELECTION_TYPE_OPTIONS, hl as canWriteLinkedEntry, hn as deriveRouteMetadataPresentation, hu as assessMailingListTargeting, i as usePreviewSidebarNavigation, ia as resolveFeatureCardGeneratedIconSizePx, ic as DialogHeader, id as parseBookingLocalDate, il as buttonVariants, in as blocksKeys, io as parseGeneratedIconAssetId, ir as imagePoolForOverride, it as footerPartKey, iu as asRecord, jt as publishContentEntry, ju as parseMailchimpAudienceId, ki as resolveMediaSlot, kl as updateButtonStyleSelectionChoice, ks as resolveRepeaterGridColumnsForBreakpoint, kt as footerMenuNavigationFacts, ld as assertNever$1, lr as rankBackgroundImagePoolItems, ls as sectionTransitionFamilyForBoundaryOptionId, lt as useEntryController, mc as DialogTitle, md as parseSiteId, mi as EVENT_SELECTION_SCOPE_OPTIONS, ml as isEdited, mn as routeLifecycleContext, ms as appearancePresets, n as usePreviewAssistantSlot, na as getFeatureCardIconCompletion, nc as DialogDescription$1, nd as formatDate, ni as getBlockDefinition, nn as reorderSlotBlocks, no as getGeneratedBlockIconStyleState, ns as buildFontPreviewUrl, nt as footerHeaderStatus, nu as PUBLIC_FILE_FIELD_KINDS, o as usePreviewPageDesignEditorState, oa as toFeatureCardIconSuggestionInputs, oc as DialogTrigger, od as resolveBookingTimeZoneId, ol as cva, on as getDashboardUrl, oo as parseSiteIconStyleGuideVersionId, or as parseBackgroundOverrideFromContent, os as findCuratedPalette, ot as footerEngagementEventFields, ou as isBodyFontFamily, po as inlineTextToPlainText, pt as useServerRefresh, pu as slugify$1, q as buildFooterRuntimeViewModel, qc as DismissableLayer, ql as resolveMediaTransformForAspect, qn as manifestFieldSectionOptions, qo as getCuratedSiteStyle, qt as partitionFieldsByIntent, qu as syncStateOf, ra as parseFeatureCardGeneratedIconSizePx, rc as DialogFooter, rd as formatDateTime, ri as listBlockDescriptors, rl as Button$1, rn as withSlotCompositionHash, ro as parseBlockIconValue, rr as enabledBackgroundModes, rt as footerEngagementStarted, ru as mediaIdentifierSchema, s as usePreviewPageDesignRenderState, sd as parseUtcIsoDateTimeString, sl as createSlot, ss as defaultSectionTransitionVariantForFamily, st as parseFooterEngagementDraft, su as asAppearancePresetId, ta as createFeatureCardIconKey, tc as DialogContent, td as unsafeAsEditorBlockValues, tl as Primitive, tn as reorderBlocks, to as getBlockIconSemanticId, tr as canCycleBackgroundOverrideValue, ts as getGradientPreset, u as useSiteChromeCustomizeOptional, ud as parseMediaAssetId, ui as buildNewsletterFormInteractiveIslandProps, ul as useComposedRefs, un as ApiRequestError, ur as resolveBackgroundCapability, us as sectionTransitionVariantForBoundaryOptionId, v as useLiveFooterRuntime, vc as Trigger$1, vi as readEventSelectionChips, vn as planLeaseNotice, vo as plainTextToInlineText, vs as planLayoutGridColumnEdit, vu as deriveFooterEditorOverview, w as setPageDesignBlockBackground, wi as computeMediaTransformStyle, wl as buttonStyleHoverPreferenceValue, ws as isRepeaterGridLayoutInvalid, wt as LeaseDiscardedNoticeView, wu as unsafeAsFooterModuleId, xl as resolveRepeaterGridRowFieldId, xs as projectRepeaterGridLayout, ya as buildFormInteractiveIslandProps, yi as toggleEventType, yl as isAcceptedRepeaterGridSpan, yn as useEditorUiStore, ys as buildRepeaterGridDropTargets, yu as normalizeLegacyFooterContentToV1, zc as Arrow$1, zn as toEditorBlockItem, zo as getHeaderStyle, zt as BlockApiProvider } from "./previewAssistantSlot-B-utyhbS.mjs";
4
+ import { E as Maximize2, Gt as err, H as GripVertical, I as Image, Kt as ok, L as ImageUp, N as Link2, O as Lock, Q as EllipsisVertical, R as ImagePlus, S as Palette, W as FileText, X as EyeOff, b as PanelTop, bt as ArrowDown, c as Trash2, ct as CircleAlert, d as SlidersHorizontal, dt as ChevronLeft, et as Crop, f as Settings, ft as ChevronDown, g as RotateCcw, gt as Box$1, i as Video, m as Rows3, mt as Calendar$1, n as X$1, nt as Clock, pt as Check, rt as Clock3, s as TriangleAlert, t as lucide_react_exports, tt as Copy, u as Sparkles, ut as ChevronRight, v as Plus, vt as ArrowUp, x as PanelBottom, y as Pencil, yt as ArrowUpRight, z as ImageOff } from "./lucide-react-McYZeSMb.mjs";
5
+ import { $ as FieldFrame, B as useSiteOptionWidgetContext, Ct as clamp, D as SiteFontFaceStyles, Dt as Input, Et as NativeSelect, Ft as Content$2, H as useMediaEditor, It as List, J as SelectField, K as BlockContextProvider, L as siteColourCss, Lt as Root2$2, Mt as TabsContent, Nt as TabsList, Ot as FIELD_FOCUS_WITHIN_CLASS, Pt as TabsTrigger, Q as unmapValueFromSelect, R as locationWidgetOverrides, Rt as Trigger$2, St as usePrevious$1, Tt as FieldTrigger, X as mapCurrentValueForSelect, Y as hasEmptyOption, Z as mapOptionValueForSelect, _t as Select$1, at as ThemeScopeCore, bt as SelectTrigger, c as resolvePreviewSidebarChromeModel, d as dashboardLogoSettingsHref, et as FieldLabelText, f as HeaderMenuControls, gt as Textarea, i as resolvePreviewDashboardSetupHandoff, it as revealEditorElement, jt as Tabs, k as useRememberSiteFonts, kt as FIELD_SURFACE_CLASS, m as CustomizeBackgroundControlRows, mt as ChoiceTileGroup, nt as useField, o as resolvePreviewEditorGuidanceModel, p as isHeaderMenuSurfaceState, pt as CHOSEN_OPTION_CLASS, q as useBlockContext, r as buildPreviewDashboardSetupUrl, rt as useLinkedInlineTextField, t as canInspectSiteStyle, tt as hintWithCharacterLimit, u as SiteChromeSurfaceControls, vt as SelectContent, wt as SearchInput, xt as SelectValue, yt as SelectItem, z as SiteOptionWidgetProvider, zt as classifyKnownMimeType } from "./siteStyleAccess-sjOvRAHY.mjs";
6
6
  import { J as paletteTokenNameSchema, V as hexColorSchema, W as paletteColorEntries, c as isKnownIconName, i as ThemedButtonSpecimen, l as isIconPickerPreset, o as getIconComponent, s as getIconPickerOptionsForPreset, tt as VARIANT_ROLES, u as resolveIconPickerPreset } from "./ThemedButton-CVYz7h68.mjs";
7
- import { A as ScrollableDialogContent, C as EMPTY_DOC, D as resolveSdkFooterMode, F as resolveVideoSelectionIntentForMediaField, I as isSvgMimeType, M as Surface, N as surfaceVariants, O as Switch, P as emitMediaCropDebug, S as useRichTextEditor, T as InlineTextEditor, _ as MediaPickerMiniDialog, a as ArrangementOptionsBody, b as getRichTextImagePositionFromTarget, c as BackgroundChooser, d as gradientLabel, f as readBackgroundColorPaletteSnapshot, g as MediaEditor, h as getUnresolvedRichTextImageWarnings, i as ArrangementLookNote, j as ScrollableDialogShell, k as SegmentedControl, l as BackgroundPreviewSwatch, m as useRichTextImageProjection, n as pageSectionIdFromBlockId, o as lookIsAutomatic, p as useSiteColourVariables, s as useArrangementToolbar, u as formatTokenLabel, v as MediaPickerMini, x as insertOrReplaceRichTextImage, y as RichTextEditorSurface } from "./PageSectionToolbar-0xyUPWUB.mjs";
7
+ import { A as SegmentedControl, C as EMPTY_DOC, D as resolveSdkFooterMode, F as emitMediaCropDebug, I as resolveVideoSelectionIntentForMediaField, L as isSvgMimeType, M as ScrollableDialogShell, N as Surface, O as Switch, P as surfaceVariants, S as useRichTextEditor, T as InlineTextEditor, _ as MediaPickerMiniDialog, a as ArrangementOptionsBody, b as getRichTextImagePositionFromTarget, c as BackgroundChooser, d as gradientLabel, f as readBackgroundColorPaletteSnapshot, g as MediaEditor, h as getUnresolvedRichTextImageWarnings, i as ArrangementLookNote, j as ScrollableDialogContent, k as ContentSpinner, l as BackgroundPreviewSwatch, m as useRichTextImageProjection, n as pageSectionIdFromBlockId, o as lookIsAutomatic, p as useSiteColourVariables, s as useArrangementToolbar, u as formatTokenLabel, v as MediaPickerMini, x as insertOrReplaceRichTextImage, y as RichTextEditorSurface } from "./PageSectionToolbar-D6-jojqh.mjs";
8
8
  import { n as TZDate } from "./src-DzXUmsyK.mjs";
9
- import { i as useOptionalLocationPickerEnvironment, n as LocationPickerEnvironmentProvider } from "./LocationPickerEnvironment-8iKKoYZr.mjs";
10
- import { a as publicationLabel, o as Spinner, s as Separator, t as useAutosaveStatus } from "./useAutosaveStatus-D9s6dyMW.mjs";
11
- import { A as Tooltip, C as blockLookOwnedFieldPaths, D as showRawStyleFields, E as prepareBlockEditorManifest, F as DropdownMenu, H as DropdownMenuTrigger, I as DropdownMenuContent, L as DropdownMenuItem, M as TooltipProvider, N as TooltipTrigger, O as getBlockManifestFromSdkConfig, P as Badge, S as arrangementVisibilityValues, T as hideThemeV2RawStyleFields, V as DropdownMenuSeparator, _ as createFieldObservation, b as arrangementLookResolution, f as arrangementBlockControlsFor, g as isRecord$1, h as isObjectRecord, i as NEEDS_SETUP_LABEL, j as TooltipContent, k as mergeBlockDescriptors, l as needsSetupOf, m as createStoreBackend, n as resolveBlockManifest, o as blockNoticeLabel, p as arrangementLookNameFor, r as useBlockCustomizeControls, s as blockNoticeMessage, u as useBlockNotice, v as SdkConfigProvider, w as lookNotShownFieldIds, x as arrangementOwnedFieldIds, y as useSdkConfig } from "./useOpenBlockForSetup-Ce4WCxpT.mjs";
9
+ import { i as useOptionalLocationPickerEnvironment, n as LocationPickerEnvironmentProvider } from "./LocationPickerEnvironment-BHAT81Wx.mjs";
10
+ import { a as publicationLabel, o as Separator, t as useAutosaveStatus } from "./useAutosaveStatus-R1rZ9-IZ.mjs";
11
+ import { A as Tooltip, C as blockLookOwnedFieldPaths, D as showRawStyleFields, E as prepareBlockEditorManifest, F as DropdownMenu, H as DropdownMenuTrigger, I as DropdownMenuContent, L as DropdownMenuItem, M as TooltipProvider, N as TooltipTrigger, O as getBlockManifestFromSdkConfig, P as Badge, S as arrangementVisibilityValues, T as hideThemeV2RawStyleFields, V as DropdownMenuSeparator, _ as createFieldObservation, b as arrangementLookResolution, f as arrangementBlockControlsFor, g as isRecord$1, h as isObjectRecord, i as NEEDS_SETUP_LABEL, j as TooltipContent, k as mergeBlockDescriptors, l as needsSetupOf, m as createStoreBackend, n as resolveBlockManifest, o as blockNoticeLabel, p as arrangementLookNameFor, r as useBlockCustomizeControls, s as blockNoticeMessage, u as useBlockNotice, v as SdkConfigProvider, w as lookNotShownFieldIds, x as arrangementOwnedFieldIds, y as useSdkConfig } from "./useOpenBlockForSetup-BS7CANPv.mjs";
12
12
  import * as React$1 from "react";
13
13
  import React, { Fragment, createContext, forwardRef, memo, useCallback, useContext, useEffect, useId, useImperativeHandle, useLayoutEffect, useMemo, useReducer, useRef, useState, useSyncExternalStore } from "react";
14
14
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
@@ -3561,7 +3561,7 @@ function ComboboxRowContent({ row, selected, isCreating, noneLabel, createLabel,
3561
3561
  className: "flex-1 truncate text-left text-muted-foreground",
3562
3562
  children: noneLabel
3563
3563
  });
3564
- case "create": return /* @__PURE__ */ jsxs(Fragment$1, { children: [isCreating ? /* @__PURE__ */ jsx(LoaderCircle, { className: "h-4 w-4 shrink-0 animate-spin" }) : /* @__PURE__ */ jsx(Plus, { className: "h-4 w-4 shrink-0" }), /* @__PURE__ */ jsx("span", {
3564
+ case "create": return /* @__PURE__ */ jsxs(Fragment$1, { children: [isCreating ? /* @__PURE__ */ jsx(Spinner, { className: "shrink-0" }) : /* @__PURE__ */ jsx(Plus, { className: "h-4 w-4 shrink-0" }), /* @__PURE__ */ jsx("span", {
3565
3565
  className: "flex-1 truncate text-left",
3566
3566
  children: createLabel ? createLabel(row.name) : row.name
3567
3567
  })] });
@@ -4711,25 +4711,6 @@ const Slider = React$1.forwardRef(({ className, ...props }, ref) => /* @__PURE__
4711
4711
  }));
4712
4712
  Slider.displayName = Slider$1.displayName;
4713
4713
  //#endregion
4714
- //#region ../ui/src/content-spinner.tsx
4715
- /**
4716
- * Centered spinner for content areas — replaces bespoke skeleton layouts.
4717
- *
4718
- * Uses plain `Spinner` (NOT `DelayedSpinner`) so it renders immediately on
4719
- * the server. `loading.tsx` files are shown during SSR streaming — a
4720
- * `DelayedSpinner` would render nothing until hydration + delay.
4721
- */
4722
- function ContentSpinner({ className, size = "xl" }) {
4723
- return /* @__PURE__ */ jsx("div", {
4724
- className: cn("flex items-center justify-center py-24", className),
4725
- children: /* @__PURE__ */ jsx(Spinner, {
4726
- size,
4727
- srLabel: "Loading content",
4728
- className: "text-primary"
4729
- })
4730
- });
4731
- }
4732
- //#endregion
4733
4714
  //#region ../ui/src/empty-state.tsx
4734
4715
  /**
4735
4716
  * EmptyState component for consistent no-results and empty data displays.
@@ -8687,7 +8668,10 @@ function BlockTile({ block, onClick, isLoading = false, disabled = false }) {
8687
8668
  children: [/* @__PURE__ */ jsx("p", {
8688
8669
  className: "truncate text-sm font-medium text-foreground",
8689
8670
  children: block.title
8690
- }), isLoading && /* @__PURE__ */ jsx(LoaderCircle, { className: "h-3 w-3 shrink-0 animate-spin text-muted-foreground" })]
8671
+ }), isLoading && /* @__PURE__ */ jsx(Spinner, {
8672
+ size: 12,
8673
+ className: "shrink-0 text-muted-foreground"
8674
+ })]
8691
8675
  }), block.description && /* @__PURE__ */ jsx("p", {
8692
8676
  className: "mt-0.5 line-clamp-2 text-xs leading-snug text-muted-foreground",
8693
8677
  children: block.description
@@ -28152,7 +28136,10 @@ function SocialImageField({ path, backend, config }) {
28152
28136
  label: config.label,
28153
28137
  description: config.description,
28154
28138
  error: error?.message,
28155
- children: () => /* @__PURE__ */ jsx(Fragment$1, { children: image.kind === "loading" ? /* @__PURE__ */ jsx(ContentSpinner, {}) : /* @__PURE__ */ jsxs(Fragment$1, { children: [image.kind === "unavailable" ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(UnreadableMediaWarning, {}), /* @__PURE__ */ jsx(Button$1, {
28139
+ children: () => /* @__PURE__ */ jsx(Fragment$1, { children: image.kind === "loading" ? /* @__PURE__ */ jsx(ContentSpinner, {
28140
+ scale: "section",
28141
+ srLabel: "Loading this image"
28142
+ }) : /* @__PURE__ */ jsxs(Fragment$1, { children: [image.kind === "unavailable" ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(UnreadableMediaWarning, {}), /* @__PURE__ */ jsx(Button$1, {
28156
28143
  type: "button",
28157
28144
  variant: "outline",
28158
28145
  onClick: () => setValue(null),
@@ -31541,7 +31528,10 @@ function EntrySlotBlockEditorPanel({ siteId, dashboardBaseUrl, typeKey, entryId,
31541
31528
  setSlotSelection((current) => selectionsEqual(current, selection) ? current : selection);
31542
31529
  }, [selection]);
31543
31530
  if (!visible) return null;
31544
- if (slotsQuery.isLoading) return /* @__PURE__ */ jsx(ContentSpinner, { className: "py-8" });
31531
+ if (slotsQuery.isLoading) return /* @__PURE__ */ jsx(ContentSpinner, {
31532
+ scale: "section",
31533
+ srLabel: "Loading page content"
31534
+ });
31545
31535
  if (slotsQuery.isError) return /* @__PURE__ */ jsx(Callout, {
31546
31536
  tone: "danger",
31547
31537
  role: "alert",
@@ -32589,7 +32579,10 @@ function PreviewFooterEditorPanel({ sdkConfig, apiClient, siteId, dashboardBaseU
32589
32579
  widgets: previewWidgetOverrides,
32590
32580
  liveRuntime: liveRuntime ?? void 0,
32591
32581
  appearanceControls: /* @__PURE__ */ jsx(SiteChromeSurfaceControls, { surface: "footer" }),
32592
- loadingFallback: /* @__PURE__ */ jsx(ContentSpinner, { className: "py-8" }),
32582
+ loadingFallback: /* @__PURE__ */ jsx(ContentSpinner, {
32583
+ scale: "section",
32584
+ srLabel: "Loading your footer"
32585
+ }),
32593
32586
  ...footerComposerNavigationProps(view, requestId),
32594
32587
  variant: "sidebar",
32595
32588
  canEdit
@@ -1,9 +1,9 @@
1
1
  "use client";
2
- import { $u as unsafeAsEditorBlockId, As as resolveBlockTitle, Ca as pageTemplateFromEntry, Ct as EditorWriteSurface, Ps as editorAdmissionIsOpen, Qs as Dialog, Sn as useSidebarView, U as usePreviewAuth, Un as editorAuthoredBlockDocument, Uu as displayedValues, Ws as unwrapResponse, Xr as publishReadinessWarning, Yr as PUBLISH_READINESS_COPY, Zr as readinessFactsFromPayload, al as cva, bn as useEditorUiStoreInstance, dn as PREVIEW_CHROME_Z_INDEX, ec as DialogContent, et as useFooterPanelOwnsNotice, ht as useSessionJournalHistory, ic as DialogTitle, jn as canDiscardDraft, mt as useSessionJournal, n as usePreviewAssistantSlot, nc as DialogFooter, nl as Button, pt as useServerRefresh, rc as DialogHeader, tc as DialogDescription, ul as cn, ut as useEntryEditorController, uu as authoredValuesEqual, yn as useEditorUiStore } from "./previewAssistantSlot-BqY2TTcZ.mjs";
3
- import { $ as EllipsisVertical, A as LoaderCircle, S as Palette, X as Eye, _ as Redo2, o as Undo2, pt as ChevronDown, s as TriangleAlert, y as Pencil } from "./lucide-react-Dfgl3Vtq.mjs";
4
- import { i as formatEditorStatus, n as useEditorWriteState, o as Spinner, r as decideEditorStatus } from "./useAutosaveStatus-D9s6dyMW.mjs";
5
- import { A as Tooltip, B as DropdownMenuRadioItem, F as DropdownMenu, H as DropdownMenuTrigger, I as DropdownMenuContent, L as DropdownMenuItem, N as TooltipTrigger, P as Badge, R as DropdownMenuLabel, V as DropdownMenuSeparator, c as needsSetupAsk, j as TooltipContent, n as resolveBlockManifest, t as useOpenBlockForSetup, z as DropdownMenuRadioGroup } from "./useOpenBlockForSetup-Ce4WCxpT.mjs";
6
- import { c as writePreviewThemeCookie, f as useEditor, n as usePreviewChromeRoot, o as readPreviewThemeCookie, p as FixedBottomSurface } from "./previewChromeRoot-BuRYe2iL.mjs";
2
+ import { $s as Dialog, As as resolveBlockTitle, Ca as pageTemplateFromEntry, Ct as EditorWriteSurface, Ps as editorAdmissionIsOpen, Qs as Spinner, Sn as useSidebarView, U as usePreviewAuth, Un as editorAuthoredBlockDocument, Ws as unwrapResponse, Wu as displayedValues, Xr as publishReadinessWarning, Yr as PUBLISH_READINESS_COPY, Zr as readinessFactsFromPayload, ac as DialogTitle, bn as useEditorUiStoreInstance, dl as cn, dn as PREVIEW_CHROME_Z_INDEX, du as authoredValuesEqual, ed as unsafeAsEditorBlockId, et as useFooterPanelOwnsNotice, ht as useSessionJournalHistory, ic as DialogHeader, jn as canDiscardDraft, mt as useSessionJournal, n as usePreviewAssistantSlot, nc as DialogDescription, ol as cva, pt as useServerRefresh, rc as DialogFooter, rl as Button, tc as DialogContent, ut as useEntryEditorController, yn as useEditorUiStore } from "./previewAssistantSlot-B-utyhbS.mjs";
3
+ import { Q as EllipsisVertical, S as Palette, Y as Eye, _ as Redo2, ft as ChevronDown, o as Undo2, s as TriangleAlert, y as Pencil } from "./lucide-react-McYZeSMb.mjs";
4
+ import { i as formatEditorStatus, n as useEditorWriteState, r as decideEditorStatus } from "./useAutosaveStatus-R1rZ9-IZ.mjs";
5
+ import { A as Tooltip, B as DropdownMenuRadioItem, F as DropdownMenu, H as DropdownMenuTrigger, I as DropdownMenuContent, L as DropdownMenuItem, N as TooltipTrigger, P as Badge, R as DropdownMenuLabel, V as DropdownMenuSeparator, c as needsSetupAsk, j as TooltipContent, n as resolveBlockManifest, t as useOpenBlockForSetup, z as DropdownMenuRadioGroup } from "./useOpenBlockForSetup-BS7CANPv.mjs";
6
+ import { c as writePreviewThemeCookie, f as useEditor, n as usePreviewChromeRoot, o as readPreviewThemeCookie, p as FixedBottomSurface } from "./previewChromeRoot-CCoGydUD.mjs";
7
7
  import * as React$1 from "react";
8
8
  import { useCallback, useEffect, useMemo, useRef, useState, useTransition } from "react";
9
9
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
@@ -85,7 +85,7 @@ function EditPageButton({ placement }) {
85
85
  "aria-busy": isEditingPending,
86
86
  className: `${floating ? "fixed bottom-6 right-6" : ""} h-10 cursor-pointer gap-2 rounded-full border-foreground/80 bg-background px-4 font-semibold shadow-lg`,
87
87
  style: floating ? FLOATING_STYLE : void 0,
88
- children: [isEditingPending ? /* @__PURE__ */ jsx(Spinner, { size: "sm" }) : /* @__PURE__ */ jsx(Pencil, {
88
+ children: [isEditingPending ? /* @__PURE__ */ jsx(Spinner, {}) : /* @__PURE__ */ jsx(Pencil, {
89
89
  className: "h-4 w-4",
90
90
  "aria-hidden": true
91
91
  }), isEditingPending ? "Switching to edit…" : "Edit page"]
@@ -111,7 +111,7 @@ function ViewAsVisitorButton({ placement }) {
111
111
  "aria-busy": isEditingPending,
112
112
  className: `${floating ? "fixed bottom-6 right-6" : ""} h-10 w-10 cursor-pointer rounded-full shadow-lg backdrop-blur-sm transition-all hover:scale-105`,
113
113
  style: floating ? FLOATING_STYLE : void 0,
114
- children: [isEditingPending ? /* @__PURE__ */ jsx(Spinner, { size: "sm" }) : /* @__PURE__ */ jsx(Eye, { className: "h-4 w-4" }), /* @__PURE__ */ jsx("span", {
114
+ children: [isEditingPending ? /* @__PURE__ */ jsx(Spinner, {}) : /* @__PURE__ */ jsx(Eye, { className: "h-4 w-4" }), /* @__PURE__ */ jsx("span", {
115
115
  className: "sr-only",
116
116
  children: label
117
117
  })]
@@ -287,7 +287,7 @@ function EditorStatusBar({ status, lastSavedLabel, toolbar, draftSyncState = "ba
287
287
  }) : statusDecision.primary.kind === "saving" ? /* @__PURE__ */ jsxs("span", {
288
288
  className: "inline-flex min-w-0 items-center gap-2",
289
289
  children: [
290
- /* @__PURE__ */ jsx(LoaderCircle, { className: "h-4 w-4 shrink-0 animate-spin" }),
290
+ /* @__PURE__ */ jsx(Spinner, { className: "shrink-0" }),
291
291
  /* @__PURE__ */ jsx("span", {
292
292
  className: "hidden min-w-0 truncate sm:block",
293
293
  children: /* @__PURE__ */ jsx(StatusCopy, {
@@ -345,14 +345,14 @@ function EditorStatusBar({ status, lastSavedLabel, toolbar, draftSyncState = "ba
345
345
  tone: item.variant === "destructive" ? "destructive" : "default"
346
346
  })),
347
347
  onClick: () => onPublish(),
348
- children: isSaving ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(LoaderCircle, { className: "mr-2 h-4 w-4 animate-spin" }), publishLabel] }) : publishLabel
348
+ children: isSaving ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Spinner, { className: "mr-2" }), publishLabel] }) : publishLabel
349
349
  }) : /* @__PURE__ */ jsx(Button, {
350
350
  type: "button",
351
351
  variant: "default",
352
352
  size: actionButtonSize,
353
353
  onClick: () => onPublish(),
354
354
  disabled: disablePublish,
355
- children: isSaving ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(LoaderCircle, { className: "mr-2 h-4 w-4 animate-spin" }), publishLabel] }) : publishLabel
355
+ children: isSaving ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Spinner, { className: "mr-2" }), publishLabel] }) : publishLabel
356
356
  }) : null
357
357
  ]
358
358
  }),