@riverbankcms/sdk 0.180.0 → 0.182.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 (232) hide show
  1. package/dist/_dts/{BlocksIslandsHydrator-DC_AvZwy.d.ts → BlocksIslandsHydrator-Bvw2bUif.d.ts} +1 -1
  2. package/dist/_dts/{Page-DQOxVtp3.d.ts → Page-B2EAT-bE.d.ts} +7 -7
  3. package/dist/_dts/{SdkPreviewMode-DrLgY9_f.d.ts → SdkPreviewMode-D0vww6rh.d.ts} +2 -2
  4. package/dist/_dts/{client-BP7VBRvs.d.ts → client-D6T430bk.d.ts} +56 -70
  5. package/dist/_dts/{content-types-1-K2qi__.d.ts → content-types-wZVWccC6.d.ts} +2 -2
  6. package/dist/_dts/{contracts-Dfqz0Tcu.d.ts → contracts-B-vtOcr8.d.ts} +3 -3
  7. package/dist/_dts/{generatePageMetadata-CSfAqmry.d.ts → generatePageMetadata-CxfwHE6z.d.ts} +2 -2
  8. package/dist/_dts/{index-BeM5Ylwf.d.ts → index-CEyYMhLJ.d.ts} +1 -2
  9. package/dist/_dts/{index-DQr358-m.d.ts → index-CQrb3Ccc.d.ts} +8 -8
  10. package/dist/_dts/{index-DCcxLa8p.d.ts → index-CciRW_w1.d.ts} +2 -2
  11. package/dist/_dts/{index-Blrw2oVk.d.ts → index-Cqxis-nv.d.ts} +1 -1
  12. package/dist/_dts/{index-CB5Csefo.d.ts → index-DIU-wL1M.d.ts} +2 -2
  13. package/dist/_dts/{index-DQBGwBPx.d.ts → index-DqPKdeTk.d.ts} +1 -1
  14. package/dist/_dts/{loadContent-BG2tLGXj.d.ts → loadContent-D0wrxiSp.d.ts} +7 -7
  15. package/dist/_dts/{request-P08l6mkr.d.ts → request-DEwxUSw8.d.ts} +2375 -883
  16. package/dist/_dts/{resolveBlockData-BDHc8lFs.d.ts → resolveBlockData-VaG_MYbN.d.ts} +5 -5
  17. package/dist/_dts/{resolvePageContent-Y3IZBbtL.d.ts → resolvePageContent-DTwklC_v.d.ts} +1 -1
  18. package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
  19. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  20. package/dist/_dts/sdk/src/client.d.ts +7 -7
  21. package/dist/_dts/sdk/src/config/index.d.ts +6 -6
  22. package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
  23. package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
  24. package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
  25. package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
  26. package/dist/_dts/sdk/src/data/types.d.ts +2 -2
  27. package/dist/_dts/sdk/src/gifting/client.d.ts +1 -2
  28. package/dist/_dts/sdk/src/index.d.ts +104 -8
  29. package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
  30. package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
  31. package/dist/_dts/sdk/src/navigation/index.d.ts +3 -3
  32. package/dist/_dts/sdk/src/next/index.d.ts +83 -52
  33. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  34. package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
  35. package/dist/_dts/sdk/src/portal/client.d.ts +43 -56
  36. package/dist/_dts/sdk/src/portal/index.d.ts +3 -18
  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 +6 -6
  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/{serviceBookingOutline-BvtNagjw.d.ts → serviceBookingOutline-DtQuFlID.d.ts} +6 -6
  54. package/dist/_dts/{types-DpEAnP4F.d.ts → types-B3RjeBLV.d.ts} +2 -2
  55. package/dist/_dts/{types-HAy1-Jjo.d.ts → types-BvUSGQrw.d.ts} +3 -3
  56. package/dist/_dts/{types-BrK6SS5c.d.ts → types-CkRFtBqd.d.ts} +7 -7
  57. package/dist/_dts/{validation-D6q3tOBA.d.ts → validation-BZA3DhcV.d.ts} +4 -4
  58. package/dist/client/{BlocksIslandsHydrator-DJSmdNUJ.mjs → BlocksIslandsHydrator-CQMf0HdN.mjs} +19 -19
  59. package/dist/client/{BookingMailingListNote-CGxg37zx.mjs → BookingMailingListNote-7kdvuPow.mjs} +93 -18
  60. package/dist/client/{BookingQuestionFields-DXegGSnS.mjs → BookingQuestionFields-BJI7mZuV.mjs} +7 -87
  61. package/dist/client/CalendarAction-D_Glwvz2.mjs +105 -0
  62. package/dist/client/{CalendarNavigationChevron-VfP50sYm.mjs → CalendarNavigationChevron-DPUD6wjy.mjs} +8 -8
  63. package/dist/client/{CheckboxChoice-BZPLCgTU.mjs → CheckboxChoice-C8i4NraK.mjs} +1 -1
  64. package/dist/client/{DemoBookingPortalAccess-0Ua44F1j.mjs → DemoBookingPortalAccess-8kwNF9HN.mjs} +9 -6
  65. package/dist/client/{EventCalendar.client-CrpiyDSP.mjs → EventCalendar.client-Dhb14bcC.mjs} +10 -10
  66. package/dist/client/{EventCombined.client-D0me9wnz.mjs → EventCombined.client-C1jEZBN9.mjs} +60 -10
  67. package/dist/client/{EventEmbeddedCheckoutStep-BDnicDM6.mjs → EventEmbeddedCheckoutStep-BGkbUhuw.mjs} +1 -1
  68. package/dist/client/{EventItem-CJITrGkF.mjs → EventItem-Bb0ppG2N.mjs} +9 -177
  69. package/dist/client/{EventListWeekNavigation-BlEm_xjq.mjs → EventListWeekNavigation-DMryCaNV.mjs} +1 -1
  70. package/dist/client/{EventListing.client-BNM_HuS0.mjs → EventListing.client-BuH5kKA3.mjs} +3 -3
  71. package/dist/client/{EventListing.view-CXfb7RRy.mjs → EventListing.view-DsqvuulZ.mjs} +8 -8
  72. package/dist/client/{EventRegistrationPayment-DiD9uYs6.mjs → EventRegistrationPayment-D4FvQSFF.mjs} +555 -502
  73. package/dist/client/{Page-bX7iy_MK.mjs → Page-sV6BJkXX.mjs} +550 -339
  74. package/dist/client/{ProtectedSubmitButton-De6AzhE6.mjs → ProtectedSubmitButton-BNnKuir8.mjs} +1 -1
  75. package/dist/client/{SiteTermsAgreementField-BAdW5DvE.mjs → SiteTermsAgreementField-VfSd6JU-.mjs} +7 -11
  76. package/dist/client/{StepIndicator-DCfdcb7s.mjs → StepIndicator-B6o5B7g3.mjs} +1 -1
  77. package/dist/client/{StepIndicator-DCqorVne.mjs → StepIndicator-BTqO7cJl.mjs} +235 -26
  78. package/dist/client/{ThemedButton-CnSa7o-I.mjs → ThemedButton-PFOhXktM.mjs} +1 -33
  79. package/dist/client/{accessibleSurfaces-Wl8-_OVJ.mjs → accessibleSurfaces-BogaGutk.mjs} +983 -634
  80. package/dist/client/{accordion-wofJY8xY.mjs → accordion-6cuswD_s.mjs} +1 -1
  81. package/dist/client/{booking-form.client-CYl9NrqS.mjs → booking-form.client-BOMe_SKi.mjs} +52 -29
  82. package/dist/client/bookingCalendar--aWnqFDn.mjs +180 -0
  83. package/dist/client/{bookingForm-kgVWtuMe.mjs → bookingForm-DSCH-VHo.mjs} +4 -4
  84. package/dist/client/bookings.mjs +17 -11
  85. package/dist/client/{boxStyleClassNames-CQHWz5gJ.mjs → boxStyleClassNames-BFuqZCfz.mjs} +2 -2
  86. package/dist/client/{carousel-BE1dEFsD.mjs → carousel-CGyQVV1M.mjs} +2 -2
  87. package/dist/client/{carousel.client-DMtGYTTM.mjs → carousel.client-BtLwHefX.mjs} +1 -1
  88. package/dist/client/{cart-BsjsdGZE.mjs → cart-BYOe7MCh.mjs} +3 -3
  89. package/dist/client/{cart.client-DylGUWXY.mjs → cart.client-BKFkaXdV.mjs} +1 -1
  90. package/dist/client/{checkout-B5KxEUDr.mjs → checkout-Dwd7Di77.mjs} +3 -3
  91. package/dist/client/{checkout.client-C98fhch3.mjs → checkout.client-C25hpi-z.mjs} +1 -1
  92. package/dist/client/{checkoutUrls-BMLYTf38.mjs → checkoutUrls-tG788sw0.mjs} +1 -1
  93. package/dist/client/client.mjs +106 -43
  94. package/dist/client/{constants-PfYJsEZF.mjs → constants-DdxFG3Ic.mjs} +1 -2
  95. package/dist/client/{context-DtKdUdkO.mjs → context-Hi1RuYEM.mjs} +753 -373
  96. package/dist/client/{dateFormatting-BaGPvQS3.mjs → dateFormatting-C8vBCHuo.mjs} +15 -25
  97. package/dist/client/{demoPortalMagicLink-B8eDjhuG.mjs → demoPortalMagicLink-BAL5UIDG.mjs} +2 -3
  98. package/dist/client/{enhanceHeaderSection-DvhD-8eE.mjs → enhanceHeaderSection-Dv1Lr9kJ.mjs} +4 -5
  99. package/dist/client/{event-registration.client-Du9a_xAN.mjs → event-registration.client-dB_Z7bb-.mjs} +191 -210
  100. package/dist/client/{eventCalendar-Di9wDfzl.mjs → eventCalendar-CQnRA4Ww.mjs} +4 -4
  101. package/dist/client/{eventCombined-CNW6nBsB.mjs → eventCombined-BDOG1hVp.mjs} +4 -4
  102. package/dist/client/{eventListing-CQMxQ8By.mjs → eventListing-DSVmhy9n.mjs} +4 -4
  103. package/dist/client/{eventRegistration-CprS9k1D.mjs → eventRegistration-CD5mRtEH.mjs} +4 -4
  104. package/dist/client/{form-Zl1_8RJ6.mjs → form-DWnlEVSK.mjs} +3 -3
  105. package/dist/client/{form.client-TaMUys6I.mjs → form.client-D7zmeqNI.mjs} +5 -5
  106. package/dist/client/{form.parts-CpNPbPPM.mjs → form.parts-C-G6N_MK.mjs} +3 -3
  107. package/dist/client/gifting/client.mjs +32 -29
  108. package/dist/client/{gifting-DNVa7-Wj.mjs → gifting-Cn0jidP5.mjs} +4 -4
  109. package/dist/client/{gifting.client-CFUq3GVx.mjs → gifting.client-DVo1YFLs.mjs} +5 -5
  110. package/dist/client/{gifting.parts-CDQvxA4A.mjs → gifting.parts-Bak93gD2.mjs} +2 -2
  111. package/dist/client/{headerSection-Cg6083rn.mjs → headerSection-DjQuj_6v.mjs} +2 -2
  112. package/dist/client/{mediaAssets-B99AP7ai.mjs → mediaAssets-COfQolI3.mjs} +1 -1
  113. package/dist/client/{mediaContext-Fusweriw.mjs → mediaContext-DzvnjYXm.mjs} +1 -1
  114. package/dist/client/{newsletter-form.client-VuL9I96G.mjs → newsletter-form.client-rIYPziZC.mjs} +7 -7
  115. package/dist/client/{newsletter-form.interactive-7Of3eYn0.mjs → newsletter-form.interactive-DVt3enLr.mjs} +181 -155
  116. package/dist/client/{newsletter-form.parts-OBqsfT24.mjs → newsletter-form.parts-CH6dGfdn.mjs} +2 -2
  117. package/dist/client/{newsletterForm-BkJe_RTv.mjs → newsletterForm-Cg8cBDHd.mjs} +3 -3
  118. package/dist/client/{lookSurfaces-gJ3OqPf9.mjs → noop-jesvJXEE.mjs} +403 -275
  119. package/dist/client/portal/client.mjs +12202 -7166
  120. package/dist/client/portalOrders-oEoTvzkW.mjs +596 -0
  121. package/dist/client/portalRoutes-ByyVZfVq.mjs +873 -0
  122. package/dist/client/{product-detail.client-B2hdxqJN.mjs → product-detail.client-5aHq-vuu.mjs} +1 -1
  123. package/dist/client/{product-list.client-CCEgu9rx.mjs → product-list.client-CyAk5rnC.mjs} +1 -1
  124. package/dist/client/{productDetail-CRX_ZRfS.mjs → productDetail-B8aZ2mqY.mjs} +3 -3
  125. package/dist/client/{productList-BAdJ6z5S.mjs → productList-BuLemmod.mjs} +3 -3
  126. package/dist/client/{propsDecoder-BLKAmX0S.mjs → propsDecoder-0Unsqn3R.mjs} +2 -2
  127. package/dist/client/{registry.server-Bj9cmHHF.mjs → registry.server-DzvtVVD0.mjs} +664 -434
  128. package/dist/client/{renderableMediaAssetAdmission-BlfqYLJW.mjs → renderableMediaAssetAdmission-BsOWd9lf.mjs} +1 -1
  129. package/dist/client/rendering/client.mjs +26 -26
  130. package/dist/client/rendering/islands.mjs +1 -1
  131. package/dist/client/rendering.mjs +16 -8
  132. package/dist/client/{richText-coerce-Z45OLLEX.mjs → richText-coerce-Bnng7JFA.mjs} +2 -1
  133. package/dist/client/{routeIslandApiConfig-DHpTTK77.mjs → routeIslandApiConfig-BGfcc9sk.mjs} +1 -1
  134. package/dist/client/{runtimeResponse-DtWSfWSZ.mjs → runtimeResponse-DAPVRToN.mjs} +1 -1
  135. package/dist/client/{runtimeResponse-D2j2-mOk.mjs → runtimeResponse-nXT8VAMl.mjs} +1 -1
  136. package/dist/client/{shop-BKsgxm_-.mjs → shop-GuMqnDL-.mjs} +3 -3
  137. package/dist/client/{shop-commerce-Cbtk_kUW.mjs → shop-commerce-D5bDY1o1.mjs} +53 -16
  138. package/dist/client/{shop-commerce-store-B-rv2p5h.mjs → shop-commerce-store-B7sHnLwI.mjs} +22 -5
  139. package/dist/client/{shop-discount-apply.state-CiCDLNh7.mjs → shop-discount-apply.state-Dos2zdC2.mjs} +2 -2
  140. package/dist/client/{shop.client-Rnqa74Tk.mjs → shop.client-uvj5GDZb.mjs} +17 -39
  141. package/dist/client/{shopShared-BaBfhjCq.mjs → shopShared-3giNWE3H.mjs} +2 -2
  142. package/dist/client/spam-protection.mjs +1 -1
  143. package/dist/client/src-Al4ooTl_.mjs +164 -0
  144. package/dist/client/{src-o7WEvbK1.mjs → src-CmXh3JWs.mjs} +233 -91
  145. package/dist/client/{timetableModel-BOff1Kk5.mjs → timetableModel-GA-hn1qM.mjs} +11 -87
  146. package/dist/client/{shop-add-feedback-DvC2kP1K.mjs → urlParams-C2QHo1Pa.mjs} +1 -42
  147. package/dist/client/{useAvailableSlots-DQJNh10g.mjs → useAvailableSlots-CBneCxbG.mjs} +2 -3
  148. package/dist/client/{useDiscountCodeUi-BcFQRI_7.mjs → useDiscountCodeUi-D0kGF0C7.mjs} +1 -1
  149. package/dist/client/{useEventPagination-BvdcexDC.mjs → useEventPagination-xX8n_Tuu.mjs} +8 -8
  150. package/dist/client/{view-CTBwSpKv.mjs → view-DOyZc-DF.mjs} +4 -4
  151. package/dist/client/{wizardSteps-CWIQyRIw.mjs → wizardSteps-B952ify5.mjs} +1241 -295
  152. package/dist/preview-next/client/{PageSectionToolbar-CG6KwITA.mjs → PageSectionToolbar-BI3UCdpu.mjs} +3 -3
  153. package/dist/preview-next/client/{PreviewEditorSidebar-BGBqrC9m.mjs → PreviewEditorSidebar-jkfLVOgY.mjs} +12 -9
  154. package/dist/preview-next/client/{PreviewEditorUI-Bwkyx28x.mjs → PreviewEditorUI-DwJQs4hM.mjs} +4 -4
  155. package/dist/preview-next/client/{PreviewShell-DB1l6JNU.mjs → PreviewShell-BAxAkuz8.mjs} +5 -5
  156. package/dist/preview-next/client/{SdkPreviewModeRuntime-Bs6Cwzr3.mjs → SdkPreviewModeRuntime-0UVB-39f.mjs} +68 -17
  157. package/dist/preview-next/client/{previewAssistantSlot-T-oDD_Dd.mjs → previewAssistantSlot-BgiYk3PB.mjs} +7347 -3516
  158. package/dist/preview-next/client/{previewChromeRoot-BeukcDRy.mjs → previewChromeRoot-tieNdF3E.mjs} +1 -1
  159. package/dist/preview-next/client/runtime.mjs +3 -3
  160. package/dist/preview-next/client/{sdk-runtime-ceDW_9q2.mjs → sdk-runtime-DXb_Evl0.mjs} +2 -2
  161. package/dist/preview-next/client/{siteStyleAccess-CCB9bScO.mjs → siteStyleAccess-BlN0jt2c.mjs} +3 -3
  162. package/dist/preview-next/client/{useAutosaveStatus-D4o0CKq7.mjs → useAutosaveStatus-BUEPA4oL.mjs} +1 -1
  163. package/dist/preview-next/client/{useOpenBlockForSetup-Seccrvwu.mjs → useOpenBlockForSetup-BVfr5P--.mjs} +1 -1
  164. package/dist/preview-next/container-responsive.css +203 -174
  165. package/dist/preview-next/keepAlive.mjs +1 -1
  166. package/dist/preview-next/middleware.mjs +1 -1
  167. package/dist/preview-next/{route-contract-FwFj8zGL.mjs → route-contract-BHTBA48n.mjs} +90 -37
  168. package/dist/server/{Block.shared-D6WrRCxX.mjs → Block.shared-hGoyEdjJ.mjs} +5 -5
  169. package/dist/server/{ThemeScopeCore-BQzjDQ2q.mjs → ThemeScopeCore-BfUCTOwj.mjs} +160 -142
  170. package/dist/server/{accessibleSurfaces-CM3QANtw.mjs → accessibleSurfaces-Dskni4Xj.mjs} +94 -330
  171. package/dist/server/accordions-By_0Ykks.mjs +111 -0
  172. package/dist/server/{bindings-CS6ih1Yc.mjs → bindings-DMJH4bvo.mjs} +7 -7
  173. package/dist/server/{client-m0ylCj_f.mjs → client-DrwlRNAH.mjs} +105 -42
  174. package/dist/server/config-validation.mjs +1 -1
  175. package/dist/server/config.mjs +2 -2
  176. package/dist/server/constants-CeMywaiD.mjs +1485 -0
  177. package/dist/server/{customCss-BZ8YSrQg.mjs → customCss-C9kgPHvr.mjs} +41 -5
  178. package/dist/server/data/resolveBlockData.mjs +1 -1
  179. package/dist/server/{resolveButtonColourStates--6yJp9Tq.mjs → expandPalette-ehuW8r2g.mjs} +745 -1229
  180. package/dist/server/index.mjs +3 -3
  181. package/dist/server/{loadContent-vgWMz1uD.mjs → loadContent-D0prFflT.mjs} +5 -4
  182. package/dist/server/{loadPage-CIOL3-9t.mjs → loadPage-CBLke9pJ.mjs} +3 -3
  183. package/dist/server/{lookMediaFrame-m-91jGGn.mjs → lookMediaFrame-H0fi4bJk.mjs} +38 -18
  184. package/dist/server/manifest.mjs +36 -25
  185. package/dist/server/{mapLocation-BM5WX7FY.mjs → mapLocation-MDDSubTp.mjs} +1 -1
  186. package/dist/server/media-BRmYrnzb.mjs +31 -0
  187. package/dist/server/{media-luf7RF22.mjs → media-gvfIw3z8.mjs} +2 -31
  188. package/dist/server/{navigation-BcNfYYuu.mjs → navigation-wrcuWmgp.mjs} +2 -2
  189. package/dist/server/navigation.mjs +1 -1
  190. package/dist/server/next.mjs +134 -81
  191. package/dist/server/{overrideResolution-BiHmsvTZ.mjs → overrideResolution-DUgCEH8z.mjs} +1 -1
  192. package/dist/server/page-converter.mjs +3 -3
  193. package/dist/server/{pageRenderPlan-DJo_obpi.mjs → pageRenderPlan-BHrmogsW.mjs} +165 -247
  194. package/dist/server/{pageRuntimeSupport-BnSuoHON.mjs → pageRuntimeSupport-D2-YMRei.mjs} +5 -5
  195. package/dist/server/{pageShared-BJuOzxzn.mjs → pageShared-CG8O31Eo.mjs} +3402 -3249
  196. package/dist/server/{parseThemeForPersistence-DOsfofCy.mjs → parseThemeForPersistence-CrPlbJEN.mjs} +3 -2
  197. package/dist/server/{portal-B4JVkdjc.mjs → portal-pG_uhsI2.mjs} +62 -46
  198. package/dist/server/portal.mjs +3 -3
  199. package/dist/server/portalQuestions-oUyohgL9.mjs +225 -0
  200. package/dist/server/{prebuild-Cr8p8T7V.mjs → prebuild-C8Amvzce.mjs} +1 -1
  201. package/dist/server/prebuild.mjs +1 -1
  202. package/dist/server/{prefetchBlockData-BZh57-ua.mjs → prefetchBlockData-BxUETRIZ.mjs} +4 -3
  203. package/dist/server/{registry-CvhFwbXJ.mjs → registry-Cc88-23f.mjs} +1514 -1190
  204. package/dist/server/rendering/components/pageShared.mjs +1 -1
  205. package/dist/server/rendering/helpers/loadPage.mjs +1 -1
  206. package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
  207. package/dist/server/rendering/server.mjs +4 -4
  208. package/dist/server/rendering.mjs +10 -9
  209. package/dist/server/{resolveBlockData-Cv_W1LVB.mjs → resolveBlockData-OG3KOkig.mjs} +2 -2
  210. package/dist/server/{responseMedia-KRKguBC5.mjs → responseMedia-IfH65QAH.mjs} +1 -1
  211. package/dist/server/{schema-BpsqaSSU.mjs → schema-CwfxQjc4.mjs} +10 -113
  212. package/dist/server/server.mjs +3 -3
  213. package/dist/server/{servicePageContent-CRKbTm_7.mjs → servicePageContent-BcFuhhD7.mjs} +22 -21
  214. package/dist/server/theme-bridge.mjs +34 -8
  215. package/dist/server/theme.mjs +2 -2
  216. package/dist/server/{three-pass-converter-39SXCCnh.mjs → three-pass-converter-DPaUPTfl.mjs} +34 -16
  217. package/dist/server/titleSourceSchema-NhK6azFS.mjs +2018 -0
  218. package/dist/server/typeGuards-CTW_9AXq.mjs +413 -0
  219. package/dist/server/types-BKaBZFjD.mjs +1085 -0
  220. package/dist/server/{validation-DCl-FCk_.mjs → validation-BovmbS8N.mjs} +70 -17
  221. package/dist/server/{version-DT_R5JAR.mjs → version-hws4hgyX.mjs} +1 -1
  222. package/dist/server/video-Cdr3wh-q.mjs +272 -0
  223. package/dist/styles/index.css +1098 -1885
  224. package/package.json +2 -1
  225. package/dist/_dts/index-B0_2-65A.d.ts +0 -101
  226. package/dist/client/TabBarFragment-DlKQRhP4.mjs +0 -56
  227. package/dist/client/checkoutRoute-DKlZRNZD.mjs +0 -22
  228. package/dist/client/creditProducts-BQ1t1erI.mjs +0 -266
  229. package/dist/client/formatDate-hhI1-tzt.mjs +0 -26
  230. package/dist/server/constants-Cj7hfbrA.mjs +0 -41
  231. package/dist/server/richTextSchema-QLaQrbII.mjs +0 -212
  232. package/dist/server/titleSourceSchema-Cu-3PRvv.mjs +0 -122
@@ -1,12 +1,15 @@
1
- import { C as buttonVisualStatesSchema, Dt as parseThemeColorToken, E as VARIANT_ROLES, Et as parseColorTokenParts, S as buttonVariantIdSchema, T as SYSTEM_BLOCK_KINDS, Tt as paletteModeSchema, W as featuresFromHex, _ as isVariantRole, at as surfaceForegroundValue, b as buttonPressOffsetSchema, ct as surfaceInkStyle, dt as borderColorStyle, f as DEFAULT_VARIANT_ALIAS_ID, ht as textColorStyle, i as BUTTON_CONTRAST_POLICY, it as surfaceForegroundStyle, j as expandPalette, l as ELEVATION_OFFSET, m as asSpecialVariantId, mt as rgbColorValue, pt as mergeStyles, rt as surfaceForegroundInputFromResolved, ut as backgroundColorStyle, v as unsafeAsOpaqueButtonColourToken, vt as blockColorTokenNames, wt as paletteColorsSchema, y as buttonEffectApplicationSchema, yt as hexColorSchema } from "./resolveButtonColourStates--6yJp9Tq.mjs";
2
- import { D as mapButtonRoleAppearances, E as defineButtonStyleRecipe, F as resolveSurfaceForeground, G as resolveConcreteColorHex, H as contrastThresholdByPolicy, J as paletteValueKeySchema, K as resolveOpaqueSurfaceHex, L as surfaceInkPublication, O as mapButtonVisualAppearances, T as PUBLIC_BUTTON_ROLES, W as planForegroundHover, Y as requirePaletteColorsFromEntries, c as surfaceButtonRequest, d as toAccessibleColorSurfaceIntent, h as scrimTone, i as prepareThemeSurfaceRevision, j as resolveThemeColorReferenceValue, l as surfaceDecorationColors, m as minimumScrimOpacity, o as resolveSurface, p as gradientScrimSamples, q as paletteValueKey, t as parseResolvedSurface, u as surfaceTransportContext } from "./accessibleSurfaces-CM3QANtw.mjs";
3
- import { C as asDesignBoundaryId, D as asSiteStyleId, E as asPageFlowPresetId, O as makeBoundaryId, S as asDesignBlockId, T as asLayoutVariantKey, _ as isArrangementMode, b as asAppearancePresetId, d as arrangementModes, h as headingDecorationColorTokenValues, m as eyebrowTreatmentValues, p as eventListTreatmentValues, v as tileTreatmentValues, w as asDesignSystemTemplateId, x as asBoundaryOptionId, y as visibleHeadingDecorationFamilyValues } from "./customCss-BZ8YSrQg.mjs";
4
- import { _ as asHeaderStyleId, a as headerVariantValues, c as runtimeBoxBackgroundSchema, d as cardVariantRoleValues, f as itemRoleValues, g as asHeaderLayoutId, h as asFooterLookId, l as boxlessCardVariantValue, n as containerStylesOverrideSchema, o as boxBackgroundOverlaySchema, p as openCardRoleValue, r as sectionStylesOverrideSchema, s as boxBackgroundSchema, t as cardStylesOverrideSchema, u as cardRoleSchema, v as bookingPageLookIdValues } from "./schema-BpsqaSSU.mjs";
5
- import { C as ok$1, S as err, b as unsafeAsStoragePath, c as buildRenderableMediaAssetIndex, d as resolveManagedMediaReference, f as PUBLIC_FILE_FIELD_KINDS, g as parseCanonicalMediaIdentifier, m as mediaTypeDiscriminants, o as runtimeMediaSchema, p as isDisplayMediaKind, v as unsafeAsMediaAssetId, x as parseUuidBrand, y as unsafeAsStorageBucketName } from "./media-luf7RF22.mjs";
6
- import { a as normalizeLocationAddressText, c as publicLocationSchema, d as mapDrawingSchema, l as toLocationCoordinates, n as publicMapLocationResultSchema, o as parseLocationValue, r as publicVenueMapLocationSchema, s as projectPublicLocation, u as trimmedStringOrNull } from "./mapLocation-BM5WX7FY.mjs";
1
+ import { A as borderColorStyle, B as blockColorTokenNames, C as surfaceForegroundStyle, D as surfaceInkStyle, J as parseColorTokenParts, K as paletteColorsSchema, M as mergeStyles, N as rgbColorValue, P as textColorStyle, S as surfaceForegroundInputFromResolved, V as hexColorSchema, Y as parseThemeColorToken, c as buttonEffectApplicationSchema, d as buttonVariantIdSchema, f as buttonVisualStatesSchema, g as VARIANT_ROLES, h as SYSTEM_BLOCK_KINDS, k as backgroundColorStyle, l as buttonPressOffsetSchema, o as isVariantRole, q as paletteModeSchema, r as asSpecialVariantId, s as unsafeAsOpaqueButtonColourToken, t as DEFAULT_VARIANT_ALIAS_ID, w as surfaceForegroundValue } from "./types-BKaBZFjD.mjs";
2
+ import { C as paletteInk, E as paletteInkToken, F as requirePaletteColorsFromEntries, H as featuresFromHex, M as resolveOpaqueSurfaceHex, N as paletteValueKey, P as paletteValueKeySchema, R as hexLuminance, T as paletteInkRoles, _ as ELEVATION_OFFSET, a as compositeHex, c as scrimTone, f as BUTTON_CONTRAST_POLICY, j as resolveConcreteColorHex, o as gradientScrimSamples, r as expandPalette, s as minimumScrimOpacity, z as luminanceInterval } from "./expandPalette-ehuW8r2g.mjs";
3
+ import { B as planForegroundHover, C as mapButtonRoleAppearances, D as resolveThemeColorReferenceValue, N as surfaceInkPublication, R as contrastThresholdByPolicy, S as defineButtonStyleRecipe, c as surfaceButtonRequest, d as toAccessibleColorSurfaceIntent, i as prepareThemeSurfaceRevision, j as resolveSurfaceForeground, l as surfaceDecorationColors, o as resolveSurface, t as parseResolvedSurface, u as surfaceTransportContext, w as mapButtonVisualAppearances, x as PUBLIC_BUTTON_ROLES } from "./accessibleSurfaces-Dskni4Xj.mjs";
4
+ import { A as makeBoundaryId, C as asBoundaryOptionId, D as asLayoutVariantKey, E as asDesignSystemTemplateId, O as asPageFlowPresetId, S as asAppearancePresetId, T as asDesignBoundaryId, _ as headingDecorationColorTokenValues, b as tileTreatmentValues, g as eyebrowTreatmentValues, h as eventListTreatmentValues, k as asSiteStyleId, p as arrangementModes, w as asDesignBlockId, x as visibleHeadingDecorationFamilyValues, y as isArrangementMode } from "./customCss-C9kgPHvr.mjs";
5
+ import { _ as asHeaderStyleId, a as headerVariantValues, c as runtimeBoxBackgroundSchema, d as cardVariantRoleValues, f as itemRoleValues, g as asHeaderLayoutId, h as asFooterLookId, l as boxlessCardVariantValue, n as containerStylesOverrideSchema, o as boxBackgroundOverlaySchema, p as openCardRoleValue, r as sectionStylesOverrideSchema, s as boxBackgroundSchema, t as cardStylesOverrideSchema, u as cardRoleSchema, v as bookingPageLookIdValues } from "./schema-CwfxQjc4.mjs";
6
+ import { a as parseUuidBrand, i as unsafeAsStoragePath, n as unsafeAsMediaAssetId, o as err, r as unsafeAsStorageBucketName, s as ok$1 } from "./media-BRmYrnzb.mjs";
7
+ import { c as parseAppointmentServiceId, f as parseEventOfferingId, n as bookingQuestionsSectionSchema, p as parseEventSeriesId, t as bookingQuestionsAnswersSchema, u as parseSiteTermsVersionId } from "./portalQuestions-oUyohgL9.mjs";
8
+ import { a as normalizeLocationAddressText, c as publicLocationSchema, d as mapDrawingSchema, l as toLocationCoordinates, n as publicMapLocationResultSchema, o as parseLocationValue, r as publicVenueMapLocationSchema, s as projectPublicLocation, u as trimmedStringOrNull } from "./mapLocation-MDDSubTp.mjs";
7
9
  import { t as assertNever } from "./assert-never-ku-PUn9U.mjs";
