@riverbankcms/sdk 0.159.0 → 0.160.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 (194) hide show
  1. package/README.md +4 -4
  2. package/dist/_dts/{BlocksIslandsHydrator-Cj1i1Yhh.d.ts → BlocksIslandsHydrator-CoqeotCL.d.ts} +1 -1
  3. package/dist/_dts/{Page-Cgzbv22M.d.ts → Page-C0ENVLCF.d.ts} +13 -6
  4. package/dist/_dts/{SdkPreviewMode-BC_FGc6b.d.ts → SdkPreviewMode-jZK0A49V.d.ts} +54 -126
  5. package/dist/_dts/{client-BOK-YHVJ.d.ts → client-uMMuPq9V.d.ts} +1 -1
  6. package/dist/_dts/{content-types-CsrYWxq_.d.ts → content-types-D6nXGqdQ.d.ts} +18 -18
  7. package/dist/_dts/{contracts-ClgMD-9g.d.ts → contracts-Bnmj1nxu.d.ts} +6 -5
  8. package/dist/_dts/{footerPageOutline-C_IDuELl.d.ts → footerPageOutline-CeLjFX8b.d.ts} +6 -6
  9. package/dist/_dts/{generatePageMetadata-B7bhYSWx.d.ts → generatePageMetadata-nyU8q02J.d.ts} +2 -2
  10. package/dist/_dts/{index-DzUdUaJ-.d.ts → index-BaaGBY1v.d.ts} +2 -2
  11. package/dist/_dts/{index-CcaG6O13.d.ts → index-Bg64CkV-.d.ts} +4 -4
  12. package/dist/_dts/index-Blwl7yl6.d.ts +13 -0
  13. package/dist/_dts/{index-DMOfW1A7.d.ts → index-C5xslEBn.d.ts} +2 -2
  14. package/dist/_dts/{index-Dt3XSGzY.d.ts → index-CEaKil7G.d.ts} +2 -2
  15. package/dist/_dts/{index-BZ4fb2zz.d.ts → index-DahMwisK.d.ts} +3 -3
  16. package/dist/_dts/index-lkpjIg5i.d.ts +66 -0
  17. package/dist/_dts/{index-Ci1PEk82.d.ts → index-nVoi_74l.d.ts} +2 -2
  18. package/dist/_dts/{loadContent-C1JI2pG0.d.ts → loadContent-CYLmzvLq.d.ts} +16 -7
  19. package/dist/_dts/{resolvePageContent-BtRUtrJa.d.ts → resolvePageContent-DqnxChOs.d.ts} +2 -2
  20. package/dist/_dts/{constants-DkcKHMX-.d.ts → runtime-BY8DQBbT.d.ts} +10 -16
  21. package/dist/_dts/{hosted-booking-appearance-ChGCQYdQ.d.ts → schema-D0bNcPWK.d.ts} +6907 -6762
  22. package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
  23. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  24. package/dist/_dts/sdk/src/client.d.ts +12 -6
  25. package/dist/_dts/sdk/src/config/index.d.ts +6 -6
  26. package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
  27. package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
  28. package/dist/_dts/sdk/src/index.d.ts +8 -8
  29. package/dist/_dts/sdk/src/manifest/index.d.ts +6 -6
  30. package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
  31. package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
  32. package/dist/_dts/sdk/src/next/index.d.ts +7 -7
  33. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  34. package/dist/_dts/sdk/src/page-converter/index.d.ts +10 -28
  35. package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
  36. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  37. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  38. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  39. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  40. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  41. package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
  42. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  43. package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
  44. package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
  45. package/dist/_dts/sdk/src/server.d.ts +5 -5
  46. package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
  47. package/dist/_dts/{types-CI9dYWJ8.d.ts → types-CFrYuXYP.d.ts} +2 -2
  48. package/dist/_dts/{navigation-BnV_hOZy.d.ts → types-D8czmbQF.d.ts} +15911 -17318
  49. package/dist/_dts/{types--oWXIfyz.d.ts → types-DSgmJ15W.d.ts} +7 -7
  50. package/dist/_dts/{types-CMFIZGUI.d.ts → types-Dm-KW7nj.d.ts} +10 -13
  51. package/dist/_dts/{validation-Ct-GL0eA.d.ts → validation-Bmb4WnHg.d.ts} +4 -4
  52. package/dist/client/{BlocksIslandsHydrator-DKS8Ba30.mjs → BlocksIslandsHydrator-DZRKi6tT.mjs} +17 -17
  53. package/dist/client/{BookingMailingListNote-Cg9v6d7Y.mjs → BookingMailingListNote-C00sLLdL.mjs} +2 -2
  54. package/dist/client/{CalendarNavigationChevron-BoVCTUXy.mjs → CalendarNavigationChevron-CHSi9b3E.mjs} +6 -6
  55. package/dist/client/{CheckboxChoice-BF9eCNno.mjs → CheckboxChoice-Bhm6RAUL.mjs} +1 -1
  56. package/dist/client/{DemoBookingPortalAccess-BxRVCJG3.mjs → DemoBookingPortalAccess-CaN-7ui7.mjs} +6 -6
  57. package/dist/client/{DemoPortalSignInLink-DHxYgkT6.mjs → DemoPortalSignInLink-ClxN5_xZ.mjs} +1 -1
  58. package/dist/client/{EventCalendar.client-BI-kvwXf.mjs → EventCalendar.client-BncvSa1n.mjs} +10 -9
  59. package/dist/client/{EventCombined.client-DIvnoN5l.mjs → EventCombined.client-DluBxVVu.mjs} +8 -8
  60. package/dist/client/{EventEmbeddedCheckoutStep-B3XUyNY9.mjs → EventEmbeddedCheckoutStep-BiJrMtfp.mjs} +1 -1
  61. package/dist/client/{EventItem-BRMtEaa6.mjs → EventItem-CXhnT9pF.mjs} +11 -6
  62. package/dist/client/{EventListWeekNavigation-B8DzAUDa.mjs → EventListWeekNavigation-V-dtoDlD.mjs} +1 -1
  63. package/dist/client/{EventListing.client-Bo4qzQi0.mjs → EventListing.client-DPO6SZbx.mjs} +3 -3
  64. package/dist/client/{EventListing.view-D2vemnCx.mjs → EventListing.view-B-Yi5JZS.mjs} +7 -7
  65. package/dist/client/{EventRegistrationPayment-e5XWtygG.mjs → EventRegistrationPayment-Dc3Fnlnw.mjs} +77 -96
  66. package/dist/client/{LeafletStaticMap-dlapZ6mi.mjs → LeafletStaticMap-ClZCCzAm.mjs} +1 -1
  67. package/dist/client/{Page-Dqpv9Ggi.mjs → Page-7PkzO04N.mjs} +1941 -2069
  68. package/dist/client/{StepIndicator-BrvKa_8H.mjs → StepIndicator-DiD6euZ8.mjs} +3 -3
  69. package/dist/client/{TabBarFragment-DvzIV75f.mjs → TabBarFragment-BHd8GN8y.mjs} +1 -1
  70. package/dist/client/{ThemedButton-DVBC_pS9.mjs → ThemedButton-C22C9cCF.mjs} +174 -93
  71. package/dist/client/{accordion-ByLpb4Dz.mjs → accordion-2m27DsIk.mjs} +1 -1
  72. package/dist/client/{booking-form.client-BLndwxpx.mjs → booking-form.client-BddWV5w1.mjs} +12 -12
  73. package/dist/client/{bookingForm-CTxTEgHX.mjs → bookingForm-bcdXQjmw.mjs} +4 -4
  74. package/dist/client/bookings.mjs +6 -6
  75. package/dist/client/{carousel-C8ef0vnT.mjs → carousel-D7nj9I0y.mjs} +2 -2
  76. package/dist/client/{carousel.client-BJGoJVtg.mjs → carousel.client-AffDJo_s.mjs} +1 -1
  77. package/dist/client/{cart-BpH6jkUO.mjs → cart-PN6yCw1H.mjs} +3 -3
  78. package/dist/client/{cart.client-DV78Td13.mjs → cart.client-D4t1f0cJ.mjs} +1 -1
  79. package/dist/client/{checkout-BJVb2RpL.mjs → checkout-CsTwXVSb.mjs} +3 -3
  80. package/dist/client/{checkout.client-CqGPXPSm.mjs → checkout.client-BhQE3zY7.mjs} +1 -1
  81. package/dist/client/client.mjs +25 -13
  82. package/dist/client/{context-BRgBWthI.mjs → context-BLAvalAa.mjs} +1 -1
  83. package/dist/client/{cta-D8ucLsvX.mjs → cta-CUXhX_D7.mjs} +2 -1
  84. package/dist/client/{dateFormatting-LeKNQ-iX.mjs → dateFormatting-BHIHxNuo.mjs} +1 -1
  85. package/dist/client/{demoPortalMagicLink-CjstiFPh.mjs → demoPortalMagicLink-R-awbk_0.mjs} +1 -1
  86. package/dist/client/{enhanceHeaderSection-BaQJyI9x.mjs → enhanceHeaderSection-9Q93uvTo.mjs} +3 -3
  87. package/dist/client/{event-details.client-CYNQYOsP.mjs → event-details.client-BS1WtG-a.mjs} +2 -2
  88. package/dist/client/{event-registration.client-DDqSpN36.mjs → event-registration.client-BXndwsET.mjs} +14 -14
  89. package/dist/client/{eventCalendar-3vQtuC9X.mjs → eventCalendar-HyoOt1Qz.mjs} +4 -4
  90. package/dist/client/{eventCombined-CEJFMjqV.mjs → eventCombined-sdG5oEaH.mjs} +4 -4
  91. package/dist/client/{eventDetails-nGh47jef.mjs → eventDetails-FFAknE4w.mjs} +2 -2
  92. package/dist/client/{eventListing-BL3Ptb83.mjs → eventListing-CGK6urk3.mjs} +4 -4
  93. package/dist/client/{eventRegistration-DDSO6KB2.mjs → eventRegistration-VhrvCs4l.mjs} +4 -4
  94. package/dist/client/{form-DjNLfy2Z.mjs → form-C-B5O_ko.mjs} +3 -3
  95. package/dist/client/{form.client-Cj0By6ot.mjs → form.client-DoZVcl8d.mjs} +5 -5
  96. package/dist/client/{form.parts-DyA9C5Hy.mjs → form.parts-mttKpgif.mjs} +3 -3
  97. package/dist/client/{formatDate-CZo0MPTA.mjs → formatDate-xUSCknEO.mjs} +1 -1
  98. package/dist/client/gifting/client.mjs +3 -3
  99. package/dist/client/{headerSection-JjSq6Mzp.mjs → headerSection-BHUEXsaI.mjs} +2 -2
  100. package/dist/client/{location-map.client-DRN1JePj.mjs → location-map.client-Cylb_MHw.mjs} +2 -2
  101. package/dist/client/{location-map.view-CuCvQdvp.mjs → location-map.view-Cx4Bl7ij.mjs} +69 -6
  102. package/dist/client/{locationMap-B9srHHzZ.mjs → locationMap-QnKJi-nZ.mjs} +2 -2
  103. package/dist/client/{newsletter-form.client-C2EgEBP1.mjs → newsletter-form.client-D_n0rftg.mjs} +8 -8
  104. package/dist/client/{newsletter-form.parts-CaldoFmi.mjs → newsletter-form.parts-DKHye4IE.mjs} +2 -2
  105. package/dist/client/{newsletterForm-hm7L17LM.mjs → newsletterForm-tEaYelzx.mjs} +3 -3
  106. package/dist/client/{noop-M8FTSgm2.mjs → noop-B610YKEx.mjs} +10 -3
  107. package/dist/client/portal/client.mjs +4559 -114
  108. package/dist/client/{product-detail.client-y86uwzEI.mjs → product-detail.client-DUf5x5Jt.mjs} +1 -1
  109. package/dist/client/{product-list.client-_JBndYZT.mjs → product-list.client-Cqp1BPTV.mjs} +1 -1
  110. package/dist/client/{productDetail-D-9fb2cW.mjs → productDetail-B8bBiogP.mjs} +3 -3
  111. package/dist/client/{productList-BSRlnwBW.mjs → productList-BKN4D-1z.mjs} +3 -3
  112. package/dist/client/{propsDecoder-DhbGL302.mjs → propsDecoder-2nNZh2Oe.mjs} +3 -3
  113. package/dist/client/{registry.server-BaX0hxf5.mjs → registry.server-BAm4RPNJ.mjs} +819 -855
  114. package/dist/client/rendering/client.mjs +27 -26
  115. package/dist/client/rendering/islands.mjs +1 -1
  116. package/dist/client/rendering.mjs +47 -28
  117. package/dist/client/{richText-coerce-Cny2Ukb6.mjs → richText-coerce-Cv-qomNB.mjs} +1 -1
  118. package/dist/client/{routeIslandApiConfig-96er7pIx.mjs → routeIslandApiConfig-C5u8MbAA.mjs} +1 -1
  119. package/dist/client/{shop-CnIJfdZA.mjs → shop-DZNC0VKk.mjs} +3 -3
  120. package/dist/client/{shop-commerce-CsLwzq5O.mjs → shop-commerce-DdX4LSa3.mjs} +12 -12
  121. package/dist/client/{shop-commerce-store--O8GRBwr.mjs → shop-commerce-store-BJtrZov9.mjs} +1 -1
  122. package/dist/client/{shop.client-BcaJ-acA.mjs → shop.client-DmDd-igg.mjs} +15 -15
  123. package/dist/client/{shop.interactive-BxL_bshW.mjs → shop.interactive-5SnnDHz3.mjs} +368 -35
  124. package/dist/client/{shopShared-VZjPOfCX.mjs → shopShared-CPqUlAh9.mjs} +2 -2
  125. package/dist/client/{src-7cXhT0G_.mjs → src-VIsPY-kw.mjs} +6 -1
  126. package/dist/client/timetableModel-C19rcHEw.mjs +960 -0
  127. package/dist/client/{useAvailableSlots-pTXuY3jV.mjs → useAvailableSlots-BjbJXotk.mjs} +3 -3
  128. package/dist/client/{useBookingNowIso-D14J-EhJ.mjs → useBookingNowIso-CMgfL7YJ.mjs} +1 -1
  129. package/dist/client/{useDiscountApply-o5sIVZ2u.mjs → useDiscountApply-KG8jB7WC.mjs} +2 -2
  130. package/dist/client/{useDiscountCodeUi-DJhFP_rg.mjs → useDiscountCodeUi-DK2w_i0a.mjs} +1 -1
  131. package/dist/client/{useEventPagination-DMmNf2FP.mjs → useEventPagination-DW6MCirb.mjs} +11 -10
  132. package/dist/client/uuid-BETKW8rS.mjs +12 -0
  133. package/dist/client/{view-BgPql2yH2.mjs → view-CkUn3Y0Y.mjs} +4 -4
  134. package/dist/client/{view-D1R3Lk05.mjs → view-CseyBW07.mjs} +6 -5
  135. package/dist/client/{wizardSteps-C0TsNqJc.mjs → wizardSteps-zgq10lN1.mjs} +162 -30
  136. package/dist/preview-next/before-render.mjs +1 -1
  137. package/dist/preview-next/client/{EventEmbeddedCheckoutStep-BFlBqSu4.mjs → EventEmbeddedCheckoutStep-lUHBrzHv.mjs} +1 -1
  138. package/dist/preview-next/client/{PreviewEditorSidebar-DADCj_ET.mjs → PreviewEditorSidebar-DWyUGCAG.mjs} +1281 -171
  139. package/dist/preview-next/client/{PreviewEditorUI-La40Dmmh.mjs → PreviewEditorUI-Wq0b3Daw.mjs} +52 -79
  140. package/dist/preview-next/client/{SdkPreviewModeRuntime-CWN44I_B.mjs → SdkPreviewModeRuntime-BtZPcwYV.mjs} +1 -1
  141. package/dist/preview-next/client/{SdkPreviewModeRuntime-406Hw9zY.mjs → SdkPreviewModeRuntime-wSI_R361.mjs} +856 -2171
  142. package/dist/preview-next/client/{SiteChromeCustomizeContext-BdwEZoo9.mjs → SiteChromeCustomizeContext-Hc4pYnNe.mjs} +115951 -110090
  143. package/dist/preview-next/client/{ThemedButton-BEOPss9H.mjs → ThemedButton-DzeycIlD.mjs} +204 -93
  144. package/dist/preview-next/client/{previewChromeSurface-BVUKIYG0.mjs → previewChromeSurface-Corq4AG7.mjs} +3 -8
  145. package/dist/preview-next/client/runtime.mjs +3 -3
  146. package/dist/preview-next/client/{sdk-runtime-Cy9AKPy5.mjs → sdk-runtime-CWymRWhK.mjs} +1 -1
  147. package/dist/preview-next/client/siteStyleAccess-QZkJRHl5.mjs +1359 -0
  148. package/dist/preview-next/client/{spinner-Bhpzz2vO.mjs → spinner-C4If5Y-O.mjs} +1 -1
  149. package/dist/preview-next/editor-base.css +62 -0
  150. package/dist/preview-next/editor-chrome.css +85 -0
  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-DM22uOXM.mjs → route-contract-8csADeIT.mjs} +149 -112
  154. package/dist/server/{Block.shared-DB6fb1pR.mjs → Block.shared-D1_gonwM.mjs} +6 -6
  155. package/dist/server/{bindings-z2daXp-2.mjs → bindings-CFmJg5lm.mjs} +2 -2
  156. package/dist/server/{client-Cv-osXoU.mjs → client-DPsi0Dai.mjs} +9 -7
  157. package/dist/server/config-template-validation.mjs +50 -10
  158. package/dist/server/config-validation.mjs +1 -1
  159. package/dist/server/config.mjs +2 -2
  160. package/dist/server/index.mjs +2 -2
  161. package/dist/server/{loadContent-BNMDYCm8.mjs → loadContent-RMCcuVU_.mjs} +33 -20
  162. package/dist/server/loadPage-DUPP51C-.mjs +2 -0
  163. package/dist/server/{loadPage-CjA_F_AF.mjs → loadPage-DhDGzj7t.mjs} +8 -5
  164. package/dist/server/manifest.mjs +1 -1
  165. package/dist/server/next.mjs +9 -9
  166. package/dist/server/{overrideResolution-CGodrtqi.mjs → overrideResolution-OxY5FMuy.mjs} +1 -1
  167. package/dist/server/{overrides-DxRC724a.mjs → overrides-Bz_A6sB9.mjs} +651 -542
  168. package/dist/server/page-converter.mjs +8 -10
  169. package/dist/server/{prebuild-C6bhjRKT.mjs → prebuild-B_1vrSru.mjs} +1 -1
  170. package/dist/server/prebuild.mjs +1 -1
  171. package/dist/server/{prefetchBlockData-DZ5Fq_-r.mjs → prefetchBlockData-B7ukYXXR.mjs} +841 -887
  172. package/dist/server/{publicProducts-C3meXS2o.mjs → publicProducts-Djbpc81A.mjs} +166 -129
  173. package/dist/server/{blocks-BaG8Qpaa.mjs → registry-eFjKtEhF.mjs} +2049 -1451
  174. package/dist/server/rendering/server.mjs +4 -4
  175. package/dist/server/rendering.mjs +7 -7
  176. package/dist/server/{resolveBlockData-CbGDakvp.mjs → resolveBlockData-DYvEa9c5.mjs} +6 -3
  177. package/dist/server/routing.mjs +1 -1
  178. package/dist/server/{schema-Bs735S27.mjs → schema-C3dJ5UkL.mjs} +148 -88
  179. package/dist/server/server.mjs +3 -3
  180. package/dist/server/{siteChromeOverlayClearance-BangtD8A.mjs → siteChromeOverlayClearance-DALIAMwo.mjs} +108 -11
  181. package/dist/server/{src-B935_bzN.mjs → src-C5Mu-z0F.mjs} +268 -189
  182. package/dist/server/theme-bridge.mjs +1 -1
  183. package/dist/server/theme.mjs +1 -1
  184. package/dist/server/{themeAdmission-DK2YBNqy.mjs → themeAdmission-ruoyXb_0.mjs} +2 -2
  185. package/dist/server/{three-pass-converter-CmmchOFC.mjs → three-pass-converter-Chnb1XD-.mjs} +2 -58
  186. package/dist/server/{validation-BtHE2S_D.mjs → validation-B-Xar8QS.mjs} +22 -63
  187. package/dist/server/{version-CNCdL6id.mjs → version-Bg7VHK3i.mjs} +1 -1
  188. package/dist/styles/index.css +78 -0
  189. package/package.json +8 -3
  190. package/dist/_dts/index-CXsnaCGe.d.ts +0 -10
  191. package/dist/_dts/index-cnymEAZY.d.ts +0 -1
  192. package/dist/client/timetableModel-D09jPdue.mjs +0 -480
  193. package/dist/preview-next/client/siteStyleAccess-CFMmoMZb.mjs +0 -1326
  194. package/dist/server/loadPage-jade28Xh.mjs +0 -2
