@riverbankcms/sdk 0.157.0 → 0.158.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 (170) hide show
  1. package/dist/_dts/{BlocksIslandsHydrator-B3AHhvIn.d.ts → BlocksIslandsHydrator-BgNBtEai.d.ts} +1 -1
  2. package/dist/_dts/{Page-BMaOSVCP.d.ts → Page-DpCo8zXD.d.ts} +9 -6
  3. package/dist/_dts/{SdkPreviewMode-CEwDDqfK.d.ts → SdkPreviewMode-Bv2TMscG.d.ts} +2 -2
  4. package/dist/_dts/{client-BRFVhGUB.d.ts → client-B960v2gW.d.ts} +1 -1
  5. package/dist/_dts/{content-types-tEy1rtQ5.d.ts → content-types-CN0Wy8V6.d.ts} +26 -3
  6. package/dist/_dts/{contracts-BwDSOVGj.d.ts → contracts-BFUrby76.d.ts} +5 -4
  7. package/dist/_dts/{footerPageOutline-BVp5EPJj.d.ts → footerPageOutline-CmoqleLS.d.ts} +6 -6
  8. package/dist/_dts/{generatePageMetadata-BQb1mvpc.d.ts → generatePageMetadata-Dkvivc3R.d.ts} +2 -2
  9. package/dist/_dts/{hosted-booking-appearance-BN2Zu93B.d.ts → hosted-booking-appearance-BIbit60h.d.ts} +8976 -47
  10. package/dist/_dts/{index-Ca3oD2id.d.ts → index-Ba6RmuxX.d.ts} +3 -3
  11. package/dist/_dts/{index-Br1TNJlL.d.ts → index-DCNu_8it.d.ts} +4 -4
  12. package/dist/_dts/{index-CSLkIKs3.d.ts → index-DPfI2t5A.d.ts} +2 -2
  13. package/dist/_dts/{index-B0wsEbm3.d.ts → index-DaS_z6ir.d.ts} +1 -1
  14. package/dist/_dts/{index-B0DzVcrB.d.ts → index-DfkFWUxt.d.ts} +4 -1
  15. package/dist/_dts/{index-BF3hkKvt.d.ts → index-DpgkhY-a.d.ts} +2 -2
  16. package/dist/_dts/{loadContent-Dz9fOZMZ.d.ts → loadContent-DvvKF4nB.d.ts} +10 -7
  17. package/dist/_dts/{navigation-DOZwagCE.d.ts → navigation-n-eTVTIQ.d.ts} +75 -4
  18. package/dist/_dts/{resolvePageContent-oHZ8cfaF.d.ts → resolvePageContent-D0lGwVD6.d.ts} +2 -2
  19. package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
  20. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  21. package/dist/_dts/sdk/src/client.d.ts +6 -6
  22. package/dist/_dts/sdk/src/config/index.d.ts +6 -6
  23. package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
  24. package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
  25. package/dist/_dts/sdk/src/index.d.ts +8 -8
  26. package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
  27. package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
  28. package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
  29. package/dist/_dts/sdk/src/next/index.d.ts +10 -7
  30. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  31. package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
  32. package/dist/_dts/sdk/src/portal/client.d.ts +11 -4
  33. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  34. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  35. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  36. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  37. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  38. package/dist/_dts/sdk/src/rendering/index.d.ts +45 -6
  39. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  40. package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
  41. package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
  42. package/dist/_dts/sdk/src/server.d.ts +5 -5
  43. package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
  44. package/dist/_dts/{types-Dy1DNdIV.d.ts → types-BJrRUaY7.d.ts} +2 -2
  45. package/dist/_dts/{types-6q1MDqxg.d.ts → types-BY7PgnDi.d.ts} +7 -7
  46. package/dist/_dts/{types-BuWOkyqw.d.ts → types-maEnXL6Z.d.ts} +3 -3
  47. package/dist/_dts/{validation-BumblAOO.d.ts → validation-BjuVrMrs.d.ts} +4 -4
  48. package/dist/client/{BlocksIslandsHydrator-Cid8be1G.mjs → BlocksIslandsHydrator-WRLS96Ev.mjs} +17 -17
  49. package/dist/client/{BookingMailingListNote-BpzJTCZw.mjs → BookingMailingListNote-eovghMPa.mjs} +3 -56
  50. package/dist/client/{CalendarNavigationChevron-CBKHlGjE.mjs → CalendarNavigationChevron-CIcMQRc1.mjs} +5 -5
  51. package/dist/client/{DemoBookingPortalAccess-DpfgDMQ-.mjs → DemoBookingPortalAccess-CdnFgDyQ.mjs} +3 -3
  52. package/dist/client/{EventCalendar.client-DE5JHf4s.mjs → EventCalendar.client-Dc-ZLxKo.mjs} +8 -8
  53. package/dist/client/{EventCombined.client-DQLU3EAc.mjs → EventCombined.client-C93XqRIv.mjs} +6 -6
  54. package/dist/client/{EventItem-C9QTFafI.mjs → EventItem-DnCTygqk.mjs} +3 -3
  55. package/dist/client/{EventListWeekNavigation-6oYGdpNS.mjs → EventListWeekNavigation-9h97heuQ.mjs} +1 -1
  56. package/dist/client/{EventListing.client-D0N4Wj_4.mjs → EventListing.client-DFKlQvvs.mjs} +3 -3
  57. package/dist/client/{EventListing.view-Bish8-si.mjs → EventListing.view-pAuTDyrP.mjs} +4 -4
  58. package/dist/client/{EventRegistrationPayment-DLPYU2VU.mjs → EventRegistrationPayment-rgKlBvhP.mjs} +8 -7
  59. package/dist/client/{LeafletStaticMap-BmgEmEUS.mjs → LeafletStaticMap-3XiWSgy0.mjs} +1 -1
  60. package/dist/client/{Page-C-W_6VPx.mjs → Page-BmpeAwID.mjs} +750 -169
  61. package/dist/client/{StepIndicator-D8fvzhlS.mjs → StepIndicator-qEq6X5zP.mjs} +2 -2
  62. package/dist/client/{accordion-B5jBBoBC.mjs → accordion-DeObOasQ.mjs} +1 -1
  63. package/dist/client/{booking-form.client-xypjcfob.mjs → booking-form.client-DfWeF0lj.mjs} +36 -32
  64. package/dist/client/{bookingForm-CSE7NT54.mjs → bookingForm-TnzIBHx2.mjs} +4 -4
  65. package/dist/client/bookings.mjs +5 -5
  66. package/dist/client/{carousel-BrrLdGgn.mjs → carousel-kkFnbr5Z.mjs} +1 -1
  67. package/dist/client/{cart-QFgSKqia.mjs → cart-BAXNbFux.mjs} +3 -3
  68. package/dist/client/{cart.client-C6iA9v8X.mjs → cart.client-BczxUF70.mjs} +1 -1
  69. package/dist/client/{checkout-BAuLgA6Q.mjs → checkout-C5NRhPeP.mjs} +3 -3
  70. package/dist/client/{checkout.client-hbvBPpZR.mjs → checkout.client-BuDk3Td9.mjs} +1 -1
  71. package/dist/client/client.mjs +3 -2
  72. package/dist/client/{context-psG_Bwfs.mjs → context-CVsgML69.mjs} +1 -1
  73. package/dist/client/{cta-DrX2pzK9.mjs → cta-BWnUuJce.mjs} +1 -1
  74. package/dist/client/{demoPortalMagicLink-CClf0SHq.mjs → demoPortalMagicLink-CUlwvmxf.mjs} +1 -1
  75. package/dist/client/{enhanceHeaderSection-CqN7ig-2.mjs → enhanceHeaderSection-Cw8nnFj-.mjs} +2 -2
  76. package/dist/client/{event-details.client-CcYX4URD.mjs → event-details.client-Bl0E_6Vi.mjs} +2 -2
  77. package/dist/client/{event-registration.client-B8wVfnJ8.mjs → event-registration.client-DmfLg_LC.mjs} +15 -14
  78. package/dist/client/{eventCalendar-CRYN9-Vv.mjs → eventCalendar-D1Dwb9VA.mjs} +4 -4
  79. package/dist/client/{eventCombined-gGuj2_Vh.mjs → eventCombined-DfsqY1qR.mjs} +4 -4
  80. package/dist/client/{eventDetails-D1U7WEsJ.mjs → eventDetails-BmugDVoa.mjs} +2 -2
  81. package/dist/client/{eventListing-BY20rsvl.mjs → eventListing-BPAGJi3C.mjs} +4 -4
  82. package/dist/client/{eventRegistration-DnOZYpqh.mjs → eventRegistration-DBlz_x6u.mjs} +4 -4
  83. package/dist/client/{form-_q17Emh7.mjs → form-DVu3ZMjx.mjs} +3 -3
  84. package/dist/client/{form.client-BVaTf4FG.mjs → form.client-QZUyABIY.mjs} +3 -3
  85. package/dist/client/{form.parts-C9EmjE7U.mjs → form.parts-Bs0F3v08.mjs} +1 -1
  86. package/dist/client/formatDate-BD9D3dgo.mjs +26 -0
  87. package/dist/client/gifting/client.mjs +2 -2
  88. package/dist/client/{headerSection-CZ3unSkX.mjs → headerSection-BQwWW4Yy.mjs} +2 -2
  89. package/dist/client/{location-map.client-C_udm2_y.mjs → location-map.client-upKuwABk.mjs} +3 -10
  90. package/dist/client/{location-map.view-Bkd9gu_S.mjs → location-map.view-RuBCD10O.mjs} +87 -13
  91. package/dist/client/{locationMap-CunBAPoo.mjs → locationMap-1sCbsk0V.mjs} +2 -2
  92. package/dist/client/{newsletter-form.client-BkHhqPBi.mjs → newsletter-form.client-DBTU3oNv.mjs} +4 -4
  93. package/dist/client/{newsletter-form.parts-VGjM-NDG.mjs → newsletter-form.parts-C9I9JBhe.mjs} +1 -1
  94. package/dist/client/{newsletterForm-DGc1-NVR.mjs → newsletterForm-DTPtTxxG.mjs} +3 -3
  95. package/dist/client/{noop-D3wctocR.mjs → noop-DMFt3KdC.mjs} +19 -132
  96. package/dist/client/portal/client.mjs +589 -482
  97. package/dist/client/{product-detail.client-C_8N4OxU.mjs → product-detail.client-BX7M5o6p.mjs} +1 -1
  98. package/dist/client/{product-list.client-79qoSlLs.mjs → product-list.client-i32QNY4c.mjs} +1 -1
  99. package/dist/client/{productDetail-QGBXBpWb.mjs → productDetail-DWjE9zm7.mjs} +3 -3
  100. package/dist/client/{productList-Bdno11g6.mjs → productList-DZH9_brv.mjs} +3 -3
  101. package/dist/client/{propsDecoder-BpKsRqjG.mjs → propsDecoder-CTzHkEkh.mjs} +14 -3
  102. package/dist/client/{registry.server-D9GvC4EZ.mjs → registry.server-vJ5FlscU.mjs} +589 -246
  103. package/dist/client/rendering/client.mjs +23 -23
  104. package/dist/client/rendering/islands.mjs +1 -1
  105. package/dist/client/rendering.mjs +26 -4
  106. package/dist/client/{richText-coerce-Nln8Bw2P.mjs → richText-coerce-DXAmC72p.mjs} +1 -1
  107. package/dist/client/{routeIslandApiConfig-B4E30DaZ.mjs → routeIslandApiConfig-CmC7ygin.mjs} +1 -1
  108. package/dist/client/{shop-653-Nn74.mjs → shop-C7eL3B37.mjs} +3 -3
  109. package/dist/client/{shop-commerce-CfbvhT6h.mjs → shop-commerce-D8oRN0QJ.mjs} +9 -9
  110. package/dist/client/{shop-commerce-store-CfB26IXt.mjs → shop-commerce-store-CRnQ4M18.mjs} +1 -1
  111. package/dist/client/{shop.client-Bn7jUQOB.mjs → shop.client-X6d6KVmA.mjs} +9 -9
  112. package/dist/client/{shop.interactive-acMnyBZU.mjs → shop.interactive-DBMeM8VD.mjs} +155 -3
  113. package/dist/client/{shopShared-Du4efbgL.mjs → shopShared-Y182kN_s.mjs} +2 -2
  114. package/dist/client/{timetableModel-Duwk6gXe.mjs → timetableModel-D7PwpaBY.mjs} +5 -5
  115. package/dist/client/{useAvailableSlots-CbaAFr8M.mjs → useAvailableSlots-BDV6MHgJ.mjs} +2 -2
  116. package/dist/client/useBookingNowIso-DgJEv3ZY.mjs +58 -0
  117. package/dist/client/{useDiscountApply-DAl-GX21.mjs → useDiscountApply-BTu9EeT7.mjs} +1 -1
  118. package/dist/client/{useDiscountCodeUi-BUf9LuI6.mjs → useDiscountCodeUi-BfZxdxI-.mjs} +1 -1
  119. package/dist/client/{useEventPagination-hJDAEg-T.mjs → useEventPagination-pnvdHGeQ.mjs} +6 -6
  120. package/dist/client/{view-CFSMNvdC.mjs → view-BPEa6Okm.mjs} +8 -7
  121. package/dist/client/{view-4sSIJ6Ny.mjs → view-hJr_L4QC2.mjs} +3 -3
  122. package/dist/client/{wizardSteps-B3tRF3_2.mjs → wizardSteps-HdyGoIG3.mjs} +218 -47
  123. package/dist/preview-next/before-render.mjs +1 -1
  124. package/dist/preview-next/client/{EventEmbeddedCheckoutStep-BX5F0a_h.mjs → EventEmbeddedCheckoutStep-BFlBqSu4.mjs} +1 -1
  125. package/dist/preview-next/client/{PreviewEditorSidebar-DLzGdmTw.mjs → PreviewEditorSidebar-CXRUbqMp.mjs} +42 -26
  126. package/dist/preview-next/client/{PreviewEditorUI-Dru5AxOd.mjs → PreviewEditorUI-CxjEV0Fm.mjs} +31 -22
  127. package/dist/preview-next/client/{SdkPreviewModeRuntime-QVfwY0HY.mjs → SdkPreviewModeRuntime-BxI12BBS.mjs} +1310 -1226
  128. package/dist/preview-next/client/{SdkPreviewModeRuntime-V3absa-c.mjs → SdkPreviewModeRuntime-XdQSGGj_.mjs} +1 -1
  129. package/dist/preview-next/client/{SiteChromeCustomizeContext-RSPyKO_K.mjs → SiteChromeCustomizeContext-CfRQRwpH.mjs} +133891 -131593
  130. package/dist/preview-next/client/{ThemedButton-ADHirm0A.mjs → ThemedButton-BEOPss9H.mjs} +30 -4
  131. package/dist/preview-next/client/{previewChromeSurface-Cc4b9nBZ.mjs → previewChromeSurface-CH7hd5n7.mjs} +1 -1
  132. package/dist/preview-next/client/runtime.mjs +3 -3
  133. package/dist/preview-next/client/{sdk-runtime-CTLm99t6.mjs → sdk-runtime-C6xEU1LI.mjs} +1 -1
  134. package/dist/preview-next/client/{siteStyleAccess-YpHSMBBC.mjs → siteStyleAccess-CRXaC2oL.mjs} +2 -2
  135. package/dist/preview-next/client/{spinner-CsiSmy1g.mjs → spinner-BTf1CZmy.mjs} +1 -1
  136. package/dist/preview-next/keepAlive.mjs +1 -1
  137. package/dist/preview-next/middleware.mjs +1 -1
  138. package/dist/preview-next/{route-contract-dR_Jzpo5.mjs → route-contract-DM22uOXM.mjs} +41 -0
  139. package/dist/server/{Block.shared-BNrmEY1p.mjs → Block.shared-DLoilC2J.mjs} +4 -4
  140. package/dist/server/{bindings-C9zgT9uX.mjs → bindings-C7DKLVx_.mjs} +1 -1
  141. package/dist/server/{blocks-BLm-OxTv.mjs → blocks-jlIm0PWc.mjs} +953 -324
  142. package/dist/server/{client-CaQ1ElR3.mjs → client-CU4wlMLE.mjs} +2 -2
  143. package/dist/server/config-validation.mjs +1 -1
  144. package/dist/server/config.mjs +2 -2
  145. package/dist/server/index.mjs +2 -2
  146. package/dist/server/{loadContent-BFyU8YxS.mjs → loadContent-DmQ4BiiQ.mjs} +6 -4
  147. package/dist/server/{loadPage-DeQipVdO.mjs → loadPage-BBkDQA57.mjs} +3 -2
  148. package/dist/server/loadPage-ZrcfjG3X.mjs +2 -0
  149. package/dist/server/next.mjs +24 -12
  150. package/dist/server/{overrideResolution-D5nmZUYe.mjs → overrideResolution-ByeAbLSO.mjs} +1 -1
  151. package/dist/server/{overrides-BI13bIb7.mjs → overrides-BcA6ZPWf.mjs} +94 -30
  152. package/dist/server/page-converter.mjs +1 -1
  153. package/dist/server/{prebuild-UgDhSzy2.mjs → prebuild-8T-m7XjB.mjs} +1 -1
  154. package/dist/server/prebuild.mjs +1 -1
  155. package/dist/server/{prefetchBlockData-CLF-Y7h-.mjs → prefetchBlockData-Bjya-X9t.mjs} +6 -5
  156. package/dist/server/{publicProducts-vPbNQJsO.mjs → publicProducts-C3meXS2o.mjs} +41 -0
  157. package/dist/server/rendering/server.mjs +4 -4
  158. package/dist/server/rendering.mjs +26 -8
  159. package/dist/server/{resolveBlockData-C7J-pixy.mjs → resolveBlockData-D0ow8PRJ.mjs} +1 -1
  160. package/dist/server/routing.mjs +1 -1
  161. package/dist/server/server.mjs +3 -3
  162. package/dist/server/{siteChromeOverlayClearance-DLROm32h.mjs → siteChromeOverlayClearance-BangtD8A.mjs} +126 -1
  163. package/dist/server/{src-BZb5L4Fa.mjs → src-B935_bzN.mjs} +300 -2
  164. package/dist/server/theme-bridge.mjs +1 -1
  165. package/dist/server/{themeAdmission-x3uhdOWx.mjs → themeAdmission-D2-BnmDO.mjs} +314 -125
  166. package/dist/server/{validation-Ban_hxJG.mjs → validation-Cm41pDUB.mjs} +2 -2
  167. package/dist/server/{version-bkGVuskm.mjs → version-Bo9C3McI.mjs} +1 -1
  168. package/dist/styles/index.css +282 -0
  169. package/package.json +1 -1
  170. package/dist/server/loadPage-CvyKRtXK.mjs +0 -2
