@riverbankcms/sdk 0.168.0 → 0.169.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 (192) hide show
  1. package/dist/_dts/{BlocksIslandsHydrator-CiD_VVGM.d.ts → BlocksIslandsHydrator-DpROiz12.d.ts} +1 -1
  2. package/dist/_dts/{Page-Bj6VJRS5.d.ts → Page-DHBBDRC_.d.ts} +7 -7
  3. package/dist/_dts/{SdkPreviewMode-ChpsnwDX.d.ts → SdkPreviewMode-CG7Qib7u.d.ts} +2 -2
  4. package/dist/_dts/{client-C8mfUxrJ.d.ts → client-MURxFla9.d.ts} +39 -397
  5. package/dist/_dts/{content-types-_vXZyR4H.d.ts → content-types-ClBGjxBV.d.ts} +2 -2
  6. package/dist/_dts/{contracts-CJFfrVKU.d.ts → contracts-CHNvzh0y.d.ts} +4 -3
  7. package/dist/_dts/{footerPageOutline-CMegb23G.d.ts → footerPageOutline-DQM934Fm.d.ts} +6 -6
  8. package/dist/_dts/{generatePageMetadata-D9YdAIMh.d.ts → generatePageMetadata-ConZaEqB.d.ts} +2 -2
  9. package/dist/_dts/{index-BQXaZ7aY.d.ts → index-BaDqRekr.d.ts} +4 -4
  10. package/dist/_dts/{index-vR3p9Bu-.d.ts → index-CVB5wgbz.d.ts} +2 -2
  11. package/dist/_dts/{index-Cx2BQlHL.d.ts → index-CiR_oPYT.d.ts} +1 -1
  12. package/dist/_dts/{index-Bpr-wT5k.d.ts → index-CovKPftP.d.ts} +2 -2
  13. package/dist/_dts/{index-Dgz6yhsy.d.ts → index-DCw8LO4M.d.ts} +1 -1
  14. package/dist/_dts/{index-Vh8B9FSa.d.ts → index-DDaX-K2D.d.ts} +1 -1
  15. package/dist/_dts/{index-C7_Rz8EY.d.ts → index-rfAssXq0.d.ts} +3 -3
  16. package/dist/_dts/{loadContent-dhWSgLeS.d.ts → loadContent-CRLKVVDP.d.ts} +7 -7
  17. package/dist/_dts/{request-BrYhNV9Z.d.ts → request-DeVetKBr.d.ts} +1840 -599
  18. package/dist/_dts/{resolveBlockData-BfSHm8Ms.d.ts → resolveBlockData-C5KYFeig.d.ts} +5 -5
  19. package/dist/_dts/{resolvePageContent-gZJ4i1wN.d.ts → resolvePageContent-D8MZWyNO.d.ts} +2 -2
  20. package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
  21. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  22. package/dist/_dts/sdk/src/client.d.ts +7 -7
  23. package/dist/_dts/sdk/src/config/index.d.ts +6 -6
  24. package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
  25. package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
  26. package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
  27. package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
  28. package/dist/_dts/sdk/src/data/types.d.ts +2 -2
  29. package/dist/_dts/sdk/src/index.d.ts +8 -8
  30. package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
  31. package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
  32. package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
  33. package/dist/_dts/sdk/src/next/index.d.ts +7 -7
  34. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  35. package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
  36. package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
  37. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  38. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  39. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  40. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  41. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  42. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
  43. package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
  44. package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
  45. package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
  46. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  47. package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
  48. package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
  49. package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
  50. package/dist/_dts/sdk/src/server.d.ts +5 -5
  51. package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
  52. package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
  53. package/dist/_dts/{types-FOsJ-KYb.d.ts → types-B4MBlP_B.d.ts} +2 -2
  54. package/dist/_dts/{types-BVFXYtRg.d.ts → types-Fj31kIi2.d.ts} +7 -7
  55. package/dist/_dts/{types-BB33-Spd.d.ts → types-OwqfS8Gn.d.ts} +3 -3
  56. package/dist/_dts/{validation-DckTc6TQ.d.ts → validation-B1Fa8o_b.d.ts} +4 -4
  57. package/dist/client/{BlocksIslandsHydrator-DcwEaliO.mjs → BlocksIslandsHydrator-qq4Vhs7k.mjs} +16 -16
  58. package/dist/client/{BookingMailingListNote-Dsugoe-n.mjs → BookingMailingListNote-y3qWjnOo.mjs} +17 -6
  59. package/dist/client/{BookingQuestionFields-Bhh0cvsl.mjs → BookingQuestionFields-DjLjd0vc.mjs} +3 -3
  60. package/dist/client/{CalendarNavigationChevron-CNe3ZjdC.mjs → CalendarNavigationChevron-VM7C2fdh.mjs} +7 -7
  61. package/dist/client/{DemoBookingPortalAccess-BeiZxEUJ.mjs → DemoBookingPortalAccess-C2QCj_Ta.mjs} +65 -9
  62. package/dist/client/{EventCalendar.client-BL943-tl.mjs → EventCalendar.client-DDjz7tuX.mjs} +9 -9
  63. package/dist/client/{EventCombined.client-BFVxECTp.mjs → EventCombined.client-CeYbNsch.mjs} +7 -7
  64. package/dist/client/{EventItem-BIc4gjiD.mjs → EventItem-B5J0IeF4.mjs} +3 -3
  65. package/dist/client/{EventListWeekNavigation-a0QEIEf0.mjs → EventListWeekNavigation-eH04D8-V.mjs} +1 -1
  66. package/dist/client/{EventListing.client-CEFTC3jH.mjs → EventListing.client-slpvrTrM.mjs} +3 -3
  67. package/dist/client/{EventListing.view-Bt2sBBms.mjs → EventListing.view-BYBaElec.mjs} +5 -5
  68. package/dist/client/{EventRegistrationPayment-D9YBNb_E.mjs → EventRegistrationPayment-Do7Q0wRG.mjs} +121 -59
  69. package/dist/client/{LocationMapActions-gqzt5gkW.mjs → LocationMapActions-BFp2uQQQ.mjs} +1 -1
  70. package/dist/client/{MapDrawingSvg-13JQI7_z.mjs → MapDrawingSvg-DDWfmgpA.mjs} +1 -1
  71. package/dist/client/{Page-D_M2Vxz3.mjs → Page-Dv9eIOGr.mjs} +20 -15
  72. package/dist/client/{StepIndicator-CaN8snZ8.mjs → StepIndicator-BZNUd0-v.mjs} +2 -2
  73. package/dist/client/{accordion-DE7OG--d.mjs → accordion-BCtVxnDZ.mjs} +1 -1
  74. package/dist/client/{booking-form.client-CS1PPjw7.mjs → booking-form.client-Cr5G-HHO.mjs} +504 -216
  75. package/dist/client/{bookingForm-DE2CwIU9.mjs → bookingForm-B1Fc62Sl.mjs} +8 -5
  76. package/dist/client/{bookingRoute-Bqlyu5Vb.mjs → bookingRoute-D6DlxYx6.mjs} +6 -2
  77. package/dist/client/bookings.mjs +16 -13
  78. package/dist/client/{carousel-DZyUdnFh.mjs → carousel-DW-HgjvT.mjs} +1 -1
  79. package/dist/client/{cart-D7HkkNwe.mjs → cart-D1zWe4R7.mjs} +3 -3
  80. package/dist/client/{cart.client-H4sv2TpD.mjs → cart.client-CIfbTLHS.mjs} +1 -1
  81. package/dist/client/{checkout-2qVyG-Sh.mjs → checkout-fDCNZ3IT.mjs} +3 -3
  82. package/dist/client/{checkout.client-DAjrBZ74.mjs → checkout.client-C4l2KjtV.mjs} +1 -1
  83. package/dist/client/{checkoutUrls-CYj06rX1.mjs → checkoutUrls-cWL6I-Vz.mjs} +3 -2
  84. package/dist/client/client.mjs +50 -3
  85. package/dist/client/{context-DXmIbXCK.mjs → context-DQnTyApV.mjs} +24 -2
  86. package/dist/client/{bookingQuestionValues-BjcyCru5.mjs → creditProducts-CMOmhWm2.mjs} +71 -11
  87. package/dist/client/{cta-DP_IBnq3.mjs → cta-Bj5WHgcv.mjs} +2 -2
  88. package/dist/client/{dateFormatting-CwrkFZTr.mjs → dateFormatting-Bv6kjUW3.mjs} +1 -1
  89. package/dist/client/{demoPortalMagicLink-DQXK-Fh6.mjs → demoPortalMagicLink-3uVu3WgG.mjs} +1 -1
  90. package/dist/client/{wizardSteps-CFulHWnT.mjs → display-CT8KMSpH.mjs} +893 -68
  91. package/dist/client/{enhanceHeaderSection-DheQj7rg.mjs → enhanceHeaderSection-B27KFGDv.mjs} +3 -2
  92. package/dist/client/{event-details.client-C5UufcRp.mjs → event-details.client-CL4Lqz2c.mjs} +1 -1
  93. package/dist/client/{event-registration.client-CMGg63IU.mjs → event-registration.client-Dj3Kyp5X.mjs} +56 -16
  94. package/dist/client/{eventCalendar-DlD0GCEy.mjs → eventCalendar-DGsdSF8J.mjs} +4 -4
  95. package/dist/client/{eventCombined-DoSi8p_l.mjs → eventCombined-DFSVDJ3D.mjs} +4 -4
  96. package/dist/client/{eventDetails-DzuQYgmO.mjs → eventDetails-DzMskXYA.mjs} +2 -2
  97. package/dist/client/{eventListing-CkiMjl0g.mjs → eventListing-CpFFcAUr.mjs} +4 -4
  98. package/dist/client/{eventRegistration-CjS3Zpjp.mjs → eventRegistration-BipMUOCw.mjs} +8 -5
  99. package/dist/client/{form-DgQqm7T2.mjs → form-57k2JQnm.mjs} +3 -3
  100. package/dist/client/{form.client-BI9Dcsq5.mjs → form.client-CCl6CpRJ.mjs} +4 -4
  101. package/dist/client/{form.parts-DevF0L_A.mjs → form.parts-BOJ1yDDf.mjs} +1 -1
  102. package/dist/client/{formatDate-DDyURjoe.mjs → formatDate-BGlhrmhF.mjs} +1 -1
  103. package/dist/client/gifting/client.mjs +2 -2
  104. package/dist/client/{headerSection-DYIG6Pwb.mjs → headerSection-q_bEzfhW.mjs} +2 -2
  105. package/dist/client/{newsletter-form.client-BWp7Y1e1.mjs → newsletter-form.client-CiqKAmPs.mjs} +5 -5
  106. package/dist/client/{newsletter-form.parts-Dg8s9NwJ.mjs → newsletter-form.parts-x1RzAMNO.mjs} +1 -1
  107. package/dist/client/{newsletterForm-DnPraMzx.mjs → newsletterForm-Cn7h4zFe.mjs} +3 -3
  108. package/dist/client/{noop-ByFRHYQ2.mjs → noop-B_f7RqLD.mjs} +111 -2
  109. package/dist/client/portal/client.mjs +20 -12
  110. package/dist/client/{product-detail.client-BFAgHrdg.mjs → product-detail.client-rWUvpVvZ.mjs} +1 -1
  111. package/dist/client/{product-list.client-DVrs_DyY.mjs → product-list.client-J0wDOmKv.mjs} +1 -1
  112. package/dist/client/{productDetail-D4rvl6Xg.mjs → productDetail-LtCkMrJ0.mjs} +3 -3
  113. package/dist/client/{productList-B8o5AOMX.mjs → productList-C0MLeh-v.mjs} +3 -3
  114. package/dist/client/{propsDecoder-hhotPP6P.mjs → propsDecoder-CAmEkJ6Y.mjs} +3 -3
  115. package/dist/client/{registry.server-Ch3EpupA.mjs → registry.server-Bf2YX_4v.mjs} +22 -19
  116. package/dist/client/rendering/client.mjs +25 -25
  117. package/dist/client/rendering/islands.mjs +1 -1
  118. package/dist/client/rendering.mjs +4 -4
  119. package/dist/client/{richText-coerce-C3LabQ1O.mjs → richText-coerce-BTurYEao.mjs} +1 -1
  120. package/dist/client/{routeIslandApiConfig-CQGlxId8.mjs → routeIslandApiConfig-UdAlnZGQ.mjs} +1 -1
  121. package/dist/client/{shop-rRXplPGZ.mjs → shop-Dkn6EasY.mjs} +3 -3
  122. package/dist/client/{shop-commerce-VDbVaKY-.mjs → shop-commerce-bo0Z6kwf.mjs} +11 -11
  123. package/dist/client/{shop-commerce-store-DqdgJ8Zw.mjs → shop-commerce-store-Ckxa4_jI.mjs} +1 -1
  124. package/dist/client/{shop.client-DdwvMvaK.mjs → shop.client-B_GqU6_U.mjs} +109 -30
  125. package/dist/client/{shop.interactive-C8OvFY06.mjs → shop.interactive-C6L_Ig5F.mjs} +7 -523
  126. package/dist/client/{shopShared-BeuJiGPU.mjs → shopShared-CO1Y8lFd.mjs} +2 -2
  127. package/dist/client/src-BozhJ43Z.mjs +3 -0
  128. package/dist/client/{src-1PJxc8KO.mjs → src-xrjaKaCj.mjs} +6 -8
  129. package/dist/client/{timetableModel-Cko9LRKy.mjs → timetableModel-D62jfOxZ.mjs} +10 -10
  130. package/dist/client/{useAvailableSlots-M6QIEiWf.mjs → useAvailableSlots-CStfVmyY.mjs} +3 -3
  131. package/dist/client/{useDiscountApply-BJSnyO0f.mjs → useDiscountApply-Ca2pHUDu.mjs} +5 -3
  132. package/dist/client/{useDiscountCodeUi-D3XnOSCi.mjs → useDiscountCodeUi-AEifktGO.mjs} +1 -1
  133. package/dist/client/{useEventPagination-PhTIoFVX.mjs → useEventPagination-uxnUWI2v.mjs} +6 -6
  134. package/dist/client/{view-448wvvEY.mjs → view-B6KSxQMO.mjs} +7 -7
  135. package/dist/client/{view-L_mkgtnk.mjs → view-SVnWic7i.mjs} +2 -3
  136. package/dist/preview-next/client/{ArrangementLookControls-BpvnOGlN.mjs → ArrangementLookControls-kbdqYkWM.mjs} +3 -3
  137. package/dist/preview-next/client/{PreviewEditorSidebar-C0OtdWu_.mjs → PreviewEditorSidebar-DI_LhsMQ.mjs} +89 -39
  138. package/dist/preview-next/client/{PreviewEditorUI-Csc5vH5k.mjs → PreviewEditorUI-yyD-ZREP.mjs} +5 -5
  139. package/dist/preview-next/client/{PreviewShell-BOLH_pm-.mjs → PreviewShell-YauP65Gi.mjs} +5 -5
  140. package/dist/preview-next/client/{SdkPreviewModeRuntime-CKodLReY.mjs → SdkPreviewModeRuntime-Bl7jQMI1.mjs} +8 -7
  141. package/dist/preview-next/client/{SiteChromeCustomizeButton-BeEZpeKn.mjs → SiteChromeCustomizeButton-CQFRP9aM.mjs} +1057 -316
  142. package/dist/preview-next/client/{previewAssistantSlot-BBdN5kfY.mjs → previewAssistantSlot-DSR0IdAw.mjs} +417 -56
  143. package/dist/preview-next/client/{previewChromeSurface-VZtGwPuH.mjs → previewChromeSurface-uSnVzeNs.mjs} +1 -1
  144. package/dist/preview-next/client/runtime.mjs +3 -3
  145. package/dist/preview-next/client/{sdk-runtime-kiZkMcuR.mjs → sdk-runtime-6Q0RVJTQ.mjs} +2 -2
  146. package/dist/preview-next/client/{src-DY8JCJdE.mjs → src-DzXUmsyK.mjs} +6 -8
  147. package/dist/preview-next/client/src-LUhVXBEQ.mjs +3 -0
  148. package/dist/preview-next/client/{useAutosaveStatus-BiIHEeE0.mjs → useAutosaveStatus-Cdx3kAGm.mjs} +1 -1
  149. package/dist/preview-next/client/{useBlockCustomizeControls-BuFLIpmX.mjs → useBlockCustomizeControls-ZrWdhcB6.mjs} +1 -1
  150. package/dist/preview-next/client/{useOpenBlockForSetup-DlxYgmh_.mjs → useOpenBlockForSetup-CK-GWb9k.mjs} +1 -1
  151. package/dist/preview-next/keepAlive.mjs +1 -1
  152. package/dist/preview-next/middleware.mjs +1 -1
  153. package/dist/preview-next/{route-contract-C0sCvCYL.mjs → route-contract-BU1m9SV3.mjs} +47 -0
  154. package/dist/server/{Block.shared-Dnhc0Wu5.mjs → Block.shared-4vx7wzxj.mjs} +4 -4
  155. package/dist/server/{ThemeScopeCore-NAQ_zsFu.mjs → ThemeScopeCore-C3HLgqBF.mjs} +6 -3
  156. package/dist/server/{bindings-DLoZYUxG.mjs → bindings-TAQbo2P5.mjs} +1 -1
  157. package/dist/server/{booking-form.reserved-fields-BWRF7509.mjs → booking-form.reserved-fields-Cqp13TKc.mjs} +1 -0
  158. package/dist/server/{client-Bc8jI8zN.mjs → client-DzCxEl3L.mjs} +48 -1
  159. package/dist/server/config-validation.mjs +1 -1
  160. package/dist/server/config.mjs +1 -1
  161. package/dist/server/data/resolveBlockData.mjs +1 -1
  162. package/dist/server/{headerVariant-BwR9NV4b.mjs → headerVariant-8O5MvxIU.mjs} +2 -1
  163. package/dist/server/index.mjs +2 -2
  164. package/dist/server/{loadContent-D61gpqHB.mjs → loadContent-BO1M9Hdf.mjs} +4 -4
  165. package/dist/server/{loadPage-B4ZYpIcd.mjs → loadPage-BvWzmZcD.mjs} +2 -2
  166. package/dist/server/next.mjs +6 -6
  167. package/dist/server/{overrideResolution-CDReKy2P.mjs → overrideResolution-fxuB1zZg.mjs} +1 -1
  168. package/dist/server/page-converter.mjs +1 -1
  169. package/dist/server/{pageRenderPlan-ByVTA7-4.mjs → pageRenderPlan-DzduDSqY.mjs} +2 -2
  170. package/dist/server/{pageRuntimeSupport-Dzz_Dze6.mjs → pageRuntimeSupport-BU8pwTNx.mjs} +2 -2
  171. package/dist/server/{pageShared-Dk5Ku6hs.mjs → pageShared-CSOJ8p8E.mjs} +24 -16
  172. package/dist/server/{parseThemeForPersistence-pJPGfMrf.mjs → parseThemeForPersistence-BebSeE17.mjs} +1 -1
  173. package/dist/server/{prebuild-CW4M0WEZ.mjs → prebuild-C5ZYo7wA.mjs} +1 -1
  174. package/dist/server/prebuild.mjs +1 -1
  175. package/dist/server/{prefetchBlockData-Bvx0SiIM.mjs → prefetchBlockData-BvbxqeKn.mjs} +2 -2
  176. package/dist/server/{registry-Bh0Y25zH.mjs → registry-Fv-7D8o2.mjs} +264 -48
  177. package/dist/server/rendering/components/pageShared.mjs +1 -1
  178. package/dist/server/rendering/helpers/loadPage.mjs +1 -1
  179. package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
  180. package/dist/server/rendering/server.mjs +3 -3
  181. package/dist/server/rendering.mjs +7 -7
  182. package/dist/server/{resolveBlockData-CnHHst9r.mjs → resolveBlockData-xPgkvoWS.mjs} +1 -1
  183. package/dist/server/server.mjs +3 -3
  184. package/dist/server/theme-bridge.mjs +1 -1
  185. package/dist/server/theme.mjs +1 -1
  186. package/dist/server/{validation-D2bHWSxJ.mjs → validation-DddhgNdb.mjs} +4 -4
  187. package/dist/server/{version-DkM1eAxG.mjs → version-D_W2mt8w.mjs} +1 -1
  188. package/dist/styles/index.css +6 -3
  189. package/package.json +1 -1
  190. package/dist/client/creditProducts-BOWi1QLp.mjs +0 -62
  191. package/dist/client/src-CdRISvQp.mjs +0 -3
  192. package/dist/preview-next/client/src-BP8771hw.mjs +0 -3