@@ -1,9 +1,10 @@
1
1
  "use client";
2
2
  import { d as formatDateKey, l as buildCalendarViewport } from "./src-1PJxc8KO.mjs";
3
3
  import { T as ok, d as parseEventSeriesId, l as parseContentVersionId, w as err } from "./renderableMediaAssetAdmission-DGjBr_e-.mjs";
4
- import { Cn as toNonEmptyReadonlyArray, Mr as formatCurrencyAmount, S as clsx, Ut as cardRoleSchema, an as assertNever, h as ExternalLinkIcon, i as ThemedButtonLink, n as ThemedAuthoredButton } from "./ThemedButton-DVBC_pS9.mjs";
5
- import { Ar as defineProgressiveBlockRuntime, Bi as parseNewsletterListId, Bt as registrationDisplaySchema, Cr as createInteractiveIslandCodec, Dr as resolveEventRegistrationScopedEvents, Fi as DEFAULT_MAILING_LIST_SUCCESS_MESSAGE, Fr as lookListPresentationSchemaShape, Gi as publicEventPricingDisplay, H as findPreSelectedEvent, Hi as formatEventPricing, Ht as shownVenue, It as toRegistrationEvents, Jt as MediaPlaceholder, Kt as RichText, Li as parseBrevoListId, Lt as toWholeSeriesRegistrationEvent, Mi as resolveWholeSeriesRunLifecycle, Mr as listItemPresentation, Ni as parseMailingListRuntimeContext, Nn as groupPublicEventsByRun, Or as createZodCodec, Pr as listLookSlot, Qt as renderVideo, Ri as parseMailchimpAudienceId, Rt as toWholeSeriesRegistrationEvents, Sr as buildInteractiveIslandProps, Tn as formatRemainingPlaces, Tr as eventRegistrationPageSurfaceSubjectSchema, Tt as withOccurrenceTitle, Ut as browserReadAuthoritySchema, Vi as formatBookingPriceDisplay, Vt as resolveRegistrationDisplay, W as resolveEventRequiresPayment, Xi as assertNever$1, Xt as mediaImageHostProps, Yt as computeMediaTransformStyle, Zt as renderAudio, _t as formatRegistrationSchedule, c as registrationStepLabelContext, cn as eventDateOptions, cr as columnOptionSchema, dr as eventCalendarDisplayModeSchema, fr as eventLayoutSchema, gr as weekStartSchema, hr as registrationButtonVariantSchema, jn as selectEventCapacitySource, jr as isDecodeSuccess, ki as nextLiveRunSessionStartMs, kr as defineClientOwnedBlockRuntime, lr as eventButtonVariantSchema, mr as previewStageSchema, n as getEventSelectionMode, nn as resolveMediaNodeResponsiveImage, o as registrationRoute, on as eventCalendarWeekStart, or as bookingNowSchema, p as isRegistrationLocked, pn as formatEventCompactDateRail, pr as filterAutoShowSchema, pt as formatBookingWhen, qr as resolveModeArrangement, qt as ImagePresets, s as registrationStepLabel, sn as eventDateLocale, sr as calendarTabViewsSchema, t as REGISTRATION_STEP_LABELS, ur as eventCalendarDefaultViewSchema, vr as blockButtonRoleSchema, wr as defineInteractiveIslandMetaKeys, xn as resolveRuntimeEventDestination, xr as resolveDateRuntimeContext, zi as parseMailchimpInterestId, zt as placesLeftLabel } from "./wizardSteps-C0TsNqJc.mjs";
6
- import { A as eventScheduleScopeValues, B as normalizeIdList, C as eventCalendarVariantMeaning, Ct as toUtcIsoDateTimeString, D as isEventCalendarListLayout, F as normalizeEventStaffMemberId, H as publicEventLoaderQuerySchemaShape, L as normalizeEventSurfacePresetsCsv, N as normalizeEventCategoryIdsCsv, P as normalizeEventScheduleScope, R as normalizeEventSurfaceScope, U as publicEventSchema, at as formatTime, bt as resolveBookingTimeZoneId, ht as getLocalScheduleDate, j as eventSurfaceScopeValues, k as resolveEventCalendarReadPlan, n as blockSiteTermsSchema, nt as formatDateRange, p as calendarWindowPageSchema, st as inferSiteDateLocale, ut as buildBookingUtcDateWindow, vt as parseUtcIsoDateTimeString, w as eventListArrangementValues, y as eventCalendarListGroupingDecision, yt as resolveBookingBusinessTimeZone, z as normalizeEventVenueId } from "./noop-M8FTSgm2.mjs";
4
+ import { C as clsx, Nr as formatCurrencyAmount, Wt as cardRoleSchema, g as ExternalLinkIcon, i as ThemedButtonLink, n as ThemedAuthoredButton, on as assertNever, wn as toNonEmptyReadonlyArray } from "./ThemedButton-C22C9cCF.mjs";
5
+ import { c as assertNever$1 } from "./src-VIsPY-kw.mjs";
6
+ import { Ar as defineProgressiveBlockRuntime, Bi as parseNewsletterListId, Bt as registrationDisplaySchema, Cr as createInteractiveIslandCodec, Dr as resolveEventRegistrationScopedEvents, Fi as DEFAULT_MAILING_LIST_SUCCESS_MESSAGE, Fr as lookListPresentationSchemaShape, Gi as publicEventPricingDisplay, H as findPreSelectedEvent, Hi as formatEventPricing, Ht as shownVenue, It as toRegistrationEvents, Jt as MediaPlaceholder, Kt as RichText, Li as parseBrevoListId, Lt as toWholeSeriesRegistrationEvent, Mi as resolveWholeSeriesRunLifecycle, Mr as listItemPresentation, Ni as parseMailingListRuntimeContext, Nn as groupPublicEventsByRun, Or as createZodCodec, Pr as listLookSlot, Qt as renderVideo, Ri as parseMailchimpAudienceId, Rt as toWholeSeriesRegistrationEvents, Sr as buildInteractiveIslandProps, Tn as formatRemainingPlaces, Tr as eventRegistrationPageSurfaceSubjectSchema, Tt as withOccurrenceTitle, Ut as browserReadAuthoritySchema, Vi as formatBookingPriceDisplay, Vt as resolveRegistrationDisplay, W as resolveEventRequiresPayment, Xt as mediaImageHostProps, Yt as computeMediaTransformStyle, Zt as renderAudio, _t as formatRegistrationSchedule, c as registrationStepLabelContext, cn as eventDateOptions, cr as columnOptionSchema, dr as eventCalendarDisplayModeSchema, fr as eventLayoutSchema, gr as weekStartSchema, hr as registrationButtonVariantSchema, jn as selectEventCapacitySource, jr as isDecodeSuccess, ki as nextLiveRunSessionStartMs, kr as defineClientOwnedBlockRuntime, lr as eventButtonVariantSchema, mr as previewStageSchema, n as getEventSelectionMode, nn as resolveMediaNodeResponsiveImage, o as registrationRoute, on as eventCalendarWeekStart, or as bookingNowSchema, p as isRegistrationLocked, pn as formatEventCompactDateRail, pr as filterAutoShowSchema, pt as formatBookingWhen, qr as resolveModeArrangement, qt as ImagePresets, s as registrationStepLabel, sn as eventDateLocale, sr as calendarTabViewsSchema, t as REGISTRATION_STEP_LABELS, ur as eventCalendarDefaultViewSchema, vr as blockButtonRoleSchema, wr as defineInteractiveIslandMetaKeys, xn as resolveRuntimeEventDestination, xr as resolveDateRuntimeContext, zi as parseMailchimpInterestId, zt as placesLeftLabel } from "./wizardSteps-zgq10lN1.mjs";
7
+ import { A as eventScheduleScopeValues, B as normalizeIdList, C as eventCalendarVariantMeaning, Ct as toUtcIsoDateTimeString, D as isEventCalendarListLayout, F as normalizeEventStaffMemberId, H as publicEventLoaderQuerySchemaShape, L as normalizeEventSurfacePresetsCsv, N as normalizeEventCategoryIdsCsv, P as normalizeEventScheduleScope, R as normalizeEventSurfaceScope, U as publicEventSchema, V as publicEventDestinationSchema, at as formatTime, bt as resolveBookingTimeZoneId, ht as getLocalScheduleDate, j as eventSurfaceScopeValues, k as resolveEventCalendarReadPlan, n as blockSiteTermsSchema, nt as formatDateRange, p as calendarWindowPageSchema, st as inferSiteDateLocale, ut as buildBookingUtcDateWindow, vt as parseUtcIsoDateTimeString, w as eventListArrangementValues, y as eventCalendarListGroupingDecision, yt as resolveBookingBusinessTimeZone, z as normalizeEventVenueId } from "./noop-B610YKEx.mjs";
7
8
  import { n as getCurrentResolveImageUrlContext } from "./mediaContext-DThoeEBU.mjs";