8
- import { n as RichTextDocSchema } from "./richTextSchema-QLaQrbII.mjs";
9
- import { A as lookKnobBlocks, C as requireNonEmptyReadonlyArray, D as cardListBlockParts, E as toNonEmptyReadonlyArray, M as opaqueSurfaceDeclarations, O as cardListFamilyBlocks, T as testimonialsCompositionTreatmentValues, a as layoutProfileSupportsConstraints, b as noHeadingDecoration, c as isArrangementAppearancePreset, d as lookModes, f as assertNever$1, g as defineNoBlockDesignCapability, h as defineFrameCapability, i as blockAppearancePresets, k as cardListKnobBlocks, l as isLookSettingFact, m as defineExactCatalog, n as resolveLookMediaFrame, o as resolveBlockAppearancePresetDesign, p as defineBlockDesignCapability, r as arrangementLookFits, s as resolveEffectiveKnobs, u as isRecipeAppearancePreset, x as offeringsPreviewCompositionTreatmentValues } from "./lookMediaFrame-m-91jGGn.mjs";
10
+ import { i as NodeTreeSchema, l as RichTextDocSchema, m as sanitizeHref, n as isRecord$13, r as NodeSchema, t as isObjectRecord$1 } from "./typeGuards-CTW_9AXq.mjs";
11
+ import { c as buildRenderableMediaAssetIndex, d as resolveManagedMediaReference, f as PUBLIC_FILE_FIELD_KINDS, g as parseCanonicalMediaIdentifier, m as mediaTypeDiscriminants, o as runtimeMediaSchema, p as isDisplayMediaKind } from "./media-gvfIw3z8.mjs";
12
+ import { A as lookKnobBlocks, C as requireNonEmptyReadonlyArray, D as cardListBlockParts, E as toNonEmptyReadonlyArray, M as opaqueSurfaceDeclarations, O as cardListFamilyBlocks, T as testimonialsCompositionTreatmentValues, a as layoutProfileSupportsConstraints, b as noHeadingDecoration, c as isArrangementAppearancePreset, d as lookModes, f as assertNever$1, g as defineNoBlockDesignCapability, h as defineFrameCapability, i as blockAppearancePresets, k as cardListKnobBlocks, l as isLookSettingFact, m as defineExactCatalog, n as resolveLookMediaFrame, o as resolveBlockAppearancePresetDesign, p as defineBlockDesignCapability, r as arrangementLookFits, s as resolveEffectiveKnobs, u as isRecipeAppearancePreset, x as offeringsPreviewCompositionTreatmentValues } from "./lookMediaFrame-H0fi4bJk.mjs";
10
13
  import React from "react";
11
14
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
12
15
  import { z } from "zod";