@@ -1,12 +1,11 @@
1
1
  "use client";
2
2
  import { d as parseUuidBrand, f as err, p as ok } from "./renderableMediaAssetAdmission-BlfqYLJW.mjs";
3
- import { $r as resolveEventRegistrationScopedEvents, $t as registrationDisplaySchema, An as resolveRuntimeEventDestination, Ar as calendarTabViewsSchema, Ba as parseBrevoListId, Bn as selectEventCapacitySource, Et as withOccurrenceTitle, Fa as resolveWholeSeriesRunLifecycle, Fr as eventLayoutSchema, Ga as formatEventPricing, Gr as browserReadAuthoritySchema, H as findPreSelectedEvent, Ha as parseMailchimpInterestId, Hn as groupPublicEventsByRun, Ia as parseMailingListRuntimeContext, Ir as filterAutoShowSchema, Ja as publicEventPricingDisplay, Jr as buildInteractiveIslandProps, Lr as previewStageSchema, Lt as toRegistrationEvents, Ma as nextLiveRunSessionStartMs, Mr as eventButtonVariantSchema, Nr as eventCalendarDefaultViewSchema, Pn as formatRemainingPlaces, Pr as eventCalendarDisplayModeSchema, Qt as placesLeftLabel, Ra as DEFAULT_MAILING_LIST_PRIVACY_NOTE, Rr as registrationButtonVariantSchema, Rt as toWholeSeriesRegistrationEvent, Sn as formatEventCompactDateRail, Ua as parseNewsletterListId, Va as parseMailchimpAudienceId, Vr as blockButtonRoleSchema, W as resolveEventRequiresPayment, Wa as formatBookingPriceDisplay, Wr as resolveDateRuntimeContext, Xi as assertNever, Xr as defineInteractiveIslandMetaKeys, Yr as createInteractiveIslandCodec, Zr as eventRegistrationPageSurfaceSubjectSchema, _a as cardRoleSchema, _n as eventDateOptions, an as computeMediaTransformStyle, c as registrationStepLabelContext, cn as renderVideo, ei as createZodCodec, en as resolveRegistrationDisplay, fn as resolveMediaNodeResponsiveImage, gn as eventDateLocale, hn as eventCalendarWeekStart, ii as listItemPresentation, in as MediaPlaceholder, jr as columnOptionSchema, kr as bookingNowSchema, mt as formatBookingWhen, n as getEventSelectionMode, ni as defineProgressiveBlockRuntime, nn as RichText, o as registrationRoute, oi as listLookSlot, on as mediaImageHostProps, p as isRegistrationLocked, ra as toNonEmptyReadonlyArray, ri as isDecodeSuccess, rn as ImagePresets, s as registrationStepLabel, si as lookListPresentationSchemaShape, sn as renderAudio, t as REGISTRATION_STEP_LABELS, ti as defineClientOwnedBlockRuntime, tn as shownVenue, to as parseEventSeriesId, vi as resolveModeArrangement, vn as eventLocalDateKey, vt as formatRegistrationSchedule, za as DEFAULT_MAILING_LIST_SUCCESS_MESSAGE, zr as weekStartSchema, zt as toWholeSeriesRegistrationEvents } from "./wizardSteps-CFulHWnT.mjs";
4
- import { $t as formatCurrencyAmount, Et as formatDateRange, F as publicEventDestinationSchema, Gt as resolveBookingTimeZoneId, Ht as parseBookingLocalDate, I as publicEventSchema, It as buildBookingUtcDateWindow, Jt as toUtcIsoDateTimeString, Mt as inferSiteDateLocale, S as resolveEventCalendarReadPlan, Tt as formatDate, Vt as getLocalScheduleDate, Wt as resolveBookingBusinessTimeZone, _ as eventListArrangementValues, b as isEventCalendarListLayout, d as calendarWindowPageSchema, dt as eventSurfacePresetValues, ft as eventSurfaceScopeValues, g as eventCalendarVariantMeaning, kt as formatTime, m as eventCalendarListGroupingDecision, n as blockSiteTermsSchema, pt as publicEventLoaderQuerySchemaShape, qt as parseUtcIsoDateTimeString, ut as eventScheduleScopeValues } from "./noop-ByFRHYQ2.mjs";
5
- import { O as assertNever$2, d as assertNever$1 } from "./bookingQuestionValues-BjcyCru5.mjs";
6
- import { d as formatDateKey, l as buildCalendarViewport, r as groupItemsByDate } from "./src-1PJxc8KO.mjs";
3
+ import { Ao as formatEventPricing, Bi as defineClientOwnedBlockRuntime, Bo as parseEventSeriesId, Cn as RichText, Co as DEFAULT_MAILING_LIST_PRIVACY_NOTE, D as registrationStepLabel, Dn as mediaImageHostProps, Do as parseMailchimpInterestId, E as registrationRoute, En as computeMediaTransformStyle, Eo as parseMailchimpAudienceId, Fa as assertNever, Fi as defineInteractiveIslandMetaKeys, Ft as formatBookingWhen, Gi as listLookSlot, Ha as toNonEmptyReadonlyArray, Hi as isDecodeSuccess, Ii as eventRegistrationPageSurfaceSubjectSchema, In as eventCalendarWeekStart, Ki as lookListPresentationSchemaShape, Ln as eventDateLocale, N as isRegistrationLocked, Ni as buildInteractiveIslandProps, Nn as resolveMediaNodeResponsiveImage, No as publicEventPricingDisplay, O as registrationStepLabelContext, On as renderAudio, Oo as parseNewsletterListId, Pi as createInteractiveIslandCodec, Ri as resolveEventRegistrationScopedEvents, Rn as eventDateOptions, S as getEventSelectionMode, Sn as shownVenue, Ti as browserReadAuthoritySchema, Tn as MediaPlaceholder, To as parseBrevoListId, Ui as listItemPresentation, Un as formatEventCompactDateRail, Vi as defineProgressiveBlockRuntime, Zn as resolveRuntimeEventDestination, _i as previewStageSchema, _o as nextLiveRunSessionStartMs, a as buildProductDetailDisplay, an as toWholeSeriesRegistrationEvent, b as resolveSelectedProduct, bn as registrationDisplaySchema, bo as resolveWholeSeriesRunLifecycle, ct as findPreSelectedEvent, di as columnOptionSchema, fi as eventButtonVariantSchema, g as deriveCommerceCheckoutState, gi as filterAutoShowSchema, hi as eventLayoutSchema, in as toRegistrationEvents, ji as pageNavigationSchema, kn as renderVideo, ko as formatBookingPriceDisplay, li as bookingNowSchema, lr as groupPublicEventsByRun, mi as eventCalendarDisplayModeSchema, n as buildCheckoutDisplay, no as cardRoleSchema, o as buildProductListDisplay, on as toWholeSeriesRegistrationEvents, pi as eventCalendarDefaultViewSchema, qt as withOccurrenceTitle, r as buildPassesMembershipsDisplay, ra as resolveModeArrangement, sr as selectEventCapacitySource, t as buildCartDisplay, tr as formatRemainingPlaces, ui as calendarTabViewsSchema, ut as resolveEventRequiresPayment, vi as registrationButtonVariantSchema, wi as resolveDateRuntimeContext, wn as ImagePresets, wo as DEFAULT_MAILING_LIST_SUCCESS_MESSAGE, x as REGISTRATION_STEP_LABELS, xi as blockButtonRoleSchema, xn as resolveRegistrationDisplay, xo as parseMailingListRuntimeContext, yi as weekStartSchema, yn as placesLeftLabel, zi as createZodCodec, zn as eventLocalDateKey, zt as formatRegistrationSchedule } from "./display-CT8KMSpH.mjs";
4
+ import { It as formatTime, Jt as getLocalScheduleDate, L as publicEventDestinationSchema, Mt as formatDate, Nt as formatDateRange, Qt as resolveBookingTimeZoneId, R as publicEventSchema, S as isEventCalendarListLayout, Ut as buildBookingUtcDateWindow, Yt as parseBookingLocalDate, Zt as resolveBookingBusinessTimeZone, _t as eventScheduleScopeValues, bt as publicEventLoaderQuerySchemaShape, dt as publicPassProductSchema, en as parseUtcIsoDateTimeString, ft as publicProductSchema, g as eventCalendarListGroupingDecision, mt as purchasablePublicPassProductSchema, n as blockSiteTermsSchema, o as publicMembershipProductCollectionSchema, p as calendarWindowPageSchema, pt as purchasablePublicMembershipProductSchema, s as publicPassProductCollectionSchema, tn as toUtcIsoDateTimeString, ut as publicMembershipProductSchema, v as eventCalendarVariantMeaning, vt as eventSurfacePresetValues, w as resolveEventCalendarReadPlan, y as eventListArrangementValues, yt as eventSurfaceScopeValues, zt as inferSiteDateLocale } from "./noop-B_f7RqLD.mjs";
5
+ import { M as assertNever$2, h as assertNever$1 } from "./creditProducts-CMOmhWm2.mjs";
6
+ import { d as formatDateKey, l as buildCalendarViewport, r as groupItemsByDate } from "./src-xrjaKaCj.mjs";
7
7
  import { S as clsx, h as ExternalLinkIcon, i as ThemedButtonLink, n as ThemedAuthoredButton } from "./ThemedButton-BdnEwA38.mjs";