@@ -1,8 +1,8 @@
1
1
  import { C as unsafeAsMediaAssetId, D as ok$1, E as err, T as unsafeAsStoragePath, _ as parseContentVersionId, f as resolveManagedMediaReference, l as buildRenderableMediaAssetIndex, m as parseCanonicalMediaIdentifier, s as runtimeMediaSchema, v as parseEventOfferingId, w as unsafeAsStorageBucketName, x as parseSiteTermsVersionId, y as parseEventSeriesId } from "./media-CcHwZkdJ.mjs";
2
2
  import { t as assertNever$1 } from "./assert-never-ku-PUn9U.mjs";
3
3
  import { $t as surfaceDecorationColors, An as surfaceForegroundInputFromResolved, B as headerInteractionPaletteValues, Bn as resolveConcreteColorHex, Bt as headingDecorationColorTokenValues, Cn as selectLogoVariant, Dt as asDesignPageId, Et as asDesignEntryId, F as themeButtonExtraClassesWithTrailingIcon, Ft as defineFrameCapability, H as brandDisplayModeValues, I as themeButtonSizeClassName, It as eventListTreatmentValues, Jn as parseThemeColorToken, Jt as testimonialsCompositionTreatmentValues, Kt as plainFrame, L as themeButtonVariantClassNames, Lt as eyebrowTreatmentValues, Mt as assertNever$2, Nt as defineBlockDesignCapability, Qt as resolveSurface, St as asBlockOrderIndex, U as logoSizePolicyValues, Wt as offeringsPreviewCompositionTreatmentValues, Xn as parseBlockColorToken, Xt as toNonEmptyReadonlyArray, Yn as themeColorShadeSteps, Yt as tileTreatmentValues, Zt as visibleHeadingDecorationFamilyValues, _n as resolveThemeColorReferenceValue, an as borderColorStyle, at as boxBackgroundSchema, bn as PUBLIC_BUTTON_ROLES, cn as rgbColorValue, en as resolveSurfaceForeground, fn as opaqueSurfaceDeclarations, gt as cardRoleSchema, in as backgroundColorStyle, it as boxBackgroundOverlaySchema, jn as surfaceForegroundStyle, jt as asSiteStyleId, kt as asLayoutVariantKey, ln as textColorStyle, n as headerPositioningValues, ot as runtimeBoxBackgroundSchema, p as headerVariantValues, sn as mergeStyles, vt as cardVariantRoleValues, wn as surfaceToneFromForegroundToken, wt as asDesignBlockId, xt as asBlockContentVersionId, yt as normalizeCardRole } from "./schema-Bs735S27.mjs";
4
- import { D as generatedDesignOptionCatalog, E as normalizeLayoutVariantForPolicy, F as boundaryRuntimeMetricsForDecorativeTransition, P as headerRootPaint, R as gradientScrimSamples, _ as headerNavFontSizePreferenceValues, a as planSiteChromePlacement, f as headerForegroundCandidates, g as defaultHeaderNavPreferences, h as readOpeningForegroundProjection, i as parseHeaderPositioning, j as arrangementSlotNames, k as footerForegroundCandidates, m as transparentHeaderForegroundInput, n as desktopOnlyDisplay, o as splitSiteChromePlacementClasses, p as headerLeafTextColor, r as mobileOnlyDisplay, t as SITE_CHROME_VISIBLE_HEADER_ATTR, v as headerNavTypographyPreferenceValues, x as compiledRuntimeStyleFieldNames, y as curatedSiteStyleIdValues, z as scrimTone } from "./siteChromeOverlayClearance-DLROm32h.mjs";
5
- import { a as isRecord$11, t as RichTextDocSchema } from "./richTextSchema-YYc85FX4.mjs";
4
+ import { D as generatedDesignOptionCatalog, E as normalizeLayoutVariantForPolicy, F as boundaryRuntimeMetricsForDecorativeTransition, P as headerRootPaint, R as gradientScrimSamples, _ as headerNavFontSizePreferenceValues, a as planSiteChromePlacement, f as headerForegroundCandidates, g as defaultHeaderNavPreferences, h as readOpeningForegroundProjection, i as parseHeaderPositioning, j as arrangementSlotNames, k as footerForegroundCandidates, m as transparentHeaderForegroundInput, n as desktopOnlyDisplay, o as splitSiteChromePlacementClasses, p as headerLeafTextColor, r as mobileOnlyDisplay, t as SITE_CHROME_VISIBLE_HEADER_ATTR, v as headerNavTypographyPreferenceValues, x as compiledRuntimeStyleFieldNames, y as curatedSiteStyleIdValues, z as scrimTone } from "./siteChromeOverlayClearance-BangtD8A.mjs";
5
+ import { a as isRecord$12, t as RichTextDocSchema } from "./richTextSchema-YYc85FX4.mjs";
6
6
  import { z } from "zod";
7
7
  import React from "react";
