@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
@@ -3,27 +3,27 @@ import { d as formatDateKey, h as getWeekCalendarDayTuple, m as getOrderedDayNam
3
3
  import { T as ok, w as err } from "./renderableMediaAssetAdmission-DGjBr_e-.mjs";
4
4
  import { Er as runtimeMediaSchema, Gt as cardVariantRoleValues, Qn as backgroundColorStyle, S as clsx, _ as FileAudioIcon, a as ThemedDownloadLink, b as MinusIcon, c as isSemanticIconId, d as ChevronDownIcon, f as CircleMinusIcon, ft as parseThemeButtonVariantId, g as FileArchiveIcon, i as ThemedButtonLink, jn as resolveThemeColorReferenceValue, l as SpinnerNode, n as ThemedAuthoredButton, nr as rgbColorValue, o as getIconComponent, p as CirclePlusIcon, r as ThemedButton, rr as textColorStyle, s as ICON_PICKER_PRESETS, st as ICON_CONFIG, tr as mergeStyles, u as ArrowDownIcon, v as FileSpreadsheetIcon, x as PlusIcon, y as FileTextIcon } from "./ThemedButton-DVBC_pS9.mjs";
5
5
  import { t as formatEventDuration } from "./duration-Q6_QNgiv.mjs";
6
- import { Ar as listLookSlot, Ci as nextLiveRunSessionStartMs, Cn as getEventAvailability, Cr as resolveEventRegistrationScopedEvents, En as isEventFull, Fi as formatBookingPriceDisplay, Hi as resolveExactOrFreePriceDisplay, Kr as compiledRuntimeStyleFieldNames, Or as listItemPresentation, Sr as normalizeEventRegistrationPageSurfaceSubject, Ti as resolveWholeSeriesBookingPhase, Ui as resolvePricingOptionsPriceDisplay, Ut as RichText, Wi as assertNever$1, _n as resolveRuntimeEventDestination, an as eventDateOptions, bi as parseAspectRatioValue, dn as formatEventHourLabel, en as resolvePublicMediaUrl, hn as groupEventsByDate, hr as isBlockButtonRole, jn as buildBookingFormInteractiveIslandProps, kn as groupPublicEventsByRun, ln as formatEventCompactDateRail, mn as formatTime, ni as arrangementSlotNames, nn as buildCalendarViewport, pn as formatEventTimeRange, pr as BLOCK_BUTTON_ROLE_OPTIONS, sn as formatCalendarTitle, tn as sanitizeHref, wi as orderedLiveRunSessions, wn as getEventAvailabilityStatus, yn as canJoinEventWaitlistOnAnyMode } from "./wizardSteps-B3tRF3_2.mjs";
7
- import { C as eventCalendarVariantMeaning, D as isEventCalendarListLayout, E as isEventCalendarDisplayMode, F as normalizeEventStaffMemberId, I as normalizeEventSurfacePresets, M as normalizeEventCategoryIds, O as normalizeEventCalendarDisplayMode$1, P as normalizeEventScheduleScope, R as normalizeEventSurfaceScope, T as isEventCalendarDefaultView, W as publicEventsArraySchema, X as RichTextDocSchema, p as calendarWindowPageSchema, tt as formatDate, wt as toUtcIsoDateTimeString, x as eventCalendarListLayoutOptions, yt as resolveBookingBusinessTimeZone, z as normalizeEventVenueId } from "./noop-D3wctocR.mjs";
6
+ import { Ar as listLookSlot, Cn as getEventAvailability, Cr as resolveEventRegistrationScopedEvents, Di as resolveWholeSeriesBookingPhase, Ei as orderedLiveRunSessions, En as isEventFull, Gi as resolvePricingOptionsPriceDisplay, Ki as assertNever$1, Kr as compiledRuntimeStyleFieldNames, Li as formatBookingPriceDisplay, Or as listItemPresentation, Si as parseAspectRatioValue, Sr as normalizeEventRegistrationPageSurfaceSubject, Ti as nextLiveRunSessionStartMs, Ut as RichText, Wi as resolveExactOrFreePriceDisplay, _n as resolveRuntimeEventDestination, an as eventDateOptions, dn as formatEventHourLabel, en as resolvePublicMediaUrl, hn as groupEventsByDate, hr as isBlockButtonRole, jn as buildBookingFormInteractiveIslandProps, kn as groupPublicEventsByRun, ln as formatEventCompactDateRail, mn as formatTime, ni as arrangementSlotNames, nn as buildCalendarViewport, pn as formatEventTimeRange, pr as BLOCK_BUTTON_ROLE_OPTIONS, sn as formatCalendarTitle, tn as sanitizeHref, wn as getEventAvailabilityStatus, yn as canJoinEventWaitlistOnAnyMode } from "./wizardSteps-HdyGoIG3.mjs";
7
+ import { C as eventCalendarVariantMeaning, Ct as toUtcIsoDateTimeString, D as isEventCalendarListLayout, E as isEventCalendarDisplayMode, F as normalizeEventStaffMemberId, I as normalizeEventSurfacePresets, M as normalizeEventCategoryIds, O as normalizeEventCalendarDisplayMode$1, P as normalizeEventScheduleScope, R as normalizeEventSurfaceScope, T as isEventCalendarDefaultView, W as publicEventsArraySchema, X as RichTextDocSchema, p as calendarWindowPageSchema, tt as formatDate, x as eventCalendarListLayoutOptions, yt as resolveBookingBusinessTimeZone, z as normalizeEventVenueId } from "./noop-DMFt3KdC.mjs";
8
8
  import { n as selectCategoryView } from "./appointment-service-categories-Cl2pqw-z.mjs";
9
- import { i as normalizeLocationMapProps, o as toLocationMapHydrationProps, t as LocationMapView } from "./location-map.view-Bkd9gu_S.mjs";
10
- import { B as giftingBlockRuntime, Ct as buildEventCalendarInteractiveIslandProps, Et as eventCalendarBlockRuntime, F as buildNewsletterFormInteractiveIslandProps, Gt as Grid, H as publicGiftingOffersResponseSchema, Ht as MediaNodeServer, I as newsletterBlockSubmissionMessage, It as catalogueEventCardProps, Kt as buildEventListWeek, L as newsletterFormBlockRuntime, Lt as listingEventCardProps, N as publicProductsResponseSchema, Ot as buildEventListingInteractiveIslandProps, P as NEWSLETTER_SIGNUPS_PAUSED_MESSAGE, U as buildFormInteractiveIslandProps, Ut as getCardOrientation, W as formBlockRuntime, Wt as getContainerClass, Y as eventRegistrationBlockRuntime, Yt as formatEventPriceDisplay, _ as shopProductPresentation, a as buildShopInteractiveIslandProps, an as publicPassProductCollectionSchema, bt as buildEventCombinedListingDisplay, c as checkoutBlockRuntime, ct as resolveOfferingsPreviewGroupCta, d as productDetailBlockRuntime, dt as resolveOfferingsRenderInput, en as staticHeaderChromeRuntime, h as shopBlockRuntime, i as buildProductListInteractiveIslandProps, in as publicMembershipProductCollectionSchema, kt as eventListingBlockRuntime, ln as DEFAULT_MAILING_LIST_TARGETING, lt as resolveOfferingsPreviewGroups, n as buildCheckoutInteractiveIslandProps, nt as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, o as cartBlockRuntime, ot as normalizeOfferingsPreviewItemLimit, p as productListBlockRuntime, q as buildEventRegistrationInteractiveIslandProps, qt as formatEventPrice, r as buildProductDetailInteractiveIslandProps, rn as splitSiteChromePlacementClasses, rt as buildOfferingsPreviewListing, st as offeringsListingFor, t as buildCartInteractiveIslandProps, ut as resolveOfferingsPreviewRunPath, vt as occurrenceContextSchema, wt as buildEventCalendarListingDisplay, xt as eventCombinedBlockRuntime, yt as buildEventCombinedInteractiveIslandProps, z as buildGiftingInteractiveIslandProps } from "./shop.interactive-acMnyBZU.mjs";
11
- import { n as resolveEventLinkProps, t as resolveEventCta } from "./cta-DrX2pzK9.mjs";
12
- import { a as buildMonthDay, i as CalendarDayHeaders, n as WeekAgendaView, o as resolveMonthSelectedDay, s as formatEventLocation } from "./CalendarNavigationChevron-CBKHlGjE.mjs";
13
- import { n as CardListItems, r as EventItem } from "./EventItem-C9QTFafI.mjs";
14
- import { S as asPartialObject, d as resolveCardRoleForBoxStyles, g as DEFAULT_SECTION_SPACING, i as EventCard, n as EmptyState, r as EventCompactRow, s as boxStyleClassNames, t as EventListingFrameView, u as normalizeBoxStylesBorder } from "./EventListing.view-Bish8-si.mjs";
9
+ import { i as normalizeLocationMapProps, o as toLocationMapHydrationProps, t as LocationMapView } from "./location-map.view-RuBCD10O.mjs";
10
+ import { B as giftingBlockRuntime, Ct as buildEventCalendarInteractiveIslandProps, Et as eventCalendarBlockRuntime, F as buildNewsletterFormInteractiveIslandProps, Gt as Grid, H as publicGiftingOffersResponseSchema, Ht as MediaNodeServer, I as newsletterBlockSubmissionMessage, It as catalogueEventCardProps, Kt as buildEventListWeek, L as newsletterFormBlockRuntime, Lt as listingEventCardProps, N as publicProductsResponseSchema, Ot as buildEventListingInteractiveIslandProps, P as NEWSLETTER_SIGNUPS_PAUSED_MESSAGE, U as buildFormInteractiveIslandProps, Ut as getCardOrientation, W as formBlockRuntime, Wt as getContainerClass, Y as eventRegistrationBlockRuntime, Yt as formatEventPriceDisplay, _ as shopProductPresentation, a as buildShopInteractiveIslandProps, an as publicPassProductCollectionSchema, bt as buildEventCombinedListingDisplay, c as checkoutBlockRuntime, ct as resolveOfferingsPreviewGroupCta, d as productDetailBlockRuntime, dt as resolveOfferingsRenderInput, en as staticHeaderChromeRuntime, h as shopBlockRuntime, i as buildProductListInteractiveIslandProps, in as publicMembershipProductCollectionSchema, kt as eventListingBlockRuntime, ln as DEFAULT_MAILING_LIST_TARGETING, lt as resolveOfferingsPreviewGroups, n as buildCheckoutInteractiveIslandProps, nt as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, o as cartBlockRuntime, ot as normalizeOfferingsPreviewItemLimit, p as productListBlockRuntime, q as buildEventRegistrationInteractiveIslandProps, qt as formatEventPrice, r as buildProductDetailInteractiveIslandProps, rn as splitSiteChromePlacementClasses, rt as buildOfferingsPreviewListing, st as offeringsListingFor, t as buildCartInteractiveIslandProps, ut as resolveOfferingsPreviewRunPath, vt as occurrenceContextSchema, wt as buildEventCalendarListingDisplay, xt as eventCombinedBlockRuntime, yt as buildEventCombinedInteractiveIslandProps, z as buildGiftingInteractiveIslandProps } from "./shop.interactive-DBMeM8VD.mjs";
11
+ import { n as resolveEventLinkProps, t as resolveEventCta } from "./cta-BWnUuJce.mjs";
12
+ import { a as buildMonthDay, i as CalendarDayHeaders, n as WeekAgendaView, o as resolveMonthSelectedDay, s as formatEventLocation } from "./CalendarNavigationChevron-CIcMQRc1.mjs";
13
+ import { n as CardListItems, r as EventItem } from "./EventItem-DnCTygqk.mjs";
14
+ import { S as asPartialObject, d as resolveCardRoleForBoxStyles, g as DEFAULT_SECTION_SPACING, i as EventCard, n as EmptyState, r as EventCompactRow, s as boxStyleClassNames, t as EventListingFrameView, u as normalizeBoxStylesBorder } from "./EventListing.view-pAuTDyrP.mjs";
15
15
  import { t as resolveDedicatedBookingHref } from "./bookingRoute-Bqlyu5Vb.mjs";
16
- import { a as resolveEventDetailsPresentation, i as derivePreviewRunSchedule, n as eventCardListContent, r as deriveEventScheduleSummary, t as EventDetailsView } from "./view-CFSMNvdC.mjs";
16
+ import { a as resolveEventDetailsPresentation, i as derivePreviewRunSchedule, n as eventCardListContent, r as deriveEventScheduleSummary, t as EventDetailsView } from "./view-BPEa6Okm.mjs";
17
17
  import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
18
18
  import { a as carouselShape, c as getCarouselSlidesToShowCssVars, i as carouselRegionAttributes, l as normalizeSlidesToShow, n as arrangementCarouselSettings, r as carouselContents, t as CarouselSlideContent, u as resolveSlidesToShowMobile } from "./carousel.shared-DBnWEJzo.mjs";
19
- import { t as coerceRichTextDoc } from "./richText-coerce-Nln8Bw2P.mjs";
19
+ import { t as coerceRichTextDoc } from "./richText-coerce-DXAmC72p.mjs";
20
20
  import { t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-4o4_hl34.mjs";
21
- import { a as PassPurchaseUnavailable, c as ProductDetailView, d as ShopPurchaseAction, f as VariantSelectView, i as PassCardView, l as ProductGalleryFrameView, n as CheckoutShellView, o as PassesMembershipsSectionView, r as MembershipCardView, s as ProductCardView, t as CartShellView, u as ProductListSectionView } from "./view-4sSIJ6Ny.mjs";
22
- import { n as EventListWeekNavigation, t as EventListWeekEmptyState } from "./EventListWeekNavigation-6oYGdpNS.mjs";
23
- import { a as MonthLookView, i as buildWeekBoardViewProps, n as WeekBoardView, r as buildWeekBoardNavigationState, t as buildTimetableModel } from "./timetableModel-Duwk6gXe.mjs";
24
- import { i as RegistrationClosedState, r as BookingEntryCard, t as StepIndicator } from "./StepIndicator-D8fvzhlS.mjs";
25
- import { n as FormSubmitAction, t as FormFieldGroups } from "./form.parts-C9EmjE7U.mjs";
26
- import { a as partitionNewsletterFields, n as NewsletterSubmitRow, r as NewsletterTopicChips, t as NewsletterExtraField } from "./newsletter-form.parts-VGjM-NDG.mjs";
21
+ import { a as PassPurchaseUnavailable, c as ProductDetailView, d as ShopPurchaseAction, f as VariantSelectView, i as PassCardView, l as ProductGalleryFrameView, n as CheckoutShellView, o as PassesMembershipsSectionView, r as MembershipCardView, s as ProductCardView, t as CartShellView, u as ProductListSectionView } from "./view-hJr_L4QC2.mjs";
22
+ import { n as EventListWeekNavigation, t as EventListWeekEmptyState } from "./EventListWeekNavigation-9h97heuQ.mjs";
23
+ import { a as MonthLookView, i as buildWeekBoardViewProps, n as WeekBoardView, r as buildWeekBoardNavigationState, t as buildTimetableModel } from "./timetableModel-D7PwpaBY.mjs";
24
+ import { i as RegistrationClosedState, r as BookingEntryCard, t as StepIndicator } from "./StepIndicator-qEq6X5zP.mjs";
25
+ import { n as FormSubmitAction, t as FormFieldGroups } from "./form.parts-Bs0F3v08.mjs";
26
+ import { a as partitionNewsletterFields, n as NewsletterSubmitRow, r as NewsletterTopicChips, t as NewsletterExtraField } from "./newsletter-form.parts-C9I9JBhe.mjs";
27
27
  import React, { forwardRef } from "react";
28
28
  import { z } from "zod";
29
29
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -1284,11 +1284,22 @@ const nodeSchema = z.object({
1284
1284
  const nodeTreeSchema = nodeSchema.array().or(nodeSchema);
1285
1285
  const NodeSchema = nodeSchema;
1286
1286
  const NodeTreeSchema = nodeTreeSchema;
1287
- //#endregion
1288
- //#region ../blocks/src/system/layout/repeaterGrid.ts
1289
- const DEFAULT_REPEATER_GRID_SPAN_FIELD_ID = "gridSpan";
1290
- const DEFAULT_REPEATER_GRID_ROW_FIELD_ID = "gridRow";
1291
- const DEFAULT_REPEATER_GRID_COLUMN_FIELD_ID = "gridColumn";
1287
+ const MIN_COLUMNS = 1;
1288
+ const MAX_COLUMNS = 6;
1289
+ function normalizeInteger(value) {
1290
+ if (typeof value === "number" && Number.isFinite(value)) return Math.trunc(value);
1291
+ if (typeof value === "string") {
1292
+ const trimmed = value.trim();
1293
+ if (!trimmed) return null;
1294
+ const parsed = Number(trimmed);
1295
+ if (!Number.isFinite(parsed)) return null;
1296
+ return Math.trunc(parsed);
1297
+ }
1298
+ return null;
1299
+ }
1300
+ function clamp(value, min, max) {
1301
+ return Math.max(min, Math.min(max, value));
1302
+ }
1292
1303
  function asNonEmptyString(value) {
1293
1304
  if (typeof value !== "string") return null;
1294
1305
  const trimmed = value.trim();
@@ -1303,6 +1314,319 @@ function resolveRepeaterGridRowFieldId(options) {
1303
1314
  function resolveRepeaterGridColumnFieldId(options) {
1304
1315
  return asNonEmptyString(options?.id) ?? "gridColumn";
1305
1316
  }
1317
+ function getBreakpointFallbackOrder(breakpoint) {
1318
+ if (breakpoint === "xl") return [
1319
+ "xl",
1320
+ "lg",
1321
+ "md",
1322
+ "sm",
1323
+ "base"
1324
+ ];
1325
+ if (breakpoint === "lg") return [
1326
+ "lg",
1327
+ "md",
1328
+ "sm",
1329
+ "base"
1330
+ ];
1331
+ if (breakpoint === "md") return [
1332
+ "md",
1333
+ "sm",
1334
+ "base",
1335
+ "lg"
1336
+ ];
1337
+ if (breakpoint === "sm") return [
1338
+ "sm",
1339
+ "base",
1340
+ "lg"
1341
+ ];
1342
+ return ["base", "lg"];
1343
+ }
1344
+ function normalizeRepeaterGridColumns(value) {
1345
+ const parsed = normalizeInteger(value);
1346
+ if (parsed == null) return MIN_COLUMNS;
1347
+ return clamp(parsed, MIN_COLUMNS, MAX_COLUMNS);
1348
+ }
1349
+ function normalizeRepeaterGridRow(value) {
1350
+ const parsed = normalizeInteger(value);
1351
+ if (parsed == null) return 1;
1352
+ return Math.max(1, parsed);
1353
+ }
1354
+ function resolveRepeaterGridColumnsForBreakpoint(values, bindings, breakpoint) {
1355
+ const order = getBreakpointFallbackOrder(breakpoint);
1356
+ for (const candidate of order) {
1357
+ const fieldId = asNonEmptyString(bindings[candidate]);
1358
+ if (!fieldId) continue;
1359
+ const resolved = normalizeInteger(values[fieldId]);
1360
+ if (resolved == null) continue;
1361
+ return clamp(resolved, MIN_COLUMNS, MAX_COLUMNS);
1362
+ }
1363
+ return MIN_COLUMNS;
1364
+ }
1365
+ /** Strict admission; rendering normalization never grants permission to persist. */
1366
+ function parseRepeaterGridInteger(value) {
1367
+ if (typeof value !== "number" && (typeof value !== "string" || !value.trim())) return null;
1368
+ const number = Number(value);
1369
+ return Number.isInteger(number) ? number : null;
1370
+ }
1371
+ function isAcceptedRepeaterGridSpan(value, columns, acceptedSpans) {
1372
+ const span = parseRepeaterGridInteger(value);
1373
+ return span != null && span >= 1 && span <= columns && (!acceptedSpans || acceptedSpans.includes(span));
1374
+ }
1375
+ function normalizeRepeaterGridSpan(value, activeColumns, acceptedSpans) {
1376
+ if (acceptedSpans) {
1377
+ const valid = acceptedSpans.filter((span) => span <= activeColumns);
1378
+ const parsed = parseRepeaterGridInteger(value);
1379
+ return parsed != null && valid.includes(parsed) ? parsed : valid.length ? Math.min(...valid) : 1;
1380
+ }
1381
+ const parsed = normalizeInteger(value);
1382
+ if (parsed == null) return 1;
1383
+ return clamp(parsed, 1, Math.max(1, activeColumns));
1384
+ }
1385
+ function normalizeRepeaterGridColStart(value, activeColumns, span) {
1386
+ const parsed = normalizeInteger(value);
1387
+ const normalizedColumns = Math.max(1, activeColumns);
1388
+ const normalizedSpan = clamp(span, 1, normalizedColumns);
1389
+ const maxColStart = Math.max(1, normalizedColumns - normalizedSpan + 1);
1390
+ if (parsed == null) return 1;
1391
+ return clamp(parsed, 1, maxColStart);
1392
+ }
1393
+ function toRowCellKey(row, col, columns) {
1394
+ return (row - 1) * columns + col;
1395
+ }
1396
+ function buildPlacementCells(placement) {
1397
+ return Array.from({ length: placement.span }, (_, index) => placement.colStart + index);
1398
+ }
1399
+ function buildOccupancyByCell(placements, columns) {
1400
+ 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());
1401
+ return {
1402
+ occupancy,
1403
+ hasCollisions: Array.from(occupancy.values()).some((ids) => ids.size > 1)
1404
+ };
1405
+ }
1406
+ function getOverlappingItemIds(input) {
1407
+ return new Set(buildPlacementCells(input).flatMap((col) => Array.from(input.occupancy.get(toRowCellKey(input.row, col, input.columns)) ?? []).filter((id) => !input.excludedIds?.has(id))));
1408
+ }
1409
+ function normalizeInputItem(item, columns, sourceIndex) {
1410
+ const span = normalizeRepeaterGridSpan(item.span, columns, item.acceptedSpans);
1411
+ const row = normalizeRepeaterGridRow(item.row);
1412
+ const colStart = normalizeRepeaterGridColStart(item.colStart, columns, span);
1413
+ const colEnd = colStart + span - 1;
1414
+ return {
1415
+ id: item.id,
1416
+ startNewRow: item.startNewRow,
1417
+ acceptedSpans: item.acceptedSpans,
1418
+ sourceIndex,
1419
+ span,
1420
+ row,
1421
+ colStart,
1422
+ colEnd,
1423
+ startCell: toRowCellKey(row, colStart, columns)
1424
+ };
1425
+ }
1426
+ /** Ordered, non-dense placement. Rendering clamps widths; admission checks originals separately. */
1427
+ function flowRepeaterGridItems(items, columns) {
1428
+ const count = normalizeRepeaterGridColumns(columns);
1429
+ return items.reduce((placed, item) => {
1430
+ const span = normalizeRepeaterGridSpan(item.span, count);
1431
+ const previous = placed.at(-1);
1432
+ const nextColumn = previous ? previous.colStart + previous.span : 1;
1433
+ const wraps = previous != null && (item.startNewRow === true || nextColumn + span - 1 > count);
1434
+ return [...placed, {
1435
+ ...item,
1436
+ span,
1437
+ row: (previous?.row ?? 1) + (wraps ? 1 : 0),
1438
+ colStart: wraps ? 1 : nextColumn
1439
+ }];
1440
+ }, []);
1441
+ }
1442
+ function orderedGridItems(layout) {
1443
+ return [...layout.placements].sort((a, b) => a.sourceIndex - b.sourceIndex);
1444
+ }
1445
+ function isRepeaterGridLayoutInvalid(layout) {
1446
+ return layout.hasInvalidItems || layout.hasCollisions || layout.overCapacity;
1447
+ }
1448
+ function hasInvalidGridItems(items, columns, policy) {
1449
+ const flow = policy === "flow" ? flowRepeaterGridItems(items, columns) : null;
1450
+ return items.some((item, index) => !isValidGridItemGeometry(item, columns) || flow != null && (item.row !== flow[index]?.row || item.colStart !== flow[index]?.colStart));
1451
+ }
1452
+ function isValidGridItemGeometry(item, columns) {
1453
+ 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;
1454
+ }
1455
+ function findFlowAppendPlacement(layout, span, startNewRow) {
1456
+ const next = flowRepeaterGridItems([...orderedGridItems(layout), {
1457
+ id: "new",
1458
+ span,
1459
+ row: 1,
1460
+ colStart: 1,
1461
+ startNewRow
1462
+ }], layout.columns).at(-1);
1463
+ return !isRepeaterGridLayoutInvalid(layout) && next && (layout.maxRows == null || next.row <= layout.maxRows) ? {
1464
+ row: next.row,
1465
+ colStart: next.colStart
1466
+ } : null;
1467
+ }
1468
+ function buildRepeaterGridLayout(input) {
1469
+ const columns = normalizeRepeaterGridColumns(input.columns);
1470
+ const maxRows = input.maxRows != null ? Math.max(1, Math.trunc(input.maxRows)) : void 0;
1471
+ const capacityCells = maxRows != null ? maxRows * columns : void 0;
1472
+ const placements = input.items.map((item, sourceIndex) => normalizeInputItem(item, columns, sourceIndex)).sort((a, b) => {
1473
+ if (a.row !== b.row) return a.row - b.row;
1474
+ if (a.colStart !== b.colStart) return a.colStart - b.colStart;
1475
+ return a.sourceIndex - b.sourceIndex;
1476
+ });
1477
+ const byId = Object.fromEntries(placements.map((placement) => [placement.id, placement]));
1478
+ const maxRowUsed = placements.length > 0 ? Math.max(...placements.map((placement) => placement.row)) : 0;
1479
+ const { hasCollisions } = buildOccupancyByCell(placements, columns);
1480
+ const overCapacity = maxRows != null && maxRowUsed > maxRows;
1481
+ return {
1482
+ placementPolicy: input.placementPolicy,
1483
+ columns,
1484
+ maxRows,
1485
+ capacityCells,
1486
+ maxRowUsed,
1487
+ overCapacity,
1488
+ hasCollisions,
1489
+ hasInvalidItems: hasInvalidGridItems(input.items, columns, input.placementPolicy),
1490
+ placements,
1491
+ byId
1492
+ };
1493
+ }
1494
+ function findFirstAvailableRepeaterGridPlacement(input) {
1495
+ const columns = normalizeRepeaterGridColumns(input.columns);
1496
+ const maxRows = input.maxRows != null ? Math.max(1, Math.trunc(input.maxRows)) : void 0;
1497
+ if (!isAcceptedRepeaterGridSpan(input.newItemSpan, columns, input.acceptedSpans)) return null;
1498
+ const span = normalizeRepeaterGridSpan(input.newItemSpan, columns, input.acceptedSpans);
1499
+ const layout = buildRepeaterGridLayout({
1500
+ items: input.items,
1501
+ columns,
1502
+ maxRows,
1503
+ placementPolicy: input.placementPolicy
1504
+ });
1505
+ if (input.placementPolicy === "flow") return findFlowAppendPlacement(layout, span, input.startNewRow);
1506
+ const { occupancy } = buildOccupancyByCell(layout.placements, columns);
1507
+ const rowLimit = maxRows ?? Math.max(1, layout.maxRowUsed + 1);
1508
+ if (isRepeaterGridLayoutInvalid(layout)) return null;
1509
+ const maxColStart = columns - span + 1;
1510
+ return Array.from({ length: rowLimit * maxColStart }, (_, index) => ({
1511
+ row: Math.floor(index / maxColStart) + 1,
1512
+ colStart: index % maxColStart + 1
1513
+ })).find(({ row, colStart }) => getOverlappingItemIds({
1514
+ occupancy,
1515
+ row,
1516
+ colStart,
1517
+ span,
1518
+ columns
1519
+ }).size === 0) ?? null;
1520
+ }
1521
+ /** Narrow rendering is a projection only. Never feed these placements into an authoring write. */
1522
+ function projectRepeaterGridLayout(layout, columns) {
1523
+ if (isRepeaterGridLayoutInvalid(layout)) return projectRepeaterGridLayoutForRendering(layout, columns);
1524
+ if (columns === layout.columns) return layout;
1525
+ if (layout.placementPolicy === "flow") return buildProjectedRepeaterGridLayout(layout, flowRepeaterGridItems(orderedGridItems(layout), columns), columns);
1526
+ return buildProjectedRepeaterGridLayout(layout, layout.placements.reduce((placed, item) => {
1527
+ const span = normalizeRepeaterGridSpan(item.span, columns);
1528
+ const destination = findFirstAvailableRepeaterGridPlacement({
1529
+ items: placed,
1530
+ newItemSpan: span,
1531
+ columns
1532
+ });
1533
+ return [...placed, {
1534
+ id: item.id,
1535
+ span,
1536
+ row: destination?.row ?? placed.length + 1,
1537
+ colStart: destination?.colStart ?? 1
1538
+ }];
1539
+ }, []), columns);
1540
+ }
1541
+ function buildProjectedRepeaterGridLayout(source, items, columns) {
1542
+ const projected = buildRepeaterGridLayout({
1543
+ items: items.map(({ id, span, row, colStart, startNewRow }) => ({
1544
+ id,
1545
+ span,
1546
+ row,
1547
+ colStart,
1548
+ startNewRow
1549
+ })),
1550
+ columns,
1551
+ placementPolicy: source.placementPolicy === "flow" || isRepeaterGridLayoutInvalid(source) ? "flow" : source.placementPolicy
1552
+ });
1553
+ const placements = projected.placements.map((item) => ({
1554
+ ...item,
1555
+ sourceIndex: source.byId[item.id]?.sourceIndex ?? item.sourceIndex
1556
+ }));
1557
+ return {
1558
+ ...projected,
1559
+ placements,
1560
+ byId: Object.fromEntries(placements.map((item) => [item.id, item]))
1561
+ };
1562
+ }
1563
+ /** Public fallback: preserve saved array order, use non-dense auto-placement, and ignore authoring capacity. */
1564
+ function projectRepeaterGridLayoutForRendering(layout, columns = layout.columns) {
1565
+ if (!isRepeaterGridLayoutInvalid(layout)) return projectRepeaterGridLayout(layout, columns);
1566
+ const count = normalizeRepeaterGridColumns(columns);
1567
+ return buildProjectedRepeaterGridLayout(layout, flowRepeaterGridItems(orderedGridItems(layout), count), count);
1568
+ }
1569
+ //#endregion
1570
+ //#region ../blocks/src/system/manifest/layoutGridConfiguration.ts
1571
+ const itemFieldsSchema = z.object({ fields: z.array(z.object({
1572
+ id: z.string(),
1573
+ type: z.string(),
1574
+ defaultValue: z.unknown().optional(),
1575
+ options: z.array(z.object({ value: z.string() })).optional(),
1576
+ multiple: z.boolean().optional(),
1577
+ source: z.object({ kind: z.string() }).optional()
1578
+ })) });
1579
+ function validateSpanSelect(span, columns, ctx) {
1580
+ if (span.type !== "select") return;
1581
+ const options = span.options ?? [];
1582
+ const invalidOptions = options.some((option) => !isAcceptedRepeaterGridSpan(option.value, columns) || String(Number(option.value)) !== option.value);
1583
+ if (span.multiple || options.length === 0 || invalidOptions || span.source && span.source.kind !== "static") ctx.addIssue({
1584
+ code: "custom",
1585
+ path: ["ui", "layoutGridSpanField"],
1586
+ message: `Layout-grid span select must have single, static integer options within 1..${columns}`
1587
+ });
1588
+ if (span.defaultValue !== void 0 && !options.some((option) => option.value === span.defaultValue)) ctx.addIssue({
1589
+ code: "custom",
1590
+ path: ["ui", "layoutGridSpanField"],
1591
+ message: "Layout-grid default span must be one of the span select options"
1592
+ });
1593
+ }
1594
+ /** Both monomorphic and polymorphic item schemas have the same layout contract. */
1595
+ function validateLayoutGridConfiguration(data, ctx) {
1596
+ const ui = data.ui;
1597
+ if (ui?.repeaterPreset !== "layoutGrid") return;
1598
+ if (ui.layoutGridColumns !== void 0 === (ui.layoutGridColumnsFields !== void 0)) ctx.addIssue({
1599
+ code: "custom",
1600
+ path: ["ui", "layoutGridColumns"],
1601
+ message: "Layout-grid requires exactly one of ui.layoutGridColumns or ui.layoutGridColumnsFields.lg; do not set both"
1602
+ });
1603
+ const spanId = resolveRepeaterGridSpanFieldId({ id: ui.layoutGridSpanField });
1604
+ const requiredIds = [
1605
+ spanId,
1606
+ resolveRepeaterGridRowFieldId({ id: ui.layoutGridRowField }),
1607
+ resolveRepeaterGridColumnFieldId({ id: ui.layoutGridColumnField })
1608
+ ];
1609
+ (data.polymorphic && data.itemTypes ? Object.values(data.itemTypes) : [data.schema]).forEach((schema) => {
1610
+ const parsed = itemFieldsSchema.safeParse(schema);
1611
+ if (!parsed.success) return;
1612
+ if (!requiredIds.every((id) => parsed.data.fields.some((field) => field.id === id))) ctx.addIssue({
1613
+ code: "custom",
1614
+ path: ["ui", "layoutGridRowField"],
1615
+ message: `layoutGrid repeaters require span/row/column fields (${requiredIds.join(", ")}) to exist in repeater item fields`
1616
+ });
1617
+ if (ui.layoutGridStartNewRowField && !parsed.data.fields.some((field) => field.id === ui.layoutGridStartNewRowField && field.type === "boolean")) ctx.addIssue({
1618
+ code: "custom",
1619
+ path: ["ui", "layoutGridStartNewRowField"],
1620
+ message: "Layout-grid Start a new row field must reference a boolean item field"
1621
+ });
1622
+ if (ui.layoutGridStartNewRowField && ui.layoutGridColumns === void 0) ctx.addIssue({
1623
+ code: "custom",
1624
+ path: ["ui", "layoutGridStartNewRowField"],
1625
+ message: "Layout-grid Start a new row requires fixed columns (flow placement)"
1626
+ });
1627
+ parsed.data.fields.filter((field) => field.id === spanId).forEach((span) => validateSpanSelect(span, ui.layoutGridColumns ?? 6, ctx));
1628
+ });
1629
+ }
1306
1630
  //#endregion
1307
1631
  //#region ../blocks/src/system/manifest/schema.ts
1308
1632
  const visibilityLevels = [
@@ -1477,6 +1801,14 @@ const uiSchema = z.object({
1477
1801
  thumbnailLabelField: z.string().optional(),
1478
1802
  thumbnailAspectRatio: z.string().optional(),
1479
1803
  thumbnailCardDensity: z.enum(["compact", "comfortable"]).optional(),
1804
+ layoutGridColumns: z.union([
1805
+ z.literal(1),
1806
+ z.literal(2),
1807
+ z.literal(3),
1808
+ z.literal(4),
1809
+ z.literal(5),
1810
+ z.literal(6)
1811
+ ]).optional(),
1480
1812
  layoutGridColumnsFields: z.object({
1481
1813
  base: z.string().optional(),
1482
1814
  sm: z.string().optional(),
@@ -1485,6 +1817,7 @@ const uiSchema = z.object({
1485
1817
  xl: z.string().optional()
1486
1818
  }).optional(),
1487
1819
  layoutGridSpanField: z.string().optional(),
1820
+ layoutGridStartNewRowField: z.string().optional(),
1488
1821
  layoutGridRowField: z.string().optional(),
1489
1822
  layoutGridColumnField: z.string().optional(),
1490
1823
  layoutGridMaxRows: z.number().int().positive().optional(),
@@ -1506,7 +1839,24 @@ const uiSchema = z.object({
1506
1839
  "style"
1507
1840
  ]).optional(),
1508
1841
  valueContract: z.enum(["boxBackground"]).optional()
1509
- }).partial();
1842
+ }).partial().superRefine((ui, ctx) => {
1843
+ if (ui.layoutGridColumns !== void 0 && ui.layoutGridColumnsFields !== void 0) ctx.addIssue({
1844
+ code: "custom",
1845
+ path: ["layoutGridColumns"],
1846
+ message: "Layout-grid requires exactly one of ui.layoutGridColumns or ui.layoutGridColumnsFields.lg; do not set both"
1847
+ });
1848
+ }).transform((input) => {
1849
+ const { layoutGridColumns, layoutGridColumnsFields, ...ui } = input;
1850
+ if (layoutGridColumns !== void 0) return {
1851
+ ...ui,
1852
+ layoutGridColumns
1853
+ };
1854
+ if (layoutGridColumnsFields !== void 0) return {
1855
+ ...ui,
1856
+ layoutGridColumnsFields
1857
+ };
1858
+ return ui;
1859
+ });
1510
1860
  const baseFieldSchema = z.object({
1511
1861
  id: z.string().min(1, "Field id is required"),
1512
1862
  label: z.string().min(1, "Field label is required"),
@@ -1672,31 +2022,7 @@ const repeaterFieldSchema = baseFieldSchema.extend({
1672
2022
  allowConversion: z.boolean().default(true)
1673
2023
  }).refine((data) => {
1674
2024
  return data.schema !== void 0 !== (data.polymorphic === true && data.itemTypes !== void 0);
1675
- }, { message: "Repeater must have either 'schema' (monomorphic) or 'polymorphic: true' with 'itemTypes' (polymorphic)" }).refine((data) => {
1676
- if (data.ui?.repeaterPreset !== "layoutGrid") return true;
1677
- return !!data.ui.layoutGridColumnsFields?.lg;
1678
- }, {
1679
- message: "ui.layoutGridColumnsFields.lg is required when ui.repeaterPreset is 'layoutGrid'",
1680
- path: [
1681
- "ui",
1682
- "layoutGridColumnsFields",
1683
- "lg"
1684
- ]
1685
- }).refine((data) => {
1686
- if (data.ui?.repeaterPreset !== "layoutGrid") return true;
1687
- const requiredFieldIds = [
1688
- resolveRepeaterGridSpanFieldId({ id: typeof data.ui.layoutGridSpanField === "string" ? data.ui.layoutGridSpanField : void 0 }),
1689
- resolveRepeaterGridRowFieldId({ id: typeof data.ui.layoutGridRowField === "string" ? data.ui.layoutGridRowField : void 0 }),
1690
- resolveRepeaterGridColumnFieldId({ id: typeof data.ui.layoutGridColumnField === "string" ? data.ui.layoutGridColumnField : void 0 })
1691
- ];
1692
- 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)));
1693
- const schemaFields = data.schema?.fields;
1694
- if (!schemaFields) return true;
1695
- return requiredFieldIds.every((requiredId) => schemaFields.some((field) => field.id === requiredId));
1696
- }, {
1697
- 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`,
1698
- path: ["ui", "layoutGridRowField"]
1699
- }).refine((data) => {
2025
+ }, { message: "Repeater must have either 'schema' (monomorphic) or 'polymorphic: true' with 'itemTypes' (polymorphic)" }).superRefine(validateLayoutGridConfiguration).refine((data) => {
1700
2026
  const thumbnailAspectRatio = data.ui?.thumbnailAspectRatio;
1701
2027
  if (!thumbnailAspectRatio) return true;
1702
2028
  return parseAspectRatioValue(thumbnailAspectRatio) != null;
@@ -2202,6 +2528,14 @@ function formatKeyAsLabel(key) {
2202
2528
  return key.replace(/([A-Z])/g, " $1").replace(/[-_]/g, " ").trim().split(" ").map((word) => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase()).join(" ");
2203
2529
  }
2204
2530
  //#endregion
2531
+ //#region ../blocks/src/lib/media.ts
2532
+ const PUBLIC_DOWNLOAD_MEDIA_TYPES = [
2533
+ "document",
2534
+ "spreadsheet",
2535
+ "archive",
2536
+ "audio"
2537
+ ];
2538
+ //#endregion
2205
2539
  //#region ../blocks/src/system/icons/ids.ts
2206
2540
  const GENERATED_ICON_SET_ID_PATTERN = /^generated-icon-set:[a-z0-9][a-z0-9:_-]{0,107}$/u;
2207
2541
  const GENERATED_ICON_ASSET_ID_PATTERN = /^generated-icon-asset:[a-z0-9][a-z0-9:_-]{0,105}$/u;
@@ -2377,14 +2711,6 @@ function resolveBlockIconRenderValue(value, generatedAssets = /* @__PURE__ */ ne
2377
2711
  }
2378
2712
  }
2379
2713
  //#endregion
2380
- //#region ../blocks/src/lib/media.ts
2381
- const PUBLIC_DOWNLOAD_MEDIA_TYPES = [
2382
- "document",
2383
- "spreadsheet",
2384
- "archive",
2385
- "audio"
2386
- ];
2387
- //#endregion
2388
2714
  //#region ../blocks/src/system/customize/testimonialCount.ts
2389
2715
  /** The loader consumes the content-stage plan; it never selects a Look. */
2390
2716
  function testimonialLoaderLimit(content) {
@@ -2928,6 +3254,7 @@ function styledSection(config) {
2928
3254
  baseClass,
2929
3255
  spacing,
2930
3256
  fullWidthPath,
3257
+ photoPaintsGround: renderBackgroundImage,
2931
3258
  skinSlot: config.skinSlot
2932
3259
  }), [renderedBackgroundNode, ...childrenArray]);
2933
3260
  }
@@ -2939,7 +3266,10 @@ function sectionAppearanceProps(input) {
2939
3266
  from: `${input.bindFrom}.background`,
2940
3267
  transforms: [{
2941
3268
  id: "sectionStyles.resolveColorsStyle",
2942
- options: { fallbackToken: input.background }
3269
+ options: {
3270
+ fallbackToken: input.background,
3271
+ photoPaintsGround: input.photoPaintsGround
3272
+ }
2943
3273
  }]
2944
3274
  } },
2945
3275
  className: { $bind: {
@@ -3953,177 +4283,207 @@ function getFeatureCardIconCompletion(cards) {
3953
4283
  function shouldReserveFeatureCardIconZone(cards) {
3954
4284
  return getFeatureCardIconCompletion(cards).cardsWithIcons > 0;
3955
4285
  }
3956
- const eventRegistrationBlockDefinition = {
3957
- manifest: createBlockManifest({
3958
- variantMeaning: { kind: "arrangement" },
3959
- id: "block.event-registration",
3960
- version: "1.0.0",
3961
- title: "Event Registration",
3962
- titleSource: "heading",
3963
- description: "Multi-step event registration form",
3964
- category: "interactive",
3965
- contentSource: { kind: "inline" },
3966
- tags: [
3967
- "events",
3968
- "registration",
3969
- "booking",
3970
- "form",
3971
- "signup"
3972
- ],
3973
- icon: "ClipboardList",
3974
- styleTokens: {
3975
- background: "surface",
3976
- typography: "body",
3977
- spacing: "md"
4286
+ //#endregion
4287
+ //#region ../blocks/src/system/blocks/event-registration.ts
4288
+ /**
4289
+ * Event Registration Block
4290
+ *
4291
+ * Multi-step registration form for events. Can be placed on event content type
4292
+ * templates or standalone pages.
4293
+ *
4294
+ * Features:
4295
+ * - Occurrence selection (if not pre-selected via URL)
4296
+ * - Ticket quantity selection
4297
+ * - Attendee information form
4298
+ * - Confirmation display
4299
+ *
4300
+ * Context:
4301
+ * - When placed on an event template with occurrence URL (/events/yoga/2025-01-15),
4302
+ * the occurrence is pre-selected from route context
4303
+ * - When on event template without occurrence, shows occurrence picker
4304
+ * - When standalone, shows full event + occurrence picker
4305
+ */
4306
+ const eventRegistrationManifest = createBlockManifest({
4307
+ variantMeaning: { kind: "arrangement" },
4308
+ id: "block.event-registration",
4309
+ version: "1.0.0",
4310
+ title: "Event Registration",
4311
+ titleSource: "heading",
4312
+ description: "Multi-step event registration form",
4313
+ category: "interactive",
4314
+ contentSource: { kind: "inline" },
4315
+ tags: [
4316
+ "events",
4317
+ "registration",
4318
+ "booking",
4319
+ "form",
4320
+ "signup"
4321
+ ],
4322
+ icon: "ClipboardList",
4323
+ styleTokens: {
4324
+ background: "surface",
4325
+ typography: "body",
4326
+ spacing: "md"
4327
+ },
4328
+ behaviours: {
4329
+ supportsThemeSwitching: true,
4330
+ inlineEditing: false,
4331
+ animation: false,
4332
+ paletteHidden: false
4333
+ },
4334
+ additionalFields: [
4335
+ {
4336
+ id: "heading",
4337
+ type: "text",
4338
+ label: "Heading",
4339
+ description: "Main heading for the registration form",
4340
+ required: false,
4341
+ multiline: false,
4342
+ defaultValue: ""
3978
4343
  },
3979
- behaviours: {
3980
- supportsThemeSwitching: true,
3981
- inlineEditing: false,
3982
- animation: false,
3983
- paletteHidden: false
4344
+ {
4345
+ id: "description",
4346
+ type: "richText",
4347
+ label: "Description",
4348
+ description: "Optional introductory text",
4349
+ required: false
3984
4350
  },
3985
- additionalFields: [
3986
- {
3987
- id: "heading",
3988
- type: "text",
3989
- label: "Heading",
3990
- description: "Main heading for the registration form",
3991
- required: false,
3992
- multiline: false,
3993
- defaultValue: ""
3994
- },
3995
- {
3996
- id: "description",
3997
- type: "richText",
3998
- label: "Description",
3999
- description: "Optional introductory text",
4000
- required: false
4001
- },
4002
- {
4003
- id: "maxTickets",
4004
- type: "select",
4005
- label: "Max tickets per registration",
4006
- description: "Maximum tickets a person can register for",
4007
- required: false,
4008
- multiple: false,
4009
- defaultValue: "5",
4010
- options: [
4011
- {
4012
- value: "1",
4013
- label: "1 ticket"
4014
- },
4015
- {
4016
- value: "2",
4017
- label: "2 tickets"
4018
- },
4019
- {
4020
- value: "3",
4021
- label: "3 tickets"
4022
- },
4023
- {
4024
- value: "5",
4025
- label: "5 tickets"
4026
- },
4027
- {
4028
- value: "10",
4029
- label: "10 tickets"
4030
- }
4031
- ],
4032
- ui: { intent: "display" }
4033
- },
4034
- {
4035
- id: "showVenue",
4036
- type: "boolean",
4037
- label: "Show venue",
4038
- description: "Display venue information",
4039
- required: false,
4040
- defaultValue: true,
4041
- ui: { intent: "display" }
4042
- },
4043
- {
4044
- id: "showCapacity",
4045
- type: "boolean",
4046
- label: "Show available places",
4047
- description: "Display remaining capacity",
4048
- required: false,
4049
- defaultValue: true,
4050
- ui: { intent: "display" }
4051
- },
4052
- {
4053
- id: "successMessage",
4054
- type: "text",
4055
- label: "Success message",
4056
- description: "Message shown after successful registration",
4057
- required: false,
4058
- multiline: true,
4059
- maxLength: 500,
4060
- ui: { placeholder: "Thank you for registering! Check your email for confirmation details." }
4061
- },
4062
- {
4063
- id: "buttonText",
4064
- type: "text",
4065
- label: "Button text",
4066
- description: "Text on the booking button",
4067
- required: false,
4068
- multiline: false,
4069
- defaultValue: "Book your place",
4070
- maxLength: 40
4071
- },
4072
- createButtonVariantField()
4073
- ],
4074
- layout: [styledSection({
4075
- baseClass: "",
4076
- spacing: "spacious",
4077
- children: sectionContainer([
4078
- text({ as: "h2" }, bind("content.heading"), when("content.heading")),
4079
- richText({ className: "rb-prose rb-max-w-none" }, bind("content.description"), when("content.description")),
4080
- eventRegistration(withApiBindings({
4081
- demoEmailSuppressed: { $bind: {
4082
- from: "$root.demoEmailSuppressed",
4083
- fallback: false
4084
- } },
4085
- readAuthority: { $bind: { from: "$root.readAuthority" } },
4086
- occurrenceContext: { $bind: { from: "$root.occurrenceContext" } },
4087
- subject: { $bind: { from: "$root.subject" } },
4088
- portalToken: { $bind: {
4089
- from: "$root.portalToken",
4090
- fallback: null
4091
- } },
4092
- maxTickets: { $bind: {
4093
- from: "content.maxTickets",
4094
- fallback: "5"
4095
- } },
4096
- showVenue: { $bind: { from: "content.showVenue" } },
4097
- showCapacity: { $bind: { from: "content.showCapacity" } },
4098
- successMessage: { $bind: { from: "content.successMessage" } },
4099
- buttonText: { $bind: {
4100
- from: "content.buttonText",
4101
- fallback: "Book your place"
4102
- } },
4103
- buttonVariant: { $bind: {
4104
- from: "content.buttonVariant",
4105
- fallback: "primary"
4106
- } },
4107
- events: { $bind: { from: "data.events" } },
4108
- wholeSeriesRunEvents: { $bind: { from: "data.wholeSeriesRunEvents" } },
4109
- loaderFailures: { $bind: { from: "$root.loaderFailures" } },
4110
- mailingList: { $bind: { from: "$root.mailingList" } },
4111
- siteTerms: { $bind: { from: "$root.siteTerms" } },
4112
- siteName: { $bind: { from: "$root.siteName" } },
4113
- bookingOfferingPresets: { $bind: {
4114
- from: "$root.bookingOfferingPresets",
4115
- fallback: []
4116
- } },
4117
- sitePasses: { $bind: { from: "data.sitePasses" } },
4118
- siteMemberships: { $bind: { from: "data.siteMemberships" } },
4119
- stage: { $bind: {
4120
- from: "$root.previewStage",
4121
- fallback: "published"
4122
- } }
4123
- }))
4124
- ], { gap: "lg" })
4125
- })]
4126
- }),
4351
+ {
4352
+ id: "maxTickets",
4353
+ type: "select",
4354
+ label: "Max tickets per registration",
4355
+ description: "Maximum tickets a person can register for",
4356
+ required: false,
4357
+ multiple: false,
4358
+ defaultValue: "5",
4359
+ options: [
4360
+ {
4361
+ value: "1",
4362
+ label: "1 ticket"
4363
+ },
4364
+ {
4365
+ value: "2",
4366
+ label: "2 tickets"
4367
+ },
4368
+ {
4369
+ value: "3",
4370
+ label: "3 tickets"
4371
+ },
4372
+ {
4373
+ value: "5",
4374
+ label: "5 tickets"
4375
+ },
4376
+ {
4377
+ value: "10",
4378
+ label: "10 tickets"
4379
+ }
4380
+ ],
4381
+ ui: { intent: "display" }
4382
+ },
4383
+ {
4384
+ id: "showVenue",
4385
+ type: "boolean",
4386
+ label: "Show venue",
4387
+ description: "Display venue information",
4388
+ required: false,
4389
+ defaultValue: true,
4390
+ ui: { intent: "display" }
4391
+ },
4392
+ {
4393
+ id: "showCapacity",
4394
+ type: "boolean",
4395
+ label: "Show available places",
4396
+ description: "Display remaining capacity",
4397
+ required: false,
4398
+ defaultValue: true,
4399
+ ui: { intent: "display" }
4400
+ },
4401
+ {
4402
+ id: "successMessage",
4403
+ type: "text",
4404
+ label: "Success message",
4405
+ description: "Message shown after successful registration",
4406
+ required: false,
4407
+ multiline: true,
4408
+ maxLength: 500,
4409
+ ui: { placeholder: "Thank you for registering! Check your email for confirmation details." }
4410
+ },
4411
+ {
4412
+ id: "buttonText",
4413
+ type: "text",
4414
+ label: "Button text",
4415
+ description: "Text on the booking button",
4416
+ required: false,
4417
+ multiline: false,
4418
+ defaultValue: "Book your place",
4419
+ maxLength: 40
4420
+ },
4421
+ createButtonVariantField()
4422
+ ],
4423
+ layout: [styledSection({
4424
+ baseClass: "",
4425
+ spacing: "spacious",
4426
+ children: sectionContainer([
4427
+ text({ as: "h2" }, bind("content.heading"), when("content.heading")),
4428
+ richText({ className: "rb-prose rb-max-w-none" }, bind("content.description"), when("content.description")),
4429
+ eventRegistration(withApiBindings({
4430
+ demoEmailSuppressed: { $bind: {
4431
+ from: "$root.demoEmailSuppressed",
4432
+ fallback: false
4433
+ } },
4434
+ readAuthority: { $bind: { from: "$root.readAuthority" } },
4435
+ occurrenceContext: { $bind: { from: "$root.occurrenceContext" } },
4436
+ subject: { $bind: { from: "$root.subject" } },
4437
+ portalToken: { $bind: {
4438
+ from: "$root.portalToken",
4439
+ fallback: null
4440
+ } },
4441
+ maxTickets: { $bind: {
4442
+ from: "content.maxTickets",
4443
+ fallback: "5"
4444
+ } },
4445
+ showVenue: { $bind: { from: "content.showVenue" } },
4446
+ showCapacity: { $bind: { from: "content.showCapacity" } },
4447
+ successMessage: { $bind: { from: "content.successMessage" } },
4448
+ buttonText: { $bind: {
4449
+ from: "content.buttonText",
4450
+ fallback: "Book your place"
4451
+ } },
4452
+ buttonVariant: { $bind: {
4453
+ from: "content.buttonVariant",
4454
+ fallback: "primary"
4455
+ } },
4456
+ events: { $bind: { from: "data.events" } },
4457
+ wholeSeriesRunEvents: { $bind: { from: "data.wholeSeriesRunEvents" } },
4458
+ loaderFailures: { $bind: { from: "$root.loaderFailures" } },
4459
+ mailingList: { $bind: { from: "$root.mailingList" } },
4460
+ siteTerms: { $bind: { from: "$root.siteTerms" } },
4461
+ siteName: { $bind: { from: "$root.siteName" } },
4462
+ bookingOfferingPresets: { $bind: {
4463
+ from: "$root.bookingOfferingPresets",
4464
+ fallback: []
4465
+ } },
4466
+ sitePasses: { $bind: { from: "data.sitePasses" } },
4467
+ siteMemberships: { $bind: { from: "data.siteMemberships" } },
4468
+ stage: { $bind: {
4469
+ from: "$root.previewStage",
4470
+ fallback: "published"
4471
+ } }
4472
+ }))
4473
+ ], { gap: "lg" })
4474
+ })]
4475
+ });
4476
+ const registrationEventScopeParams = {
4477
+ detailAdmission: { $bind: { from: "$root.subject.detailAdmission" } },
4478
+ seriesId: { $bind: { from: "$root.subject.eventSeriesId" } },
4479
+ seriesIds: { $bind: {
4480
+ from: "$root.subject.catalogueEventSeriesIds",
4481
+ transforms: [{ id: "value.csv" }]
4482
+ } },
4483
+ runSeriesId: { $bind: { from: "$root.entrySubrouteContext.run.seriesId" } }
4484
+ };
4485
+ const eventRegistrationBlockDefinition = {
4486
+ manifest: eventRegistrationManifest,
4127
4487
  runtime: eventRegistrationBlockRuntime,
4128
4488
  dataSchemas: {
4129
4489
  events: publicEventsArraySchema.optional(),
@@ -4148,12 +4508,7 @@ const eventRegistrationBlockDefinition = {
4148
4508
  fallback: "published"
4149
4509
  } },
4150
4510
  readProfile: "registration",
4151
- seriesId: { $bind: { from: "$root.subject.eventSeriesId" } },
4152
- seriesIds: { $bind: {
4153
- from: "$root.subject.catalogueEventSeriesIds",
4154
- transforms: [{ id: "value.csv" }]
4155
- } },
4156
- runSeriesId: { $bind: { from: "$root.entrySubrouteContext.run.seriesId" } },
4511
+ ...registrationEventScopeParams,
4157
4512
  includeOccurrenceId: { $bind: { from: "$root.occurrenceContext.id" } }
4158
4513
  },
4159
4514
  mode: "server"
@@ -4180,12 +4535,7 @@ const eventRegistrationBlockDefinition = {
4180
4535
  fallback: "published"
4181
4536
  } },
4182
4537
  readProfile: "registration",
4183
- seriesId: { $bind: { from: "$root.subject.eventSeriesId" } },
4184
- seriesIds: { $bind: {
4185
- from: "$root.subject.catalogueEventSeriesIds",
4186
- transforms: [{ id: "value.csv" }]
4187
- } },
4188
- runSeriesId: { $bind: { from: "$root.entrySubrouteContext.run.seriesId" } }
4538
+ ...registrationEventScopeParams
4189
4539
  },
4190
4540
  mode: "server"
4191
4541
  },
@@ -8598,14 +8948,7 @@ function LocationMapSSR(props) {
8598
8948
  children: [
8599
8949
  /* @__PURE__ */ jsx(IslandPropsScript, { value: hydrationProps }),
8600
8950
  /* @__PURE__ */ jsx(LocationMapView, {
8601
- addressText: normalized.addressText,
8602
- location: normalized.location,
8603
- zoom: normalized.zoom,
8604
- heightPx: normalized.heightPx,
8605
- showAddressText: normalized.showAddressText,
8606
- showDirections: normalized.showDirections,
8607
- directionsLabel: normalized.directionsLabel,
8608
- unresolvedMessage: normalized.unresolvedMessage,
8951
+ ...normalized,
8609
8952
  renderMap: ({ addressText, className, height }) => /* @__PURE__ */ jsx("div", {
8610
8953
  className,
8611
8954
  style: {
@@ -10810,4 +11153,4 @@ const serverComponentRegistry = {
10810
11153
  ...buildServerRegistryFromEntries(runtimeBackedBlockServerEntries)
10811
11154
  };
10812
11155
  //#endregion
10813
- export { sectionContainer as $, cardStylesField as $t, cardListPresentationBindings as A, coerceInlineTextWithFallback as At, formDataSchema as B, normalizeSelectSource as Bt, eventListingBlockDefinition as C, lookLeadSlotTransform as Ct, cardListSectionAction as D, PUBLIC_DOWNLOAD_MEDIA_TYPES as Dt, FEATURE_CARD_ICON_TREATMENTS as E, lookSlot as Et, splitPositioningClasses as F, PUBLIC_FILE_FIELD_KINDS as Ft, buildFragmentDataLoaders as G, bindingSchema as Gt, formEmbedFragment as H, parseFieldDefinitions as Ht, desktopOnlyDisplay as I, blockCategoryEnum as It, sectionHeaderFields as J, cardStylingFields as Jt, composeFragments as K, RESOLVED_INTERNAL_LINK_ENTITY_TYPES as Kt, mobileOnlyDisplay as L, createSdkSelectField as Lt, normalizeCardListContent as M, parseInlineTextFromUnknown as Mt, composeHeaderSectionWrapperClassName as N, plainTextToInlineText as Nt, cardListKnobFields as O, parseBlockIconValue as Ot, markEditableSurfaceForwarding as P, DEFAULT_MEDIA_FIELD_KINDS as Pt, styledContainer as Q, layoutField as Qt, normalizeMailingListBlockContent as R, createSiteOptionSelectField as Rt, eventCalendarBlockDefinition as S, lookCarouselRegionTransform as St, FEATURE_CARD_GENERATED_ICON_SIZE_PX as T, lookSkinSlotTransform as Tt, withApiBindings as U, previewCustomizeManifestCurationSchema as Ut, createBlockManifest as V, parseFieldDefinition as Vt, formCopyFragment as W, NodeSchema as Wt, resolveBackgroundColorValue as X, emptyStateField as Xt, sectionHeaderLayoutNodes as Y, columnsField as Yt, styledSection as Z, eventDisplayFields as Zt, checkoutBlockDefinition as _, section as _t, buildLoadedOfferingsPreviewListing as a, createButtonVariantField as an, carousel as at, productListBlockDefinition as b, videoEmbed as bt, accordionItemPartSlots as c, form as ct, resolveAccordionIconStyle as d, inline as dt, containerStylesField as en, backgroundFrame as et, Text as f, link as ft, giftingBlockDefinition as g, richText as gt, sanitizeNewsletterSignupPublicContent as h, repeat as ht, WeeklySlotAvailabilityView as i, createButtonGroup as in, button as it, cardListSectionActionFields as j, inlineTextToPlainText as jt, cardListPhotoNumberFields as k, augmentManifest as kt, accordionLookAttributes as l, headerSection as lt, newsletterSignupBlockDefinition as m, props as mt, runtimeBackedBlockModes as n, BACKGROUND_POSITION_PRESET_VALUES as nn, bind as nt, buildAppointmentServicesView as o, el as ot, SectionNode as p, media as pt, defineFragment as q, linkSchema as qt, runtimeBackedBlockServerEntries as r, getAnchorClasses as rn, bookingForm as rt, HeaderSectionFrame as s, fileDownload as st, serverComponentRegistry as t, sectionStylesField as tn, accordionList as tt, accordionIconColorStyle as u, icon as ut, cartBlockDefinition as v, stack as vt, eventRegistrationBlockDefinition as w, lookQuoteLimitTransform as wt, shopBlockDefinition as x, when as xt, productDetailBlockDefinition as y, text as yt, formBlockDefinition as z, fieldSchema as zt };
11156
+ export { sectionContainer as $, bindingSchema as $t, cardListPresentationBindings as A, coerceInlineTextWithFallback as At, formDataSchema as B, normalizeSelectSource as Bt, eventListingBlockDefinition as C, lookLeadSlotTransform as Ct, cardListSectionAction as D, parseBlockIconValue as Dt, FEATURE_CARD_ICON_TREATMENTS as E, lookSlot as Et, splitPositioningClasses as F, PUBLIC_FILE_FIELD_KINDS as Ft, buildFragmentDataLoaders as G, parseRepeaterGridInteger as Gt, formEmbedFragment as H, parseFieldDefinitions as Ht, desktopOnlyDisplay as I, blockCategoryEnum as It, sectionHeaderFields as J, resolveRepeaterGridColumnFieldId as Jt, composeFragments as K, projectRepeaterGridLayout as Kt, mobileOnlyDisplay as L, createSdkSelectField as Lt, normalizeCardListContent as M, parseInlineTextFromUnknown as Mt, composeHeaderSectionWrapperClassName as N, plainTextToInlineText as Nt, cardListKnobFields as O, PUBLIC_DOWNLOAD_MEDIA_TYPES as Ot, markEditableSurfaceForwarding as P, DEFAULT_MEDIA_FIELD_KINDS as Pt, styledContainer as Q, NodeSchema as Qt, normalizeMailingListBlockContent as R, createSiteOptionSelectField as Rt, eventCalendarBlockDefinition as S, lookCarouselRegionTransform as St, FEATURE_CARD_GENERATED_ICON_SIZE_PX as T, lookSkinSlotTransform as Tt, withApiBindings as U, previewCustomizeManifestCurationSchema as Ut, createBlockManifest as V, parseFieldDefinition as Vt, formCopyFragment as W, buildRepeaterGridLayout as Wt, resolveBackgroundColorValue as X, resolveRepeaterGridRowFieldId as Xt, sectionHeaderLayoutNodes as Y, resolveRepeaterGridColumnsForBreakpoint as Yt, styledSection as Z, resolveRepeaterGridSpanFieldId as Zt, checkoutBlockDefinition as _, section as _t, buildLoadedOfferingsPreviewListing as a, eventDisplayFields as an, carousel as at, productListBlockDefinition as b, videoEmbed as bt, accordionItemPartSlots as c, containerStylesField as cn, form as ct, resolveAccordionIconStyle as d, getAnchorClasses as dn, inline as dt, RESOLVED_INTERNAL_LINK_ENTITY_TYPES as en, backgroundFrame as et, Text as f, createButtonGroup as fn, link as ft, giftingBlockDefinition as g, richText as gt, sanitizeNewsletterSignupPublicContent as h, repeat as ht, WeeklySlotAvailabilityView as i, emptyStateField as in, button as it, cardListSectionActionFields as j, inlineTextToPlainText as jt, cardListPhotoNumberFields as k, augmentManifest as kt, accordionLookAttributes as l, sectionStylesField as ln, headerSection as lt, newsletterSignupBlockDefinition as m, props as mt, runtimeBackedBlockModes as n, cardStylingFields as nn, bind as nt, buildAppointmentServicesView as o, layoutField as on, el as ot, SectionNode as p, createButtonVariantField as pn, media as pt, defineFragment as q, projectRepeaterGridLayoutForRendering as qt, runtimeBackedBlockServerEntries as r, columnsField as rn, bookingForm as rt, HeaderSectionFrame as s, cardStylesField as sn, fileDownload as st, serverComponentRegistry as t, linkSchema as tn, accordionList as tt, accordionIconColorStyle as u, BACKGROUND_POSITION_PRESET_VALUES as un, icon as ut, cartBlockDefinition as v, stack as vt, eventRegistrationBlockDefinition as w, lookQuoteLimitTransform as wt, shopBlockDefinition as x, when as xt, productDetailBlockDefinition as y, text as yt, formBlockDefinition as z, fieldSchema as zt };