8
8
  import { n as getCurrentResolveImageUrlContext } from "./mediaContext-Fusweriw.mjs";
9
- import { n as getCreditProductCreditUnit, t as deriveCreditProductLabels } from "./creditProducts-BOWi1QLp.mjs";
10
9
  import "react";
11
10
  import { z } from "zod";
12
11
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -396,111 +395,6 @@ const EVENT_PRESET_VOCABULARY = {
396
395
  }
397
396
  };
398
397
  //#endregion
399
- //#region ../site-contracts/src/siteData/products.ts
400
- const publicProductVariantSchema = z.object({
401
- id: z.string(),
402
- title: z.string(),
403
- sku: z.string().nullable(),
404
- priceCents: z.number(),
405
- stockQuantity: z.number().nullable(),
406
- soldOut: z.boolean()
407
- });
408
- const publicProductSchema = z.object({
409
- id: z.string(),
410
- contentEntryId: z.string().nullable(),
411
- title: z.string(),
412
- slug: z.string(),
413
- path: z.string().nullable(),
414
- status: z.enum(["draft", "active"]),
415
- priceCents: z.number(),
416
- currency: z.string(),
417
- productType: z.enum(["physical", "digital"]),
418
- requiresShipping: z.boolean(),
419
- hasVariants: z.boolean(),
420
- trackInventory: z.boolean(),
421
- soldOut: z.boolean(),
422
- category: z.object({
423
- id: z.string(),
424
- name: z.string(),
425
- slug: z.string()
426
- }).nullable(),
427
- summary: z.string().nullable(),
428
- body: z.unknown().nullable(),
429
- gallery: z.array(z.object({
430
- url: z.string(),
431
- alt: z.string().nullable()
432
- })),
433
- variants: z.array(publicProductVariantSchema)
434
- });
435
- /**
436
- * Public pass product for shop display
437
- */
438
- const publicPassProductFields = {
439
- id: z.string(),
440
- productUseCase: z.enum(["event_pass", "appointment_package"]).default("event_pass"),
441
- name: z.string(),
442
- description: z.string().nullable(),
443
- price: z.number(),
444
- currency: z.string(),
445
- creditsTotal: z.number(),
446
- pricePerCredit: z.number(),
447
- validDays: z.number().nullable(),
448
- eligibleCategoryIds: z.array(z.string()),
449
- eligibleCategoryNames: z.array(z.string()),
450
- teamMemberSelection: z.discriminatedUnion("kind", [
451
- z.object({ kind: z.literal("any") }),
452
- z.object({
453
- kind: z.literal("owner"),
454
- teamMember: z.object({
455
- id: z.string(),
456
- name: z.string()
457
- })
458
- }),
459
- z.object({
460
- kind: z.literal("choose"),
461
- teamMembers: z.array(z.object({
462
- id: z.string(),
463
- name: z.string()
464
- }))
465
- })
466
- ]).optional()
467
- };
468
- const purchasablePublicPassProductSchema = z.object({
469
- ...publicPassProductFields,
470
- purchaseAvailability: z.literal("purchasable")
471
- });
472
- const publicPassProductSchema = z.discriminatedUnion("purchaseAvailability", [purchasablePublicPassProductSchema, z.object({
473
- ...publicPassProductFields,
474
- purchaseAvailability: z.literal("display_only"),
475
- unavailabilityReason: z.literal("online_payments_unavailable")
476
- })]);
477
- /**
478
- * Public membership product for shop display
479
- */
480
- const publicMembershipProductFields = {
481
- id: z.string(),
482
- name: z.string(),
483
- description: z.string().nullable(),
484
- price: z.number(),
485
- currency: z.string(),
486
- billingInterval: z.enum(["month", "year"]),
487
- eligibleCategoryIds: z.array(z.string()),
488
- eligibleCategoryNames: z.array(z.string())
489
- };
490
- const purchasablePublicMembershipProductSchema = z.object({
491
- ...publicMembershipProductFields,
492
- purchaseAvailability: z.literal("purchasable")
493
- });
494
- const publicMembershipProductSchema = z.discriminatedUnion("purchaseAvailability", [purchasablePublicMembershipProductSchema, z.object({
495
- ...publicMembershipProductFields,
496
- purchaseAvailability: z.literal("display_only"),
497
- unavailabilityReason: z.literal("online_payments_unavailable")
498
- })]);
499
- //#endregion
500
- //#region ../blocks/src/system/blocks/shop.shared.ts
501
- const publicPassProductCollectionSchema = z.object({ passes: z.array(publicPassProductSchema) });
502
- const publicMembershipProductCollectionSchema = z.object({ memberships: z.array(publicMembershipProductSchema) });
503
- //#endregion
504
398
  //#region ../theme-core/src/siteChromePlacement.ts