8
8
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -272,7 +272,8 @@ function createEventOfferingPageSurfaceSubject(eventOfferingId, input) {
272
272
  const identity = {
273
273
  kind: "eventOffering",
274
274
  eventOfferingId,
275
- catalogueEventSeriesIds: input.catalogueEventSeriesIds
275
+ catalogueEventSeriesIds: input.catalogueEventSeriesIds,
276
+ ...input.detailAdmission ? { detailAdmission: input.detailAdmission } : {}
276
277
  };
277
278
  return input.bookingScope === "whole_series" ? {
278
279
  ...identity,
@@ -296,49 +297,52 @@ function parseEventPageSurfaceDestinationMode(value) {
296
297
  return value === "cms-managed" || value === "system-managed" ? value : void 0;
297
298
  }
298
299
  function parseEventPageSurfaceSubject(value) {
299
- if (!isRecord$10(value)) return err({ kind: "notObject" });
300
+ if (!isRecord$11(value)) return err({ kind: "notObject" });
300
301
  switch (value.kind) {
301
- case "eventSeries": {
302
- const eventSeriesId = parseEventSeriesId(value.eventSeriesId);
303
- if (!eventSeriesId.ok) return err({
304
- kind: "invalidEventSeriesId",
305
- error: eventSeriesId.error
306
- });
307
- if (value.bookingScope !== "single_occurrence" && value.bookingScope !== "whole_series") return err({
308
- kind: "invalidEventSeriesBookingScope",
309
- bookingScope: value.bookingScope
310
- });
311
- return ok$1(createEventSeriesPageSurfaceSubject(eventSeriesId.value, value.bookingScope, parseEventPageSurfaceDestinationMode(value.eventDestinationMode)));
312
- }
313
- case "eventOffering": {
314
- const eventOfferingId = parseEventOfferingId(value.eventOfferingId);
315
- if (!eventOfferingId.ok) return err({
316
- kind: "invalidEventOfferingId",
317
- error: eventOfferingId.error
318
- });
319
- if (!Array.isArray(value.catalogueEventSeriesIds)) return err({
320
- kind: "invalidEventOfferingCatalogue",
321
- catalogue: value.catalogueEventSeriesIds
322
- });
323
- if (value.bookingScope !== "single_occurrence" && value.bookingScope !== "whole_series") return err({
324
- kind: "invalidEventOfferingBookingScope",
325
- bookingScope: value.bookingScope
326
- });
327
- const parsedCatalogueIds = parseEventSeriesIdList(value.catalogueEventSeriesIds);
328
- if (!parsedCatalogueIds.ok) return parsedCatalogueIds;
329
- const eventDestinationMode = parseEventPageSurfaceDestinationMode(value.eventDestinationMode);
330
- return ok$1(createEventOfferingPageSurfaceSubject(eventOfferingId.value, {
331
- catalogueEventSeriesIds: parsedCatalogueIds.value,
332
- bookingScope: value.bookingScope,
333
- ...eventDestinationMode ? { eventDestinationMode } : {}
334
- }));
335
- }
302
+ case "eventSeries": return parseEventSeriesPageSurfaceSubject(value);
303
+ case "eventOffering": return parseEventOfferingPageSurfaceSubject(value);
336
304
  default: return err({
337
305
  kind: "unsupportedSubject",
338
306
  subjectKind: value.kind
339
307
  });
340
308
  }
341
309
  }
310
+ function parseEventSeriesPageSurfaceSubject(value) {
311
+ const eventSeriesId = parseEventSeriesId(value.eventSeriesId);
312
+ if (!eventSeriesId.ok) return err({
313
+ kind: "invalidEventSeriesId",
314
+ error: eventSeriesId.error
315
+ });
316
+ if (value.bookingScope !== "single_occurrence" && value.bookingScope !== "whole_series") return err({
317
+ kind: "invalidEventSeriesBookingScope",
318
+ bookingScope: value.bookingScope
319
+ });
320
+ return ok$1(createEventSeriesPageSurfaceSubject(eventSeriesId.value, value.bookingScope, parseEventPageSurfaceDestinationMode(value.eventDestinationMode)));
321
+ }
322
+ function parseEventOfferingPageSurfaceSubject(value) {
323
+ const eventOfferingId = parseEventOfferingId(value.eventOfferingId);
324
+ if (!eventOfferingId.ok) return err({
325
+ kind: "invalidEventOfferingId",
326
+ error: eventOfferingId.error
327
+ });
328
+ if (!Array.isArray(value.catalogueEventSeriesIds)) return err({
329
+ kind: "invalidEventOfferingCatalogue",
330
+ catalogue: value.catalogueEventSeriesIds
331
+ });
332
+ if (value.bookingScope !== "single_occurrence" && value.bookingScope !== "whole_series") return err({
333
+ kind: "invalidEventOfferingBookingScope",
334
+ bookingScope: value.bookingScope
335
+ });
336
+ const parsedCatalogueIds = parseEventSeriesIdList(value.catalogueEventSeriesIds);
337
+ if (!parsedCatalogueIds.ok) return parsedCatalogueIds;
338
+ const eventDestinationMode = parseEventPageSurfaceDestinationMode(value.eventDestinationMode);
339
+ return ok$1(createEventOfferingPageSurfaceSubject(eventOfferingId.value, {
340
+ catalogueEventSeriesIds: parsedCatalogueIds.value,
341
+ ...value.detailAdmission === "own-page" ? { detailAdmission: "own-page" } : {},
342
+ bookingScope: value.bookingScope,
343
+ ...eventDestinationMode ? { eventDestinationMode } : {}
344
+ }));
345
+ }
342
346
  function parseEventSeriesIdList(values) {
343
347
  const parsed = [];
344
348
  for (const value of values) {
@@ -351,7 +355,7 @@ function parseEventSeriesIdList(values) {
351
355
  }
352
356
  return ok$1(parsed);
353
357
  }
354
- function isRecord$10(value) {
358
+ function isRecord$11(value) {
355
359
  return typeof value === "object" && value !== null && !Array.isArray(value);
356
360
  }
357
361
  //#endregion
@@ -636,6 +640,19 @@ function buildBookingUtcDateWindow(input) {
636
640
  if (result.reason === "invalid_date_range") throw new Error(`Invalid booking date range: startDate "${input.startDate}" must be on or before endDate "${input.endDate}"`);
637
641
  throw new Error(`Invalid booking date format: "${result.value}" (expected YYYY-MM-DD)`);
638
642
  }
643
+ function parseLocalScheduleTime(value) {
644
+ const match = /^(?<hour>\d{1,2}):(?<minute>\d{2})(?::(?<second>\d{2}))?$/u.exec(value.trim());
645
+ if (match === null || match.groups === void 0) throw new Error(`Invalid start time format: "${value}" (expected HH:MM or HH:MM:SS)`);
646
+ const hour = Number(match.groups.hour);
647
+ const minute = Number(match.groups.minute);
648
+ const second = match.groups.second !== void 0 ? Number(match.groups.second) : 0;
649
+ if (Number.isNaN(hour) || Number.isNaN(minute) || Number.isNaN(second) || hour < 0 || hour > 23 || minute < 0 || minute > 59 || second < 0 || second > 59) throw new Error(`Invalid start time format: "${value}" (expected HH:MM or HH:MM:SS)`);
650
+ return {
651
+ hour,
652
+ minute,
653
+ second
654
+ };
655
+ }
639
656
  function getLocalScheduleDate(date, timeZone) {
640
657
  const parts = getZonedDateTimeParts(date, getSafeTimeZone(timeZone));
641
658
  return {
@@ -709,19 +726,19 @@ function formatDateRange(start, endInclusive, context, options = {}) {
709
726
  return preserveOrder ? `${presentDate(first, context, profile)} – ${presentDate(last, context, profile)}` : presentDateRange(first, last, context, profile);
710
727
  }
711
728
  function formatDateTime(value, context, options) {
712
- return presentDateTime(value, context, displayProfile(options, options.zone, options.clock, options.seconds));
729
+ return presentDateTime(value, context, displayProfile(options, options.zone, options.seconds));
713
730
  }
714
731
  function formatDateTimeRange(span, context, options) {
715
- return presentDateTimeRange(span, context, displayProfile(options, options.zone, options.clock, options.seconds));
732
+ return presentDateTimeRange(span, context, displayProfile(options, options.zone, options.seconds));
716
733
  }
717
734
  function formatTime$1(value, context, options) {
718
- return presentTime(value, context, displayProfile({}, options.zone, options.clock, options.seconds));
735
+ return presentTime(value, context, displayProfile({}, options.zone, options.seconds));
719
736
  }
720
737
  function formatTimeRange(start, end, context, options) {
721
738
  return presentTimeRange({
722
739
  start,
723
740
  end
724
- }, context, displayProfile({}, options.zone, options.clock, options.seconds));
741
+ }, context, displayProfile({}, options.zone, options.seconds));
725
742
  }
726
743
  /** Sole date projection/typography owner, used by display and scheduled adapters. */
727
744
  function presentDate(value, context, profile) {
@@ -819,19 +836,11 @@ function combinedFormat(date, clock) {
819
836
  ...clock.format
820
837
  };
821
838
  }
822
- function displayProfile(options, zone, clock, seconds) {
839
+ function displayProfile(options, zone, seconds) {
823
840
  return {
824
841
  kind: "display",
825
842
  dateFormat: dateFormat(options),
826
- clock: clock === "24-hour" ? {
827
- kind: "intl",
828
- format: {
829
- hour: "2-digit",
830
- minute: "2-digit",
831
- ...seconds === "include" ? { second: "2-digit" } : {},
832
- hourCycle: "h23"
833
- }
834
- } : {
843
+ clock: {
835
844
  kind: "compact",
836
845
  localeSource: "product",
837
846
  seconds
@@ -919,6 +928,158 @@ function toLocationCoordinates(value) {
919
928
  };
920
929
  }
921
930
  //#endregion
931
+ //#region ../core/src/public-profile.ts
932
+ const publicProfileWeekdays = [
933
+ "monday",
934
+ "tuesday",
935
+ "wednesday",
936
+ "thursday",
937
+ "friday",
938
+ "saturday",
939
+ "sunday"
940
+ ];
941
+ function isRecord$10(value) {
942
+ return typeof value === "object" && value !== null && !Array.isArray(value);
943
+ }
944
+ function trimmedOptionalString(value) {
945
+ if (value === null || value === void 0) return null;
946
+ if (typeof value !== "string") return void 0;
947
+ const trimmed = value.trim();
948
+ return trimmed.length > 0 ? trimmed : null;
949
+ }
950
+ function parsePublicProfileTimeZone(value) {
951
+ const timeZone = trimmedOptionalString(value);
952
+ if (timeZone === null || timeZone === void 0) return err({
953
+ code: "invalid_timezone",
954
+ path: "openingHours.timeZone",
955
+ message: "Choose a timezone."
956
+ });
957
+ try {
958
+ new Intl.DateTimeFormat("en-GB", { timeZone }).format(/* @__PURE__ */ new Date(0));
959
+ return ok$1(timeZone);
960
+ } catch {
961
+ return err({
962
+ code: "invalid_timezone",
963
+ path: "openingHours.timeZone",
964
+ message: "Choose a valid IANA timezone."
965
+ });
966
+ }
967
+ }
968
+ function parseOpeningHoursTime(value, path) {
969
+ if (typeof value !== "string" || !/^(?:[01]\d|2[0-3]):[0-5]\d$/u.test(value)) return err({
970
+ code: "invalid_time",
971
+ path,
972
+ message: "Use a 24-hour time such as 09:00."
973
+ });
974
+ return ok$1(value);
975
+ }
976
+ function minutesSinceMidnight(value) {
977
+ const [hours = "0", minutes = "0"] = value.split(":");
978
+ return Number(hours) * 60 + Number(minutes);
979
+ }
980
+ function parseOpeningHoursDay(value, expectedWeekday, index) {
981
+ const path = `openingHours.days.${index}`;
982
+ if (!isRecord$10(value) || value.weekday !== expectedWeekday) return err({
983
+ code: "invalid_weekdays",
984
+ path,
985
+ message: `Expected ${expectedWeekday} in calendar order.`
986
+ });
987
+ if (value.kind === "closed") return ok$1({
988
+ kind: "closed",
989
+ weekday: expectedWeekday
990
+ });
991
+ if (value.kind !== "open" || !Array.isArray(value.intervals) || value.intervals.length === 0) return err({
992
+ code: "invalid_interval",
993
+ path: `${path}.intervals`,
994
+ message: "Open days need at least one opening interval."
995
+ });
996
+ const intervals = [];
997
+ for (const [intervalIndex, rawInterval] of value.intervals.entries()) {
998
+ const intervalPath = `${path}.intervals.${intervalIndex}`;
999
+ if (!isRecord$10(rawInterval)) return err({
1000
+ code: "invalid_interval",
1001
+ path: intervalPath,
1002
+ message: "Opening interval is invalid."
1003
+ });
1004
+ const opensAt = parseOpeningHoursTime(rawInterval.opensAt, `${intervalPath}.opensAt`);
1005
+ if (!opensAt.ok) return opensAt;
1006
+ const closesAt = parseOpeningHoursTime(rawInterval.closesAt, `${intervalPath}.closesAt`);
1007
+ if (!closesAt.ok) return closesAt;
1008
+ if (minutesSinceMidnight(opensAt.value) >= minutesSinceMidnight(closesAt.value)) return err({
1009
+ code: "invalid_interval",
1010
+ path: intervalPath,
1011
+ message: "Closing time must be later than opening time on the same day."
1012
+ });
1013
+ intervals.push({
1014
+ opensAt: opensAt.value,
1015
+ closesAt: closesAt.value
1016
+ });
1017
+ }
1018
+ intervals.sort((left, right) => minutesSinceMidnight(left.opensAt) - minutesSinceMidnight(right.opensAt));
1019
+ for (let intervalIndex = 1; intervalIndex < intervals.length; intervalIndex += 1) {
1020
+ const previous = intervals[intervalIndex - 1];
1021
+ const current = intervals[intervalIndex];
1022
+ if (previous !== void 0 && current !== void 0 && minutesSinceMidnight(current.opensAt) < minutesSinceMidnight(previous.closesAt)) return err({
1023
+ code: "overlapping_intervals",
1024
+ path: `${path}.intervals.${intervalIndex}`,
1025
+ message: "Opening intervals cannot overlap."
1026
+ });
1027
+ }
1028
+ const [first, ...rest] = intervals;
1029
+ if (first === void 0) return err({
1030
+ code: "invalid_interval",
1031
+ path,
1032
+ message: "Open days need an opening interval."
1033
+ });
1034
+ return ok$1({
1035
+ kind: "open",
1036
+ weekday: expectedWeekday,
1037
+ intervals: [first, ...rest]
1038
+ });
1039
+ }
1040
+ function parseOpeningHoursWeek(rawDays) {
1041
+ const parsedDays = publicProfileWeekdays.map((weekday, index) => parseOpeningHoursDay(rawDays[index], weekday, index));
1042
+ const failed = parsedDays.find((day) => !day.ok);
1043
+ if (failed !== void 0) return failed;
1044
+ const [monday, tuesday, wednesday, thursday, friday, saturday, sunday] = parsedDays.flatMap((day) => day.ok ? [day.value] : []);
1045
+ if (monday === void 0 || tuesday === void 0 || wednesday === void 0 || thursday === void 0 || friday === void 0 || saturday === void 0 || sunday === void 0) return err({
1046
+ code: "invalid_weekdays",
1047
+ path: "openingHours.days",
1048
+ message: "Opening hours are incomplete."
1049
+ });
1050
+ return ok$1([
1051
+ monday,
1052
+ tuesday,
1053
+ wednesday,
1054
+ thursday,
1055
+ friday,
1056
+ saturday,
1057
+ sunday
1058
+ ]);
1059
+ }
1060
+ function parseWeeklyOpeningHours(value) {
1061
+ if (!isRecord$10(value) || !Array.isArray(value.days) || value.days.length !== publicProfileWeekdays.length) return err({
1062
+ code: "invalid_weekdays",
1063
+ path: "openingHours.days",
1064
+ message: "Opening hours must include all seven weekdays."
1065
+ });
1066
+ const timeZone = parsePublicProfileTimeZone(value.timeZone);
1067
+ if (!timeZone.ok) return timeZone;
1068
+ const note = value.note === void 0 || value.note === null ? null : trimmedOptionalString(value.note);
1069
+ if (note === void 0) return err({
1070
+ code: "invalid_shape",
1071
+ path: "openingHours.note",
1072
+ message: "The opening hours note must be text."
1073
+ });
1074
+ const days = parseOpeningHoursWeek(value.days);
1075
+ if (!days.ok) return days;
1076
+ return ok$1({
1077
+ timeZone: timeZone.value,
1078
+ ...note !== null ? { note } : {},
1079
+ days: days.value
1080
+ });
1081
+ }
1082
+ //#endregion
922
1083
  //#region ../core/src/mailing-list-identifiers.ts
923
1084
  const UUID_PATTERN = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/iu;
924
1085
  const OPAQUE_ID_PATTERN = /^[A-Za-z0-9_-]{1,100}$/u;
@@ -2043,7 +2204,21 @@ function parseCanonicalRuntimeBackground(content) {
2043
2204
  };
2044
2205
  }
2045
2206
  function resolveSectionBackground(source, lookDefault, rhythm, arrangementHeroPhoto) {
2046
- if (heroPhotoIsContent(source, arrangementHeroPhoto)) return rhythmBackground(rhythm);
2207
+ if (heroPhotoIsContent(source, arrangementHeroPhoto, rhythm !== void 0)) {
2208
+ if (rhythm !== void 0) return rhythmBackground(rhythm);
2209
+ return {
2210
+ kind: "content-media",
2211
+ background: source.background,
2212
+ ground: {
2213
+ type: "color",
2214
+ color: arrangementHeroPhoto?.fallbackToken ?? "background",
2215
+ textColor: source.background.textColor,
2216
+ headingColor: source.background.headingColor,
2217
+ linkColor: source.background.linkColor,
2218
+ supportingColor: source.background.supportingColor
2219
+ }
2220
+ };
2221
+ }
2047
2222
  if (source.kind === "page-design-override") return {
2048
2223
  kind: "override",
2049
2224
  background: source.background
@@ -2063,7 +2238,31 @@ function resolveSectionBackground(source, lookDefault, rhythm, arrangementHeroPh
2063
2238
  return rhythmBackground(rhythm);
2064
2239
  }
2065
2240
  function resolveSectionForeground(background, palette) {
2066
- return resolveSurfaceForeground(background.kind === "base" ? null : background.background, palette, {}, { compositeBase: "background" });
2241
+ return resolveSurfaceForeground(sectionForegroundBackground(background, palette), palette, {}, { compositeBase: "background" });
2242
+ }
2243
+ /** Legacy detached photos keep already-legible authored ink and its exact CSS treatment. */
2244
+ function sectionForegroundBackground(resolved, palette) {
2245
+ if (resolved.kind === "base") return null;
2246
+ if (resolved.kind !== "content-media") return resolved.background;
2247
+ const original = resolveSurfaceForeground(resolved.background, palette);
2248
+ const measured = resolveSurfaceForeground(resolved.ground, palette);
2249
+ if (original.kind === "unknown" || measured.kind === "unknown") return resolved.background;
2250
+ return [
2251
+ "text",
2252
+ "heading",
2253
+ "link",
2254
+ "supporting"
2255
+ ].every((role) => original.roles[role] === measured.roles[role]) ? resolved.background : resolved.ground;
2256
+ }
2257
+ /** One photo-placement decision for legacy and arrangement hero renderers. */
2258
+ function heroPhotoPaintsGround(variant) {
2259
+ return ![
2260
+ "split",
2261
+ "splitReverse",
2262
+ "headline-row",
2263
+ "copy-over-gallery",
2264
+ "page-head"
2265
+ ].includes(variant ?? "classic");
2067
2266
  }
2068
2267
  function mergeLookForegroundWithAuthoredMedia(lookDefault, authored) {
2069
2268
  const paintsBand = lookDefault.type === "color" || lookDefault.type === "gradient";
@@ -2083,8 +2282,8 @@ function mergeLookForegroundWithAuthoredMedia(lookDefault, authored) {
2083
2282
  function readRecord(value) {
2084
2283
  return typeof value === "object" && value !== null && !Array.isArray(value) ? value : null;
2085
2284
  }
2086
- function heroPhotoIsContent(source, photo) {
2087
- return photo !== void 0 && !photo.paintsGround && source.kind === "block-authored" && source.background.type === "image";
2285
+ function heroPhotoIsContent(source, photo, hasArrangementGround) {
2286
+ return photo !== void 0 && !photo.paintsGround && source.kind === "block-authored" && source.background.type === "image" && (hasArrangementGround || !source.background.overlay);
2088
2287
  }
2089
2288
  function isAuthoredMedia(source) {
2090
2289
  return source.kind === "block-authored" && (source.background.type === "image" || source.background.type === "video");
@@ -2114,9 +2313,10 @@ const solidGrounds = {
2114
2313
  };
2115
2314
  function deriveSectionGround(resolved, palette) {
2116
2315
  if (resolved.kind === "base") return "light";
2117
- const solid = solidSectionGround(resolved.background);
2316
+ const background = resolved.kind === "content-media" ? resolved.ground : resolved.background;
2317
+ const solid = solidSectionGround(background);
2118
2318
  if (solid) return solid;
2119
- return (scrimTone(sectionScrimSamples(resolved.background, palette)) ?? sectionForegroundTone(resolved, palette)) === "dark" ? "deep" : "light";
2319
+ return (scrimTone(sectionScrimSamples(background, palette)) ?? sectionForegroundTone(resolved, palette)) === "dark" ? "deep" : "light";
2120
2320
  }
2121
2321
  function solidSectionGround(background) {
2122
2322
  if (background.type !== "color") return null;
@@ -2383,8 +2583,10 @@ function arrangementManifestFromVariants(manifest) {
2383
2583
  lookOnlyKeys: manifest.variantMeaning?.lookOnlyKeys
2384
2584
  };
2385
2585
  }
2586
+ /** A Look-only arrangement is never a default: a block whose only variants are Look-only keeps its plain layout. */
2386
2587
  function manifestDefaultArrangement(manifest) {
2387
- const key = manifest.defaultKey !== null && manifest.keys.includes(manifest.defaultKey) ? manifest.defaultKey : manifest.keys[0];
2588
+ const defaults = manifest.keys.filter((key) => !manifest.lookOnlyKeys?.includes(key));
2589
+ const key = manifest.defaultKey !== null && defaults.includes(manifest.defaultKey) ? manifest.defaultKey : defaults[0];
2388
2590
  return key === void 0 ? null : asLayoutVariantKey(key);
2389
2591
  }
2390
2592
  /** A declared secondary axis shares the arrangement rule, without rewriting content. */
@@ -2842,6 +3044,296 @@ function createVariantField(manifest) {
2842
3044
  function formatKeyAsLabel(key) {
2843
3045
  return key.replace(/([A-Z])/g, " $1").replace(/[-_]/g, " ").trim().split(" ").map((word) => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase()).join(" ");
2844
3046
  }
3047
+ const MIN_COLUMNS = 1;
3048
+ const MAX_COLUMNS = 6;
3049
+ function normalizeInteger(value) {
3050
+ if (typeof value === "number" && Number.isFinite(value)) return Math.trunc(value);
3051
+ if (typeof value === "string") {
3052
+ const trimmed = value.trim();
3053
+ if (!trimmed) return null;
3054
+ const parsed = Number(trimmed);
3055
+ if (!Number.isFinite(parsed)) return null;
3056
+ return Math.trunc(parsed);
3057
+ }
3058
+ return null;
3059
+ }
3060
+ function clamp(value, min, max) {
3061
+ return Math.max(min, Math.min(max, value));
3062
+ }
3063
+ function asNonEmptyString(value) {
3064
+ if (typeof value !== "string") return null;
3065
+ const trimmed = value.trim();
3066
+ return trimmed.length > 0 ? trimmed : null;
3067
+ }
3068
+ function resolveRepeaterGridSpanFieldId(options) {
3069
+ return asNonEmptyString(options?.id) ?? "gridSpan";
3070
+ }
3071
+ function resolveRepeaterGridRowFieldId(options) {
3072
+ return asNonEmptyString(options?.id) ?? "gridRow";
3073
+ }
3074
+ function resolveRepeaterGridColumnFieldId(options) {
3075
+ return asNonEmptyString(options?.id) ?? "gridColumn";
3076
+ }
3077
+ function getBreakpointFallbackOrder(breakpoint) {
3078
+ if (breakpoint === "xl") return [
3079
+ "xl",
3080
+ "lg",
3081
+ "md",
3082
+ "sm",
3083
+ "base"
3084
+ ];
3085
+ if (breakpoint === "lg") return [
3086
+ "lg",
3087
+ "md",
3088
+ "sm",
3089
+ "base"
3090
+ ];
3091
+ if (breakpoint === "md") return [
3092
+ "md",
3093
+ "sm",
3094
+ "base",
3095
+ "lg"
3096
+ ];
3097
+ if (breakpoint === "sm") return [
3098
+ "sm",
3099
+ "base",
3100
+ "lg"
3101
+ ];
3102
+ return ["base", "lg"];
3103
+ }
3104
+ function normalizeRepeaterGridColumns(value) {
3105
+ const parsed = normalizeInteger(value);
3106
+ if (parsed == null) return MIN_COLUMNS;
3107
+ return clamp(parsed, MIN_COLUMNS, MAX_COLUMNS);
3108
+ }
3109
+ function normalizeRepeaterGridRow(value) {
3110
+ const parsed = normalizeInteger(value);
3111
+ if (parsed == null) return 1;
3112
+ return Math.max(1, parsed);
3113
+ }
3114
+ function resolveRepeaterGridColumnsForBreakpoint(values, bindings, breakpoint) {
3115
+ const order = getBreakpointFallbackOrder(breakpoint);
3116
+ for (const candidate of order) {
3117
+ const fieldId = asNonEmptyString(bindings[candidate]);
3118
+ if (!fieldId) continue;
3119
+ const resolved = normalizeInteger(values[fieldId]);
3120
+ if (resolved == null) continue;
3121
+ return clamp(resolved, MIN_COLUMNS, MAX_COLUMNS);
3122
+ }
3123
+ return MIN_COLUMNS;
3124
+ }
3125
+ /** Strict admission; rendering normalization never grants permission to persist. */
3126
+ function parseRepeaterGridInteger(value) {
3127
+ if (typeof value !== "number" && (typeof value !== "string" || !value.trim())) return null;
3128
+ const number = Number(value);
3129
+ return Number.isInteger(number) ? number : null;
3130
+ }
3131
+ function isAcceptedRepeaterGridSpan(value, columns, acceptedSpans) {
3132
+ const span = parseRepeaterGridInteger(value);
3133
+ return span != null && span >= 1 && span <= columns && (!acceptedSpans || acceptedSpans.includes(span));
3134
+ }
3135
+ function normalizeRepeaterGridSpan(value, activeColumns, acceptedSpans) {
3136
+ if (acceptedSpans) {
3137
+ const valid = acceptedSpans.filter((span) => span <= activeColumns);
3138
+ const parsed = parseRepeaterGridInteger(value);
3139
+ return parsed != null && valid.includes(parsed) ? parsed : valid.length ? Math.min(...valid) : 1;
3140
+ }
3141
+ const parsed = normalizeInteger(value);
3142
+ if (parsed == null) return 1;
3143
+ return clamp(parsed, 1, Math.max(1, activeColumns));
3144
+ }
3145
+ function normalizeRepeaterGridColStart(value, activeColumns, span) {
3146
+ const parsed = normalizeInteger(value);
3147
+ const normalizedColumns = Math.max(1, activeColumns);
3148
+ const normalizedSpan = clamp(span, 1, normalizedColumns);
3149
+ const maxColStart = Math.max(1, normalizedColumns - normalizedSpan + 1);
3150
+ if (parsed == null) return 1;
3151
+ return clamp(parsed, 1, maxColStart);
3152
+ }
3153
+ function toRowCellKey(row, col, columns) {
3154
+ return (row - 1) * columns + col;
3155
+ }
3156
+ function buildPlacementCells(placement) {
3157
+ return Array.from({ length: placement.span }, (_, index) => placement.colStart + index);
3158
+ }
3159
+ function buildOccupancyByCell(placements, columns) {
3160
+ const occupancy = placements.flatMap((placement) => buildPlacementCells(placement).map((col) => [toRowCellKey(placement.row, col, columns), placement.id])).reduce((cells, [cell, id]) => new Map(cells).set(cell, /* @__PURE__ */ new Set([...cells.get(cell) ?? [], id])), /* @__PURE__ */ new Map());
3161
+ return {
3162
+ occupancy,
3163
+ hasCollisions: Array.from(occupancy.values()).some((ids) => ids.size > 1)
3164
+ };
3165
+ }
3166
+ function getOverlappingItemIds(input) {
3167
+ return new Set(buildPlacementCells(input).flatMap((col) => Array.from(input.occupancy.get(toRowCellKey(input.row, col, input.columns)) ?? []).filter((id) => !input.excludedIds?.has(id))));
3168
+ }
3169
+ function normalizeInputItem(item, columns, sourceIndex) {
3170
+ const span = normalizeRepeaterGridSpan(item.span, columns, item.acceptedSpans);
3171
+ const row = normalizeRepeaterGridRow(item.row);
3172
+ const colStart = normalizeRepeaterGridColStart(item.colStart, columns, span);
3173
+ const colEnd = colStart + span - 1;
3174
+ return {
3175
+ id: item.id,
3176
+ startNewRow: item.startNewRow,
3177
+ acceptedSpans: item.acceptedSpans,
3178
+ sourceIndex,
3179
+ span,
3180
+ row,
3181
+ colStart,
3182
+ colEnd,
3183
+ startCell: toRowCellKey(row, colStart, columns)
3184
+ };
3185
+ }
3186
+ /** Ordered, non-dense placement. Rendering clamps widths; admission checks originals separately. */
3187
+ function flowRepeaterGridItems(items, columns) {
3188
+ const count = normalizeRepeaterGridColumns(columns);
3189
+ return items.reduce((placed, item) => {
3190
+ const span = normalizeRepeaterGridSpan(item.span, count);
3191
+ const previous = placed.at(-1);
3192
+ const nextColumn = previous ? previous.colStart + previous.span : 1;
3193
+ const wraps = previous != null && (item.startNewRow === true || nextColumn + span - 1 > count);
3194
+ return [...placed, {
3195
+ ...item,
3196
+ span,
3197
+ row: (previous?.row ?? 1) + (wraps ? 1 : 0),
3198
+ colStart: wraps ? 1 : nextColumn
3199
+ }];
3200
+ }, []);
3201
+ }
3202
+ function orderedGridItems(layout) {
3203
+ return [...layout.placements].sort((a, b) => a.sourceIndex - b.sourceIndex);
3204
+ }
3205
+ function isRepeaterGridLayoutInvalid(layout) {
3206
+ return layout.hasInvalidItems || layout.hasCollisions || layout.overCapacity;
3207
+ }
3208
+ function hasInvalidGridItems(items, columns, policy) {
3209
+ const flow = policy === "flow" ? flowRepeaterGridItems(items, columns) : null;
3210
+ return items.some((item, index) => !isValidGridItemGeometry(item, columns) || flow != null && (item.row !== flow[index]?.row || item.colStart !== flow[index]?.colStart));
3211
+ }
3212
+ function isValidGridItemGeometry(item, columns) {
3213
+ return isAcceptedRepeaterGridSpan(item.span, columns, item.acceptedSpans) && parseRepeaterGridInteger(item.row) != null && item.row >= 1 && parseRepeaterGridInteger(item.colStart) != null && item.colStart >= 1 && item.colStart + item.span - 1 <= columns;
3214
+ }
3215
+ function findFlowAppendPlacement(layout, span, startNewRow) {
3216
+ const next = flowRepeaterGridItems([...orderedGridItems(layout), {
3217
+ id: "new",
3218
+ span,
3219
+ row: 1,
3220
+ colStart: 1,
3221
+ startNewRow
3222
+ }], layout.columns).at(-1);
3223
+ return !isRepeaterGridLayoutInvalid(layout) && next && (layout.maxRows == null || next.row <= layout.maxRows) ? {
3224
+ row: next.row,
3225
+ colStart: next.colStart
3226
+ } : null;
3227
+ }
3228
+ function buildRepeaterGridLayout(input) {
3229
+ const columns = normalizeRepeaterGridColumns(input.columns);
3230
+ const maxRows = input.maxRows != null ? Math.max(1, Math.trunc(input.maxRows)) : void 0;
3231
+ const capacityCells = maxRows != null ? maxRows * columns : void 0;
3232
+ const placements = input.items.map((item, sourceIndex) => normalizeInputItem(item, columns, sourceIndex)).sort((a, b) => {
3233
+ if (a.row !== b.row) return a.row - b.row;
3234
+ if (a.colStart !== b.colStart) return a.colStart - b.colStart;
3235
+ return a.sourceIndex - b.sourceIndex;
3236
+ });
3237
+ const byId = Object.fromEntries(placements.map((placement) => [placement.id, placement]));
3238
+ const maxRowUsed = placements.length > 0 ? Math.max(...placements.map((placement) => placement.row)) : 0;
3239
+ const { hasCollisions } = buildOccupancyByCell(placements, columns);
3240
+ const overCapacity = maxRows != null && maxRowUsed > maxRows;
3241
+ return {
3242
+ placementPolicy: input.placementPolicy,
3243
+ columns,
3244
+ maxRows,
3245
+ capacityCells,
3246
+ maxRowUsed,
3247
+ overCapacity,
3248
+ hasCollisions,
3249
+ hasInvalidItems: hasInvalidGridItems(input.items, columns, input.placementPolicy),
3250
+ placements,
3251
+ byId
3252
+ };
3253
+ }
3254
+ function findFirstAvailableRepeaterGridPlacement(input) {
3255
+ const columns = normalizeRepeaterGridColumns(input.columns);
3256
+ const maxRows = input.maxRows != null ? Math.max(1, Math.trunc(input.maxRows)) : void 0;
3257
+ if (!isAcceptedRepeaterGridSpan(input.newItemSpan, columns, input.acceptedSpans)) return null;
3258
+ const span = normalizeRepeaterGridSpan(input.newItemSpan, columns, input.acceptedSpans);
3259
+ const layout = buildRepeaterGridLayout({
3260
+ items: input.items,
3261
+ columns,
3262
+ maxRows,
3263
+ placementPolicy: input.placementPolicy
3264
+ });
3265
+ if (input.placementPolicy === "flow") return findFlowAppendPlacement(layout, span, input.startNewRow);
3266
+ const { occupancy } = buildOccupancyByCell(layout.placements, columns);
3267
+ const rowLimit = maxRows ?? Math.max(1, layout.maxRowUsed + 1);
3268
+ if (isRepeaterGridLayoutInvalid(layout)) return null;
3269
+ const maxColStart = columns - span + 1;
3270
+ return Array.from({ length: rowLimit * maxColStart }, (_, index) => ({
3271
+ row: Math.floor(index / maxColStart) + 1,
3272
+ colStart: index % maxColStart + 1
3273
+ })).find(({ row, colStart }) => getOverlappingItemIds({
3274
+ occupancy,
3275
+ row,
3276
+ colStart,
3277
+ span,
3278
+ columns
3279
+ }).size === 0) ?? null;
3280
+ }
3281
+ /** Narrow rendering is a projection only. Never feed these placements into an authoring write. */
3282
+ function projectRepeaterGridLayout(layout, columns) {
3283
+ if (isRepeaterGridLayoutInvalid(layout)) return projectRepeaterGridLayoutForRendering(layout, columns);
3284
+ if (columns === layout.columns) return layout;
3285
+ if (layout.placementPolicy === "flow") return buildProjectedRepeaterGridLayout(layout, flowRepeaterGridItems(orderedGridItems(layout), columns), columns);
3286
+ return buildProjectedRepeaterGridLayout(layout, layout.placements.reduce((placed, item) => {
3287
+ const span = normalizeRepeaterGridSpan(item.span, columns);
3288
+ const destination = findFirstAvailableRepeaterGridPlacement({
3289
+ items: placed,
3290
+ newItemSpan: span,
3291
+ columns
3292
+ });
3293
+ return [...placed, {
3294
+ id: item.id,
3295
+ span,
3296
+ row: destination?.row ?? placed.length + 1,
3297
+ colStart: destination?.colStart ?? 1
3298
+ }];
3299
+ }, []), columns);
3300
+ }
3301
+ function buildProjectedRepeaterGridLayout(source, items, columns) {
3302
+ const projected = buildRepeaterGridLayout({
3303
+ items: items.map(({ id, span, row, colStart, startNewRow }) => ({
3304
+ id,
3305
+ span,
3306
+ row,
3307
+ colStart,
3308
+ startNewRow
3309
+ })),
3310
+ columns,
3311
+ placementPolicy: source.placementPolicy === "flow" || isRepeaterGridLayoutInvalid(source) ? "flow" : source.placementPolicy
3312
+ });
3313
+ const placements = projected.placements.map((item) => ({
3314
+ ...item,
3315
+ sourceIndex: source.byId[item.id]?.sourceIndex ?? item.sourceIndex
3316
+ }));
3317
+ return {
3318
+ ...projected,
3319
+ placements,
3320
+ byId: Object.fromEntries(placements.map((item) => [item.id, item]))
3321
+ };
3322
+ }
3323
+ /** Public fallback: preserve saved array order, use non-dense auto-placement, and ignore authoring capacity. */
3324
+ function projectRepeaterGridLayoutForRendering(layout, columns = layout.columns) {
3325
+ if (!isRepeaterGridLayoutInvalid(layout)) return projectRepeaterGridLayout(layout, columns);
3326
+ const count = normalizeRepeaterGridColumns(columns);
3327
+ return buildProjectedRepeaterGridLayout(layout, flowRepeaterGridItems(orderedGridItems(layout), count), count);
3328
+ }
3329
+ //#endregion
3330
+ //#region ../blocks/src/lib/media.ts
3331
+ const PUBLIC_DOWNLOAD_MEDIA_TYPES = [
3332
+ "document",
3333
+ "spreadsheet",
3334
+ "archive",
3335
+ "audio"
3336
+ ];
2845
3337
  //#endregion
2846
3338
  //#region ../blocks/src/system/types/link.ts
2847
3339
  const nullableString = z.union([z.string().min(1), z.null()]);
@@ -3011,23 +3503,65 @@ function typeBasedLayout(itemTypesMap, options) {
3011
3503
  });
3012
3504
  }
3013
3505
  //#endregion
3014
- //#region ../blocks/src/system/layout/repeaterGrid.ts
3015
- const DEFAULT_REPEATER_GRID_SPAN_FIELD_ID = "gridSpan";
3016
- const DEFAULT_REPEATER_GRID_ROW_FIELD_ID = "gridRow";
3017
- const DEFAULT_REPEATER_GRID_COLUMN_FIELD_ID = "gridColumn";
3018
- function asNonEmptyString(value) {
3019
- if (typeof value !== "string") return null;
3020
- const trimmed = value.trim();
3021
- return trimmed.length > 0 ? trimmed : null;
3022
- }
3023
- function resolveRepeaterGridSpanFieldId(options) {
3024
- return asNonEmptyString(options?.id) ?? "gridSpan";
3025
- }
3026
- function resolveRepeaterGridRowFieldId(options) {
3027
- return asNonEmptyString(options?.id) ?? "gridRow";
3506
+ //#region ../blocks/src/system/manifest/layoutGridConfiguration.ts
3507
+ const itemFieldsSchema = z.object({ fields: z.array(z.object({
3508
+ id: z.string(),
3509
+ type: z.string(),
3510
+ defaultValue: z.unknown().optional(),
3511
+ options: z.array(z.object({ value: z.string() })).optional(),
3512
+ multiple: z.boolean().optional(),
3513
+ source: z.object({ kind: z.string() }).optional()
3514
+ })) });
3515
+ function validateSpanSelect(span, columns, ctx) {
3516
+ if (span.type !== "select") return;
3517
+ const options = span.options ?? [];
3518
+ const invalidOptions = options.some((option) => !isAcceptedRepeaterGridSpan(option.value, columns) || String(Number(option.value)) !== option.value);
3519
+ if (span.multiple || options.length === 0 || invalidOptions || span.source && span.source.kind !== "static") ctx.addIssue({
3520
+ code: "custom",
3521
+ path: ["ui", "layoutGridSpanField"],
3522
+ message: `Layout-grid span select must have single, static integer options within 1..${columns}`
3523
+ });
3524
+ if (span.defaultValue !== void 0 && !options.some((option) => option.value === span.defaultValue)) ctx.addIssue({
3525
+ code: "custom",
3526
+ path: ["ui", "layoutGridSpanField"],
3527
+ message: "Layout-grid default span must be one of the span select options"
3528
+ });
3028
3529
  }
3029
- function resolveRepeaterGridColumnFieldId(options) {
3030
- return asNonEmptyString(options?.id) ?? "gridColumn";
3530
+ /** Both monomorphic and polymorphic item schemas have the same layout contract. */
3531
+ function validateLayoutGridConfiguration(data, ctx) {
3532
+ const ui = data.ui;
3533
+ if (ui?.repeaterPreset !== "layoutGrid") return;
3534
+ if (ui.layoutGridColumns !== void 0 === (ui.layoutGridColumnsFields !== void 0)) ctx.addIssue({
3535
+ code: "custom",
3536
+ path: ["ui", "layoutGridColumns"],
3537
+ message: "Layout-grid requires exactly one of ui.layoutGridColumns or ui.layoutGridColumnsFields.lg; do not set both"
3538
+ });
3539
+ const spanId = resolveRepeaterGridSpanFieldId({ id: ui.layoutGridSpanField });
3540
+ const requiredIds = [
3541
+ spanId,
3542
+ resolveRepeaterGridRowFieldId({ id: ui.layoutGridRowField }),
3543
+ resolveRepeaterGridColumnFieldId({ id: ui.layoutGridColumnField })
3544
+ ];
3545
+ (data.polymorphic && data.itemTypes ? Object.values(data.itemTypes) : [data.schema]).forEach((schema) => {
3546
+ const parsed = itemFieldsSchema.safeParse(schema);
3547
+ if (!parsed.success) return;
3548
+ if (!requiredIds.every((id) => parsed.data.fields.some((field) => field.id === id))) ctx.addIssue({
3549
+ code: "custom",
3550
+ path: ["ui", "layoutGridRowField"],
3551
+ message: `layoutGrid repeaters require span/row/column fields (${requiredIds.join(", ")}) to exist in repeater item fields`
3552
+ });
3553
+ if (ui.layoutGridStartNewRowField && !parsed.data.fields.some((field) => field.id === ui.layoutGridStartNewRowField && field.type === "boolean")) ctx.addIssue({
3554
+ code: "custom",
3555
+ path: ["ui", "layoutGridStartNewRowField"],
3556
+ message: "Layout-grid Start a new row field must reference a boolean item field"
3557
+ });
3558
+ if (ui.layoutGridStartNewRowField && ui.layoutGridColumns === void 0) ctx.addIssue({
3559
+ code: "custom",
3560
+ path: ["ui", "layoutGridStartNewRowField"],
3561
+ message: "Layout-grid Start a new row requires fixed columns (flow placement)"
3562
+ });
3563
+ parsed.data.fields.filter((field) => field.id === spanId).forEach((span) => validateSpanSelect(span, ui.layoutGridColumns ?? 6, ctx));
3564
+ });
3031
3565
  }
3032
3566
  //#endregion
3033
3567
  //#region ../blocks/src/system/icons/presets.ts
@@ -3206,6 +3740,14 @@ const uiSchema = z.object({
3206
3740
  thumbnailLabelField: z.string().optional(),
3207
3741
  thumbnailAspectRatio: z.string().optional(),
3208
3742
  thumbnailCardDensity: z.enum(["compact", "comfortable"]).optional(),
3743
+ layoutGridColumns: z.union([
3744
+ z.literal(1),
3745
+ z.literal(2),
3746
+ z.literal(3),
3747
+ z.literal(4),
3748
+ z.literal(5),
3749
+ z.literal(6)
3750
+ ]).optional(),
3209
3751
  layoutGridColumnsFields: z.object({
3210
3752
  base: z.string().optional(),
3211
3753
  sm: z.string().optional(),
@@ -3214,6 +3756,7 @@ const uiSchema = z.object({
3214
3756
  xl: z.string().optional()
3215
3757
  }).optional(),
3216
3758
  layoutGridSpanField: z.string().optional(),
3759
+ layoutGridStartNewRowField: z.string().optional(),
3217
3760
  layoutGridRowField: z.string().optional(),
3218
3761
  layoutGridColumnField: z.string().optional(),
3219
3762
  layoutGridMaxRows: z.number().int().positive().optional(),
@@ -3235,7 +3778,24 @@ const uiSchema = z.object({
3235
3778
  "style"
3236
3779
  ]).optional(),
3237
3780
  valueContract: z.enum(["boxBackground"]).optional()
3238
- }).partial();
3781
+ }).partial().superRefine((ui, ctx) => {
3782
+ if (ui.layoutGridColumns !== void 0 && ui.layoutGridColumnsFields !== void 0) ctx.addIssue({
3783
+ code: "custom",
3784
+ path: ["layoutGridColumns"],
3785
+ message: "Layout-grid requires exactly one of ui.layoutGridColumns or ui.layoutGridColumnsFields.lg; do not set both"
3786
+ });
3787
+ }).transform((input) => {
3788
+ const { layoutGridColumns, layoutGridColumnsFields, ...ui } = input;
3789
+ if (layoutGridColumns !== void 0) return {
3790
+ ...ui,
3791
+ layoutGridColumns
3792
+ };
3793
+ if (layoutGridColumnsFields !== void 0) return {
3794
+ ...ui,
3795
+ layoutGridColumnsFields
3796
+ };
3797
+ return ui;
3798
+ });
3239
3799
  const baseFieldSchema = z.object({
3240
3800
  id: z.string().min(1, "Field id is required"),
3241
3801
  label: z.string().min(1, "Field label is required"),
@@ -3401,31 +3961,7 @@ const repeaterFieldSchema = baseFieldSchema.extend({
3401
3961
  allowConversion: z.boolean().default(true)
3402
3962
  }).refine((data) => {
3403
3963
  return data.schema !== void 0 !== (data.polymorphic === true && data.itemTypes !== void 0);
3404
- }, { message: "Repeater must have either 'schema' (monomorphic) or 'polymorphic: true' with 'itemTypes' (polymorphic)" }).refine((data) => {
3405
- if (data.ui?.repeaterPreset !== "layoutGrid") return true;
3406
- return !!data.ui.layoutGridColumnsFields?.lg;
3407
- }, {
3408
- message: "ui.layoutGridColumnsFields.lg is required when ui.repeaterPreset is 'layoutGrid'",
3409
- path: [
3410
- "ui",
3411
- "layoutGridColumnsFields",
3412
- "lg"
3413
- ]
3414
- }).refine((data) => {
3415
- if (data.ui?.repeaterPreset !== "layoutGrid") return true;
3416
- const requiredFieldIds = [
3417
- resolveRepeaterGridSpanFieldId({ id: typeof data.ui.layoutGridSpanField === "string" ? data.ui.layoutGridSpanField : void 0 }),
3418
- resolveRepeaterGridRowFieldId({ id: typeof data.ui.layoutGridRowField === "string" ? data.ui.layoutGridRowField : void 0 }),
3419
- resolveRepeaterGridColumnFieldId({ id: typeof data.ui.layoutGridColumnField === "string" ? data.ui.layoutGridColumnField : void 0 })
3420
- ];
3421
- if (data.polymorphic && data.itemTypes) return Object.values(data.itemTypes).every((itemType) => Array.isArray(itemType.fields) && requiredFieldIds.every((requiredId) => itemType.fields?.some((field) => field.id === requiredId)));
3422
- const schemaFields = data.schema?.fields;
3423
- if (!schemaFields) return true;
3424
- return requiredFieldIds.every((requiredId) => schemaFields.some((field) => field.id === requiredId));
3425
- }, {
3426
- message: `layoutGrid repeaters require span/row/column fields (defaults: '${DEFAULT_REPEATER_GRID_SPAN_FIELD_ID}', '${DEFAULT_REPEATER_GRID_ROW_FIELD_ID}', '${DEFAULT_REPEATER_GRID_COLUMN_FIELD_ID}') to exist in repeater item fields`,
3427
- path: ["ui", "layoutGridRowField"]
3428
- }).refine((data) => {
3964
+ }, { message: "Repeater must have either 'schema' (monomorphic) or 'polymorphic: true' with 'itemTypes' (polymorphic)" }).superRefine(validateLayoutGridConfiguration).refine((data) => {
3429
3965
  const thumbnailAspectRatio = data.ui?.thumbnailAspectRatio;
3430
3966
  if (!thumbnailAspectRatio) return true;
3431
3967
  return parseAspectRatioValue(thumbnailAspectRatio) != null;
@@ -4997,14 +5533,6 @@ function resolveBlockIconRenderValue(value, generatedAssets = /* @__PURE__ */ ne
4997
5533
  }
4998
5534
  }
4999
5535
  //#endregion
5000
- //#region ../blocks/src/lib/media.ts
5001
- const PUBLIC_DOWNLOAD_MEDIA_TYPES = [
5002
- "document",
5003
- "spreadsheet",
5004
- "archive",
5005
- "audio"
5006
- ];
5007
- //#endregion
5008
5536
  //#region ../blocks/src/system/manifest/registry.ts
5009
5537
  const REGISTRY_SYMBOL$1 = Symbol.for("@riverbankcms/blocks/manifest-registry");
5010
5538
  const isBlocksTestRuntime$1 = typeof process !== "undefined" && typeof process.env !== "undefined" && process.env.RIVERBANK_BLOCKS_TEST === "1";
@@ -5018,7 +5546,7 @@ function registerManifest(manifest) {
5018
5546
  //#region ../blocks/src/system/registry.ts
5019
5547
  function normalizeBlockContent(definition, content) {
5020
5548
  const normalizer = definition?.contentNormalizer;
5021
- if (!normalizer || !isRecord$11(content)) return content;
5549
+ if (!normalizer || !isRecord$12(content)) return content;
5022
5550
  const normalized = normalizer.normalize(content);
5023
5551
  const owned = new Set(normalizer.fieldIds);
5024
5552
  return {
@@ -6635,6 +7163,7 @@ function styledSection(config) {
6635
7163
  baseClass,
6636
7164
  spacing,
6637
7165
  fullWidthPath,
7166
+ photoPaintsGround: renderBackgroundImage,
6638
7167
  skinSlot: config.skinSlot
6639
7168
  }), [renderedBackgroundNode, ...childrenArray]);
6640
7169
  }
@@ -6646,7 +7175,10 @@ function sectionAppearanceProps(input) {
6646
7175
  from: `${input.bindFrom}.background`,
6647
7176
  transforms: [{
6648
7177
  id: "sectionStyles.resolveColorsStyle",
6649
- options: { fallbackToken: input.background }
7178
+ options: {
7179
+ fallbackToken: input.background,
7180
+ photoPaintsGround: input.photoPaintsGround
7181
+ }
6650
7182
  }]
6651
7183
  } },
6652
7184
  className: { $bind: {
@@ -7013,22 +7545,6 @@ function footerNav(opts) {
7013
7545
  return buildFooterNavAll(common);
7014
7546
  }
7015
7547
  //#endregion
7016
- //#region ../blocks/src/system/fields/backgroundContent.ts
7017
- function parseBackgroundContent(value) {
7018
- const result = boxBackgroundSchema.safeParse(value);
7019
- return result.success ? result.data : null;
7020
- }
7021
- function parseBackgroundOverlay(value) {
7022
- const result = boxBackgroundOverlaySchema.safeParse(value);
7023
- return result.success ? result.data : void 0;
7024
- }
7025
- /** Rendering accepts explicit application sources separately from stored references. */
7026
- const runtimeBackgroundContentSchema = runtimeBoxBackgroundSchema;
7027
- function parseRuntimeBackgroundContent(value) {
7028
- const result = runtimeBackgroundContentSchema.safeParse(value);
7029
- return result.success ? result.data : null;
7030
- }
7031
- //#endregion
7032
7548
  //#region ../blocks/src/system/transforms/registry/_utils/themeColorResolution.ts
7033
7549
  function resolveBackgroundColorValue(value, context) {
7034
7550
  return resolveThemeColorReferenceValue(value, { palette: context.theme?.palette });
@@ -7054,7 +7570,7 @@ function resolveSurfaceForegroundStyles(value, context, options) {
7054
7570
  const key = JSON.stringify([
7055
7571
  value,
7056
7572
  context.proseHoverCandidate,
7057
- options?.fallbackToken,
7573
+ options,
7058
7574
  context.data?._lookSlots !== void 0
7059
7575
  ]);
7060
7576
  const cache = sectionSurfaceCache.get(context.theme) ?? /* @__PURE__ */ new Map();
@@ -7073,7 +7589,10 @@ function resolveSurfaceForegroundStyles(value, context, options) {
7073
7589
  function resolveRuntimeSectionSurface(value, context, options) {
7074
7590
  return resolveSurface({
7075
7591
  kind: "section",
7076
- background: parseBackgroundContent(value)
7592
+ background: sectionForegroundBackground(resolveSectionBackground(parseCanonicalRuntimeBackground({ _sectionStyles: { background: value } }), null, void 0, {
7593
+ paintsGround: options?.photoPaintsGround !== false,
7594
+ fallbackToken: options?.fallbackToken
7595
+ }), context.theme.palette)
7077
7596
  }, {
7078
7597
  palette: context.theme.palette,
7079
7598
  buttonSystem: context.theme.buttons,
@@ -7098,6 +7617,22 @@ function surfaceInkStyles(foreground, palette) {
7098
7617
  };
7099
7618
  }
7100
7619
  //#endregion
7620
+ //#region ../blocks/src/system/fields/backgroundContent.ts
7621
+ function parseBackgroundContent(value) {
7622
+ const result = boxBackgroundSchema.safeParse(value);
7623
+ return result.success ? result.data : null;
7624
+ }
7625
+ function parseBackgroundOverlay(value) {
7626
+ const result = boxBackgroundOverlaySchema.safeParse(value);
7627
+ return result.success ? result.data : void 0;
7628
+ }
7629
+ /** Rendering accepts explicit application sources separately from stored references. */
7630
+ const runtimeBackgroundContentSchema = runtimeBoxBackgroundSchema;
7631
+ function parseRuntimeBackgroundContent(value) {
7632
+ const result = runtimeBackgroundContentSchema.safeParse(value);
7633
+ return result.success ? result.data : null;
7634
+ }
7635
+ //#endregion
7101
7636
  //#region ../blocks/src/system/transforms/registry/_utils/boxStyleClassNames.ts
7102
7637
  /**
7103
7638
  * @file The one place box-style content becomes CSS classes.
@@ -10716,7 +11251,7 @@ function splitLayoutWith(children) {
10716
11251
  children
10717
11252
  }
10718
11253
  }),
10719
- renderBackgroundImage: false,
11254
+ renderBackgroundImage: heroPhotoPaintsGround("split"),
10720
11255
  baseClass: ""
10721
11256
  });
10722
11257
  }
@@ -10732,7 +11267,7 @@ const lookPhoto = el("figure", lookSlot("media"), [media({
10732
11267
  const lookCopy = el("div", lookSlot("copy"), heroContentNodes);
10733
11268
  const heroLookLayout = (children) => styledSection({
10734
11269
  baseClass: "",
10735
- renderBackgroundImage: false,
11270
+ renderBackgroundImage: heroPhotoPaintsGround("headline-row"),
10736
11271
  children: styledContainer({ children: el("div", lookSlot("frame"), children) })
10737
11272
  });
10738
11273
  const headlineRowLayout = heroLookLayout([
@@ -11756,8 +12291,24 @@ const blogListingBlockDefinition = {
11756
12291
  //#endregion
11757
12292
  //#region ../blocks/src/system/blocks/cta-full.ts
11758
12293
  const ctaComposition = composeFragments([{ fragment: ctaCopyFragment }, { fragment: ctaRowFragment }]);
12294
+ const figureLayout = styledSection({
12295
+ children: sectionContainer([el("div", lookSlot("layout"), [el("div", lookSlot("figure"), [text({
12296
+ as: "p",
12297
+ ...lookSlot("figure-value")
12298
+ }, when("content.figure"), bind("content.figure")), text({
12299
+ as: "p",
12300
+ ...lookSlot("figure-label")
12301
+ }, when("content.figureNote"), bind("content.figureNote"))], when("content.figure")), el("div", lookSlot("copy"), [...ctaComposition.layout])])], {
12302
+ gap: "md",
12303
+ className: "rb-relative"
12304
+ }),
12305
+ baseClass: ""
12306
+ });
11759
12307
  const ctaFullBlockDefinition = { manifest: createBlockManifest({
11760
- variantMeaning: { kind: "arrangement" },
12308
+ variantMeaning: {
12309
+ kind: "arrangement",
12310
+ lookOnlyKeys: ["figure"]
12311
+ },
11761
12312
  id: "block.cta-full",
11762
12313
  title: "Full-width CTA",
11763
12314
  category: "marketing",
@@ -11769,6 +12320,21 @@ const ctaFullBlockDefinition = { manifest: createBlockManifest({
11769
12320
  fragment: ctaRowFragment,
11770
12321
  fieldPriority: 2
11771
12322
  }],
12323
+ additionalFields: [parseFieldDefinition({
12324
+ id: "figure",
12325
+ type: "text",
12326
+ label: "Big figure",
12327
+ help: "A short number or price, like £12 or 6 weeks.",
12328
+ required: false,
12329
+ defaultValue: ""
12330
+ }), parseFieldDefinition({
12331
+ id: "figureNote",
12332
+ type: "text",
12333
+ label: "Under the figure",
12334
+ help: "A few words under it, like 'your first class'.",
12335
+ required: false,
12336
+ defaultValue: ""
12337
+ })],
11772
12338
  layout: styledSection({
11773
12339
  children: props(lookSlot("copy"))(sectionContainer(ctaComposition.layout, {
11774
12340
  gap: "md",
@@ -11776,6 +12342,7 @@ const ctaFullBlockDefinition = { manifest: createBlockManifest({
11776
12342
  })),
11777
12343
  baseClass: ""
11778
12344
  }),
12345
+ variants: { figure: figureLayout },
11779
12346
  description: "Centered call to action with optional background image.",
11780
12347
  tags: [
11781
12348
  "cta",
@@ -12573,6 +13140,21 @@ const splitHeadingColumnsLayout = styledSection({
12573
13140
  }),
12574
13141
  baseClass: ""
12575
13142
  });
13143
+ const openAnswer = el("div", lookSlot("item"), [text({
13144
+ as: "h3",
13145
+ ...lookSlot("item-title")
13146
+ }, bind("faqItem.question")), richText({ ...lookSlot("item-text") }, when("faqItem.answer"), bind("faqItem.answer"))], repeat("content.items", "faqItem", { indexName: "faqIndex" }));
13147
+ const openLayout = styledSection({
13148
+ children: styledContainer({
13149
+ baseClassName: "rb-relative rb-isolate",
13150
+ children: stack({
13151
+ gap: "lg",
13152
+ className: "rb-w-full",
13153
+ ...lookSlot("layout")
13154
+ }, [headingLayout, el("div", lookSlot("items"), [openAnswer])])
13155
+ }),
13156
+ baseClass: ""
13157
+ });
12576
13158
  const faqBlockDefinition = { manifest: createBlockManifest({
12577
13159
  id: "block.faq",
12578
13160
  title: "FAQ",
@@ -12596,9 +13178,13 @@ const faqBlockDefinition = { manifest: createBlockManifest({
12596
13178
  default: defaultLayout,
12597
13179
  "two-column": twoColumnLayout,
12598
13180
  "question-columns": questionColumnsLayout,
12599
- "split-heading-columns": splitHeadingColumnsLayout
13181
+ "split-heading-columns": splitHeadingColumnsLayout,
13182
+ open: openLayout
13183
+ },
13184
+ variantMeaning: {
13185
+ kind: "arrangement",
13186
+ lookOnlyKeys: ["open"]
12600
13187
  },
12601
- variantMeaning: { kind: "arrangement" },
12602
13188
  defaultVariant: "default",
12603
13189
  variantOptions: {
12604
13190
  default: {
@@ -13767,16 +14353,16 @@ const interpolateRichTextTokensOptionsSchema = z.object({ tokens: z.array(suppor
13767
14353
  const richTextTokenPattern = /\{\{\s*([a-zA-Z0-9_]+)\s*\}\}/g;
13768
14354
  function getSiteName(context) {
13769
14355
  const viewModel = context.viewModel;
13770
- if (!isRecord$11(viewModel)) return null;
14356
+ if (!isRecord$12(viewModel)) return null;
13771
14357
  const site = viewModel.site;
13772
- if (isRecord$11(site) && typeof site.title === "string") {
14358
+ if (isRecord$12(site) && typeof site.title === "string") {
13773
14359
  const title = site.title.trim();
13774
14360
  return title.length > 0 ? title : null;
13775
14361
  }
13776
14362
  const root = viewModel.$root;
13777
- if (isRecord$11(root)) {
14363
+ if (isRecord$12(root)) {
13778
14364
  const rootSite = root.site;
13779
- if (isRecord$11(rootSite) && typeof rootSite.title === "string") {
14365
+ if (isRecord$12(rootSite) && typeof rootSite.title === "string") {
13780
14366
  const title = rootSite.title.trim();
13781
14367
  if (title.length > 0) return title;
13782
14368
  }
@@ -13798,7 +14384,7 @@ function replaceTokenText(input, allowedTokens, tokenValues) {
13798
14384
  });
13799
14385
  }
13800
14386
  function visitRichTextNode(node, allowedTokens, tokenValues) {
13801
- if (!isRecord$11(node)) return node;
14387
+ if (!isRecord$12(node)) return node;
13802
14388
  let changed = false;
13803
14389
  const nextNode = { ...node };
13804
14390
  if (nextNode.type === "text" && typeof nextNode.text === "string") {
@@ -13819,7 +14405,7 @@ function visitRichTextNode(node, allowedTokens, tokenValues) {
13819
14405
  return changed ? nextNode : node;
13820
14406
  }
13821
14407
  function interpolateRichTextTokens(value, options, context) {
13822
- if (!isRecord$11(value)) return value;
14408
+ if (!isRecord$12(value)) return value;
13823
14409
  return visitRichTextNode(value, new Set(options.tokens), {
13824
14410
  year: () => formatDate$2({
13825
14411
  kind: "instant",
@@ -19981,177 +20567,207 @@ function buildEventRegistrationInteractiveIslandProps(props) {
19981
20567
  source: props
19982
20568
  });
19983
20569
  }
19984
- const eventRegistrationBlockDefinition = {
19985
- manifest: createBlockManifest({
19986
- variantMeaning: { kind: "arrangement" },
19987
- id: "block.event-registration",
19988
- version: "1.0.0",
19989
- title: "Event Registration",
19990
- titleSource: "heading",
19991
- description: "Multi-step event registration form",
19992
- category: "interactive",
19993
- contentSource: { kind: "inline" },
19994
- tags: [
19995
- "events",
19996
- "registration",
19997
- "booking",
19998
- "form",
19999
- "signup"
20000
- ],
20001
- icon: "ClipboardList",
20002
- styleTokens: {
20003
- background: "surface",
20004
- typography: "body",
20005
- spacing: "md"
20570
+ //#endregion
20571
+ //#region ../blocks/src/system/blocks/event-registration.ts
20572
+ /**
20573
+ * Event Registration Block
20574
+ *
20575
+ * Multi-step registration form for events. Can be placed on event content type
20576
+ * templates or standalone pages.
20577
+ *
20578
+ * Features:
20579
+ * - Occurrence selection (if not pre-selected via URL)
20580
+ * - Ticket quantity selection
20581
+ * - Attendee information form
20582
+ * - Confirmation display
20583
+ *
20584
+ * Context:
20585
+ * - When placed on an event template with occurrence URL (/events/yoga/2025-01-15),
20586
+ * the occurrence is pre-selected from route context
20587
+ * - When on event template without occurrence, shows occurrence picker
20588
+ * - When standalone, shows full event + occurrence picker
20589
+ */
20590
+ const eventRegistrationManifest = createBlockManifest({
20591
+ variantMeaning: { kind: "arrangement" },
20592
+ id: "block.event-registration",
20593
+ version: "1.0.0",
20594
+ title: "Event Registration",
20595
+ titleSource: "heading",
20596
+ description: "Multi-step event registration form",
20597
+ category: "interactive",
20598
+ contentSource: { kind: "inline" },
20599
+ tags: [
20600
+ "events",
20601
+ "registration",
20602
+ "booking",
20603
+ "form",
20604
+ "signup"
20605
+ ],
20606
+ icon: "ClipboardList",
20607
+ styleTokens: {
20608
+ background: "surface",
20609
+ typography: "body",
20610
+ spacing: "md"
20611
+ },
20612
+ behaviours: {
20613
+ supportsThemeSwitching: true,
20614
+ inlineEditing: false,
20615
+ animation: false,
20616
+ paletteHidden: false
20617
+ },
20618
+ additionalFields: [
20619
+ {
20620
+ id: "heading",
20621
+ type: "text",
20622
+ label: "Heading",
20623
+ description: "Main heading for the registration form",
20624
+ required: false,
20625
+ multiline: false,
20626
+ defaultValue: ""
20006
20627
  },
20007
- behaviours: {
20008
- supportsThemeSwitching: true,
20009
- inlineEditing: false,
20010
- animation: false,
20011
- paletteHidden: false
20628
+ {
20629
+ id: "description",
20630
+ type: "richText",
20631
+ label: "Description",
20632
+ description: "Optional introductory text",
20633
+ required: false
20012
20634
  },
20013
- additionalFields: [
20014
- {
20015
- id: "heading",
20016
- type: "text",
20017
- label: "Heading",
20018
- description: "Main heading for the registration form",
20019
- required: false,
20020
- multiline: false,
20021
- defaultValue: ""
20022
- },
20023
- {
20024
- id: "description",
20025
- type: "richText",
20026
- label: "Description",
20027
- description: "Optional introductory text",
20028
- required: false
20029
- },
20030
- {
20031
- id: "maxTickets",
20032
- type: "select",
20033
- label: "Max tickets per registration",
20034
- description: "Maximum tickets a person can register for",
20035
- required: false,
20036
- multiple: false,
20037
- defaultValue: "5",
20038
- options: [
20039
- {
20040
- value: "1",
20041
- label: "1 ticket"
20042
- },
20043
- {
20044
- value: "2",
20045
- label: "2 tickets"
20046
- },
20047
- {
20048
- value: "3",
20049
- label: "3 tickets"
20050
- },
20051
- {
20052
- value: "5",
20053
- label: "5 tickets"
20054
- },
20055
- {
20056
- value: "10",
20057
- label: "10 tickets"
20058
- }
20059
- ],
20060
- ui: { intent: "display" }
20061
- },
20062
- {
20063
- id: "showVenue",
20064
- type: "boolean",
20065
- label: "Show venue",
20066
- description: "Display venue information",
20067
- required: false,
20068
- defaultValue: true,
20069
- ui: { intent: "display" }
20070
- },
20071
- {
20072
- id: "showCapacity",
20073
- type: "boolean",
20074
- label: "Show available places",
20075
- description: "Display remaining capacity",
20076
- required: false,
20077
- defaultValue: true,
20078
- ui: { intent: "display" }
20079
- },
20080
- {
20081
- id: "successMessage",
20082
- type: "text",
20083
- label: "Success message",
20084
- description: "Message shown after successful registration",
20085
- required: false,
20086
- multiline: true,
20087
- maxLength: 500,
20088
- ui: { placeholder: "Thank you for registering! Check your email for confirmation details." }
20089
- },
20090
- {
20091
- id: "buttonText",
20092
- type: "text",
20093
- label: "Button text",
20094
- description: "Text on the booking button",
20095
- required: false,
20096
- multiline: false,
20097
- defaultValue: "Book your place",
20098
- maxLength: 40
20099
- },
20100
- createButtonVariantField()
20101
- ],
20102
- layout: [styledSection({
20103
- baseClass: "",
20104
- spacing: "spacious",
20105
- children: sectionContainer([
20106
- text({ as: "h2" }, bind("content.heading"), when("content.heading")),
20107
- richText({ className: "rb-prose rb-max-w-none" }, bind("content.description"), when("content.description")),
20108
- eventRegistration(withApiBindings({
20109
- demoEmailSuppressed: { $bind: {
20110
- from: "$root.demoEmailSuppressed",
20111
- fallback: false
20112
- } },
20113
- readAuthority: { $bind: { from: "$root.readAuthority" } },
20114
- occurrenceContext: { $bind: { from: "$root.occurrenceContext" } },
20115
- subject: { $bind: { from: "$root.subject" } },
20116
- portalToken: { $bind: {
20117
- from: "$root.portalToken",
20118
- fallback: null
20119
- } },
20120
- maxTickets: { $bind: {
20121
- from: "content.maxTickets",
20122
- fallback: "5"
20123
- } },
20124
- showVenue: { $bind: { from: "content.showVenue" } },
20125
- showCapacity: { $bind: { from: "content.showCapacity" } },
20126
- successMessage: { $bind: { from: "content.successMessage" } },
20127
- buttonText: { $bind: {
20128
- from: "content.buttonText",
20129
- fallback: "Book your place"
20130
- } },
20131
- buttonVariant: { $bind: {
20132
- from: "content.buttonVariant",
20133
- fallback: "primary"
20134
- } },
20135
- events: { $bind: { from: "data.events" } },
20136
- wholeSeriesRunEvents: { $bind: { from: "data.wholeSeriesRunEvents" } },
20137
- loaderFailures: { $bind: { from: "$root.loaderFailures" } },
20138
- mailingList: { $bind: { from: "$root.mailingList" } },
20139
- siteTerms: { $bind: { from: "$root.siteTerms" } },
20140
- siteName: { $bind: { from: "$root.siteName" } },
20141
- bookingOfferingPresets: { $bind: {
20142
- from: "$root.bookingOfferingPresets",
20143
- fallback: []
20144
- } },
20145
- sitePasses: { $bind: { from: "data.sitePasses" } },
20146
- siteMemberships: { $bind: { from: "data.siteMemberships" } },
20147
- stage: { $bind: {
20148
- from: "$root.previewStage",
20149
- fallback: "published"
20150
- } }
20151
- }))
20152
- ], { gap: "lg" })
20153
- })]
20154
- }),
20635
+ {
20636
+ id: "maxTickets",
20637
+ type: "select",
20638
+ label: "Max tickets per registration",
20639
+ description: "Maximum tickets a person can register for",
20640
+ required: false,
20641
+ multiple: false,
20642
+ defaultValue: "5",
20643
+ options: [
20644
+ {
20645
+ value: "1",
20646
+ label: "1 ticket"
20647
+ },
20648
+ {
20649
+ value: "2",
20650
+ label: "2 tickets"
20651
+ },
20652
+ {
20653
+ value: "3",
20654
+ label: "3 tickets"
20655
+ },
20656
+ {
20657
+ value: "5",
20658
+ label: "5 tickets"
20659
+ },
20660
+ {
20661
+ value: "10",
20662
+ label: "10 tickets"
20663
+ }
20664
+ ],
20665
+ ui: { intent: "display" }
20666
+ },
20667
+ {
20668
+ id: "showVenue",
20669
+ type: "boolean",
20670
+ label: "Show venue",
20671
+ description: "Display venue information",
20672
+ required: false,
20673
+ defaultValue: true,
20674
+ ui: { intent: "display" }
20675
+ },
20676
+ {
20677
+ id: "showCapacity",
20678
+ type: "boolean",
20679
+ label: "Show available places",
20680
+ description: "Display remaining capacity",
20681
+ required: false,
20682
+ defaultValue: true,
20683
+ ui: { intent: "display" }
20684
+ },
20685
+ {
20686
+ id: "successMessage",
20687
+ type: "text",
20688
+ label: "Success message",
20689
+ description: "Message shown after successful registration",
20690
+ required: false,
20691
+ multiline: true,
20692
+ maxLength: 500,
20693
+ ui: { placeholder: "Thank you for registering! Check your email for confirmation details." }
20694
+ },
20695
+ {
20696
+ id: "buttonText",
20697
+ type: "text",
20698
+ label: "Button text",
20699
+ description: "Text on the booking button",
20700
+ required: false,
20701
+ multiline: false,
20702
+ defaultValue: "Book your place",
20703
+ maxLength: 40
20704
+ },
20705
+ createButtonVariantField()
20706
+ ],
20707
+ layout: [styledSection({
20708
+ baseClass: "",
20709
+ spacing: "spacious",
20710
+ children: sectionContainer([
20711
+ text({ as: "h2" }, bind("content.heading"), when("content.heading")),
20712
+ richText({ className: "rb-prose rb-max-w-none" }, bind("content.description"), when("content.description")),
20713
+ eventRegistration(withApiBindings({
20714
+ demoEmailSuppressed: { $bind: {
20715
+ from: "$root.demoEmailSuppressed",
20716
+ fallback: false
20717
+ } },
20718
+ readAuthority: { $bind: { from: "$root.readAuthority" } },
20719
+ occurrenceContext: { $bind: { from: "$root.occurrenceContext" } },
20720
+ subject: { $bind: { from: "$root.subject" } },
20721
+ portalToken: { $bind: {
20722
+ from: "$root.portalToken",
20723
+ fallback: null
20724
+ } },
20725
+ maxTickets: { $bind: {
20726
+ from: "content.maxTickets",
20727
+ fallback: "5"
20728
+ } },
20729
+ showVenue: { $bind: { from: "content.showVenue" } },
20730
+ showCapacity: { $bind: { from: "content.showCapacity" } },
20731
+ successMessage: { $bind: { from: "content.successMessage" } },
20732
+ buttonText: { $bind: {
20733
+ from: "content.buttonText",
20734
+ fallback: "Book your place"
20735
+ } },
20736
+ buttonVariant: { $bind: {
20737
+ from: "content.buttonVariant",
20738
+ fallback: "primary"
20739
+ } },
20740
+ events: { $bind: { from: "data.events" } },
20741
+ wholeSeriesRunEvents: { $bind: { from: "data.wholeSeriesRunEvents" } },
20742
+ loaderFailures: { $bind: { from: "$root.loaderFailures" } },
20743
+ mailingList: { $bind: { from: "$root.mailingList" } },
20744
+ siteTerms: { $bind: { from: "$root.siteTerms" } },
20745
+ siteName: { $bind: { from: "$root.siteName" } },
20746
+ bookingOfferingPresets: { $bind: {
20747
+ from: "$root.bookingOfferingPresets",
20748
+ fallback: []
20749
+ } },
20750
+ sitePasses: { $bind: { from: "data.sitePasses" } },
20751
+ siteMemberships: { $bind: { from: "data.siteMemberships" } },
20752
+ stage: { $bind: {
20753
+ from: "$root.previewStage",
20754
+ fallback: "published"
20755
+ } }
20756
+ }))
20757
+ ], { gap: "lg" })
20758
+ })]
20759
+ });
20760
+ const registrationEventScopeParams = {
20761
+ detailAdmission: { $bind: { from: "$root.subject.detailAdmission" } },
20762
+ seriesId: { $bind: { from: "$root.subject.eventSeriesId" } },
20763
+ seriesIds: { $bind: {
20764
+ from: "$root.subject.catalogueEventSeriesIds",
20765
+ transforms: [{ id: "value.csv" }]
20766
+ } },
20767
+ runSeriesId: { $bind: { from: "$root.entrySubrouteContext.run.seriesId" } }
20768
+ };
20769
+ const eventRegistrationBlockDefinition = {
20770
+ manifest: eventRegistrationManifest,
20155
20771
  runtime: eventRegistrationBlockRuntime,
20156
20772
  dataSchemas: {
20157
20773
  events: publicEventsArraySchema.optional(),
@@ -20176,12 +20792,7 @@ const eventRegistrationBlockDefinition = {
20176
20792
  fallback: "published"
20177
20793
  } },
20178
20794
  readProfile: "registration",
20179
- seriesId: { $bind: { from: "$root.subject.eventSeriesId" } },
20180
- seriesIds: { $bind: {
20181
- from: "$root.subject.catalogueEventSeriesIds",
20182
- transforms: [{ id: "value.csv" }]
20183
- } },
20184
- runSeriesId: { $bind: { from: "$root.entrySubrouteContext.run.seriesId" } },
20795
+ ...registrationEventScopeParams,
20185
20796
  includeOccurrenceId: { $bind: { from: "$root.occurrenceContext.id" } }
20186
20797
  },
20187
20798
  mode: "server"
@@ -20208,12 +20819,7 @@ const eventRegistrationBlockDefinition = {
20208
20819
  fallback: "published"
20209
20820
  } },
20210
20821
  readProfile: "registration",
20211
- seriesId: { $bind: { from: "$root.subject.eventSeriesId" } },
20212
- seriesIds: { $bind: {
20213
- from: "$root.subject.catalogueEventSeriesIds",
20214
- transforms: [{ id: "value.csv" }]
20215
- } },
20216
- runSeriesId: { $bind: { from: "$root.entrySubrouteContext.run.seriesId" } }
20822
+ ...registrationEventScopeParams
20217
20823
  },
20218
20824
  mode: "server"
20219
20825
  },
@@ -20467,6 +21073,7 @@ const eventDetailsBlockDefinition = {
20467
21073
  } },
20468
21074
  limit: "100",
20469
21075
  readProfile: "details",
21076
+ detailAdmission: { $bind: { from: "$root.subject.detailAdmission" } },
20470
21077
  seriesId: { $bind: { from: "$root.subject.eventSeriesId" } },
20471
21078
  seriesIds: { $bind: {
20472
21079
  from: "$root.subject.catalogueEventSeriesIds",
@@ -30015,6 +30622,7 @@ function describeUnresolvedLocationMapLocation(resolvedLocation) {
30015
30622
  }
30016
30623
  }
30017
30624
  function normalizeLocationMapProps(input) {
30625
+ const parsedHours = parseWeeklyOpeningHours(input.openingHours);
30018
30626
  const resolvedLocation = resolveLocationMapLocation(input);
30019
30627
  const locationValue = resolvedLocation.kind === "unresolved" ? null : resolvedLocation.locationValue;
30020
30628
  const directionsLabel = normalizeLocationAddressText(input.directionsLabel) ?? LOCATION_MAP_DEFAULTS.directionsLabel;
@@ -30026,6 +30634,8 @@ function normalizeLocationMapProps(input) {
30026
30634
  location: toLocationCoordinates(locationValue),
30027
30635
  zoom: Math.min(LOCATION_MAP_LIMITS.zoom.max, Math.max(LOCATION_MAP_LIMITS.zoom.min, Math.round(normalizeNumber(input.zoom, LOCATION_MAP_DEFAULTS.zoom)))),
30028
30636
  heightPx: Math.min(LOCATION_MAP_LIMITS.heightPx.max, Math.max(LOCATION_MAP_LIMITS.heightPx.min, Math.round(normalizeNumber(input.heightPx, LOCATION_MAP_DEFAULTS.heightPx)))),
30637
+ openingHours: parsedHours.ok ? parsedHours.value : null,
30638
+ showOpeningHours: normalizeBoolean(input.showOpeningHours, true),
30029
30639
  showAddressText: normalizeBoolean(input.showAddressText, LOCATION_MAP_DEFAULTS.showAddressText),
30030
30640
  showDirections: normalizeBoolean(input.showDirections, LOCATION_MAP_DEFAULTS.showDirections),
30031
30641
  directionsLabel,
@@ -30038,6 +30648,8 @@ function toLocationMapHydrationProps(input) {
30038
30648
  location: normalized.locationValue,
30039
30649
  zoom: normalized.zoom,
30040
30650
  heightPx: normalized.heightPx,
30651
+ openingHours: normalized.openingHours,
30652
+ showOpeningHours: normalized.showOpeningHours,
30041
30653
  showAddressText: normalized.showAddressText,
30042
30654
  showDirections: normalized.showDirections,
30043
30655
  directionsLabel: normalized.directionsLabel,
@@ -30072,6 +30684,7 @@ function normalizeLocationMapContent(content) {
30072
30684
  heading: typeof record.heading === "string" ? record.heading : void 0,
30073
30685
  locationSource,
30074
30686
  ...authoredLocationMapSourceFields(locationSource, venueId, normalized.locationValue),
30687
+ showOpeningHours: record.showOpeningHours !== false,
30075
30688
  showAddressText: normalized.showAddressText,
30076
30689
  showDirections: normalized.showDirections,
30077
30690
  directionsLabel: normalized.directionsLabel,
@@ -30206,6 +30819,13 @@ const locationMapBlockDefinition = {
30206
30819
  }
30207
30820
  ] }
30208
30821
  }),
30822
+ parseFieldDefinition({
30823
+ id: "showOpeningHours",
30824
+ type: "boolean",
30825
+ label: "Show opening hours",
30826
+ defaultValue: true,
30827
+ ui: { intent: "display" }
30828
+ }),
30209
30829
  parseFieldDefinition({
30210
30830
  id: "showAddressText",
30211
30831
  type: "boolean",
@@ -30267,6 +30887,14 @@ const locationMapBlockDefinition = {
30267
30887
  baseClass: "",
30268
30888
  spacing: "comfortable",
30269
30889
  children: sectionContainer([text({ as: "h2" }, bind("content.heading"), when("content.heading")), el("location-map", {
30890
+ openingHours: { $bind: {
30891
+ from: "$root.openingHours",
30892
+ fallback: null
30893
+ } },
30894
+ showOpeningHours: { $bind: {
30895
+ from: "content.showOpeningHours",
30896
+ fallback: true
30897
+ } },
30270
30898
  location: { $bind: {
30271
30899
  from: "content.location",
30272
30900
  fallback: null
@@ -30317,6 +30945,7 @@ const locationMapBlockDefinition = {
30317
30945
  "venueId",
30318
30946
  "location",
30319
30947
  "showAddressText",
30948
+ "showOpeningHours",
30320
30949
  "showDirections",
30321
30950
  "directionsLabel",
30322
30951
  "zoom",
@@ -31110,4 +31739,4 @@ function ensureSystemBlockDefinitionsRegistered() {
31110
31739
  for (const definition of systemBlockDefinitions) registerBlockDefinition(definition);
31111
31740
  }
31112
31741
  //#endregion
31113
- export { resolveImageSourceSetWithContext as $, parseBookingLocalDate as $i, resolvedItemSurfaceProps as $n, CircleMinusIcon as $r, groupEventsByDate as $t, buildEventCalendarInteractiveIslandProps as A, composeBoundary as Ai, composeHeaderSectionWrapperClassName as An, parseRuntimeBackgroundContent as Ar, resolveOfferingsRenderInput as At, calendarWindowQuerySchema as B, nextLiveRunSessionStartMs as Bi, uiTransforms as Bn, lookSkinSlotTransform as Br, formatEventPriceDisplay as Bt, membershipClassesLabel as C, augmentManifest as Ci, bookingConsentCarrierSchema as Cn, boxStyleClassNames as Cr, OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS as Ct, buildOfferingsCatalogueListing as D, resolveModeArrangement as Di, shouldReserveFeatureCardIconZone as Dn, resolveBackgroundColorValue as Dr, resolveOfferingsPreviewGroupCta as Dt, publicRouteCandidatesSchema as E, resolveEffectiveArrangement as Ei, resolveFeatureCardGeneratedIconSizePx as En, resolveSurfaceForegroundStyles as Er, offeringsListingFor as Et, buildEventCollectionHydration as F, isRecord$5 as Fi, headerRuntimeTransforms as Fn, BACKGROUND_POSITION_PRESET_VALUES as Fr, getIconComponent as Ft, CardListLeadDate as G, parseMailingListProviderScope as Gi, createInteractiveIslandCodec as Gn, listBlockDescriptors as Gr, formatCalendarTitle as Gt, catalogueEventCardProps as H, resolveWholeSeriesBookingPhase as Hi, formBlockDefinition as Hn, createTransformRegistry as Hr, eventCalendarWeekStart as Ht, buildEventCollectionListingDisplay as I, formatDate$1 as Ii, chromeLogoTransforms as In, getAnchorClasses as Ir, SpinnerNode as It, MediaNodeServer as J, formatDate$2 as Ji, defineClientOwnedBlockRuntime as Jn, buildGeneratedBlockIconRenderAssetLookupFromUnknown as Jr, formatEventDateParts as Jt, resolveCardListSchedule as K, parseMailingListPlacementTargeting as Ki, defineInteractiveIslandMetaKeys as Kn, normalizeBlockContent as Kr, formatDate as Kt, eventCollectionDisplaySchemaShape as L, readRuntimeNow as Li, layoutTransforms as Ln, lookCarouselRegionTransform as Lr, buildEventListWeek as Lt, eventListingBlockDefinition as M, deriveSectionGround as Mi, splitPositioningClasses as Mn, el as Mr, ThemedButton as Mt, buildEventListingInteractiveIslandProps as N, parseCanonicalRuntimeBackground as Ni, contentTransforms as Nn, when as Nr, ThemedButtonLink as Nt, projectRecurringSchedule as O, resolvePublishedLook as Oi, siteFooterManifest as On, parseBackgroundContent as Or, resolveOfferingsPreviewGroups as Ot, buildEventCollectionDisplay as P, resolveSectionBackground as Pi, mediaTransforms as Pn, standardImageShapeOptions as Pr, ThemedDownloadLink as Pt, computeMediaTransformStyle as Q, getLocalScheduleDate as Qi, listLookSlot as Qn, ChevronDownIcon as Qr, formatTime as Qt, eventCollectionHydrationSchema as R, resolveDateRuntimeContext as Ri, staticHeaderChromeRuntime as Rn, lookLeadSlotTransform as Rr, formatEventPrice as Rt, membershipCardListContent as S, linkSchema as Si, blockBookingConsentSchema as Sn, boxStylesTransforms as Sr, OFFERINGS_PREVIEW_DEFAULT_FAILED_MESSAGE as St, offeringsPreviewBlockDefinition as T, readStoredMode as Ti, FEATURE_CARD_ICON_TREATMENTS as Tn, resolveCardRoleForBoxStyles as Tr, normalizeOfferingsPreviewItemLimit as Tt, listingEventCardProps as U, buildMailingListSignupBlockSourceRef as Ui, buildFormInteractiveIslandProps as Un, runTransforms as Ur, eventDateOptions as Ut, resolveCalendarReadProfile as V, orderedLiveRunSessions as Vi, formattingTransforms as Vn, asPartialObject as Vr, buildCalendarViewport as Vt, CardListContentPart as W, parseMailingListRuntimeContext as Wi, buildInteractiveIslandProps as Wn, getBlockDefinition as Wr, eventLocalDateKey as Wt, ImagePresets as X, formatDateTimeRange as Xi, listItemPresentation as Xn, resolveBlockIconRenderValue as Xr, formatEventNextDateFact as Xt, RichText as Y, formatDateRange as Yi, defineProgressiveBlockRuntime as Yn, parseBlockIconValue as Yr, formatEventHourLabel as Yt, MediaPlaceholder as Z, getBookingLocalDateKey as Zi, listLookControl as Zn, ArrowDownIcon as Zr, formatEventTimeRange as Zt, buildCheckoutInteractiveIslandProps as _, parseFieldDefinitions as _i, getEventAvailabilityStatus as _n, ctaRowFragment as _r, resolveEventCalendarReadPlan as _t, sanitizeNewsletterSignupPublicContent as a, isPublicEventPricingOptionDisplayable as aa, FileTextIcon as ai, getDayOfWeek as an, headingFragment as ar, setContextResolveImageUrlContext as at, buildShopInteractiveIslandProps as b, bindingSchema as bi, groupPublicEventsByRun as bn, bodyCopyFragment as br, OFFERINGS_PREVIEW_DEFAULT_BUTTON_TEXT as bt, newsletterBlockSubmissionMessage as c, publicEventPricingType as ca, inlineTextToPlainText as ci, getWeekCalendarDays as cn, faqHeadingFragment as cr, getContainerClass as ct, checkoutBlockDefinition as d, formatCurrencyAmount as da, plainTextToInlineText as di, resolveRuntimeEventDestination as dn, formEmbedFragment as dr, buildEventRegistrationInteractiveIslandProps as dt, resolveBookingBusinessTimeZone as ea, CirclePlusIcon as ei, resolveEventTimeZone as en, itemRole as er, resolveImageUrl as et, cartBlockDefinition as f, parseCurrencyCode as fa, DEFAULT_MEDIA_FIELD_KINDS as fi, browserReadAuthoritySchema as fn, formCopyFragment as fr, bookingNowSchema as ft, buildCartInteractiveIslandProps as g, normalizeSelectSource as gi, getEventAvailability as gn, heroCtaRowFragment as gr, eventCalendarListLayoutOptions as gt, shopBlockDefinition as h, fieldSchema as hi, formatTotalCapacity as hn, ctaCopyFragment as hr, eventCalendarListLayoutCompatibleDisplayModeValues as ht, newsletterSignupBlockDefinition as i, formatBookingPriceDisplay as ia, FileSpreadsheetIcon as ii, formatDateKey as in, richTextFragment as ir, getCurrentResolveImageUrlContext as it, buildEventCalendarListingDisplay as j, sectionFactsForContent as ji, markEditableSurfaceForwarding as jn, ctaButton as jr, ThemedAuthoredButton as jt, eventCalendarBlockDefinition as k, boundaryLayout as ki, siteHeaderManifest as kn, parseBackgroundOverlay as kr, resolveOfferingsPreviewRunPath as kt, giftingBlockDefinition as l, resolveExactOrFreePriceDisplay as la, isInlineTextEmpty as li, isSameCalendarDay as ln, blogFeaturedPostFragment as lr, resolveEventSelection as lt, productListBlockDefinition as m, blockCategoryEnum as mi, formatEventRemainingPlaces as mn, testimonialsHeadingFragment as mr, eventCalendarListGroupingDecision as mt, normalizeLocationMapProps as n, toScheduledBookingDateTime as na, FileArchiveIcon as ni, getLocalMinuteOfDay as nn, Grid as nr, resolvePublicMediaUrl as nt, NEWSLETTER_SIGNUPS_PAUSED_MESSAGE as o, publicEventPricingCurrency as oa, MinusIcon as oi, getOrderedDayNames as on, cardFragment as or, sanitizeHref as ot, productDetailBlockDefinition as p, PUBLIC_FILE_FIELD_KINDS as pi, canJoinEventWaitlistOnAnyMode as pn, testimonialsCarouselFragment as pr, previewStageSchema as pt, selectCardListPresentation as q, sameMailingListPlacementTargeting as qi, createZodCodec as qn, PUBLIC_DOWNLOAD_MEDIA_TYPES as qr, formatEventCompactDateRail as qt, toLocationMapHydrationProps as r, toUtcIsoDateTimeString as ra, FileAudioIcon as ri, addDays as rn, clsx as rr, buildResolveImageUrlContext as rt, buildNewsletterFormInteractiveIslandProps as s, publicEventPricingDisplay as sa, PlusIcon as si, getWeekCalendarDayTuple as sn, faqAccordionFragment as sr, getCardOrientation as st, buildGoogleMapsDirectionsUrl as t, toBookingTimeZone as ta, ClockIcon as ti, getLocalDateKey as tn, standardAspectRatioOptions as tr, resolveImageUrlWithContext as tt, buildGiftingInteractiveIslandProps as u, resolvePricingOptionsPriceDisplay as ua, parseInlineTextFromUnknown as ui, isToday as un, singleButtonFragment as ur, eventRegistrationBlockDefinition as ut, buildProductDetailInteractiveIslandProps as v, previewCustomizeManifestCurationSchema as vi, isEventFull as vn, isBlockButtonRole as vr, normalizeEventRegistrationPageSurfaceSubject as vt, passCardListContent as w, arrangementManifestFromVariants as wi, blockBookingPaymentTermsSchema as wn, normalizeBoxStylesBorder as wr, buildOfferingsPreviewListing as wt, shopProductPresentation as x, RESOLVED_INTERNAL_LINK_ENTITY_TYPES as xi, publicEventsArraySchema as xn, defineFragment as xr, OFFERINGS_PREVIEW_DEFAULT_EMPTY_MESSAGE as xt, buildProductListInteractiveIslandProps as y, NodeSchema as yi, blockSiteTermsSchema as yn, heroCopyFragment as yr, resolveEventRegistrationScopedEvents as yt, eventCollectionSourceSchemaShape as z, CANCELLED_SESSION_STATUS as zi, resolveHeroTitleLength as zn, lookQuoteLimitTransform as zr, formatEventPriceAmount as zt };
31742
+ export { resolveImageSourceSetWithContext as $, buildMailingListSignupBlockSourceRef as $i, resolvedItemSurfaceProps as $n, CirclePlusIcon as $r, groupEventsByDate as $t, buildEventCalendarInteractiveIslandProps as A, resolveRepeaterGridRowFieldId as Ai, composeHeaderSectionWrapperClassName as An, resolveBackgroundColorValue as Ar, resolveOfferingsRenderInput as At, calendarWindowQuerySchema as B, sectionFactsForContent as Bi, uiTransforms as Bn, lookSkinSlotTransform as Br, formatEventPriceDisplay as Bt, membershipClassesLabel as C, resolvePricingOptionsPriceDisplay as Ca, PUBLIC_DOWNLOAD_MEDIA_TYPES as Ci, bookingConsentCarrierSchema as Cn, boxStyleClassNames as Cr, OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS as Ct, buildOfferingsCatalogueListing as D, projectRepeaterGridLayoutForRendering as Di, shouldReserveFeatureCardIconZone as Dn, parseBackgroundOverlay as Dr, resolveOfferingsPreviewGroupCta as Dt, publicRouteCandidatesSchema as E, projectRepeaterGridLayout as Ei, resolveFeatureCardGeneratedIconSizePx as En, parseBackgroundContent as Er, offeringsListingFor as Et, buildEventCollectionHydration as F, resolveEffectiveArrangement as Fi, headerRuntimeTransforms as Fn, BACKGROUND_POSITION_PRESET_VALUES as Fr, getIconComponent as Ft, CardListLeadDate as G, isRecord$5 as Gi, createInteractiveIslandCodec as Gn, listBlockDescriptors as Gr, formatCalendarTitle as Gt, catalogueEventCardProps as H, heroPhotoPaintsGround as Hi, formBlockDefinition as Hn, createTransformRegistry as Hr, eventCalendarWeekStart as Ht, buildEventCollectionListingDisplay as I, resolveModeArrangement as Ii, chromeLogoTransforms as In, getAnchorClasses as Ir, SpinnerNode as It, MediaNodeServer as J, resolveDateRuntimeContext as Ji, defineClientOwnedBlockRuntime as Jn, parseBlockIconValue as Jr, formatEventDateParts as Jt, resolveCardListSchedule as K, formatDate$1 as Ki, defineInteractiveIslandMetaKeys as Kn, normalizeBlockContent as Kr, formatDate as Kt, eventCollectionDisplaySchemaShape as L, resolvePublishedLook as Li, layoutTransforms as Ln, lookCarouselRegionTransform as Lr, buildEventListWeek as Lt, eventListingBlockDefinition as M, augmentManifest as Mi, splitPositioningClasses as Mn, el as Mr, ThemedButton as Mt, buildEventListingInteractiveIslandProps as N, arrangementManifestFromVariants as Ni, contentTransforms as Nn, when as Nr, ThemedButtonLink as Nt, projectRecurringSchedule as O, resolveRepeaterGridColumnFieldId as Oi, siteFooterManifest as On, parseRuntimeBackgroundContent as Or, resolveOfferingsPreviewGroups as Ot, buildEventCollectionDisplay as P, readStoredMode as Pi, mediaTransforms as Pn, standardImageShapeOptions as Pr, ThemedDownloadLink as Pt, computeMediaTransformStyle as Q, resolveWholeSeriesBookingPhase as Qi, listLookSlot as Qn, CircleMinusIcon as Qr, formatTime as Qt, eventCollectionHydrationSchema as R, boundaryLayout as Ri, staticHeaderChromeRuntime as Rn, lookLeadSlotTransform as Rr, formatEventPrice as Rt, membershipCardListContent as S, resolveExactOrFreePriceDisplay as Sa, linkSchema as Si, blockBookingConsentSchema as Sn, boxStylesTransforms as Sr, OFFERINGS_PREVIEW_DEFAULT_FAILED_MESSAGE as St, offeringsPreviewBlockDefinition as T, parseCurrencyCode as Ta, parseRepeaterGridInteger as Ti, FEATURE_CARD_ICON_TREATMENTS as Tn, resolveCardRoleForBoxStyles as Tr, normalizeOfferingsPreviewItemLimit as Tt, listingEventCardProps as U, parseCanonicalRuntimeBackground as Ui, buildFormInteractiveIslandProps as Un, runTransforms as Ur, eventDateOptions as Ut, resolveCalendarReadProfile as V, deriveSectionGround as Vi, formattingTransforms as Vn, asPartialObject as Vr, buildCalendarViewport as Vt, CardListContentPart as W, resolveSectionBackground as Wi, buildInteractiveIslandProps as Wn, getBlockDefinition as Wr, eventLocalDateKey as Wt, ImagePresets as X, nextLiveRunSessionStartMs as Xi, listItemPresentation as Xn, ArrowDownIcon as Xr, formatEventNextDateFact as Xt, RichText as Y, CANCELLED_SESSION_STATUS as Yi, defineProgressiveBlockRuntime as Yn, resolveBlockIconRenderValue as Yr, formatEventHourLabel as Yt, MediaPlaceholder as Z, orderedLiveRunSessions as Zi, listLookControl as Zn, ChevronDownIcon as Zr, formatEventTimeRange as Zt, buildCheckoutInteractiveIslandProps as _, formatBookingPriceDisplay as _a, parseFieldDefinitions as _i, getEventAvailabilityStatus as _n, ctaRowFragment as _r, resolveEventCalendarReadPlan as _t, sanitizeNewsletterSignupPublicContent as a, formatDateRange as aa, MinusIcon as ai, getDayOfWeek as an, headingFragment as ar, setContextResolveImageUrlContext as at, buildShopInteractiveIslandProps as b, publicEventPricingDisplay as ba, bindingSchema as bi, groupPublicEventsByRun as bn, bodyCopyFragment as br, OFFERINGS_PREVIEW_DEFAULT_BUTTON_TEXT as bt, newsletterBlockSubmissionMessage as c, formatBookingCompactEnglishTime as ca, isInlineTextEmpty as ci, getWeekCalendarDays as cn, faqHeadingFragment as cr, getContainerClass as ct, checkoutBlockDefinition as d, parseBookingLocalDate as da, DEFAULT_MEDIA_FIELD_KINDS as di, resolveRuntimeEventDestination as dn, formEmbedFragment as dr, buildEventRegistrationInteractiveIslandProps as dt, parseMailingListRuntimeContext as ea, ClockIcon as ei, resolveEventTimeZone as en, itemRole as er, resolveImageUrl as et, cartBlockDefinition as f, parseLocalScheduleTime as fa, PUBLIC_FILE_FIELD_KINDS as fi, browserReadAuthoritySchema as fn, formCopyFragment as fr, bookingNowSchema as ft, buildCartInteractiveIslandProps as g, toUtcIsoDateTimeString as ga, parseFieldDefinition as gi, getEventAvailability as gn, heroCtaRowFragment as gr, eventCalendarListLayoutOptions as gt, shopBlockDefinition as h, toScheduledBookingDateTime as ha, normalizeSelectSource as hi, formatTotalCapacity as hn, ctaCopyFragment as hr, eventCalendarListLayoutCompatibleDisplayModeValues as ht, newsletterSignupBlockDefinition as i, formatDate$2 as ia, FileTextIcon as ii, formatDateKey as in, richTextFragment as ir, getCurrentResolveImageUrlContext as it, buildEventCalendarListingDisplay as j, resolveRepeaterGridSpanFieldId as ji, markEditableSurfaceForwarding as jn, ctaButton as jr, ThemedAuthoredButton as jt, eventCalendarBlockDefinition as k, resolveRepeaterGridColumnsForBreakpoint as ki, siteHeaderManifest as kn, resolveSurfaceForegroundStyles as kr, resolveOfferingsPreviewRunPath as kt, giftingBlockDefinition as l, getBookingLocalDateKey as la, parseInlineTextFromUnknown as li, isSameCalendarDay as ln, blogFeaturedPostFragment as lr, resolveEventSelection as lt, productListBlockDefinition as m, toBookingTimeZone as ma, fieldSchema as mi, formatEventRemainingPlaces as mn, testimonialsHeadingFragment as mr, eventCalendarListGroupingDecision as mt, normalizeLocationMapProps as n, parseMailingListPlacementTargeting as na, FileAudioIcon as ni, getLocalMinuteOfDay as nn, Grid as nr, resolvePublicMediaUrl as nt, NEWSLETTER_SIGNUPS_PAUSED_MESSAGE as o, formatDateTimeRange as oa, PlusIcon as oi, getOrderedDayNames as on, cardFragment as or, sanitizeHref as ot, productDetailBlockDefinition as p, resolveBookingBusinessTimeZone as pa, blockCategoryEnum as pi, canJoinEventWaitlistOnAnyMode as pn, testimonialsCarouselFragment as pr, previewStageSchema as pt, selectCardListPresentation as q, readRuntimeNow as qi, createZodCodec as qn, buildGeneratedBlockIconRenderAssetLookupFromUnknown as qr, formatEventCompactDateRail as qt, toLocationMapHydrationProps as r, sameMailingListPlacementTargeting as ra, FileSpreadsheetIcon as ri, addDays as rn, clsx as rr, buildResolveImageUrlContext as rt, buildNewsletterFormInteractiveIslandProps as s, inferSiteDateLocale as sa, inlineTextToPlainText as si, getWeekCalendarDayTuple as sn, faqAccordionFragment as sr, getCardOrientation as st, buildGoogleMapsDirectionsUrl as t, parseMailingListProviderScope as ta, FileArchiveIcon as ti, getLocalDateKey as tn, standardAspectRatioOptions as tr, resolveImageUrlWithContext as tt, buildGiftingInteractiveIslandProps as u, getLocalScheduleDate as ua, plainTextToInlineText as ui, isToday as un, singleButtonFragment as ur, eventRegistrationBlockDefinition as ut, buildProductDetailInteractiveIslandProps as v, isPublicEventPricingOptionDisplayable as va, previewCustomizeManifestCurationSchema as vi, isEventFull as vn, isBlockButtonRole as vr, normalizeEventRegistrationPageSurfaceSubject as vt, passCardListContent as w, formatCurrencyAmount as wa, buildRepeaterGridLayout as wi, blockBookingPaymentTermsSchema as wn, normalizeBoxStylesBorder as wr, buildOfferingsPreviewListing as wt, shopProductPresentation as x, publicEventPricingType as xa, RESOLVED_INTERNAL_LINK_ENTITY_TYPES as xi, publicEventsArraySchema as xn, defineFragment as xr, OFFERINGS_PREVIEW_DEFAULT_EMPTY_MESSAGE as xt, buildProductListInteractiveIslandProps as y, publicEventPricingCurrency as ya, NodeSchema as yi, blockSiteTermsSchema as yn, heroCopyFragment as yr, resolveEventRegistrationScopedEvents as yt, eventCollectionSourceSchemaShape as z, composeBoundary as zi, resolveHeroTitleLength as zn, lookQuoteLimitTransform as zr, formatEventPriceAmount as zt };