@@ -330,21 +333,6 @@ const buttonStyleSelectionSchema = z.discriminatedUnion("styleId", [
330
333
  /** Server-resolved presentation context, never permission to perform a write. */
331
334
  const blockInteractionContextSchema = z.discriminatedUnion("kind", [z.object({ kind: z.literal("live") }).strict(), z.object({ kind: z.literal("demo") }).strict()]);
332
335
  //#endregion
333
- //#region ../core/src/branded/events.ts
334
- const unsafeAsEventOfferingId = (id) => id;
335
- const unsafeAsEventSeriesId = (id) => id;
336
- const unsafeAsEventCategoryId$1 = (id) => id;
337
- const parseEventOfferingId = (value) => parseUuidBrand(value, unsafeAsEventOfferingId);
338
- const parseEventSeriesId = (value) => parseUuidBrand(value, unsafeAsEventSeriesId);
339
- //#endregion
340
- //#region ../core/src/branded/customers.ts
341
- const unsafeAsSiteTermsVersionId = (id) => id;
342
- const parseSiteTermsVersionId = (value) => parseUuidBrand(value, unsafeAsSiteTermsVersionId);
343
- //#endregion
344
- //#region ../core/src/branded/appointments.ts
345
- const unsafeAsAppointmentServiceId = (id) => id;
346
- const parseAppointmentServiceId = (value) => parseUuidBrand(value, unsafeAsAppointmentServiceId);
347
- //#endregion
348
336
  //#region ../core/src/branded/content.ts
349
337
  const unsafeAsContentEntryId = (id) => id;
350
338
  const unsafeAsContentVersionId = (id) => id;
@@ -689,7 +677,7 @@ function parseEventPageSurfaceDestinationMode(value) {
689
677
  return value === "cms-managed" || value === "system-managed" ? value : void 0;
690
678
  }
691
679
  function parseEventPageSurfaceSubject(value) {
692
- if (!isRecord$13(value)) return err({ kind: "notObject" });
680
+ if (!isRecord$12(value)) return err({ kind: "notObject" });
693
681
  const parsed = value.kind === "eventSeries" ? parseEventSeriesPageSurfaceSubject(value) : value.kind === "eventOffering" ? parseEventOfferingPageSurfaceSubject(value) : err({
694
682
  kind: "unsupportedSubject",
695
683
  subjectKind: value.kind
@@ -748,7 +736,7 @@ function parseEventSeriesIdList(values) {
748
736
  }
749
737
  return ok$1(parsed);
750
738
  }
751
- function isRecord$13(value) {
739
+ function isRecord$12(value) {
752
740
  return typeof value === "object" && value !== null && !Array.isArray(value);
753
741
  }
754
742
  /**
@@ -1430,7 +1418,7 @@ const publicProfileWeekdays = [
1430
1418
  "saturday",
1431
1419
  "sunday"
1432
1420
  ];
1433
- function isRecord$12(value) {
1421
+ function isRecord$11(value) {
1434
1422
  return typeof value === "object" && value !== null && !Array.isArray(value);
1435
1423
  }
1436
1424
  function trimmedOptionalString(value) {
@@ -1471,7 +1459,7 @@ function minutesSinceMidnight(value) {
1471
1459
  }
1472
1460
  function parseOpeningHoursDay(value, expectedWeekday, index) {
1473
1461
  const path = `openingHours.days.${index}`;
1474
- if (!isRecord$12(value) || value.weekday !== expectedWeekday) return err({
1462
+ if (!isRecord$11(value) || value.weekday !== expectedWeekday) return err({
1475
1463
  code: "invalid_weekdays",
1476
1464
  path,
1477
1465
  message: `Expected ${expectedWeekday} in calendar order.`
@@ -1488,7 +1476,7 @@ function parseOpeningHoursDay(value, expectedWeekday, index) {
1488
1476
  const intervals = [];
1489
1477
  for (const [intervalIndex, rawInterval] of value.intervals.entries()) {
1490
1478
  const intervalPath = `${path}.intervals.${intervalIndex}`;
1491
- if (!isRecord$12(rawInterval)) return err({
1479
+ if (!isRecord$11(rawInterval)) return err({
1492
1480
  code: "invalid_interval",
1493
1481
  path: intervalPath,
1494
1482
  message: "Opening interval is invalid."
@@ -1550,7 +1538,7 @@ function parseOpeningHoursWeek(rawDays) {
1550
1538
  ]);
1551
1539
  }
1552
1540
  function parseWeeklyOpeningHours(value) {
1553
- if (!isRecord$12(value) || !Array.isArray(value.days) || value.days.length !== publicProfileWeekdays.length) return err({
1541
+ if (!isRecord$11(value) || !Array.isArray(value.days) || value.days.length !== publicProfileWeekdays.length) return err({
1554
1542
  code: "invalid_weekdays",
1555
1543
  path: "openingHours.days",
1556
1544
  message: "Opening hours must include all seven weekdays."
@@ -1573,7 +1561,7 @@ function parseWeeklyOpeningHours(value) {
1573
1561
  }
1574
1562
  //#endregion
1575
1563
  //#region ../core/src/rich-text.ts
1576
- function isRecord$11(value) {
1564
+ function isRecord$10(value) {
1577
1565
  return typeof value === "object" && value !== null && !Array.isArray(value);
1578
1566
  }
1579
1567
  function hasOnlyKeys(value, allowed) {
@@ -1593,15 +1581,15 @@ function isDenseArrayOf(value, predicate) {
1593
1581
  return true;
1594
1582
  }
1595
1583
  function isTipTapMark(value) {
1596
- return isRecord$11(value) && hasOnlyKeys(value, markKeys) && typeof value.type === "string" && value.type.length > 0 && (value.attrs === void 0 || isRecord$11(value.attrs));
1584
+ return isRecord$10(value) && hasOnlyKeys(value, markKeys) && typeof value.type === "string" && value.type.length > 0 && (value.attrs === void 0 || isRecord$10(value.attrs));
1597
1585
  }
1598
1586
  function isTipTapNode(value) {
1599
- if (!isRecord$11(value) || !hasOnlyKeys(value, nodeKeys) || typeof value.type !== "string" || value.type.length === 0 || value.type === "doc" || value.attrs !== void 0 && !isRecord$11(value.attrs) || value.marks !== void 0 && (!Array.isArray(value.marks) || !isDenseArrayOf(value.marks, isTipTapMark)) || value.content !== void 0 && (!Array.isArray(value.content) || !isDenseArrayOf(value.content, isTipTapNode))) return false;
1587
+ if (!isRecord$10(value) || !hasOnlyKeys(value, nodeKeys) || typeof value.type !== "string" || value.type.length === 0 || value.type === "doc" || value.attrs !== void 0 && !isRecord$10(value.attrs) || value.marks !== void 0 && (!Array.isArray(value.marks) || !isDenseArrayOf(value.marks, isTipTapMark)) || value.content !== void 0 && (!Array.isArray(value.content) || !isDenseArrayOf(value.content, isTipTapNode))) return false;
1600
1588
  if (value.type === "text") return typeof value.text === "string" && value.text.length > 0 && value.content === void 0;
1601
1589
  return value.text === void 0;
1602
1590
  }
1603
1591
  function isCanonicalRichTextDoc(value) {
1604
- return isRecord$11(value) && hasOnlyKeys(value, rootKeys) && value.type === "doc" && Array.isArray(value.content) && isDenseArrayOf(value.content, isTipTapNode);
1592
+ return isRecord$10(value) && hasOnlyKeys(value, rootKeys) && value.type === "doc" && Array.isArray(value.content) && isDenseArrayOf(value.content, isTipTapNode);
1605
1593
  }
1606
1594
  /** Whether a document contains non-whitespace text, including in nested nodes. */
1607
1595
  function richTextHasText(document) {
@@ -1693,10 +1681,10 @@ function presentVisitorSelection(selection, optionCount) {
1693
1681
  //#region ../core/src/mailing-list-targeting-parser.ts
1694
1682
  function parseMailingListPlacementTargeting(value) {
1695
1683
  if (value == null) return ok$1(DEFAULT_MAILING_LIST_TARGETING);
1696
- if (!isRecord$10(value)) return targetingError("shape");
1684
+ if (!isRecord$9(value)) return targetingError("shape");
1697
1685
  if (value.mode === "default") return ok$1({ mode: "default" });
1698
1686
  if (value.mode !== "custom") return targetingError("mode");
1699
- if (!isRecord$10(value.selection)) return targetingError("selection");
1687
+ if (!isRecord$9(value.selection)) return targetingError("selection");
1700
1688
  switch (value.provider) {
1701
1689
  case "native": return parseNativeTargeting(value.selection);
1702
1690
  case "brevo": return parseBrevoTargeting(value.selection);
@@ -1802,7 +1790,7 @@ function parseUniqueIds(value, parseId) {
1802
1790
  return id === null ? targetingError("targets") : parsed.value.includes(id) ? targetingError("duplicate_target") : ok$1([...parsed.value, id]);
1803
1791
  }, ok$1([]));
1804
1792
  }
1805
- function isRecord$10(value) {
1793
+ function isRecord$9(value) {
1806
1794
  return typeof value === "object" && value !== null && !Array.isArray(value);
1807
1795
  }
1808
1796
  function targetingError(field) {
@@ -1813,7 +1801,7 @@ function targetingError(field) {
1813
1801
  }
1814
1802
  //#endregion
1815
1803
  //#region ../core/src/mailing-list-setup.ts
1816
- function isRecord$9(value) {
1804
+ function isRecord$8(value) {
1817
1805
  return typeof value === "object" && value !== null && !Array.isArray(value);
1818
1806
  }
1819
1807
  const DEFAULT_MAILING_LIST_SUCCESS_MESSAGE = "Thanks — you're on the list.";
@@ -1823,7 +1811,7 @@ const DEFAULT_MAILING_LIST_SUCCESS_MESSAGE = "Thanks — you're on the list.";
1823
1811
  */
1824
1812
  const DEFAULT_MAILING_LIST_PRIVACY_NOTE = "Change your preferences or unsubscribe at any time.";
1825
1813
  function parseMailingListProviderScope(value) {
1826
- if (!isRecord$9(value)) return err("invalid_mailing_list_provider_scope");
1814
+ if (!isRecord$8(value)) return err("invalid_mailing_list_provider_scope");
1827
1815
  if (value.provider === "native") return ok$1({ provider: "native" });
1828
1816
  if (value.provider === "brevo") {
1829
1817
  const accountId = parseBrevoAccountId(value.accountId);
@@ -1851,7 +1839,7 @@ z.unknown().transform((value, ctx) => {
1851
1839
  return z.NEVER;
1852
1840
  });
1853
1841
  function parseMailingListGlobalForm(value) {
1854
- if (!isRecord$8(value)) return formError("shape");
1842
+ if (!isRecord$7(value)) return formError("shape");
1855
1843
  const fields = parseGlobalFields(value.fields);
1856
1844
  if (fields === null) return formError("fields");
1857
1845
  if (typeof value.includeOptionalPhone !== "boolean") return formError("includeOptionalPhone");
@@ -1870,7 +1858,7 @@ function parseMailingListGlobalForm(value) {
1870
1858
  });
1871
1859
  }
1872
1860
  function parseNewsletterAudience(value) {
1873
- if (!isRecord$8(value)) return err("invalid_newsletter_audience");
1861
+ if (!isRecord$7(value)) return err("invalid_newsletter_audience");
1874
1862
  if (value.kind === "general" && Object.keys(value).length === 1) return ok$1({ kind: "general" });
1875
1863
  if (value.kind !== "topic" || Object.keys(value).some((key) => key !== "kind" && key !== "topicId")) return err("invalid_newsletter_audience");
1876
1864
  const topicId = parseNewsletterListId(value.topicId);
@@ -1880,7 +1868,7 @@ function parseNewsletterAudience(value) {
1880
1868
  });
1881
1869
  }
1882
1870
  function parseGlobalFields(value) {
1883
- if (!isRecord$8(value) || typeof value.preset !== "string") return null;
1871
+ if (!isRecord$7(value) || typeof value.preset !== "string") return null;
1884
1872
  switch (value.preset) {
1885
1873
  case "emailOnly": return { preset: "emailOnly" };
1886
1874
  case "emailName": return isRequirement(value.name) ? {
@@ -1921,7 +1909,7 @@ function parseOptionalString(value) {
1921
1909
  function isRequirement(value) {
1922
1910
  return value === "required" || value === "optional";
1923
1911
  }
1924
- function isRecord$8(value) {
1912
+ function isRecord$7(value) {
1925
1913
  return typeof value === "object" && value !== null && !Array.isArray(value);
1926
1914
  }
1927
1915
  function formError(field) {
@@ -2040,7 +2028,7 @@ function assessMatchedChoices(matched, choices) {
2040
2028
  //#endregion
2041
2029
  //#region ../core/src/mailing-list-runtime.ts
2042
2030
  function parseMailingListRuntimeContext(value) {
2043
- if (!isRecord$7(value)) return invalidRuntimeContext();
2031
+ if (!isRecord$6(value)) return invalidRuntimeContext();
2044
2032
  if (value.tag === "not_configured") return ok$1({ tag: "not_configured" });
2045
2033
  if (value.tag !== "configured") return invalidRuntimeContext();
2046
2034
  return parseConfiguredRuntimeContext(value);
@@ -2064,7 +2052,7 @@ function parseBookingSignupOffer(value) {
2064
2052
  tag: "unavailable",
2065
2053
  reason: "disabled"
2066
2054
  };
2067
- if (!isRecord$7(value)) return null;
2055
+ if (!isRecord$6(value)) return null;
2068
2056
  if (value.tag === "offered") return { tag: "offered" };
2069
2057
  if (value.tag === "unavailable" && (value.reason === "disabled" || value.reason === "fields" || value.reason === "destination")) return {
2070
2058
  tag: "unavailable",
@@ -2073,7 +2061,7 @@ function parseBookingSignupOffer(value) {
2073
2061
  return null;
2074
2062
  }
2075
2063
  function parseRuntimeProvider(value) {
2076
- if (!isRecord$7(value)) return null;
2064
+ if (!isRecord$6(value)) return null;
2077
2065
  switch (value.provider) {
2078
2066
  case "native": return parseNativeRuntimeProvider(value);
2079
2067
  case "brevo": return parseBrevoRuntimeProvider(value);
@@ -2111,7 +2099,7 @@ function parseMailchimpRuntimeProvider(value) {
2111
2099
  } : null;
2112
2100
  }
2113
2101
  function parseMailchimpAudience(value) {
2114
- if (!isRecord$7(value) || !Array.isArray(value.interests)) return null;
2102
+ if (!isRecord$6(value) || !Array.isArray(value.interests)) return null;
2115
2103
  const id = parseMailchimpAudienceId(value.id);
2116
2104
  const name = parseName(value.name);
2117
2105
  const interests = Array.from(value.interests, parseMailchimpInterest);
@@ -2122,7 +2110,7 @@ function parseMailchimpAudience(value) {
2122
2110
  } : null;
2123
2111
  }
2124
2112
  function parseMailchimpInterest(value) {
2125
- if (!isRecord$7(value)) return null;
2113
+ if (!isRecord$6(value)) return null;
2126
2114
  const id = parseMailchimpInterestId(value.id);
2127
2115
  const name = parseName(value.name);
2128
2116
  const categoryName = parseName(value.categoryName);
@@ -2135,7 +2123,7 @@ function parseMailchimpInterest(value) {
2135
2123
  function parseNamedItems(value, parseId) {
2136
2124
  if (!Array.isArray(value)) return null;
2137
2125
  const items = Array.from(value, (item) => {
2138
- if (!isRecord$7(item)) return null;
2126
+ if (!isRecord$6(item)) return null;
2139
2127
  const id = parseId(item.id);
2140
2128
  const name = parseName(item.name);
2141
2129
  return id !== null && name !== null ? {
@@ -2150,7 +2138,7 @@ function parseName(value) {
2150
2138
  const name = value.trim();
2151
2139
  return name.length > 0 ? name : null;
2152
2140
  }
2153
- function isRecord$7(value) {
2141
+ function isRecord$6(value) {
2154
2142
  return typeof value === "object" && value !== null && !Array.isArray(value);
2155
2143
  }
2156
2144
  function invalidRuntimeContext() {
@@ -2431,11 +2419,11 @@ function parseRelativeStoragePath(value) {
2431
2419
  }
2432
2420
  //#endregion
2433
2421
  //#region ../media-core/src/typeGuards.ts
2434
- function isRecord$6(value) {
2422
+ function isRecord$5(value) {
2435
2423
  return Boolean(value) && typeof value === "object" && !Array.isArray(value);
2436
2424
  }
2437
2425
  function asRecord(value) {
2438
- return isRecord$6(value) ? value : void 0;
2426
+ return isRecord$5(value) ? value : void 0;
2439
2427
  }
2440
2428
  //#endregion
2441
2429
  //#region ../media-core/src/url.ts
@@ -3026,139 +3014,15 @@ const linkSchema = z.union([
3026
3014
  entryLinkSchema
3027
3015
  ]);
3028
3016
  //#endregion
3029
- //#region ../core/src/rich-text-href.ts
3030
- const SAFE_PROTOCOLS = /* @__PURE__ */ new Set([
3031
- "http:",
3032
- "https:",
3033
- "mailto:",
3034
- "tel:"
3035
- ]);
3036
- const CONTROL_CHARS_PATTERN = /[\u0000-\u001F\u007F]+/g;
3037
- function normalizeInput(value) {
3038
- return value.replace(CONTROL_CHARS_PATTERN, "").trim();
3039
- }
3040
- function decodeForSchemeCheck(value) {
3041
- try {
3042
- return decodeURIComponent(value);
3043
- } catch {
3044
- return value;
3045
- }
3046
- }
3047
- /**
3048
- * Returns a safe href for rich-text anchors, or null when the value should not be rendered.
3049
- *
3050
- * Policy:
3051
- * - Allow absolute URLs with protocols: http, https, mailto, tel.
3052
- * - Allow root-relative ("/path") and hash-only ("#section") links.
3053
- * - Reject protocol-relative URLs ("//example.com"), bare domains ("example.com"),
3054
- * backslashes, executable schemes (javascript/data/vbscript), malformed URLs, and empty values.
3055
- * - Preserve percent-encoding from the original normalized input.
3056
- */
3057
- function sanitizeHref(raw) {
3058
- if (typeof raw !== "string") return null;
3059
- const normalized = normalizeInput(raw);
3060
- if (!normalized) return null;
3061
- if (normalized.includes("\\") || normalized.startsWith("//")) return null;
3062
- if (normalized.startsWith("/")) return normalized;
3063
- if (normalized.startsWith("#")) return normalized;
3064
- return sanitizeAbsoluteHref(normalized);
3065
- }
3066
- function sanitizeAbsoluteHref(normalized) {
3067
- const schemeMatch = normalizeInput(decodeForSchemeCheck(normalized)).match(/^([a-zA-Z][a-zA-Z0-9+.-]*):/);
3068
- if (schemeMatch === null) return null;
3069
- const rawScheme = schemeMatch[1];
3070
- if (rawScheme === void 0 || rawScheme.length === 0) return null;
3071
- const protocol = `${rawScheme.toLowerCase()}:`;
3072
- if (!SAFE_PROTOCOLS.has(protocol)) return null;
3073
- try {
3074
- const parsed = new URL(normalized);
3075
- if (!SAFE_PROTOCOLS.has(parsed.protocol.toLowerCase())) return null;
3076
- } catch {
3077
- return null;
3078
- }
3079
- return normalized;
3080
- }
3081
- //#endregion
3082
3017
  //#region ../blocks/src/system/runtime/api/schemas/bookingQuestions.ts
3083
- const optionSchema = z.object({
3084
- value: z.string(),
3085
- label: z.string()
3086
- });
3087
- /** Everything a scalar question may carry besides its identity; all of it is optional. */
3088
- const scalarFieldDetails = z.object({
3089
- required: z.boolean(),
3090
- placeholder: z.string(),
3091
- helpText: z.string(),
3092
- options: z.array(optionSchema),
3093
- multiple: z.boolean(),
3094
- minLength: z.number(),
3095
- maxLength: z.number(),
3096
- pattern: z.string(),
3097
- min: z.number(),
3098
- max: z.number()
3099
- }).partial();
3100
- const scalarFieldSchema = z.object({
3101
- id: z.string().min(1),
3102
- label: z.string(),
3103
- type: z.enum([
3104
- "text",
3105
- "email",
3106
- "textarea",
3107
- "select",
3108
- "radio",
3109
- "checkbox",
3110
- "tel",
3111
- "url",
3112
- "number",
3113
- "date",
3114
- "time"
3115
- ]),
3116
- ...scalarFieldDetails.shape
3117
- });
3118
- const documentFieldSchema = z.object({
3119
- id: z.string().min(1),
3120
- label: z.string(),
3121
- type: z.literal("document_upload"),
3122
- required: z.boolean().optional(),
3123
- placeholder: z.string().optional(),
3124
- helpText: z.string().optional(),
3125
- allowedFileTypes: z.array(z.enum([
3126
- "pdf",
3127
- "image",
3128
- "docx"
3129
- ])),
3130
- maxBytes: z.number()
3131
- });
3132
- const fieldSchema$1 = z.union([scalarFieldSchema, documentFieldSchema]);
3133
- const sectionSchema = z.object({
3134
- id: z.string(),
3135
- title: z.string(),
3136
- description: z.string().optional(),
3137
- items: z.array(fieldSchema$1)
3138
- });
3139
- /** One answer as a booking flow holds it; also what drafts kept across a sign-in or payment return parse. */
3140
- const bookingQuestionsAnswerValueSchema = z.union([
3141
- z.string(),
3142
- z.number(),
3143
- z.boolean(),
3144
- z.null(),
3145
- z.array(z.string()),
3146
- z.object({
3147
- kind: z.literal("document_upload"),
3148
- fileName: z.string(),
3149
- mimeType: z.string(),
3150
- bytes: z.number(),
3151
- uploadId: z.string().optional()
3152
- })
3153
- ]);
3154
3018
  const setSchema = z.object({
3155
3019
  requirementId: z.string().min(1),
3156
3020
  sharingKey: z.string().min(1).optional(),
3157
3021
  title: z.string(),
3158
- sections: z.array(sectionSchema)
3022
+ sections: z.array(bookingQuestionsSectionSchema)
3159
3023
  });
3160
- z.array(sectionSchema);
3161
- const bookingQuestionAnswersSchema = z.record(z.string(), bookingQuestionsAnswerValueSchema);
3024
+ z.array(bookingQuestionsSectionSchema);
3025
+ const bookingQuestionAnswersSchema = bookingQuestionsAnswersSchema;
3162
3026
  /** The presentation a public catalogue or the authenticated read hands the booking flows. */
3163
3027
  const beforeBookingQuestionsPresentationSchema = z.discriminatedUnion("kind", [
3164
3028
  z.object({ kind: z.literal("none") }),
@@ -3368,7 +3232,11 @@ const publicEventDestinationSchema = z.discriminatedUnion("kind", [z.object({
3368
3232
  }), z.object({
3369
3233
  kind: z.literal("external"),
3370
3234
  url: z.string(),
3371
- label: z.string()
3235
+ label: z.string(),
3236
+ page: z.object({
3237
+ mode: eventDestinationModeSchema,
3238
+ path: z.string()
3239
+ }).optional()
3372
3240
  })]);
3373
3241
  /**
3374
3242
  * Zod schema for venue data
@@ -3858,6 +3726,14 @@ function recurrenceKey(event) {
3858
3726
  if (!recurrence) return "none";
3859
3727
  return recurrence.kind === "other" ? recurrence.kind : `${recurrence.kind}:${recurrence.interval}:${recurrence.weekdays.join(",")}`;
3860
3728
  }
3729
+ /**
3730
+ * Whether a series' recurrence rule fits the weekly schedule: every week,
3731
+ * not every other week or monthly. A series with no rule can still be
3732
+ * projected from the spacing of its dates.
3733
+ */
3734
+ function isWeeklyScheduleRecurrence(recurrence) {
3735
+ return recurrence.kind === "weekly" && recurrence.interval === 1;
3736
+ }
3861
3737
  function recurrenceRuleEvidence(seriesId, events, schedule) {
3862
3738
  if (new Set(events.map(recurrenceKey)).size > 1) return {
3863
3739
  seriesId,
@@ -3865,7 +3741,7 @@ function recurrenceRuleEvidence(seriesId, events, schedule) {
3865
3741
  };
3866
3742
  const recurrence = events[0]?.recurrence;
3867
3743
  if (!recurrence) return null;
3868
- if (recurrence.kind !== "weekly" || recurrence.interval !== 1) return {
3744
+ if (recurrence.kind !== "weekly" || !isWeeklyScheduleRecurrence(recurrence)) return {
3869
3745
  seriesId,
3870
3746
  reason: "unsupported_weekly_cadence"
3871
3747
  };
@@ -3973,200 +3849,91 @@ function projectRecurringSchedule(events) {
3973
3849
  };
3974
3850
  }
3975
3851
  //#endregion
3976
- //#region ../calendar/src/grid.ts
3977
- const DAY_NAMES = [
3978
- "Sun",
3979
- "Mon",
3980
- "Tue",
3981
- "Wed",
3982
- "Thu",
3983
- "Fri",
3984
- "Sat"
3985
- ];
3986
- const MONTH_NAMES = [
3987
- "January",
3988
- "February",
3989
- "March",
3990
- "April",
3991
- "May",
3992
- "June",
3993
- "July",
3994
- "August",
3995
- "September",
3996
- "October",
3997
- "November",
3998
- "December"
3999
- ];
4000
- function formatDateKey(date) {
4001
- return `${String(date.year).padStart(4, "0")}-${String(date.month).padStart(2, "0")}-${String(date.day).padStart(2, "0")}`;
4002
- }
4003
- function isToday(date, today) {
4004
- return isSameCalendarDay(date, today);
4005
- }
4006
- function isSameCalendarDay(left, right) {
4007
- return left.year === right.year && left.month === right.month && left.day === right.day;
4008
- }
4009
- function addDays(date, days) {
4010
- const result = new Date(Date.UTC(date.year, date.month - 1, date.day + days, 12));
4011
- return {
4012
- year: result.getUTCFullYear(),
4013
- month: result.getUTCMonth() + 1,
4014
- day: result.getUTCDate()
4015
- };
4016
- }
4017
- function getMonthCalendarDays(year, month, startOfWeek) {
4018
- const firstDay = {
4019
- year,
4020
- month,
4021
- day: 1
4022
- };
4023
- const dayOfWeek = getDayOfWeek(firstDay);
4024
- const gridStart = addDays(firstDay, -(startOfWeek === "monday" ? dayOfWeek === 0 ? 6 : dayOfWeek - 1 : dayOfWeek));
4025
- return Array.from({ length: 42 }, (_, index) => addDays(gridStart, index));
4026
- }
4027
- function getWeekCalendarDays(baseDate, startOfWeek) {
4028
- const dayOfWeek = getDayOfWeek(baseDate);
4029
- const weekStart = addDays(baseDate, -(startOfWeek === "monday" ? dayOfWeek === 0 ? 6 : dayOfWeek - 1 : dayOfWeek));
4030
- return Array.from({ length: 7 }, (_, index) => addDays(weekStart, index));
4031
- }
4032
- function getDayOfWeek(date) {
4033
- return new Date(Date.UTC(date.year, date.month - 1, date.day, 12)).getUTCDay();
4034
- }
4035
- function getWeekCalendarDayTuple(baseDate, startOfWeek) {
4036
- const days = getWeekCalendarDays(baseDate, startOfWeek);
4037
- assertWeekCalendarDays(days);
4038
- return days;
4039
- }
4040
- function assertWeekCalendarDays(days) {
4041
- if (days.length !== 7) throw new Error("Expected exactly 7 calendar days");
4042
- }
4043
- function getOrderedDayNames(startOfWeek, dayNames = DAY_NAMES) {
4044
- if (startOfWeek === "monday") {
4045
- const sunday = dayNames[0] ?? "Sun";
4046
- return [...dayNames.slice(1), sunday];
4047
- }
4048
- return [...dayNames];
4049
- }
4050
- function formatCalendarTitle$1(viewDate, view, days, monthNames = MONTH_NAMES) {
4051
- if (view === "week") {
4052
- const weekStart = days[0];
4053
- const weekEnd = days[6];
4054
- if (weekStart === void 0 || weekEnd === void 0) return `${monthNames[viewDate.month - 1] ?? ""} ${viewDate.year}`;
4055
- const startMonth = monthNames[weekStart.month - 1] ?? "";
4056
- const endMonth = monthNames[weekEnd.month - 1] ?? "";
4057
- if (weekStart.month === weekEnd.month) return `${startMonth} ${weekStart.day} - ${weekEnd.day}, ${weekEnd.year}`;
4058
- return `${startMonth} ${weekStart.day} - ${endMonth} ${weekEnd.day}, ${weekEnd.year}`;
4059
- }
4060
- return `${monthNames[viewDate.month - 1] ?? ""} ${viewDate.year}`;
4061
- }
4062
- function buildCalendarViewport$1(input) {
4063
- const monthNames = input.monthNames ?? MONTH_NAMES;
4064
- if (input.view === "week") {
4065
- const days = getWeekCalendarDayTuple(input.anchorDate, input.startOfWeek);
4066
- return {
4067
- kind: "week",
4068
- anchorDate: input.anchorDate,
4069
- days,
4070
- title: formatCalendarTitle$1(input.anchorDate, "week", days, monthNames)
3852
+ //#region ../blocks/src/system/blocks/events/shared/eventSelection.ts
3853
+ /** Invalid saved selections fail closed rather than widening discovery. */
3854
+ function resolveEventSelection(mode, value) {
3855
+ if (mode !== "selected") return { kind: "matching" };
3856
+ const candidates = Array.isArray(value) ? value : typeof value === "string" ? value.split(",").filter(Boolean) : [];
3857
+ const ids = [];
3858
+ for (const candidate of candidates) {
3859
+ if (typeof candidate !== "string") return {
3860
+ kind: "selected",
3861
+ seriesIds: []
3862
+ };
3863
+ const parsed = parseEventSeriesId(candidate.trim());
3864
+ if (!parsed.ok) return {
3865
+ kind: "selected",
3866
+ seriesIds: []
4071
3867
  };
3868
+ ids.push(parsed.value);
4072
3869
  }
4073
- const days = getMonthCalendarDays(input.anchorDate.year, input.anchorDate.month, input.startOfWeek);
4074
3870
  return {
4075
- kind: "month",
4076
- anchorDate: input.anchorDate,
4077
- days,
4078
- title: formatCalendarTitle$1(input.anchorDate, "month", days, monthNames)
3871
+ kind: "selected",
3872
+ seriesIds: [...new Set(ids)].sort()
4079
3873
  };
4080
3874
  }
3875
+ /** Undefined means discovery; an empty string is an explicitly empty selection. */
3876
+ function eventSeriesScopeCsv(value) {
3877
+ if (value == null) return void 0;
3878
+ return typeof value === "string" ? value : value.join(",");
3879
+ }
4081
3880
  //#endregion
4082
- //#region ../calendar/src/timezone.ts
4083
- /**
4084
- * Timezone boundary helpers — internal.
4085
- *
4086
- * Both functions read an ISO instant in a given IANA timezone and project it
4087
- * onto the wall clock of that zone. They use Intl.DateTimeFormat with
4088
- * hourCycle: 'h23' to avoid 12/24-hour ambiguity. Used internally by the
4089
- * timetable model and `groupItemsByDate`; not exported from the package's
4090
- * public surface.
4091
- */
4092
- const MINUTES_PER_HOUR = 60;
3881
+ //#region ../blocks/src/system/blocks/events/shared/eventScope.ts
3882
+ /** Content fields that narrow a discovery (not hand-picked) event section. */
3883
+ const eventDiscoveryFilterKeys = [
3884
+ "eventSurface",
3885
+ "filterEventPresets",
3886
+ "scheduleScope",
3887
+ "filterCategoryIds",
3888
+ "filterStaffMemberId",
3889
+ "filterVenueId"
3890
+ ];
4093
3891
  /**
4094
- * Local minute-of-day [0, 24*60) for an ISO instant in the given zone.
4095
- * Returns NaN if the inputs cannot be parsed (caller should drop the item).
3892
+ * The one owner of an event section's scope. Readiness ("is there anything to
3893
+ * show?") and the render loaders both derive their query from this, so Hide can
3894
+ * never judge a section empty that would display events.
4096
3895
  */
4097
- function getLocalMinuteOfDay(isoTimestamp, timeZone) {
4098
- const date = new Date(isoTimestamp);
4099
- if (Number.isNaN(date.getTime())) return NaN;
4100
- if (!isValidTimeZone(timeZone)) return NaN;
4101
- const parts = new Intl.DateTimeFormat("en-GB", {
4102
- timeZone,
4103
- hour: "2-digit",
4104
- minute: "2-digit",
4105
- hourCycle: "h23"
4106
- }).formatToParts(date);
4107
- const hourPart = Number(parts.find((part) => part.type === "hour")?.value);
4108
- const minute = Number(parts.find((part) => part.type === "minute")?.value);
4109
- const hour = hourPart === 24 ? 0 : hourPart;
4110
- if (Number.isNaN(hour) || Number.isNaN(minute)) return NaN;
4111
- return hour * MINUTES_PER_HOUR + minute;
3896
+ function resolveEventScope(content) {
3897
+ const selection = resolveEventSelection(content.eventSelection, content.selectedEventSeriesIds);
3898
+ if (selection.kind === "selected") return selection;
3899
+ return {
3900
+ kind: "matching",
3901
+ filters: Object.fromEntries(eventDiscoveryFilterKeys.map((key) => [key, content[key]]))
3902
+ };
3903
+ }
3904
+ const discoveryQueryKey = {
3905
+ eventSurface: "eventSurface",
3906
+ filterEventPresets: "eventPresets",
3907
+ scheduleScope: "scheduleScope",
3908
+ filterCategoryIds: "categoryIds",
3909
+ filterStaffMemberId: "staffMemberId",
3910
+ filterVenueId: "venueId"
3911
+ };
3912
+ const eventScopeQueryKeys = ["seriesIds", ...Object.values(discoveryQueryKey)];
3913
+ function scopeCsv(value) {
3914
+ const normalized = (Array.isArray(value) ? value : typeof value === "string" ? value.split(",") : []).filter((item) => typeof item === "string").map((item) => item.trim()).filter(Boolean);
3915
+ return normalized.length > 0 ? [...new Set(normalized)].join(",") : void 0;
4112
3916
  }
4113
3917
  /**
4114
- * Local YYYY-MM-DD for an ISO instant in the given zone.
4115
- * Returns null if the inputs cannot be parsed.
3918
+ * Public event query params for a scope. A selected scope sends only
3919
+ * `seriesIds` (an empty string is an explicitly empty selection, which reads
3920
+ * no rows); discovery sends only the filters that are set.
4116
3921
  */
4117
- function getLocalDateKey(isoTimestamp, timeZone) {
4118
- const date = new Date(isoTimestamp);
4119
- if (Number.isNaN(date.getTime())) return null;
4120
- if (!isValidTimeZone(timeZone)) return null;
4121
- const parts = new Intl.DateTimeFormat("en-CA", {
4122
- timeZone,
4123
- year: "numeric",
4124
- month: "2-digit",
4125
- day: "2-digit"
4126
- }).formatToParts(date);
4127
- const year = parts.find((part) => part.type === "year")?.value;
4128
- const month = parts.find((part) => part.type === "month")?.value;
4129
- const day = parts.find((part) => part.type === "day")?.value;
4130
- if (year === void 0 || year.length === 0) return null;
4131
- if (month === void 0 || month.length === 0) return null;
4132
- if (day === void 0 || day.length === 0) return null;
4133
- return `${year}-${month}-${day}`;
4134
- }
4135
- const validTimeZoneCache = /* @__PURE__ */ new Map();
4136
- function isValidTimeZone(timeZone) {
4137
- if (typeof timeZone !== "string" || timeZone.length === 0) return false;
4138
- const cached = validTimeZoneCache.get(timeZone);
4139
- if (cached !== void 0) return cached;
4140
- try {
4141
- new Intl.DateTimeFormat("en-US", { timeZone });
4142
- validTimeZoneCache.set(timeZone, true);
4143
- return true;
4144
- } catch {
4145
- validTimeZoneCache.set(timeZone, false);
4146
- return false;
4147
- }
3922
+ function eventScopeQuery(scope) {
3923
+ if (scope.kind === "selected") return { seriesIds: scope.seriesIds.join(",") };
3924
+ return Object.fromEntries(eventDiscoveryFilterKeys.flatMap((key) => {
3925
+ const value = scopeCsv(scope.filters[key]);
3926
+ return value === void 0 ? [] : [[discoveryQueryKey[key], value]];
3927
+ }));
4148
3928
  }
4149
- //#endregion
4150
- //#region ../calendar/src/group.ts
4151
3929
  /**
4152
- * Group items by their local date (YYYY-MM-DD in the item's own timezone).
4153
- *
4154
- * Generic over `T`. Items with un-parseable startsAt or invalid timezone are
4155
- * silently dropped — call sites that need diagnostics should validate upstream.
4156
- *
4157
- * The output map preserves insertion order of dates (ES2015 spec) and the
4158
- * relative order of items within each date matches input order.
3930
+ * A query value as a loader binding must return it. Binding resolution treats
3931
+ * `""` as absent, which would widen an explicitly empty selection to discovery,
3932
+ * so `seriesIds` travels as an empty list and becomes `seriesIds=` when params
3933
+ * are stringified.
4159
3934
  */
4160
- function groupItemsByDate(items, accessors) {
4161
- const grouped = /* @__PURE__ */ new Map();
4162
- for (const item of items) {
4163
- const dateKey = getLocalDateKey(accessors.getStartsAt(item), accessors.getTimeZone(item));
4164
- if (dateKey == null) continue;
4165
- const existing = grouped.get(dateKey);
4166
- if (existing !== void 0) existing.push(item);
4167
- else grouped.set(dateKey, [item]);
4168
- }
4169
- return grouped;
3935
+ function eventScopeLoaderParam(query, key) {
3936
+ return key === "seriesIds" && query.seriesIds === "" ? [] : query[key];
4170
3937
  }
4171
3938
  //#endregion
4172
3939
  //#region ../site-contracts/src/blocks/fieldUi.ts
@@ -4765,66 +4532,6 @@ const blockSectionDeclarationShape = {
4765
4532
  lookField: z.string().min(1).optional()
4766
4533
  };
4767
4534
  //#endregion
4768
- //#region ../site-contracts/src/blocks/nodes.ts
4769
- const transformStepSchema = z.object({
4770
- id: z.string().min(1, "Transform requires an identifier"),
4771
- options: z.record(z.string(), z.unknown()).optional()
4772
- });
4773
- const bindingPathSchema = z.string().min(1, "Binding path is required").regex(/[A-Za-z0-9_\.$\[\]/-]+/, "Binding path contains invalid characters");
4774
- const bindingSchema = z.object({
4775
- from: bindingPathSchema,
4776
- fallback: z.unknown().optional(),
4777
- transforms: transformStepSchema.array().default([]),
4778
- pick: z.enum([
4779
- "value",
4780
- "collection",
4781
- "context"
4782
- ]).default("value"),
4783
- coerce: z.enum([
4784
- "number",
4785
- "boolean",
4786
- "string"
4787
- ]).optional()
4788
- });
4789
- const repeatSchema = z.object({
4790
- collection: bindingSchema,
4791
- itemName: z.string().min(1).default("item"),
4792
- indexName: z.string().min(1).default("index"),
4793
- limit: z.number().int().positive().optional(),
4794
- sortBy: z.object({
4795
- path: bindingPathSchema,
4796
- direction: z.enum(["asc", "desc"]).default("asc")
4797
- }).optional()
4798
- });
4799
- const conditionalAuthoringPresenceSchema = z.discriminatedUnion("kind", [z.object({ kind: z.literal("visitor-only") }), z.object({
4800
- kind: z.literal("recover-empty-when-active"),
4801
- placeholder: z.string().min(1).optional()
4802
- })]);
4803
- const conditionSchema = z.object({
4804
- when: bindingSchema,
4805
- equals: z.unknown().optional(),
4806
- not: z.boolean().default(false),
4807
- authoringPresence: conditionalAuthoringPresenceSchema.default({ kind: "visitor-only" })
4808
- });
4809
- const dataScopeSchema = z.object({
4810
- name: z.string().min(1),
4811
- from: bindingSchema
4812
- });
4813
- const nodePropsSchema = z.record(z.string(), z.unknown()).default({});
4814
- const nodeSchema = z.object({
4815
- type: z.string().min(1, "Node type is required"),
4816
- key: z.string().optional(),
4817
- props: nodePropsSchema.optional(),
4818
- children: z.lazy(() => z.array(nodeSchema).default([])).optional(),
4819
- $bind: bindingSchema.optional(),
4820
- $repeat: repeatSchema.optional(),
4821
- $when: conditionSchema.optional(),
4822
- $scopes: dataScopeSchema.array().optional()
4823
- });
4824
- const nodeTreeSchema = z.union([z.array(nodeSchema), nodeSchema]);
4825
- const NodeSchema = nodeSchema;
4826
- const NodeTreeSchema = nodeTreeSchema;
4827
- //#endregion
4828
4535
  //#region ../theme-core/src/site-styles/appearancePresetCatalog.ts
4829
4536
  const appearancePresets = blockAppearancePresets;
4830
4537
  //#endregion
@@ -5005,7 +4712,7 @@ function applyLookPhotoTreatment(background, treatment, palette, tint = "dark",
5005
4712
  return darkPhotoTreatment(background, palette, placement);
5006
4713
  }
5007
4714
  function darkPhotoTreatment(background, palette, placement, brandWash) {
5008
- const ink = lightPhotoInk(palette);
4715
+ const ink = photoCopyInk(palette);
5009
4716
  return {
5010
4717
  ...background,
5011
4718
  overlay: {
@@ -5019,14 +4726,24 @@ function darkPhotoTreatment(background, palette, placement, brandWash) {
5019
4726
  supportingColor: ink
5020
4727
  };
5021
4728
  }
4729
+ /**
4730
+ * The least black any photo copy band puts behind its text: the centred band's
4731
+ * even 60%. The foot band is at least 76% where its copy sits and the foot
4732
+ * brand paint 80% (under a wash no lighter than 28% black), so 60% bounds all three.
4733
+ */
4734
+ const PHOTO_COPY_MIN_SHADE = .6;
5022
4735
  /** Centred copy gets an even 60% band (white text over a white photo stays above 5.5:1) that eases off at the edges; the foot keeps its original paint. */
5023
4736
  function photoCopyShade(placement, brandWash) {
5024
4737
  if (placement === "foot" && brandWash) return `linear-gradient(${brandWash}, ${brandWash}), linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8))`;
5025
- return `var(--rb-opening-photo-shade, linear-gradient(transparent, transparent)), ${placement === "centre" ? "linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.6) 15%, rgba(0,0,0,0.6) 85%, rgba(0,0,0,0.15) 100%)" : "linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.76) 25%, rgba(0,0,0,0.4) 46%, transparent 72%)"}${brandWash ? `, linear-gradient(${brandWash}, ${brandWash})` : ""}`;
4738
+ const band = `rgba(0,0,0,${PHOTO_COPY_MIN_SHADE})`;
4739
+ return `var(--rb-opening-photo-shade, linear-gradient(transparent, transparent)), ${placement === "centre" ? `linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, ${band} 15%, ${band} 85%, rgba(0,0,0,0.15) 100%)` : "linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.76) 25%, rgba(0,0,0,0.4) 46%, transparent 72%)"}${brandWash ? `, linear-gradient(${brandWash}, ${brandWash})` : ""}`;
5026
4740
  }
5027
- /** Neutral scales follow the ground: their physical light end reverses on dark palettes. */
5028
- function lightPhotoInk(palette) {
5029
- return ["neutral-50", "neutral-950"].find((token) => surfaceToneFromForegroundToken(palette, token) === "dark") ?? "#fafafa";
4741
+ /** Every pixel behind photo copy: anything from black up to the minimum shade over a white photo. */
4742
+ const PHOTO_COPY_PAINT = luminanceInterval(0, hexLuminance(compositeHex("#000000", PHOTO_COPY_MIN_SHADE, "#ffffff")));
4743
+ /** The palette's own light colour (its background, or its text on a dark palette) when it reads over the copy band, else white. */
4744
+ function photoCopyInk(palette) {
4745
+ const ink = paletteInk(PHOTO_COPY_PAINT, paletteInkRoles(palette));
4746
+ return ink.kind === "unpaintable" ? "#FFFFFF" : paletteInkToken(ink);
5030
4747
  }
5031
4748
  /** A light brand's dark ink cannot sit on unknown pixels: give light ink a dark backing. */
5032
4749
  function brandPhotoTreatment(background, treatment, palette, placement) {
@@ -5699,6 +5416,286 @@ function validateBookingBarSurface(skin, bookingBar, surfaces) {
5699
5416
  if (bookingBar === void 0) return;
5700
5417
  if (surfaces[bookingBar.surface]?.kind !== "token") throw new Error(`Booking bar for ${skin} needs a declared token surface: ${bookingBar.surface}`);
5701
5418
  }
5419
+ //#endregion
5420
+ //#region ../theme-core/src/gradients/presets.ts
5421
+ /**
5422
+ * Curated gradient presets based on theme palette
5423
+ */
5424
+ const gradientPresetData = {
5425
+ "primary-secondary": {
5426
+ name: "Primary to Secondary",
5427
+ description: "Blend your primary and secondary brand colors",
5428
+ type: "linear",
5429
+ angle: 135,
5430
+ stops: [{
5431
+ color: "primary-500",
5432
+ position: 0
5433
+ }, {
5434
+ color: "secondary-500",
5435
+ position: 100
5436
+ }]
5437
+ },
5438
+ "primary-accent": {
5439
+ name: "Primary to Accent",
5440
+ description: "Energetic gradient from primary to accent",
5441
+ type: "linear",
5442
+ angle: 135,
5443
+ stops: [{
5444
+ color: "primary-500",
5445
+ position: 0
5446
+ }, {
5447
+ color: "accent-500",
5448
+ position: 100
5449
+ }]
5450
+ },
5451
+ "secondary-accent": {
5452
+ name: "Secondary to Accent",
5453
+ description: "Vibrant secondary to accent blend",
5454
+ type: "linear",
5455
+ angle: 135,
5456
+ stops: [{
5457
+ color: "secondary-500",
5458
+ position: 0
5459
+ }, {
5460
+ color: "accent-500",
5461
+ position: 100
5462
+ }]
5463
+ },
5464
+ "primary-light-dark": {
5465
+ name: "Primary Light to Dark",
5466
+ description: "Subtle primary color fade",
5467
+ type: "linear",
5468
+ angle: 180,
5469
+ stops: [{
5470
+ color: "primary-500",
5471
+ position: 0
5472
+ }, {
5473
+ color: "primary-900",
5474
+ position: 100
5475
+ }]
5476
+ },
5477
+ "primary-dark-light": {
5478
+ name: "Primary Dark to Light",
5479
+ description: "Reverse primary fade",
5480
+ type: "linear",
5481
+ angle: 180,
5482
+ stops: [{
5483
+ color: "primary-900",
5484
+ position: 0
5485
+ }, {
5486
+ color: "primary-50",
5487
+ position: 100
5488
+ }]
5489
+ },
5490
+ "secondary-light-dark": {
5491
+ name: "Secondary Light to Dark",
5492
+ description: "Subtle secondary color fade",
5493
+ type: "linear",
5494
+ angle: 180,
5495
+ stops: [{
5496
+ color: "secondary-500",
5497
+ position: 0
5498
+ }, {
5499
+ color: "secondary-900",
5500
+ position: 100
5501
+ }]
5502
+ },
5503
+ "accent-light-dark": {
5504
+ name: "Accent Light to Dark",
5505
+ description: "Accent color depth fade",
5506
+ type: "linear",
5507
+ angle: 180,
5508
+ stops: [{
5509
+ color: "accent-500",
5510
+ position: 0
5511
+ }, {
5512
+ color: "accent-900",
5513
+ position: 100
5514
+ }]
5515
+ },
5516
+ "background-surface": {
5517
+ name: "Background to Surface",
5518
+ description: "Subtle depth using base colors",
5519
+ type: "linear",
5520
+ angle: 180,
5521
+ stops: [{
5522
+ color: "background",
5523
+ position: 0
5524
+ }, {
5525
+ color: "surface",
5526
+ position: 100
5527
+ }]
5528
+ },
5529
+ "neutral-fade": {
5530
+ name: "Neutral Gradient",
5531
+ description: "Elegant neutral color fade",
5532
+ type: "linear",
5533
+ angle: 180,
5534
+ stops: [{
5535
+ color: "neutral-900",
5536
+ position: 0
5537
+ }, {
5538
+ color: "neutral-50",
5539
+ position: 100
5540
+ }]
5541
+ },
5542
+ "primary-glow": {
5543
+ name: "Primary glow",
5544
+ description: "A soft top-centred glow using your primary palette",
5545
+ type: "radial",
5546
+ shape: "ellipse",
5547
+ position: "top center",
5548
+ stops: [{
5549
+ color: "primary-900",
5550
+ position: 0
5551
+ }, {
5552
+ color: "primary-950",
5553
+ position: 100
5554
+ }],
5555
+ foreground: {
5556
+ textColor: "onPrimary900",
5557
+ headingColor: "onPrimary900",
5558
+ linkColor: "onPrimary900",
5559
+ supportingColor: "onPrimary900"
5560
+ }
5561
+ },
5562
+ "accent-glow": {
5563
+ name: "Accent glow",
5564
+ description: "A soft top-centred glow using your accent palette",
5565
+ type: "radial",
5566
+ shape: "ellipse",
5567
+ position: "top center",
5568
+ stops: [{
5569
+ color: "accent-900",
5570
+ position: 0
5571
+ }, {
5572
+ color: "accent-950",
5573
+ position: 100
5574
+ }],
5575
+ foreground: {
5576
+ textColor: "onAccent900",
5577
+ headingColor: "onAccent900",
5578
+ linkColor: "onAccent900",
5579
+ supportingColor: "onAccent900"
5580
+ }
5581
+ },
5582
+ "primary-secondary-accent": {
5583
+ name: "Brand Trio",
5584
+ description: "All three brand colors in harmony",
5585
+ type: "linear",
5586
+ angle: 135,
5587
+ stops: [
5588
+ {
5589
+ color: "primary-500",
5590
+ position: 0
5591
+ },
5592
+ {
5593
+ color: "secondary-500",
5594
+ position: 50
5595
+ },
5596
+ {
5597
+ color: "accent-500",
5598
+ position: 100
5599
+ }
5600
+ ]
5601
+ }
5602
+ };
5603
+ const presetData = (id) => gradientPresetData[id];
5604
+ /**
5605
+ * Curated library of gradient presets.
5606
+ * All gradients use theme color tokens, so they adapt to the site's palette.
5607
+ */
5608
+ const GRADIENT_PRESETS = gradientPresetIdValues.flatMap((value) => parseGradientPresetId(value) ?? []).map((id) => ({
5609
+ id,
5610
+ ...presetData(id)
5611
+ }));
5612
+ const gradientPresetById = Object.fromEntries(GRADIENT_PRESETS.map((preset) => [preset.id, preset]));
5613
+ function getGradientPreset(id) {
5614
+ return gradientPresetById[id];
5615
+ }
5616
+ //#endregion
5617
+ //#region ../theme-core/src/gradients/utils.ts
5618
+ /**
5619
+ * Convert a GradientConfig to a CSS gradient string
5620
+ *
5621
+ * @param config - The gradient configuration using theme tokens
5622
+ * @param tokens - Map of theme color tokens to hex values
5623
+ * @returns CSS gradient string (e.g., "linear-gradient(180deg, #3b82f6 0%, #f59e0b 100%)")
5624
+ */
5625
+ function gradientToCss(config, tokens) {
5626
+ const stops = config.stops.map((stop) => {
5627
+ return `${tokens[stop.color] ?? "#000000"} ${stop.position}%`;
5628
+ }).join(", ");
5629
+ const type = config.type ?? "linear";
5630
+ if (type === "radial") {
5631
+ const position = config.position ?? "center";
5632
+ return `radial-gradient(${config.shape ?? "circle"} at ${position}, ${stops})`;
5633
+ }
5634
+ if (type === "conic") {
5635
+ const position = config.position ?? "center";
5636
+ return `conic-gradient(from ${config.angle ?? 0}deg at ${position}, ${stops})`;
5637
+ }
5638
+ return `linear-gradient(${config.angle ?? 180}deg, ${stops})`;
5639
+ }
5640
+ //#endregion
5641
+ //#region ../theme-core/src/site-styles/sectionGround.ts
5642
+ /** A section that declares no ground of its own sits on the page background. */
5643
+ const pageGround = { fallback: requireGroundToken("background") };
5644
+ /** A section's declared ground. A non-token fallback is a layout bug, so it throws when the layout is built. */
5645
+ function sectionGround(fallback) {
5646
+ return { fallback: requireGroundToken(fallback) };
5647
+ }
5648
+ /**
5649
+ * The one paint decision for a ground: the background layer paints from it,
5650
+ * and boundary and seam composition classify from it. A colour that is unset
5651
+ * or blank, a gradient with nothing to draw, or no background at all paints
5652
+ * the fallback.
5653
+ */
5654
+ function groundPaint(background, fallback) {
5655
+ const fill = nonBlank(fallback);
5656
+ switch (background?.type) {
5657
+ case "color": {
5658
+ const colour = nonBlank(background.color);
5659
+ return colour ? {
5660
+ kind: "fill",
5661
+ colour
5662
+ } : fillOrBare(fill);
5663
+ }
5664
+ case "gradient": {
5665
+ const gradient = nonBlank(background.gradient) ?? gradientPresetCss(background.gradientPresetId);
5666
+ return gradient ? {
5667
+ kind: "gradient",
5668
+ gradient
5669
+ } : fillOrBare(fill);
5670
+ }
5671
+ case "image":
5672
+ case "video": return {
5673
+ kind: "media",
5674
+ fill
5675
+ };
5676
+ case void 0: return fillOrBare(fill);
5677
+ }
5678
+ }
5679
+ function fillOrBare(colour) {
5680
+ return colour ? {
5681
+ kind: "fill",
5682
+ colour
5683
+ } : { kind: "bare" };
5684
+ }
5685
+ function nonBlank(value) {
5686
+ return typeof value === "string" && value.trim().length > 0 ? value.trim() : null;
5687
+ }
5688
+ function gradientPresetCss(value) {
5689
+ const presetId = parseGradientPresetId(value);
5690
+ if (!presetId) return null;
5691
+ const preset = getGradientPreset(presetId);
5692
+ return gradientToCss(preset, Object.fromEntries(preset.stops.map((stop) => [stop.color, `rgb(var(--tb-${stop.color}))`])));
5693
+ }
5694
+ function requireGroundToken(value) {
5695
+ const token = parseThemeColorToken(value);
5696
+ if (!token) throw new Error(`A section ground must be a theme color token. Received: ${value}`);
5697
+ return token;
5698
+ }
5702
5699
  const pageDesignUserPinnedAppearanceChoiceSchema = z.object({
5703
5700
  kind: z.literal("user-pinned"),
5704
5701
  value: z.string().min(1).transform(asAppearancePresetId)
@@ -9586,8 +9583,8 @@ const gilt = {
9586
9583
  shadow: flatShadow,
9587
9584
  sizes: {
9588
9585
  sm: {
9589
- padding: "10px 20px",
9590
- fontSize: "text-base",
9586
+ padding: "8px 16px",
9587
+ fontSize: "text-15px",
9591
9588
  borderRadius: "rounded-lg"
9592
9589
  },
9593
9590
  md: {
@@ -9634,12 +9631,21 @@ const giltPrimaryHover = {
9634
9631
  const giltSecondary = {
9635
9632
  ...gilt,
9636
9633
  background: {
9637
- type: "solid",
9638
- colorToken: "text"
9639
- }
9634
+ type: "surface",
9635
+ role: "link"
9636
+ },
9637
+ border: { widthClass: "border" }
9640
9638
  };
9641
9639
  const giltSecondaryHover = {
9642
- ...giltSecondary,
9640
+ ...gilt,
9641
+ background: {
9642
+ type: "solid",
9643
+ colorToken: "text"
9644
+ },
9645
+ border: {
9646
+ widthClass: "border",
9647
+ boundaryInk: unsafeAsOpaqueButtonColourToken("text")
9648
+ },
9643
9649
  effects: [lift$1],
9644
9650
  contextualHover: {
9645
9651
  kind: "shade-shift",
@@ -18546,227 +18552,6 @@ function toPageRuntimeJoin(join) {
18546
18552
  };
18547
18553
  }
18548
18554
  //#endregion
18549
- //#region ../theme-core/src/gradients/presets.ts
18550
- /**
18551
- * Curated gradient presets based on theme palette
18552
- */
18553
- const gradientPresetData = {
18554
- "primary-secondary": {
18555
- name: "Primary to Secondary",
18556
- description: "Blend your primary and secondary brand colors",
18557
- type: "linear",
18558
- angle: 135,
18559
- stops: [{
18560
- color: "primary-500",
18561
- position: 0
18562
- }, {
18563
- color: "secondary-500",
18564
- position: 100
18565
- }]
18566
- },
18567
- "primary-accent": {
18568
- name: "Primary to Accent",
18569
- description: "Energetic gradient from primary to accent",
18570
- type: "linear",
18571
- angle: 135,
18572
- stops: [{
18573
- color: "primary-500",
18574
- position: 0
18575
- }, {
18576
- color: "accent-500",
18577
- position: 100
18578
- }]
18579
- },
18580
- "secondary-accent": {
18581
- name: "Secondary to Accent",
18582
- description: "Vibrant secondary to accent blend",
18583
- type: "linear",
18584
- angle: 135,
18585
- stops: [{
18586
- color: "secondary-500",
18587
- position: 0
18588
- }, {
18589
- color: "accent-500",
18590
- position: 100
18591
- }]
18592
- },
18593
- "primary-light-dark": {
18594
- name: "Primary Light to Dark",
18595
- description: "Subtle primary color fade",
18596
- type: "linear",
18597
- angle: 180,
18598
- stops: [{
18599
- color: "primary-500",
18600
- position: 0
18601
- }, {
18602
- color: "primary-900",
18603
- position: 100
18604
- }]
18605
- },
18606
- "primary-dark-light": {
18607
- name: "Primary Dark to Light",
18608
- description: "Reverse primary fade",
18609
- type: "linear",
18610
- angle: 180,
18611
- stops: [{
18612
- color: "primary-900",
18613
- position: 0
18614
- }, {
18615
- color: "primary-50",
18616
- position: 100
18617
- }]
18618
- },
18619
- "secondary-light-dark": {
18620
- name: "Secondary Light to Dark",
18621
- description: "Subtle secondary color fade",
18622
- type: "linear",
18623
- angle: 180,
18624
- stops: [{
18625
- color: "secondary-500",
18626
- position: 0
18627
- }, {
18628
- color: "secondary-900",
18629
- position: 100
18630
- }]
18631
- },
18632
- "accent-light-dark": {
18633
- name: "Accent Light to Dark",
18634
- description: "Accent color depth fade",
18635
- type: "linear",
18636
- angle: 180,
18637
- stops: [{
18638
- color: "accent-500",
18639
- position: 0
18640
- }, {
18641
- color: "accent-900",
18642
- position: 100
18643
- }]
18644
- },
18645
- "background-surface": {
18646
- name: "Background to Surface",
18647
- description: "Subtle depth using base colors",
18648
- type: "linear",
18649
- angle: 180,
18650
- stops: [{
18651
- color: "background",
18652
- position: 0
18653
- }, {
18654
- color: "surface",
18655
- position: 100
18656
- }]
18657
- },
18658
- "neutral-fade": {
18659
- name: "Neutral Gradient",
18660
- description: "Elegant neutral color fade",
18661
- type: "linear",
18662
- angle: 180,
18663
- stops: [{
18664
- color: "neutral-900",
18665
- position: 0
18666
- }, {
18667
- color: "neutral-50",
18668
- position: 100
18669
- }]
18670
- },
18671
- "primary-glow": {
18672
- name: "Primary glow",
18673
- description: "A soft top-centred glow using your primary palette",
18674
- type: "radial",
18675
- shape: "ellipse",
18676
- position: "top center",
18677
- stops: [{
18678
- color: "primary-900",
18679
- position: 0
18680
- }, {
18681
- color: "primary-950",
18682
- position: 100
18683
- }],
18684
- foreground: {
18685
- textColor: "onPrimary900",
18686
- headingColor: "onPrimary900",
18687
- linkColor: "onPrimary900",
18688
- supportingColor: "onPrimary900"
18689
- }
18690
- },
18691
- "accent-glow": {
18692
- name: "Accent glow",
18693
- description: "A soft top-centred glow using your accent palette",
18694
- type: "radial",
18695
- shape: "ellipse",
18696
- position: "top center",
18697
- stops: [{
18698
- color: "accent-900",
18699
- position: 0
18700
- }, {
18701
- color: "accent-950",
18702
- position: 100
18703
- }],
18704
- foreground: {
18705
- textColor: "onAccent900",
18706
- headingColor: "onAccent900",
18707
- linkColor: "onAccent900",
18708
- supportingColor: "onAccent900"
18709
- }
18710
- },
18711
- "primary-secondary-accent": {
18712
- name: "Brand Trio",
18713
- description: "All three brand colors in harmony",
18714
- type: "linear",
18715
- angle: 135,
18716
- stops: [
18717
- {
18718
- color: "primary-500",
18719
- position: 0
18720
- },
18721
- {
18722
- color: "secondary-500",
18723
- position: 50
18724
- },
18725
- {
18726
- color: "accent-500",
18727
- position: 100
18728
- }
18729
- ]
18730
- }
18731
- };
18732
- const presetData = (id) => gradientPresetData[id];
18733
- /**
18734
- * Curated library of gradient presets.
18735
- * All gradients use theme color tokens, so they adapt to the site's palette.
18736
- */
18737
- const GRADIENT_PRESETS = gradientPresetIdValues.flatMap((value) => parseGradientPresetId(value) ?? []).map((id) => ({
18738
- id,
18739
- ...presetData(id)
18740
- }));
18741
- const gradientPresetById = Object.fromEntries(GRADIENT_PRESETS.map((preset) => [preset.id, preset]));
18742
- function getGradientPreset(id) {
18743
- return gradientPresetById[id];
18744
- }
18745
- //#endregion
18746
- //#region ../theme-core/src/gradients/utils.ts
18747
- /**
18748
- * Convert a GradientConfig to a CSS gradient string
18749
- *
18750
- * @param config - The gradient configuration using theme tokens
18751
- * @param tokens - Map of theme color tokens to hex values
18752
- * @returns CSS gradient string (e.g., "linear-gradient(180deg, #3b82f6 0%, #f59e0b 100%)")
18753
- */
18754
- function gradientToCss(config, tokens) {
18755
- const stops = config.stops.map((stop) => {
18756
- return `${tokens[stop.color] ?? "#000000"} ${stop.position}%`;
18757
- }).join(", ");
18758
- const type = config.type ?? "linear";
18759
- if (type === "radial") {
18760
- const position = config.position ?? "center";
18761
- return `radial-gradient(${config.shape ?? "circle"} at ${position}, ${stops})`;
18762
- }
18763
- if (type === "conic") {
18764
- const position = config.position ?? "center";
18765
- return `conic-gradient(from ${config.angle ?? 0}deg at ${position}, ${stops})`;
18766
- }
18767
- return `linear-gradient(${config.angle ?? 180}deg, ${stops})`;
18768
- }
18769
- //#endregion
18770
18555
  //#region ../theme-core/src/site-styles/sectionSurfaceBackgrounds.ts
18771
18556
  function compileGradientSectionBackground(background, foreground, palette) {
18772
18557
  const preset = getGradientPreset(background.gradientPresetId);
@@ -19855,14 +19640,6 @@ const loomLooks = {
19855
19640
  treatment: "events-recurring-week",
19856
19641
  roleMap: loomRoles
19857
19642
  },
19858
- {
19859
- id: id("hero-framed-title"),
19860
- treatment: "hero-framed-title",
19861
- roleMap: {
19862
- ...loomRoles,
19863
- highlight: "deep"
19864
- }
19865
- },
19866
19643
  {
19867
19644
  id: id("testimonials-quote-cards"),
19868
19645
  treatment: "quote-cards",
@@ -23551,6 +23328,7 @@ const lanternLooks = {
23551
23328
  id: id("event-calendar-session-cards"),
23552
23329
  treatment: "tablets",
23553
23330
  removeKnobs: ["listColumns"],
23331
+ knobValues: { showPhotos: ["false"] },
23554
23332
  surfaceTints: { date: {
23555
23333
  source: "text",
23556
23334
  opacity: 8
@@ -24429,7 +24207,7 @@ const curatedSiteStyles = [
24429
24207
  compositionBudget: quietBudget,
24430
24208
  typography: fulcrumTypography,
24431
24209
  fontPairings: fulcrumFontPairings,
24432
- looks: withPriceLooks(withTeamLooks(fulcrumLooks, fulcrumRoles), fulcrumRoles),
24210
+ looks: withSharedLooks(withPriceLooks(withTeamLooks(fulcrumLooks, fulcrumRoles), fulcrumRoles), fulcrumRoles),
24433
24211
  contentTemplateDefaults: { event: "event-header" },
24434
24212
  themeOverrides: {
24435
24213
  accordions: {
@@ -24490,10 +24268,10 @@ const curatedSiteStyles = [
24490
24268
  compositionBudget: expressiveBudget,
24491
24269
  typography: posterTypography,
24492
24270
  fontPairings: posterFontPairings,
24493
- looks: withPriceLooks(withTeamLooks(posterLooks, posterRoles), posterRoles, {
24271
+ looks: withSharedLooks(withPriceLooks(withTeamLooks(posterLooks, posterRoles), posterRoles, {
24494
24272
  ...posterRoles,
24495
24273
  statement: "pop"
24496
- }),
24274
+ }), posterRoles, ["cta-text-in-panel", "faq-questions-in-panel"]),
24497
24275
  contentTemplateDefaults: { event: "event-header" },
24498
24276
  themeOverrides: {
24499
24277
  accordions: boldBorderedAccordionSystem,
@@ -24533,7 +24311,7 @@ const curatedSiteStyles = [
24533
24311
  compositionBudget: quietBudget,
24534
24312
  typography: lanternTypography,
24535
24313
  fontPairings: lanternFontPairings,
24536
- looks: withPriceLooks(withTeamLooks(lanternLooks, lanternRoles), lanternRoles),
24314
+ looks: withSharedLooks(withPriceLooks(withTeamLooks(lanternLooks, lanternRoles), lanternRoles), lanternRoles),
24537
24315
  contentTemplateDefaults: { event: "event-header" },
24538
24316
  themeOverrides: {
24539
24317
  accordions: warmInsetAccordionSystem,
@@ -24576,7 +24354,13 @@ const curatedSiteStyles = [
24576
24354
  compositionBudget: quietBudget,
24577
24355
  typography: measureTypography,
24578
24356
  fontPairings: measureFontPairings,
24579
- looks: withPriceLooks(withTeamLooks(measureLooks, measureRoles), measureRoles),
24357
+ looks: withSharedLooks(withPriceLooks(withTeamLooks(measureLooks, measureRoles), measureRoles), measureRoles, [
24358
+ "intro-large-photo-beside-text",
24359
+ "media-text-photo-to-edge",
24360
+ "image-gallery-moving-row",
24361
+ "cta-text-in-panel",
24362
+ "faq-questions-in-panel"
24363
+ ]),
24580
24364
  contentTemplateDefaults: { event: "event-header" },
24581
24365
  themeOverrides: {
24582
24366
  accordions: editorialDividedAccordionSystem,
@@ -24618,7 +24402,7 @@ const curatedSiteStyles = [
24618
24402
  typography: folioTypography,
24619
24403
  fontPairings: folioFontPairings,
24620
24404
  heroTypography: groundedSerifHeroTypography,
24621
- looks: withPriceLooks(withTeamLooks(folioLooks, folioRoles), folioRoles),
24405
+ looks: withSharedLooks(withPriceLooks(withTeamLooks(folioLooks, folioRoles), folioRoles), folioRoles, ["faq-questions-in-panel"]),
24622
24406
  contentTemplateDefaults: { event: "event-header" },
24623
24407
  themeOverrides: {
24624
24408
  accordions: editorialDividedAccordionSystem,
@@ -24690,7 +24474,7 @@ const curatedSiteStyles = [
24690
24474
  typography: loomTypography,
24691
24475
  fontPairings: loomFontPairings,
24692
24476
  heroTypography: groundedSerifHeroTypography,
24693
- looks: loomLooks,
24477
+ looks: withSharedLooks(loomLooks, loomRoles),
24694
24478
  contentTemplateDefaults: { event: "event-header" },
24695
24479
  themeOverrides: {
24696
24480
  accordions: editorialDividedAccordionSystem,
@@ -24758,7 +24542,7 @@ const curatedSiteStyles = [
24758
24542
  compositionBudget: balancedBudget,
24759
24543
  typography: poiseTypography,
24760
24544
  fontPairings: poiseFontPairings,
24761
- looks: poiseLooks,
24545
+ looks: withSharedLooks(poiseLooks, poiseRoles, ["faq-questions-in-panel"]),
24762
24546
  contentTemplateDefaults: { event: "event-header" },
24763
24547
  themeOverrides: {
24764
24548
  accordions: editorialDividedAccordionSystem,
@@ -24824,7 +24608,7 @@ const curatedSiteStyles = [
24824
24608
  },
24825
24609
  compositionBudget: balancedBudget,
24826
24610
  typography: havenTypography,
24827
- looks: havenLooks,
24611
+ looks: withSharedLooks(havenLooks, havenRoles, ["faq-questions-in-panel"]),
24828
24612
  contentTemplateDefaults: { event: "event-header" },
24829
24613
  themeOverrides: {
24830
24614
  accordions: editorialDividedAccordionSystem,
@@ -24886,7 +24670,7 @@ const curatedSiteStyles = [
24886
24670
  name: "Orbit",
24887
24671
  offering: {
24888
24672
  kind: "client",
24889
- siteSlugs: ["danu"]
24673
+ siteSlugs: ["danu", "south-west-twerk-school"]
24890
24674
  },
24891
24675
  description: "Round photos with a ring around them, three dots above each heading, white rounded cards and pill buttons, with arcs where your bands of colour begin and end. For dance schools, movement classes and community studios.",
24892
24676
  generationBrief: "Use warm, lively words in sentence case for the text, and keep headings short, because they are set in capitals. Say plainly who a class is for and that beginners are welcome, give real times, prices and places, and avoid fitness slogans and promises about results.",
@@ -25036,6 +24820,46 @@ function withTeamLooks(looks, roleMap) {
25036
24820
  ]
25037
24821
  };
25038
24822
  }
24823
+ function withSharedLooks(looks, roleMap, leaveOut = []) {
24824
+ const shared = [
24825
+ {
24826
+ id: id("intro-large-photo-beside-text"),
24827
+ treatment: "intro-photo-large",
24828
+ roleMap
24829
+ },
24830
+ {
24831
+ id: id("media-text-photo-to-edge"),
24832
+ treatment: "media-edge",
24833
+ roleMap
24834
+ },
24835
+ {
24836
+ id: id("form-beside-introduction-no-card"),
24837
+ treatment: "form-open",
24838
+ roleMap
24839
+ },
24840
+ {
24841
+ id: id("image-gallery-moving-row"),
24842
+ treatment: "gallery-moving",
24843
+ roleMap
24844
+ },
24845
+ {
24846
+ id: id("cta-text-in-panel"),
24847
+ treatment: "cta-panel",
24848
+ roleMap
24849
+ },
24850
+ {
24851
+ id: id("faq-questions-in-panel"),
24852
+ treatment: "faq-panel",
24853
+ itemRoles: { container: "highlight" },
24854
+ roleMap
24855
+ }
24856
+ ];
24857
+ const skipped = leaveOut.map(id);
24858
+ return {
24859
+ ...looks,
24860
+ offers: [...looks.offers, ...shared.filter((offer) => !skipped.includes(offer.id) && !looks.offers.some((own) => own.id === offer.id))]
24861
+ };
24862
+ }
25039
24863
  function withPriceLooks(looks, roleMap, featuredRoleMap = roleMap) {
25040
24864
  return {
25041
24865
  ...looks,
@@ -25547,7 +25371,8 @@ const arrangementLookHooks = [
25547
25371
  "data-shape",
25548
25372
  "data-list-group",
25549
25373
  "data-section-spacing",
25550
- "data-video-provider"
25374
+ "data-video-provider",
25375
+ "data-portal"
25551
25376
  ];
25552
25377
  const arrangementAppearancePresets = appearancePresets.filter(isArrangementAppearancePreset);
25553
25378
  function arrangementStyleAvailability(style, preset, capabilities) {
@@ -26755,289 +26580,34 @@ function eventCalendarListGroupingDecision(input) {
26755
26580
  grouping: available && input.listBy === "week" ? "week" : "upcoming"
26756
26581
  };
26757
26582
  }
26758
- //#endregion
26759
- //#region ../blocks/src/system/blocks/events/shared/calendarWindow.ts
26760
- function resolveCalendarReadProfile(content) {
26761
- return resolveEventCalendarReadPlan(content).readProfile;
26762
- }
26763
- const pageFields = {
26764
- scope: z.object({
26765
- key: z.string(),
26766
- timeZone: z.string().transform(toBookingTimeZone)
26767
- }),
26768
- window: calendarMonthWindowSchema,
26769
- initialToday: z.object({
26770
- year: z.number().int(),
26771
- month: z.number().int().min(1).max(12),
26772
- day: z.number().int().min(1).max(31)
26773
- }),
26774
- events: z.array(publicEventSchema)
26775
- };
26776
- const calendarWindowPageSchema = z.discriminatedUnion("kind", [z.object({
26777
- ...pageFields,
26778
- kind: z.literal("complete")
26779
- }), z.object({
26780
- ...pageFields,
26781
- kind: z.literal("partial"),
26782
- nextCursor: calendarSourceCursorSchema
26783
- })]);
26784
- //#endregion
26785
- //#region ../blocks/src/system/helpers/normalizeIds.ts
26786
- function normalizeIdList(parts) {
26787
- const seen = /* @__PURE__ */ new Set();
26788
- const normalized = [];
26789
- for (const part of parts) {
26790
- const trimmed = part.trim();
26791
- if (!trimmed || seen.has(trimmed)) continue;
26792
- seen.add(trimmed);
26793
- normalized.push(trimmed);
26583
+ const weeklyScheduleRead = {
26584
+ shape: "weeklySchedule",
26585
+ query: {
26586
+ eventSurface: "custom",
26587
+ eventPresets: "class",
26588
+ scheduleScope: "any"
26794
26589
  }
26795
- return normalized.sort();
26796
- }
26797
- const eventPageSizeValues = [
26798
- 1,
26799
- 2,
26800
- 3,
26801
- 4,
26802
- 5,
26803
- 6,
26804
- 10,
26805
- 12,
26806
- 20,
26807
- 24,
26808
- 30,
26809
- 100
26810
- ];
26811
- const eventPageSizeSchema = z.union([
26812
- z.literal(1),
26813
- z.literal(2),
26814
- z.literal(3),
26815
- z.literal(4),
26816
- z.literal(5),
26817
- z.literal(6),
26818
- z.literal(10),
26819
- z.literal(12),
26820
- z.literal(20),
26821
- z.literal(24),
26822
- z.literal(30),
26823
- z.literal(100)
26824
- ]);
26825
- const eventPageSizeSet = new Set(eventPageSizeValues);
26826
- function resolveEventPageSize(value, fallback = 12) {
26827
- const candidate = typeof value === "number" ? value : typeof value === "string" && value.trim() !== "" ? Number(value.trim()) : null;
26828
- return candidate != null && Number.isInteger(candidate) && eventPageSizeSet.has(candidate) ? candidate : fallback;
26829
- }
26830
- function resolveEventCalendarListPageSize(input) {
26831
- return resolveEventPageSize(input.eventsPerPage);
26832
- }
26833
- const eventListPaginationActionSchema = z.discriminatedUnion("kind", [
26834
- z.object({ kind: z.literal("none") }),
26835
- z.object({
26836
- kind: z.literal("loadMore"),
26837
- label: z.string()
26838
- }),
26839
- z.object({
26840
- kind: z.literal("seeAllLink"),
26841
- label: z.string(),
26842
- href: z.string()
26843
- })
26844
- ]);
26845
- function resolveEventListPaginationAction(input) {
26846
- if (input.paginationMode === "none") return { kind: "none" };
26847
- const label = input.loadMoreText?.trim() || input.defaultLabel || "Load more events";
26848
- const href = input.seeAllUrl?.trim();
26849
- if (input.paginationMode === "seeAllLink" && href) return {
26850
- kind: "seeAllLink",
26851
- label,
26852
- href
26853
- };
26854
- return {
26855
- kind: "loadMore",
26856
- label
26857
- };
26590
+ };
26591
+ /** A recurring schedule section always paints the weekly class schedule. */
26592
+ function recurringScheduleRead() {
26593
+ return weeklyScheduleRead;
26858
26594
  }
26859
- //#endregion
26860
- //#region ../blocks/src/system/blocks/events/shared/eventSelection.ts
26861
- /** Invalid saved selections fail closed rather than widening discovery. */
26862
- function resolveEventSelection(mode, value) {
26863
- if (mode !== "selected") return { kind: "matching" };
26864
- const candidates = Array.isArray(value) ? value : typeof value === "string" ? value.split(",").filter(Boolean) : [];
26865
- const ids = [];
26866
- for (const candidate of candidates) {
26867
- if (typeof candidate !== "string") return {
26868
- kind: "selected",
26869
- seriesIds: []
26870
- };
26871
- const parsed = parseEventSeriesId(candidate.trim());
26872
- if (!parsed.ok) return {
26873
- kind: "selected",
26874
- seriesIds: []
26875
- };
26876
- ids.push(parsed.value);
26877
- }
26595
+ /** The events a section's scope selects: the series an author picked, or whatever matches its filters. */
26596
+ function resolveEventScopeRead(content) {
26878
26597
  return {
26879
- kind: "selected",
26880
- seriesIds: [...new Set(ids)].sort()
26598
+ shape: "events",
26599
+ query: eventScopeQuery(resolveEventScope(content))
26881
26600
  };
26882
26601
  }
26883
- /** Undefined means discovery; an empty string is an explicitly empty selection. */
26884
- function eventSeriesScopeCsv(value) {
26885
- if (value == null) return void 0;
26886
- return typeof value === "string" ? value : value.join(",");
26887
- }
26888
- //#endregion
26889
- //#region ../blocks/src/system/blocks/events/shared/eventScope.ts
26890
- /** Content fields that narrow a discovery (not hand-picked) event section. */
26891
- const eventDiscoveryFilterKeys = [
26892
- "eventSurface",
26893
- "filterEventPresets",
26894
- "scheduleScope",
26895
- "filterCategoryIds",
26896
- "filterStaffMemberId",
26897
- "filterVenueId"
26898
- ];
26899
26602
  /**
26900
- * The one owner of an event section's scope. Readiness ("is there anything to
26901
- * show?") and the render loaders both derive their query from this, so Hide can
26902
- * never judge a section empty that would display events.
26603
+ * What an events calendar reads, decided by its display mode. Week paints the
26604
+ * fixed class schedule whatever the section's own scope says; every other mode
26605
+ * reads the section's scope. The calendar's loaders, readiness and "which pages
26606
+ * list this event" all take their query from here.
26903
26607
  */
26904
- function resolveEventScope(content) {
26905
- const selection = resolveEventSelection(content.eventSelection, content.selectedEventSeriesIds);
26906
- if (selection.kind === "selected") return selection;
26907
- return {
26908
- kind: "matching",
26909
- filters: Object.fromEntries(eventDiscoveryFilterKeys.map((key) => [key, content[key]]))
26910
- };
26608
+ function resolveEventCalendarRead(content) {
26609
+ return resolveEventCalendarReadPlan(content).jobs === "schedule" ? weeklyScheduleRead : resolveEventScopeRead(content);
26911
26610
  }
26912
- const discoveryQueryKey = {
26913
- eventSurface: "eventSurface",
26914
- filterEventPresets: "eventPresets",
26915
- scheduleScope: "scheduleScope",
26916
- filterCategoryIds: "categoryIds",
26917
- filterStaffMemberId: "staffMemberId",
26918
- filterVenueId: "venueId"
26919
- };
26920
- const eventScopeQueryKeys = ["seriesIds", ...Object.values(discoveryQueryKey)];
26921
- function scopeCsv(value) {
26922
- const normalized = (Array.isArray(value) ? value : typeof value === "string" ? value.split(",") : []).filter((item) => typeof item === "string").map((item) => item.trim()).filter(Boolean);
26923
- return normalized.length > 0 ? [...new Set(normalized)].join(",") : void 0;
26924
- }
26925
- /**
26926
- * Public event query params for a scope. A selected scope sends only
26927
- * `seriesIds` (an empty string is an explicitly empty selection, which reads
26928
- * no rows); discovery sends only the filters that are set.
26929
- */
26930
- function eventScopeQuery(scope) {
26931
- if (scope.kind === "selected") return { seriesIds: scope.seriesIds.join(",") };
26932
- return Object.fromEntries(eventDiscoveryFilterKeys.flatMap((key) => {
26933
- const value = scopeCsv(scope.filters[key]);
26934
- return value === void 0 ? [] : [[discoveryQueryKey[key], value]];
26935
- }));
26936
- }
26937
- /**
26938
- * A query value as a loader binding must return it. Binding resolution treats
26939
- * `""` as absent, which would widen an explicitly empty selection to discovery,
26940
- * so `seriesIds` travels as an empty list and becomes `seriesIds=` when params
26941
- * are stringified.
26942
- */
26943
- function eventScopeLoaderParam(query, key) {
26944
- return key === "seriesIds" && query.seriesIds === "" ? [] : query[key];
26945
- }
26946
- //#endregion
26947
- //#region ../blocks/src/system/blocks/events/eventCalendarDataLoaders.ts
26948
- const eventWeekReadScope = {
26949
- eventSurface: "custom",
26950
- eventPresets: "class",
26951
- scheduleScope: "any"
26952
- };
26953
- /** The section's event scope comes from resolveEventScope, the same owner readiness uses. */
26954
- const eventScopeLoaderParams = Object.fromEntries(eventScopeQueryKeys.map((key) => [key, { $bind: {
26955
- from: "content",
26956
- transforms: [{
26957
- id: "events.scopeParam",
26958
- options: { key }
26959
- }]
26960
- } }]));
26961
- const scopeParams = {
26962
- siteId: { $bind: { from: "$root.siteId" } },
26963
- stage: { $bind: {
26964
- from: "$root.previewStage",
26965
- fallback: "published"
26966
- } },
26967
- ...eventScopeLoaderParams
26968
- };
26969
- /** Each mode reads only what it paints first; see resolveEventCalendarReadPlan. */
26970
- const eventCalendarDataLoaders = {
26971
- schedule: {
26972
- endpoint: "listPublicRecurringSchedule",
26973
- when: { $bind: {
26974
- from: "content",
26975
- transforms: [{
26976
- id: "events.calendarReadEnabled",
26977
- options: { job: "schedule" }
26978
- }]
26979
- } },
26980
- params: {
26981
- siteId: scopeParams.siteId,
26982
- stage: scopeParams.stage,
26983
- limit: "100",
26984
- detailLevel: "listing",
26985
- readProfile: "compact-list",
26986
- ...eventWeekReadScope
26987
- },
26988
- mode: "server"
26989
- },
26990
- events: {
26991
- endpoint: "listPublicEvents",
26992
- when: { $bind: {
26993
- from: "content",
26994
- transforms: [{
26995
- id: "events.calendarReadEnabled",
26996
- options: { job: "list" }
26997
- }]
26998
- } },
26999
- params: {
27000
- ...scopeParams,
27001
- limit: 100,
27002
- detailLevel: "listing",
27003
- readProfile: "listing-card",
27004
- from: { $bind: {
27005
- from: "$root",
27006
- transforms: [{
27007
- id: "events.calendarListWindow",
27008
- options: { key: "from" }
27009
- }]
27010
- } },
27011
- to: { $bind: {
27012
- from: "$root",
27013
- transforms: [{
27014
- id: "events.calendarListWindow",
27015
- options: { key: "to" }
27016
- }]
27017
- } }
27018
- },
27019
- mode: "server"
27020
- },
27021
- calendarWindow: {
27022
- endpoint: "listPublicEventCalendarWindow",
27023
- when: { $bind: {
27024
- from: "content",
27025
- transforms: [{
27026
- id: "events.calendarReadEnabled",
27027
- options: { job: "calendar" }
27028
- }]
27029
- } },
27030
- params: {
27031
- ...scopeParams,
27032
- limit: 100,
27033
- readProfile: { $bind: {
27034
- from: "content",
27035
- transforms: [{ id: "events.calendarReadProfile" }]
27036
- } }
27037
- },
27038
- mode: "server"
27039
- }
27040
- };
27041
26611
  //#endregion
27042
26612
  //#region ../blocks/src/system/blocks/events/eventReadiness.ts
27043
26613
  const eventReadinessResultSchema = z.union([z.array(z.unknown()), recurringScheduleProjectionSchema]).transform((result) => Array.isArray(result) ? result.length > 0 : result.items.length > 0);
@@ -27052,23 +26622,24 @@ function blockChecksForEvents(content) {
27052
26622
  return content.emptyBehavior === "hide" || showsWhenNothingComingUp(content);
27053
26623
  }
27054
26624
  function eventReadinessLoaderKey(content) {
27055
- return resolveEventCalendarReadPlan(content).mode === "week" ? "schedule" : "readinessEvents";
26625
+ return resolveEventCalendarRead(content).shape === "weeklySchedule" ? "schedule" : "readinessEvents";
27056
26626
  }
27057
26627
  /**
27058
- * Week uses its existing projected schedule; other modes ignore displayed date
27059
- * windows but share the render loaders' event scope (see resolveEventScope).
26628
+ * Readiness reads what the calendar's loaders read (resolveEventCalendarRead):
26629
+ * Week its projected schedule, other modes their scope without the displayed
26630
+ * date windows.
27060
26631
  */
27061
26632
  function eventReadinessQuery(content) {
27062
- if (eventReadinessLoaderKey(content) === "schedule") return {
27063
- ...eventWeekReadScope,
26633
+ const read = resolveEventCalendarRead(showsWhenNothingComingUp(content) ? {
26634
+ ...content,
26635
+ eventSelection: "selected"
26636
+ } : content);
26637
+ return read.shape === "weeklySchedule" ? {
26638
+ ...read.query,
27064
26639
  limit: "100"
27065
- };
27066
- return {
26640
+ } : {
27067
26641
  limit: "1",
27068
- ...eventScopeQuery(resolveEventScope(showsWhenNothingComingUp(content) ? {
27069
- ...content,
27070
- eventSelection: "selected"
27071
- } : content))
26642
+ ...read.query
27072
26643
  };
27073
26644
  }
27074
26645
  /** A one-row existence read shares the public event selection and stage contracts. */
@@ -27216,24 +26787,6 @@ const eventsReadiness = {
27216
26787
  }
27217
26788
  };
27218
26789
  //#endregion
27219
- //#region ../blocks/src/lib/typeGuards.ts
27220
- /**
27221
- * Strict record guard: excludes null, primitives, and arrays.
27222
- */
27223
- function isRecord$5(value) {
27224
- return typeof value === "object" && value !== null && !Array.isArray(value);
27225
- }
27226
- /**
27227
- * Non-null object guard: includes arrays for behavior parity with legacy helpers.
27228
- *
27229
- * NOTE: This intentionally narrows to UnknownRecord for compatibility with existing
27230
- * callsites even though arrays pass at runtime. Follow-up cleanup should replace
27231
- * this API with a more precise predicate type and migrate consumers.
27232
- */
27233
- function isObjectRecord$1(value) {
27234
- return typeof value === "object" && value !== null;
27235
- }
27236
- //#endregion
27237
26790
  //#region ../blocks/src/system/registryStore.ts
27238
26791
  const REGISTRY_SYMBOL$1 = Symbol.for("@riverbankcms/blocks/system/definitions");
27239
26792
  const isBlocksTestRuntime$1 = typeof process !== "undefined" && typeof process.env !== "undefined" && process.env.RIVERBANK_BLOCKS_TEST === "1";
@@ -29915,6 +29468,18 @@ const DEFAULT_SECTION_SPACING = "medium";
29915
29468
  //#endregion
29916
29469
  //#region ../blocks/src/system/node/fragments/styledSection.ts
29917
29470
  /**
29471
+ * The geometry hook every styled section carries, whatever its Look or skin:
29472
+ * page-level spacing rules (section seams) target it, apart from the Look's
29473
+ * presentation slots, which come and go with the Look.
29474
+ */
29475
+ const styledSectionHook = { "data-rb-section": "" };
29476
+ /**
29477
+ * Where a styled section keeps the ground it declares. A symbol, so it is
29478
+ * never read as a prop, and it survives the spread copies node modifiers
29479
+ * (`when`, `props`) make.
29480
+ */
29481
+ const styledSectionGround = Symbol("styledSectionGround");
29482
+ /**
29918
29483
  * Create a styled section with automatic background layer and spacing bindings.
29919
29484
  *
29920
29485
  * This helper encapsulates the common pattern of:
@@ -29958,30 +29523,51 @@ const DEFAULT_SECTION_SPACING = "medium";
29958
29523
  */
29959
29524
  function styledSection(config) {
29960
29525
  const { children, baseClass = "rb-px-6", spacing = DEFAULT_SECTION_SPACING, background = "background", bindFrom = "_sectionStyles", imageClassName = "rb-absolute rb-z-0", renderBackgroundImage = true, backgroundImageLoading, backgroundImageFetchPriority, fullWidthPath } = config;
29526
+ const ground = sectionGround(background);
29961
29527
  const renderedBackgroundNode = backgroundFrame(`${bindFrom}.background`, {
29962
29528
  ...config.backgroundLookSlots ? {
29963
29529
  frameSlot: "background",
29964
29530
  imageSlot: "photo"
29965
29531
  } : {},
29966
29532
  imageClassName,
29967
- fallbackToken: background,
29533
+ fallbackToken: ground.fallback,
29968
29534
  omitImageLayer: !renderBackgroundImage,
29969
29535
  imageLoading: backgroundImageLoading,
29970
29536
  imageFetchPriority: backgroundImageFetchPriority
29971
29537
  });
29972
29538
  const childrenArray = Array.isArray(children) ? children : [children];
29973
- return section(sectionAppearanceProps({
29974
- bindFrom,
29975
- background,
29976
- baseClass,
29977
- spacing,
29978
- fullWidthPath,
29979
- photoPaintsGround: renderBackgroundImage,
29980
- skinSlot: config.skinSlot
29981
- }), [renderedBackgroundNode, ...childrenArray]);
29539
+ return {
29540
+ ...section(sectionAppearanceProps({
29541
+ bindFrom,
29542
+ background: ground.fallback,
29543
+ baseClass,
29544
+ spacing,
29545
+ fullWidthPath,
29546
+ photoPaintsGround: renderBackgroundImage,
29547
+ skinSlot: config.skinSlot
29548
+ }), [renderedBackgroundNode, ...childrenArray]),
29549
+ [styledSectionGround]: ground
29550
+ };
29551
+ }
29552
+ function isStyledSectionNode(node) {
29553
+ return styledSectionGround in node;
29554
+ }
29555
+ /**
29556
+ * The ground a block layout's section declares, when its root is a styled
29557
+ * section: then the platform paints the section and owns its padding. Null
29558
+ * for a layout that draws its own root (the header, footer or blog post),
29559
+ * or whose alternative roots declare different grounds.
29560
+ */
29561
+ function layoutSectionGround(layout) {
29562
+ if (!layout) return null;
29563
+ const [first, ...rest] = Array.isArray(layout) ? layout : [layout];
29564
+ if (!first || !isStyledSectionNode(first)) return null;
29565
+ const ground = first[styledSectionGround];
29566
+ return rest.every((root) => isStyledSectionNode(root) && root[styledSectionGround].fallback === ground.fallback) ? ground : null;
29982
29567
  }
29983
29568
  function sectionAppearanceProps(input) {
29984
29569
  return {
29570
+ ...styledSectionHook,
29985
29571
  ...input.skinSlot ? lookSlot(input.skinSlot, "skin") : lookSlot("section"),
29986
29572
  "data-arrangement": { $bind: { from: "content._lookHooks.data-arrangement" } },
29987
29573
  style: { $bind: {
@@ -37695,7 +37281,7 @@ const headingClassFromAlignment = {
37695
37281
  summary: "Append text alignment class to a base heading class",
37696
37282
  run: (value, options) => {
37697
37283
  const alignClass = (typeof value === "string" && value === "center" ? "center" : "left") === "center" ? "rb-text-center" : "rb-text-left";
37698
- return `${options.base} ${alignClass}`.trim();
37284
+ return `${options.base ?? ""} ${alignClass}`.trim();
37699
37285
  }
37700
37286
  };
37701
37287
  const bodyClassFromAlignment = {
@@ -37704,7 +37290,7 @@ const bodyClassFromAlignment = {
37704
37290
  summary: "Append body alignment helper classes to a base class",
37705
37291
  run: (value, options) => {
37706
37292
  const extra = (typeof value === "string" && value === "center" ? "center" : "left") === "center" ? "rb-mx-auto rb-text-center" : "";
37707
- return `${options.base} ${extra}`.trim();
37293
+ return `${options.base ?? ""} ${extra}`.trim();
37708
37294
  }
37709
37295
  };
37710
37296
  const stackAlignFromAlignment = {
@@ -38701,16 +38287,16 @@ const interpolateRichTextTokensOptionsSchema = z.object({ tokens: z.array(suppor
38701
38287
  const richTextTokenPattern = /\{\{\s*([a-zA-Z0-9_]+)\s*\}\}/g;
38702
38288
  function getSiteName(context) {
38703
38289
  const viewModel = context.viewModel;
38704
- if (!isRecord$5(viewModel)) return null;
38290
+ if (!isRecord$13(viewModel)) return null;
38705
38291
  const site = viewModel.site;
38706
- if (isRecord$5(site) && typeof site.title === "string") {
38292
+ if (isRecord$13(site) && typeof site.title === "string") {
38707
38293
  const title = site.title.trim();
38708
38294
  return title.length > 0 ? title : null;
38709
38295
  }
38710
38296
  const root = viewModel.$root;
38711
- if (isRecord$5(root)) {
38297
+ if (isRecord$13(root)) {
38712
38298
  const rootSite = root.site;
38713
- if (isRecord$5(rootSite) && typeof rootSite.title === "string") {
38299
+ if (isRecord$13(rootSite) && typeof rootSite.title === "string") {
38714
38300
  const title = rootSite.title.trim();
38715
38301
  if (title.length > 0) return title;
38716
38302
  }
@@ -38732,7 +38318,7 @@ function replaceTokenText(input, allowedTokens, tokenValues) {
38732
38318
  });
38733
38319
  }
38734
38320
  function visitRichTextNode(node, allowedTokens, tokenValues) {
38735
- if (!isRecord$5(node)) return node;
38321
+ if (!isRecord$13(node)) return node;
38736
38322
  let changed = false;
38737
38323
  const nextNode = { ...node };
38738
38324
  if (nextNode.type === "text" && typeof nextNode.text === "string") {
@@ -38753,7 +38339,7 @@ function visitRichTextNode(node, allowedTokens, tokenValues) {
38753
38339
  return changed ? nextNode : node;
38754
38340
  }
38755
38341
  function interpolateRichTextTokens(value, options, context) {
38756
- if (typeof value !== "string" && !isRecord$5(value)) return value;
38342
+ if (typeof value !== "string" && !isRecord$13(value)) return value;
38757
38343
  const allowedTokens = new Set(options.tokens);
38758
38344
  const tokenValues = {
38759
38345
  year: () => formatDate$2({
@@ -41887,6 +41473,19 @@ const eventEmptyBehaviorFields = [{
41887
41473
  }
41888
41474
  }];
41889
41475
  //#endregion
41476
+ //#region ../blocks/src/system/helpers/normalizeIds.ts
41477
+ function normalizeIdList(parts) {
41478
+ const seen = /* @__PURE__ */ new Set();
41479
+ const normalized = [];
41480
+ for (const part of parts) {
41481
+ const trimmed = part.trim();
41482
+ if (!trimmed || seen.has(trimmed)) continue;
41483
+ seen.add(trimmed);
41484
+ normalized.push(trimmed);
41485
+ }
41486
+ return normalized.sort();
41487
+ }
41488
+ //#endregion
41890
41489
  //#region ../blocks/src/system/blocks/events/shared/filtering.ts
41891
41490
  const unsafeAsEventCategoryId = (value) => value;
41892
41491
  const unsafeAsVenueId = (value) => value;
@@ -42226,6 +41825,248 @@ function isBookableEvent(event, now) {
42226
41825
  function hasEventBookingClosedEarly(event, now) {
42227
41826
  return event.bookingClosesAt !== void 0 && hasBookingClosed(event.bookingClosesAt, now);
42228
41827
  }
41828
+ /**
41829
+ * Past its cut-off but not yet started: the window an early cut-off adds. Once
41830
+ * a date has started, the page says that instead.
41831
+ */
41832
+ function isInBookingCutOffWindow(event, now) {
41833
+ return hasEventBookingClosedEarly(event, now) && Date.parse(event.startsAt) > now.getTime();
41834
+ }
41835
+ //#endregion
41836
+ //#region ../blocks/src/system/runtime/nodes/events/domain/destination.ts
41837
+ function isRecord$3(value) {
41838
+ return typeof value === "object" && value !== null && !Array.isArray(value);
41839
+ }
41840
+ function isEventDestinationMode(value) {
41841
+ return value === "cms-managed" || value === "system-managed";
41842
+ }
41843
+ function readEventPage(value) {
41844
+ return isRecord$3(value) && isEventDestinationMode(value.mode) && typeof value.path === "string" && value.path.trim().length > 0 ? {
41845
+ mode: value.mode,
41846
+ path: value.path
41847
+ } : null;
41848
+ }
41849
+ /**
41850
+ * A destination from the payload, or null when it isn't one. An external
41851
+ * destination with a malformed `page` keeps linking out, as one without a page
41852
+ * does, rather than being read as booked here.
41853
+ */
41854
+ function readRuntimeEventDestination(value) {
41855
+ if (!isRecord$3(value)) return null;
41856
+ if (value.kind === "native") return isEventDestinationMode(value.mode) && typeof value.path === "string" ? {
41857
+ kind: "native",
41858
+ mode: value.mode,
41859
+ path: value.path
41860
+ } : null;
41861
+ if (value.kind !== "external" || typeof value.url !== "string" || typeof value.label !== "string") return null;
41862
+ const page = readEventPage(value.page);
41863
+ return page ? {
41864
+ kind: "external",
41865
+ url: value.url,
41866
+ label: value.label,
41867
+ page
41868
+ } : {
41869
+ kind: "external",
41870
+ url: value.url,
41871
+ label: value.label
41872
+ };
41873
+ }
41874
+ function resolveRuntimeEventDestination(event) {
41875
+ const destination = readRuntimeEventDestination(event.destination);
41876
+ if (destination) return destination;
41877
+ return {
41878
+ kind: "native",
41879
+ mode: event.eventDestinationMode === "system-managed" ? "system-managed" : "cms-managed",
41880
+ path: typeof event.path === "string" ? event.path : ""
41881
+ };
41882
+ }
41883
+ //#endregion
41884
+ //#region ../blocks/src/system/runtime/nodes/events/domain/cta.ts
41885
+ /**
41886
+ * Booking call-to-action resolution for events: where an event links to and
41887
+ * what the button says. Sold-out and waitlist decisions come from capacity.ts
41888
+ * so cards, rows and the wizard never disagree.
41889
+ */
41890
+ function closedEventBookingLabel(reason) {
41891
+ switch (reason) {
41892
+ case "occurrence_cancelled":
41893
+ case "series_cancelled": return "Cancelled";
41894
+ case "occurrence_completed":
41895
+ case "series_completed": return "Completed";
41896
+ case "series_draft":
41897
+ case "series_archived":
41898
+ case "parent_archived":
41899
+ case "parent_inconsistent":
41900
+ case "already_started":
41901
+ case "enrollment_closed": return "Registration closed";
41902
+ default: return assertNever(reason);
41903
+ }
41904
+ }
41905
+ function outwardLink(url) {
41906
+ return {
41907
+ href: url,
41908
+ target: "_blank",
41909
+ rel: "noopener noreferrer"
41910
+ };
41911
+ }
41912
+ /** The event's own page path, when it has a page (booked here, or booked elsewhere with its own page). */
41913
+ function eventDestinationPagePath(destination) {
41914
+ return destination.kind === "native" ? destination.path : destination.page?.path ?? null;
41915
+ }
41916
+ /**
41917
+ * Where an event's details are: its page when it has one (booked here, or
41918
+ * booked elsewhere with its own page), otherwise the outside link in a new tab.
41919
+ */
41920
+ function eventDestinationPageLink(destination) {
41921
+ switch (destination.kind) {
41922
+ case "native": return { href: destination.path };
41923
+ case "external": return destination.page ? { href: destination.page.path } : outwardLink(destination.url);
41924
+ }
41925
+ }
41926
+ /** Where an event is booked: the outside link (new tab) for any event booked elsewhere, otherwise its page. */
41927
+ function eventDestinationBookingLink(destination) {
41928
+ return destination.kind === "external" ? outwardLink(destination.url) : { href: destination.path };
41929
+ }
41930
+ /** For the title, image, date tiles and calendar cells. */
41931
+ function resolveEventPageLink(event) {
41932
+ return eventDestinationPageLink(resolveRuntimeEventDestination(event));
41933
+ }
41934
+ /** For the Book button. */
41935
+ function resolveEventBookingLink(event) {
41936
+ return eventDestinationBookingLink(resolveRuntimeEventDestination(event));
41937
+ }
41938
+ /**
41939
+ * Resolve the CTA state for an event.
41940
+ * Shared by EventCard and EventCompactRow to keep sold-out, registration-closed,
41941
+ * and course-specific defaults consistent.
41942
+ */
41943
+ function resolveEventCta(event, buttonText) {
41944
+ const isSoldOut = isEventFull(event);
41945
+ const isExternal = resolveRuntimeEventDestination(event).kind === "external";
41946
+ const { href } = resolveEventBookingLink(event);
41947
+ if (event.bookingAvailability.kind === "closed") {
41948
+ const linksToClosedWholeSeriesDetails = event.bookingAvailability.reason === "enrollment_closed" && !isExternal;
41949
+ return {
41950
+ label: closedEventBookingLabel(event.bookingAvailability.reason),
41951
+ href,
41952
+ external: isExternal,
41953
+ hidden: !linksToClosedWholeSeriesDetails
41954
+ };
41955
+ }
41956
+ if (!isExternal && isSoldOut) {
41957
+ if (canJoinEventWaitlistOnAnyMode(event)) return {
41958
+ label: "Join waitlist",
41959
+ href,
41960
+ external: false,
41961
+ hidden: false
41962
+ };
41963
+ return {
41964
+ label: "Sold out",
41965
+ href,
41966
+ external: false,
41967
+ hidden: true
41968
+ };
41969
+ }
41970
+ return destinationCta(event, buttonText);
41971
+ }
41972
+ function destinationCta(event, buttonText) {
41973
+ const destination = resolveRuntimeEventDestination(event);
41974
+ return {
41975
+ label: buttonText ?? (destination.kind === "external" ? destination.label : "Book"),
41976
+ href: resolveEventBookingLink(event).href,
41977
+ external: destination.kind === "external",
41978
+ hidden: false
41979
+ };
41980
+ }
41981
+ /**
41982
+ * A bounded date strip cannot prove a series sold out. Its destination owns date selection,
41983
+ * so the card offers that destination and leaves capacity with the individual date rows.
41984
+ * Whole-series bookings still have one shared capacity, as do ordinary occurrence cards.
41985
+ */
41986
+ function resolveEventCardBooking(event, scope, buttonText, options) {
41987
+ const closedCta = event.bookingAvailability.kind === "closed" ? resolveEventCta(event, buttonText) : renderClockClosedCta(event, options.now);
41988
+ if (scope === "series" && event.bookingScope === "single_occurrence") {
41989
+ const closed = seriesBookingClosed(event);
41990
+ return {
41991
+ cta: closed ? resolveEventCta(event, buttonText) : withoutPage(destinationCta(event, buttonText)),
41992
+ availability: null,
41993
+ closed
41994
+ };
41995
+ }
41996
+ return closedCta ? {
41997
+ cta: closedCta,
41998
+ availability: null,
41999
+ closed: true
42000
+ } : {
42001
+ cta: withoutPage(resolveEventCta(event, buttonText)),
42002
+ availability: occurrenceCardAvailability(event, options.count),
42003
+ closed: false
42004
+ };
42005
+ }
42006
+ /** A native card with no page yet can't invite booking: there is nowhere to send the visitor. */
42007
+ function withoutPage(cta) {
42008
+ return !cta.external && !cta.hidden && cta.href === "" ? {
42009
+ ...cta,
42010
+ label: "Details coming soon",
42011
+ hidden: true
42012
+ } : cta;
42013
+ }
42014
+ /** Only a series-wide closure closes its card; a cancelled or started date says nothing about later dates. */
42015
+ function seriesBookingClosed(event) {
42016
+ if (event.bookingAvailability.kind !== "closed") return false;
42017
+ switch (event.bookingAvailability.reason) {
42018
+ case "occurrence_cancelled":
42019
+ case "occurrence_completed":
42020
+ case "already_started": return false;
42021
+ case "series_cancelled":
42022
+ case "series_completed":
42023
+ case "series_draft":
42024
+ case "series_archived":
42025
+ case "parent_archived":
42026
+ case "parent_inconsistent":
42027
+ case "enrollment_closed": return true;
42028
+ default: return assertNever(event.bookingAvailability.reason);
42029
+ }
42030
+ }
42031
+ function occurrenceCardAvailability(event, count) {
42032
+ const label = formatEventRemainingPlaces(event, {
42033
+ full: "Sold out",
42034
+ count
42035
+ });
42036
+ const availability = getEventAvailabilityStatus(event);
42037
+ return label ? {
42038
+ label,
42039
+ status: availability.isFull ? "full" : availability.status === "filling" ? "low" : "available"
42040
+ } : null;
42041
+ }
42042
+ /** Preserve projected closure reasons; only an open native booking needs its clock rechecked. */
42043
+ function renderClockClosedCta(event, now) {
42044
+ if (!now || event.destination.kind !== "native") return null;
42045
+ if (event.bookingScope !== "whole_series") return hasEventBookingClosedEarly(event, now) ? {
42046
+ label: "Registration closed",
42047
+ href: resolveEventBookingLink(event).href,
42048
+ external: false,
42049
+ hidden: true
42050
+ } : null;
42051
+ const phase = resolveWholeSeriesBookingPhase(event.run, now);
42052
+ if (phase.kind === "open") return null;
42053
+ return {
42054
+ label: (() => {
42055
+ switch (phase.reason) {
42056
+ case "cancelled": return "Cancelled";
42057
+ case "completed": return "Completed";
42058
+ case "in-progress":
42059
+ case "bookings-closed":
42060
+ case "enrolment-closed":
42061
+ case "no-sessions": return "Registration closed";
42062
+ default: return assertNever(phase.reason);
42063
+ }
42064
+ })(),
42065
+ href: resolveEventBookingLink(event).href,
42066
+ external: false,
42067
+ hidden: phase.reason !== "enrolment-closed" && phase.reason !== "bookings-closed"
42068
+ };
42069
+ }
42229
42070
  //#endregion
42230
42071
  //#region ../blocks/src/system/blocks/events/shared/pageSelection.ts
42231
42072
  function planWholeSeriesParentBooking(eligibleRuns) {
@@ -42250,6 +42091,14 @@ function isOrdinaryPublicEvent(event) {
42250
42091
  return event.bookingScope === "single_occurrence";
42251
42092
  }
42252
42093
  /**
42094
+ * A date people come to without booking. An event booked on another website is
42095
+ * also saved with no booking here, but its visitors do book, just elsewhere, so
42096
+ * it is never a drop-in.
42097
+ */
42098
+ function isDropInPublicEvent(event) {
42099
+ return event.bookingScope === "single_occurrence" && !event.requiresRegistration && event.destination.kind !== "external";
42100
+ }
42101
+ /**
42253
42102
  * What a series' own page shows when its URL names no date.
42254
42103
  *
42255
42104
  * Two or more dates a visitor can book make a choice: the page lists every
@@ -42432,7 +42281,7 @@ function planDropInPanel(selection) {
42432
42281
  }
42433
42282
  function getPublicEventCanonicalPath(event) {
42434
42283
  if (event.path) return event.path;
42435
- return event.destination.kind === "native" ? event.destination.path : null;
42284
+ return eventDestinationPagePath(event.destination);
42436
42285
  }
42437
42286
  function eventOccurrenceContext(event) {
42438
42287
  return {
@@ -42448,7 +42297,7 @@ function eventOccurrenceContext(event) {
42448
42297
  function registrationDataForEventSelection(selection) {
42449
42298
  switch (selection.kind) {
42450
42299
  case "occurrence": return {
42451
- events: [selection.event],
42300
+ events: [selection.event, ...selection.additionalDates ?? []],
42452
42301
  occurrenceContext: eventOccurrenceContext(selection.event),
42453
42302
  subject: null
42454
42303
  };
@@ -42517,6 +42366,202 @@ function isCancelledOrdinaryDate(event) {
42517
42366
  //#region ../blocks/src/system/blocks/shared/bookingPageKind.ts
42518
42367
  const bookingPageKindSchema = z.enum(["fullPage", "bookingPage"]);
42519
42368
  //#endregion
42369
+ //#region ../calendar/src/grid.ts
42370
+ const DAY_NAMES = [
42371
+ "Sun",
42372
+ "Mon",
42373
+ "Tue",
42374
+ "Wed",
42375
+ "Thu",
42376
+ "Fri",
42377
+ "Sat"
42378
+ ];
42379
+ const MONTH_NAMES = [
42380
+ "January",
42381
+ "February",
42382
+ "March",
42383
+ "April",
42384
+ "May",
42385
+ "June",
42386
+ "July",
42387
+ "August",
42388
+ "September",
42389
+ "October",
42390
+ "November",
42391
+ "December"
42392
+ ];
42393
+ function formatDateKey(date) {
42394
+ return `${String(date.year).padStart(4, "0")}-${String(date.month).padStart(2, "0")}-${String(date.day).padStart(2, "0")}`;
42395
+ }
42396
+ function isToday(date, today) {
42397
+ return isSameCalendarDay(date, today);
42398
+ }
42399
+ function isSameCalendarDay(left, right) {
42400
+ return left.year === right.year && left.month === right.month && left.day === right.day;
42401
+ }
42402
+ function addDays(date, days) {
42403
+ const result = new Date(Date.UTC(date.year, date.month - 1, date.day + days, 12));
42404
+ return {
42405
+ year: result.getUTCFullYear(),
42406
+ month: result.getUTCMonth() + 1,
42407
+ day: result.getUTCDate()
42408
+ };
42409
+ }
42410
+ function getMonthCalendarDays(year, month, startOfWeek) {
42411
+ const firstDay = {
42412
+ year,
42413
+ month,
42414
+ day: 1
42415
+ };
42416
+ const dayOfWeek = getDayOfWeek(firstDay);
42417
+ const gridStart = addDays(firstDay, -(startOfWeek === "monday" ? dayOfWeek === 0 ? 6 : dayOfWeek - 1 : dayOfWeek));
42418
+ return Array.from({ length: 42 }, (_, index) => addDays(gridStart, index));
42419
+ }
42420
+ function getWeekCalendarDays(baseDate, startOfWeek) {
42421
+ const dayOfWeek = getDayOfWeek(baseDate);
42422
+ const weekStart = addDays(baseDate, -(startOfWeek === "monday" ? dayOfWeek === 0 ? 6 : dayOfWeek - 1 : dayOfWeek));
42423
+ return Array.from({ length: 7 }, (_, index) => addDays(weekStart, index));
42424
+ }
42425
+ function getDayOfWeek(date) {
42426
+ return new Date(Date.UTC(date.year, date.month - 1, date.day, 12)).getUTCDay();
42427
+ }
42428
+ function getWeekCalendarDayTuple(baseDate, startOfWeek) {
42429
+ const days = getWeekCalendarDays(baseDate, startOfWeek);
42430
+ assertWeekCalendarDays(days);
42431
+ return days;
42432
+ }
42433
+ function assertWeekCalendarDays(days) {
42434
+ if (days.length !== 7) throw new Error("Expected exactly 7 calendar days");
42435
+ }
42436
+ function getOrderedDayNames(startOfWeek, dayNames = DAY_NAMES) {
42437
+ if (startOfWeek === "monday") {
42438
+ const sunday = dayNames[0] ?? "Sun";
42439
+ return [...dayNames.slice(1), sunday];
42440
+ }
42441
+ return [...dayNames];
42442
+ }
42443
+ function formatCalendarTitle$1(viewDate, view, days, monthNames = MONTH_NAMES) {
42444
+ if (view === "week") {
42445
+ const weekStart = days[0];
42446
+ const weekEnd = days[6];
42447
+ if (weekStart === void 0 || weekEnd === void 0) return `${monthNames[viewDate.month - 1] ?? ""} ${viewDate.year}`;
42448
+ const startMonth = monthNames[weekStart.month - 1] ?? "";
42449
+ const endMonth = monthNames[weekEnd.month - 1] ?? "";
42450
+ if (weekStart.month === weekEnd.month) return `${startMonth} ${weekStart.day} - ${weekEnd.day}, ${weekEnd.year}`;
42451
+ return `${startMonth} ${weekStart.day} - ${endMonth} ${weekEnd.day}, ${weekEnd.year}`;
42452
+ }
42453
+ return `${monthNames[viewDate.month - 1] ?? ""} ${viewDate.year}`;
42454
+ }
42455
+ function buildCalendarViewport$1(input) {
42456
+ const monthNames = input.monthNames ?? MONTH_NAMES;
42457
+ if (input.view === "week") {
42458
+ const days = getWeekCalendarDayTuple(input.anchorDate, input.startOfWeek);
42459
+ return {
42460
+ kind: "week",
42461
+ anchorDate: input.anchorDate,
42462
+ days,
42463
+ title: formatCalendarTitle$1(input.anchorDate, "week", days, monthNames)
42464
+ };
42465
+ }
42466
+ const days = getMonthCalendarDays(input.anchorDate.year, input.anchorDate.month, input.startOfWeek);
42467
+ return {
42468
+ kind: "month",
42469
+ anchorDate: input.anchorDate,
42470
+ days,
42471
+ title: formatCalendarTitle$1(input.anchorDate, "month", days, monthNames)
42472
+ };
42473
+ }
42474
+ //#endregion
42475
+ //#region ../calendar/src/timezone.ts
42476
+ /**
42477
+ * Timezone boundary helpers — internal.
42478
+ *
42479
+ * Both functions read an ISO instant in a given IANA timezone and project it
42480
+ * onto the wall clock of that zone. They use Intl.DateTimeFormat with
42481
+ * hourCycle: 'h23' to avoid 12/24-hour ambiguity. Used internally by the
42482
+ * timetable model and `groupItemsByDate`; not exported from the package's
42483
+ * public surface.
42484
+ */
42485
+ const MINUTES_PER_HOUR = 60;
42486
+ /**
42487
+ * Local minute-of-day [0, 24*60) for an ISO instant in the given zone.
42488
+ * Returns NaN if the inputs cannot be parsed (caller should drop the item).
42489
+ */
42490
+ function getLocalMinuteOfDay(isoTimestamp, timeZone) {
42491
+ const date = new Date(isoTimestamp);
42492
+ if (Number.isNaN(date.getTime())) return NaN;
42493
+ if (!isValidTimeZone(timeZone)) return NaN;
42494
+ const parts = new Intl.DateTimeFormat("en-GB", {
42495
+ timeZone,
42496
+ hour: "2-digit",
42497
+ minute: "2-digit",
42498
+ hourCycle: "h23"
42499
+ }).formatToParts(date);
42500
+ const hourPart = Number(parts.find((part) => part.type === "hour")?.value);
42501
+ const minute = Number(parts.find((part) => part.type === "minute")?.value);
42502
+ const hour = hourPart === 24 ? 0 : hourPart;
42503
+ if (Number.isNaN(hour) || Number.isNaN(minute)) return NaN;
42504
+ return hour * MINUTES_PER_HOUR + minute;
42505
+ }
42506
+ /**
42507
+ * Local YYYY-MM-DD for an ISO instant in the given zone.
42508
+ * Returns null if the inputs cannot be parsed.
42509
+ */
42510
+ function getLocalDateKey(isoTimestamp, timeZone) {
42511
+ const date = new Date(isoTimestamp);
42512
+ if (Number.isNaN(date.getTime())) return null;
42513
+ if (!isValidTimeZone(timeZone)) return null;
42514
+ const parts = new Intl.DateTimeFormat("en-CA", {
42515
+ timeZone,
42516
+ year: "numeric",
42517
+ month: "2-digit",
42518
+ day: "2-digit"
42519
+ }).formatToParts(date);
42520
+ const year = parts.find((part) => part.type === "year")?.value;
42521
+ const month = parts.find((part) => part.type === "month")?.value;
42522
+ const day = parts.find((part) => part.type === "day")?.value;
42523
+ if (year === void 0 || year.length === 0) return null;
42524
+ if (month === void 0 || month.length === 0) return null;
42525
+ if (day === void 0 || day.length === 0) return null;
42526
+ return `${year}-${month}-${day}`;
42527
+ }
42528
+ const validTimeZoneCache = /* @__PURE__ */ new Map();
42529
+ function isValidTimeZone(timeZone) {
42530
+ if (typeof timeZone !== "string" || timeZone.length === 0) return false;
42531
+ const cached = validTimeZoneCache.get(timeZone);
42532
+ if (cached !== void 0) return cached;
42533
+ try {
42534
+ new Intl.DateTimeFormat("en-US", { timeZone });
42535
+ validTimeZoneCache.set(timeZone, true);
42536
+ return true;
42537
+ } catch {
42538
+ validTimeZoneCache.set(timeZone, false);
42539
+ return false;
42540
+ }
42541
+ }
42542
+ //#endregion
42543
+ //#region ../calendar/src/group.ts
42544
+ /**
42545
+ * Group items by their local date (YYYY-MM-DD in the item's own timezone).
42546
+ *
42547
+ * Generic over `T`. Items with un-parseable startsAt or invalid timezone are
42548
+ * silently dropped — call sites that need diagnostics should validate upstream.
42549
+ *
42550
+ * The output map preserves insertion order of dates (ES2015 spec) and the
42551
+ * relative order of items within each date matches input order.
42552
+ */
42553
+ function groupItemsByDate(items, accessors) {
42554
+ const grouped = /* @__PURE__ */ new Map();
42555
+ for (const item of items) {
42556
+ const dateKey = getLocalDateKey(accessors.getStartsAt(item), accessors.getTimeZone(item));
42557
+ if (dateKey == null) continue;
42558
+ const existing = grouped.get(dateKey);
42559
+ if (existing !== void 0) existing.push(item);
42560
+ else grouped.set(dateKey, [item]);
42561
+ }
42562
+ return grouped;
42563
+ }
42564
+ //#endregion
42520
42565
  //#region ../blocks/src/system/runtime/nodes/events/domain/dates.ts
42521
42566
  /** Event presentation adapters; core owns projection, clocks and ranges. */
42522
42567
  function eventDateLocale(siteTimeZone) {
@@ -42735,7 +42780,10 @@ function openRunBookingLine(run) {
42735
42780
  /** One date between its cut-off and its start, or null. */
42736
42781
  function closedDateCopy(event, now) {
42737
42782
  const closesAt = event.bookingClosesAt;
42738
- if (!closesAt || !hasBookingClosed(closesAt, now) || Date.parse(event.startsAt) <= now.getTime()) return null;
42783
+ return closesAt && isInBookingCutOffWindow(event, now) ? cutOffDateCopy(event, closesAt) : null;
42784
+ }
42785
+ /** What a date past its cut-off says: when bookings closed, and how long before the start. */
42786
+ function cutOffDateCopy(event, closesAt) {
42739
42787
  const zone = eventTimeZone(event);
42740
42788
  const closed = formatBookingClosedTime(closesAt, event.startsAt, zone);
42741
42789
  const start = formatBookingClosedTime(event.startsAt, event.startsAt, zone);
@@ -42747,6 +42795,34 @@ function closedDateCopy(event, now) {
42747
42795
  otherDatesHref: weekly ? eventOwnPagePath(event) : null
42748
42796
  };
42749
42797
  }
42798
+ /**
42799
+ * What a date booked on another website says once it has closed, as decided by
42800
+ * `bookedElsewhereDateClosure`. There's no booking form here to say so, and the
42801
+ * outward button mustn't stand in for it.
42802
+ */
42803
+ function bookElsewhereDateCopy(event, closure) {
42804
+ const weekly = isWeekly(event);
42805
+ const otherDatesHref = weekly ? eventOwnPagePath(event) : null;
42806
+ const closedTitle = weekly ? "Bookings for this date have closed" : "Bookings for this event have closed";
42807
+ switch (closure.kind) {
42808
+ case "cutOff": return cutOffDateCopy(event, closure.closesAt);
42809
+ case "finished": return {
42810
+ titleText: weekly ? "This date has finished" : "This event has finished",
42811
+ bodyText: "The details are kept here for reference.",
42812
+ otherDatesHref
42813
+ };
42814
+ case "started": return {
42815
+ titleText: closedTitle,
42816
+ bodyText: "Bookings closed when it started. The organiser may still be able to help if you’d like to come.",
42817
+ otherDatesHref
42818
+ };
42819
+ case "notTaking": return {
42820
+ titleText: closedTitle,
42821
+ bodyText: "Bookings aren’t being taken at the moment.",
42822
+ otherDatesHref
42823
+ };
42824
+ }
42825
+ }
42750
42826
  /** The body of a course past its cut-off, or null if the run doesn't say when. */
42751
42827
  function closedRunBody(run) {
42752
42828
  const first = orderedLiveRunSessions(run.sessions)[0];
@@ -42797,9 +42873,12 @@ function closedRunCopy(reason, run) {
42797
42873
  function closedDatesCopy(dates, now) {
42798
42874
  if (dates.some((date) => Date.parse(date.startsAt) > now.getTime() && !(date.bookingClosesAt && hasBookingClosed(date.bookingClosesAt, now)))) return null;
42799
42875
  const [firstClosed] = dates.flatMap((date) => closedDateCopy(date, now) ?? []);
42800
- if (!firstClosed) return null;
42876
+ return firstClosed ? closedDateListCopy(dates.length, firstClosed) : null;
42877
+ }
42878
+ /** A closed list of dates: one date says its own cut-off; several share the run's line. */
42879
+ function closedDateListCopy(dateCount, firstCutOff) {
42801
42880
  return {
42802
- ...dates.length > 1 ? copy["bookings-closed"] : firstClosed,
42881
+ ...dateCount > 1 ? copy["bookings-closed"] : firstCutOff,
42803
42882
  otherDatesHref: null
42804
42883
  };
42805
42884
  }
@@ -42830,10 +42909,6 @@ const blockSiteTermsSchema = z.discriminatedUnion("kind", [z.object({ kind: z.li
42830
42909
  businessName: z.string(),
42831
42910
  href: z.string().min(1).nullable()
42832
42911
  })]);
42833
- z.object({
42834
- versionId,
42835
- alreadyAgreed: z.boolean()
42836
- });
42837
42912
  //#endregion
42838
42913
  //#region ../blocks/src/system/runtime/nodes/events/domain/location.ts
42839
42914
  /** The name in a venue's place: its own, or the owner's word that the address follows the booking. */
@@ -42990,24 +43065,6 @@ function formatBookingScheduleSummary(event) {
42990
43065
  return formatBookingSchedulePresentation(event)?.text ?? null;
42991
43066
  }
42992
43067
  //#endregion
42993
- //#region ../blocks/src/system/runtime/nodes/events/domain/destination.ts
42994
- function isRecord$3(value) {
42995
- return typeof value === "object" && value !== null && !Array.isArray(value);
42996
- }
42997
- function isRuntimeEventDestination(value) {
42998
- if (!isRecord$3(value) || typeof value.kind !== "string") return false;
42999
- if (value.kind === "native") return (value.mode === "cms-managed" || value.mode === "system-managed") && typeof value.path === "string";
43000
- return value.kind === "external" && typeof value.url === "string" && typeof value.label === "string";
43001
- }
43002
- function resolveRuntimeEventDestination(event) {
43003
- if (isRuntimeEventDestination(event.destination)) return event.destination;
43004
- return {
43005
- kind: "native",
43006
- mode: event.eventDestinationMode === "system-managed" ? "system-managed" : "cms-managed",
43007
- path: typeof event.path === "string" ? event.path : ""
43008
- };
43009
- }
43010
- //#endregion
43011
43068
  //#region ../blocks/src/system/runtime/nodes/events/domain/listWeek.ts
43012
43069
  /** Civil weeks use the site zone, including weeks containing a clock change. */
43013
43070
  function buildEventListWeek(anchor, startOfWeek, timeZone) {
@@ -43620,6 +43677,32 @@ function scheduleInput(event, occurrence) {
43620
43677
  };
43621
43678
  }
43622
43679
  //#endregion
43680
+ //#region ../blocks/src/system/runtime/nodes/event-registration/registrationSelection.state.ts
43681
+ const SINGLE = { kind: "single" };
43682
+ function sameOffering(events) {
43683
+ const offerings = new Set(events.map((event) => event.registrationSubject.kind === "wholeSeries" ? event.registrationSubject.eventOfferingId : null));
43684
+ return offerings.size === 1 && !offerings.has(null);
43685
+ }
43686
+ function registrationSelectionMode(input) {
43687
+ const { events } = input;
43688
+ if (events.length < 2) return SINGLE;
43689
+ if (events.some((event) => event.rooms)) return SINGLE;
43690
+ if (!events.every((event) => event.allowsMultipleBooking)) return SINGLE;
43691
+ const firstSeriesId = events[0]?.seriesId;
43692
+ if (events.every((event) => event.registrationSubject.kind === "occurrence" && event.seriesId === firstSeriesId)) return {
43693
+ kind: "several",
43694
+ items: "dates"
43695
+ };
43696
+ return events.every((event) => event.registrationSubject.kind === "wholeSeries") && sameOffering(events) ? {
43697
+ kind: "several",
43698
+ items: "runs"
43699
+ } : SINGLE;
43700
+ }
43701
+ function selectionRowAvailability(event) {
43702
+ if (!isEventFull(event)) return "open";
43703
+ return canJoinEventWaitlistOnAnyMode(event) ? "waitlist" : "full";
43704
+ }
43705
+ //#endregion
43623
43706
  //#region ../blocks/src/system/runtime/nodes/event-registration/registrationEventAdapter.ts
43624
43707
  function toRegistrationEvent(event) {
43625
43708
  return {
@@ -43681,7 +43764,7 @@ function findPreSelectedEvent(input) {
43681
43764
  startsAt: occurrenceContext.startsAt,
43682
43765
  timeZone: occurrenceContext.timeZone
43683
43766
  }));
43684
- return input.scopedEvents.find((event) => eventMatchesOccurrenceId(event, occurrenceContext.id) || getBookingLocalDateKey(toScheduledBookingDateTime({
43767
+ return input.scopedEvents.find((event) => eventMatchesOccurrenceId(event, occurrenceContext.id)) ?? input.scopedEvents.find((event) => getBookingLocalDateKey(toScheduledBookingDateTime({
43685
43768
  startsAt: event.startsAt,
43686
43769
  timeZone: event.timeZone
43687
43770
  })) === contextDate) ?? null;
@@ -43692,6 +43775,181 @@ function resolveEventRequiresPayment(input) {
43692
43775
  if (!input.event) return false;
43693
43776
  return publicEventPricingType(input.event.pricing) === "paid";
43694
43777
  }
43778
+ const unsupportedEventRegistrationPageSurfaceSubjectSchema = z.object({
43779
+ kind: z.literal("unsupported"),
43780
+ reason: z.enum([
43781
+ "unsupportedSubject",
43782
+ "invalidAppointmentServiceId",
43783
+ "invalidEventSeriesId",
43784
+ "invalidEventSeriesBookingScope",
43785
+ "invalidEventOfferingId",
43786
+ "invalidEventOfferingBookingScope",
43787
+ "invalidEventOfferingCatalogue"
43788
+ ])
43789
+ });
43790
+ const eventRegistrationPageSurfaceSubjectSchema = z.unknown().transform((value, ctx) => {
43791
+ const unsupported = z.safeParse(unsupportedEventRegistrationPageSurfaceSubjectSchema, value);
43792
+ if (unsupported.success) return unsupported.data;
43793
+ const parsed = parsePageSurfaceSubject(value);
43794
+ if (parsed.ok) return parsed.value.kind === "appointmentService" ? {
43795
+ kind: "unsupported",
43796
+ reason: "unsupportedSubject"
43797
+ } : parsed.value;
43798
+ ctx.addIssue({
43799
+ code: z.ZodIssueCode.custom,
43800
+ message: `Invalid event page-surface subject (${parsed.error.kind})`
43801
+ });
43802
+ return z.NEVER;
43803
+ });
43804
+ function parseEventRegistrationPageSurfaceSubject(value) {
43805
+ const parsed = parsePageSurfaceSubject(value);
43806
+ if (!parsed.ok) return parsed;
43807
+ return parsed.value.kind === "appointmentService" ? err({
43808
+ kind: "unsupportedSubject",
43809
+ subjectKind: parsed.value.kind
43810
+ }) : ok$1(parsed.value);
43811
+ }
43812
+ function normalizeEventRegistrationPageSurfaceSubject(value) {
43813
+ const parsed = parseEventRegistrationPageSurfaceSubject(value);
43814
+ if (parsed.ok) return parsed.value;
43815
+ switch (parsed.error.kind) {
43816
+ case "notObject": return null;
43817
+ case "invalidAppointmentServiceId": return {
43818
+ kind: "unsupported",
43819
+ reason: "invalidAppointmentServiceId"
43820
+ };
43821
+ case "unsupportedSubject": return {
43822
+ kind: "unsupported",
43823
+ reason: "unsupportedSubject"
43824
+ };
43825
+ case "invalidEventSeriesId": return {
43826
+ kind: "unsupported",
43827
+ reason: "invalidEventSeriesId"
43828
+ };
43829
+ case "invalidEventSeriesBookingScope": return {
43830
+ kind: "unsupported",
43831
+ reason: "invalidEventSeriesBookingScope"
43832
+ };
43833
+ case "invalidEventOfferingId": return {
43834
+ kind: "unsupported",
43835
+ reason: "invalidEventOfferingId"
43836
+ };
43837
+ case "invalidEventOfferingBookingScope": return {
43838
+ kind: "unsupported",
43839
+ reason: "invalidEventOfferingBookingScope"
43840
+ };
43841
+ case "invalidEventOfferingCatalogue": return {
43842
+ kind: "unsupported",
43843
+ reason: "invalidEventOfferingCatalogue"
43844
+ };
43845
+ }
43846
+ }
43847
+ function resolveEventRegistrationScope(context) {
43848
+ const occurrenceSeriesId = context.occurrenceContext?.seriesId;
43849
+ if (occurrenceSeriesId) return {
43850
+ kind: "occurrenceSeries",
43851
+ seriesId: occurrenceSeriesId
43852
+ };
43853
+ const subject = context.subject;
43854
+ switch (subject?.kind) {
43855
+ case "eventSeries": return {
43856
+ kind: "pageSurfaceSeries",
43857
+ seriesId: subject.eventSeriesId
43858
+ };
43859
+ case "eventOffering": return {
43860
+ kind: "pageSurfaceOffering",
43861
+ offeringId: subject.eventOfferingId,
43862
+ seriesIds: subject.catalogueEventSeriesIds
43863
+ };
43864
+ case "unsupported": return {
43865
+ kind: "unsupportedPageSurfaceSubject",
43866
+ reason: subject.reason
43867
+ };
43868
+ case void 0: return { kind: "unscoped" };
43869
+ }
43870
+ }
43871
+ function resolveEventRegistrationScopedEvents(events, context) {
43872
+ const scope = resolveEventRegistrationScope(context);
43873
+ switch (scope.kind) {
43874
+ case "occurrenceSeries":
43875
+ case "pageSurfaceSeries": return events.filter((event) => event.seriesId === scope.seriesId);
43876
+ case "pageSurfaceOffering": {
43877
+ const seriesIds = new Set(scope.seriesIds);
43878
+ return events.filter((event) => seriesIds.has(event.seriesId));
43879
+ }
43880
+ case "unsupportedPageSurfaceSubject": return [];
43881
+ case "unscoped": return [...events];
43882
+ }
43883
+ }
43884
+ /** Keep dated detail/recovery targets, but only invite bookings for future choices. */
43885
+ function resolveEventRegistrationChoices(events, context, now) {
43886
+ const scoped = resolveEventRegistrationScopedEvents(events, context);
43887
+ const runs = groupPublicEventsByRun(scoped);
43888
+ if (context.occurrenceContext || context.subject?.kind === "eventSeries" && context.subject.bookingScope === "whole_series" || runs.length === 1 && scoped.every((event) => event.bookingScope === "whole_series")) return scoped;
43889
+ const eligibleRunIds = new Set(runs.filter((group) => resolveWholeSeriesChooserEligibility(group, now).kind === "eligible").map((group) => group.eventSeriesId));
43890
+ return scoped.filter((event) => event.bookingScope === "whole_series" ? eligibleRunIds.has(event.seriesId) : isUpcomingDateChoice(event, now));
43891
+ }
43892
+ /** A date a new booking can still choose: it hasn't started and its bookings haven't closed. */
43893
+ function isUpcomingDateChoice(event, now) {
43894
+ return Date.parse(event.startsAt) > now.getTime() && !hasEventBookingClosedEarly(event, now);
43895
+ }
43896
+ //#endregion
43897
+ //#region ../blocks/src/system/runtime/nodes/event-registration/registrationEntry.ts
43898
+ function decideRegistrationEntry(input) {
43899
+ const event = findPreSelectedEvent({
43900
+ scopedEvents: input.events,
43901
+ occurrenceContext: input.occurrenceContext
43902
+ });
43903
+ if (!input.occurrenceContext && !event) return {
43904
+ kind: "chooseEvent",
43905
+ choices: input.events
43906
+ };
43907
+ if (input.offer === "eventsAsGiven") return {
43908
+ kind: "pageDate",
43909
+ event,
43910
+ choices: input.events
43911
+ };
43912
+ if (!event) return {
43913
+ kind: "pageDate",
43914
+ event,
43915
+ choices: input.events
43916
+ };
43917
+ const moreDates = input.occurrenceContext ? addableDates(event, input) : [];
43918
+ const [first, ...rest] = moreDates;
43919
+ return first ? {
43920
+ kind: "pageDateAndMore",
43921
+ event,
43922
+ moreDates: [first, ...rest],
43923
+ choices: [event, ...moreDates]
43924
+ } : {
43925
+ kind: "pageDate",
43926
+ event,
43927
+ choices: [event]
43928
+ };
43929
+ }
43930
+ /**
43931
+ * The class's other dates a visitor could add to the page's date, as the
43932
+ * class's own page lists them, or none when the page's date books on its own:
43933
+ * a return to finish a booking, a date that can't be ticked, a class that
43934
+ * doesn't book several dates or has rooms, or no other date open to book.
43935
+ */
43936
+ function addableDates(pageDate, input) {
43937
+ if (input.arrival !== "none") return [];
43938
+ if (pageDate.registrationSubject.kind !== "occurrence") return [];
43939
+ if (selectionRowAvailability(pageDate) !== "open" || !isUpcomingDateChoice(pageDate, input.now)) return [];
43940
+ const others = input.events.filter((event) => event.selectionId !== pageDate.selectionId && event.seriesId === pageDate.seriesId && isUpcomingDateChoice(event, input.now));
43941
+ const mode = registrationSelectionMode({ events: [pageDate, ...others] });
43942
+ if (mode.kind !== "several" || mode.items !== "dates") return [];
43943
+ return others.some((event) => selectionRowAvailability(event) === "open") ? others : [];
43944
+ }
43945
+ /** Whether the route starts by choosing (and so Back and "Change dates" lead there). */
43946
+ function entryChoosesEvent(entry) {
43947
+ return entry.kind !== "pageDate";
43948
+ }
43949
+ /** The date this page is about, if it names one the events include. */
43950
+ function entryPageEvent(entry) {
43951
+ return entry.kind === "chooseEvent" ? null : entry.event;
43952
+ }
43695
43953
  //#endregion
43696
43954
  //#region ../blocks/src/system/runtime/nodes/event-registration/wizardSteps.ts
43697
43955
  function registrationRoute(input) {
@@ -43940,6 +44198,21 @@ Object.fromEntries(OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS.map((definition) =
43940
44198
  function isOfferingsPreviewSourceKey(value) {
43941
44199
  return typeof value === "string" && OFFERINGS_PREVIEW_SOURCE_KEYS.includes(value);
43942
44200
  }
44201
+ /** The groups a preview shows; an author can hide one. */
44202
+ function visibleOfferingsPreviewGroups(groups) {
44203
+ return groups.filter((group) => !group.hidden);
44204
+ }
44205
+ /**
44206
+ * The public event query a preview group's loader sends. Both whole-series
44207
+ * presets share one read, since the block shows them as a single run group.
44208
+ */
44209
+ function offeringsPreviewGroupQuery(source) {
44210
+ switch (source.kind) {
44211
+ case "eventPreset": return { eventPresets: source.preset };
44212
+ case "wholeSeries": return { eventPresets: WHOLE_SERIES_EVENT_PRESET_VALUES.join(",") };
44213
+ default: return assertNever(source);
44214
+ }
44215
+ }
43943
44216
  function sourceKeyForEventPreset(preset) {
43944
44217
  return `eventPreset:${preset}`;
43945
44218
  }
@@ -44074,7 +44347,7 @@ function resolveOfferingsPreviewGroupCta(input) {
44074
44347
  }
44075
44348
  function buildOfferingsPreviewRenderStates(input) {
44076
44349
  const now = input.now;
44077
- return input.groups.filter((group) => !group.hidden).map((group) => {
44350
+ return visibleOfferingsPreviewGroups(input.groups).map((group) => {
44078
44351
  const data = input.itemsBySourceKey.get(group.sourceKey);
44079
44352
  if (!data || data.kind === "failed") return {
44080
44353
  kind: "failed",
@@ -44426,120 +44699,6 @@ function bookingCardDisplay(source, scopedSourceEvents, display) {
44426
44699
  buttonText: source.buttonText?.trim() ?? ""
44427
44700
  };
44428
44701
  }
44429
- const unsupportedEventRegistrationPageSurfaceSubjectSchema = z.object({
44430
- kind: z.literal("unsupported"),
44431
- reason: z.enum([
44432
- "unsupportedSubject",
44433
- "invalidAppointmentServiceId",
44434
- "invalidEventSeriesId",
44435
- "invalidEventSeriesBookingScope",
44436
- "invalidEventOfferingId",
44437
- "invalidEventOfferingBookingScope",
44438
- "invalidEventOfferingCatalogue"
44439
- ])
44440
- });
44441
- const eventRegistrationPageSurfaceSubjectSchema = z.unknown().transform((value, ctx) => {
44442
- const unsupported = z.safeParse(unsupportedEventRegistrationPageSurfaceSubjectSchema, value);
44443
- if (unsupported.success) return unsupported.data;
44444
- const parsed = parsePageSurfaceSubject(value);
44445
- if (parsed.ok) return parsed.value.kind === "appointmentService" ? {
44446
- kind: "unsupported",
44447
- reason: "unsupportedSubject"
44448
- } : parsed.value;
44449
- ctx.addIssue({
44450
- code: z.ZodIssueCode.custom,
44451
- message: `Invalid event page-surface subject (${parsed.error.kind})`
44452
- });
44453
- return z.NEVER;
44454
- });
44455
- function parseEventRegistrationPageSurfaceSubject(value) {
44456
- const parsed = parsePageSurfaceSubject(value);
44457
- if (!parsed.ok) return parsed;
44458
- return parsed.value.kind === "appointmentService" ? err({
44459
- kind: "unsupportedSubject",
44460
- subjectKind: parsed.value.kind
44461
- }) : ok$1(parsed.value);
44462
- }
44463
- function normalizeEventRegistrationPageSurfaceSubject(value) {
44464
- const parsed = parseEventRegistrationPageSurfaceSubject(value);
44465
- if (parsed.ok) return parsed.value;
44466
- switch (parsed.error.kind) {
44467
- case "notObject": return null;
44468
- case "invalidAppointmentServiceId": return {
44469
- kind: "unsupported",
44470
- reason: "invalidAppointmentServiceId"
44471
- };
44472
- case "unsupportedSubject": return {
44473
- kind: "unsupported",
44474
- reason: "unsupportedSubject"
44475
- };
44476
- case "invalidEventSeriesId": return {
44477
- kind: "unsupported",
44478
- reason: "invalidEventSeriesId"
44479
- };
44480
- case "invalidEventSeriesBookingScope": return {
44481
- kind: "unsupported",
44482
- reason: "invalidEventSeriesBookingScope"
44483
- };
44484
- case "invalidEventOfferingId": return {
44485
- kind: "unsupported",
44486
- reason: "invalidEventOfferingId"
44487
- };
44488
- case "invalidEventOfferingBookingScope": return {
44489
- kind: "unsupported",
44490
- reason: "invalidEventOfferingBookingScope"
44491
- };
44492
- case "invalidEventOfferingCatalogue": return {
44493
- kind: "unsupported",
44494
- reason: "invalidEventOfferingCatalogue"
44495
- };
44496
- }
44497
- }
44498
- function resolveEventRegistrationScope(context) {
44499
- const occurrenceSeriesId = context.occurrenceContext?.seriesId;
44500
- if (occurrenceSeriesId) return {
44501
- kind: "occurrenceSeries",
44502
- seriesId: occurrenceSeriesId
44503
- };
44504
- const subject = context.subject;
44505
- switch (subject?.kind) {
44506
- case "eventSeries": return {
44507
- kind: "pageSurfaceSeries",
44508
- seriesId: subject.eventSeriesId
44509
- };
44510
- case "eventOffering": return {
44511
- kind: "pageSurfaceOffering",
44512
- offeringId: subject.eventOfferingId,
44513
- seriesIds: subject.catalogueEventSeriesIds
44514
- };
44515
- case "unsupported": return {
44516
- kind: "unsupportedPageSurfaceSubject",
44517
- reason: subject.reason
44518
- };
44519
- case void 0: return { kind: "unscoped" };
44520
- }
44521
- }
44522
- function resolveEventRegistrationScopedEvents(events, context) {
44523
- const scope = resolveEventRegistrationScope(context);
44524
- switch (scope.kind) {
44525
- case "occurrenceSeries":
44526
- case "pageSurfaceSeries": return events.filter((event) => event.seriesId === scope.seriesId);
44527
- case "pageSurfaceOffering": {
44528
- const seriesIds = new Set(scope.seriesIds);
44529
- return events.filter((event) => seriesIds.has(event.seriesId));
44530
- }
44531
- case "unsupportedPageSurfaceSubject": return [];
44532
- case "unscoped": return [...events];
44533
- }
44534
- }
44535
- /** Keep dated detail/recovery targets, but only invite bookings for future choices. */
44536
- function resolveEventRegistrationChoices(events, context, now) {
44537
- const scoped = resolveEventRegistrationScopedEvents(events, context);
44538
- const runs = groupPublicEventsByRun(scoped);
44539
- if (context.occurrenceContext || context.subject?.kind === "eventSeries" && context.subject.bookingScope === "whole_series" || runs.length === 1 && scoped.every((event) => event.bookingScope === "whole_series")) return scoped;
44540
- const eligibleRunIds = new Set(runs.filter((group) => resolveWholeSeriesChooserEligibility(group, now).kind === "eligible").map((group) => group.eventSeriesId));
44541
- return scoped.filter((event) => event.bookingScope === "whole_series" ? eligibleRunIds.has(event.seriesId) : Date.parse(event.startsAt) > now.getTime() && !hasEventBookingClosedEarly(event, now));
44542
- }
44543
44702
  //#endregion
44544
44703
  //#region ../blocks/src/system/runtime/nodes/shared/contract-schemas.ts
44545
44704
  const bookingNowSchema = z.string().datetime({ offset: true }).transform(readRuntimeNow);
@@ -44754,20 +44913,23 @@ function buildEventRegistrationShellStepLabels(source, scopedSourceEvents) {
44754
44913
  }
44755
44914
  const scopedEvents = toScopedEventRegistrationEvents(scopedSourceEvents);
44756
44915
  if (scopedEvents.length === 0) return EVENT_REGISTRATION_GENERIC_SHELL_STEP_LABELS;
44757
- const preSelectedEvent = findPreSelectedEvent({
44758
- scopedEvents,
44759
- occurrenceContext: source.occurrenceContext
44916
+ const entry = decideRegistrationEntry({
44917
+ events: scopedEvents,
44918
+ occurrenceContext: source.occurrenceContext,
44919
+ offer: "addMoreDates",
44920
+ arrival: "none",
44921
+ now: new Date(source.now)
44760
44922
  });
44761
- const hasPreSelectedContext = Boolean(source.occurrenceContext || preSelectedEvent);
44762
- const needsPaymentStep = hasPreSelectedContext && preSelectedEvent ? resolveEventRequiresPayment({
44923
+ const pageEvent = entryPageEvent(entry);
44924
+ const needsPaymentStep = pageEvent ? resolveEventRequiresPayment({
44763
44925
  eligibility: null,
44764
44926
  selectedTicketType: null,
44765
- event: preSelectedEvent
44927
+ event: pageEvent
44766
44928
  }) : false;
44767
44929
  return shellStepLabels(registrationRoute({
44768
- chooseEvent: !hasPreSelectedContext,
44930
+ chooseEvent: entryChoosesEvent(entry),
44769
44931
  payment: needsPaymentStep ? "optionsAndPayment" : "none"
44770
- }), registrationStepLabelContext(scopedEvents, preSelectedEvent));
44932
+ }), registrationStepLabelContext(entry.choices, pageEvent));
44771
44933
  }
44772
44934
  function scopeEventRegistrationSourceEvents(source, eventSource) {
44773
44935
  return resolveEventRegistrationScopedEvents(eventSource.kind === "loaded" ? eventSource.events : [], {
@@ -45523,6 +45685,188 @@ const eventSpotlightBlockDefinition = {
45523
45685
  } }
45524
45686
  };
45525
45687
  //#endregion
45688
+ //#region ../blocks/src/system/blocks/events/shared/calendarWindow.ts
45689
+ function resolveCalendarReadProfile(content) {
45690
+ return resolveEventCalendarReadPlan(content).readProfile;
45691
+ }
45692
+ const pageFields = {
45693
+ scope: z.object({
45694
+ key: z.string(),
45695
+ timeZone: z.string().transform(toBookingTimeZone)
45696
+ }),
45697
+ window: calendarMonthWindowSchema,
45698
+ initialToday: z.object({
45699
+ year: z.number().int(),
45700
+ month: z.number().int().min(1).max(12),
45701
+ day: z.number().int().min(1).max(31)
45702
+ }),
45703
+ events: z.array(publicEventSchema)
45704
+ };
45705
+ const calendarWindowPageSchema = z.discriminatedUnion("kind", [z.object({
45706
+ ...pageFields,
45707
+ kind: z.literal("complete")
45708
+ }), z.object({
45709
+ ...pageFields,
45710
+ kind: z.literal("partial"),
45711
+ nextCursor: calendarSourceCursorSchema
45712
+ })]);
45713
+ const eventPageSizeValues = [
45714
+ 1,
45715
+ 2,
45716
+ 3,
45717
+ 4,
45718
+ 5,
45719
+ 6,
45720
+ 10,
45721
+ 12,
45722
+ 20,
45723
+ 24,
45724
+ 30,
45725
+ 100
45726
+ ];
45727
+ const eventPageSizeSchema = z.union([
45728
+ z.literal(1),
45729
+ z.literal(2),
45730
+ z.literal(3),
45731
+ z.literal(4),
45732
+ z.literal(5),
45733
+ z.literal(6),
45734
+ z.literal(10),
45735
+ z.literal(12),
45736
+ z.literal(20),
45737
+ z.literal(24),
45738
+ z.literal(30),
45739
+ z.literal(100)
45740
+ ]);
45741
+ const eventPageSizeSet = new Set(eventPageSizeValues);
45742
+ function resolveEventPageSize(value, fallback = 12) {
45743
+ const candidate = typeof value === "number" ? value : typeof value === "string" && value.trim() !== "" ? Number(value.trim()) : null;
45744
+ return candidate != null && Number.isInteger(candidate) && eventPageSizeSet.has(candidate) ? candidate : fallback;
45745
+ }
45746
+ function resolveEventCalendarListPageSize(input) {
45747
+ return resolveEventPageSize(input.eventsPerPage);
45748
+ }
45749
+ const eventListPaginationActionSchema = z.discriminatedUnion("kind", [
45750
+ z.object({ kind: z.literal("none") }),
45751
+ z.object({
45752
+ kind: z.literal("loadMore"),
45753
+ label: z.string()
45754
+ }),
45755
+ z.object({
45756
+ kind: z.literal("seeAllLink"),
45757
+ label: z.string(),
45758
+ href: z.string()
45759
+ })
45760
+ ]);
45761
+ function resolveEventListPaginationAction(input) {
45762
+ if (input.paginationMode === "none") return { kind: "none" };
45763
+ const label = input.loadMoreText?.trim() || input.defaultLabel || "Load more events";
45764
+ const href = input.seeAllUrl?.trim();
45765
+ if (input.paginationMode === "seeAllLink" && href) return {
45766
+ kind: "seeAllLink",
45767
+ label,
45768
+ href
45769
+ };
45770
+ return {
45771
+ kind: "loadMore",
45772
+ label
45773
+ };
45774
+ }
45775
+ //#endregion
45776
+ //#region ../blocks/src/system/blocks/events/eventCalendarDataLoaders.ts
45777
+ /** The section's event scope comes from resolveEventScopeRead, the same owner readiness uses. */
45778
+ const eventScopeLoaderParams = Object.fromEntries(eventScopeQueryKeys.map((key) => [key, { $bind: {
45779
+ from: "content",
45780
+ transforms: [{
45781
+ id: "events.scopeParam",
45782
+ options: { key }
45783
+ }]
45784
+ } }]));
45785
+ const scopeParams = {
45786
+ siteId: { $bind: { from: "$root.siteId" } },
45787
+ stage: { $bind: {
45788
+ from: "$root.previewStage",
45789
+ fallback: "published"
45790
+ } },
45791
+ ...Object.fromEntries(eventScopeQueryKeys.map((key) => [key, { $bind: {
45792
+ from: "content",
45793
+ transforms: [{
45794
+ id: "events.calendarReadParam",
45795
+ options: { key }
45796
+ }]
45797
+ } }]))
45798
+ };
45799
+ /** Each mode reads only what it paints first; see resolveEventCalendarReadPlan. */
45800
+ const eventCalendarDataLoaders = {
45801
+ schedule: {
45802
+ endpoint: "listPublicRecurringSchedule",
45803
+ when: { $bind: {
45804
+ from: "content",
45805
+ transforms: [{
45806
+ id: "events.calendarReadEnabled",
45807
+ options: { job: "schedule" }
45808
+ }]
45809
+ } },
45810
+ params: {
45811
+ ...scopeParams,
45812
+ limit: "100",
45813
+ detailLevel: "listing",
45814
+ readProfile: "compact-list"
45815
+ },
45816
+ mode: "server"
45817
+ },
45818
+ events: {
45819
+ endpoint: "listPublicEvents",
45820
+ when: { $bind: {
45821
+ from: "content",
45822
+ transforms: [{
45823
+ id: "events.calendarReadEnabled",
45824
+ options: { job: "list" }
45825
+ }]
45826
+ } },
45827
+ params: {
45828
+ ...scopeParams,
45829
+ limit: 100,
45830
+ detailLevel: "listing",
45831
+ readProfile: "listing-card",
45832
+ from: { $bind: {
45833
+ from: "$root",
45834
+ transforms: [{
45835
+ id: "events.calendarListWindow",
45836
+ options: { key: "from" }
45837
+ }]
45838
+ } },
45839
+ to: { $bind: {
45840
+ from: "$root",
45841
+ transforms: [{
45842
+ id: "events.calendarListWindow",
45843
+ options: { key: "to" }
45844
+ }]
45845
+ } }
45846
+ },
45847
+ mode: "server"
45848
+ },
45849
+ calendarWindow: {
45850
+ endpoint: "listPublicEventCalendarWindow",
45851
+ when: { $bind: {
45852
+ from: "content",
45853
+ transforms: [{
45854
+ id: "events.calendarReadEnabled",
45855
+ options: { job: "calendar" }
45856
+ }]
45857
+ } },
45858
+ params: {
45859
+ ...scopeParams,
45860
+ limit: 100,
45861
+ readProfile: { $bind: {
45862
+ from: "content",
45863
+ transforms: [{ id: "events.calendarReadProfile" }]
45864
+ } }
45865
+ },
45866
+ mode: "server"
45867
+ }
45868
+ };
45869
+ //#endregion
45526
45870
  //#region ../blocks/src/system/runtime/nodes/events/shared/listingLayout.ts
45527
45871
  /**
45528
45872
  * Layout classes for event listing containers and cards. Presentation
@@ -47547,6 +47891,10 @@ const partRenderers = {
47547
47891
  }),
47548
47892
  "date-stamp": (props) => CardListLeadDate(props)
47549
47893
  };
47894
+ /** Each link says it opens a new tab from its own target, never from another link on the card. */
47895
+ function opensNewTab(link) {
47896
+ return link.target === "_blank";
47897
+ }
47550
47898
  /** Title and photo share the same destination and external-link behavior. */
47551
47899
  function cardListItemLink(item) {
47552
47900
  return item.titleLink ?? (item.href ? { href: item.href } : null);
@@ -47565,7 +47913,7 @@ function CardListTitle({ item, presentation, Title = "h3" }) {
47565
47913
  ...link,
47566
47914
  children: /* @__PURE__ */ jsx(LinkedLabel, {
47567
47915
  label: item.title,
47568
- newTabHint: item.newTabHint
47916
+ newTabHint: opensNewTab(link)
47569
47917
  })
47570
47918
  }) : item.title
47571
47919
  }),
@@ -47593,7 +47941,7 @@ function CardListMedia({ item, presentation }) {
47593
47941
  children: link ? /* @__PURE__ */ jsx("a", {
47594
47942
  ...link,
47595
47943
  className: "rb-block rb-h-full",
47596
- "aria-label": `${item.title}${item.newTabHint ? " (opens in a new tab)" : ""}`,
47944
+ "aria-label": `${item.title}${opensNewTab(link) ? " (opens in a new tab)" : ""}`,
47597
47945
  children: photo
47598
47946
  }) : photo
47599
47947
  });
@@ -47635,9 +47983,9 @@ function CardListAction({ item, presentation }) {
47635
47983
  className: "rb-item-text-link",
47636
47984
  children: /* @__PURE__ */ jsx(LinkedLabel, {
47637
47985
  label: action.label,
47638
- newTabHint: item.newTabHint
47986
+ newTabHint: action.external
47639
47987
  })
47640
- }) : item.newTabHint ? /* @__PURE__ */ jsx(ThemedAuthoredButton, {
47988
+ }) : action.external ? /* @__PURE__ */ jsx(ThemedAuthoredButton, {
47641
47989
  ...link,
47642
47990
  variant: presentation.buttonVariant ?? "primary",
47643
47991
  size: presentation.actionSize ?? "sm",
@@ -49968,7 +50316,7 @@ const recurringScheduleBlockDefinition = {
49968
50316
  } },
49969
50317
  detailLevel: "listing",
49970
50318
  readProfile: "compact-list",
49971
- ...eventWeekReadScope
50319
+ ...recurringScheduleRead().query
49972
50320
  },
49973
50321
  mode: "server"
49974
50322
  } }
@@ -50297,12 +50645,6 @@ function matchesGroup(group, event) {
50297
50645
  }
50298
50646
  //#endregion
50299
50647
  //#region ../blocks/src/system/blocks/offerings-preview/index.ts
50300
- /**
50301
- * The whole-series presets, as the CSV `listPublicEvents` expects. Both
50302
- * whole-series presets share one loader: the block renders them as a single
50303
- * run group.
50304
- */
50305
- const WHOLE_SERIES_EVENT_PRESETS_PARAM = WHOLE_SERIES_EVENT_PRESET_VALUES.join(",");
50306
50648
  const publicRouteCandidatesSchema = z.object({ routes: z.array(z.object({
50307
50649
  entityId: z.string(),
50308
50650
  path: z.string(),
@@ -50457,7 +50799,10 @@ const offeringsPreviewManifest = createBlockManifest({
50457
50799
  });
50458
50800
  const optionalPublicEventsArraySchema = publicEventsArraySchema.optional();
50459
50801
  const offeringsPreviewEventDataSchemas = Object.fromEntries(OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS.map((definition) => [definition.dataKey, optionalPublicEventsArraySchema]));
50460
- const offeringsPreviewEventDataLoaders = Object.fromEntries(OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS.map((definition) => [definition.dataKey, eventPresetLoader(definition.preset)]));
50802
+ const offeringsPreviewEventDataLoaders = Object.fromEntries(OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS.map((definition) => [definition.dataKey, eventPresetLoader(offeringsPreviewGroupQuery({
50803
+ kind: "eventPreset",
50804
+ preset: definition.preset
50805
+ }).eventPresets)]));
50461
50806
  const offeringsPreviewBlockDefinition = {
50462
50807
  manifest: offeringsPreviewManifest,
50463
50808
  contentNormalizer: {
@@ -50537,7 +50882,7 @@ const offeringsPreviewBlockDefinition = {
50537
50882
  * dates, and each card arrives with the run's complete schedule.
50538
50883
  */
50539
50884
  function wholeSeriesRunLoader() {
50540
- return eventPresetLoader(WHOLE_SERIES_EVENT_PRESETS_PARAM, { readIntent: "runs" });
50885
+ return eventPresetLoader(offeringsPreviewGroupQuery({ kind: "wholeSeries" }).eventPresets, { readIntent: "runs" });
50541
50886
  }
50542
50887
  function eventPresetLoader(eventPresets, extraParams = {}) {
50543
50888
  return {
@@ -52686,7 +53031,6 @@ const shopSourceSchema = z.object({
52686
53031
  membershipsHeading: z.string().optional(),
52687
53032
  buyButtonText: z.string().optional(),
52688
53033
  addButtonText: z.string().optional(),
52689
- passPurchaseMode: z.enum(["add_to_cart", "buy_now"]).optional(),
52690
53034
  subscribeButtonText: z.string().optional(),
52691
53035
  emptyStateText: z.string().optional(),
52692
53036
  checkoutButtonText: z.string().optional(),
@@ -52830,7 +53174,6 @@ const passesMembershipsHydrationSchema = z.object({
52830
53174
  presentation: z.object(cardListPresentationSchemaShape).optional(),
52831
53175
  featured: z.string().optional(),
52832
53176
  memberships: z.array(publicMembershipProductSchema),
52833
- passPurchaseMode: z.enum(["add_to_cart", "buy_now"]),
52834
53177
  buttonVariant: blockButtonRoleSchema,
52835
53178
  siteTerms: blockSiteTermsSchema.optional(),
52836
53179
  demoEmailSuppressed: z.boolean().optional()
@@ -52895,7 +53238,6 @@ const shopBlockRuntime = defineProgressiveBlockRuntime({
52895
53238
  render: createZodCodec(passesMembershipsRenderSchema)
52896
53239
  },
52897
53240
  buildRender: (source) => {
52898
- const passPurchaseMode = source.passPurchaseMode ?? "add_to_cart";
52899
53241
  const subscribeButtonText = source.subscribeButtonText ?? "Subscribe";
52900
53242
  const products = decideShopDisplayedCatalogue(source);
52901
53243
  const dateContext = source.dateContext ?? resolveDateRuntimeContext(void 0);
@@ -52908,7 +53250,7 @@ const shopBlockRuntime = defineProgressiveBlockRuntime({
52908
53250
  emptyMessage: source.emptyStateText,
52909
53251
  passesHeading: source.passesHeading,
52910
53252
  membershipsHeading: source.membershipsHeading,
52911
- passActionLabel: resolvePassBuyButtonText(source.buyButtonText, passPurchaseMode),
53253
+ passActionLabel: resolvePassBuyButtonText(source.buyButtonText),
52912
53254
  membershipActionLabel: subscribeButtonText,
52913
53255
  passes: products.passes,
52914
53256
  memberships: products.memberships,
@@ -52924,7 +53266,6 @@ const shopBlockRuntime = defineProgressiveBlockRuntime({
52924
53266
  timeZone: dateContext.timeZone
52925
53267
  },
52926
53268
  memberships: products.memberships,
52927
- passPurchaseMode,
52928
53269
  buttonVariant: source.buttonVariant ?? "primary",
52929
53270
  siteTerms: source.siteTerms,
52930
53271
  demoEmailSuppressed: source.demoEmailSuppressed
@@ -53110,9 +53451,9 @@ function buildCheckoutInteractiveIslandProps(props) {
53110
53451
  }
53111
53452
  });
53112
53453
  }
53113
- function resolvePassBuyButtonText(buyButtonText, passPurchaseMode) {
53114
- if (buyButtonText && buyButtonText.trim().length > 0) return buyButtonText;
53115
- return passPurchaseMode === "add_to_cart" ? "Add to cart" : "Buy Now";
53454
+ const DEFAULT_PASS_BUY_BUTTON_TEXT = "Buy pass";
53455
+ function resolvePassBuyButtonText(buyButtonText) {
53456
+ return buyButtonText?.trim() ? buyButtonText : DEFAULT_PASS_BUY_BUTTON_TEXT;
53116
53457
  }
53117
53458
  function shopCardListPresentation(source) {
53118
53459
  return cardListPresentationKeys.reduce((presentation, key) => ({
@@ -53305,26 +53646,9 @@ const shopBlockDefinition = {
53305
53646
  description: "The text on the button to buy a pass.",
53306
53647
  required: false,
53307
53648
  multiline: false,
53308
- defaultValue: "Add to cart",
53649
+ defaultValue: DEFAULT_PASS_BUY_BUTTON_TEXT,
53309
53650
  maxLength: 40
53310
53651
  },
53311
- {
53312
- id: "passPurchaseMode",
53313
- type: "select",
53314
- label: "When someone buys a pass",
53315
- description: "Add the pass to their cart, or take them straight to checkout.",
53316
- required: false,
53317
- multiple: false,
53318
- defaultValue: "add_to_cart",
53319
- options: [{
53320
- value: "add_to_cart",
53321
- label: "Add to cart"
53322
- }, {
53323
- value: "buy_now",
53324
- label: "Buy now"
53325
- }],
53326
- ui: { intent: "behavior" }
53327
- },
53328
53652
  {
53329
53653
  id: "subscribeButtonText",
53330
53654
  type: "text",
@@ -53426,11 +53750,7 @@ const shopBlockDefinition = {
53426
53750
  } },
53427
53751
  buyButtonText: { $bind: {
53428
53752
  from: "content.buyButtonText",
53429
- fallback: "Add to cart"
53430
- } },
53431
- passPurchaseMode: { $bind: {
53432
- from: "content.passPurchaseMode",
53433
- fallback: "add_to_cart"
53753
+ fallback: DEFAULT_PASS_BUY_BUTTON_TEXT
53434
53754
  } },
53435
53755
  subscribeButtonText: { $bind: {
53436
53756
  from: "content.subscribeButtonText",
@@ -56706,7 +57026,7 @@ function ensureSystemBlockDefinitionsRegistered() {
56706
57026
  //#region ../blocks/src/system/registry.ts
56707
57027
  function normalizeBlockContent(definition, content) {
56708
57028
  const normalizer = definition?.contentNormalizer;
56709
- if (!normalizer || !isRecord$5(content)) return content;
57029
+ if (!normalizer || !isRecord$13(content)) return content;
56710
57030
  const normalized = normalizer.normalize(content);
56711
57031
  const owned = new Set(normalizer.fieldIds);
56712
57032
  return {
@@ -56726,6 +57046,10 @@ function getBlockDefinition(name) {
56726
57046
  ensureDefaults();
56727
57047
  return blockStore.get(name);
56728
57048
  }
57049
+ function hasBlockDefinition(name) {
57050
+ ensureDefaults();
57051
+ return blockStore.has(name);
57052
+ }
56729
57053
  function listBlockDefinitions() {
56730
57054
  ensureDefaults();
56731
57055
  return Array.from(blockStore.values());
@@ -56745,4 +57069,4 @@ function listBlockDescriptors() {
56745
57069
  }));
56746
57070
  }
56747
57071
  //#endregion
56748
- export { resolveCardListSchedule as $, componentRuntimeRulesForTheme as $a, PUBLIC_DOWNLOAD_MEDIA_TYPES as $i, composeHeaderSectionWrapperClassName as $n, validateManifestLookField as $o, singleButtonFragment as $r, getBookingLocalDateKey as $s, eventOnlinePlace as $t, membershipClassesLabel as A, headerRootIsTransparent as Aa, el as Ai, isOrdinaryPublicEvent as An, isDecorativeTransitionIntent as Ao, Grid as Ar, isRecord$6 as As, groupOfferingRunsByCourse as At, eventListingBlockDefinition as B, styleSectionBackgroundForColour as Ba, FileArchiveIcon as Bi, isBookableEvent as Bn, resolveSectionBackground as Bo, formatEventDepositNote as Br, parseMailingListPlacementTargeting as Bs, ThemedButtonLink as Bt, buildCartInteractiveIslandProps as C, selectItemSurfacePresentation as Ca, lookCarouselRegionTransform as Ci, groupEventsByDate as Cn, sectionShapeForGround as Co, defineProgressiveBlockRuntime as Cr, linkSchema as Cs, normalizeEventRegistrationPageSurfaceSubject as Ct, buildShopInteractiveIslandProps as D, readOpeningToneProjection as Da, asPartialObject as Di, hasCancelledRegistrationDate as Dn, boundaryOptions as Do, lookListPresentationSchemaShape as Dr, loadedReadinessFact as Ds, OFFERINGS_PREVIEW_DEFAULT_FAILED_MESSAGE as Dt, buildProductListInteractiveIslandProps as E, effectiveHeaderNavLinkStyle as Ea, lookSkinSlotTransform as Ei, cancelledDateCopy as En, boundaryOptionForTransitionIntent as Eo, listLookSlot as Er, hiddenFromVisitors as Es, OFFERINGS_PREVIEW_DEFAULT_EMPTY_MESSAGE as Et, offeringsCatalogueShape as F, automaticArrangementLook as Fa, ArrowDownIcon as Fi, planWholeSeriesRunSelection as Fn, anglePolygonCss as Fo, resolveDeclaredBlockDesignCapability as Fr, resolveWholeSeriesBookingPhase as Fs, resolveOfferingsPreviewGroupCta as Ft, eventCollectionDisplaySchemaShape as G, resolvePublishedLook as Ga, PlusIcon as Gi, getEventAvailabilityStatus as Gn, appearancePresets as Go, BACKGROUND_POSITION_PRESET_VALUES as Gr, formatDateRange as Gs, eventListWeekDays as Gt, buildEventCollectionDisplay as H, readStoredMode as Ha, FileSpreadsheetIcon as Hi, formatEventRemainingPlaces as Hn, defaultHeroImageSurfaceTreatment as Ho, formatEventPriceAmount as Hr, isCanonicalRichTextDoc as Hs, getIconComponent as Ht, eventCalendarBlockDefinition as I, compileArrangementLookRuntime as Ia, ChevronDownIcon as Ii, registrationDataForEventSelection as In, transitionCatalogueEntries as Io, classPricesCopySchema as Ir, resolveWholeSeriesPaymentDates as Is, resolveOfferingsPreviewGroups as It, catalogueEventCardProps as J, buildInitialPolicyPageDesignIntent as Ja, parseInlineTextFromUnknown as Ji, FEATURE_CARD_ICON_TREATMENTS as Jn, DEFAULT_MEDIA_FIELD_KINDS as Jo, headingFragment as Jr, formatBookingCompactEnglishTime as Js, weekColumnDays as Jt, eventCollectionHydrationSchema as K, applyBlockContentVariantPolicy as Ka, inlineTextToPlainText as Ki, isEventFull as Kn, NodeSchema as Ko, getAnchorClasses as Kr, formatDateTimeRange as Ks, eventWeekGroupingContext as Kt, buildEventCalendarInteractiveIslandProps as L, getCompatibleBlockAppearancePresets as La, CircleMinusIcon as Li, resolveSelectionBookingClosedDetail as Ln, applyLookPhotoTreatment as Lo, classPricesDataSchema as Lr, buildMailingListSignupBlockSourceRef as Ls, resolveOfferingsRenderInput as Lt, offeringsPreviewBlockDefinition as M, arrangementAppearancePresets as Ma, buildGeneratedBlockIconRenderAssetLookupFromUnknown as Mi, planOrdinarySeriesSelection as Mn, softBoundaryOption as Mo, heroMorePhotoCount as Mr, CANCELLED_SESSION_STATUS as Ms, offeringRunLifecycle as Mt, publicRouteCandidatesSchema as N, arrangementLookHooks as Na, parseBlockIconValue as Ni, planWholeSeriesParentBooking as Nn, spaciousBoundaryOption as No, morePhotosField as Nr, nextLiveRunSessionStartMs as Ns, offeringsListingFor as Nt, shopProductPresentation as O, heroPhotoPaintsGround as Oa, createTransformRegistry as Oi, eventOccurrenceContext as On, boundaryRuntimeMetricsForDecorativeTransition as Oo, resolvedItemSurfaceProps as Or, pageTemplateFromEntry as Os, OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS as Ot, buildOfferingsCatalogueListing as P, arrangementStyleAvailability as Pa, resolveBlockIconRenderValue as Pi, planWholeSeriesParentSelection as Pn, transitionIntentForTreatment as Po, blockDesignCapabilityMapFromDefinitions as Pr, orderedLiveRunSessions as Ps, readOfferingsGrouping as Pt, cardListPresentationSchemaShape as Q, componentRuntimeRulesForSiteStyle as Qa, parseFieldDefinitions as Qi, siteHeaderManifest as Qn, fieldSchema as Qo, blogFeaturedPostFragment as Qr, formatLocalScheduleDate as Qs, browserReadAuthoritySchema as Qt, buildEventCalendarListingDisplay as R, resolveArrangementLookForBlock as Ra, CirclePlusIcon as Ri, selectionRepresentativeEvent as Rn, deriveSectionGround as Ro, resolveClassPriceItems as Rr, parseMailingListRuntimeContext as Rs, ThemedAuthoredButton as Rt, shopBlockDefinition as S, resolveLookSurfacePresentation as Sa, defineFragment as Si, formatTime as Sn, pageDesignDecisionsV2Schema as So, defineClientOwnedBlockRuntime as Sr, RESOLVED_INTERNAL_LINK_ENTITY_TYPES as Ss, previewStageSchema as St, buildProductDetailInteractiveIslandProps as T, authoredHeaderLinkForeground as Ta, lookQuoteLimitTransform as Ti, bookingPageKindSchema as Tn, sectionShapeHook as To, listLookControl as Tr, admitReadinessFacts as Ts, OFFERINGS_PREVIEW_DEFAULT_BUTTON_TEXT as Tt, buildEventCollectionHydration as U, resolveEffectiveArrangement as Ua, FileTextIcon as Ui, formatTotalCapacity as Un, stripStaleTransitionStyleGroup as Uo, formatEventPriceDisplay as Ur, EVENT_ADDRESS_AFTER_BOOKING_LABEL as Us, SpinnerNode as Ut, buildEventListingInteractiveIslandProps as V, arrangementManifestFromVariants as Va, FileAudioIcon as Vi, canJoinEventWaitlistOnAnyMode as Vn, sectionSurfaceBase as Vo, formatEventPrice as Vr, sameMailingListPlacementTargeting as Vs, ThemedDownloadLink as Vt, buildEventCollectionListingDisplay as W, resolveModeArrangement as Wa, MinusIcon as Wi, getEventAvailability as Wn, themeV2CompilerOwnedFieldNames as Wo, formatEventStartingPrice as Wr, formatDate$2 as Ws, buildEventListWeek as Wt, CardListContentPart as X, filterLayoutProfilesForPolicy as Xa, normalizeSelectSource as Xi, shouldReserveFeatureCardIconZone as Xn, blockSectionDeclarationShape as Xo, faqAccordionFragment as Xr, addLocalScheduleDays as Xs, formatBookingSchedulePresentation as Xt, listingEventCardProps as Y, deriveSiteStyleBlockPolicy as Ya, plainTextToInlineText as Yi, resolveFeatureCardGeneratedIconSizePx as Yn, blockCategoryEnum as Yo, cardFragment as Yr, toScheduledBookingDateTime as Ys, resolveRuntimeEventDestination as Yt, CardListLeadDate as Z, filterLookIdsForPolicy as Za, parseFieldDefinition as Zi, siteFooterManifest as Zn, builtInBlockKindsSchema as Zo, faqHeadingFragment as Zr, compareLocalScheduleDates as Zs, bookingPresentation as Zt, buildGiftingInteractiveIslandProps as _, parseThemeButtonVariantId as _a, unsafeAsEventCategoryId$1 as _c, resolveSurfaceForegroundStyles as _i, formatEventHourLabel as _n, generateInteractiveChildInheritanceCSS as _o, buildFormInteractiveIslandProps as _r, blockBookingPaymentTermsSchema as _s, getContainerClass as _t, LOCATION_MAP_LOADER_KEYS as a, eventReadinessLoaderKey as aa, toBookingTimeZone as ac, heroCtaRowFragment as ai, closedDatesCopy as an, stripCompiledRuntimeStyleFields as ao, teamMemberCardBiography as ar, getLocalDateKey as as, computeMediaTransformStyle as at, productDetailBlockDefinition as b, resolveHeaderRootForeground as ba, TokenResolver as bc, isSemanticSpacing as bi, formatEventTimeRange as bn, resolvePageDesignBlockLookChoice as bo, defineInteractiveIslandMetaKeys as br, beforeBookingQuestionsPresentationSchema as bs, resolveEventRegistrationEventSource as bt, normalizeLocationMapSource as c, eventReadinessResultSchema as ca, isPublicEventPricingOptionDisplayable as cc, heroCopyFragment as ci, buildCalendarViewport as cn, getGradientPreset as co, mediaTransforms as cr, formatDateKey as cs, resolveImageUrlWithContext as ct, newsletterSignupBlockDefinition as d, eventScopeQuery as da, publicEventPricingType as dc, normalizeBoxStylesBorder as di, eventLocalDateKey as dn, generateFooterCss as do, layoutTransforms as dr, getWeekCalendarDayTuple as ds, systemCustomizeFacetDefinitionsForBlock as dt, augmentManifest as ea, getLocalScheduleDate as ec, formEmbedFragment as ei, eventPlaceName as en, designRuntimeRulesForSiteStyle as eo, markEditableSurfaceForwarding as er, isAcceptedRepeaterGridSpan as es, selectCardListPresentation as et, sanitizeNewsletterSignupPublicContent as f, eventScopeQueryKeys as fa, resolveExactOrFreePriceDisplay as fc, resolveCardRoleForBoxStyles as fi, formatCalendarTitle as fn, buildTextContrastShadow as fo, staticHeaderChromeRuntime as fr, getWeekCalendarDays as fs, buildResolveImageUrlContext as ft, giftingBlockDefinition as g, resolveEventCalendarReadPlan as ga, unsafeAsContentEntryId as gc, resolveSectionSurfaceForeground as gi, formatEventDateParts as gn, resolveEffectPaint as go, formBlockDefinition as gr, publicEventsArraySchema as gs, getCardOrientation as gt, newsletterBlockSubmissionMessage as h, eventCalendarListGroupingDecision as ha, parseContentVersionId as hc, parseRuntimeBackgroundContent as hi, formatEventCompactDateRail as hn, resolveEffectApplications as ho, formatDate$1 as hr, projectRecurringSchedule as hs, EventQuickFacts as ht, systemBlockDefinitions as i, blockChecksForEvents as ia, resolveBookingBusinessTimeZone as ic, ctaCopyFragment as ii, pageNavigationSchema as in, compilePageRuntimeFields as io, teamMemberBiography as ir, resolveRepeaterGridSpanFieldId as is, MediaPlaceholder as it, passCardListContent as j, headerRootPaint as ja, when as ji, planDropInPanel as jn, noneBoundaryOption as jo, clsx as jr, EVENT_PRESET_VALUES as js, normalizeOfferingsPreviewItemLimit as jt, membershipCardListContent as k, headerNeedsPhotoShade as ka, runTransforms as ki, getPublicEventCanonicalPath as kn, boundaryTreatmentForBoundaryOptionId as ko, itemRole as kr, unavailableReadinessFact as ks, buildOfferingsPreviewListing as kt, parseLocationMapLoaderResult as l, eventDiscoveryFilterKeys as la, publicEventPricingCurrency as lc, boxStylesTransforms as li, eventCalendarWeekStart as ln, resolveCardRole as lo, headerRuntimeTransforms as lr, getDayOfWeek as ls, resolvePublicMediaUrl as lt, buildNewsletterFormInteractiveIslandProps as m, resolveCalendarReadProfile as ma, formatCurrencyAmount as mc, parseBackgroundOverlay as mi, formatEventClockLabel as mn, generateEffectsCSS as mo, formattingTransforms as mr, isToday as ms, setContextResolveImageUrlContext as mt, listBlockDescriptors as n, isRecord$5 as na, parseLocalScheduleTime as nc, testimonialsCarouselFragment as ni, formatEventLocation as nn, getCuratedSiteStyle as no, contentTransforms as nr, resolveRepeaterGridColumnFieldId as ns, RichText as nt, describeUnresolvedLocationMapLocation as o, eventReadinessQuery as oa, offeringLabelForPageSurfaceSubject as oc, ctaRowFragment as oi, closedRunCopy as on, surfaceResolutionContextFromTheme as oo, readRuntimeNow as or, getLocalMinuteOfDay as os, resolveImageSourceSetWithContext as ot, NEWSLETTER_SIGNUPS_PAUSED_MESSAGE as p, resolveEventScope as pa, resolvePricingOptionsPriceDisplay as pc, parseBackgroundContent as pi, formatDate as pn, generateNavLinkCSS as po, uiTransforms as pr, isSameCalendarDay as ps, getCurrentResolveImageUrlContext as pt, eventCollectionSourceSchemaShape as q, applySiteStyleBlockPoliciesToPageDesignIntent as qa, isInlineTextEmpty as qi, groupPublicEventsByRun as qn, bindingSchema as qo, richTextFragment as qr, inferSiteDateLocale as qs, groupEventsByWeek as qt, normalizeBlockContent as r, chosenString as ra, toUtcIsoDateTimeString as rc, testimonialsHeadingFragment as ri, blockSiteTermsSchema as rn, requireCuratedSiteStyle as ro, parseTeamMemberSpecialties as rr, resolveRepeaterGridRowFieldId as rs, ImagePresets as rt, normalizeLocationMapProps as s, eventReadinessQueryKeys as sa, formatBookingPriceDisplay as sc, isBlockButtonRole as si, closedDateCopy as sn, gradientToCss as so, resolveDateRuntimeContext as sr, addDays as ss, resolveImageUrl as st, getBlockDefinition as t, isObjectRecord$1 as ta, parseBookingLocalDate as tc, formCopyFragment as ti, eventVenuePlace as tn, designRuntimeRulesForTheme as to, splitPositioningClasses as tr, parseRepeaterGridInteger as ts, MediaNodeServer as tt, resolveLocationMapLocation as u, eventScopeLoaderParam as ua, publicEventPricingDisplay as uc, boxStyleClassNames as ui, eventDateOptions as un, generateDefaultCardSystem as uo, chromeLogoTransforms as ur, getOrderedDayNames as us, resolveArrangementKnobs as ut, checkoutBlockDefinition as v, themeButtonSelector as va, parseGradientPresetId as vc, resolveBackgroundColorValue as vi, formatEventNextDateFact as vn, parsePageDesignIntent as vo, buildInteractiveIslandProps as vr, blockBookingConsentSchema as vs, eventRegistrationBlockDefinition as vt, buildCheckoutInteractiveIslandProps as w, parseListLook as wa, lookLeadSlotTransform as wi, resolveEventTimeZone as wn, sectionShapeFromContent as wo, listItemPresentation as wr, calendarWindowQuerySchema as ws, resolveEventRegistrationScopedEvents as wt, productListBlockDefinition as x, lookPresentationOnPalette as xa, bodyCopyFragment as xi, formatEventWeekdayTime as xn, resolvePageDesignBoundaryChoice as xo, createZodCodec as xr, sanitizeHref as xs, bookingNowSchema as xt, cartBlockDefinition as y, AFFORDANCE_SUPPRESS_CLASS as ya, arrangementSlotNames as yc, ctaButton as yi, formatEventRunDates as yn, rebasePageDesignIntentToSiteStyle as yo, createInteractiveIslandCodec as yr, bookingConsentCarrierSchema as ys, buildEventRegistrationInteractiveIslandProps as yt, combinedLookSchema as z, resolveLookForBlock as za, ClockIcon as zi, hasEventBookingClosedEarly as zn, parseCanonicalRuntimeBackground as zo, formatCoursePrice as zr, parseMailingListProviderScope as zs, ThemedButton as zt };
57072
+ export { cardListPresentationSchemaShape as $, resolveArrangementLookForBlock as $a, buildGeneratedBlockIconRenderAssetLookupFromUnknown as $i, selectionRepresentativeEvent as $n, deriveSectionGround as $o, morePhotosField as $r, inferSiteDateLocale as $s, browserReadAuthoritySchema as $t, membershipCardListContent as A, eventCalendarListGroupingDecision as Aa, boxStyleClassNames as Ai, getLocalMinuteOfDay as An, generateInteractiveChildInheritanceCSS as Ao, chromeLogoTransforms as Ar, calendarWindowQuerySchema as As, groupOfferingRunsByCourse as At, combinedLookSchema as B, authoredHeaderLinkForeground as Ba, layoutSectionGround as Bi, cancelledDateCopy as Bn, sectionShapeHook as Bo, defineInteractiveIslandMetaKeys as Br, orderedLiveRunSessions as Bs, ThemedAuthoredButton as Bt, shopBlockDefinition as C, blockChecksForEvents as Ca, arrangementSlotNames as Cc, testimonialsHeadingFragment as Ci, formatEventRunDates as Cn, generateDefaultCardSystem as Co, parseTeamMemberSpecialties as Cr, publicEventsArraySchema as Cs, bookingNowSchema as Ct, buildProductListInteractiveIslandProps as D, eventReadinessResultSchema as Da, isBlockButtonRole as Di, groupEventsByDate as Dn, generateEffectsCSS as Do, resolveDateRuntimeContext as Dr, beforeBookingQuestionsPresentationSchema as Ds, OFFERINGS_PREVIEW_DEFAULT_FAILED_MESSAGE as Dt, buildProductDetailInteractiveIslandProps as E, eventReadinessQueryKeys as Ea, ctaRowFragment as Ei, formatTime as En, generateNavLinkCSS as Eo, readRuntimeNow as Er, bookingConsentCarrierSchema as Es, OFFERINGS_PREVIEW_DEFAULT_EMPTY_MESSAGE as Et, buildOfferingsCatalogueListing as F, resolveHeaderRootForeground as Fa, parseRuntimeBackgroundContent as Fi, getWeekCalendarDayTuple as Fn, pageDesignDecisionsV2Schema as Fo, formatDate$1 as Fr, unavailableReadinessFact as Fs, resolveOfferingsPreviewGroupCta as Ft, buildEventCollectionListingDisplay as G, headerRootIsTransparent as Ga, lookLeadSlotTransform as Gi, isOrdinaryPublicEvent as Gn, isDecorativeTransitionIntent as Go, listLookControl as Gr, parseMailingListProviderScope as Gs, SpinnerNode as Gt, buildEventListingInteractiveIslandProps as H, readOpeningToneProjection as Ha, bodyCopyFragment as Hi, eventOccurrenceContext as Hn, boundaryOptions as Ho, defineClientOwnedBlockRuntime as Hr, resolveWholeSeriesPaymentDates as Hs, ThemedButtonLink as Ht, offeringsCatalogueShape as I, lookPresentationOnPalette as Ia, resolveSectionSurfaceForeground as Ii, getWeekCalendarDays as In, groundPaint as Io, formBlockDefinition as Ir, isRecord$5 as Is, resolveOfferingsPreviewGroups as It, eventCollectionSourceSchemaShape as J, arrangementLookHooks as Ja, asPartialObject as Ji, planWholeSeriesParentBooking as Jn, spaciousBoundaryOption as Jo, resolvedItemSurfaceProps as Jr, isCanonicalRichTextDoc as Js, eventWeekGroupingContext as Jt, eventCollectionDisplaySchemaShape as K, headerRootPaint as Ka, lookQuoteLimitTransform as Ki, planDropInPanel as Kn, noneBoundaryOption as Ko, listLookSlot as Kr, parseMailingListPlacementTargeting as Ks, buildEventListWeek as Kt, eventCalendarBlockDefinition as L, resolveLookSurfacePresentation as La, resolveSurfaceForegroundStyles as Li, isSameCalendarDay as Ln, pageGround as Lo, buildFormInteractiveIslandProps as Lr, EVENT_PRESET_VALUES as Ls, resolveOfferingsRenderInput as Lt, passCardListContent as M, parseThemeButtonVariantId as Ma, resolveCardRoleForBoxStyles as Mi, formatDateKey as Mn, rebasePageDesignIntentToSiteStyle as Mo, staticHeaderChromeRuntime as Mr, hiddenFromVisitors as Ms, offeringRunLifecycle as Mt, offeringsPreviewBlockDefinition as N, themeButtonSelector as Na, parseBackgroundContent as Ni, getDayOfWeek as Nn, resolvePageDesignBlockLookChoice as No, uiTransforms as Nr, loadedReadinessFact as Ns, offeringsListingFor as Nt, buildShopInteractiveIslandProps as O, resolveEventCalendarRead as Oa, heroCopyFragment as Oi, resolveEventTimeZone as On, resolveEffectApplications as Oo, mediaTransforms as Or, RESOLVED_INTERNAL_LINK_ENTITY_TYPES as Os, OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS as Ot, publicRouteCandidatesSchema as P, AFFORDANCE_SUPPRESS_CLASS as Pa, parseBackgroundOverlay as Pi, getOrderedDayNames as Pn, resolvePageDesignBoundaryChoice as Po, formattingTransforms as Pr, pageTemplateFromEntry as Ps, readOfferingsGrouping as Pt, CardListLeadDate as Q, getCompatibleBlockAppearancePresets as Qa, when as Qi, resolveSelectionBookingClosedDetail as Qn, applyLookPhotoTreatment as Qo, heroMorePhotoCount as Qr, formatDateTimeRange as Qs, bookingPresentation as Qt, buildEventCalendarInteractiveIslandProps as R, selectItemSurfacePresentation as Ra, resolveBackgroundColorValue as Ri, isToday as Rn, sectionShapeForGround as Ro, buildInteractiveIslandProps as Rr, CANCELLED_SESSION_STATUS as Rs, normalizeEventRegistrationPageSurfaceSubject as Rt, productListBlockDefinition as S, chosenString as Sa, unsafeAsContentEntryId as Sc, testimonialsCarouselFragment as Si, formatEventNextDateFact as Sn, resolveCardRole as So, contentTransforms as Sr, projectRecurringSchedule as Ss, resolveEventRegistrationEventSource as St, buildCheckoutInteractiveIslandProps as T, eventReadinessQuery as Ta, heroCtaRowFragment as Ti, formatEventWeekdayTime as Tn, buildTextContrastShadow as To, teamMemberCardBiography as Tr, blockBookingConsentSchema as Ts, OFFERINGS_PREVIEW_DEFAULT_BUTTON_TEXT as Tt, buildEventCollectionDisplay as U, heroPhotoPaintsGround as Ua, defineFragment as Ui, getPublicEventCanonicalPath as Un, boundaryRuntimeMetricsForDecorativeTransition as Uo, defineProgressiveBlockRuntime as Ur, buildMailingListSignupBlockSourceRef as Us, ThemedDownloadLink as Ut, eventListingBlockDefinition as V, effectiveHeaderNavLinkStyle as Va, isSemanticSpacing as Vi, hasCancelledRegistrationDate as Vn, boundaryOptionForTransitionIntent as Vo, createZodCodec as Vr, resolveWholeSeriesBookingPhase as Vs, ThemedButton as Vt, buildEventCollectionHydration as W, headerNeedsPhotoShade as Wa, lookCarouselRegionTransform as Wi, isDropInPublicEvent as Wn, boundaryTreatmentForBoundaryOptionId as Wo, listItemPresentation as Wr, parseMailingListRuntimeContext as Ws, getIconComponent as Wt, listingEventCardProps as X, automaticArrangementLook as Xa, runTransforms as Xi, planWholeSeriesRunSelection as Xn, anglePolygonCss as Xo, Grid as Xr, formatDate$2 as Xs, weekColumnDays as Xt, catalogueEventCardProps as Y, arrangementStyleAvailability as Ya, createTransformRegistry as Yi, planWholeSeriesParentSelection as Yn, transitionIntentForTreatment as Yo, itemRole as Yr, EVENT_ADDRESS_AFTER_BOOKING_LABEL as Ys, groupEventsByWeek as Yt, CardListContentPart as Z, compileArrangementLookRuntime as Za, el as Zi, registrationDataForEventSelection as Zn, transitionCatalogueEntries as Zo, clsx as Zr, formatDateRange as Zs, formatBookingSchedulePresentation as Zt, giftingBlockDefinition as _, normalizeSelectSource as _a, publicEventPricingType as _c, faqHeadingFragment as _i, formatDate as _n, getCuratedSiteStyle as _o, siteFooterManifest as _r, resolveRepeaterGridSpanFieldId as _s, getCardOrientation as _t, systemBlockDefinitions as a, CirclePlusIcon as aa, getBookingLocalDateKey as ac, formatCoursePrice as ai, pageNavigationSchema as an, resolveModeArrangement as ao, resolveRuntimeEventDestination as ar, themeV2CompilerOwnedFieldNames as as, MediaPlaceholder as at, cartBlockDefinition as b, PUBLIC_DOWNLOAD_MEDIA_TYPES as ba, formatCurrencyAmount as bc, formEmbedFragment as bi, formatEventDateParts as bn, stripCompiledRuntimeStyleFields as bo, markEditableSurfaceForwarding as br, eventScopeQueryKeys as bs, eventRegistrationBlockDefinition as bt, normalizeLocationMapProps as c, FileAudioIcon as ca, parseLocalScheduleTime as cc, formatEventPriceAmount as ci, closedRunCopy as cn, applySiteStyleBlockPoliciesToPageDesignIntent as co, formatEventRemainingPlaces as cr, blockCategoryEnum as cs, resolveImageUrl as ct, resolveLocationMapLocation as d, MinusIcon as da, toBookingTimeZone as dc, BACKGROUND_POSITION_PRESET_VALUES as di, cutOffDateCopy as dn, filterLayoutProfilesForPolicy as do, getEventAvailabilityStatus as dr, fieldSchema as ds, resolveArrangementKnobs as dt, parseBlockIconValue as ea, formatBookingCompactEnglishTime as ec, blockDesignCapabilityMapFromDefinitions as ei, eventOnlinePlace as en, resolveLookForBlock as eo, eventDestinationBookingLink as er, parseCanonicalRuntimeBackground as es, resolveCardListSchedule as et, newsletterSignupBlockDefinition as f, PlusIcon as fa, offeringLabelForPageSurfaceSubject as fc, getAnchorClasses as fi, buildCalendarViewport as fn, filterLookIdsForPolicy as fo, isEventFull as fr, validateManifestLookField as fs, systemCustomizeFacetDefinitionsForBlock as ft, newsletterBlockSubmissionMessage as g, plainTextToInlineText as ga, publicEventPricingDisplay as gc, faqAccordionFragment as gi, formatCalendarTitle as gn, designRuntimeRulesForTheme as go, shouldReserveFeatureCardIconZone as gr, resolveRepeaterGridRowFieldId as gs, EventQuickFacts as gt, buildNewsletterFormInteractiveIslandProps as h, parseInlineTextFromUnknown as ha, publicEventPricingCurrency as hc, cardFragment as hi, eventLocalDateKey as hn, designRuntimeRulesForSiteStyle as ho, resolveFeatureCardGeneratedIconSizePx as hr, resolveRepeaterGridColumnFieldId as hs, setContextResolveImageUrlContext as ht, normalizeBlockContent as i, CircleMinusIcon as ia, formatLocalScheduleDate as ic, resolveClassPriceItems as ii, blockSiteTermsSchema as in, resolveEffectiveArrangement as io, resolveEventPageLink as ir, stripStaleTransitionStyleGroup as is, ImagePresets as it, membershipClassesLabel as j, resolveEventCalendarReadPlan as ja, normalizeBoxStylesBorder as ji, addDays as jn, parsePageDesignIntent as jo, layoutTransforms as jr, admitReadinessFacts as js, normalizeOfferingsPreviewItemLimit as jt, shopProductPresentation as k, resolveEventScopeRead as ka, boxStylesTransforms as ki, getLocalDateKey as kn, resolveEffectPaint as ko, headerRuntimeTransforms as kr, linkSchema as ks, buildOfferingsPreviewListing as kt, normalizeLocationMapSource as l, FileSpreadsheetIcon as la, toUtcIsoDateTimeString as lc, formatEventPriceDisplay as li, bookElsewhereDateCopy as ln, buildInitialPolicyPageDesignIntent as lo, formatTotalCapacity as lr, blockSectionDeclarationShape as ls, resolveImageUrlWithContext as lt, NEWSLETTER_SIGNUPS_PAUSED_MESSAGE as m, isInlineTextEmpty as ma, isPublicEventPricingOptionDisplayable as mc, headingFragment as mi, eventDateOptions as mn, componentRuntimeRulesForTheme as mo, FEATURE_CARD_ICON_TREATMENTS as mr, parseRepeaterGridInteger as ms, getCurrentResolveImageUrlContext as mt, hasBlockDefinition as n, ArrowDownIcon as na, addLocalScheduleDays as nc, classPricesCopySchema as ni, eventVenuePlace as nn, arrangementManifestFromVariants as no, resolveEventCardBooking as nr, sectionSurfaceBase as ns, MediaNodeServer as nt, LOCATION_MAP_LOADER_KEYS as o, ClockIcon as oa, getLocalScheduleDate as oc, formatEventDepositNote as oi, closedDateListCopy as on, resolvePublishedLook as oo, isBookableEvent as or, appearancePresets as os, computeMediaTransformStyle as ot, sanitizeNewsletterSignupPublicContent as p, inlineTextToPlainText as pa, formatBookingPriceDisplay as pc, richTextFragment as pi, eventCalendarWeekStart as pn, componentRuntimeRulesForSiteStyle as po, groupPublicEventsByRun as pr, isAcceptedRepeaterGridSpan as ps, buildResolveImageUrlContext as pt, eventCollectionHydrationSchema as q, arrangementAppearancePresets as qa, lookSkinSlotTransform as qi, planOrdinarySeriesSelection as qn, softBoundaryOption as qo, lookListPresentationSchemaShape as qr, sameMailingListPlacementTargeting as qs, eventListWeekDays as qt, listBlockDescriptors as r, ChevronDownIcon as ra, compareLocalScheduleDates as rc, classPricesDataSchema as ri, formatEventLocation as rn, readStoredMode as ro, resolveEventCta as rr, defaultHeroImageSurfaceTreatment as rs, RichText as rt, describeUnresolvedLocationMapLocation as s, FileArchiveIcon as sa, parseBookingLocalDate as sc, formatEventPrice as si, closedDatesCopy as sn, applyBlockContentVariantPolicy as so, isInBookingCutOffWindow as sr, DEFAULT_MEDIA_FIELD_KINDS as ss, resolveImageSourceSetWithContext as st, getBlockDefinition as t, resolveBlockIconRenderValue as ta, toScheduledBookingDateTime as tc, resolveDeclaredBlockDesignCapability as ti, eventPlaceName as tn, styleSectionBackgroundForColour as to, eventDestinationPagePath as tr, resolveSectionBackground as ts, selectCardListPresentation as tt, parseLocationMapLoaderResult as u, FileTextIcon as ua, resolveBookingBusinessTimeZone as uc, formatEventStartingPrice as ui, closedDateCopy as un, deriveSiteStyleBlockPolicy as uo, getEventAvailability as ur, builtInBlockKindsSchema as us, resolvePublicMediaUrl as ut, buildGiftingInteractiveIslandProps as v, parseFieldDefinition as va, resolveExactOrFreePriceDisplay as vc, blogFeaturedPostFragment as vi, formatEventClockLabel as vn, requireCuratedSiteStyle as vo, siteHeaderManifest as vr, eventDiscoveryFilterKeys as vs, getContainerClass as vt, buildCartInteractiveIslandProps as w, eventReadinessLoaderKey as wa, TokenResolver as wc, ctaCopyFragment as wi, formatEventTimeRange as wn, generateFooterCss as wo, teamMemberBiography as wr, blockBookingPaymentTermsSchema as ws, previewStageSchema as wt, productDetailBlockDefinition as x, augmentManifest as xa, parseContentVersionId as xc, formCopyFragment as xi, formatEventHourLabel as xn, surfaceResolutionContextFromTheme as xo, splitPositioningClasses as xr, resolveEventScope as xs, buildEventRegistrationInteractiveIslandProps as xt, checkoutBlockDefinition as y, parseFieldDefinitions as ya, resolvePricingOptionsPriceDisplay as yc, singleButtonFragment as yi, formatEventCompactDateRail as yn, compilePageRuntimeFields as yo, composeHeaderSectionWrapperClassName as yr, eventScopeLoaderParam as ys, resolveCalendarReadProfile as yt, buildEventCalendarListingDisplay as z, parseListLook as za, ctaButton as zi, bookingPageKindSchema as zn, sectionShapeFromContent as zo, createInteractiveIslandCodec as zr, nextLiveRunSessionStartMs as zs, resolveEventRegistrationScopedEvents as zt };