505
399
  const SITE_CHROME_PLACEMENT_CLASSES = [
506
400
  "rb-sticky",
@@ -3304,6 +3198,7 @@ const eventRegistrationCommonSchemaShape = {
3304
3198
  return parsed.ok ? parsed.value : void 0;
3305
3199
  }),
3306
3200
  siteTerms: blockSiteTermsSchema.optional(),
3201
+ pageNavigation: pageNavigationSchema.optional(),
3307
3202
  siteName: z.string().optional()
3308
3203
  };
3309
3204
  const eventRegistrationEventSourceSchema = z.discriminatedUnion("kind", [z.object({
@@ -3489,6 +3384,7 @@ const eventRegistrationBlockRuntime = defineClientOwnedBlockRuntime({
3489
3384
  siteMemberships: source.siteMemberships ?? null,
3490
3385
  mailingList: source.mailingList,
3491
3386
  siteTerms: source.siteTerms,
3387
+ pageNavigation: source.pageNavigation,
3492
3388
  siteName: source.siteName,
3493
3389
  offeringNoun: resolveOfferingNoun(source, scopedSourceEvents)
3494
3390
  }
@@ -4170,418 +4066,6 @@ function newsletterPrivacyNote(source, privacyNote) {
4170
4066
  //#region ../blocks/src/system/blocks/products/shared.ts
4171
4067
  const publicProductsResponseSchema = z.object({ products: z.array(publicProductSchema) });
4172
4068
  //#endregion
4173
- //#region ../blocks/src/system/runtime/nodes/shop-commerce.shared.ts
4174
- const EMPTY_COMMERCE_CART_STATE = { items: [] };
4175
- const storedProductCartItemSchema = z.object({
4176
- kind: z.literal("product"),
4177
- productId: z.string().min(1),
4178
- productCategoryId: z.string().min(1).optional().nullable(),
4179
- variantId: z.string().min(1).optional().nullable(),
4180
- title: z.string().min(1),
4181
- variantTitle: z.string().optional().nullable(),
4182
- quantity: z.number().finite(),
4183
- unitPriceCents: z.number().finite(),
4184
- currency: z.string().min(1),
4185
- imageUrl: z.string().optional().nullable(),
4186
- soldOut: z.boolean().optional()
4187
- });
4188
- const storedPassCartItemSchema = z.object({
4189
- kind: z.literal("pass"),
4190
- passId: z.string().min(1),
4191
- title: z.string().min(1),
4192
- quantity: z.number().finite().optional(),
4193
- unitPriceCents: z.number().finite(),
4194
- currency: z.string().min(1)
4195
- });
4196
- function toPositiveInteger(value) {
4197
- return Math.max(1, Math.floor(value));
4198
- }
4199
- function productItemKey(productId, variantId) {
4200
- return `product:${productId}:${variantId ?? "base"}`;
4201
- }
4202
- function passItemKey(passId) {
4203
- return `pass:${passId}`;
4204
- }
4205
- function parseStoredCartItem(value) {
4206
- const productResult = storedProductCartItemSchema.safeParse(value);
4207
- if (productResult.success) {
4208
- const item = productResult.data;
4209
- return {
4210
- key: productItemKey(item.productId, item.variantId),
4211
- kind: "product",
4212
- productId: item.productId,
4213
- productCategoryId: item.productCategoryId ?? null,
4214
- ...item.variantId ? { variantId: item.variantId } : {},
4215
- title: item.title,
4216
- variantTitle: item.variantTitle ?? null,
4217
- quantity: toPositiveInteger(item.quantity),
4218
- unitPriceCents: Math.max(0, Math.round(item.unitPriceCents)),
4219
- currency: item.currency,
4220
- imageUrl: item.imageUrl ?? null,
4221
- soldOut: item.soldOut ?? false
4222
- };
4223
- }
4224
- const passResult = storedPassCartItemSchema.safeParse(value);
4225
- if (passResult.success) {
4226
- const item = passResult.data;
4227
- return {
4228
- key: passItemKey(item.passId),
4229
- kind: "pass",
4230
- passId: item.passId,
4231
- title: item.title,
4232
- quantity: 1,
4233
- unitPriceCents: Math.max(0, Math.round(item.unitPriceCents)),
4234
- currency: item.currency
4235
- };
4236
- }
4237
- return null;
4238
- }
4239
- function parseStoredCommerceCartState(raw) {
4240
- if (!raw) return EMPTY_COMMERCE_CART_STATE;
4241
- try {
4242
- const parsed = JSON.parse(raw);
4243
- if (!Array.isArray(parsed.items)) return EMPTY_COMMERCE_CART_STATE;
4244
- return { items: parsed.items.map((item) => parseStoredCartItem(item)).filter((item) => item !== null) };
4245
- } catch {
4246
- return EMPTY_COMMERCE_CART_STATE;
4247
- }
4248
- }
4249
- function buildProductCartItem(input) {
4250
- const variant = input.variantId ? input.product.variants.find((candidate) => candidate.id === input.variantId) ?? null : null;
4251
- return {
4252
- key: productItemKey(input.product.id, variant?.id ?? null),
4253
- kind: "product",
4254
- productId: input.product.id,
4255
- productCategoryId: input.product.category?.id ?? null,
4256
- ...variant?.id ? { variantId: variant.id } : {},
4257
- title: input.product.title,
4258
- variantTitle: variant?.title ?? null,
4259
- quantity: toPositiveInteger(input.quantity ?? 1),
4260
- unitPriceCents: variant?.priceCents ?? input.product.priceCents,
4261
- currency: input.product.currency,
4262
- imageUrl: input.product.gallery[0]?.url ?? null,
4263
- soldOut: variant?.soldOut ?? input.product.soldOut
4264
- };
4265
- }
4266
- function buildPassCartItem(input) {
4267
- return {
4268
- key: passItemKey(input.passId),
4269
- kind: "pass",
4270
- passId: input.passId,
4271
- title: input.title,
4272
- quantity: 1,
4273
- unitPriceCents: Math.max(0, Math.round(input.unitPriceCents)),
4274
- currency: input.currency
4275
- };
4276
- }
4277
- function reduceCommerceCart(state, action) {
4278
- switch (action.type) {
4279
- case "add_product": {
4280
- const existing = state.items.find((item) => item.key === action.item.key);
4281
- if (!existing || existing.kind !== "product") return { items: [...state.items, action.item] };
4282
- return { items: state.items.map((item) => item.key === action.item.key && item.kind === "product" ? {
4283
- ...item,
4284
- quantity: item.quantity + action.item.quantity,
4285
- soldOut: action.item.soldOut ?? item.soldOut
4286
- } : item) };
4287
- }
4288
- case "add_pass":
4289
- if (state.items.some((item) => item.key === action.item.key)) return state;
4290
- return { items: [...state.items, action.item] };
4291
- case "update_quantity": return { items: state.items.map((item) => item.key === action.itemKey && item.kind === "product" ? {
4292
- ...item,
4293
- quantity: toPositiveInteger(action.quantity)
4294
- } : item) };
4295
- case "remove_item": return { items: state.items.filter((item) => item.key !== action.itemKey) };
4296
- case "clear": return EMPTY_COMMERCE_CART_STATE;
4297
- }
4298
- }
4299
- function deriveCommerceCheckoutState(state) {
4300
- if (state.items.length === 0) return { kind: "empty" };
4301
- const currencies = Array.from(new Set(state.items.map((item) => item.currency.toUpperCase())));
4302
- if (currencies.length > 1) return {
4303
- kind: "blocked",
4304
- reason: "mixed_currency"
4305
- };
4306
- return {
4307
- kind: "ready",
4308
- currency: currencies[0] ?? "USD",
4309
- subtotalCents: state.items.reduce((sum, item) => sum + item.unitPriceCents * item.quantity, 0),
4310
- items: state.items
4311
- };
4312
- }
4313
- function resolveSelectedProduct(products, selection) {
4314
- const contentEntry = selection.template.kind === "product" ? selection.contentEntry : null;
4315
- const explicitSlug = selection.productSlug?.trim() || null;
4316
- if (contentEntry?.id) {
4317
- const byEntryId = products.find((product) => product.contentEntryId === contentEntry.id);
4318
- if (byEntryId) return byEntryId;
4319
- }
4320
- if (explicitSlug) {
4321
- const byExplicitSlug = products.find((product) => product.slug === explicitSlug);
4322
- if (byExplicitSlug) return byExplicitSlug;
4323
- }
4324
- if (contentEntry?.slug) {
4325
- const byEntrySlug = products.find((product) => product.slug === contentEntry.slug);
4326
- if (byEntrySlug) return byEntrySlug;
4327
- }
4328
- return null;
4329
- }
4330
- //#endregion
4331
- //#region ../blocks/src/system/runtime/nodes/commerce/shared/display.ts
4332
- function formatCommercePrice(cents, currency) {
4333
- return formatCurrencyAmount(cents, currency);
4334
- }
4335
- function getPassesHeading(passes, explicitHeading) {
4336
- if (explicitHeading) return explicitHeading;
4337
- return deriveCreditProductLabels(passes, { style: "class" }).heading;
4338
- }
4339
- function resolveSelectedVariant(product, selectedVariantId) {
4340
- if (!selectedVariantId) return product.variants[0] ?? null;
4341
- return product.variants.find((candidate) => candidate.id === selectedVariantId) ?? product.variants[0] ?? null;
4342
- }
4343
- function buildProductCardDisplay(product, options, selectedVariantId) {
4344
- const selectedVariant = resolveSelectedVariant(product, selectedVariantId);
4345
- const soldOut = selectedVariant?.soldOut ?? product.soldOut;
4346
- const priceLabel = options.showPrices ? formatCommercePrice(selectedVariant?.priceCents ?? product.priceCents, product.currency) : null;
4347
- const selectionLabel = selectedVariant ? `${product.title} – ${selectedVariant.title}` : product.title;
4348
- return {
4349
- productId: product.id,
4350
- title: product.title,
4351
- path: product.path ?? null,
4352
- summary: options.showSummary ? product.summary : null,
4353
- priceLabel,
4354
- image: product.gallery[0] ? {
4355
- url: product.gallery[0].url,
4356
- alt: product.gallery[0].alt ?? null
4357
- } : null,
4358
- variantOptions: product.variants.map((variant) => ({
4359
- id: variant.id,
4360
- label: variant.title,
4361
- soldOut: variant.soldOut
4362
- })),
4363
- selectedVariantId: selectedVariant?.id ?? null,
4364
- selectionLabel,
4365
- actionLabel: options.addButtonText,
4366
- soldOut
4367
- };
4368
- }
4369
- function buildProductListDisplay(products, options) {
4370
- const cards = products.map((product) => buildProductCardDisplay(product, options));
4371
- return {
4372
- kind: "product-list",
4373
- state: cards.length === 0 ? "empty" : "ready",
4374
- heading: options.heading ?? null,
4375
- className: options.className ?? null,
4376
- layout: options.layout ?? "grid",
4377
- columns: options.columns ?? "3",
4378
- emptyMessage: options.emptyMessage ?? "No products available right now.",
4379
- cards
4380
- };
4381
- }
4382
- function buildProductDetailDisplay(product, options, selectedVariantId) {
4383
- if (!product) return {
4384
- kind: "product-detail",
4385
- state: "empty",
4386
- heading: options.heading ?? null,
4387
- className: options.className ?? null,
4388
- emptyMessage: options.emptyMessage ?? "Product unavailable."
4389
- };
4390
- const selectedVariant = resolveSelectedVariant(product, selectedVariantId);
4391
- const soldOut = selectedVariant?.soldOut ?? product.soldOut;
4392
- return {
4393
- kind: "product-detail",
4394
- state: "ready",
4395
- heading: options.heading ?? null,
4396
- className: options.className ?? null,
4397
- title: product.title,
4398
- priceLabel: formatCommercePrice(selectedVariant?.priceCents ?? product.priceCents, product.currency),
4399
- summary: options.showSummary ? product.summary : null,
4400
- categoryLabel: product.category?.name ?? null,
4401
- gallery: product.gallery.map((image) => ({
4402
- url: image.url,
4403
- alt: image.alt ?? null
4404
- })),
4405
- variantOptions: product.variants.map((variant) => ({
4406
- id: variant.id,
4407
- label: variant.title,
4408
- soldOut: variant.soldOut
4409
- })),
4410
- selectedVariantId: selectedVariant?.id ?? null,
4411
- selectionLabel: selectedVariant ? `${product.title} – ${selectedVariant.title}` : product.title,
4412
- actionLabel: options.addButtonText,
4413
- soldOut,
4414
- body: product.body
4415
- };
4416
- }
4417
- function passCardDisplay(pass, options) {
4418
- const creditUnit = getCreditProductCreditUnit(pass.productUseCase);
4419
- return {
4420
- id: pass.id,
4421
- title: pass.name,
4422
- description: options.showDescriptions ? pass.description : null,
4423
- priceLabel: formatCommercePrice(pass.price, pass.currency),
4424
- ...options.cardList ? {
4425
- priceAmountLabel: formatCurrencyAmount(pass.price, pass.currency, { decimals: "auto" }),
4426
- perCreditAmountLabel: options.showPricePerCredit ? `${formatCurrencyAmount(pass.pricePerCredit, pass.currency, { decimals: "auto" })} a ${creditUnit.perCreditSuffix}` : null
4427
- } : {},
4428
- creditsLabel: `${pass.creditsTotal} ${pass.creditsTotal === 1 ? creditUnit.singular : creditUnit.plural}`,
4429
- perCreditLabel: options.showPricePerCredit ? `${formatCommercePrice(pass.pricePerCredit, pass.currency)}/${creditUnit.perCreditSuffix}` : null,
4430
- validityLabel: options.showValidityPeriod && pass.validDays ? formatValidity(pass.validDays) : null,
4431
- action: pass.purchaseAvailability === "purchasable" ? {
4432
- kind: "purchase",
4433
- label: options.passActionLabel,
4434
- product: pass
4435
- } : {
4436
- kind: "unavailable",
4437
- label: "Online purchasing is unavailable."
4438
- }
4439
- };
4440
- }
4441
- function membershipCardDisplay(membership, options) {
4442
- return {
4443
- id: membership.id,
4444
- title: membership.name,
4445
- description: options.showDescriptions ? membership.description : null,
4446
- priceLabel: formatCommercePrice(membership.price, membership.currency),
4447
- ...options.cardList ? {
4448
- priceAmountLabel: formatCurrencyAmount(membership.price, membership.currency, { decimals: "auto" }),
4449
- priceUnitLabel: `a ${membership.billingInterval}`
4450
- } : {},
4451
- intervalLabel: formatInterval(membership.billingInterval),
4452
- action: membership.purchaseAvailability === "purchasable" ? {
4453
- kind: "purchase",
4454
- label: options.membershipActionLabel,
4455
- product: membership
4456
- } : {
4457
- kind: "unavailable",
4458
- label: "Online purchasing is unavailable."
4459
- }
4460
- };
4461
- }
4462
- function buildPassesMembershipsDisplay(options) {
4463
- const passes = options.passes.map((pass) => passCardDisplay(pass, options));
4464
- const memberships = options.memberships.map((membership) => membershipCardDisplay(membership, options));
4465
- return {
4466
- kind: "passes-memberships",
4467
- state: passes.length === 0 && memberships.length === 0 ? "empty" : "ready",
4468
- className: options.className ?? null,
4469
- layout: options.layout ?? "grid",
4470
- columns: options.columns ?? "2",
4471
- emptyMessage: options.emptyMessage ?? "No products available at this time.",
4472
- passesHeading: getPassesHeading(options.passes, options.passesHeading),
4473
- membershipsHeading: options.membershipsHeading ?? "Memberships",
4474
- passes,
4475
- memberships
4476
- };
4477
- }
4478
- function buildCartDisplay(items, options) {
4479
- if (items.length === 0) return {
4480
- kind: "cart",
4481
- state: "empty",
4482
- heading: options.heading ?? null,
4483
- className: options.className ?? null,
4484
- emptyMessage: options.emptyMessage ?? "Your cart is empty.",
4485
- supportText: options.supportText ?? null,
4486
- items: [],
4487
- subtotalLabel: null,
4488
- checkoutButtonText: options.checkoutButtonText ?? "Go to checkout",
4489
- clearButtonText: options.clearButtonText ?? "Clear cart"
4490
- };
4491
- const itemsDisplay = items.map((item) => ({
4492
- key: item.key,
4493
- title: item.kind === "product" && item.variantTitle ? `${item.title} – ${item.variantTitle}` : item.title,
4494
- priceLabel: `${formatCommercePrice(item.unitPriceCents, item.currency)} each`,
4495
- quantity: item.quantity,
4496
- quantityEditable: item.kind === "product"
4497
- }));
4498
- const checkoutState = deriveCommerceCheckoutState({ items: [...items] });
4499
- return {
4500
- kind: "cart",
4501
- state: "ready",
4502
- heading: options.heading ?? null,
4503
- className: options.className ?? null,
4504
- emptyMessage: options.emptyMessage ?? "Your cart is empty.",
4505
- supportText: null,
4506
- items: itemsDisplay,
4507
- subtotalLabel: checkoutState.kind === "ready" ? formatCommercePrice(checkoutState.subtotalCents, checkoutState.currency) : null,
4508
- checkoutButtonText: options.checkoutButtonText ?? "Go to checkout",
4509
- clearButtonText: options.clearButtonText ?? "Clear cart"
4510
- };
4511
- }
4512
- function buildCheckoutDisplay(checkoutState, options) {
4513
- if (checkoutState.kind === "empty") return {
4514
- kind: "checkout",
4515
- state: "empty",
4516
- heading: options.heading ?? null,
4517
- className: options.className ?? null,
4518
- message: options.emptyMessage ?? "Add something to your cart to continue.",
4519
- submitButtonText: options.submitButtonText ?? "Checkout"
4520
- };
4521
- if (checkoutState.kind === "blocked") return {
4522
- kind: "checkout",
4523
- state: "blocked",
4524
- heading: options.heading ?? null,
4525
- className: options.className ?? null,
4526
- message: checkoutState.reason === "mixed_currency" ? "Mixed-currency carts are not supported." : "Checkout is unavailable for this cart.",
4527
- submitButtonText: options.submitButtonText ?? "Checkout"
4528
- };
4529
- return {
4530
- kind: "checkout",
4531
- state: "ready",
4532
- heading: options.heading ?? null,
4533
- className: options.className ?? null,
4534
- message: null,
4535
- submitButtonText: options.submitButtonText ?? "Checkout"
4536
- };
4537
- }
4538
- function formatInterval(interval) {
4539
- return interval === "month" ? "/month" : "/year";
4540
- }
4541
- function formatValidity(days) {
4542
- if (days === 1) return "Valid for 1 day";
4543
- if (days < 30) return `Valid for ${days} days`;
4544
- if (days === 30) return "Valid for 1 month";
4545
- if (days === 365) return "Valid for 1 year";
4546
- return `Valid for ${Math.round(days / 30)} months`;
4547
- }
4548
- const membershipClassesLabel = "Unlimited classes";
4549
- function passCardListContent(display) {
4550
- return {
4551
- id: display.id,
4552
- title: display.title,
4553
- text: display.description,
4554
- price: {
4555
- amount: display.priceAmountLabel ?? display.priceLabel,
4556
- unit: display.creditsLabel
4557
- },
4558
- facts: [...display.validityLabel ? [{
4559
- label: "Validity",
4560
- value: display.validityLabel
4561
- }] : [], ...display.perCreditLabel ? [{
4562
- label: "Price per credit",
4563
- value: display.perCreditAmountLabel ?? display.perCreditLabel
4564
- }] : []],
4565
- action: { label: display.action.label }
4566
- };
4567
- }
4568
- function membershipCardListContent(display) {
4569
- return {
4570
- id: display.id,
4571
- title: display.title,
4572
- text: display.description,
4573
- price: {
4574
- amount: display.priceAmountLabel ?? display.priceLabel,
4575
- unit: display.priceUnitLabel ?? display.intervalLabel
4576
- },
4577
- facts: [{
4578
- label: "Classes",
4579
- value: membershipClassesLabel
4580
- }],
4581
- action: { label: display.action.label }
4582
- };
4583
- }
4584
- //#endregion
4585
4069
  //#region ../blocks/src/system/runtime/nodes/shop.pass-contract.ts
4586
4070
  const passCardDisplaySchema = z.object({
4587
4071
  id: z.string(),
@@ -5161,4 +4645,4 @@ function shopProductPresentation(hydration, productId, index, count) {
5161
4645
  };
5162
4646
  }
5163
4647
  //#endregion
5164
- export { OFFERINGS_PREVIEW_DEFAULT_BUTTON_TEXT as $, MediaNodeServer as $t, parseStoredCommerceCartState as A, sameMailingListPlacementTargeting as An, combinedLookSchema as At, giftingBlockRuntime as B, toEventPaginationLoadError as Bt, membershipCardListContent as C, publicMembershipProductCollectionSchema as Cn, buildEventCalendarInteractiveIslandProps as Ct, buildPassCartItem as D, parseMailingListPlacementTargeting as Dn, eventCalendarInteractiveIslandPropsCodec as Dt, EMPTY_COMMERCE_CART_STATE as E, assessMailingListTargeting as En, eventCalendarBlockRuntime as Et, buildNewsletterFormInteractiveIslandProps as F, eventPageOperationQuery as Ft, formInteractiveIslandPropsCodec as G, normalizeCsvString as Gt, publicGiftingOffersResponseSchema as H, buildEventRuntimeFilters as Ht, newsletterBlockSubmissionMessage as I, eventPaginationLoadReducer as It, displayButtonText as J, listingEventCardProps as Jt, buildEventRegistrationDisplayFromScopedEvents as K, normalizeOptionalId as Kt, newsletterFormBlockRuntime as L, getEventIdentity as Lt, reduceCommerceCart as M, eventListingBlockRuntime as Mt, publicProductsResponseSchema as N, eventListingInteractiveIslandPropsCodec as Nt, buildProductCartItem as O, parseMailingListVisitorSelection as On, projectRecurringSchedule as Ot, NEWSLETTER_SIGNUPS_PAUSED_MESSAGE as P, createInitialEventPaginationLoadState as Pt, OFFERINGS_PREVIEW_AUTHORABLE_SOURCE_KEYS as Q, selectCardListPresentation as Qt, newsletterFormInteractiveIslandPropsCodec as R, getEventPaginationView as Rt, formatInterval as S, splitSiteChromePlacementClasses as Sn, eventCombinedInteractiveIslandPropsCodec as St, passCardListContent as T, buildMailingListSignupBlockSourceRef as Tn, buildEventCalendarListingRender as Tt, buildFormInteractiveIslandProps as U, getEventRuntimeFiltersKey as Ut, giftingInteractiveIslandPropsCodec as V, toError as Vt, formBlockRuntime as W, normalizeCsvIds as Wt, eventRegistrationInteractiveIslandPropsCodec as X, CardListLeadDate as Xt, eventRegistrationBlockRuntime as Y, CardListContentPart as Yt, offeringNounForEvent as Z, resolveCardListSchedule as Zt, shopProductPresentation as _, isHeaderScrollRuntimeEnabled as _n, formatBookingSchedulePresentation as _t, buildShopInteractiveIslandProps as a, weekColumnDays as an, normalizeOfferingsPreviewContentForWrite as at, buildProductDetailDisplay as b, parseHeaderPositioning as bn, buildEventCombinedListingDisplay as bt, checkoutBlockRuntime as c, formatEventPriceDisplay as cn, resolveOfferingsPreviewGroupCta as ct, productDetailBlockRuntime as d, normalizeEventStaffMemberId as dn, DEFAULT_BOOKING_BUTTON_TEXT as dt, getCardOrientation as en, OFFERINGS_PREVIEW_DEFAULT_EMPTY_MESSAGE as et, productDetailInteractiveIslandPropsCodec as f, normalizeEventSurfacePresets as fn, bookingBarPlacement as ft, shopInteractiveIslandPropsCodec as g, headerChromeRuntimeContractSchema as gn, bookingPanelHeading as gt, shopBlockRuntime as h, resolveEventSelection as hn, bookingEntryProgress as ht, buildProductListInteractiveIslandProps as i, eventListWeekDays as in, isOfferingsPreviewSourceKey as it, productItemKey as j, parseContentVersionId as jn, buildEventListingInteractiveIslandProps as jt, deriveCommerceCheckoutState as k, DEFAULT_MAILING_LIST_TARGETING as kn, recurringScheduleProjectionSchema as kt, checkoutInteractiveIslandPropsCodec as l, normalizeEventCategoryIds as ln, resolveOfferingsPreviewGroups as lt, productListInteractiveIslandPropsCodec as m, normalizeEventVenueId as mn, bookingEntry as mt, buildCheckoutInteractiveIslandProps as n, Grid as nn, OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS as nt, cartBlockRuntime as o, formatEventPrice as on, normalizeOfferingsPreviewItemLimit as ot, productListBlockRuntime as p, normalizeEventSurfaceScope as pn, bookingCardEntry as pt, buildEventRegistrationInteractiveIslandProps as q, catalogueEventCardProps as qt, buildProductDetailInteractiveIslandProps as r, buildEventListWeek as rn, buildOfferingsPreviewListing as rt, cartInteractiveIslandPropsCodec as s, formatEventPriceAmount as sn, offeringsListingFor as st, buildCartInteractiveIslandProps as t, getContainerClass as tn, OFFERINGS_PREVIEW_DEFAULT_FAILED_MESSAGE as tt, getShopDisplayForItems as u, normalizeEventScheduleScope as un, resolveOfferingsRenderInput as ut, buildCartDisplay as v, resolveHeaderChromeRuntimeContract as vn, occurrenceContextSchema as vt, membershipClassesLabel as w, publicPassProductCollectionSchema as wn, buildEventCalendarListingDisplay as wt, formatCommercePrice as x, planSiteChromePlacement as xn, eventCombinedBlockRuntime as xt, buildProductCardDisplay as y, staticHeaderChromeRuntime as yn, buildEventCombinedInteractiveIslandProps as yt, buildGiftingInteractiveIslandProps as z, planEventPageOperation as zt };
4648
+ export { bookingEntry as $, normalizeEventVenueId as $t, formInteractiveIslandPropsCodec as A, normalizeCsvString as At, OFFERINGS_PREVIEW_DEFAULT_FAILED_MESSAGE as B, getContainerClass as Bt, newsletterFormInteractiveIslandPropsCodec as C, getEventPaginationView as Ct, publicGiftingOffersResponseSchema as D, buildEventRuntimeFilters as Dt, giftingInteractiveIslandPropsCodec as E, toError as Et, eventRegistrationInteractiveIslandPropsCodec as F, CardListLeadDate as Ft, normalizeOfferingsPreviewItemLimit as G, formatEventPrice as Gt, buildOfferingsPreviewListing as H, buildEventListWeek as Ht, offeringNounForEvent as I, resolveCardListSchedule as It, resolveOfferingsPreviewGroups as J, normalizeEventCategoryIds as Jt, offeringsListingFor as K, formatEventPriceAmount as Kt, OFFERINGS_PREVIEW_AUTHORABLE_SOURCE_KEYS as L, selectCardListPresentation as Lt, buildEventRegistrationInteractiveIslandProps as M, catalogueEventCardProps as Mt, displayButtonText as N, listingEventCardProps as Nt, buildFormInteractiveIslandProps as O, getEventRuntimeFiltersKey as Ot, eventRegistrationBlockRuntime as P, CardListContentPart as Pt, bookingCardEntry as Q, normalizeEventSurfaceScope as Qt, OFFERINGS_PREVIEW_DEFAULT_BUTTON_TEXT as R, MediaNodeServer as Rt, newsletterFormBlockRuntime as S, getEventIdentity as St, giftingBlockRuntime as T, toEventPaginationLoadError as Tt, isOfferingsPreviewSourceKey as U, eventListWeekDays as Ut, OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS as V, Grid as Vt, normalizeOfferingsPreviewContentForWrite as W, weekColumnDays as Wt, DEFAULT_BOOKING_BUTTON_TEXT as X, normalizeEventStaffMemberId as Xt, resolveOfferingsRenderInput as Y, normalizeEventScheduleScope as Yt, bookingBarPlacement as Z, normalizeEventSurfacePresets as Zt, shopProductPresentation as _, eventListingBlockRuntime as _t, buildShopInteractiveIslandProps as a, parseHeaderPositioning as an, buildEventCombinedListingDisplay as at, buildNewsletterFormInteractiveIslandProps as b, eventPageOperationQuery as bt, checkoutBlockRuntime as c, buildMailingListSignupBlockSourceRef as cn, buildEventCalendarInteractiveIslandProps as ct, productDetailBlockRuntime as d, parseMailingListVisitorSelection as dn, eventCalendarBlockRuntime as dt, resolveEventSelection as en, bookingEntryProgress as et, productDetailInteractiveIslandPropsCodec as f, DEFAULT_MAILING_LIST_TARGETING as fn, eventCalendarInteractiveIslandPropsCodec as ft, shopInteractiveIslandPropsCodec as g, buildEventListingInteractiveIslandProps as gt, shopBlockRuntime as h, combinedLookSchema as ht, buildProductListInteractiveIslandProps as i, staticHeaderChromeRuntime as in, buildEventCombinedInteractiveIslandProps as it, buildEventRegistrationDisplayFromScopedEvents as j, normalizeOptionalId as jt, formBlockRuntime as k, normalizeCsvIds as kt, checkoutInteractiveIslandPropsCodec as l, assessMailingListTargeting as ln, buildEventCalendarListingDisplay as lt, productListInteractiveIslandPropsCodec as m, parseContentVersionId as mn, recurringScheduleProjectionSchema as mt, buildCheckoutInteractiveIslandProps as n, isHeaderScrollRuntimeEnabled as nn, formatBookingSchedulePresentation as nt, cartBlockRuntime as o, planSiteChromePlacement as on, eventCombinedBlockRuntime as ot, productListBlockRuntime as p, sameMailingListPlacementTargeting as pn, projectRecurringSchedule as pt, resolveOfferingsPreviewGroupCta as q, formatEventPriceDisplay as qt, buildProductDetailInteractiveIslandProps as r, resolveHeaderChromeRuntimeContract as rn, occurrenceContextSchema as rt, cartInteractiveIslandPropsCodec as s, splitSiteChromePlacementClasses as sn, eventCombinedInteractiveIslandPropsCodec as st, buildCartInteractiveIslandProps as t, headerChromeRuntimeContractSchema as tn, bookingPanelHeading as tt, getShopDisplayForItems as u, parseMailingListPlacementTargeting as un, buildEventCalendarListingRender as ut, publicProductsResponseSchema as v, eventListingInteractiveIslandPropsCodec as vt, buildGiftingInteractiveIslandProps as w, planEventPageOperation as wt, newsletterBlockSubmissionMessage as x, eventPaginationLoadReducer as xt, NEWSLETTER_SIGNUPS_PAUSED_MESSAGE as y, createInitialEventPaginationLoadState as yt, OFFERINGS_PREVIEW_DEFAULT_EMPTY_MESSAGE as z, getCardOrientation as zt };
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { t as BlockApiProvider } from "./context-DXmIbXCK.mjs";
2
+ import { t as BlockApiProvider } from "./context-DQnTyApV.mjs";
3
3
  import { t as mountReactIsland } from "./reactMount-BGJVsHRb.mjs";
4
- import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-CQGlxId8.mjs";
4
+ import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-UdAlnZGQ.mjs";
5
5
  import "react";
6
6
  import { jsx } from "react/jsx-runtime";
7
7
  //#region src/rendering/islands/enhancers/shopShared.tsx
@@ -0,0 +1,3 @@
1
+ "use client";
2
+ import { t as renderCalendarFeedIcs } from "./src-xrjaKaCj.mjs";
3
+ export { renderCalendarFeedIcs };
@@ -252,7 +252,8 @@ const DEFAULT_BOUNDS = {
252
252
  maxEndHour: 23,
253
253
  defaultStartHour: 6,
254
254
  defaultEndHour: 21,
255
- minHeightPercent: 2.5
255
+ minHeightPercent: 2.5,
256
+ marginMinutes: 0
256
257
  };
257
258
  function buildTimetableModel(input) {
258
259
  const bounds = resolveBounds(input.bounds);
@@ -432,11 +433,8 @@ function buildCell(entry, lane, rangeStartMinutes, rangeMinutes, minHeightPercen
432
433
  }
433
434
  function resolveBounds(bounds) {
434
435
  return {
435
- minStartHour: bounds?.minStartHour ?? DEFAULT_BOUNDS.minStartHour,
436
- maxEndHour: bounds?.maxEndHour ?? DEFAULT_BOUNDS.maxEndHour,
437
- defaultStartHour: bounds?.defaultStartHour ?? DEFAULT_BOUNDS.defaultStartHour,
438
- defaultEndHour: bounds?.defaultEndHour ?? DEFAULT_BOUNDS.defaultEndHour,
439
- minHeightPercent: bounds?.minHeightPercent ?? DEFAULT_BOUNDS.minHeightPercent
436
+ ...DEFAULT_BOUNDS,
437
+ ...bounds
440
438
  };
441
439
  }
442
440
  function resolveHourRange(segments, bounds) {
@@ -446,8 +444,8 @@ function resolveHourRange(segments, bounds) {
446
444
  };
447
445
  const earliestStart = Math.min(...segments.map((segment) => segment.startsAtMinutes));
448
446
  const latestEnd = Math.max(...segments.map((segment) => segment.endsAtMinutes));
449
- const startHour = Math.max(bounds.minStartHour, Math.floor(earliestStart / 60));
450
- const endHour = Math.min(bounds.maxEndHour, Math.ceil(latestEnd / 60));
447
+ const startHour = Math.max(bounds.minStartHour, Math.floor((earliestStart - bounds.marginMinutes) / 60));
448
+ const endHour = Math.min(bounds.maxEndHour, Math.ceil((latestEnd + bounds.marginMinutes) / 60));
451
449
  return {
452
450
  startHour,
453
451
  endHour: Math.max(startHour + 1, endHour)