8
9
  import { n as getCreditProductCreditUnit, t as deriveCreditProductLabels } from "./creditProducts-BOWi1QLp.mjs";
9
10
  import "react";
@@ -1207,7 +1208,11 @@ function normalizeCsvString(value) {
1207
1208
  //#endregion
1208
1209
  //#region ../blocks/src/system/runtime/nodes/events/shared/listOptions.ts
1209
1210
  const eventPageSizeValues = [
1211
+ 1,
1212
+ 2,
1210
1213
  3,
1214
+ 4,
1215
+ 5,
1211
1216
  6,
1212
1217
  10,
1213
1218
  12,
@@ -1216,7 +1221,11 @@ const eventPageSizeValues = [
1216
1221
  30
1217
1222
  ];
1218
1223
  const eventPageSizeSchema = z.union([
1224
+ z.literal(1),
1225
+ z.literal(2),
1219
1226
  z.literal(3),
1227
+ z.literal(4),
1228
+ z.literal(5),
1220
1229
  z.literal(6),
1221
1230
  z.literal(10),
1222
1231
  z.literal(12),
@@ -1232,15 +1241,20 @@ function resolveEventPageSize(value, fallback = 12) {
1232
1241
  function resolveEventCalendarListPageSize(input) {
1233
1242
  return resolveEventPageSize(input.eventsPerPage);
1234
1243
  }
1235
- const eventListPaginationActionSchema = z.discriminatedUnion("kind", [z.object({
1236
- kind: z.literal("loadMore"),
1237
- label: z.string()
1238
- }), z.object({
1239
- kind: z.literal("seeAllLink"),
1240
- label: z.string(),
1241
- href: z.string()
1242
- })]);
1244
+ const eventListPaginationActionSchema = z.discriminatedUnion("kind", [
1245
+ z.object({ kind: z.literal("none") }),
1246
+ z.object({
1247
+ kind: z.literal("loadMore"),
1248
+ label: z.string()
1249
+ }),
1250
+ z.object({
1251
+ kind: z.literal("seeAllLink"),
1252
+ label: z.string(),
1253
+ href: z.string()
1254
+ })
1255
+ ]);
1243
1256
  function resolveEventListPaginationAction(input) {
1257
+ if (input.paginationMode === "none") return { kind: "none" };
1244
1258
  const label = input.loadMoreText?.trim() || input.defaultLabel || "Load more events";
1245
1259
  const href = input.seeAllUrl?.trim();
1246
1260
  if (input.paginationMode === "seeAllLink" && href) return {
@@ -1317,7 +1331,11 @@ const eventCollectionSourceSchemaShape = {
1317
1331
  listLayout: eventLayoutSchema.optional(),
1318
1332
  listColumns: columnOptionSchema.optional(),
1319
1333
  eventsPerPage: z.string().optional(),
1320
- paginationMode: z.enum(["loadMore", "seeAllLink"]).optional(),
1334
+ paginationMode: z.enum([
1335
+ "loadMore",
1336
+ "seeAllLink",
1337
+ "none"
1338
+ ]).optional(),
1321
1339
  seeAllUrl: z.string().optional(),
1322
1340
  loadMoreText: z.string().optional(),
1323
1341
  startOfWeek: weekStartSchema.optional(),
@@ -1327,6 +1345,7 @@ const eventCollectionSourceSchemaShape = {
1327
1345
  showVenue: z.boolean().nullable().optional(),
1328
1346
  showMap: z.boolean().nullable().optional(),
1329
1347
  showCapacity: z.boolean().nullable().optional(),
1348
+ showPhotos: z.boolean().nullable().optional(),
1330
1349
  cardRole: cardRoleSchema.optional(),
1331
1350
  buttonVariant: eventButtonVariantSchema.optional(),
1332
1351
  buttonText: z.string().optional(),
@@ -1359,6 +1378,7 @@ const eventCollectionDisplaySchemaShape = {
1359
1378
  showVenue: z.boolean(),
1360
1379
  showMap: z.boolean(),
1361
1380
  showCapacity: z.boolean(),
1381
+ showPhotos: z.boolean().optional(),
1362
1382
  cardRole: cardRoleSchema,
1363
1383
  buttonVariant: eventButtonVariantSchema,
1364
1384
  buttonText: z.string(),
@@ -1383,7 +1403,7 @@ const eventCollectionHydrationSchema = z.object({
1383
1403
  function buildEventCollectionDisplay(source) {
1384
1404
  return {
1385
1405
  ...buildEventCollectionFilterDisplay(source),
1386
- sectionAction: eventSectionAction(source),
1406
+ ...buildEventCollectionListDisplay(source),
1387
1407
  panelHeading: source.panelHeading,
1388
1408
  lookSlots: source.lookSlots,
1389
1409
  itemActionStyle: source.itemActionStyle,
@@ -1391,18 +1411,27 @@ function buildEventCollectionDisplay(source) {
1391
1411
  roleSurfaces: source.roleSurfaces,
1392
1412
  itemSurfaces: source.itemSurfaces,
1393
1413
  ...buildEventCollectionPresentationDisplay(source),
1414
+ startOfWeek: eventCalendarWeekStart(resolveBookingBusinessTimeZone(source.bookingTimeZone ?? source.calendarWindow?.scope.timeZone), source.startOfWeek),
1415
+ calendarTabViews: source.calendarTabViews ?? "both",
1416
+ defaultCalendarView: source.defaultCalendarView ?? "month"
1417
+ };
1418
+ }
1419
+ function buildEventCollectionListDisplay(source) {
1420
+ const paginationAction = resolveEventListPaginationAction({
1421
+ paginationMode: source.paginationMode,
1422
+ seeAllUrl: source.seeAllUrl,
1423
+ loadMoreText: source.loadMoreText
1424
+ });
1425
+ return {
1394
1426
  events: Array.isArray(source.events) ? [...source.events] : [],
1395
1427
  listLayout: source.listLayout ?? "stack",
1396
1428
  listColumns: source.listColumns ?? "3",
1397
1429
  eventsPerPage: source.lookSlots !== void 0 && source.listLayout === "compact" ? 3 : resolveEventCalendarListPageSize({ eventsPerPage: source.eventsPerPage }),
1398
- paginationAction: resolveEventListPaginationAction({
1399
- paginationMode: source.paginationMode,
1400
- seeAllUrl: source.seeAllUrl,
1401
- loadMoreText: source.loadMoreText
1402
- }),
1403
- startOfWeek: eventCalendarWeekStart(resolveBookingBusinessTimeZone(source.bookingTimeZone ?? source.calendarWindow?.scope.timeZone), source.startOfWeek),
1404
- calendarTabViews: source.calendarTabViews ?? "both",
1405
- defaultCalendarView: source.defaultCalendarView ?? "month"
1430
+ paginationAction,
1431
+ sectionAction: paginationAction.kind === "seeAllLink" ? {
1432
+ href: paginationAction.href,
1433
+ label: paginationAction.label
1434
+ } : void 0
1406
1435
  };
1407
1436
  }
1408
1437
  function buildEventCollectionFilterDisplay(source) {
@@ -1436,6 +1465,7 @@ function buildEventCollectionPresentationDisplay(source) {
1436
1465
  showVenue: source.showVenue ?? true,
1437
1466
  showMap: source.showMap ?? true,
1438
1467
  showCapacity: source.showCapacity ?? true,
1468
+ showPhotos: source.showPhotos ?? true,
1439
1469
  cardRole: source.cardRole ?? "default",
1440
1470
  buttonVariant: source.buttonVariant ?? "primary",
1441
1471
  buttonText: source.buttonText ?? "Book",
@@ -1481,18 +1511,11 @@ function buildEventCollectionListingDisplay(display, prefetchedEvents, className
1481
1511
  showVenue: display.showVenue,
1482
1512
  showMap: display.showMap,
1483
1513
  showCapacity: display.showCapacity,
1514
+ showPhotos: display.showPhotos,
1484
1515
  orientation: getCardOrientation(display.listLayout),
1485
1516
  events: initialEvents
1486
1517
  };
1487
1518
  }
1488
- /** Existing pagination fields also supply the optional arrangement section action. */
1489
- function eventSectionAction(source) {
1490
- const href = source.seeAllUrl?.trim();
1491
- return (source.lookSlots || source.paginationMode === "seeAllLink") && href ? {
1492
- href,
1493
- label: source.loadMoreText?.trim() || "See the full timetable"
1494
- } : void 0;
1495
- }
1496
1519
  //#endregion
1497
1520
  //#region ../blocks/src/system/runtime/nodes/events/EventListing.interactive.ts
1498
1521
  const cardOrientationSchema = z.enum(["vertical", "horizontal"]);
@@ -1507,7 +1530,11 @@ const eventListingSourceSchema = z.object({
1507
1530
  layout: z.enum(eventListArrangementValues).optional(),
1508
1531
  columns: columnOptionSchema.optional(),
1509
1532
  eventsPerPage: z.string().optional(),
1510
- paginationMode: z.enum(["loadMore", "seeAllLink"]).optional(),
1533
+ paginationMode: z.enum([
1534
+ "loadMore",
1535
+ "seeAllLink",
1536
+ "none"
1537
+ ]).optional(),
1511
1538
  seeAllUrl: z.string().optional(),
1512
1539
  loadMoreText: z.string().optional(),
1513
1540
  cardRole: cardRoleSchema.optional(),
@@ -1539,6 +1566,7 @@ const eventListingDisplaySchema = z.object({
1539
1566
  showVenue: z.boolean(),
1540
1567
  showMap: z.boolean(),
1541
1568
  showCapacity: z.boolean(),
1569
+ showPhotos: z.boolean().optional(),
1542
1570
  orientation: cardOrientationSchema,
1543
1571
  events: z.array(publicEventSchema)
1544
1572
  });
@@ -1649,9 +1677,296 @@ function buildEventListingInteractiveIslandProps(props) {
1649
1677
  });
1650
1678
  }
1651
1679
  //#endregion
1680
+ //#region ../blocks/src/system/blocks/events/recurring-schedule-projection.ts
1681
+ const weekdayOrder = [
1682
+ "Monday",
1683
+ "Tuesday",
1684
+ "Wednesday",
1685
+ "Thursday",
1686
+ "Friday",
1687
+ "Saturday",
1688
+ "Sunday"
1689
+ ];
1690
+ const weekdayCodeOrder = [
1691
+ "MO",
1692
+ "TU",
1693
+ "WE",
1694
+ "TH",
1695
+ "FR",
1696
+ "SA",
1697
+ "SU"
1698
+ ];
1699
+ const recurringScheduleWeekdaySchema = z.enum(weekdayOrder);
1700
+ const recurringScheduleSeriesIdSchema = z.string().transform((value, context) => {
1701
+ const parsed = parseEventSeriesId(value);
1702
+ if (parsed.ok) return parsed.value;
1703
+ context.addIssue({
1704
+ code: "custom",
1705
+ message: "Expected a valid event series ID"
1706
+ });
1707
+ return z.NEVER;
1708
+ });
1709
+ const recurringScheduleProjectionSchema = z.object({
1710
+ items: z.array(z.object({
1711
+ seriesId: recurringScheduleSeriesIdSchema,
1712
+ title: z.string(),
1713
+ venueName: z.string().nullable(),
1714
+ cadence: z.object({
1715
+ kind: z.literal("weekly"),
1716
+ weekday: recurringScheduleWeekdaySchema,
1717
+ weekdays: z.array(recurringScheduleWeekdaySchema).min(1).readonly().optional(),
1718
+ weekdayIndex: z.number().int().min(0).max(6),
1719
+ startTime: z.string(),
1720
+ endTime: z.string(),
1721
+ timeZone: z.string()
1722
+ }).readonly(),
1723
+ booking: z.discriminatedUnion("kind", [z.object({
1724
+ kind: z.literal("available"),
1725
+ destination: publicEventDestinationSchema
1726
+ }).readonly(), z.object({
1727
+ kind: z.literal("unavailable"),
1728
+ reason: z.literal("missing_destination")
1729
+ }).readonly()])
1730
+ }).readonly()).readonly(),
1731
+ diagnostics: z.array(z.object({
1732
+ seriesId: z.string(),
1733
+ reason: z.enum([
1734
+ "invalid_series_id",
1735
+ "insufficient_evidence",
1736
+ "inconsistent_weekday",
1737
+ "inconsistent_local_time",
1738
+ "inconsistent_weekly_interval",
1739
+ "inconsistent_recurrence",
1740
+ "unsupported_weekly_cadence",
1741
+ "inconsistent_timezone"
1742
+ ])
1743
+ }).readonly()).readonly()
1744
+ }).readonly();
1745
+ const weekdayFormatterCache = /* @__PURE__ */ new Map();
1746
+ const timeFormatterCache = /* @__PURE__ */ new Map();
1747
+ const dateFormatterCache = /* @__PURE__ */ new Map();
1748
+ function weekdayFormatter(timeZone) {
1749
+ const cached = weekdayFormatterCache.get(timeZone);
1750
+ if (cached) return cached;
1751
+ const formatter = new Intl.DateTimeFormat("en-GB", {
1752
+ timeZone,
1753
+ weekday: "long"
1754
+ });
1755
+ weekdayFormatterCache.set(timeZone, formatter);
1756
+ return formatter;
1757
+ }
1758
+ function timeFormatter(timeZone) {
1759
+ const cached = timeFormatterCache.get(timeZone);
1760
+ if (cached) return cached;
1761
+ const formatter = new Intl.DateTimeFormat("en-GB", {
1762
+ timeZone,
1763
+ hour: "2-digit",
1764
+ minute: "2-digit",
1765
+ hourCycle: "h23"
1766
+ });
1767
+ timeFormatterCache.set(timeZone, formatter);
1768
+ return formatter;
1769
+ }
1770
+ function dateFormatter(timeZone) {
1771
+ const cached = dateFormatterCache.get(timeZone);
1772
+ if (cached) return cached;
1773
+ const formatter = new Intl.DateTimeFormat("en-GB", {
1774
+ timeZone,
1775
+ year: "numeric",
1776
+ month: "2-digit",
1777
+ day: "2-digit"
1778
+ });
1779
+ dateFormatterCache.set(timeZone, formatter);
1780
+ return formatter;
1781
+ }
1782
+ function localCalendarDay(value, timeZone) {
1783
+ const parts = dateFormatter(timeZone).formatToParts(value);
1784
+ const year = Number(parts.find((part) => part.type === "year")?.value);
1785
+ const month = Number(parts.find((part) => part.type === "month")?.value);
1786
+ const day = Number(parts.find((part) => part.type === "day")?.value);
1787
+ if (![
1788
+ year,
1789
+ month,
1790
+ day
1791
+ ].every(Number.isInteger)) return null;
1792
+ return Math.floor(Date.UTC(year, month - 1, day) / 864e5);
1793
+ }
1794
+ function parseWeekday(value) {
1795
+ return weekdayOrder.find((weekday) => weekday === value) ?? null;
1796
+ }
1797
+ function localScheduleForEvent(event) {
1798
+ if (!event.timeZone) return null;
1799
+ try {
1800
+ const startsAt = new Date(event.startsAt);
1801
+ const weekday = parseWeekday(weekdayFormatter(event.timeZone).format(startsAt));
1802
+ const calendarDay = localCalendarDay(startsAt, event.timeZone);
1803
+ if (!weekday || calendarDay === null) return null;
1804
+ return {
1805
+ weekday,
1806
+ weekdayIndex: weekdayOrder.indexOf(weekday),
1807
+ startTime: timeFormatter(event.timeZone).format(startsAt),
1808
+ endTime: timeFormatter(event.timeZone).format(new Date(event.endsAt)),
1809
+ localCalendarDay: calendarDay,
1810
+ timeZone: event.timeZone
1811
+ };
1812
+ } catch {
1813
+ return null;
1814
+ }
1815
+ }
1816
+ function bookingForEvent(event) {
1817
+ const destination = event.destination;
1818
+ return (destination.kind === "external" ? destination.url.trim().length > 0 : destination.path.trim().length > 0) ? {
1819
+ kind: "available",
1820
+ destination
1821
+ } : {
1822
+ kind: "unavailable",
1823
+ reason: "missing_destination"
1824
+ };
1825
+ }
1826
+ function bookingForEvents(events) {
1827
+ for (const event of events) {
1828
+ const booking = bookingForEvent(event);
1829
+ if (booking.kind === "available") return booking;
1830
+ }
1831
+ return {
1832
+ kind: "unavailable",
1833
+ reason: "missing_destination"
1834
+ };
1835
+ }
1836
+ function compareEvents(left, right) {
1837
+ const timeDifference = Date.parse(left.startsAt) - Date.parse(right.startsAt);
1838
+ return timeDifference !== 0 ? timeDifference : left.occurrenceId.localeCompare(right.occurrenceId);
1839
+ }
1840
+ function recurrenceKey(event) {
1841
+ const recurrence = event.recurrence;
1842
+ if (!recurrence) return "none";
1843
+ return recurrence.kind === "other" ? recurrence.kind : `${recurrence.kind}:${recurrence.interval}:${recurrence.weekdays.join(",")}`;
1844
+ }
1845
+ function recurrenceRuleEvidence(seriesId, events, schedule) {
1846
+ if (new Set(events.map(recurrenceKey)).size > 1) return {
1847
+ seriesId,
1848
+ reason: "inconsistent_recurrence"
1849
+ };
1850
+ const recurrence = events[0]?.recurrence;
1851
+ if (!recurrence) return null;
1852
+ if (recurrence.kind !== "weekly" || recurrence.interval !== 1) return {
1853
+ seriesId,
1854
+ reason: "unsupported_weekly_cadence"
1855
+ };
1856
+ const weekdayCode = weekdayCodeOrder[schedule.weekdayIndex];
1857
+ if (recurrence.weekdays.length > 0 && !recurrence.weekdays.some((day) => day === weekdayCode)) return {
1858
+ seriesId,
1859
+ reason: "inconsistent_recurrence"
1860
+ };
1861
+ return true;
1862
+ }
1863
+ function seriesWeekdays(events, first) {
1864
+ const recurrence = events[0]?.recurrence;
1865
+ return recurrence?.kind === "weekly" && recurrence.weekdays.length > 0 ? weekdayOrder.filter((_, index) => recurrence.weekdays.some((day) => day === weekdayCodeOrder[index])) : [first.weekday];
1866
+ }
1867
+ function inconsistentSchedule(schedules, first, weekdays) {
1868
+ if (schedules.some((schedule) => !schedule || schedule.timeZone !== first.timeZone)) return "inconsistent_timezone";
1869
+ if (schedules.some((schedule) => schedule && !weekdays.includes(schedule.weekday))) return "inconsistent_weekday";
1870
+ return schedules.some((schedule) => schedule && (schedule.startTime !== first.startTime || schedule.endTime !== first.endTime)) ? "inconsistent_local_time" : null;
1871
+ }
1872
+ function projectSeries(seriesIdValue, events) {
1873
+ const parsedSeriesId = parseEventSeriesId(seriesIdValue);
1874
+ if (!parsedSeriesId.ok) return {
1875
+ seriesId: seriesIdValue,
1876
+ reason: "invalid_series_id"
1877
+ };
1878
+ const sortedEvents = [...events].sort(compareEvents);
1879
+ const first = sortedEvents[0];
1880
+ if (!first) return {
1881
+ seriesId: seriesIdValue,
1882
+ reason: "insufficient_evidence"
1883
+ };
1884
+ const schedules = sortedEvents.map(localScheduleForEvent);
1885
+ const firstSchedule = schedules[0];
1886
+ if (!firstSchedule) return {
1887
+ seriesId: seriesIdValue,
1888
+ reason: "inconsistent_timezone"
1889
+ };
1890
+ const ruleEvidence = recurrenceRuleEvidence(seriesIdValue, sortedEvents, firstSchedule);
1891
+ if (ruleEvidence !== null && ruleEvidence !== true) return ruleEvidence;
1892
+ if (ruleEvidence === null && sortedEvents.length < 2) return {
1893
+ seriesId: seriesIdValue,
1894
+ reason: "insufficient_evidence"
1895
+ };
1896
+ const weekdays = seriesWeekdays(sortedEvents, firstSchedule);
1897
+ const inconsistency = inconsistentSchedule(schedules, firstSchedule, weekdays);
1898
+ if (inconsistency) return {
1899
+ seriesId: seriesIdValue,
1900
+ reason: inconsistency
1901
+ };
1902
+ if (ruleEvidence === null) {
1903
+ const localDayIntervals = schedules.slice(1).map((schedule, index) => (schedule?.localCalendarDay ?? NaN) - (schedules[index]?.localCalendarDay ?? NaN));
1904
+ if (!localDayIntervals.includes(7) || localDayIntervals.some((days) => !Number.isInteger(days) || days <= 0 || days % 7 !== 0)) return {
1905
+ seriesId: seriesIdValue,
1906
+ reason: "inconsistent_weekly_interval"
1907
+ };
1908
+ }
1909
+ return {
1910
+ seriesId: parsedSeriesId.value,
1911
+ title: first.title,
1912
+ venueName: first.venue?.name ?? null,
1913
+ cadence: {
1914
+ kind: "weekly",
1915
+ weekday: weekdays[0] ?? firstSchedule.weekday,
1916
+ weekdayIndex: weekdayOrder.indexOf(weekdays[0] ?? firstSchedule.weekday),
1917
+ ...weekdays.length > 1 ? { weekdays } : {},
1918
+ startTime: firstSchedule.startTime,
1919
+ endTime: firstSchedule.endTime,
1920
+ timeZone: firstSchedule.timeZone
1921
+ },
1922
+ booking: bookingForEvents(sortedEvents)
1923
+ };
1924
+ }
1925
+ function isDiagnostic(value) {
1926
+ return "reason" in value;
1927
+ }
1928
+ function projectRecurringSchedule(events) {
1929
+ const bySeries = /* @__PURE__ */ new Map();
1930
+ for (const event of events) {
1931
+ const current = bySeries.get(event.seriesId) ?? [];
1932
+ current.push(event);
1933
+ bySeries.set(event.seriesId, current);
1934
+ }
1935
+ const items = [];
1936
+ const diagnostics = [];
1937
+ for (const [seriesId, seriesEvents] of bySeries) {
1938
+ const projected = projectSeries(seriesId, seriesEvents);
1939
+ if (isDiagnostic(projected)) diagnostics.push(projected);
1940
+ else items.push(projected);
1941
+ }
1942
+ items.sort((left, right) => {
1943
+ const weekdayDifference = left.cadence.weekdayIndex - right.cadence.weekdayIndex;
1944
+ if (weekdayDifference !== 0) return weekdayDifference;
1945
+ const timeDifference = left.cadence.startTime.localeCompare(right.cadence.startTime);
1946
+ if (timeDifference !== 0) return timeDifference;
1947
+ const titleDifference = left.title.localeCompare(right.title);
1948
+ return titleDifference !== 0 ? titleDifference : left.seriesId.localeCompare(right.seriesId);
1949
+ });
1950
+ diagnostics.sort((left, right) => {
1951
+ const seriesDifference = left.seriesId.localeCompare(right.seriesId);
1952
+ return seriesDifference !== 0 ? seriesDifference : left.reason.localeCompare(right.reason);
1953
+ });
1954
+ return {
1955
+ items,
1956
+ diagnostics
1957
+ };
1958
+ }
1959
+ //#endregion
1652
1960
  //#region ../blocks/src/system/runtime/nodes/events/EventCalendar.interactive.ts
1961
+ const eventCalendarDateContextSchema = z.object({
1962
+ locale: z.string(),
1963
+ timeZone: z.string().transform(resolveBookingBusinessTimeZone)
1964
+ });
1653
1965
  const eventCalendarSourceSchema = z.object({
1654
1966
  ...eventCollectionSourceSchemaShape,
1967
+ dateContext: eventCalendarDateContextSchema.optional(),
1968
+ schedule: recurringScheduleProjectionSchema.nullable().optional(),
1969
+ seeAllButtonVariant: eventButtonVariantSchema.nullable().optional(),
1655
1970
  effectiveListArrangementKey: z.enum(eventListArrangementValues).nullable().optional(),
1656
1971
  listBy: z.enum(["upcoming", "week"]).optional(),
1657
1972
  monthArrangement: z.enum(["month-grid", "month-day"]).optional(),
@@ -1665,6 +1980,9 @@ const eventCalendarSourceSchema = z.object({
1665
1980
  banded: z.boolean().nullable().optional()
1666
1981
  });
1667
1982
  const eventCalendarDisplaySchema = z.object({
1983
+ dateContext: eventCalendarDateContextSchema.optional(),
1984
+ schedule: recurringScheduleProjectionSchema.optional(),
1985
+ seeAllButtonVariant: eventButtonVariantSchema,
1668
1986
  listBy: z.literal("week").optional(),
1669
1987
  monthArrangement: z.enum(["month-grid", "month-day"]).optional(),
1670
1988
  kind: z.literal("event-calendar"),
@@ -1710,6 +2028,7 @@ function buildEventCalendarDisplay(source, effectiveListArrangementKey = source.
1710
2028
  }),
1711
2029
  ...source.monthArrangement === void 0 ? {} : { monthArrangement: source.monthArrangement },
1712
2030
  ...calendarListGrouping(source),
2031
+ ...calendarRecurringWeekPresentation(source),
1713
2032
  kind: "event-calendar",
1714
2033
  displayMode: resolveEventCalendarReadPlan(source).mode,
1715
2034
  className: source.className ?? null,
@@ -1811,6 +2130,14 @@ function calendarListGrouping(source) {
1811
2130
  arrangementLooks: source.lookSlots !== void 0
1812
2131
  }).grouping === "week" ? { listBy: "week" } : {};
1813
2132
  }
2133
+ /** The week presentation owns the series projection and its independent header action. */
2134
+ function calendarRecurringWeekPresentation(source) {
2135
+ return {
2136
+ ...source.dateContext ? { dateContext: source.dateContext } : {},
2137
+ schedule: source.schedule ?? void 0,
2138
+ seeAllButtonVariant: source.seeAllButtonVariant ?? "secondary"
2139
+ };
2140
+ }
1814
2141
  //#endregion
1815
2142
  //#region ../blocks/src/system/runtime/nodes/events/EventCombined.interactive.ts
1816
2143
  const eventCombinedSourceSchema = z.object({ ...eventCollectionSourceSchemaShape });
@@ -3761,8 +4088,9 @@ function deriveCommerceCheckoutState(state) {
3761
4088
  items: state.items
3762
4089
  };
3763
4090
  }
3764
- function resolveSelectedProduct(products, contentEntry, productSlug) {
3765
- const explicitSlug = productSlug?.trim() || null;
4091
+ function resolveSelectedProduct(products, selection) {
4092
+ const contentEntry = selection.template.kind === "product" ? selection.contentEntry : null;
4093
+ const explicitSlug = selection.productSlug?.trim() || null;
3766
4094
  if (contentEntry?.id) {
3767
4095
  const byEntryId = products.find((product) => product.contentEntryId === contentEntry.id);
3768
4096
  if (byEntryId) return byEntryId;
@@ -3775,7 +4103,7 @@ function resolveSelectedProduct(products, contentEntry, productSlug) {
3775
4103
  const byEntrySlug = products.find((product) => product.slug === contentEntry.slug);
3776
4104
  if (byEntrySlug) return byEntrySlug;
3777
4105
  }
3778
- return products[0] ?? null;
4106
+ return null;
3779
4107
  }
3780
4108
  //#endregion
3781
4109
  //#region ../blocks/src/system/runtime/nodes/commerce/shared/display.ts
@@ -4102,6 +4430,7 @@ const shopSourceSchema = z.object({
4102
4430
  checkoutButtonText: z.string().optional(),
4103
4431
  clearButtonText: z.string().optional(),
4104
4432
  submitButtonText: z.string().optional(),
4433
+ template: z.discriminatedUnion("kind", [z.object({ kind: z.literal("product") }), z.object({ kind: z.literal("page") })]).optional(),
4105
4434
  contentEntry: contentEntrySchema.optional(),
4106
4435
  passes: z.array(publicPassProductSchema).nullable().optional(),
4107
4436
  memberships: z.array(publicMembershipProductSchema).nullable().optional(),
@@ -4382,7 +4711,11 @@ const productDetailBlockRuntime = defineProgressiveBlockRuntime({
4382
4711
  render: createZodCodec(productDetailRenderSchema)
4383
4712
  },
4384
4713
  buildRender: (source) => {
4385
- const product = resolveSelectedProduct(source.products ?? [], source.contentEntry ?? null, source.productSlug ?? null);
4714
+ const product = resolveSelectedProduct(source.products ?? [], {
4715
+ template: source.template ?? { kind: "page" },
4716
+ contentEntry: source.contentEntry ?? null,
4717
+ productSlug: source.productSlug ?? null
4718
+ });
4386
4719
  return {
4387
4720
  display: buildProductDetailDisplay(product, {
4388
4721
  heading: source.heading,
@@ -4605,4 +4938,4 @@ function shopProductPresentation(hydration, productId, index, count) {
4605
4938
  };
4606
4939
  }
4607
4940
  //#endregion
4608
- export { OFFERINGS_PREVIEW_DEFAULT_BUTTON_TEXT as $, isHeaderScrollRuntimeEnabled as $t, parseStoredCommerceCartState as A, eventListingBlockRuntime as At, giftingBlockRuntime as B, CardListLeadDate as Bt, membershipCardListContent as C, eventCombinedInteractiveIslandPropsCodec as Ct, buildPassCartItem as D, eventCalendarBlockRuntime as Dt, EMPTY_COMMERCE_CART_STATE as E, buildEventCalendarListingRender as Et, buildNewsletterFormInteractiveIslandProps as F, normalizeCsvString as Ft, formInteractiveIslandPropsCodec as G, getContainerClass as Gt, publicGiftingOffersResponseSchema as H, selectCardListPresentation as Ht, newsletterBlockSubmissionMessage as I, normalizeOptionalId as It, displayButtonText as J, formatEventPrice as Jt, buildEventRegistrationDisplayFromScopedEvents as K, Grid as Kt, newsletterFormBlockRuntime as L, catalogueEventCardProps as Lt, reduceCommerceCart as M, buildEventRuntimeFilters as Mt, publicProductsResponseSchema as N, getEventRuntimeFiltersKey as Nt, buildProductCartItem as O, eventCalendarInteractiveIslandPropsCodec as Ot, NEWSLETTER_SIGNUPS_PAUSED_MESSAGE as P, normalizeCsvIds as Pt, OFFERINGS_PREVIEW_AUTHORABLE_SOURCE_KEYS as Q, headerChromeRuntimeContractSchema as Qt, newsletterFormInteractiveIslandPropsCodec as R, listingEventCardProps as Rt, formatInterval as S, eventCombinedBlockRuntime as St, passCardListContent as T, buildEventCalendarListingDisplay as Tt, buildFormInteractiveIslandProps as U, MediaNodeServer as Ut, giftingInteractiveIslandPropsCodec as V, resolveCardListSchedule as Vt, formBlockRuntime as W, getCardOrientation as Wt, eventRegistrationInteractiveIslandPropsCodec as X, formatEventPriceDisplay as Xt, eventRegistrationBlockRuntime as Y, formatEventPriceAmount as Yt, offeringNounForEvent as Z, resolveEventSelection as Zt, shopProductPresentation as _, bookingPanelHeading as _t, buildShopInteractiveIslandProps as a, publicMembershipProductCollectionSchema as an, normalizeOfferingsPreviewContentForWrite as at, buildProductDetailDisplay as b, buildEventCombinedInteractiveIslandProps as bt, checkoutBlockRuntime as c, parseMailingListPlacementTargeting as cn, resolveOfferingsPreviewGroupCta as ct, productDetailBlockRuntime as d, sameMailingListPlacementTargeting as dn, resolveOfferingsRenderInput as dt, resolveHeaderChromeRuntimeContract as en, OFFERINGS_PREVIEW_DEFAULT_EMPTY_MESSAGE as et, productDetailInteractiveIslandPropsCodec as f, parseWeeklyOpeningHours as fn, DEFAULT_BOOKING_BUTTON_TEXT as ft, shopInteractiveIslandPropsCodec as g, bookingEntryProgress as gt, shopBlockRuntime as h, bookingEntry as ht, buildProductListInteractiveIslandProps as i, splitSiteChromePlacementClasses as in, isOfferingsPreviewSourceKey as it, productItemKey as j, eventListingInteractiveIslandPropsCodec as jt, deriveCommerceCheckoutState as k, buildEventListingInteractiveIslandProps as kt, checkoutInteractiveIslandPropsCodec as l, parseMailingListVisitorSelection as ln, resolveOfferingsPreviewGroups as lt, productListInteractiveIslandPropsCodec as m, bookingCardEntry as mt, buildCheckoutInteractiveIslandProps as n, parseHeaderPositioning as nn, OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS as nt, cartBlockRuntime as o, publicPassProductCollectionSchema as on, normalizeOfferingsPreviewItemLimit as ot, productListBlockRuntime as p, bookingBarPlacement as pt, buildEventRegistrationInteractiveIslandProps as q, buildEventListWeek as qt, buildProductDetailInteractiveIslandProps as r, planSiteChromePlacement as rn, buildOfferingsPreviewListing as rt, cartInteractiveIslandPropsCodec as s, buildMailingListSignupBlockSourceRef as sn, offeringsListingFor as st, buildCartInteractiveIslandProps as t, staticHeaderChromeRuntime as tn, OFFERINGS_PREVIEW_DEFAULT_FAILED_MESSAGE as tt, getShopDisplayForItems as u, DEFAULT_MAILING_LIST_TARGETING as un, resolveOfferingsPreviewRunPath as ut, buildCartDisplay as v, formatBookingSchedulePresentation as vt, membershipClassesLabel as w, buildEventCalendarInteractiveIslandProps as wt, formatCommercePrice as x, buildEventCombinedListingDisplay as xt, buildProductCardDisplay as y, occurrenceContextSchema as yt, buildGiftingInteractiveIslandProps as z, CardListContentPart as zt };
4941
+ export { OFFERINGS_PREVIEW_DEFAULT_BUTTON_TEXT as $, resolveEventSelection as $t, parseStoredCommerceCartState as A, recurringScheduleProjectionSchema as At, giftingBlockRuntime as B, listingEventCardProps as Bt, membershipCardListContent as C, eventCombinedInteractiveIslandPropsCodec as Ct, buildPassCartItem as D, eventCalendarBlockRuntime as Dt, EMPTY_COMMERCE_CART_STATE as E, buildEventCalendarListingRender as Et, buildNewsletterFormInteractiveIslandProps as F, getEventRuntimeFiltersKey as Ft, formInteractiveIslandPropsCodec as G, MediaNodeServer as Gt, publicGiftingOffersResponseSchema as H, CardListLeadDate as Ht, newsletterBlockSubmissionMessage as I, normalizeCsvIds as It, displayButtonText as J, Grid as Jt, buildEventRegistrationDisplayFromScopedEvents as K, getCardOrientation as Kt, newsletterFormBlockRuntime as L, normalizeCsvString as Lt, reduceCommerceCart as M, eventListingBlockRuntime as Mt, publicProductsResponseSchema as N, eventListingInteractiveIslandPropsCodec as Nt, buildProductCartItem as O, eventCalendarInteractiveIslandPropsCodec as Ot, NEWSLETTER_SIGNUPS_PAUSED_MESSAGE as P, buildEventRuntimeFilters as Pt, OFFERINGS_PREVIEW_AUTHORABLE_SOURCE_KEYS as Q, formatEventPriceDisplay as Qt, newsletterFormInteractiveIslandPropsCodec as R, normalizeOptionalId as Rt, formatInterval as S, eventCombinedBlockRuntime as St, passCardListContent as T, buildEventCalendarListingDisplay as Tt, buildFormInteractiveIslandProps as U, resolveCardListSchedule as Ut, giftingInteractiveIslandPropsCodec as V, CardListContentPart as Vt, formBlockRuntime as W, selectCardListPresentation as Wt, eventRegistrationInteractiveIslandPropsCodec as X, formatEventPrice as Xt, eventRegistrationBlockRuntime as Y, buildEventListWeek as Yt, offeringNounForEvent as Z, formatEventPriceAmount as Zt, shopProductPresentation as _, bookingPanelHeading as _t, buildShopInteractiveIslandProps as a, planSiteChromePlacement as an, normalizeOfferingsPreviewContentForWrite as at, buildProductDetailDisplay as b, buildEventCombinedInteractiveIslandProps as bt, checkoutBlockRuntime as c, publicPassProductCollectionSchema as cn, resolveOfferingsPreviewGroupCta as ct, productDetailBlockRuntime as d, parseMailingListPlacementTargeting as dn, resolveOfferingsRenderInput as dt, headerChromeRuntimeContractSchema as en, OFFERINGS_PREVIEW_DEFAULT_EMPTY_MESSAGE as et, productDetailInteractiveIslandPropsCodec as f, parseMailingListVisitorSelection as fn, DEFAULT_BOOKING_BUTTON_TEXT as ft, shopInteractiveIslandPropsCodec as g, bookingEntryProgress as gt, shopBlockRuntime as h, parseWeeklyOpeningHours as hn, bookingEntry as ht, buildProductListInteractiveIslandProps as i, parseHeaderPositioning as in, isOfferingsPreviewSourceKey as it, productItemKey as j, buildEventListingInteractiveIslandProps as jt, deriveCommerceCheckoutState as k, projectRecurringSchedule as kt, checkoutInteractiveIslandPropsCodec as l, buildMailingListSignupBlockSourceRef as ln, resolveOfferingsPreviewGroups as lt, productListInteractiveIslandPropsCodec as m, sameMailingListPlacementTargeting as mn, bookingCardEntry as mt, buildCheckoutInteractiveIslandProps as n, resolveHeaderChromeRuntimeContract as nn, OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS as nt, cartBlockRuntime as o, splitSiteChromePlacementClasses as on, normalizeOfferingsPreviewItemLimit as ot, productListBlockRuntime as p, DEFAULT_MAILING_LIST_TARGETING as pn, bookingBarPlacement as pt, buildEventRegistrationInteractiveIslandProps as q, getContainerClass as qt, buildProductDetailInteractiveIslandProps as r, staticHeaderChromeRuntime as rn, buildOfferingsPreviewListing as rt, cartInteractiveIslandPropsCodec as s, publicMembershipProductCollectionSchema as sn, offeringsListingFor as st, buildCartInteractiveIslandProps as t, isHeaderScrollRuntimeEnabled as tn, OFFERINGS_PREVIEW_DEFAULT_FAILED_MESSAGE as tt, getShopDisplayForItems as u, assessMailingListTargeting as un, resolveOfferingsPreviewRunPath as ut, buildCartDisplay as v, formatBookingSchedulePresentation as vt, membershipClassesLabel as w, buildEventCalendarInteractiveIslandProps as wt, formatCommercePrice as x, buildEventCombinedListingDisplay as xt, buildProductCardDisplay as y, occurrenceContextSchema as yt, buildGiftingInteractiveIslandProps as z, catalogueEventCardProps as zt };
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { t as BlockApiProvider } from "./context-BRgBWthI.mjs";
2
+ import { t as BlockApiProvider } from "./context-BLAvalAa.mjs";
3
3
  import { t as mountReactIsland } from "./reactMount-BGJVsHRb.mjs";
4
- import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-96er7pIx.mjs";
4
+ import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-C5u8MbAA.mjs";
5
5
  import "react";
6
6
  import { jsx } from "react/jsx-runtime";
7
7
  //#region src/rendering/islands/enhancers/shopShared.tsx
@@ -1,4 +1,9 @@
1
1
  "use client";
2
+ //#region ../core/src/assert-never.ts
3
+ function assertNever$1(value, message = "Unexpected variant") {
4
+ throw new Error(`${message}: ${String(value)}`);
5
+ }
6
+ //#endregion
2
7
  //#region ../frontend-state/src/submission.ts
3
8
  function clearWorkflowFeedback(state) {
4
9
  return {
@@ -54,4 +59,4 @@ function assertNever(value, message) {
54
59
  throw new Error(message ?? `Unexpected value: ${String(value)}`);
55
60
  }
56
61
  //#endregion
57
- export { clearWorkflowFeedback as a, okWith as i, err as n, reportWorkflowError as o, ok as r, reportWorkflowSuccess as s, assertNever as t };
62
+ export { clearWorkflowFeedback as a, assertNever$1 as c, okWith as i, err as n, reportWorkflowError as o, ok as r, reportWorkflowSuccess as s, assertNever as t };