@riverbankcms/sdk 0.181.0 → 0.183.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 (226) hide show
  1. package/CHANGELOG.md +79 -0
  2. package/README.md +49 -3
  3. package/dist/_dts/{BlocksIslandsHydrator-CVCasDPz.d.ts → BlocksIslandsHydrator-X1_G96iN.d.ts} +1 -1
  4. package/dist/_dts/{Page-Dtj2Ui3S.d.ts → Page-CEqZJZEE.d.ts} +7 -7
  5. package/dist/_dts/{SdkPreviewMode-D1f_60WW.d.ts → SdkPreviewMode-DQejfbXL.d.ts} +2 -2
  6. package/dist/_dts/{client-Chr9pNVW.d.ts → client-B_B_amKD.d.ts} +2 -3
  7. package/dist/_dts/{content-types-kjccgopX.d.ts → content-types-Dhx5Ocvx.d.ts} +9 -16
  8. package/dist/_dts/{contracts-BodaiS00.d.ts → contracts-FeOnfoa1.d.ts} +3 -3
  9. package/dist/_dts/{generatePageMetadata-BS6kaJFp.d.ts → generatePageMetadata-m70J6tit.d.ts} +2 -2
  10. package/dist/_dts/{index-Brl6_I2j.d.ts → index-BOpUh8kO.d.ts} +1 -1
  11. package/dist/_dts/{index-CJkefwYh.d.ts → index-Bizdaxji.d.ts} +2 -2
  12. package/dist/_dts/{index-Diqt0PvG.d.ts → index-BxCmCit0.d.ts} +1 -1
  13. package/dist/_dts/{index-DG0OvBs0.d.ts → index-CjAkEWAp.d.ts} +4 -4
  14. package/dist/_dts/{index-D1WpKwQe.d.ts → index-iuFrbIjt.d.ts} +1 -1
  15. package/dist/_dts/{index-Dy50xUMK.d.ts → index-liuhlOX7.d.ts} +2 -2
  16. package/dist/_dts/{loadContent-BgxshKrA.d.ts → loadContent-D4wrTIIw.d.ts} +7 -7
  17. package/dist/_dts/{request-CA0izds5.d.ts → request-Gn0O1blj.d.ts} +25042 -23761
  18. package/dist/_dts/{resolveBlockData-ChQmwEd3.d.ts → resolveBlockData-D5duwuqS.d.ts} +5 -5
  19. package/dist/_dts/{resolvePageContent-BvGyvblj.d.ts → resolvePageContent-xzJ3c9Na.d.ts} +1 -1
  20. package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
  21. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  22. package/dist/_dts/sdk/src/client.d.ts +7 -7
  23. package/dist/_dts/sdk/src/config/index.d.ts +7 -7
  24. package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
  25. package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
  26. package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
  27. package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
  28. package/dist/_dts/sdk/src/data/types.d.ts +2 -2
  29. package/dist/_dts/sdk/src/gifting/client.d.ts +1 -1
  30. package/dist/_dts/sdk/src/index.d.ts +8 -8
  31. package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
  32. package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
  33. package/dist/_dts/sdk/src/navigation/index.d.ts +3 -3
  34. package/dist/_dts/sdk/src/next/index.d.ts +7 -7
  35. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  36. package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
  37. package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
  38. package/dist/_dts/sdk/src/portal/index.d.ts +1 -1
  39. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  40. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  41. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  42. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  43. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  44. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
  45. package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
  46. package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
  47. package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
  48. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  49. package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
  50. package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
  51. package/dist/_dts/sdk/src/routing/index.d.ts +6 -6
  52. package/dist/_dts/sdk/src/server.d.ts +5 -5
  53. package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
  54. package/dist/_dts/sdk/src/theme/index.d.ts +91 -2
  55. package/dist/_dts/{serviceBookingOutline-BgFbJQhU.d.ts → serviceBookingOutline-B1gyJon_.d.ts} +7 -7
  56. package/dist/_dts/{types-CgS3xLk8.d.ts → types-BoITy0rA.d.ts} +41 -4
  57. package/dist/_dts/{types-CQrsP1x_.d.ts → types-DBNuMtSk.d.ts} +16 -5
  58. package/dist/_dts/{types-R65DKjPn.d.ts → types-DHMcuoeQ.d.ts} +7 -7
  59. package/dist/_dts/{validation-6LTIbuBA.d.ts → validation-BIPO-XlE.d.ts} +4 -4
  60. package/dist/client/{BlocksIslandsHydrator-DqZPz6oW.mjs → BlocksIslandsHydrator-Ct8slgRk.mjs} +22 -18
  61. package/dist/client/{BookingMailingListNote-uWfR2kaG.mjs → BookingMailingListNote-qqTxGGS4.mjs} +7 -7
  62. package/dist/client/{BookingQuestionFields-CyNIKw6k.mjs → BookingQuestionFields-DCh9MUIF.mjs} +2 -2
  63. package/dist/client/{CalendarAction-D_Glwvz2.mjs → CalendarAction-RcdaStG7.mjs} +1 -1
  64. package/dist/client/{CalendarNavigationChevron-BGCX3zwG.mjs → CalendarNavigationChevron-D7Wt-Oaa.mjs} +27 -10
  65. package/dist/client/{CheckboxChoice-C8i4NraK.mjs → CheckboxChoice-BdGxZWeg.mjs} +1 -1
  66. package/dist/client/{DemoBookingPortalAccess-DFLPyuqe.mjs → DemoBookingPortalAccess-HFVkoOac.mjs} +5 -5
  67. package/dist/client/{EventCalendar.client-zDL4-t-B.mjs → EventCalendar.client-BtkJW8bA.mjs} +10 -10
  68. package/dist/client/{EventCombined.client-uciDKLID.mjs → EventCombined.client-DxaGjFFS.mjs} +9 -9
  69. package/dist/client/{EventEmbeddedCheckoutStep-BGkbUhuw.mjs → EventEmbeddedCheckoutStep-B2c5dR49.mjs} +1 -1
  70. package/dist/client/{EventItem-CwzrjcRw.mjs → EventItem-Fr2qi2C2.mjs} +33 -186
  71. package/dist/client/{EventListWeekNavigation-ChvcnPma.mjs → EventListWeekNavigation-BRMaq0ky.mjs} +1 -1
  72. package/dist/client/{EventListing.client-DA57Qoyx.mjs → EventListing.client-BhGxfbjt.mjs} +3 -3
  73. package/dist/client/{EventListing.view-DZ0qMFF4.mjs → EventListing.view-COuEJzbO.mjs} +8 -8
  74. package/dist/client/{EventRegistrationPayment-DSqCJL8E.mjs → EventRegistrationPayment-BTLYhVxD.mjs} +41 -195
  75. package/dist/client/{Page-C7mygH_f.mjs → Page-CgbQZP5g.mjs} +2947 -1018
  76. package/dist/client/{ProtectedSubmitButton-BNnKuir8.mjs → ProtectedSubmitButton-BG7my0Qf.mjs} +1 -1
  77. package/dist/client/{SiteTermsAgreementField-B4z-e4Wq.mjs → SiteTermsAgreementField-DQNkfNLA.mjs} +3 -3
  78. package/dist/client/{StepIndicator-Dn_DY4oY.mjs → StepIndicator-DvPekKeM.mjs} +1 -1
  79. package/dist/client/{StepIndicator-atfDU82W.mjs → StepIndicator-DyXoI3ob.mjs} +221 -20
  80. package/dist/client/{ThemedButton-PFOhXktM.mjs → ThemedButton-Bc9DBbVp.mjs} +42 -9
  81. package/dist/client/{accessibleSurfaces-n6kS6Hct.mjs → accessibleSurfaces-wj4Rloo5.mjs} +1214 -724
  82. package/dist/client/{accordion-CsW8U3ff.mjs → accordion-BVXfjnh-.mjs} +1 -1
  83. package/dist/client/{booking-form.client-cBWM392H.mjs → booking-form.client-DycPGtke.mjs} +191 -71
  84. package/dist/client/{bookingForm-DgySpp6C.mjs → bookingForm-DrWSUqL3.mjs} +4 -4
  85. package/dist/client/bookings.mjs +5 -5
  86. package/dist/client/{boxStyleClassNames-BpGVdLFD.mjs → boxStyleClassNames-CduDRcIk.mjs} +2 -2
  87. package/dist/client/buttonParts-CJEtVOUy.mjs +1511 -0
  88. package/dist/client/{carousel-DJoleFV3.mjs → carousel-DyCLMP8s.mjs} +2 -2
  89. package/dist/client/{carousel.client-BtLwHefX.mjs → carousel.client-DffP_Nv0.mjs} +1 -1
  90. package/dist/client/{cart-EO5o6uPH.mjs → cart-BuEp_cj4.mjs} +3 -3
  91. package/dist/client/{cart.client-D_gPw45z.mjs → cart.client-CAO39uDG.mjs} +1 -1
  92. package/dist/client/{checkout-NVfZW0kR.mjs → checkout-BoxzT64s.mjs} +3 -3
  93. package/dist/client/{checkout.client-DD3JuqOy.mjs → checkout.client-IGUy7XOx.mjs} +1 -1
  94. package/dist/client/{checkoutUrls-z2gXvlGw.mjs → checkoutUrls-D0UsiFmm.mjs} +1 -1
  95. package/dist/client/client.mjs +466 -94
  96. package/dist/client/{constants-CoOkvw__.mjs → constants-C_8AxMdm.mjs} +1 -1
  97. package/dist/client/{context-CRhn9qzS.mjs → context-D1L0pe__.mjs} +23 -5
  98. package/dist/client/{dateFormatting-BnWB4L1s.mjs → dateFormatting-HvfmS_cH.mjs} +1 -1
  99. package/dist/client/{demoPortalMagicLink-CWDGSTBu.mjs → demoPortalMagicLink-BunFTnIq.mjs} +1 -1
  100. package/dist/client/{enhanceHeaderSection-tdP_-Z9o.mjs → enhanceHeaderSection-CtLAG651.mjs} +4 -4
  101. package/dist/client/{event-registration.client-D7YYKySQ.mjs → event-registration.client-DiSxkBUP.mjs} +15 -15
  102. package/dist/client/{eventCalendar-CsAfu5d0.mjs → eventCalendar-DUnhwZ1o.mjs} +4 -4
  103. package/dist/client/{eventCombined-VXJB5CoS.mjs → eventCombined-BvBQo0nF.mjs} +4 -4
  104. package/dist/client/{eventListing-B3KIZNfY.mjs → eventListing-aTLifOX7.mjs} +4 -4
  105. package/dist/client/{eventRegistration-BP-dEk1c.mjs → eventRegistration-DFd7pr09.mjs} +4 -4
  106. package/dist/client/{form-DM8Zbxbv.mjs → form-Dikmc2AO.mjs} +3 -3
  107. package/dist/client/{form.client-e2z_Tlgk.mjs → form.client-zHaQK5I9.mjs} +5 -5
  108. package/dist/client/{form.parts-Ctljy1a3.mjs → form.parts-BLl9n8TH.mjs} +3 -3
  109. package/dist/client/gifting/client.mjs +16 -9
  110. package/dist/client/{gifting-DWIsqQru.mjs → gifting-CufPM38H.mjs} +4 -4
  111. package/dist/client/{gifting.client-QsSWF0uA.mjs → gifting.client--N1GaSY8.mjs} +155 -84
  112. package/dist/client/gifting.interactive-D9MK4HkV.mjs +157 -0
  113. package/dist/client/gifting.parts-CRtiRzo-.mjs +119 -0
  114. package/dist/client/{headerSection-DAkRkwb-.mjs → headerSection-BIaBpmk3.mjs} +2 -2
  115. package/dist/client/{noop-Dl4mZ-rr.mjs → islands-DJDLGQEm.mjs} +16008 -8676
  116. package/dist/client/{newsletter-form.client-WYja9-WN.mjs → newsletter-form.client-wg_JHTxm.mjs} +6 -6
  117. package/dist/client/{newsletter-form.interactive-RuM86VAv.mjs → newsletter-form.interactive-hzpkW9NQ.mjs} +384 -326
  118. package/dist/client/{newsletter-form.parts-2petDnWv.mjs → newsletter-form.parts-CgzpSv9p.mjs} +2 -2
  119. package/dist/client/{newsletterForm-BUbXdA_e.mjs → newsletterForm-CvxLiEBT.mjs} +3 -3
  120. package/dist/client/portal/client.mjs +291 -101
  121. package/dist/client/{portalOrders-COGn4BKG.mjs → portalOrders-tCxS04g0.mjs} +3 -2
  122. package/dist/client/{portalRoutes-D72yvtDh.mjs → portalRoutes-DTHlWg_F.mjs} +33 -7
  123. package/dist/client/{product-detail.client-pOAryevt.mjs → product-detail.client-22Q7zgjN.mjs} +1 -1
  124. package/dist/client/{product-list.client-CcUpUiud.mjs → product-list.client-DFWYvK8z.mjs} +1 -1
  125. package/dist/client/{productDetail-BZJCfqat.mjs → productDetail-DhZAwo60.mjs} +3 -3
  126. package/dist/client/{productList-CiRs3mNb.mjs → productList-BiVpbZK2.mjs} +3 -3
  127. package/dist/client/{propsDecoder--uHW4tFM.mjs → propsDecoder-DFYqKnLy.mjs} +4 -2
  128. package/dist/client/{registry.server-CDNNd8wC.mjs → registry.server-C3OBRg7x.mjs} +2305 -873
  129. package/dist/client/rendering/client.mjs +29 -26
  130. package/dist/client/rendering/islands.mjs +1 -1
  131. package/dist/client/rendering.mjs +5 -5
  132. package/dist/client/{richText-coerce-CQGE_wHV.mjs → richText-coerce-ms477Z08.mjs} +2 -2
  133. package/dist/client/{routeIslandApiConfig-BtCg87-N.mjs → routeIslandApiConfig-B6nQeqvH.mjs} +1 -1
  134. package/dist/client/{runtimeResponse-Ds9cmBUf.mjs → runtimeResponse-BYqsV1Kb.mjs} +1 -1
  135. package/dist/client/runtimeResponse-CUX_lldL.mjs +3 -0
  136. package/dist/client/{shop-commerce-D8evQnMT.mjs → shop-commerce-DVsIcPaI.mjs} +16 -15
  137. package/dist/client/{shop-commerce-store-C9PcsSTj.mjs → shop-commerce-store-7mO6KY7_.mjs} +1 -1
  138. package/dist/client/{shop-discount-apply.state-D5CtGfJI.mjs → shop-discount-apply.state-L1Vge8tG.mjs} +2 -2
  139. package/dist/client/{shop-Rx_gEMK8.mjs → shop-xt4dQ3HH.mjs} +3 -3
  140. package/dist/client/{shop.client-D4lzQ9oY.mjs → shop.client-DNJfD3VQ.mjs} +28 -17
  141. package/dist/client/{shopShared-BVbq7Nm-.mjs → shopShared-DS8t6749.mjs} +2 -2
  142. package/dist/client/spam-protection.mjs +1 -1
  143. package/dist/client/{src-ZSqRK3dD.mjs → src-Do_s2lqH.mjs} +16 -19
  144. package/dist/client/{timetableModel-BQJrSK0K.mjs → timetableModel-Dy3nNfTG.mjs} +13 -17
  145. package/dist/client/{useAvailableSlots-Dm3lKJKR.mjs → useAvailableSlots-DcjtDpUu.mjs} +2 -2
  146. package/dist/client/{useDiscountCodeUi-klgfGn7f.mjs → useDiscountCodeUi-DvdFFWOT.mjs} +1 -1
  147. package/dist/client/{useEventPagination-Jnjt7_ly.mjs → useEventPagination-Cq-7sU5_.mjs} +8 -8
  148. package/dist/client/{view-CC_yQLSA.mjs → view-4gnPcpWJ.mjs} +24 -9
  149. package/dist/client/{wizardSteps-BliJOzEX.mjs → wizardSteps-DDvL3iza.mjs} +375 -186
  150. package/dist/preview-next/client/{EventEmbeddedCheckoutStep-aRJjq4x8.mjs → EventEmbeddedCheckoutStep-CLqSRUpt.mjs} +1 -1
  151. package/dist/preview-next/client/{LocationPickerEnvironment-BW3dRFIv.mjs → LocationPickerEnvironment-CIdAg-Tm.mjs} +1 -1
  152. package/dist/preview-next/client/{MapLibreEditMap-Db9BHyXh.mjs → MapLibreEditMap-Bm85jX35.mjs} +2 -2
  153. package/dist/preview-next/client/{PageSectionToolbar-BhL0uADo.mjs → PageSectionToolbar-D8srnz9R.mjs} +445 -18
  154. package/dist/preview-next/client/{PreviewEditorSidebar-Ct8eIm0i.mjs → PreviewEditorSidebar-DVpk5cqp.mjs} +3871 -1947
  155. package/dist/preview-next/client/{PreviewEditorUI-BS32G4V9.mjs → PreviewEditorUI-XoTtHSFH.mjs} +11 -36
  156. package/dist/preview-next/client/{PreviewShell-RL0WfZXD.mjs → PreviewShell-VQHsRg2u.mjs} +40 -35
  157. package/dist/preview-next/client/{SdkPreviewModeRuntime-MK_gHeGy.mjs → SdkPreviewModeRuntime-CLdF9f6o.mjs} +51 -20
  158. package/dist/preview-next/client/{ThemedButton-CVYz7h68.mjs → ThemedButton-ORNN4x-3.mjs} +782 -16
  159. package/dist/preview-next/client/{lucide-react-00FF_oar.mjs → lucide-react-eAi3tDAr.mjs} +11 -1
  160. package/dist/preview-next/client/{previewAssistantSlot-CQyS8pcq.mjs → previewAssistantSlot-CqH91EwA.mjs} +20687 -8562
  161. package/dist/preview-next/client/{previewChromeRoot-BSxp3Mfu.mjs → previewChromeRoot-B3ySEu6p.mjs} +3 -90
  162. package/dist/preview-next/client/runtime.mjs +3 -3
  163. package/dist/preview-next/client/{sdk-runtime-DKnTzy74.mjs → sdk-runtime-CdpSupcr.mjs} +2 -2
  164. package/dist/preview-next/client/{siteStyleAccess-BlmbvbLN.mjs → siteStyleAccess-C6eOP6QW.mjs} +35 -6
  165. package/dist/preview-next/client/{useAutosaveStatus-D-7GwZOQ.mjs → useAutosaveStatus-BhPg4e-r.mjs} +49 -3
  166. package/dist/preview-next/client/{useOpenBlockForSetup-BNZtGM5g.mjs → useOpenBlockForSetup-BaWUF9D7.mjs} +2007 -448
  167. package/dist/preview-next/container-responsive.css +320 -0
  168. package/dist/preview-next/editor-chrome.css +23 -2
  169. package/dist/preview-next/keepAlive.mjs +1 -1
  170. package/dist/preview-next/middleware.mjs +1 -1
  171. package/dist/preview-next/{route-contract-R3PcMmax.mjs → route-contract-Ch0X99vE.mjs} +183 -18
  172. package/dist/server/{Block.shared-CniF9tSu.mjs → Block.shared-B2FmczLO.mjs} +5 -5
  173. package/dist/server/{ThemeScopeCore-BQWsnGT6.mjs → ThemeScopeCore-DtAyv9qA.mjs} +51 -29
  174. package/dist/server/{accessibleSurfaces-WPzUAHp4.mjs → accessibleSurfaces-BtPqb76u.mjs} +509 -389
  175. package/dist/server/{accordions-By_0Ykks.mjs → accordions-vzdZ2Wt1.mjs} +1 -1
  176. package/dist/server/{bindings-DxojjtK3.mjs → bindings-B_9JuU66.mjs} +7 -7
  177. package/dist/server/{client-CDndhbYO.mjs → client-DC7cjiSw.mjs} +489 -93
  178. package/dist/server/config-validation.mjs +1 -1
  179. package/dist/server/config.mjs +2 -2
  180. package/dist/server/{constants-VyF5nEhL.mjs → constants-d6nPNJpe.mjs} +33 -6
  181. package/dist/server/{customCss-C9kgPHvr.mjs → customCss-rtIfEYwQ.mjs} +1 -18
  182. package/dist/server/data/resolveBlockData.mjs +1 -1
  183. package/dist/server/{resolveButtonColourStates-B0O1IM16.mjs → expandPalette-DxPrNOAB.mjs} +950 -316
  184. package/dist/server/index.mjs +3 -3
  185. package/dist/server/{loadContent-BKstMBmX.mjs → loadContent-hb27HYic.mjs} +11 -10
  186. package/dist/server/{loadPage-IgNnZaqr.mjs → loadPage-JToD8wDD.mjs} +3 -3
  187. package/dist/server/{lookMediaFrame-TFjgNG61.mjs → lookMediaFrame-CTsycLLK.mjs} +94 -39
  188. package/dist/server/manifest.mjs +2 -2
  189. package/dist/server/{navigation-quBYlSKD.mjs → navigation-B2WhGofA.mjs} +1 -1
  190. package/dist/server/navigation.mjs +1 -1
  191. package/dist/server/next.mjs +8 -8
  192. package/dist/server/{overrideResolution-CCaAPpIa.mjs → overrideResolution-vD5KTClL.mjs} +1 -1
  193. package/dist/server/page-converter.mjs +3 -3
  194. package/dist/server/{pageRenderPlan-B7iULvKe.mjs → pageRenderPlan-CdqJ1NQZ.mjs} +242 -336
  195. package/dist/server/{pageRuntimeSupport-BytMroxn.mjs → pageRuntimeSupport-CAhr4oOf.mjs} +3 -3
  196. package/dist/server/{pageShared-Dcs_XTIO.mjs → pageShared-m80Xu2pd.mjs} +1292 -877
  197. package/dist/server/{parseThemeForPersistence-Bihl4W5K.mjs → parseThemeForPersistence-CRwOZfpa.mjs} +3 -3
  198. package/dist/server/{portal-CMW_b9mG.mjs → portal-B2wCQno_.mjs} +1 -1
  199. package/dist/server/portal.mjs +2 -2
  200. package/dist/server/{prebuild-agaH-vZV.mjs → prebuild-BWIkFaXq.mjs} +1 -1
  201. package/dist/server/prebuild.mjs +1 -1
  202. package/dist/server/{prefetchBlockData-DwpRjqw4.mjs → prefetchBlockData-D1PHU-K9.mjs} +3 -3
  203. package/dist/server/{registry-DM9dHfDC.mjs → registry-KtsOsAzY.mjs} +21703 -10936
  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 +9 -9
  209. package/dist/server/{resolveBlockData-CinHGf8l.mjs → resolveBlockData-sjIDJYl7.mjs} +1 -1
  210. package/dist/server/{schema-CwfxQjc4.mjs → schema-BBEqquBM.mjs} +44 -28
  211. package/dist/server/server.mjs +3 -3
  212. package/dist/server/{servicePageContent-BBBhOtdE.mjs → servicePageContent-ChEZDRwU.mjs} +38 -15
  213. package/dist/server/theme-bridge.mjs +34 -9
  214. package/dist/server/theme.mjs +2 -2
  215. package/dist/server/{three-pass-converter-DPaUPTfl.mjs → three-pass-converter-DKCIBeb1.mjs} +2 -2
  216. package/dist/server/{titleSourceSchema-NhK6azFS.mjs → titleSourceSchema-DybHErxH.mjs} +4 -4
  217. package/dist/server/{typeGuards-CTW_9AXq.mjs → typeGuards-DZOaGTEv.mjs} +126 -126
  218. package/dist/server/{types-BKaBZFjD.mjs → types-vyz09w64.mjs} +479 -8
  219. package/dist/server/{validation-DG5jX3jH.mjs → validation-Cvi-1TZZ.mjs} +13 -9
  220. package/dist/server/{version-CipbxPHL.mjs → version-B-icAIV1.mjs} +1 -1
  221. package/dist/server/{video-Cdr3wh-q.mjs → video-DBaeSawZ.mjs} +1 -1
  222. package/dist/styles/index.css +2568 -154
  223. package/package.json +1 -1
  224. package/dist/client/gifting.parts-CedLgwa_.mjs +0 -86
  225. package/dist/client/runtimeResponse-DL_ARBpa.mjs +0 -3
  226. package/dist/client/types-BEaKfam_.mjs +0 -778
@@ -1,32 +1,33 @@
1
1
  "use client";
2
- import { $t as buildEventListWeek, At as normalizeEventSurfacePresets, B as buildCartInteractiveIslandProps, Cn as formatEventPriceDisplay, Ct as buildEventCombinedInteractiveIslandProps, Dn as parseMailingListPlacementTargeting, Dt as normalizeEventCategoryIds, En as assessMailingListTargeting, F as buildGiftingInteractiveIslandProps, G as cartBlockRuntime, H as buildProductDetailInteractiveIslandProps, Ht as getContainerClass, I as giftingBlockRuntime, Mt as normalizeEventVenueId, Ot as normalizeEventScheduleScope, P as occurrenceContextSchema, Q as productListBlockRuntime, Qt as Grid, R as publicGiftingOffersResponseSchema, Sn as formatEventPriceAmount, St as listingEventCardProps, Tt as eventCombinedBlockRuntime, U as buildProductListInteractiveIslandProps, Ut as formatBookingSchedulePresentation, V as buildCheckoutInteractiveIslandProps, Vt as getCardOrientation, W as buildShopInteractiveIslandProps, Wt as CardListContentPart, X as productDetailBlockRuntime, Yt as EventQuickFacts, Zt as MediaNodeServer, _t as readOfferingsGrouping, bn as formatEventDepositNote, bt as resolveOfferingsRenderInput, dn as recurringScheduleProjectionSchema, dt as groupOfferingRunsByCourse, en as eventListWeekDays, et as shopBlockRuntime, f as eventCalendarBlockRuntime, g as formBlockRuntime, gt as offeringsListingFor, h as buildFormInteractiveIslandProps, hn as staticHeaderChromeRuntime, ht as offeringRunLifecycle, i as newsletterFormBlockRuntime, in as resolveEventSelection, it as DEFAULT_GROUP_CTA, jt as normalizeEventSurfaceScope, kn as DEFAULT_MAILING_LIST_TARGETING, kt as normalizeEventStaffMemberId, l as buildEventCalendarInteractiveIslandProps, lt as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, mt as normalizeOfferingsPreviewItemLimit, n as buildNewsletterFormInteractiveIslandProps, nt as shopProductPresentation, o as buildEventListingInteractiveIslandProps, q as checkoutBlockRuntime, r as newsletterBlockSubmissionMessage, rt as publicProductsResponseSchema, s as eventListingBlockRuntime, t as NEWSLETTER_SIGNUPS_PAUSED_MESSAGE, tn as eventWeekGroupingContext, u as buildEventCalendarListingDisplay, ut as buildOfferingsPreviewListing, vn as splitSiteChromePlacementClasses, vt as resolveOfferingsPreviewGroupCta, wn as formatEventStartingPrice, wt as buildEventCombinedListingDisplay, x as eventRegistrationBlockRuntime, xn as formatEventPrice, xt as catalogueEventCardProps, y as buildEventRegistrationInteractiveIslandProps, yn as formatCoursePrice, yt as resolveOfferingsPreviewGroups, z as DEFAULT_PASS_BUY_BUTTON_TEXT } from "./newsletter-form.interactive-RuM86VAv.mjs";
2
+ import { $ as decideShopCatalogue, B as buildShopInteractiveIslandProps, Cn as formatEventPrice, Ct as catalogueEventCardProps, Dt as eventCombinedBlockRuntime, En as formatEventStartingPrice, Et as buildEventCombinedListingDisplay, F as DEFAULT_PASS_BUY_BUTTON_TEXT, Ft as normalizeEventScheduleScope, I as buildCartInteractiveIslandProps, It as normalizeEventStaffMemberId, J as productListBlockRuntime, Jt as getCardOrientation, K as productDetailBlockRuntime, L as buildCheckoutInteractiveIslandProps, Lt as normalizeEventSurfacePresets, On as assessMailingListTargeting, P as occurrenceContextSchema, Pt as normalizeEventCategoryIds, Q as shopProductPresentation, R as buildProductDetailInteractiveIslandProps, Rt as normalizeEventSurfaceScope, Sn as formatEventDepositNote, St as resolveOfferingsRenderInput, Tn as formatEventPriceDisplay, Tt as buildEventCombinedInteractiveIslandProps, U as checkoutBlockRuntime, V as cartBlockRuntime, X as shopBlockRuntime, Xt as formatBookingSchedulePresentation, Yt as getContainerClass, Zt as CardListContentPart, _n as staticHeaderChromeRuntime, _t as offeringsListingFor, an as Grid, at as DEFAULT_GROUP_CTA, bn as splitSiteChromePlacementClasses, bt as resolveOfferingsPreviewGroupCta, cn as eventWeekGroupingContext, dn as resolveEventSelection, dt as buildOfferingsPreviewListing, et as shopMembershipsShownCondition, f as eventCalendarBlockRuntime, ft as groupOfferingRunsByCourse, g as formBlockRuntime, gt as offeringRunLifecycle, h as buildFormInteractiveIslandProps, ht as normalizeOfferingsPreviewItemLimit, i as newsletterFormBlockRuntime, in as MediaNodeServer, it as publicProductsResponseSchema, jn as DEFAULT_MAILING_LIST_TARGETING, kn as parseMailingListPlacementTargeting, l as buildEventCalendarInteractiveIslandProps, n as buildNewsletterFormInteractiveIslandProps, nn as EventQuickFacts, nt as shopShowChoiceCondition, o as buildEventListingInteractiveIslandProps, on as buildEventListWeek, pn as recurringScheduleProjectionSchema, r as newsletterBlockSubmissionMessage, rt as storedShopShow, s as eventListingBlockRuntime, sn as eventListWeekDays, t as NEWSLETTER_SIGNUPS_PAUSED_MESSAGE, tt as shopPassesShownCondition, u as buildEventCalendarListingDisplay, ut as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, wn as formatEventPriceAmount, wt as listingEventCardProps, x as eventRegistrationBlockRuntime, xn as formatCoursePrice, xt as resolveOfferingsPreviewGroups, y as buildEventRegistrationInteractiveIslandProps, yt as readOfferingsGrouping, z as buildProductListInteractiveIslandProps, zt as normalizeEventVenueId } from "./newsletter-form.interactive-hzpkW9NQ.mjs";
3
3
  import { m as ok, p as err } from "./renderableMediaAssetAdmission-BsOWd9lf.mjs";
4
- import { C as publicEventsArraySchema, Cn as toUtcIsoDateTimeString, En as toBookingTimeZone, F as isEventCalendarDisplayMode, Gt as normalizeLocationAddressText, I as isEventCalendarListLayout, J as runtimeMediaSchema, Jt as publicLocationSchema, Kt as parseLocationValue, L as normalizeEventCalendarDisplayMode$1, M as eventCalendarVariantMeaning, P as isEventCalendarDefaultView, Q as mediaTypeDiscriminants, Qt as trimmedStringOrNull, R as resolveEventCalendarReadPlan, X as PUBLIC_FILE_FIELD_KINDS, Yt as toLocationCoordinates, Z as isDisplayMediaKind, _ as publicMembershipProductCollectionSchema, an as formatDateTimeRange, gn as compareLocalScheduleDates, j as eventCalendarListLayoutOptions, m as calendarWindowPageSchema, mn as toScheduledBookingDateTime, nn as formatDate, nt as arrangementModes, qt as projectPublicLocation, rn as formatDateRange, v as publicPassProductCollectionSchema, vn as getBookingLocalDateKey, wn as resolveBookingBusinessTimeZone, yn as getLocalScheduleDate, z as RichTextDocSchema } from "./src-ZSqRK3dD.mjs";
5
- import { Bo as formatEventRunDates, Cs as sanitizeHref, Do as RichText, Eo as isBlockButtonRole, Gs as resolveWholeSeriesBookingPhase, Hs as CANCELLED_SESSION_STATUS, Io as formatEventCompactDateRail, Ko as ImagePresets, Lo as formatEventDateParts, No as formatCalendarTitle, Oo as buildCalendarViewport, Ro as formatEventHourLabel, Uo as formatTime, Us as nextLiveRunSessionStartMs, Vo as formatEventTimeRange, Wo as groupEventsByDate, Ws as orderedLiveRunSessions, _i as resolveEventRegistrationScopedEvents, _o as formatTotalCapacity, ao as bookingPresentation, cc as isPublicEventPricingOptionDisplayable, co as eventVenuePlace, ds as asPartialObject, fc as publicEventPricingType, fi as closedRunCopy, fo as isBookableEvent, hi as normalizeEventRegistrationPageSurfaceSubject, ho as formatEventRemainingPlaces, ji as buildBookingFormInteractiveIslandProps, jo as eventDateOptions, ki as groupPublicEventsByRun, lc as publicEventPricingCurrency, lo as formatEventLocation, mc as resolvePricingOptionsPriceDisplay, nc as EVENT_ADDRESS_AFTER_BOOKING_LABEL, ns as resolvePublicMediaUrl, oc as formatBookingPriceDisplay, oo as eventOnlinePlace, pc as resolveExactOrFreePriceDisplay, uc as publicEventPricingDisplay, uo as resolveRuntimeEventDestination, vo as getEventAvailability, wo as BLOCK_BUTTON_ROLE_OPTIONS, ws as parseAspectRatioValue, xo as isEventFull, yo as getEventAvailabilityStatus } from "./wizardSteps-BliJOzEX.mjs";
6
- import { c as MonthLookView, d as buildMonthDay, f as resolveMonthSelectedDay, i as WeekAgendaView, o as CombinedLookFrame, p as formatEventDuration, u as CalendarDayHeaders } from "./CalendarNavigationChevron-BGCX3zwG.mjs";
4
+ import { $ as mediaTypeDiscriminants, A as eventCalendarListGroupingDecision, B as RichTextDocSchema, C as publicEventsArraySchema, Cn as toUtcIsoDateTimeString, Dt as eventCalendarDisplayModeValues, En as toBookingTimeZone, F as isEventCalendarDefaultView, Gt as normalizeLocationAddressText, I as isEventCalendarDisplayMode, Jt as publicLocationSchema, Kt as parseLocationValue, L as isEventCalendarListLayout, M as eventCalendarLookViews, N as eventCalendarVariantMeaning, Q as isDisplayMediaKind, Qt as trimmedStringOrNull, R as normalizeEventCalendarDisplayMode$1, Y as runtimeMediaSchema, Yt as toLocationCoordinates, Z as PUBLIC_FILE_FIELD_KINDS, _ as publicMembershipProductCollectionSchema, an as formatDateTimeRange, gn as compareLocalScheduleDates, j as eventCalendarListLayoutOptions, m as calendarWindowPageSchema, mn as toScheduledBookingDateTime, nn as formatDate, qt as projectPublicLocation, rn as formatDateRange, rt as arrangementModes, v as publicPassProductCollectionSchema, vn as getBookingLocalDateKey, wn as resolveBookingBusinessTimeZone, yn as getLocalScheduleDate, z as resolveEventCalendarReadPlan } from "./src-Do_s2lqH.mjs";
5
+ import { $o as groupEventsByDate, $s as orderedLiveRunSessions, Ao as isEventFull, Bo as eventDateOptions, Cc as resolvePricingOptionsPriceDisplay, Ci as isDropInPublicEvent, Do as getEventAvailability, Eo as formatTotalCapacity, Fi as buildBookingFormInteractiveIslandProps, Fo as isBlockButtonRole, Go as formatEventCompactDateRail, Ho as formatCalendarTitle, Io as RichText, Ko as formatEventDateParts, Lo as buildCalendarViewport, Ni as groupPublicEventsByRun, No as BLOCK_BUTTON_ROLE_OPTIONS, Ns as sanitizeHref, Oo as getEventAvailabilityStatus, Ps as parseAspectRatioValue, Qo as formatTime, Qs as nextLiveRunSessionStartMs, Sc as resolveExactOrFreePriceDisplay, Xo as formatEventTimeRange, Yo as formatEventRunDates, Zs as CANCELLED_SESSION_STATUS, _c as isPublicEventPricingOptionDisplayable, _o as resolveEventCta, bi as resolveEventRegistrationScopedEvents, bo as isBookableEvent, dc as EVENT_ADDRESS_AFTER_BOOKING_LABEL, ds as resolvePublicMediaUrl, ec as resolveWholeSeriesBookingPhase, fo as eventVenuePlace, go as resolveEventCardBooking, hc as formatBookingPriceDisplay, ho as eventDestinationPagePath, lo as bookingPresentation, pi as closedRunCopy, po as formatEventLocation, qo as formatEventHourLabel, ts as ImagePresets, uo as eventOnlinePlace, vc as publicEventPricingCurrency, vi as normalizeEventRegistrationPageSurfaceSubject, vo as resolveEventPageLink, wo as formatEventRemainingPlaces, xc as publicEventPricingType, xs as asPartialObject, yc as publicEventPricingDisplay, yo as resolveRuntimeEventDestination } from "./wizardSteps-DDvL3iza.mjs";
6
+ import { c as MonthLookView, d as buildMonthDay, f as resolveMonthSelectedDay, i as WeekAgendaView, o as CombinedLookFrame, p as formatEventDuration, u as CalendarDayHeaders } from "./CalendarNavigationChevron-D7Wt-Oaa.mjs";
7
7
  import { h as assertNever$1 } from "./bookingCalendar--aWnqFDn.mjs";
8
8
  import { n as selectCategoryView } from "./appointment-service-categories-Cl2pqw-z.mjs";
9
- import { a as CalendarRecurringWeek, c as LinkNode, d as LocationMapView, f as MapDrawingSvg, i as buildWeekBoardViewProps, l as RichTextNode, m as LocationMapActions, n as WeekBoardView, o as RecurringSchedule, p as SvgNode, r as buildWeekBoardNavigationState, s as ButtonNode, t as buildTimetableModel, u as TextNode } from "./timetableModel-BQJrSK0K.mjs";
10
- import { Qt as arrangementSlotNames, R as compiledRuntimeStyleFieldNames, a as lookListPresentationSchemaShape, fn as cardVariantRoleValues, i as listLookSlot, n as listItemPresentation } from "./noop-Dl4mZ-rr.mjs";
11
- import { D as SYSTEM_BLOCK_KINDS } from "./types-BEaKfam_.mjs";
12
- import { B as resolveThemeColorReferenceValue, G as mergeStyles, H as backgroundColorStyle, K as rgbColorValue, q as textColorStyle, s as serializeSurfaceTree } from "./accessibleSurfaces-n6kS6Hct.mjs";
13
- import { l as DEFAULT_SECTION_SPACING, o as normalizeBoxStylesBorder, r as boxStyleClassNames, s as resolveCardRoleForBoxStyles } from "./boxStyleClassNames-BpGVdLFD.mjs";
14
- import { _ as FileTextIcon, b as SpinnerNode, c as ArrowDownIcon, d as CirclePlusIcon, g as FileSpreadsheetIcon, h as FileAudioIcon, i as ThemedDownloadLink, l as ChevronDownIcon, m as FileArchiveIcon, n as ThemedButton, o as getIconComponent, r as ThemedButtonLink, s as isSemanticIconId, u as CircleMinusIcon, v as MinusIcon, x as clsx, y as PlusIcon } from "./ThemedButton-PFOhXktM.mjs";
9
+ import { a as CalendarRecurringWeek, c as LinkNode, d as LocationMapView, f as MapDrawingSvg, i as buildWeekBoardViewProps, l as RichTextNode, m as LocationMapActions, n as WeekBoardView, o as RecurringSchedule, p as SvgNode, r as buildWeekBoardNavigationState, s as ButtonNode, t as buildTimetableModel, u as TextNode } from "./timetableModel-Dy3nNfTG.mjs";
10
+ import { G as compiledRuntimeStyleFieldNames, Tn as parseGradientPresetId, an as arrangementSlotNames, d as listLookSlot, f as lookListPresentationSchemaShape, l as listItemPresentation, ln as lookKnobBlocks, mt as getGradientPreset, pt as gradientToCss, xn as cardVariantRoleValues } from "./islands-DJDLGQEm.mjs";
11
+ import { I as parseThemeColorToken, R as SYSTEM_BLOCK_KINDS } from "./buttonParts-CJEtVOUy.mjs";
12
+ import { B as mergeStyles, F as resolveThemeColorReferenceValue, H as textColorStyle, L as backgroundColorStyle, V as rgbColorValue, s as serializeSurfaceTree } from "./accessibleSurfaces-wj4Rloo5.mjs";
13
+ import { l as DEFAULT_SECTION_SPACING, o as normalizeBoxStylesBorder, r as boxStyleClassNames, s as resolveCardRoleForBoxStyles } from "./boxStyleClassNames-CduDRcIk.mjs";
14
+ import { _ as FileTextIcon, b as SpinnerNode, c as ArrowDownIcon, d as CirclePlusIcon, g as FileSpreadsheetIcon, h as FileAudioIcon, i as ThemedDownloadLink, l as ChevronDownIcon, m as FileArchiveIcon, n as ThemedButton, o as getIconComponent, r as ThemedButtonLink, s as isSemanticIconId, u as CircleMinusIcon, v as MinusIcon, x as clsx, y as PlusIcon } from "./ThemedButton-Bc9DBbVp.mjs";
15
15
  import { a as carouselShape, c as getCarouselSlidesToShowCssVars, i as carouselRegionAttributes, l as normalizeSlidesToShow, n as arrangementCarouselSettings, r as carouselContents, t as CarouselSlideContent, u as resolveSlidesToShowMobile } from "./carousel.shared-BFQ3kBEw.mjs";
16
16
  import { d as formatDateKey, h as getWeekCalendarDayTuple, m as getOrderedDayNames } from "./src-uwCpbHXG.mjs";
17
- import { t as coerceRichTextDoc } from "./richText-coerce-CQGE_wHV.mjs";
18
- import { _ as resolveEventLinkProps, f as formatCourseSessions, g as resolveEventCta, h as resolveEventCardBooking, l as eventDisplayTitle, n as CardListItems, p as formatMoreDates, r as EventItem, u as eventDisplayTitleText } from "./EventItem-CwzrjcRw.mjs";
19
- import { i as resolvePublicEventDepositOffer, t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-CoOkvw__.mjs";
17
+ import { t as coerceRichTextDoc } from "./richText-coerce-ms477Z08.mjs";
18
+ import { f as formatCourseSessions, l as eventDisplayTitle, n as CardListItems, p as formatMoreDates, r as EventItem, u as eventDisplayTitleText } from "./EventItem-Fr2qi2C2.mjs";
19
+ import { i as resolvePublicEventDepositOffer, t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-C_8AxMdm.mjs";
20
20
  import { t as resolveDedicatedBookingHref } from "./bookingRoute-D6DlxYx6.mjs";
21
- import { n as BookingPanelArrangement } from "./StepIndicator-Dn_DY4oY.mjs";
22
- import { a as EventCard, i as EventCompactRow, r as EmptyState, t as EventListingFrameView } from "./EventListing.view-DZ0qMFF4.mjs";
21
+ import { n as BookingPanelArrangement } from "./StepIndicator-DvPekKeM.mjs";
22
+ import { a as planEventBookingPanel, c as EventBookingPanelView, i as RegistrationClosedState, l as decideBookedElsewhereDatesPage, o as registrationSourceForPanel, r as BookingEntryCard, s as resolveBookingPanelSelection, t as StepIndicator } from "./StepIndicator-DyXoI3ob.mjs";
23
+ import { a as EventCard, i as EventCompactRow, r as EmptyState, t as EventListingFrameView } from "./EventListing.view-COuEJzbO.mjs";
24
+ import { a as publicGiftingOffersResponseSchema, n as buildGiftingInteractiveIslandProps, r as giftingBlockRuntime } from "./gifting.interactive-D9MK4HkV.mjs";
23
25
  import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
24
- import { a as PassPurchaseUnavailable, c as ProductDetailView, d as ShopPurchaseAction, f as VariantSelectView, i as PassCardView, l as ProductGalleryFrameView, n as CheckoutShellView, o as PassesMembershipsSectionView, r as MembershipCardView, s as ProductCardView, t as CartShellView, u as ProductListSectionView } from "./view-CC_yQLSA.mjs";
25
- import { a as giftingEyebrow, n as GiftCardAmounts, o as giftingSlot, r as GiftingPanelHead } from "./gifting.parts-CedLgwa_.mjs";
26
- import { n as EventListWeekNavigation, t as EventListWeekEmptyState } from "./EventListWeekNavigation-ChvcnPma.mjs";
27
- import { a as planEventBookingPanel, c as EventBookingPanelView, i as RegistrationClosedState, o as registrationSourceForPanel, r as BookingEntryCard, s as resolveBookingPanelSelection, t as StepIndicator } from "./StepIndicator-atfDU82W.mjs";
28
- import { n as FormSubmitAction, t as FormFieldGroups } from "./form.parts-Ctljy1a3.mjs";
29
- import { a as partitionNewsletterFields, n as NewsletterSubmitRow, r as NewsletterTopicChips, t as NewsletterExtraField } from "./newsletter-form.parts-2petDnWv.mjs";
26
+ import { i as GiftingPanelHead, n as GiftCardAmounts, o as formatGiftAmount, r as GiftGroup, s as giftingSlot } from "./gifting.parts-CRtiRzo-.mjs";
27
+ import { a as PassPurchaseUnavailable, c as ProductDetailView, d as ShopPurchaseAction, f as VariantSelectView, i as PassCardView, l as ProductGalleryFrameView, n as CheckoutShellView, o as PassesMembershipsSectionView, r as MembershipCardView, s as ProductCardView, t as CartShellView, u as ProductListSectionView } from "./view-4gnPcpWJ.mjs";
28
+ import { n as EventListWeekNavigation, t as EventListWeekEmptyState } from "./EventListWeekNavigation-BRMaq0ky.mjs";
29
+ import { n as FormSubmitAction, t as FormFieldGroups } from "./form.parts-BLl9n8TH.mjs";
30
+ import { a as partitionNewsletterFields, n as NewsletterSubmitRow, r as NewsletterTopicChips, t as NewsletterExtraField } from "./newsletter-form.parts-CgzpSv9p.mjs";
30
31
  import React, { forwardRef } from "react";
31
32
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
32
33
  import { z } from "zod";
@@ -310,6 +311,19 @@ const linkSchema = z.union([
310
311
  //#region ../site-contracts/src/blocks/iconVocabulary.ts
311
312
  const ICON_PICKER_PRESETS = ["cta", "feature"];
312
313
  //#endregion
314
+ //#region ../site-contracts/src/blocks/editorData.ts
315
+ /** The values each fact can take, as data: the manifest schema and the condition check both read it. */
316
+ const CONDITION_FACT_VALUES = {
317
+ "catalogue.passes": ["none", "some"],
318
+ "catalogue.memberships": ["none", "some"]
319
+ };
320
+ function mapReadinessFact(fact, project) {
321
+ return fact.kind === "Loaded" ? {
322
+ kind: "Loaded",
323
+ value: project(fact.value)
324
+ } : fact;
325
+ }
326
+ //#endregion
313
327
  //#region ../site-contracts/src/blocks/fieldUi.ts
314
328
  const visibilityLevels = [
315
329
  "admin",
@@ -335,6 +349,28 @@ const mediaDeliverySchema = z.object({
335
349
  ]).optional(),
336
350
  strategyOptions: z.record(z.string(), z.unknown()).optional()
337
351
  });
352
+ /**
353
+ * The key each kind of condition is told apart by. A condition is exactly one
354
+ * kind, so it carries exactly one of these: two tests together are written as
355
+ * `allOf`, never as one object with two kinds' keys.
356
+ */
357
+ const CONDITION_KIND_KEYS = [
358
+ "field",
359
+ "fact",
360
+ "look",
361
+ "knob",
362
+ "template",
363
+ "observation",
364
+ "allOf",
365
+ "anyOf"
366
+ ];
367
+ const BLOCK_LOOK_STATES = ["applies", "none"];
368
+ /** The values each observation can include, as data: the manifest schema reads it. */
369
+ const BLOCK_OBSERVATION_VALUES = { "classPrices.items": [
370
+ "session",
371
+ "discount",
372
+ "passes"
373
+ ] };
338
374
  const visibleWhenPredicateSchema = z.object({
339
375
  field: z.string().min(1),
340
376
  equals: z.any().optional(),
@@ -342,13 +378,51 @@ const visibleWhenPredicateSchema = z.object({
342
378
  oneOf: z.array(z.any()).optional(),
343
379
  notIn: z.array(z.any()).optional(),
344
380
  minItems: z.number().int().nonnegative().optional(),
345
- maxItems: z.number().int().nonnegative().optional()
381
+ maxItems: z.number().int().nonnegative().optional(),
382
+ hasValue: z.boolean().optional()
383
+ });
384
+ const visibleWhenFactSchema = z.union([factPredicateSchema("catalogue.passes"), factPredicateSchema("catalogue.memberships")]);
385
+ function factPredicateSchema(fact) {
386
+ return z.strictObject({
387
+ fact: z.literal(fact),
388
+ is: z.enum(CONDITION_FACT_VALUES[fact])
389
+ });
390
+ }
391
+ const visibleWhenLookSchema = z.strictObject({ look: z.enum(BLOCK_LOOK_STATES) });
392
+ const lookKnobIds = Object.keys(lookKnobBlocks);
393
+ const visibleWhenKnobSchema = z.strictObject({
394
+ knob: z.enum(lookKnobIds),
395
+ oneOf: z.array(z.string()).min(1)
346
396
  });
347
- const visibleWhenSchema = z.lazy(() => z.union([
397
+ const visibleWhenTemplateSchema = z.strictObject({ template: z.enum(["product", "page"]) });
398
+ const visibleWhenObservationSchema = z.strictObject({
399
+ observation: z.literal("classPrices.items"),
400
+ includes: z.enum(BLOCK_OBSERVATION_VALUES["classPrices.items"])
401
+ });
402
+ /**
403
+ * A condition carries exactly one kind's key. Checked on the input, before any
404
+ * arm can strip the keys it doesn't know, so `{ field, equals, look }` is a
405
+ * declaration error rather than a field test that quietly lost its Look test.
406
+ */
407
+ function checkOneConditionKind(value, ctx) {
408
+ if (typeof value !== "object" || value === null) return;
409
+ const kinds = CONDITION_KIND_KEYS.filter((key) => key in value);
410
+ if (kinds.length <= 1) return;
411
+ ctx.addIssue({
412
+ code: "custom",
413
+ message: `A condition tests one thing, but this one has ${kinds.join(", ")}. Put each test in its own condition inside allOf.`
414
+ });
415
+ }
416
+ const visibleWhenSchema = z.lazy(() => z.unknown().superRefine(checkOneConditionKind).pipe(z.union([
417
+ visibleWhenFactSchema,
418
+ visibleWhenObservationSchema,
419
+ visibleWhenLookSchema,
420
+ visibleWhenKnobSchema,
421
+ visibleWhenTemplateSchema,
348
422
  visibleWhenPredicateSchema,
349
423
  z.object({ allOf: z.array(visibleWhenSchema).min(1) }),
350
424
  z.object({ anyOf: z.array(visibleWhenSchema).min(1) })
351
- ]));
425
+ ])));
352
426
  const uiSchema = z.object({
353
427
  widget: z.string().optional(),
354
428
  preset: z.enum(["disclosure"]).optional(),
@@ -892,7 +966,81 @@ const blockContentSourceSchema = z.object({
892
966
  message: "contentType is not allowed when contentSource.kind is \"inline\""
893
967
  });
894
968
  });
895
- z.array(z.string().min(1)).optional(), z.string().min(1).optional();
969
+ z.string().min(1).optional();
970
+ //#endregion
971
+ //#region ../site-contracts/src/blocks/editing.ts
972
+ const fieldPathSchema = z.string().min(1);
973
+ const phraseSchema = z.string().min(1);
974
+ const summaryPartSchema = z.union([
975
+ z.strictObject({
976
+ field: fieldPathSchema,
977
+ on: phraseSchema
978
+ }),
979
+ z.strictObject({
980
+ field: fieldPathSchema,
981
+ options: z.record(z.string(), phraseSchema.nullable())
982
+ }),
983
+ z.strictObject({
984
+ field: fieldPathSchema,
985
+ text: z.strictObject({
986
+ before: z.string().optional(),
987
+ after: z.string().optional(),
988
+ empty: phraseSchema.optional()
989
+ })
990
+ }),
991
+ z.strictObject({
992
+ field: fieldPathSchema,
993
+ set: phraseSchema,
994
+ unset: phraseSchema.optional()
995
+ }),
996
+ z.strictObject({
997
+ field: fieldPathSchema,
998
+ count: z.strictObject({
999
+ one: phraseSchema,
1000
+ many: phraseSchema
1001
+ })
1002
+ }),
1003
+ z.strictObject({
1004
+ field: fieldPathSchema,
1005
+ chosen: z.strictObject({
1006
+ fallback: phraseSchema,
1007
+ before: z.string().optional(),
1008
+ after: z.string().optional()
1009
+ })
1010
+ })
1011
+ ]);
1012
+ const editingGroupSchema = z.strictObject({
1013
+ /** Lower-case words joined by hyphens, so a declared id can't collide with a derived group's. */
1014
+ id: z.string().regex(/^[a-z][a-z0-9-]*$/u, "A group id is lower-case letters, numbers and hyphens"),
1015
+ title: z.string().min(1),
1016
+ fields: z.array(fieldPathSchema).min(1),
1017
+ summary: z.strictObject({
1018
+ parts: z.array(summaryPartSchema),
1019
+ none: phraseSchema
1020
+ })
1021
+ });
1022
+ const settingsSchema = z.array(z.union([fieldPathSchema, editingGroupSchema]));
1023
+ const blockEditingSchema = z.strictObject({
1024
+ content: z.array(fieldPathSchema),
1025
+ settings: settingsSchema,
1026
+ setup: z.array(fieldPathSchema).optional()
1027
+ });
1028
+ const blockEditingExtensionSchema = z.strictObject({
1029
+ content: z.array(fieldPathSchema).optional(),
1030
+ settings: settingsSchema.optional(),
1031
+ join: z.array(z.strictObject({
1032
+ group: z.string().min(1),
1033
+ fields: z.array(fieldPathSchema).min(1),
1034
+ summary: z.array(summaryPartSchema).optional()
1035
+ })).optional(),
1036
+ setup: z.array(fieldPathSchema).optional()
1037
+ });
1038
+ blockEditingSchema.optional();
1039
+ blockEditingExtensionSchema.optional();
1040
+ /** Every path a declaration places, in order: content, then settings with each group's fields. */
1041
+ function placedEditingPaths(editing) {
1042
+ return [...editing.content, ...editing.settings.flatMap((entry) => typeof entry === "string" ? [entry] : entry.fields)];
1043
+ }
896
1044
  //#endregion
897
1045
  //#region ../site-contracts/src/blocks/nodes.ts
898
1046
  const transformStepSchema = z.object({
@@ -1013,6 +1161,83 @@ const nodeTreeSchema = z.union([z.array(nodeSchema), nodeSchema]);
1013
1161
  const NodeSchema = nodeSchema;
1014
1162
  const NodeTreeSchema = nodeTreeSchema;
1015
1163
  //#endregion
1164
+ //#region ../theme-core/src/site-styles/sectionGround.ts
1165
+ /** A section that declares no ground of its own sits on the page background. */
1166
+ const pageGround = { fallback: requireGroundToken("background") };
1167
+ /** A section's declared ground. A non-token fallback is a layout bug, so it throws when the layout is built. */
1168
+ function sectionGround(fallback) {
1169
+ return { fallback: requireGroundToken(fallback) };
1170
+ }
1171
+ /**
1172
+ * The one paint decision for a ground: the background layer paints from it,
1173
+ * and boundary and seam composition classify from it. A colour that is unset
1174
+ * or blank, a gradient with nothing to draw, or no background at all paints
1175
+ * the fallback.
1176
+ */
1177
+ function groundPaint(background, fallback) {
1178
+ const fill = nonBlank(fallback);
1179
+ switch (background?.type) {
1180
+ case "color": {
1181
+ const colour = nonBlank(background.color);
1182
+ return colour ? {
1183
+ kind: "fill",
1184
+ colour
1185
+ } : fillOrBare(fill);
1186
+ }
1187
+ case "gradient": {
1188
+ const gradient = nonBlank(background.gradient) ?? gradientPresetCss(background.gradientPresetId);
1189
+ return gradient ? {
1190
+ kind: "gradient",
1191
+ gradient
1192
+ } : fillOrBare(fill);
1193
+ }
1194
+ case "image":
1195
+ case "video": return {
1196
+ kind: "media",
1197
+ fill
1198
+ };
1199
+ case void 0: return fillOrBare(fill);
1200
+ }
1201
+ }
1202
+ function fillOrBare(colour) {
1203
+ return colour ? {
1204
+ kind: "fill",
1205
+ colour
1206
+ } : { kind: "bare" };
1207
+ }
1208
+ function nonBlank(value) {
1209
+ return typeof value === "string" && value.trim().length > 0 ? value.trim() : null;
1210
+ }
1211
+ function gradientPresetCss(value) {
1212
+ const presetId = parseGradientPresetId(value);
1213
+ if (!presetId) return null;
1214
+ const preset = getGradientPreset(presetId);
1215
+ return gradientToCss(preset, Object.fromEntries(preset.stops.map((stop) => [stop.color, `rgb(var(--tb-${stop.color}))`])));
1216
+ }
1217
+ function requireGroundToken(value) {
1218
+ const token = parseThemeColorToken(value);
1219
+ if (!token) throw new Error(`A section ground must be a theme color token. Received: ${value}`);
1220
+ return token;
1221
+ }
1222
+ //#endregion
1223
+ //#region ../theme-core/src/site-styles/sectionPhoto.ts
1224
+ /**
1225
+ * A section photo, decided once. The block declares that it keeps one
1226
+ * (`sectionPhoto` on its manifest: the hero does); the authoring Look says how
1227
+ * it uses it; the current draft says whether there is one. Field visibility,
1228
+ * the Background row and the rich-background check all read these decisions
1229
+ * rather than guessing.
1230
+ */
1231
+ /** Where a section photo is stored: the image tab of the section's Background. */
1232
+ const sectionPhotoPath = "_sectionStyles.background.image";
1233
+ /** The photo a section keeps, wherever its background `type` points. */
1234
+ function storedSectionPhoto(content) {
1235
+ return readRecord(readRecord(readRecord(content._sectionStyles)?.background)?.image);
1236
+ }
1237
+ function readRecord(value) {
1238
+ return typeof value === "object" && value !== null && !Array.isArray(value) ? value : null;
1239
+ }
1240
+ //#endregion
1016
1241
  //#region ../theme-core/src/accordions/types.ts
1017
1242
  /**
1018
1243
  * Icon configuration mapping icon styles to Lucide icons and behavior
@@ -1635,101 +1860,34 @@ function eventScopeQuery(scope) {
1635
1860
  function eventScopeLoaderParam(query, key) {
1636
1861
  return key === "seriesIds" && query.seriesIds === "" ? [] : query[key];
1637
1862
  }
1638
- //#endregion
1639
- //#region ../blocks/src/system/blocks/events/eventCalendarDataLoaders.ts
1640
- const eventWeekReadScope = {
1641
- eventSurface: "custom",
1642
- eventPresets: "class",
1643
- scheduleScope: "any"
1644
- };
1645
- /** The section's event scope comes from resolveEventScope, the same owner readiness uses. */
1646
- const eventScopeLoaderParams = Object.fromEntries(eventScopeQueryKeys.map((key) => [key, { $bind: {
1647
- from: "content",
1648
- transforms: [{
1649
- id: "events.scopeParam",
1650
- options: { key }
1651
- }]
1652
- } }]));
1653
- const scopeParams = {
1654
- siteId: { $bind: { from: "$root.siteId" } },
1655
- stage: { $bind: {
1656
- from: "$root.previewStage",
1657
- fallback: "published"
1658
- } },
1659
- ...eventScopeLoaderParams
1660
- };
1661
- /** Each mode reads only what it paints first; see resolveEventCalendarReadPlan. */
1662
- const eventCalendarDataLoaders = {
1663
- schedule: {
1664
- endpoint: "listPublicRecurringSchedule",
1665
- when: { $bind: {
1666
- from: "content",
1667
- transforms: [{
1668
- id: "events.calendarReadEnabled",
1669
- options: { job: "schedule" }
1670
- }]
1671
- } },
1672
- params: {
1673
- siteId: scopeParams.siteId,
1674
- stage: scopeParams.stage,
1675
- limit: "100",
1676
- detailLevel: "listing",
1677
- readProfile: "compact-list",
1678
- ...eventWeekReadScope
1679
- },
1680
- mode: "server"
1681
- },
1682
- events: {
1683
- endpoint: "listPublicEvents",
1684
- when: { $bind: {
1685
- from: "content",
1686
- transforms: [{
1687
- id: "events.calendarReadEnabled",
1688
- options: { job: "list" }
1689
- }]
1690
- } },
1691
- params: {
1692
- ...scopeParams,
1693
- limit: 100,
1694
- detailLevel: "listing",
1695
- readProfile: "listing-card",
1696
- from: { $bind: {
1697
- from: "$root",
1698
- transforms: [{
1699
- id: "events.calendarListWindow",
1700
- options: { key: "from" }
1701
- }]
1702
- } },
1703
- to: { $bind: {
1704
- from: "$root",
1705
- transforms: [{
1706
- id: "events.calendarListWindow",
1707
- options: { key: "to" }
1708
- }]
1709
- } }
1710
- },
1711
- mode: "server"
1712
- },
1713
- calendarWindow: {
1714
- endpoint: "listPublicEventCalendarWindow",
1715
- when: { $bind: {
1716
- from: "content",
1717
- transforms: [{
1718
- id: "events.calendarReadEnabled",
1719
- options: { job: "calendar" }
1720
- }]
1721
- } },
1722
- params: {
1723
- ...scopeParams,
1724
- limit: 100,
1725
- readProfile: { $bind: {
1726
- from: "content",
1727
- transforms: [{ id: "events.calendarReadProfile" }]
1728
- } }
1729
- },
1730
- mode: "server"
1863
+ const weeklyScheduleRead = {
1864
+ shape: "weeklySchedule",
1865
+ query: {
1866
+ eventSurface: "custom",
1867
+ eventPresets: "class",
1868
+ scheduleScope: "any"
1731
1869
  }
1732
1870
  };
1871
+ /** A recurring schedule section always paints the weekly class schedule. */
1872
+ function recurringScheduleRead() {
1873
+ return weeklyScheduleRead;
1874
+ }
1875
+ /** The events a section's scope selects: the series an author picked, or whatever matches its filters. */
1876
+ function resolveEventScopeRead(content) {
1877
+ return {
1878
+ shape: "events",
1879
+ query: eventScopeQuery(resolveEventScope(content))
1880
+ };
1881
+ }
1882
+ /**
1883
+ * What an events calendar reads, decided by its display mode. Week paints the
1884
+ * fixed class schedule whatever the section's own scope says; every other mode
1885
+ * reads the section's scope. The calendar's loaders, readiness and "which pages
1886
+ * list this event" all take their query from here.
1887
+ */
1888
+ function resolveEventCalendarRead(content) {
1889
+ return resolveEventCalendarReadPlan(content).jobs === "schedule" ? weeklyScheduleRead : resolveEventScopeRead(content);
1890
+ }
1733
1891
  //#endregion
1734
1892
  //#region ../blocks/src/system/blocks/events/eventReadiness.ts
1735
1893
  const eventReadinessResultSchema = z.union([z.array(z.unknown()), recurringScheduleProjectionSchema]).transform((result) => Array.isArray(result) ? result.length > 0 : result.items.length > 0);
@@ -1744,23 +1902,24 @@ function blockChecksForEvents(content) {
1744
1902
  return content.emptyBehavior === "hide" || showsWhenNothingComingUp(content);
1745
1903
  }
1746
1904
  function eventReadinessLoaderKey(content) {
1747
- return resolveEventCalendarReadPlan(content).mode === "week" ? "schedule" : "readinessEvents";
1905
+ return resolveEventCalendarRead(content).shape === "weeklySchedule" ? "schedule" : "readinessEvents";
1748
1906
  }
1749
1907
  /**
1750
- * Week uses its existing projected schedule; other modes ignore displayed date
1751
- * windows but share the render loaders' event scope (see resolveEventScope).
1908
+ * Readiness reads what the calendar's loaders read (resolveEventCalendarRead):
1909
+ * Week its projected schedule, other modes their scope without the displayed
1910
+ * date windows.
1752
1911
  */
1753
1912
  function eventReadinessQuery(content) {
1754
- if (eventReadinessLoaderKey(content) === "schedule") return {
1755
- ...eventWeekReadScope,
1913
+ const read = resolveEventCalendarRead(showsWhenNothingComingUp(content) ? {
1914
+ ...content,
1915
+ eventSelection: "selected"
1916
+ } : content);
1917
+ return read.shape === "weeklySchedule" ? {
1918
+ ...read.query,
1756
1919
  limit: "100"
1757
- };
1758
- return {
1920
+ } : {
1759
1921
  limit: "1",
1760
- ...eventScopeQuery(resolveEventScope(showsWhenNothingComingUp(content) ? {
1761
- ...content,
1762
- eventSelection: "selected"
1763
- } : content))
1922
+ ...read.query
1764
1923
  };
1765
1924
  }
1766
1925
  /** A one-row existence read shares the public event selection and stage contracts. */
@@ -1977,7 +2136,7 @@ function devValidate(node) {
1977
2136
  }
1978
2137
  //#endregion
1979
2138
  //#region ../blocks/src/primitives/layout/Section.tsx
1980
- const Section = forwardRef(function Section({ as: Comp = "section", children, background, className = "", style, "data-slot": dataSlot, "data-arrangement": dataArrangement, "data-look": dataLook, "data-surface": dataSurface }, ref) {
2139
+ const Section = forwardRef(function Section({ as: Comp = "section", children, background, className = "", style, "data-slot": dataSlot, "data-arrangement": dataArrangement, "data-look": dataLook, "data-surface": dataSurface, "data-rb-section": geometryHook }, ref) {
1981
2140
  return /* @__PURE__ */ jsx(Comp, {
1982
2141
  ref,
1983
2142
  className: clsx("rb-relative rb-isolate rb-overflow-visible", className),
@@ -1986,6 +2145,7 @@ const Section = forwardRef(function Section({ as: Comp = "section", children, ba
1986
2145
  "data-surface": dataSurface,
1987
2146
  "data-arrangement": dataArrangement,
1988
2147
  "data-look": dataLook,
2148
+ "data-rb-section": geometryHook,
1989
2149
  children
1990
2150
  });
1991
2151
  });
@@ -3788,6 +3948,10 @@ function selectRelatedDates(input) {
3788
3948
  const dates = input.events.filter((event) => event.seriesId === input.seriesId).filter((event) => isWholeSeries || isFutureOrNow(event.startsAt, input.nowIso)).filter((event) => !selectedOccurrenceId || (event.occurrenceId || event.id) !== selectedOccurrenceId).sort((left, right) => Date.parse(left.startsAt) - Date.parse(right.startsAt));
3789
3949
  return isWholeSeries ? dates : dates.slice(0, input.limit);
3790
3950
  }
3951
+ /** The registration panel's own decision, read from the same scoped dates and clock. */
3952
+ function pageBookedElsewhere(events, occurrenceContext, nowIso) {
3953
+ return decideBookedElsewhereDatesPage(events, occurrenceContext?.id ?? null, new Date(nowIso));
3954
+ }
3791
3955
  function selectEventDetails(args) {
3792
3956
  const all = uniqByOccurrenceId(resolveEventRegistrationScopedEvents((args.events ?? []).filter(Boolean), {
3793
3957
  occurrenceContext: args.occurrenceContext,
@@ -3831,7 +3995,8 @@ function selectEventDetails(args) {
3831
3995
  selected,
3832
3996
  otherDates: otherDates.filter(isOrdinaryEvent),
3833
3997
  timeZone,
3834
- depositOffer: resolvePublicEventDepositOffer(selected, { nowIso: args.nowIso })
3998
+ depositOffer: resolvePublicEventDepositOffer(selected, { nowIso: args.nowIso }),
3999
+ bookedElsewhere: pageBookedElsewhere(all, occurrenceContext, args.nowIso)
3835
4000
  };
3836
4001
  }
3837
4002
  //#endregion
@@ -3987,13 +4152,12 @@ function occurrencePlaces(event) {
3987
4152
  //#region ../blocks/src/system/runtime/nodes/events/shared/eventCardListContent.ts
3988
4153
  /** Live offering data only; editorial cards never acquire booking fields. */
3989
4154
  function eventCardListContent(event, context, buttonText) {
3990
- const { content, external } = cardProjectionBase(event, buttonText, context);
4155
+ const content = cardProjectionBase(event, buttonText, context);
3991
4156
  switch (context.kind) {
3992
4157
  case "event-details": return {
3993
4158
  ...content,
3994
4159
  chips: offeringTypeChips(event),
3995
4160
  leadDate: null,
3996
- newTabHint: false,
3997
4161
  ...offeringSchedule(event)
3998
4162
  };
3999
4163
  case "catalogue":
@@ -4001,7 +4165,6 @@ function eventCardListContent(event, context, buttonText) {
4001
4165
  ...content,
4002
4166
  chips: offeringTypeChips(event, context.typeLabel),
4003
4167
  leadDate: offeringLeadDate(event, context.nextStartMs),
4004
- newTabHint: external,
4005
4168
  ...offeringSchedule(event, context.now),
4006
4169
  ...event.bookingScope === "whole_series" ? offeringRunDates(event, context.now) : {}
4007
4170
  };
@@ -4011,23 +4174,20 @@ function eventCardListContent(event, context, buttonText) {
4011
4174
  function cardProjectionBase(event, buttonText, context) {
4012
4175
  const offering = context.kind !== "event-details";
4013
4176
  const { cta, availability: places, closed } = cardBooking(event, buttonText, context);
4014
- const titleLink = resolveEventLinkProps(event);
4177
+ const titleLink = resolveEventPageLink(event);
4015
4178
  const { title, runName } = eventDisplayTitle(event);
4016
4179
  return {
4017
- external: cta.external,
4018
- content: {
4019
- id: event.occurrenceId || event.id,
4020
- title,
4021
- subtitle: runName,
4022
- ...titleLink.href ? { titleLink } : {},
4023
- quickFacts: event.facts,
4024
- text: event.presentation?.summary ?? event.description,
4025
- media: event.presentation?.image,
4026
- facts: offeringFacts(event, places?.label, offering),
4027
- availability: places,
4028
- action: cardAction(cta),
4029
- bookingClosed: closed ? cta.label : null
4030
- }
4180
+ id: event.occurrenceId || event.id,
4181
+ title,
4182
+ subtitle: runName,
4183
+ ...titleLink.href ? { titleLink } : {},
4184
+ quickFacts: event.facts,
4185
+ text: event.presentation?.summary ?? event.description,
4186
+ media: event.presentation?.image,
4187
+ facts: offeringFacts(event, places?.label, offering),
4188
+ availability: places,
4189
+ action: cardAction(cta),
4190
+ bookingClosed: closed ? cta.label : null
4031
4191
  };
4032
4192
  }
4033
4193
  /** Offering cards carry the render clock; an event's own details show its projected booking state. */
@@ -4135,7 +4295,7 @@ function offeringFacts(event, places, offering) {
4135
4295
  value: places,
4136
4296
  kind: "availability"
4137
4297
  }] : [],
4138
- ...offering && event.pricing.kind === "external" ? [] : [{
4298
+ ...event.pricing.kind === "external" ? [] : [{
4139
4299
  label: "Price",
4140
4300
  value: course ? formatCoursePrice(event.pricing) : formatEventPriceDisplay(event.pricing)
4141
4301
  }]
@@ -4195,7 +4355,11 @@ function regularSessionClock(sessions, event) {
4195
4355
  /** Project selected live data; booking decisions stay with the existing event owners. */
4196
4356
  function eventHeaderContent(selection, show) {
4197
4357
  const event = selection.selected;
4198
- const item = eventCardListContent(event, { kind: "event-details" });
4358
+ const card = eventCardListContent(event, { kind: "event-details" });
4359
+ const item = selection.kind === "ordinary" && selection.bookedElsewhere ? {
4360
+ ...card,
4361
+ ...bookedElsewhereAction(selection.bookedElsewhere)
4362
+ } : card;
4199
4363
  const groupSize = show.capacity ? formatTotalCapacity(event.capacity) : null;
4200
4364
  const { timeRange } = formatEventDateParts({
4201
4365
  startsAt: event.startsAt,
@@ -4211,6 +4375,7 @@ function eventHeaderContent(selection, show) {
4211
4375
  label: "Time",
4212
4376
  value: timeRange
4213
4377
  },
4378
+ ...laterBookingFact(event, selection),
4214
4379
  ...show.cost ? (item.facts ?? []).filter(({ label }) => label === "Price").map((fact) => withDepositNote(fact, selection)) : [],
4215
4380
  ...groupSize === null ? [] : [{
4216
4381
  label: "Group size",
@@ -4253,11 +4418,72 @@ function headerDateFact(selection) {
4253
4418
  value: date
4254
4419
  };
4255
4420
  }
4421
+ /**
4422
+ * Dates booked elsewhere take the page's shared booking decision, the one the
4423
+ * registration panel shows. A later booking date is named by
4424
+ * `laterBookingFact`, not in the button.
4425
+ */
4426
+ function bookedElsewhereAction(booking) {
4427
+ switch (booking.kind) {
4428
+ case "open": {
4429
+ const { destination } = booking;
4430
+ return {
4431
+ action: {
4432
+ label: destination.label,
4433
+ href: destination.url,
4434
+ external: true
4435
+ },
4436
+ bookingClosed: null
4437
+ };
4438
+ }
4439
+ case "closed": {
4440
+ const label = bookedElsewhereClosedLabel(booking.closure);
4441
+ return {
4442
+ action: { label },
4443
+ bookingClosed: label
4444
+ };
4445
+ }
4446
+ default: return assertNever$1(booking);
4447
+ }
4448
+ }
4449
+ /**
4450
+ * When the shared decision books a later date than the one described (today's
4451
+ * is past its cut-off), say which, so the button isn't read as booking today.
4452
+ * The button keeps the owner's own label ("Find out more", "Book via studio").
4453
+ */
4454
+ function laterBookingFact(described, selection) {
4455
+ const booking = selection.kind === "ordinary" ? selection.bookedElsewhere : null;
4456
+ if (booking?.kind !== "open" || booking.target.occurrenceId === described.occurrenceId) return [];
4457
+ return [{
4458
+ label: "Next date to book",
4459
+ value: shortDate(booking.target)
4460
+ }];
4461
+ }
4462
+ function shortDate(event) {
4463
+ return formatDate({
4464
+ kind: "instant",
4465
+ value: toUtcIsoDateTimeString(event.startsAt)
4466
+ }, eventDateOptions(event), {
4467
+ date: "short",
4468
+ weekday: "short",
4469
+ year: "omit"
4470
+ });
4471
+ }
4472
+ function bookedElsewhereClosedLabel(closure) {
4473
+ switch (closure.kind) {
4474
+ case "bookingClosed": return closure.detail.kind === "opensSoon" ? "Bookings open soon" : "Registration closed";
4475
+ case "date": return closure.closure.kind === "finished" ? "Completed" : "Registration closed";
4476
+ case "run": return closedRunCopy(closure.reason).titleText;
4477
+ case "datesCutOff":
4478
+ case "unavailable": return "Registration closed";
4479
+ default: return assertNever$1(closure);
4480
+ }
4481
+ }
4256
4482
  /** A closed run says why here, at the top of the page, so the panel below doesn't repeat it. */
4257
4483
  function headerAction(selection, action) {
4258
- if (action.external) return action;
4259
- if (!selection.selected.requiresRegistration) return { label: "No registration required — just show up" };
4260
4484
  if (selection.kind === "wholeSeries" && selection.bookingPhase.kind === "closed") return { label: closedRunCopy(selection.bookingPhase.reason).titleText };
4485
+ if (action.external) return action;
4486
+ if (isDropInPublicEvent(selection.selected)) return { label: "No registration required — just show up" };
4261
4487
  if (!action.href) return action;
4262
4488
  return {
4263
4489
  ...action,
@@ -4306,8 +4532,10 @@ function EventHeader({ selection, presentation, showCost, showCapacity }) {
4306
4532
  "aria-label": "At a glance",
4307
4533
  children: part("facts")
4308
4534
  }),
4309
- part("availability"),
4310
- part("action")
4535
+ item.availability || item.action ? /* @__PURE__ */ jsxs("div", {
4536
+ ...listLookSlot(presentation, "booking"),
4537
+ children: [part("availability"), part("action")]
4538
+ }) : null
4311
4539
  ]
4312
4540
  }),
4313
4541
  part("numeral")
@@ -4317,7 +4545,8 @@ function EventHeader({ selection, presentation, showCost, showCapacity }) {
4317
4545
  const eventHeaderSlotParents = {
4318
4546
  frame: null,
4319
4547
  copy: "frame",
4320
- availability: "copy",
4548
+ booking: "copy",
4549
+ availability: "booking",
4321
4550
  "item-media": "frame"
4322
4551
  };
4323
4552
  //#endregion
@@ -4349,15 +4578,23 @@ const lookParts = {
4349
4578
  "track"
4350
4579
  ]
4351
4580
  }],
4352
- "block.event-details": [{
4353
- part: "title",
4354
- fields: ["showTitle"],
4355
- shownIn: ["details-panel"]
4356
- }, {
4357
- part: "description",
4358
- fields: ["showDescription"],
4359
- shownIn: ["details-panel"]
4360
- }]
4581
+ "block.event-details": [
4582
+ {
4583
+ part: "heading",
4584
+ fields: ["heading"],
4585
+ shownIn: ["details-panel"]
4586
+ },
4587
+ {
4588
+ part: "title",
4589
+ fields: ["showTitle"],
4590
+ shownIn: ["details-panel"]
4591
+ },
4592
+ {
4593
+ part: "description",
4594
+ fields: ["showDescription"],
4595
+ shownIn: ["details-panel"]
4596
+ }
4597
+ ]
4361
4598
  };
4362
4599
  /** Fields the arrangement leaves out. Nothing on an older style, where no arrangement Look shows the block. */
4363
4600
  function fieldsNotShownIn(blockKind, arrangement) {
@@ -4368,6 +4605,17 @@ function lookPartShown(blockKind, field, arrangement) {
4368
4605
  return !fieldsNotShownIn(blockKind, arrangement).includes(field);
4369
4606
  }
4370
4607
  //#endregion
4608
+ //#region ../blocks/src/system/runtime/nodes/event-details/detailSlots.ts
4609
+ function resolveDetailSlots(presentation) {
4610
+ return {
4611
+ detail: listLookSlot(presentation, "detail"),
4612
+ label: listLookSlot(presentation, "detail-label"),
4613
+ value: listLookSlot(presentation, "detail-value"),
4614
+ sessions: listLookSlot(presentation, "sessions"),
4615
+ session: listLookSlot(presentation, "session")
4616
+ };
4617
+ }
4618
+ //#endregion
4371
4619
  //#region ../blocks/src/system/runtime/nodes/events/shared/DateTimeTile.tsx
4372
4620
  /**
4373
4621
  * Shared tile content for displaying date and time range.
@@ -4393,19 +4641,25 @@ function wholeSeriesPriceOptions(pricing) {
4393
4641
  return pricing.kind === "tiered" ? pricing.options.filter((option) => option.isActive) : [];
4394
4642
  }
4395
4643
  /** The price, with any deposit option said beside it. */
4396
- function PriceLine({ price, depositNote }) {
4397
- return /* @__PURE__ */ jsxs("p", { children: [/* @__PURE__ */ jsx("strong", { children: price }), depositNote ? `, ${depositNote}` : null] });
4644
+ function PriceLine({ price, depositNote, valueSlot }) {
4645
+ return /* @__PURE__ */ jsxs("p", {
4646
+ ...valueSlot,
4647
+ children: [/* @__PURE__ */ jsx("strong", { children: price }), depositNote ? `, ${depositNote}` : null]
4648
+ });
4398
4649
  }
4399
- function WholeSeriesPricingDisplay({ pricing, depositNote, acceptedItems }) {
4650
+ function WholeSeriesPricingDisplay({ pricing, depositNote, acceptedItems, slots }) {
4400
4651
  const options = wholeSeriesPriceOptions(pricing);
4401
4652
  return /* @__PURE__ */ jsxs("div", {
4653
+ ...slots.detail,
4402
4654
  className: "rb-mt-6",
4403
4655
  children: [
4404
4656
  /* @__PURE__ */ jsx("div", {
4657
+ ...slots.label,
4405
4658
  className: "rb-label rb-mb-2",
4406
4659
  children: options.length > 1 ? "Pricing" : "Cost"
4407
4660
  }),
4408
4661
  options.length > 1 ? /* @__PURE__ */ jsx("div", {
4662
+ ...slots.value,
4409
4663
  className: "rb-flex rb-flex-col rb-gap-2",
4410
4664
  children: options.map((option) => /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsxs("strong", { children: [
4411
4665
  option.name,
@@ -4418,7 +4672,8 @@ function WholeSeriesPricingDisplay({ pricing, depositNote, acceptedItems }) {
4418
4672
  }) : null] }, option.id))
4419
4673
  }) : /* @__PURE__ */ jsx(PriceLine, {
4420
4674
  price: formatBookingPriceDisplay(publicEventPricingDisplay(pricing), { decimals: "auto" }),
4421
- depositNote
4675
+ depositNote,
4676
+ valueSlot: slots.value
4422
4677
  }),
4423
4678
  depositNote && options.length > 1 ? /* @__PURE__ */ jsxs("p", {
4424
4679
  className: "rb-caption rb-mt-1",
@@ -4465,13 +4720,16 @@ function TicketTypePriceList({ ticketTypes, currency }) {
4465
4720
  }, ticketType.id))
4466
4721
  });
4467
4722
  }
4468
- function EventPricingDetails({ isDropIn, wholeSeriesPricingDisplay, acceptedItems, eventCostLabel, depositNote, eventPricingCurrency, ticketTypes, autoApplyDiscount }) {
4723
+ function EventPricingDetails({ isDropIn, wholeSeriesPricingDisplay, acceptedItems, eventCostLabel, depositNote, eventPricingCurrency, ticketTypes, autoApplyDiscount, slots }) {
4469
4724
  if (isDropIn) return /* @__PURE__ */ jsxs("div", {
4725
+ ...slots.detail,
4470
4726
  className: "rb-mt-6",
4471
4727
  children: [/* @__PURE__ */ jsx("div", {
4728
+ ...slots.label,
4472
4729
  className: "rb-label rb-mb-2",
4473
4730
  children: "Registration"
4474
4731
  }), /* @__PURE__ */ jsx("p", {
4732
+ ...slots.value,
4475
4733
  className: "rb-caption status-muted",
4476
4734
  children: "No registration required - just show up"
4477
4735
  })]
@@ -4479,18 +4737,22 @@ function EventPricingDetails({ isDropIn, wholeSeriesPricingDisplay, acceptedItem
4479
4737
  if (wholeSeriesPricingDisplay) return /* @__PURE__ */ jsx(WholeSeriesPricingDisplay, {
4480
4738
  pricing: wholeSeriesPricingDisplay,
4481
4739
  depositNote,
4482
- acceptedItems: [...acceptedItems]
4740
+ acceptedItems: [...acceptedItems],
4741
+ slots
4483
4742
  });
4484
4743
  if (eventCostLabel) return /* @__PURE__ */ jsxs("div", {
4744
+ ...slots.detail,
4485
4745
  className: "rb-mt-6",
4486
4746
  children: [
4487
4747
  /* @__PURE__ */ jsx("div", {
4748
+ ...slots.label,
4488
4749
  className: "rb-label rb-mb-2",
4489
4750
  children: "Cost"
4490
4751
  }),
4491
4752
  /* @__PURE__ */ jsx(PriceLine, {
4492
4753
  price: eventCostLabel,
4493
- depositNote
4754
+ depositNote,
4755
+ valueSlot: slots.value
4494
4756
  }),
4495
4757
  autoApplyDiscount && eventPricingCurrency ? /* @__PURE__ */ jsx("p", {
4496
4758
  className: "rb-caption rb-mt-1",
@@ -4507,14 +4769,16 @@ function EventPricingDetails({ isDropIn, wholeSeriesPricingDisplay, acceptedItem
4507
4769
  ]
4508
4770
  });
4509
4771
  return acceptedItems.length > 0 ? /* @__PURE__ */ jsx("div", {
4772
+ ...slots.detail,
4510
4773
  className: "rb-mt-6",
4511
4774
  children: /* @__PURE__ */ jsxs("p", {
4775
+ ...slots.value,
4512
4776
  className: "rb-caption",
4513
4777
  children: ["You can also attend with: ", acceptedItems.join(", ")]
4514
4778
  })
4515
4779
  }) : null;
4516
4780
  }
4517
- function EventFacts({ selection, selected, venue, online, addressAfterBooking, teamMembers, pricing, showCapacity, lookSlots }) {
4781
+ function EventFacts({ selection, selected, venue, online, addressAfterBooking, teamMembers, pricing, showCapacity, lookSlots, slots }) {
4518
4782
  const { date, timeRange } = formatEventDateParts({
4519
4783
  startsAt: selected.startsAt,
4520
4784
  endsAt: selected.endsAt,
@@ -4525,34 +4789,51 @@ function EventFacts({ selection, selected, venue, online, addressAfterBooking, t
4525
4789
  ...listLookSlot({ lookSlots }, "facts"),
4526
4790
  className: "rb-flex rb-flex-col rb-gap-4",
4527
4791
  children: [
4528
- /* @__PURE__ */ jsxs("div", { children: [
4529
- /* @__PURE__ */ jsx("div", {
4530
- className: "rb-label rb-mb-2",
4531
- children: dateHeading
4532
- }),
4533
- /* @__PURE__ */ jsx("p", { children: /* @__PURE__ */ jsx("strong", { children: date }) }),
4534
- /* @__PURE__ */ jsx("p", {
4535
- className: "rb-caption",
4536
- children: timeRange
4537
- })
4538
- ] }),
4792
+ /* @__PURE__ */ jsxs("div", {
4793
+ ...slots.detail,
4794
+ children: [
4795
+ /* @__PURE__ */ jsx("div", {
4796
+ ...slots.label,
4797
+ className: "rb-label rb-mb-2",
4798
+ children: dateHeading
4799
+ }),
4800
+ /* @__PURE__ */ jsx("p", {
4801
+ ...slots.value,
4802
+ children: /* @__PURE__ */ jsx("strong", { children: date })
4803
+ }),
4804
+ /* @__PURE__ */ jsx("p", {
4805
+ className: "rb-caption",
4806
+ children: timeRange
4807
+ })
4808
+ ]
4809
+ }),
4539
4810
  /* @__PURE__ */ jsx(EventVenueFact, {
4540
4811
  venue,
4541
4812
  online,
4542
- addressAfterBooking
4813
+ addressAfterBooking,
4814
+ slots
4815
+ }),
4816
+ /* @__PURE__ */ jsx(EventTeacherFacts, {
4817
+ teamMembers,
4818
+ slots
4543
4819
  }),
4544
- /* @__PURE__ */ jsx(EventTeacherFacts, { teamMembers }),
4545
4820
  showCapacity && selected.capacity != null ? /* @__PURE__ */ jsxs("div", {
4821
+ ...slots.detail,
4546
4822
  className: "rb-mt-6",
4547
4823
  children: [/* @__PURE__ */ jsx("div", {
4824
+ ...slots.label,
4548
4825
  className: "rb-label rb-mb-2",
4549
4826
  children: "Places"
4550
- }), /* @__PURE__ */ jsx("p", { children: formatEventRemainingPlaces(selected) ?? formatTotalCapacity(selected.capacity) })]
4827
+ }), /* @__PURE__ */ jsx("p", {
4828
+ ...slots.value,
4829
+ children: formatEventRemainingPlaces(selected) ?? formatTotalCapacity(selected.capacity)
4830
+ })]
4551
4831
  }) : null,
4552
4832
  pricing,
4553
4833
  selection.kind === "wholeSeries" ? /* @__PURE__ */ jsx(BookingState, {
4554
4834
  phase: selection.bookingPhase,
4555
- event: selected
4835
+ event: selected,
4836
+ slots
4556
4837
  }) : null
4557
4838
  ]
4558
4839
  });
@@ -4561,23 +4842,33 @@ const eventOnlinePlaceShown = (event, showVenue) => showVenue ? eventOnlinePlace
4561
4842
  const hasEventPlaceFact = (event, showVenue) => showVenue && (Boolean(event.venue) || eventOnlinePlace(event) !== null || event.addressAfterBooking === true);
4562
4843
  const addressAfterBookingShown = (event, showVenue) => showVenue && event.addressAfterBooking === true;
4563
4844
  /** Where a venue would go: online, the owner's word that the address follows the booking, or nothing at all. */
4564
- function EventPlaceWithoutVenue({ online, addressAfterBooking }) {
4845
+ function EventPlaceWithoutVenue({ online, addressAfterBooking, slots }) {
4565
4846
  if (!online && !addressAfterBooking) return null;
4566
4847
  if (!online) return /* @__PURE__ */ jsxs("div", {
4848
+ ...slots.detail,
4567
4849
  className: "rb-mt-6",
4568
4850
  children: [/* @__PURE__ */ jsx("div", {
4851
+ ...slots.label,
4569
4852
  className: "rb-label rb-mb-2",
4570
4853
  children: "Venue"
4571
- }), /* @__PURE__ */ jsx("p", { children: /* @__PURE__ */ jsx("strong", { children: EVENT_ADDRESS_AFTER_BOOKING_LABEL }) })]
4854
+ }), /* @__PURE__ */ jsx("p", {
4855
+ ...slots.value,
4856
+ children: /* @__PURE__ */ jsx("strong", { children: EVENT_ADDRESS_AFTER_BOOKING_LABEL })
4857
+ })]
4572
4858
  });
4573
4859
  return /* @__PURE__ */ jsxs("div", {
4860
+ ...slots.detail,
4574
4861
  className: "rb-mt-6",
4575
4862
  children: [
4576
4863
  /* @__PURE__ */ jsx("div", {
4864
+ ...slots.label,
4577
4865
  className: "rb-label rb-mb-2",
4578
4866
  children: "Venue"
4579
4867
  }),
4580
- /* @__PURE__ */ jsx("p", { children: /* @__PURE__ */ jsx("strong", { children: online.mode === "online" ? "Online" : "In person or online" }) }),
4868
+ /* @__PURE__ */ jsx("p", {
4869
+ ...slots.value,
4870
+ children: /* @__PURE__ */ jsx("strong", { children: online.mode === "online" ? "Online" : "In person or online" })
4871
+ }),
4581
4872
  addressAfterBooking ? /* @__PURE__ */ jsxs("p", {
4582
4873
  className: "rb-caption",
4583
4874
  children: [EVENT_ADDRESS_AFTER_BOOKING_LABEL, "."]
@@ -4590,20 +4881,26 @@ function EventPlaceWithoutVenue({ online, addressAfterBooking }) {
4590
4881
  });
4591
4882
  }
4592
4883
  /** An online event says so where a venue would go; a hybrid one adds it under the venue. */
4593
- function EventVenueFact({ venue, online, addressAfterBooking }) {
4884
+ function EventVenueFact({ venue, online, addressAfterBooking, slots }) {
4594
4885
  if (!venue) return /* @__PURE__ */ jsx(EventPlaceWithoutVenue, {
4595
4886
  online,
4596
- addressAfterBooking
4887
+ addressAfterBooking,
4888
+ slots
4597
4889
  });
4598
4890
  const { place, addressWithBooking } = eventVenuePlace(venue);
4599
4891
  return /* @__PURE__ */ jsxs("div", {
4892
+ ...slots.detail,
4600
4893
  className: "rb-mt-6",
4601
4894
  children: [
4602
4895
  /* @__PURE__ */ jsx("div", {
4896
+ ...slots.label,
4603
4897
  className: "rb-label rb-mb-2",
4604
4898
  children: "Venue"
4605
4899
  }),
4606
- /* @__PURE__ */ jsx("p", { children: /* @__PURE__ */ jsx("strong", { children: venue.name }) }),
4900
+ /* @__PURE__ */ jsx("p", {
4901
+ ...slots.value,
4902
+ children: /* @__PURE__ */ jsx("strong", { children: venue.name })
4903
+ }),
4607
4904
  place ? /* @__PURE__ */ jsx("p", {
4608
4905
  className: "rb-caption",
4609
4906
  children: place
@@ -4622,13 +4919,16 @@ function EventVenueFact({ venue, online, addressAfterBooking }) {
4622
4919
  ]
4623
4920
  });
4624
4921
  }
4625
- function EventTeacherFacts({ teamMembers }) {
4922
+ function EventTeacherFacts({ teamMembers, slots }) {
4626
4923
  return teamMembers.length ? /* @__PURE__ */ jsxs("div", {
4924
+ ...slots.detail,
4627
4925
  className: "rb-mt-6",
4628
4926
  children: [/* @__PURE__ */ jsx("div", {
4927
+ ...slots.label,
4629
4928
  className: "rb-label rb-mb-2",
4630
4929
  children: "With"
4631
4930
  }), /* @__PURE__ */ jsx("div", {
4931
+ ...slots.value,
4632
4932
  className: "rb-flex rb-flex-col rb-gap-3",
4633
4933
  children: teamMembers.map((member) => /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("p", { children: /* @__PURE__ */ jsx(TeamMemberName, {
4634
4934
  name: member.name,
@@ -4662,15 +4962,20 @@ function runLifecycleLabel(lifecycle) {
4662
4962
  * the booking panel beside it says cancelled is the contradiction a visitor
4663
4963
  * actually notices.
4664
4964
  */
4665
- function BookingState({ phase, event }) {
4965
+ function BookingState({ phase, event, slots }) {
4666
4966
  return /* @__PURE__ */ jsxs("div", {
4967
+ ...slots.detail,
4667
4968
  className: "rb-mt-6",
4668
4969
  children: [
4669
4970
  /* @__PURE__ */ jsx("div", {
4971
+ ...slots.label,
4670
4972
  className: "rb-label rb-mb-2",
4671
4973
  children: "Booking"
4672
4974
  }),
4673
- /* @__PURE__ */ jsx("p", { children: /* @__PURE__ */ jsx("strong", { children: phase.kind === "closed" ? "Closed" : isEventFull(event) ? formatEventRemainingPlaces(event) : "Open" }) }),
4975
+ /* @__PURE__ */ jsx("p", {
4976
+ ...slots.value,
4977
+ children: /* @__PURE__ */ jsx("strong", { children: phase.kind === "closed" ? "Closed" : isEventFull(event) ? formatEventRemainingPlaces(event) : "Open" })
4978
+ }),
4674
4979
  phase.kind === "closed" ? /* @__PURE__ */ jsx("p", {
4675
4980
  className: "rb-caption",
4676
4981
  children: bookingClosedReason(phase.reason)
@@ -4696,16 +5001,19 @@ function bookingClosedReason(reason) {
4696
5001
  * the list and says so: dropping it would leave a visitor wondering whether
4697
5002
  * they had misremembered the dates.
4698
5003
  */
4699
- function SessionSchedule({ sessions, event }) {
5004
+ function SessionSchedule({ sessions, event, slots }) {
4700
5005
  if (sessions.length === 0) return null;
4701
5006
  return /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("div", {
5007
+ ...slots.label,
4702
5008
  className: "rb-label",
4703
5009
  children: "Session schedule"
4704
5010
  }), /* @__PURE__ */ jsx("div", {
5011
+ ...slots.sessions,
4705
5012
  className: "rb-mt-2 rb-tiles-grid",
4706
5013
  children: sessions.map((session) => {
4707
5014
  const cancelled = session.status === CANCELLED_SESSION_STATUS;
4708
5015
  return /* @__PURE__ */ jsxs("div", {
5016
+ ...slots.session,
4709
5017
  className: `rb-tile${cancelled ? " rb-tile--cancelled" : ""}`,
4710
5018
  children: [/* @__PURE__ */ jsx(DateTimeTile, {
4711
5019
  startsAt: session.startsAt,
@@ -4722,22 +5030,26 @@ function SessionSchedule({ sessions, event }) {
4722
5030
  })
4723
5031
  })] });
4724
5032
  }
4725
- function OtherEventDates({ selection }) {
5033
+ function OtherEventDates({ selection, slots }) {
4726
5034
  if (selection.kind === "empty") return null;
4727
5035
  if (selection.kind === "wholeSeries") return /* @__PURE__ */ jsx(SessionSchedule, {
4728
5036
  sessions: selection.sessions,
4729
- event: selection.selected
5037
+ event: selection.selected,
5038
+ slots
4730
5039
  });
4731
5040
  const dates = selection.otherDates;
4732
5041
  if (dates.length === 0) return null;
4733
5042
  return /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("div", {
5043
+ ...slots.label,
4734
5044
  className: "rb-label",
4735
5045
  children: "Other dates"
4736
5046
  }), /* @__PURE__ */ jsx("div", {
5047
+ ...slots.sessions,
4737
5048
  className: "rb-mt-2 rb-tiles-grid",
4738
5049
  children: dates.map((event) => /* @__PURE__ */ jsx("a", {
5050
+ ...slots.session,
4739
5051
  className: "rb-tile rb-tile--interactive",
4740
- ...resolveEventLinkProps(event),
5052
+ ...resolveEventPageLink(event),
4741
5053
  children: /* @__PURE__ */ jsx(DateTimeTile, {
4742
5054
  startsAt: event.startsAt,
4743
5055
  endsAt: event.endsAt,
@@ -4772,7 +5084,7 @@ function EventVenueMap({ venue, drawing, showMap, mapHeight, mapClassName }) {
4772
5084
  /** One pricing projection governs the selected panel, including drop-in and whole-series behavior. */
4773
5085
  function selectedEventPricing(selection, showCost) {
4774
5086
  const event = selection.selected;
4775
- const isDropIn = isDropInEvent(event);
5087
+ const isDropIn = isDropInPublicEvent(event);
4776
5088
  const wholeSeriesPricing = wholeSeriesPricingOf(event);
4777
5089
  const showEventCost = showCost && !isDropIn && wholeSeriesPricing === null;
4778
5090
  return {
@@ -4784,7 +5096,6 @@ function selectedEventPricing(selection, showCost) {
4784
5096
  ticketTypes: showEventCost && isPaid(event) ? getDisplayablePricingOptions(event) : []
4785
5097
  };
4786
5098
  }
4787
- const isDropInEvent = (event) => event.bookingScope === "single_occurrence" && event.requiresRegistration === false;
4788
5099
  const wholeSeriesPricingOf = (event) => event.bookingScope === "whole_series" && event.pricing.kind !== "external" ? event.pricing : null;
4789
5100
  const isPaid = (event) => publicEventPricingType(event.pricing) !== "free";
4790
5101
  function SelectedEventDetailsView(props) {
@@ -4807,6 +5118,7 @@ function SelectedEventDetailsView(props) {
4807
5118
  className: "rb-grid rb-grid-cols-1 rb-gap-6 rb-items-start rb-sm-grid-cols-2",
4808
5119
  children: [/* @__PURE__ */ jsx(EventFacts, {
4809
5120
  lookSlots: props.lookSlots,
5121
+ slots: props.slots,
4810
5122
  selection,
4811
5123
  selected,
4812
5124
  venue,
@@ -4817,7 +5129,8 @@ function SelectedEventDetailsView(props) {
4817
5129
  pricing: /* @__PURE__ */ jsx(EventPricingDetails, {
4818
5130
  ...pricing,
4819
5131
  acceptedItems,
4820
- autoApplyDiscount: props.autoApplyDiscount ?? null
5132
+ autoApplyDiscount: props.autoApplyDiscount ?? null,
5133
+ slots: props.slots
4821
5134
  })
4822
5135
  }), /* @__PURE__ */ jsx(EventVenueMap, {
4823
5136
  venue,
@@ -4827,7 +5140,10 @@ function SelectedEventDetailsView(props) {
4827
5140
  drawing: props.selectedVenueDrawing
4828
5141
  })]
4829
5142
  }),
4830
- showOtherDates ? /* @__PURE__ */ jsx(OtherEventDates, { selection }) : null
5143
+ showOtherDates ? /* @__PURE__ */ jsx(OtherEventDates, {
5144
+ selection,
5145
+ slots: props.slots
5146
+ }) : null
4831
5147
  ]
4832
5148
  });
4833
5149
  }
@@ -4838,6 +5154,7 @@ function LegacyEventDetailsView(props) {
4838
5154
  });
4839
5155
  return /* @__PURE__ */ jsx(SelectedEventDetailsView, {
4840
5156
  lookSlots: props.lookSlots,
5157
+ slots: resolveDetailSlots(props),
4841
5158
  selection: props.selection,
4842
5159
  showVenue: props.showVenue,
4843
5160
  showMap: props.showMap,
@@ -4887,34 +5204,48 @@ function EventDetailsView(input) {
4887
5204
  function EventHeaderPanel(props) {
4888
5205
  const content = headerPanelContent(props);
4889
5206
  if (!content.hasFacts && !content.hasMap && !content.hasDates) return null;
5207
+ const slots = resolveDetailSlots(props);
4890
5208
  return /* @__PURE__ */ jsx("div", {
4891
5209
  ...listLookSlot(props, "panel"),
4892
5210
  children: /* @__PURE__ */ jsxs("div", {
4893
5211
  className: "rb-flex rb-flex-col rb-gap-6 rb-text-left",
4894
5212
  children: [content.hasFacts || content.hasMap ? /* @__PURE__ */ jsxs("div", {
4895
5213
  className: "rb-grid rb-grid-cols-1 rb-gap-6 rb-items-start rb-sm-grid-cols-2",
4896
- children: [content.hasFacts ? /* @__PURE__ */ jsx(HeaderPanelFacts, { ...content }) : null, /* @__PURE__ */ jsx(EventVenueMap, {
5214
+ children: [content.hasFacts ? /* @__PURE__ */ jsx(HeaderPanelFacts, {
5215
+ ...content,
5216
+ slots
5217
+ }) : null, /* @__PURE__ */ jsx(EventVenueMap, {
4897
5218
  venue: content.venue,
4898
5219
  showMap: props.showMap,
4899
5220
  drawing: props.selectedVenueDrawing,
4900
5221
  mapHeight: props.mapHeight ?? 200,
4901
5222
  mapClassName: props.mapClassName ?? "event-details-map"
4902
5223
  })]
4903
- }) : null, content.hasDates ? /* @__PURE__ */ jsx(OtherEventDates, { selection: props.selection }) : null]
5224
+ }) : null, content.hasDates ? /* @__PURE__ */ jsx(OtherEventDates, {
5225
+ selection: props.selection,
5226
+ slots
5227
+ }) : null]
4904
5228
  })
4905
5229
  });
4906
5230
  }
4907
- function HeaderPanelFacts({ venue, online, addressAfterBooking, teamMembers, pricing }) {
5231
+ function HeaderPanelFacts({ venue, online, addressAfterBooking, teamMembers, pricing, slots }) {
4908
5232
  return /* @__PURE__ */ jsxs("div", {
4909
5233
  className: "rb-flex rb-flex-col rb-gap-4",
4910
5234
  children: [
4911
5235
  /* @__PURE__ */ jsx(EventVenueFact, {
4912
5236
  venue,
4913
5237
  online,
4914
- addressAfterBooking
5238
+ addressAfterBooking,
5239
+ slots
4915
5240
  }),
4916
- /* @__PURE__ */ jsx(EventTeacherFacts, { teamMembers }),
4917
- pricing ? /* @__PURE__ */ jsx(EventPricingDetails, { ...pricing }) : null
5241
+ /* @__PURE__ */ jsx(EventTeacherFacts, {
5242
+ teamMembers,
5243
+ slots
5244
+ }),
5245
+ pricing ? /* @__PURE__ */ jsx(EventPricingDetails, {
5246
+ ...pricing,
5247
+ slots
5248
+ }) : null
4918
5249
  ]
4919
5250
  });
4920
5251
  }
@@ -5288,7 +5619,7 @@ function EventQuickDateCard(props) {
5288
5619
  className: "event-quick-date-title",
5289
5620
  children: /* @__PURE__ */ jsx("a", {
5290
5621
  className: "event-title-link",
5291
- ...resolveEventLinkProps(event),
5622
+ ...resolveEventPageLink(event),
5292
5623
  children: event.title
5293
5624
  })
5294
5625
  }),
@@ -6100,6 +6431,27 @@ function sectionStylesField(options = {}) {
6100
6431
  function containerStylesField(options = {}) {
6101
6432
  return createBoxStylesFieldWithDepth("container", options);
6102
6433
  }
6434
+ /**
6435
+ * Container styles a block stores but never draws, kept so its stored values
6436
+ * still validate, and not offered in the editor. For blocks that used to take
6437
+ * `includeContainerStyles` without reading it (the audio player and the file
6438
+ * download), until production is checked for stored values.
6439
+ */
6440
+ function unreadContainerStylesField() {
6441
+ const field = containerStylesField({
6442
+ id: "_containerStyles",
6443
+ label: "Container styles",
6444
+ renderInHeader: true,
6445
+ intent: "style"
6446
+ });
6447
+ return {
6448
+ ...field,
6449
+ ui: {
6450
+ ...field.ui ?? {},
6451
+ hidden: true
6452
+ }
6453
+ };
6454
+ }
6103
6455
  function cardStylesField(options = {}) {
6104
6456
  if (options.controls === "role-only") return createRoleOnlyCardStylesField(options);
6105
6457
  return createBoxStylesFieldWithDepth("card", options);
@@ -6186,14 +6538,29 @@ const eventDisplayFields = [
6186
6538
  {
6187
6539
  id: "showCapacity",
6188
6540
  type: "boolean",
6189
- label: "Show available places",
6190
- description: "Shows how many places are left.",
6541
+ label: "Show places left",
6542
+ description: "How many places are left on each event.",
6191
6543
  required: false,
6192
6544
  defaultValue: true,
6193
6545
  ui: { intent: "behavior" }
6194
6546
  }
6195
6547
  ];
6196
6548
  /**
6549
+ * The map switch hidden. A list or spotlight card is never handed a map to
6550
+ * draw (`EventCard` draws one only with a `mapSlot`, which no list passes),
6551
+ * so the switch can't do anything there. It stays in the manifest because
6552
+ * stored blocks and the SDK content type still carry `showMap`.
6553
+ */
6554
+ function withoutMap(field) {
6555
+ return field.id === "showMap" ? {
6556
+ ...field,
6557
+ ui: {
6558
+ ...field.ui ?? {},
6559
+ hidden: true
6560
+ }
6561
+ } : field;
6562
+ }
6563
+ /**
6197
6564
  * Empty state field for when no events are available
6198
6565
  */
6199
6566
  const emptyStateField = {
@@ -6214,16 +6581,15 @@ const layoutField = {
6214
6581
  id: "layout",
6215
6582
  type: "select",
6216
6583
  label: "Layout",
6217
- description: "Choose how events are displayed",
6218
6584
  required: false,
6219
6585
  multiple: false,
6220
6586
  defaultValue: "grid",
6221
6587
  options: [{
6222
6588
  value: "grid",
6223
- label: "Grid (cards)"
6589
+ label: "Cards in a grid"
6224
6590
  }, {
6225
6591
  value: "stack",
6226
- label: "Stack (vertical list)"
6592
+ label: "One under another"
6227
6593
  }],
6228
6594
  ui: { intent: "display" }
6229
6595
  };
@@ -6238,7 +6604,6 @@ const columnsField = (options = [
6238
6604
  id: "columns",
6239
6605
  type: "select",
6240
6606
  label: "Columns",
6241
- description: "Number of columns in grid layout",
6242
6607
  required: false,
6243
6608
  multiple: false,
6244
6609
  defaultValue: "3",
@@ -6591,7 +6956,7 @@ function runDataFromMaybeArray(events) {
6591
6956
  items: [...groupPublicEventsByRun(events)].map((run) => ({
6592
6957
  kind: "run",
6593
6958
  run,
6594
- path: run.representative.destination.kind === "native" ? run.representative.destination.path : null
6959
+ path: eventDestinationPagePath(run.representative.destination)
6595
6960
  }))
6596
6961
  };
6597
6962
  }
@@ -7527,8 +7892,8 @@ function buildSlotCtaLabel(ctaText, slot) {
7527
7892
  }
7528
7893
  function WeeklySlotAvailabilityView({ availability, loading = false, error, emptyMessage, ctaText, ctaUrl }) {
7529
7894
  const slots = availability?.slots ?? [];
7530
- const resolvedEmptyMessage = emptyMessage ?? "No regular weekly openings are currently available.";
7531
- const resolvedCtaText = ctaText ?? "Enquire about this slot";
7895
+ const resolvedEmptyMessage = emptyMessage?.trim() || "No regular weekly openings are currently available.";
7896
+ const resolvedCtaText = ctaText?.trim() || "Enquire about this slot";
7532
7897
  const resolvedCtaUrl = typeof ctaUrl === "string" ? ctaUrl.trim() : "";
7533
7898
  return /* @__PURE__ */ jsxs("div", {
7534
7899
  className: "weekly-slot-availability",
@@ -7771,6 +8136,18 @@ function createBackgroundOverlayNode(path, className = "background-overlay rb-ab
7771
8136
  //#endregion
7772
8137
  //#region ../blocks/src/system/node/fragments/styledSection.ts
7773
8138
  /**
8139
+ * The geometry hook every styled section carries, whatever its Look or skin:
8140
+ * page-level spacing rules (section seams) target it, apart from the Look's
8141
+ * presentation slots, which come and go with the Look.
8142
+ */
8143
+ const styledSectionHook = { "data-rb-section": "" };
8144
+ /**
8145
+ * Where a styled section keeps the ground it declares. A symbol, so it is
8146
+ * never read as a prop, and it survives the spread copies node modifiers
8147
+ * (`when`, `props`) make.
8148
+ */
8149
+ const styledSectionGround = Symbol("styledSectionGround");
8150
+ /**
7774
8151
  * Create a styled section with automatic background layer and spacing bindings.
7775
8152
  *
7776
8153
  * This helper encapsulates the common pattern of:
@@ -7814,30 +8191,51 @@ function createBackgroundOverlayNode(path, className = "background-overlay rb-ab
7814
8191
  */
7815
8192
  function styledSection(config) {
7816
8193
  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;
8194
+ const ground = sectionGround(background);
7817
8195
  const renderedBackgroundNode = backgroundFrame(`${bindFrom}.background`, {
7818
8196
  ...config.backgroundLookSlots ? {
7819
8197
  frameSlot: "background",
7820
8198
  imageSlot: "photo"
7821
8199
  } : {},
7822
8200
  imageClassName,
7823
- fallbackToken: background,
8201
+ fallbackToken: ground.fallback,
7824
8202
  omitImageLayer: !renderBackgroundImage,
7825
8203
  imageLoading: backgroundImageLoading,
7826
8204
  imageFetchPriority: backgroundImageFetchPriority
7827
8205
  });
7828
8206
  const childrenArray = Array.isArray(children) ? children : [children];
7829
- return section(sectionAppearanceProps({
7830
- bindFrom,
7831
- background,
7832
- baseClass,
7833
- spacing,
7834
- fullWidthPath,
7835
- photoPaintsGround: renderBackgroundImage,
7836
- skinSlot: config.skinSlot
7837
- }), [renderedBackgroundNode, ...childrenArray]);
8207
+ return {
8208
+ ...section(sectionAppearanceProps({
8209
+ bindFrom,
8210
+ background: ground.fallback,
8211
+ baseClass,
8212
+ spacing,
8213
+ fullWidthPath,
8214
+ photoPaintsGround: renderBackgroundImage,
8215
+ skinSlot: config.skinSlot
8216
+ }), [renderedBackgroundNode, ...childrenArray]),
8217
+ [styledSectionGround]: ground
8218
+ };
8219
+ }
8220
+ function isStyledSectionNode(node) {
8221
+ return styledSectionGround in node;
8222
+ }
8223
+ /**
8224
+ * The ground a block layout's section declares, when its root is a styled
8225
+ * section: then the platform paints the section and owns its padding. Null
8226
+ * for a layout that draws its own root (the header, footer or blog post),
8227
+ * or whose alternative roots declare different grounds.
8228
+ */
8229
+ function layoutSectionGround(layout) {
8230
+ if (!layout) return null;
8231
+ const [first, ...rest] = Array.isArray(layout) ? layout : [layout];
8232
+ if (!first || !isStyledSectionNode(first)) return null;
8233
+ const ground = first[styledSectionGround];
8234
+ return rest.every((root) => isStyledSectionNode(root) && root[styledSectionGround].fallback === ground.fallback) ? ground : null;
7838
8235
  }
7839
8236
  function sectionAppearanceProps(input) {
7840
8237
  return {
8238
+ ...styledSectionHook,
7841
8239
  ...input.skinSlot ? lookSlot(input.skinSlot, "skin") : lookSlot("section"),
7842
8240
  "data-arrangement": { $bind: { from: "content._lookHooks.data-arrangement" } },
7843
8241
  style: { $bind: {
@@ -8125,13 +8523,6 @@ z.object({
8125
8523
  styleTokens: styleTokenSchema.optional(),
8126
8524
  behaviours: behaviourSchema.optional(),
8127
8525
  layout: NodeTreeSchema.optional(),
8128
- /**
8129
- * Optional list of nested field paths that should be surfaced in the main form body
8130
- * as "shortcuts" (render-only). These paths should refer to existing data within the
8131
- * block content object (e.g. `_sectionStyles.background.image`).
8132
- *
8133
- * The original fields remain available in settings for power users.
8134
- */
8135
8526
  lookField: z.string().min(1).optional(),
8136
8527
  sourceLine: z.object({
8137
8528
  text: z.string(),
@@ -8145,7 +8536,15 @@ z.object({
8145
8536
  equals: z.string()
8146
8537
  }).optional()
8147
8538
  }).optional(),
8148
- promotedFields: z.array(z.string().min(1)).optional(),
8539
+ /**
8540
+ * The block keeps a section photo, stored at `path` in its section's
8541
+ * Background. Whether the Photo field shows is then the Look's and the
8542
+ * draft's call (`decideSectionPhoto`); where it sits in the form is
8543
+ * `editing`'s, which must place the path.
8544
+ */
8545
+ sectionPhoto: z.strictObject({ path: z.literal(sectionPhotoPath) }).readonly().optional(),
8546
+ /** Where the block's fields go in its settings form: content, named groups and setup questions. */
8547
+ editing: blockEditingSchema.optional(),
8149
8548
  variantMeaning: z.discriminatedUnion("kind", [z.object({
8150
8549
  kind: z.literal("arrangement"),
8151
8550
  lookOnlyKeys: z.array(z.string().min(1)).readonly().optional()
@@ -8446,8 +8845,7 @@ const formCopyFragment = defineFragment({
8446
8845
  }, {
8447
8846
  id: "intro",
8448
8847
  type: "richText",
8449
- label: "Intro",
8450
- description: "Optional introduction above the form."
8848
+ label: "Introduction"
8451
8849
  }],
8452
8850
  layout: [text({
8453
8851
  as: "h2",
@@ -8486,14 +8884,14 @@ const formEmbedFragment = defineFragment({
8486
8884
  {
8487
8885
  id: "submitLabel",
8488
8886
  type: "text",
8489
- label: "Submit button label",
8490
- defaultValue: "Submit"
8887
+ label: "Button text",
8888
+ description: "Leave it empty to use the form's own."
8491
8889
  },
8492
8890
  {
8493
8891
  id: "successMessage",
8494
8892
  type: "text",
8495
- label: "Success message",
8496
- description: "What visitors see after they've sent the form."
8893
+ label: "Message after sending",
8894
+ description: "What visitors see after they've sent the form. Leave it empty to use the form's own."
8497
8895
  }
8498
8896
  ],
8499
8897
  layout: [form(withApiBindings({
@@ -8526,8 +8924,7 @@ const newsletterCopyFragment = defineFragment({
8526
8924
  }, {
8527
8925
  id: "subtitle",
8528
8926
  type: "richText",
8529
- label: "Subtitle",
8530
- description: "Optional description below the title."
8927
+ label: "Introduction"
8531
8928
  }],
8532
8929
  layout: [text({
8533
8930
  as: "h2",
@@ -8757,7 +9154,8 @@ function createBlockManifest(config) {
8757
9154
  variantOptions: config.variantOptions,
8758
9155
  lookField: config.lookField,
8759
9156
  sourceLine: config.sourceLine,
8760
- promotedFields: config.promotedFields ? [...config.promotedFields] : void 0
9157
+ sectionPhoto: config.sectionPhoto,
9158
+ editing: config.editing
8761
9159
  });
8762
9160
  }
8763
9161
  function createBlockManifestWithContentShape(config, _contentShape) {
@@ -8819,6 +9217,14 @@ const cartBlockDefinition = {
8819
9217
  titleSource: "heading",
8820
9218
  description: "Shows what a visitor has in their cart.",
8821
9219
  skipSectionStyles: true,
9220
+ editing: {
9221
+ content: ["heading"],
9222
+ settings: [
9223
+ "checkoutButtonText",
9224
+ "clearButtonText",
9225
+ "emptyStateText"
9226
+ ]
9227
+ },
8822
9228
  additionalFields: [
8823
9229
  {
8824
9230
  id: "heading",
@@ -8831,7 +9237,7 @@ const cartBlockDefinition = {
8831
9237
  {
8832
9238
  id: "emptyStateText",
8833
9239
  type: "text",
8834
- label: "If there's nothing to show",
9240
+ label: "When the cart is empty",
8835
9241
  multiline: false,
8836
9242
  required: false,
8837
9243
  defaultValue: "Your cart is empty."
@@ -8839,7 +9245,7 @@ const cartBlockDefinition = {
8839
9245
  {
8840
9246
  id: "checkoutButtonText",
8841
9247
  type: "text",
8842
- label: "Checkout button text",
9248
+ label: "Button to check out",
8843
9249
  multiline: false,
8844
9250
  required: false,
8845
9251
  defaultValue: "Go to checkout"
@@ -8847,7 +9253,7 @@ const cartBlockDefinition = {
8847
9253
  {
8848
9254
  id: "clearButtonText",
8849
9255
  type: "text",
8850
- label: "Clear button text",
9256
+ label: "Button to empty the cart",
8851
9257
  multiline: false,
8852
9258
  required: false,
8853
9259
  defaultValue: "Clear cart"
@@ -8913,6 +9319,10 @@ const checkoutBlockDefinition = {
8913
9319
  titleSource: "heading",
8914
9320
  description: "Where visitors enter their details and pay for what's in their cart.",
8915
9321
  skipSectionStyles: true,
9322
+ editing: {
9323
+ content: ["heading"],
9324
+ settings: ["submitButtonText", "emptyStateText"]
9325
+ },
8916
9326
  additionalFields: [
8917
9327
  {
8918
9328
  id: "heading",
@@ -8925,7 +9335,8 @@ const checkoutBlockDefinition = {
8925
9335
  {
8926
9336
  id: "submitButtonText",
8927
9337
  type: "text",
8928
- label: "Submit button text",
9338
+ label: "Button text",
9339
+ description: "With a discount code applied, the button shows the amount to pay.",
8929
9340
  multiline: false,
8930
9341
  required: false,
8931
9342
  defaultValue: "Checkout"
@@ -8933,7 +9344,7 @@ const checkoutBlockDefinition = {
8933
9344
  {
8934
9345
  id: "emptyStateText",
8935
9346
  type: "text",
8936
- label: "If there's nothing to show",
9347
+ label: "When the cart is empty",
8937
9348
  multiline: false,
8938
9349
  required: false,
8939
9350
  defaultValue: "Add something to your cart to continue."
@@ -8999,11 +9410,22 @@ const giftingBlockDefinition = {
8999
9410
  titleSource: "heading",
9000
9411
  description: "Lets people buy gift cards and vouchers for someone else.",
9001
9412
  skipSectionStyles: true,
9413
+ editing: {
9414
+ content: ["heading", "intro"],
9415
+ settings: [
9416
+ "giftCardsHeading",
9417
+ "vouchersHeading",
9418
+ "checkoutButtonText",
9419
+ "successMessage",
9420
+ "emptyStateText"
9421
+ ]
9422
+ },
9002
9423
  additionalFields: [
9003
9424
  {
9004
9425
  id: "heading",
9005
9426
  type: "text",
9006
9427
  label: "Heading",
9428
+ description: "Leave it empty for “Gift cards & vouchers”.",
9007
9429
  required: false,
9008
9430
  multiline: false,
9009
9431
  defaultValue: "Gift cards & vouchers"
@@ -9011,7 +9433,7 @@ const giftingBlockDefinition = {
9011
9433
  {
9012
9434
  id: "intro",
9013
9435
  type: "text",
9014
- label: "Intro",
9436
+ label: "Introduction",
9015
9437
  required: false,
9016
9438
  multiline: true,
9017
9439
  defaultValue: "Choose a gift card or voucher and send it straight away or schedule it for later."
@@ -9019,7 +9441,8 @@ const giftingBlockDefinition = {
9019
9441
  {
9020
9442
  id: "giftCardsHeading",
9021
9443
  type: "text",
9022
- label: "Gift cards heading",
9444
+ label: "Gift card group heading",
9445
+ description: "Labels the gift card group, including when you also offer vouchers. Leave it empty to use Gift card or Gift cards, depending on how many you offer.",
9023
9446
  required: false,
9024
9447
  multiline: false,
9025
9448
  defaultValue: "Gift cards"
@@ -9027,7 +9450,8 @@ const giftingBlockDefinition = {
9027
9450
  {
9028
9451
  id: "vouchersHeading",
9029
9452
  type: "text",
9030
- label: "Vouchers heading",
9453
+ label: "Voucher group heading",
9454
+ description: "Labels the voucher group, including when you also offer gift cards. Leave it empty to use Voucher or Vouchers, depending on how many you offer.",
9031
9455
  required: false,
9032
9456
  multiline: false,
9033
9457
  defaultValue: "Vouchers"
@@ -9035,7 +9459,7 @@ const giftingBlockDefinition = {
9035
9459
  {
9036
9460
  id: "emptyStateText",
9037
9461
  type: "text",
9038
- label: "If there's nothing to show",
9462
+ label: "When nothing's on offer",
9039
9463
  required: false,
9040
9464
  multiline: false,
9041
9465
  defaultValue: "Nothing is available right now."
@@ -9043,18 +9467,18 @@ const giftingBlockDefinition = {
9043
9467
  {
9044
9468
  id: "checkoutButtonText",
9045
9469
  type: "text",
9046
- label: "Checkout button text",
9470
+ label: "Button under the gift details",
9047
9471
  required: false,
9048
9472
  multiline: false,
9049
- defaultValue: "Continue"
9473
+ defaultValue: "Continue to payment"
9050
9474
  },
9051
9475
  {
9052
9476
  id: "successMessage",
9053
9477
  type: "text",
9054
- label: "Success message",
9478
+ label: "Message after buying",
9055
9479
  required: false,
9056
9480
  multiline: false,
9057
- defaultValue: "Thanks. Your purchase is complete and your gift will be sent shortly."
9481
+ defaultValue: "Thanks, that's all paid for. We'll email the gift to them in the next few minutes."
9058
9482
  },
9059
9483
  sectionStylesField({
9060
9484
  id: "_sectionStyles",
@@ -9093,25 +9517,19 @@ const giftingBlockDefinition = {
9093
9517
  from: "content.intro",
9094
9518
  fallback: "Choose a gift card or voucher and send it straight away or schedule it for later."
9095
9519
  } },
9096
- giftCardsHeading: { $bind: {
9097
- from: "content.giftCardsHeading",
9098
- fallback: "Gift cards"
9099
- } },
9100
- vouchersHeading: { $bind: {
9101
- from: "content.vouchersHeading",
9102
- fallback: "Vouchers"
9103
- } },
9520
+ giftCardsHeading: { $bind: { from: "content.giftCardsHeading" } },
9521
+ vouchersHeading: { $bind: { from: "content.vouchersHeading" } },
9104
9522
  emptyStateText: { $bind: {
9105
9523
  from: "content.emptyStateText",
9106
9524
  fallback: "Nothing is available right now."
9107
9525
  } },
9108
9526
  checkoutButtonText: { $bind: {
9109
9527
  from: "content.checkoutButtonText",
9110
- fallback: "Continue"
9528
+ fallback: "Continue to payment"
9111
9529
  } },
9112
9530
  successMessage: { $bind: {
9113
9531
  from: "content.successMessage",
9114
- fallback: "Thanks. Your purchase is complete and your gift will be sent shortly."
9532
+ fallback: "Thanks, that's all paid for. We'll email the gift to them in the next few minutes."
9115
9533
  } },
9116
9534
  siteTerms: { $bind: { from: "$root.siteTerms" } },
9117
9535
  lookSlots: { $bind: { from: "content._lookSlots" } },
@@ -9180,7 +9598,6 @@ const eventRegistrationManifest = createBlockManifest({
9180
9598
  id: "heading",
9181
9599
  type: "text",
9182
9600
  label: "Heading",
9183
- description: "The heading above the booking form.",
9184
9601
  required: false,
9185
9602
  multiline: false,
9186
9603
  defaultValue: ""
@@ -9188,8 +9605,7 @@ const eventRegistrationManifest = createBlockManifest({
9188
9605
  {
9189
9606
  id: "description",
9190
9607
  type: "richText",
9191
- label: "Description",
9192
- description: "Optional introductory text",
9608
+ label: "Text under the heading",
9193
9609
  required: false
9194
9610
  },
9195
9611
  {
@@ -9222,31 +9638,31 @@ const eventRegistrationManifest = createBlockManifest({
9222
9638
  label: "10 tickets"
9223
9639
  }
9224
9640
  ],
9225
- ui: { intent: "display" }
9641
+ ui: { intent: "behavior" }
9226
9642
  },
9227
9643
  {
9228
9644
  id: "showVenue",
9229
9645
  type: "boolean",
9230
- label: "Show venue",
9231
- description: "Shows where the event is.",
9646
+ label: "Show the venue",
9647
+ description: "Where the event is, in the booking summary.",
9232
9648
  required: false,
9233
9649
  defaultValue: true,
9234
- ui: { intent: "display" }
9650
+ ui: { intent: "behavior" }
9235
9651
  },
9236
9652
  {
9237
9653
  id: "showCapacity",
9238
9654
  type: "boolean",
9239
- label: "Show available places",
9240
- description: "Shows how many places are left.",
9655
+ label: "Show places left",
9656
+ description: "How many places are left, in the booking summary.",
9241
9657
  required: false,
9242
9658
  defaultValue: true,
9243
- ui: { intent: "display" }
9659
+ ui: { intent: "behavior" }
9244
9660
  },
9245
9661
  {
9246
9662
  id: "successMessage",
9247
9663
  type: "text",
9248
- label: "Success message",
9249
- description: "What people see once they've booked.",
9664
+ label: "Message after booking",
9665
+ description: "What people see once they've booked. Leave it empty to use ours.",
9250
9666
  required: false,
9251
9667
  multiline: true,
9252
9668
  maxLength: 500,
@@ -9256,7 +9672,7 @@ const eventRegistrationManifest = createBlockManifest({
9256
9672
  id: "buttonText",
9257
9673
  type: "text",
9258
9674
  label: "Button text",
9259
- description: "Text on the booking button",
9675
+ description: "The button that starts a booking.",
9260
9676
  required: false,
9261
9677
  multiline: false,
9262
9678
  defaultValue: "Book your place",
@@ -9264,6 +9680,62 @@ const eventRegistrationManifest = createBlockManifest({
9264
9680
  },
9265
9681
  createButtonVariantField()
9266
9682
  ],
9683
+ editing: {
9684
+ content: ["heading", "description"],
9685
+ settings: [{
9686
+ id: "form",
9687
+ title: "On the booking form",
9688
+ fields: [
9689
+ "maxTickets",
9690
+ "showVenue",
9691
+ "showCapacity"
9692
+ ],
9693
+ summary: {
9694
+ parts: [
9695
+ {
9696
+ field: "maxTickets",
9697
+ options: {
9698
+ "1": "one ticket a booking",
9699
+ "2": "up to 2 tickets",
9700
+ "3": "up to 3 tickets",
9701
+ "5": "up to 5 tickets",
9702
+ "10": "up to 10 tickets"
9703
+ }
9704
+ },
9705
+ {
9706
+ field: "showVenue",
9707
+ on: "venue"
9708
+ },
9709
+ {
9710
+ field: "showCapacity",
9711
+ on: "places left"
9712
+ }
9713
+ ],
9714
+ none: "Tickets only"
9715
+ }
9716
+ }, {
9717
+ id: "button",
9718
+ title: "Button and confirmation",
9719
+ fields: [
9720
+ "buttonText",
9721
+ "buttonVariant",
9722
+ "successMessage"
9723
+ ],
9724
+ summary: {
9725
+ parts: [{
9726
+ field: "buttonText",
9727
+ text: {
9728
+ before: "button says “",
9729
+ after: "”"
9730
+ }
9731
+ }, {
9732
+ field: "successMessage",
9733
+ set: "your own message after booking"
9734
+ }],
9735
+ none: "Our standard wording"
9736
+ }
9737
+ }]
9738
+ },
9267
9739
  layout: [styledSection({
9268
9740
  baseClass: "",
9269
9741
  spacing: "spacious",
@@ -9425,6 +9897,7 @@ function admitReadinessFacts(stage, input) {
9425
9897
  }
9426
9898
  function unavailableReadinessFacts() {
9427
9899
  return {
9900
+ catalogue: unavailableReadinessFact,
9428
9901
  mailingList: unavailableReadinessFact,
9429
9902
  testimonials: unavailableReadinessFact,
9430
9903
  team: unavailableReadinessFact,
@@ -9533,6 +10006,55 @@ const galleryReadiness = {
9533
10006
  path: "images"
9534
10007
  })
9535
10008
  };
10009
+ /** A video grid with no video, an audio player with no track and a download with no file have nothing for visitors, so they stay hidden until one's chosen. */
10010
+ const videoGridReadiness = {
10011
+ needs: [],
10012
+ assess: (content) => Array.isArray(content.videos) && content.videos.some(hasVideoLink) ? ready : needsSetup("video_grid_empty", {
10013
+ kind: "field",
10014
+ path: "videos"
10015
+ })
10016
+ };
10017
+ const audioPlayerReadiness = {
10018
+ needs: [],
10019
+ assess: (content) => isChosen(content.audio) ? ready : needsSetup("audio_not_chosen", {
10020
+ kind: "field",
10021
+ path: "audio"
10022
+ })
10023
+ };
10024
+ const fileDownloadReadiness = {
10025
+ needs: [],
10026
+ assess: (content) => isChosen(content.file) ? ready : needsSetup("file_not_chosen", {
10027
+ kind: "field",
10028
+ path: "file"
10029
+ })
10030
+ };
10031
+ function hasVideoLink(item) {
10032
+ return typeof item === "object" && item !== null && "url" in item && chosenString(item.url) !== null;
10033
+ }
10034
+ /** A media or file field holds an object once something is chosen. */
10035
+ function isChosen(value) {
10036
+ return typeof value === "object" && value !== null;
10037
+ }
10038
+ /** Passes & memberships with nothing to show is hidden from visitors, by the same decision its cards are drawn from. */
10039
+ const shopReadiness = {
10040
+ needs: ["catalogue"],
10041
+ assess: (content, facts) => {
10042
+ if (facts.catalogue.kind === "Unavailable") return unknownReadiness;
10043
+ const decision = decideShopCatalogue(storedShopShow(content), facts.catalogue.value);
10044
+ switch (decision.kind) {
10045
+ case "shows": return ready;
10046
+ case "nothing-on-sale": return needsSetup("shop_nothing_on_sale", {
10047
+ kind: "manage",
10048
+ target: "passesAndMemberships"
10049
+ });
10050
+ case "nothing-chosen": return needsSetup("shop_nothing_chosen", {
10051
+ kind: "field",
10052
+ path: "showPasses"
10053
+ });
10054
+ default: return assertNever$1(decision);
10055
+ }
10056
+ }
10057
+ };
9536
10058
  function chosenString(value) {
9537
10059
  return typeof value === "string" && value.trim() ? value.trim() : null;
9538
10060
  }
@@ -9615,7 +10137,15 @@ const dataLoaders = Object.fromEntries(Object.entries(fragmentDataLoaders).map((
9615
10137
  const formManifest = createBlockManifest({
9616
10138
  variantMeaning: { kind: "arrangement" },
9617
10139
  id: "block.form",
9618
- promotedFields: ["formSlug"],
10140
+ editing: {
10141
+ content: [
10142
+ "formSlug",
10143
+ "title",
10144
+ "intro"
10145
+ ],
10146
+ settings: ["submitLabel", "successMessage"],
10147
+ setup: ["formSlug"]
10148
+ },
9619
10149
  title: "Form",
9620
10150
  titleSource: "title",
9621
10151
  description: "Shows one of your forms so visitors can get in touch.",
@@ -9876,31 +10406,588 @@ function withEventSelectionVisibility(field) {
9876
10406
  };
9877
10407
  }
9878
10408
  //#endregion
9879
- //#region ../blocks/src/system/blocks/events/event-calendar.ts
9880
- function normalizeEventCalendarContent(content) {
9881
- const record = typeof content === "object" && content !== null ? content : {};
9882
- const variant = normalizeEventCalendarDisplayMode$1(record);
10409
+ //#region ../blocks/src/system/blocks/events/eventCalendarDataLoaders.ts
10410
+ /** The section's event scope comes from resolveEventScopeRead, the same owner readiness uses. */
10411
+ const eventScopeLoaderParams = Object.fromEntries(eventScopeQueryKeys.map((key) => [key, { $bind: {
10412
+ from: "content",
10413
+ transforms: [{
10414
+ id: "events.scopeParam",
10415
+ options: { key }
10416
+ }]
10417
+ } }]));
10418
+ const scopeParams = {
10419
+ siteId: { $bind: { from: "$root.siteId" } },
10420
+ stage: { $bind: {
10421
+ from: "$root.previewStage",
10422
+ fallback: "published"
10423
+ } },
10424
+ ...Object.fromEntries(eventScopeQueryKeys.map((key) => [key, { $bind: {
10425
+ from: "content",
10426
+ transforms: [{
10427
+ id: "events.calendarReadParam",
10428
+ options: { key }
10429
+ }]
10430
+ } }]))
10431
+ };
10432
+ /** Each mode reads only what it paints first; see resolveEventCalendarReadPlan. */
10433
+ const eventCalendarDataLoaders = {
10434
+ schedule: {
10435
+ endpoint: "listPublicRecurringSchedule",
10436
+ when: { $bind: {
10437
+ from: "content",
10438
+ transforms: [{
10439
+ id: "events.calendarReadEnabled",
10440
+ options: { job: "schedule" }
10441
+ }]
10442
+ } },
10443
+ params: {
10444
+ ...scopeParams,
10445
+ limit: "100",
10446
+ detailLevel: "listing",
10447
+ readProfile: "compact-list"
10448
+ },
10449
+ mode: "server"
10450
+ },
10451
+ events: {
10452
+ endpoint: "listPublicEvents",
10453
+ when: { $bind: {
10454
+ from: "content",
10455
+ transforms: [{
10456
+ id: "events.calendarReadEnabled",
10457
+ options: { job: "list" }
10458
+ }]
10459
+ } },
10460
+ params: {
10461
+ ...scopeParams,
10462
+ limit: 100,
10463
+ detailLevel: "listing",
10464
+ readProfile: "listing-card",
10465
+ from: { $bind: {
10466
+ from: "$root",
10467
+ transforms: [{
10468
+ id: "events.calendarListWindow",
10469
+ options: { key: "from" }
10470
+ }]
10471
+ } },
10472
+ to: { $bind: {
10473
+ from: "$root",
10474
+ transforms: [{
10475
+ id: "events.calendarListWindow",
10476
+ options: { key: "to" }
10477
+ }]
10478
+ } }
10479
+ },
10480
+ mode: "server"
10481
+ },
10482
+ calendarWindow: {
10483
+ endpoint: "listPublicEventCalendarWindow",
10484
+ when: { $bind: {
10485
+ from: "content",
10486
+ transforms: [{
10487
+ id: "events.calendarReadEnabled",
10488
+ options: { job: "calendar" }
10489
+ }]
10490
+ } },
10491
+ params: {
10492
+ ...scopeParams,
10493
+ limit: 100,
10494
+ readProfile: { $bind: {
10495
+ from: "content",
10496
+ transforms: [{ id: "events.calendarReadProfile" }]
10497
+ } }
10498
+ },
10499
+ mode: "server"
10500
+ }
10501
+ };
10502
+ //#endregion
10503
+ //#region ../blocks/src/system/blocks/events/eventCalendarEditing.ts
10504
+ /** How many events a paged list can start with. The field's options and the row's line are both written from it. */
10505
+ const eventCalendarPageSizes = [
10506
+ "1",
10507
+ "2",
10508
+ "3",
10509
+ "4",
10510
+ "5",
10511
+ "6",
10512
+ "10",
10513
+ "12",
10514
+ "20",
10515
+ "24",
10516
+ "30"
10517
+ ];
10518
+ /**
10519
+ * Where the calendar's settings go. The way events are shown is the block
10520
+ * itself, so it sits open at the top; everything else is a named row. A row
10521
+ * whose fields don't apply to the chosen way drops out, and each row's line is
10522
+ * written here, phrase by phrase, so it follows what's chosen. Which settings
10523
+ * apply comes from the page's own decisions (`eventCalendarForm.ts`).
10524
+ */
10525
+ const eventCalendarEditing = {
10526
+ content: ["variant"],
10527
+ settings: [
10528
+ {
10529
+ id: "events",
10530
+ title: "Which events",
10531
+ fields: [
10532
+ "eventSelection",
10533
+ "selectedEventSeriesIds",
10534
+ "eventSurface",
10535
+ "filterCategoryIds",
10536
+ "filterStaffMemberId",
10537
+ "filterVenueId"
10538
+ ],
10539
+ summary: {
10540
+ parts: [
10541
+ {
10542
+ field: "eventSelection",
10543
+ options: {
10544
+ matching: null,
10545
+ selected: "ones you’ve picked"
10546
+ }
10547
+ },
10548
+ {
10549
+ field: "eventSurface",
10550
+ options: {
10551
+ all: "all events",
10552
+ regularClassSchedule: "regular classes",
10553
+ specialDatedEvents: "workshops and one-off events",
10554
+ custom: "some kinds of event"
10555
+ }
10556
+ },
10557
+ {
10558
+ field: "filterCategoryIds",
10559
+ count: {
10560
+ one: "in one category",
10561
+ many: "in {n} categories"
10562
+ }
10563
+ },
10564
+ {
10565
+ field: "filterStaffMemberId",
10566
+ chosen: {
10567
+ before: "with ",
10568
+ fallback: "one host"
10569
+ }
10570
+ },
10571
+ {
10572
+ field: "filterVenueId",
10573
+ chosen: {
10574
+ before: "at ",
10575
+ fallback: "one venue"
10576
+ }
10577
+ }
10578
+ ],
10579
+ none: "All events"
10580
+ }
10581
+ },
10582
+ {
10583
+ id: "count",
10584
+ title: "How many, and where the rest are",
10585
+ fields: [
10586
+ "listBy",
10587
+ "eventsPerPage",
10588
+ "paginationMode",
10589
+ "seeAllUrl",
10590
+ "loadMoreText",
10591
+ "seeAllButtonVariant"
10592
+ ],
10593
+ summary: {
10594
+ parts: [
10595
+ {
10596
+ field: "listBy",
10597
+ options: {
10598
+ upcoming: null,
10599
+ week: "this week, day by day"
10600
+ }
10601
+ },
10602
+ {
10603
+ field: "eventsPerPage",
10604
+ options: Object.fromEntries(eventCalendarPageSizes.map((value) => [value, value === "1" ? "just one" : `the first ${value}`]))
10605
+ },
10606
+ {
10607
+ field: "paginationMode",
10608
+ options: {
10609
+ none: "nothing after them",
10610
+ loadMore: "then a button to load more",
10611
+ seeAllLink: "then a link to another page"
10612
+ }
10613
+ },
10614
+ {
10615
+ field: "loadMoreText",
10616
+ text: {
10617
+ before: "“",
10618
+ after: "”"
10619
+ }
10620
+ }
10621
+ ],
10622
+ none: "A link, if you add one"
10623
+ }
10624
+ },
10625
+ {
10626
+ id: "calendar",
10627
+ title: "Weeks and months",
10628
+ fields: [
10629
+ "calendarTabViews",
10630
+ "defaultCalendarView",
10631
+ "startOfWeek"
10632
+ ],
10633
+ summary: {
10634
+ parts: [
10635
+ {
10636
+ field: "calendarTabViews",
10637
+ options: {
10638
+ both: "month and week",
10639
+ month: "month only",
10640
+ week: "week only"
10641
+ }
10642
+ },
10643
+ {
10644
+ field: "defaultCalendarView",
10645
+ options: {
10646
+ month: "opens on the month",
10647
+ week: "opens on the week"
10648
+ }
10649
+ },
10650
+ {
10651
+ field: "startOfWeek",
10652
+ options: {
10653
+ monday: "weeks start on Monday",
10654
+ sunday: "weeks start on Sunday"
10655
+ }
10656
+ }
10657
+ ],
10658
+ none: "Weeks start on your country’s usual day"
10659
+ }
10660
+ },
10661
+ {
10662
+ id: "card",
10663
+ title: "On each event",
10664
+ fields: [
10665
+ "showVenue",
10666
+ "showCapacity",
10667
+ "buttonText",
10668
+ "buttonVariant"
10669
+ ],
10670
+ summary: {
10671
+ parts: [
10672
+ {
10673
+ field: "showVenue",
10674
+ on: "venue"
10675
+ },
10676
+ {
10677
+ field: "showCapacity",
10678
+ on: "places left"
10679
+ },
10680
+ {
10681
+ field: "buttonText",
10682
+ text: {
10683
+ before: "button says “",
10684
+ after: "”",
10685
+ empty: "button says “Book”"
10686
+ }
10687
+ }
10688
+ ],
10689
+ none: "Name and time only"
10690
+ }
10691
+ },
10692
+ {
10693
+ id: "filters",
10694
+ title: "Filters for visitors",
10695
+ fields: [
10696
+ "showFilters",
10697
+ "showCategoryFilter",
10698
+ "showVenueFilter",
10699
+ "showStaffFilter"
10700
+ ],
10701
+ summary: {
10702
+ parts: [
10703
+ {
10704
+ field: "showCategoryFilter",
10705
+ options: {
10706
+ auto: "category",
10707
+ always: "category",
10708
+ never: null
10709
+ }
10710
+ },
10711
+ {
10712
+ field: "showVenueFilter",
10713
+ on: "venue"
10714
+ },
10715
+ {
10716
+ field: "showStaffFilter",
10717
+ on: "host"
10718
+ }
10719
+ ],
10720
+ none: "No filters"
10721
+ }
10722
+ },
10723
+ {
10724
+ id: "wording",
10725
+ title: "Heading and text",
10726
+ fields: [
10727
+ "eyebrow",
10728
+ "heading",
10729
+ "description",
10730
+ "boardTitle",
10731
+ "footerNote"
10732
+ ],
10733
+ summary: {
10734
+ parts: [{
10735
+ field: "heading",
10736
+ text: {
10737
+ before: "“",
10738
+ after: "”"
10739
+ }
10740
+ }],
10741
+ none: "No heading"
10742
+ }
10743
+ },
10744
+ {
10745
+ id: "layout",
10746
+ title: "Layout",
10747
+ fields: [
10748
+ "listLayout",
10749
+ "listColumns",
10750
+ "elevated",
10751
+ "banded"
10752
+ ],
10753
+ summary: {
10754
+ parts: [
10755
+ {
10756
+ field: "listLayout",
10757
+ options: {
10758
+ stack: "one under another",
10759
+ grid: "in a grid",
10760
+ compact: "a compact list"
10761
+ }
10762
+ },
10763
+ {
10764
+ field: "listColumns",
10765
+ options: {
10766
+ "2": "2 columns",
10767
+ "3": "3 columns",
10768
+ "4": "4 columns"
10769
+ }
10770
+ },
10771
+ {
10772
+ field: "elevated",
10773
+ on: "raised"
10774
+ },
10775
+ {
10776
+ field: "banded",
10777
+ on: "on a coloured band"
10778
+ }
10779
+ ],
10780
+ none: "Flat, on the page background"
10781
+ }
10782
+ },
10783
+ {
10784
+ id: "empty",
10785
+ title: "When there’s nothing on",
10786
+ fields: ["emptyBehavior", "emptyMessage"],
10787
+ summary: {
10788
+ parts: [{
10789
+ field: "emptyBehavior",
10790
+ options: {
10791
+ hide: "hide this section",
10792
+ message: "show a message"
10793
+ }
10794
+ }],
10795
+ none: "Hide this section"
10796
+ }
10797
+ }
10798
+ ],
10799
+ setup: ["variant", "eventSurface"]
10800
+ };
10801
+ //#endregion
10802
+ //#region ../blocks/src/system/manifest/decisionConditions.ts
10803
+ const ALWAYS = { kind: "always" };
10804
+ const NEVER = { kind: "never" };
10805
+ function conditionFromDecision(axes, holds) {
10806
+ return decideFrom(axes, {}, holds);
10807
+ }
10808
+ function decideFrom(axes, fixed, holds) {
10809
+ const [axis, ...rest] = axes;
10810
+ if (!axis) return holds(fixed) ? ALWAYS : NEVER;
10811
+ const grouped = groupByOutcome(axis.values.map((value) => ({
10812
+ value,
10813
+ outcome: decideFrom(rest, {
10814
+ ...fixed,
10815
+ [axis.key]: value
10816
+ }, holds)
10817
+ })));
10818
+ if (grouped.length === 1 && grouped[0]) return grouped[0].outcome;
10819
+ const terms = grouped.flatMap(({ values, outcome }) => {
10820
+ if (outcome.kind === "never") return [];
10821
+ const test = axis.when(values);
10822
+ return [outcome.kind === "always" ? test : { allOf: [test, ...conjuncts(outcome.condition)] }];
10823
+ });
10824
+ const [only] = terms;
10825
+ if (terms.length === 0) return NEVER;
9883
10826
  return {
9884
- ...normalizeEventEmptyBehavior(record),
9885
- ...variant ? { variant } : {},
9886
- displayMode: normalizeEventCalendarDisplayMode(record.displayMode),
9887
- listLayout: normalizeEventCalendarListLayout(record.listLayout),
9888
- defaultCalendarView: normalizeEventCalendarDefaultView(record.defaultCalendarView),
9889
- eventSurface: normalizeEventSurfaceScope(record.eventSurface),
9890
- filterEventPresets: normalizeEventSurfacePresets(record.filterEventPresets),
9891
- scheduleScope: normalizeEventScheduleScope(record.scheduleScope),
9892
- filterCategoryIds: normalizeEventCategoryIds(record.filterCategoryIds),
9893
- filterStaffMemberId: normalizeEventStaffMemberId(record.filterStaffMemberId),
9894
- filterVenueId: normalizeEventVenueId(record.filterVenueId)
10827
+ kind: "when",
10828
+ condition: terms.length === 1 && only ? only : { anyOf: terms }
9895
10829
  };
9896
10830
  }
9897
- function normalizeEventCalendarDisplayMode(value) {
9898
- return isEventCalendarDisplayMode(value) ? value : void 0;
9899
- }
9900
- function normalizeEventCalendarListLayout(value) {
9901
- return isEventCalendarListLayout(value) ? value : void 0;
10831
+ function conjuncts(condition) {
10832
+ return condition.allOf ?? [condition];
9902
10833
  }
9903
- function normalizeEventCalendarDefaultView(value) {
10834
+ /** The axis's values that lead to the same outcome, in the axis's order. */
10835
+ function groupByOutcome(branches) {
10836
+ const keyed = branches.map((branch) => ({
10837
+ ...branch,
10838
+ key: JSON.stringify(branch.outcome)
10839
+ }));
10840
+ return [...new Set(keyed.map((branch) => branch.key))].map((key) => {
10841
+ const matching = keyed.filter((branch) => branch.key === key);
10842
+ return {
10843
+ values: matching.map((branch) => branch.value),
10844
+ outcome: matching[0]?.outcome ?? NEVER
10845
+ };
10846
+ });
10847
+ }
10848
+ /**
10849
+ * An axis over a field's stored value. `unset` is the value an empty field
10850
+ * reads as, so a test that includes it is written as "none of the others"
10851
+ * and still holds before anything is stored.
10852
+ */
10853
+ function fieldAxis(key, field, values, unset) {
10854
+ return {
10855
+ key,
10856
+ values,
10857
+ when: (chosen) => {
10858
+ if (!chosen.includes(unset)) return chosen.length === 1 ? {
10859
+ field,
10860
+ equals: chosen[0]
10861
+ } : {
10862
+ field,
10863
+ oneOf: [...chosen]
10864
+ };
10865
+ const others = values.filter((value) => !chosen.includes(value));
10866
+ return others.length === 1 ? {
10867
+ field,
10868
+ notEquals: others[0]
10869
+ } : {
10870
+ field,
10871
+ notIn: others
10872
+ };
10873
+ }
10874
+ };
10875
+ }
10876
+ /** An axis over whether a Look shapes the block. */
10877
+ function lookAxis(key) {
10878
+ return {
10879
+ key,
10880
+ values: ["applies", "none"],
10881
+ when: (chosen) => ({ look: chosen[0] === "none" ? "none" : "applies" })
10882
+ };
10883
+ }
10884
+ /** The condition to put on a field: none where the decision always offers it. A decision that never does is a mistake in the block. */
10885
+ function fieldConditionFrom(decided, field) {
10886
+ if (decided.kind === "never") throw new Error(`${field} is never offered`);
10887
+ return decided.kind === "when" ? decided.condition : void 0;
10888
+ }
10889
+ //#endregion
10890
+ //#region ../blocks/src/system/blocks/events/eventCalendarForm.ts
10891
+ function eventCalendarFormOffer(input) {
10892
+ const look = input.look === "applies";
10893
+ const grouping = eventCalendarListGroupingDecision({
10894
+ arrangementLooks: look,
10895
+ variant: input.variant,
10896
+ listBy: input.listBy
10897
+ });
10898
+ const { mode, jobs } = resolveEventCalendarReadPlan({ variant: input.variant });
10899
+ const listInWeeks = grouping.grouping === "week" || look && input.listLayout === "week-groups";
10900
+ return {
10901
+ listBy: grouping.available,
10902
+ paging: jobs === "list" && grouping.grouping === "upcoming",
10903
+ ...calendarViewsOffer(mode, look, input),
10904
+ startOfWeek: mode === "list" ? listInWeeks : mode !== "week"
10905
+ };
10906
+ }
10907
+ /** The views a calendar offers, which it opens on, and where that shows venues. A Look fixes the views on the month. */
10908
+ function calendarViewsOffer(mode, look, input) {
10909
+ const views = look ? eventCalendarLookViews : {
10910
+ calendarTabViews: input.calendarTabViews,
10911
+ defaultCalendarView: input.defaultCalendarView
10912
+ };
10913
+ const chooseViews = !look && (mode === "calendar" || mode === "combined");
10914
+ return {
10915
+ calendarTabViews: chooseViews && mode === "combined",
10916
+ defaultCalendarView: chooseViews && (mode === "calendar" || views.calendarTabViews === "both"),
10917
+ showVenue: mode === "calendar" ? views.defaultCalendarView === "week" : mode !== "timetable" && mode !== "week-board"
10918
+ };
10919
+ }
10920
+ /** Mode first, so each mode's condition only tests what that mode depends on. */
10921
+ const calendarAxes = [
10922
+ fieldAxis("variant", "variant", eventCalendarDisplayModeValues, "combined"),
10923
+ lookAxis("look"),
10924
+ fieldAxis("listBy", "listBy", ["upcoming", "week"], "upcoming"),
10925
+ {
10926
+ key: "listLayout",
10927
+ values: ["other", "week-groups"],
10928
+ when: (chosen) => chosen.includes("week-groups") ? {
10929
+ field: "listLayout",
10930
+ equals: "week-groups"
10931
+ } : {
10932
+ field: "listLayout",
10933
+ notEquals: "week-groups"
10934
+ }
10935
+ },
10936
+ fieldAxis("defaultCalendarView", "defaultCalendarView", ["month", "week"], "month"),
10937
+ fieldAxis("calendarTabViews", "calendarTabViews", [
10938
+ "both",
10939
+ "month",
10940
+ "week"
10941
+ ], "both")
10942
+ ];
10943
+ function calendarCase(decisionCase) {
10944
+ return {
10945
+ variant: eventCalendarDisplayModeValues.find((mode) => mode === decisionCase.variant) ?? "combined",
10946
+ look: decisionCase.look === "applies" ? "applies" : "none",
10947
+ listBy: decisionCase.listBy === "week" ? "week" : "upcoming",
10948
+ listLayout: decisionCase.listLayout === "week-groups" ? "week-groups" : "other",
10949
+ defaultCalendarView: decisionCase.defaultCalendarView === "week" ? "week" : "month",
10950
+ calendarTabViews: decisionCase.calendarTabViews === "month" || decisionCase.calendarTabViews === "week" ? decisionCase.calendarTabViews : "both"
10951
+ };
10952
+ }
10953
+ function offeredWhen(setting) {
10954
+ return fieldConditionFrom(conditionFromDecision(calendarAxes, (decisionCase) => eventCalendarFormOffer(calendarCase(decisionCase))[setting]), setting);
10955
+ }
10956
+ /** Each setting's condition, written out from `eventCalendarFormOffer`. A setting it always offers has none. */
10957
+ const eventCalendarFormConditions = {
10958
+ listBy: offeredWhen("listBy"),
10959
+ paging: offeredWhen("paging"),
10960
+ calendarTabViews: offeredWhen("calendarTabViews"),
10961
+ defaultCalendarView: offeredWhen("defaultCalendarView"),
10962
+ startOfWeek: offeredWhen("startOfWeek"),
10963
+ showVenue: offeredWhen("showVenue")
10964
+ };
10965
+ //#endregion
10966
+ //#region ../blocks/src/system/blocks/events/event-calendar.ts
10967
+ function normalizeEventCalendarContent(content) {
10968
+ const record = typeof content === "object" && content !== null ? content : {};
10969
+ const variant = normalizeEventCalendarDisplayMode$1(record);
10970
+ return {
10971
+ ...normalizeEventEmptyBehavior(record),
10972
+ ...variant ? { variant } : {},
10973
+ displayMode: normalizeEventCalendarDisplayMode(record.displayMode),
10974
+ listLayout: normalizeEventCalendarListLayout(record.listLayout),
10975
+ defaultCalendarView: normalizeEventCalendarDefaultView(record.defaultCalendarView),
10976
+ eventSurface: normalizeEventSurfaceScope(record.eventSurface),
10977
+ filterEventPresets: normalizeEventSurfacePresets(record.filterEventPresets),
10978
+ scheduleScope: normalizeEventScheduleScope(record.scheduleScope),
10979
+ filterCategoryIds: normalizeEventCategoryIds(record.filterCategoryIds),
10980
+ filterStaffMemberId: normalizeEventStaffMemberId(record.filterStaffMemberId),
10981
+ filterVenueId: normalizeEventVenueId(record.filterVenueId)
10982
+ };
10983
+ }
10984
+ function normalizeEventCalendarDisplayMode(value) {
10985
+ return isEventCalendarDisplayMode(value) ? value : void 0;
10986
+ }
10987
+ function normalizeEventCalendarListLayout(value) {
10988
+ return isEventCalendarListLayout(value) ? value : void 0;
10989
+ }
10990
+ function normalizeEventCalendarDefaultView(value) {
9904
10991
  return isEventCalendarDefaultView(value) ? value : void 0;
9905
10992
  }
9906
10993
  /**
@@ -10097,119 +11184,129 @@ const eventCalendarLayout = [styledSection({
10097
11184
  spacing: "comfortable"
10098
11185
  })];
10099
11186
  /**
10100
- * Page size and "more events" settings apply to paged lists. A week list always shows its whole
10101
- * week, so they're hidden under List by Week where the site style offers week lists; the editor
10102
- * passes false when it doesn't, because a stored "Week" then lists upcoming events.
11187
+ * Page size and "more events" settings apply to a list that shows a page at a
11188
+ * time; a list grouped by week shows its whole week. Week and Week board have
11189
+ * no pages, but can link to another page with a button.
10103
11190
  */
10104
- const eventsPerPageOptions = [{
10105
- value: "1",
10106
- label: "Show just one"
10107
- }, ...[
10108
- "2",
10109
- "3",
10110
- "4",
10111
- "5",
10112
- "6",
10113
- "10",
10114
- "12",
10115
- "20",
10116
- "24",
10117
- "30"
10118
- ].map((value) => ({
11191
+ const eventsPerPageOptions = eventCalendarPageSizes.map((value) => ({
10119
11192
  value,
10120
- label: `Show the first ${value}`
10121
- }))];
10122
- function eventCalendarPagingFields(weekListsAvailable) {
10123
- const paged = weekListsAvailable ? { anyOf: [{
10124
- field: "variant",
10125
- equals: "combined"
10126
- }, { allOf: [{
10127
- field: "variant",
10128
- equals: "list"
10129
- }, {
10130
- field: "listBy",
10131
- notEquals: "week"
10132
- }] }] } : {
10133
- field: "variant",
10134
- oneOf: ["combined", "list"]
10135
- };
10136
- const weekVariants = {
10137
- field: "variant",
10138
- oneOf: ["week-board", "week"]
10139
- };
10140
- return [
10141
- {
10142
- id: "eventsPerPage",
10143
- type: "select",
10144
- label: "How many",
10145
- required: false,
10146
- multiple: false,
10147
- defaultValue: "12",
10148
- options: eventsPerPageOptions,
10149
- ui: {
10150
- intent: "behavior",
10151
- visibleWhen: paged
10152
- }
10153
- },
10154
- {
10155
- id: "paginationMode",
10156
- type: "select",
10157
- label: "More events",
10158
- required: false,
10159
- multiple: false,
10160
- defaultValue: "loadMore",
10161
- description: "How visitors can see the rest of your events.",
10162
- options: [
10163
- {
10164
- value: "none",
10165
- label: "No link or button"
10166
- },
10167
- {
10168
- value: "loadMore",
10169
- label: "Load more button"
10170
- },
10171
- {
10172
- value: "seeAllLink",
10173
- label: "Link to another page"
10174
- }
10175
- ],
10176
- ui: {
10177
- intent: "behavior",
10178
- visibleWhen: paged
10179
- }
10180
- },
10181
- {
10182
- id: "seeAllUrl",
10183
- type: "link",
10184
- label: "Link to the full list",
10185
- required: false,
10186
- ui: {
10187
- intent: "behavior",
10188
- visibleWhen: { anyOf: [{ allOf: [paged, {
10189
- field: "paginationMode",
10190
- equals: "seeAllLink"
10191
- }] }, weekVariants] }
10192
- }
10193
- },
10194
- {
10195
- id: "loadMoreText",
10196
- type: "text",
10197
- label: "More events button text",
10198
- required: false,
10199
- multiline: false,
10200
- description: "The text on the button or link that shows more events.",
10201
- defaultValue: "Load more events",
10202
- ui: {
10203
- intent: "behavior",
10204
- visibleWhen: { anyOf: [paged, weekVariants] }
11193
+ label: value === "1" ? "Show just one" : `Show the first ${value}`
11194
+ }));
11195
+ const paged = eventCalendarFormConditions.paging;
11196
+ const pagedAnd = (condition) => paged ? { allOf: [paged, condition] } : condition;
11197
+ const weekVariants = {
11198
+ field: "variant",
11199
+ oneOf: ["week-board", "week"]
11200
+ };
11201
+ const hasSeeAllLink = {
11202
+ field: "seeAllUrl",
11203
+ hasValue: true
11204
+ };
11205
+ const eventCalendarPagingFields = [
11206
+ {
11207
+ id: "eventsPerPage",
11208
+ type: "select",
11209
+ label: "How many",
11210
+ required: false,
11211
+ multiple: false,
11212
+ defaultValue: "12",
11213
+ options: eventsPerPageOptions,
11214
+ ui: {
11215
+ intent: "behavior",
11216
+ visibleWhen: paged
11217
+ }
11218
+ },
11219
+ {
11220
+ id: "paginationMode",
11221
+ type: "select",
11222
+ label: "After those",
11223
+ required: false,
11224
+ multiple: false,
11225
+ defaultValue: "loadMore",
11226
+ description: "How visitors can see the rest of your events.",
11227
+ options: [
11228
+ {
11229
+ value: "none",
11230
+ label: "Nothing"
11231
+ },
11232
+ {
11233
+ value: "loadMore",
11234
+ label: "A button to load more"
11235
+ },
11236
+ {
11237
+ value: "seeAllLink",
11238
+ label: "A link to another page"
10205
11239
  }
11240
+ ],
11241
+ ui: {
11242
+ intent: "behavior",
11243
+ visibleWhen: paged
10206
11244
  }
10207
- ];
11245
+ },
11246
+ {
11247
+ id: "seeAllUrl",
11248
+ type: "link",
11249
+ label: "Link to the full list",
11250
+ required: false,
11251
+ ui: {
11252
+ intent: "behavior",
11253
+ visibleWhen: { anyOf: [pagedAnd({
11254
+ field: "paginationMode",
11255
+ equals: "seeAllLink"
11256
+ }), weekVariants] }
11257
+ }
11258
+ },
11259
+ {
11260
+ id: "loadMoreText",
11261
+ type: "text",
11262
+ label: "Button or link text",
11263
+ required: false,
11264
+ multiline: false,
11265
+ description: "What the button or link says.",
11266
+ defaultValue: "Load more events",
11267
+ ui: {
11268
+ intent: "behavior",
11269
+ visibleWhen: { anyOf: [pagedAnd({
11270
+ field: "paginationMode",
11271
+ notEquals: "none"
11272
+ }), { allOf: [weekVariants, hasSeeAllLink] }] }
11273
+ }
11274
+ }
11275
+ ];
11276
+ function withVisibleWhen(field, visibleWhen) {
11277
+ return {
11278
+ ...field,
11279
+ ui: {
11280
+ ...field.ui,
11281
+ visibleWhen
11282
+ }
11283
+ };
10208
11284
  }
11285
+ /** The visitor filter bar: Week has none, and Week board never draws one. */
11286
+ const filterBarVariants = {
11287
+ field: "variant",
11288
+ oneOf: [
11289
+ "combined",
11290
+ "calendar",
11291
+ "list",
11292
+ "timetable"
11293
+ ]
11294
+ };
11295
+ /**
11296
+ * Each event's button. Week board has none of its own: the button text only
11297
+ * labels the board's link button when that has no text of its own.
11298
+ */
11299
+ const buttonTextShown = { anyOf: [{
11300
+ field: "variant",
11301
+ notEquals: "week-board"
11302
+ }, { allOf: [hasSeeAllLink, {
11303
+ field: "loadMoreText",
11304
+ hasValue: false
11305
+ }] }] };
10209
11306
  const eventCalendarAdditionalFields = [
10210
11307
  ...cardListKnobFields,
10211
11308
  ...cardListPhotoNumberFields.filter((field) => field.id === "showPhotos"),
10212
- ...eventDisplayFields.filter((field) => field.id === "showVenue"),
11309
+ ...eventDisplayFields.filter((field) => field.id === "showVenue").map((field) => withVisibleWhen(field, eventCalendarFormConditions.showVenue)),
10213
11310
  {
10214
11311
  id: "eyebrow",
10215
11312
  type: "text",
@@ -10218,11 +11315,14 @@ const eventCalendarAdditionalFields = [
10218
11315
  multiline: false,
10219
11316
  maxLength: 80
10220
11317
  },
10221
- createButtonVariantField({
11318
+ withVisibleWhen(createButtonVariantField({
10222
11319
  id: "seeAllButtonVariant",
10223
11320
  label: "See all button style",
10224
11321
  defaultValue: "secondary"
10225
- }),
11322
+ }), { allOf: [{
11323
+ field: "variant",
11324
+ equals: "week"
11325
+ }, hasSeeAllLink] }),
10226
11326
  ...sectionHeaderFields("Event Calendar"),
10227
11327
  {
10228
11328
  id: "displayMode",
@@ -10279,10 +11379,7 @@ const eventCalendarAdditionalFields = [
10279
11379
  }],
10280
11380
  ui: {
10281
11381
  intent: "behavior",
10282
- visibleWhen: {
10283
- field: "variant",
10284
- equals: "list"
10285
- }
11382
+ visibleWhen: eventCalendarFormConditions.listBy
10286
11383
  }
10287
11384
  },
10288
11385
  {
@@ -10308,8 +11405,8 @@ const eventCalendarAdditionalFields = [
10308
11405
  {
10309
11406
  id: "listColumns",
10310
11407
  type: "select",
10311
- label: "Grid columns",
10312
- description: "Number of columns in grid layout",
11408
+ label: "Columns",
11409
+ description: "How many columns the grid has.",
10313
11410
  required: false,
10314
11411
  multiple: false,
10315
11412
  defaultValue: "3",
@@ -10338,12 +11435,12 @@ const eventCalendarAdditionalFields = [
10338
11435
  }] }
10339
11436
  }
10340
11437
  },
10341
- ...eventCalendarPagingFields(true),
11438
+ ...eventCalendarPagingFields,
10342
11439
  {
10343
11440
  id: "startOfWeek",
10344
11441
  type: "select",
10345
11442
  label: "Week starts on",
10346
- description: "First day of the week",
11443
+ description: "Left unset, weeks start on your country’s usual day.",
10347
11444
  required: false,
10348
11445
  multiple: false,
10349
11446
  options: [{
@@ -10355,16 +11452,7 @@ const eventCalendarAdditionalFields = [
10355
11452
  }],
10356
11453
  ui: {
10357
11454
  intent: "behavior",
10358
- visibleWhen: {
10359
- field: "variant",
10360
- oneOf: [
10361
- "combined",
10362
- "calendar",
10363
- "list",
10364
- "timetable",
10365
- "week-board"
10366
- ]
10367
- }
11455
+ visibleWhen: eventCalendarFormConditions.startOfWeek
10368
11456
  }
10369
11457
  },
10370
11458
  {
@@ -10391,16 +11479,13 @@ const eventCalendarAdditionalFields = [
10391
11479
  ],
10392
11480
  ui: {
10393
11481
  intent: "behavior",
10394
- visibleWhen: {
10395
- field: "variant",
10396
- equals: "combined"
10397
- }
11482
+ visibleWhen: eventCalendarFormConditions.calendarTabViews
10398
11483
  }
10399
11484
  },
10400
11485
  {
10401
11486
  id: "defaultCalendarView",
10402
11487
  type: "select",
10403
- label: "Calendar view",
11488
+ label: "Opens on",
10404
11489
  description: "Which view visitors see first.",
10405
11490
  required: false,
10406
11491
  multiple: false,
@@ -10414,37 +11499,19 @@ const eventCalendarAdditionalFields = [
10414
11499
  }],
10415
11500
  ui: {
10416
11501
  intent: "display",
10417
- visibleWhen: { anyOf: [{
10418
- field: "variant",
10419
- equals: "calendar"
10420
- }, { allOf: [{
10421
- field: "variant",
10422
- equals: "combined"
10423
- }, {
10424
- field: "calendarTabViews",
10425
- equals: "both"
10426
- }] }] }
11502
+ visibleWhen: eventCalendarFormConditions.defaultCalendarView
10427
11503
  }
10428
11504
  },
10429
11505
  {
10430
11506
  id: "showFilters",
10431
11507
  type: "boolean",
10432
11508
  label: "Show filters",
10433
- description: "Lets visitors filter by category, team member or venue.",
11509
+ description: "Lets visitors filter by category, host or venue.",
10434
11510
  required: false,
10435
11511
  defaultValue: true,
10436
11512
  ui: {
10437
11513
  intent: "behavior",
10438
- visibleWhen: {
10439
- field: "variant",
10440
- oneOf: [
10441
- "combined",
10442
- "calendar",
10443
- "list",
10444
- "timetable",
10445
- "week-board"
10446
- ]
10447
- }
11514
+ visibleWhen: filterBarVariants
10448
11515
  }
10449
11516
  },
10450
11517
  {
@@ -10471,16 +11538,7 @@ const eventCalendarAdditionalFields = [
10471
11538
  ],
10472
11539
  ui: {
10473
11540
  intent: "behavior",
10474
- visibleWhen: { allOf: [{
10475
- field: "variant",
10476
- oneOf: [
10477
- "combined",
10478
- "calendar",
10479
- "list",
10480
- "timetable",
10481
- "week-board"
10482
- ]
10483
- }, {
11541
+ visibleWhen: { allOf: [filterBarVariants, {
10484
11542
  field: "showFilters",
10485
11543
  equals: true
10486
11544
  }] }
@@ -10495,16 +11553,7 @@ const eventCalendarAdditionalFields = [
10495
11553
  defaultValue: false,
10496
11554
  ui: {
10497
11555
  intent: "behavior",
10498
- visibleWhen: { allOf: [{
10499
- field: "variant",
10500
- oneOf: [
10501
- "combined",
10502
- "calendar",
10503
- "list",
10504
- "timetable",
10505
- "week-board"
10506
- ]
10507
- }, {
11556
+ visibleWhen: { allOf: [filterBarVariants, {
10508
11557
  field: "showFilters",
10509
11558
  equals: true
10510
11559
  }] }
@@ -10513,22 +11562,13 @@ const eventCalendarAdditionalFields = [
10513
11562
  {
10514
11563
  id: "showStaffFilter",
10515
11564
  type: "boolean",
10516
- label: "Show team filter",
10517
- description: "Lets visitors pick someone from your team.",
11565
+ label: "Show host filter",
11566
+ description: "Lets visitors pick a host.",
10518
11567
  required: false,
10519
11568
  defaultValue: true,
10520
11569
  ui: {
10521
11570
  intent: "behavior",
10522
- visibleWhen: { allOf: [{
10523
- field: "variant",
10524
- oneOf: [
10525
- "combined",
10526
- "calendar",
10527
- "list",
10528
- "timetable",
10529
- "week-board"
10530
- ]
10531
- }, {
11571
+ visibleWhen: { allOf: [filterBarVariants, {
10532
11572
  field: "showFilters",
10533
11573
  equals: true
10534
11574
  }] }
@@ -10543,21 +11583,10 @@ const eventCalendarAdditionalFields = [
10543
11583
  defaultValue: true,
10544
11584
  ui: {
10545
11585
  intent: "display",
10546
- visibleWhen: { anyOf: [{
10547
- field: "variant",
10548
- oneOf: [
10549
- "combined",
10550
- "list",
10551
- "timetable",
10552
- "week-board"
10553
- ]
10554
- }, { allOf: [{
11586
+ visibleWhen: {
10555
11587
  field: "variant",
10556
- equals: "calendar"
10557
- }, {
10558
- field: "defaultCalendarView",
10559
- equals: "week"
10560
- }] }] }
11588
+ notEquals: "week"
11589
+ }
10561
11590
  }
10562
11591
  },
10563
11592
  {
@@ -10578,7 +11607,7 @@ const eventCalendarAdditionalFields = [
10578
11607
  {
10579
11608
  id: "footerNote",
10580
11609
  type: "text",
10581
- label: "Footer note",
11610
+ label: "Note under the board",
10582
11611
  description: "An optional note along the bottom of the board.",
10583
11612
  required: false,
10584
11613
  multiline: true,
@@ -10624,7 +11653,7 @@ const eventCalendarAdditionalFields = [
10624
11653
  {
10625
11654
  id: "eventSurface",
10626
11655
  type: "select",
10627
- label: "Which events",
11656
+ label: "Kinds of event",
10628
11657
  required: false,
10629
11658
  multiple: false,
10630
11659
  defaultValue: "all",
@@ -10707,8 +11736,8 @@ const eventCalendarAdditionalFields = [
10707
11736
  }),
10708
11737
  createSiteOptionSelectField({
10709
11738
  id: "filterStaffMemberId",
10710
- label: "Only show one team member",
10711
- description: "Pick someone from your team to show only their events.",
11739
+ label: "Only show one host",
11740
+ description: "Pick a host to show only their events.",
10712
11741
  required: false,
10713
11742
  multiple: false,
10714
11743
  optionSource: "staffMembers",
@@ -10733,7 +11762,8 @@ const eventCalendarAdditionalFields = [
10733
11762
  ...field,
10734
11763
  ui: {
10735
11764
  ...field.ui ?? {},
10736
- intent: field.id === "_cardStyles" || field.id === "buttonVariant" ? "style" : "content"
11765
+ intent: field.id === "_cardStyles" || field.id === "buttonVariant" ? "style" : "content",
11766
+ ...field.id === "buttonText" ? { visibleWhen: buttonTextShown } : {}
10737
11767
  }
10738
11768
  })),
10739
11769
  ...eventEmptyBehaviorFields,
@@ -10796,30 +11826,6 @@ const eventCalendarContentShape = {
10796
11826
  /** Week rows use their fixed recurring-series read, without occurrence filters. */
10797
11827
  function withCalendarModeVisibility(field) {
10798
11828
  const selected = withEventSelectionVisibility(field);
10799
- if (field.id === "showVenue") return {
10800
- ...selected,
10801
- ui: {
10802
- ...selected.ui,
10803
- visibleWhen: {
10804
- field: "variant",
10805
- oneOf: [
10806
- "week",
10807
- "list",
10808
- "combined"
10809
- ]
10810
- }
10811
- }
10812
- };
10813
- if (field.id === "seeAllButtonVariant") return {
10814
- ...selected,
10815
- ui: {
10816
- ...selected.ui,
10817
- visibleWhen: {
10818
- field: "variant",
10819
- equals: "week"
10820
- }
10821
- }
10822
- };
10823
11829
  if (![
10824
11830
  "eventSelection",
10825
11831
  "selectedEventSeriesIds",
@@ -10843,18 +11849,7 @@ function withCalendarModeVisibility(field) {
10843
11849
  }
10844
11850
  const generatedEventCalendarManifest = createBlockManifestWithContentShape({
10845
11851
  id: "block.event-calendar",
10846
- promotedFields: [
10847
- "variant",
10848
- "listBy",
10849
- "calendarTabViews",
10850
- "defaultCalendarView",
10851
- "eventSurface",
10852
- "filterEventPresets",
10853
- "scheduleScope",
10854
- "eventsPerPage",
10855
- "paginationMode",
10856
- "seeAllUrl"
10857
- ],
11852
+ editing: eventCalendarEditing,
10858
11853
  version: "3.6.0",
10859
11854
  title: "Event calendar",
10860
11855
  titleSource: "heading",
@@ -10950,226 +11945,373 @@ const mapDrawingStyleBinding = { $bind: {
10950
11945
  options: { fallbackToken: "background" }
10951
11946
  }]
10952
11947
  } };
10953
- const eventListingManifest = createBlockManifestWithContentShape({
10954
- variantMeaning: { kind: "arrangement" },
10955
- id: "block.event-listing",
10956
- version: "1.1.0",
10957
- title: "Event listing",
10958
- titleSource: "heading",
10959
- description: "All your upcoming events in one list.",
10960
- skipSectionStyles: true,
10961
- additionalFields: [
10962
- ...sectionHeaderFields("All Events"),
10963
- ...(() => {
10964
- const columns = columnsField([
10965
- "2",
10966
- "3",
10967
- "4"
10968
- ]);
10969
- return [{
10970
- ...layoutField,
10971
- ui: {
10972
- ...layoutField.ui ?? {},
10973
- intent: "display"
10974
- }
10975
- }, {
10976
- ...columns,
10977
- ui: {
10978
- ...columns.ui ?? {},
10979
- intent: "display"
10980
- }
10981
- }];
10982
- })(),
10983
- {
10984
- id: "eventsPerPage",
10985
- type: "select",
10986
- label: "How many",
10987
- required: false,
10988
- multiple: false,
10989
- defaultValue: "12",
10990
- options: [
10991
- {
10992
- value: "3",
10993
- label: "Show the first 3"
10994
- },
10995
- {
10996
- value: "6",
10997
- label: "Show the first 6"
10998
- },
10999
- {
11000
- value: "12",
11001
- label: "Show the first 12"
11002
- },
11003
- {
11004
- value: "24",
11005
- label: "Show the first 24"
11006
- }
11007
- ],
11008
- ui: { intent: "display" }
11009
- },
11948
+ //#endregion
11949
+ //#region ../blocks/src/system/blocks/events/event-listing.ts
11950
+ /**
11951
+ * Event Listing Block
11952
+ *
11953
+ * Displays a paginated list of events with a "load more" button.
11954
+ * Ideal for dedicated events pages showing all upcoming events.
11955
+ *
11956
+ * Features:
11957
+ * - Server-side initial load
11958
+ * - Client-side "load more" pagination
11959
+ * - Grid or stack layout
11960
+ * - Configurable initial load and page sizes
11961
+ * - Theme-aware card and button styling
11962
+ */
11963
+ const eventListingAdditionalFields = [
11964
+ ...sectionHeaderFields("All events", "Text under the heading"),
11965
+ ...(() => {
11966
+ const columns = columnsField([
11967
+ "2",
11968
+ "3",
11969
+ "4"
11970
+ ]);
11971
+ return [{
11972
+ ...layoutField,
11973
+ ui: {
11974
+ ...layoutField.ui ?? {},
11975
+ intent: "display"
11976
+ }
11977
+ }, {
11978
+ ...columns,
11979
+ ui: {
11980
+ ...columns.ui ?? {},
11981
+ intent: "display"
11982
+ }
11983
+ }];
11984
+ })(),
11985
+ {
11986
+ id: "eventsPerPage",
11987
+ type: "select",
11988
+ label: "How many",
11989
+ required: false,
11990
+ multiple: false,
11991
+ defaultValue: "12",
11992
+ options: [
11993
+ {
11994
+ value: "3",
11995
+ label: "Show the first 3"
11996
+ },
11997
+ {
11998
+ value: "6",
11999
+ label: "Show the first 6"
12000
+ },
12001
+ {
12002
+ value: "12",
12003
+ label: "Show the first 12"
12004
+ },
12005
+ {
12006
+ value: "24",
12007
+ label: "Show the first 24"
12008
+ }
12009
+ ],
12010
+ ui: { intent: "behavior" }
12011
+ },
12012
+ {
12013
+ id: "paginationMode",
12014
+ type: "select",
12015
+ label: "After those",
12016
+ description: "How visitors can see the rest of your events.",
12017
+ required: false,
12018
+ multiple: false,
12019
+ defaultValue: "loadMore",
12020
+ options: [{
12021
+ value: "loadMore",
12022
+ label: "A button to load more"
12023
+ }, {
12024
+ value: "seeAllLink",
12025
+ label: "A link to another page"
12026
+ }],
12027
+ ui: { intent: "behavior" }
12028
+ },
12029
+ {
12030
+ id: "seeAllUrl",
12031
+ type: "link",
12032
+ label: "Link to the full list",
12033
+ required: false,
12034
+ ui: {
12035
+ intent: "behavior",
12036
+ visibleWhen: {
12037
+ field: "paginationMode",
12038
+ equals: "seeAllLink"
12039
+ }
12040
+ }
12041
+ },
12042
+ {
12043
+ id: "loadMoreText",
12044
+ type: "text",
12045
+ label: "Button or link text",
12046
+ description: "The words on the button or link that shows more events.",
12047
+ required: false,
12048
+ multiline: false,
12049
+ defaultValue: "Load more events",
12050
+ maxLength: 40
12051
+ },
12052
+ ...cardStylingFields.map((field) => ({
12053
+ ...field,
12054
+ ui: {
12055
+ ...field.ui ?? {},
12056
+ intent: field.id === "buttonText" ? "content" : "style"
12057
+ }
12058
+ })),
12059
+ ...eventDisplayFields.map(withoutMap),
12060
+ {
12061
+ id: "eventSurface",
12062
+ type: "select",
12063
+ label: "Kinds of event",
12064
+ description: "Everything, your regular classes, or workshops and special events.",
12065
+ required: false,
12066
+ multiple: false,
12067
+ defaultValue: "all",
12068
+ options: [
12069
+ {
12070
+ value: "all",
12071
+ label: "All events"
12072
+ },
12073
+ {
12074
+ value: "regularClassSchedule",
12075
+ label: "Regular class schedule"
12076
+ },
12077
+ {
12078
+ value: "specialDatedEvents",
12079
+ label: "Workshops and special events"
12080
+ },
12081
+ {
12082
+ value: "custom",
12083
+ label: "Custom"
12084
+ }
12085
+ ],
12086
+ ui: { intent: "behavior" }
12087
+ },
12088
+ {
12089
+ id: "filterEventPresets",
12090
+ type: "select",
12091
+ label: "Only show these event types",
12092
+ description: "Pick the types of event this block shows.",
12093
+ required: false,
12094
+ multiple: true,
12095
+ defaultValue: [],
12096
+ options: [
12097
+ {
12098
+ value: "course",
12099
+ label: "Courses"
12100
+ },
12101
+ {
12102
+ value: "class",
12103
+ label: "Classes"
12104
+ },
12105
+ {
12106
+ value: "workshop",
12107
+ label: "Workshops"
12108
+ },
12109
+ {
12110
+ value: "retreat",
12111
+ label: "Retreats"
12112
+ },
12113
+ {
12114
+ value: "performance",
12115
+ label: "Performances"
12116
+ }
12117
+ ],
12118
+ ui: {
12119
+ intent: "behavior",
12120
+ visibleWhen: {
12121
+ field: "eventSurface",
12122
+ equals: "custom"
12123
+ }
12124
+ }
12125
+ },
12126
+ {
12127
+ id: "scheduleScope",
12128
+ type: "select",
12129
+ label: "Regular or one-off",
12130
+ description: "Show regular events, one-off events or both.",
12131
+ required: false,
12132
+ multiple: false,
12133
+ defaultValue: "any",
12134
+ options: [
12135
+ {
12136
+ value: "any",
12137
+ label: "Both"
12138
+ },
12139
+ {
12140
+ value: "recurring",
12141
+ label: "Regular events only"
12142
+ },
12143
+ {
12144
+ value: "oneOff",
12145
+ label: "One-off events only"
12146
+ }
12147
+ ],
12148
+ ui: {
12149
+ intent: "behavior",
12150
+ visibleWhen: {
12151
+ field: "eventSurface",
12152
+ equals: "custom"
12153
+ }
12154
+ }
12155
+ },
12156
+ ...eventEmptyBehaviorFields.map((field) => field.id === "emptyMessage" ? {
12157
+ ...field,
12158
+ label: "Message"
12159
+ } : field),
12160
+ sectionStylesField({
12161
+ id: "_sectionStyles",
12162
+ label: "Section styles",
12163
+ renderInHeader: false
12164
+ }),
12165
+ containerStylesField({
12166
+ id: "_containerStyles",
12167
+ label: "Panel styles",
12168
+ includeBackground: false,
12169
+ renderInHeader: false
12170
+ })
12171
+ ];
12172
+ /**
12173
+ * Where the listing's settings go. The events come from the site, so the
12174
+ * block itself is its heading and the text under it. The rows are the
12175
+ * calendar's, where they cover the same things.
12176
+ */
12177
+ const eventListingEditing = {
12178
+ content: ["heading", "description"],
12179
+ settings: [
11010
12180
  {
11011
- id: "paginationMode",
11012
- type: "select",
11013
- label: "More events",
11014
- description: "How visitors can see the rest of your events.",
11015
- required: false,
11016
- multiple: false,
11017
- defaultValue: "loadMore",
11018
- options: [{
11019
- value: "loadMore",
11020
- label: "Load more button"
11021
- }, {
11022
- value: "seeAllLink",
11023
- label: "Link to another page"
11024
- }],
11025
- ui: { intent: "display" }
12181
+ id: "events",
12182
+ title: "Which events",
12183
+ fields: [
12184
+ "eventSurface",
12185
+ "filterEventPresets",
12186
+ "scheduleScope"
12187
+ ],
12188
+ summary: {
12189
+ parts: [{
12190
+ field: "eventSurface",
12191
+ options: {
12192
+ all: "all events",
12193
+ regularClassSchedule: "regular classes",
12194
+ specialDatedEvents: "workshops and one-off events",
12195
+ custom: "some kinds of event"
12196
+ }
12197
+ }, {
12198
+ field: "scheduleScope",
12199
+ options: {
12200
+ any: null,
12201
+ recurring: "regular ones only",
12202
+ oneOff: "one-off ones only"
12203
+ }
12204
+ }],
12205
+ none: "All events"
12206
+ }
11026
12207
  },
11027
12208
  {
11028
- id: "seeAllUrl",
11029
- type: "link",
11030
- label: "Link to the full list",
11031
- required: false,
11032
- ui: {
11033
- intent: "display",
11034
- visibleWhen: {
12209
+ id: "count",
12210
+ title: "How many, and where the rest are",
12211
+ fields: [
12212
+ "eventsPerPage",
12213
+ "paginationMode",
12214
+ "seeAllUrl",
12215
+ "loadMoreText"
12216
+ ],
12217
+ summary: {
12218
+ parts: [{
12219
+ field: "eventsPerPage",
12220
+ options: {
12221
+ "3": "the first 3",
12222
+ "6": "the first 6",
12223
+ "12": "the first 12",
12224
+ "24": "the first 24"
12225
+ }
12226
+ }, {
11035
12227
  field: "paginationMode",
11036
- equals: "seeAllLink"
11037
- }
12228
+ options: {
12229
+ loadMore: "then a button to load more",
12230
+ seeAllLink: "then a link to another page"
12231
+ }
12232
+ }],
12233
+ none: "The first 12"
11038
12234
  }
11039
12235
  },
11040
12236
  {
11041
- id: "loadMoreText",
11042
- type: "text",
11043
- label: "More events button text",
11044
- description: "The text on the button or link that shows more events.",
11045
- required: false,
11046
- multiline: false,
11047
- defaultValue: "Load more events",
11048
- maxLength: 40
11049
- },
11050
- ...cardStylingFields.map((field) => ({
11051
- ...field,
11052
- ui: {
11053
- ...field.ui ?? {},
11054
- intent: "style"
11055
- }
11056
- })),
11057
- ...eventDisplayFields.map((field) => ({
11058
- ...field,
11059
- ui: {
11060
- ...field.ui ?? {},
11061
- intent: "display"
11062
- }
11063
- })),
11064
- {
11065
- id: "eventSurface",
11066
- type: "select",
11067
- label: "Event types",
11068
- description: "Choose whether this block shows everything, regular classes, or workshops and special events.",
11069
- required: false,
11070
- multiple: false,
11071
- defaultValue: "all",
11072
- options: [
11073
- {
11074
- value: "all",
11075
- label: "All events"
11076
- },
11077
- {
11078
- value: "regularClassSchedule",
11079
- label: "Regular class schedule"
11080
- },
11081
- {
11082
- value: "specialDatedEvents",
11083
- label: "Workshops and special events"
11084
- },
11085
- {
11086
- value: "custom",
11087
- label: "Custom"
11088
- }
12237
+ id: "card",
12238
+ title: "On each event",
12239
+ fields: [
12240
+ "showVenue",
12241
+ "showCapacity",
12242
+ "buttonText",
12243
+ "buttonVariant"
11089
12244
  ],
11090
- ui: { intent: "behavior" }
12245
+ summary: {
12246
+ parts: [
12247
+ {
12248
+ field: "showVenue",
12249
+ on: "venue"
12250
+ },
12251
+ {
12252
+ field: "showCapacity",
12253
+ on: "places left"
12254
+ },
12255
+ {
12256
+ field: "buttonText",
12257
+ text: {
12258
+ before: "button says “",
12259
+ after: "”",
12260
+ empty: "button says “Book”"
12261
+ }
12262
+ }
12263
+ ],
12264
+ none: "Name and time only"
12265
+ }
11091
12266
  },
11092
12267
  {
11093
- id: "filterEventPresets",
11094
- type: "select",
11095
- label: "Only show these event types",
11096
- description: "Pick the types of event this block shows.",
11097
- required: false,
11098
- multiple: true,
11099
- defaultValue: [],
11100
- options: [
11101
- {
11102
- value: "course",
11103
- label: "Courses"
11104
- },
11105
- {
11106
- value: "class",
11107
- label: "Classes"
11108
- },
11109
- {
11110
- value: "workshop",
11111
- label: "Workshops"
11112
- },
11113
- {
11114
- value: "retreat",
11115
- label: "Retreats"
11116
- },
11117
- {
11118
- value: "performance",
11119
- label: "Performances"
11120
- }
11121
- ],
11122
- ui: {
11123
- intent: "behavior",
11124
- visibleWhen: {
11125
- field: "eventSurface",
11126
- equals: "custom"
11127
- }
12268
+ id: "layout",
12269
+ title: "Layout",
12270
+ fields: ["layout", "columns"],
12271
+ summary: {
12272
+ parts: [{
12273
+ field: "layout",
12274
+ options: {
12275
+ grid: "cards in a grid",
12276
+ stack: "one under another"
12277
+ }
12278
+ }, {
12279
+ field: "columns",
12280
+ options: {
12281
+ "2": "2 columns",
12282
+ "3": "3 columns",
12283
+ "4": "4 columns"
12284
+ }
12285
+ }],
12286
+ none: "Cards in a grid"
11128
12287
  }
11129
12288
  },
11130
12289
  {
11131
- id: "scheduleScope",
11132
- type: "select",
11133
- label: "Regular or one-off",
11134
- description: "Show regular events, one-off events or both.",
11135
- required: false,
11136
- multiple: false,
11137
- defaultValue: "any",
11138
- options: [
11139
- {
11140
- value: "any",
11141
- label: "Both"
11142
- },
11143
- {
11144
- value: "recurring",
11145
- label: "Regular events only"
11146
- },
11147
- {
11148
- value: "oneOff",
11149
- label: "One-off events only"
11150
- }
11151
- ],
11152
- ui: {
11153
- intent: "behavior",
11154
- visibleWhen: {
11155
- field: "eventSurface",
11156
- equals: "custom"
11157
- }
12290
+ id: "empty",
12291
+ title: "When there’s nothing on",
12292
+ fields: ["emptyBehavior", "emptyMessage"],
12293
+ summary: {
12294
+ parts: [{
12295
+ field: "emptyBehavior",
12296
+ options: {
12297
+ hide: "hide this section",
12298
+ message: "show a message"
12299
+ }
12300
+ }],
12301
+ none: "Hide this section"
11158
12302
  }
11159
- },
11160
- ...eventEmptyBehaviorFields,
11161
- sectionStylesField({
11162
- id: "_sectionStyles",
11163
- label: "Section styles",
11164
- renderInHeader: false
11165
- }),
11166
- containerStylesField({
11167
- id: "_containerStyles",
11168
- label: "Panel styles",
11169
- includeBackground: false,
11170
- renderInHeader: false
11171
- })
11172
- ],
12303
+ }
12304
+ ]
12305
+ };
12306
+ const eventListingManifest = createBlockManifestWithContentShape({
12307
+ variantMeaning: { kind: "arrangement" },
12308
+ id: "block.event-listing",
12309
+ version: "1.1.0",
12310
+ title: "Event listing",
12311
+ titleSource: "heading",
12312
+ description: "All your upcoming events in one list.",
12313
+ skipSectionStyles: true,
12314
+ additionalFields: eventListingAdditionalFields,
11173
12315
  styleTokens: {
11174
12316
  background: "surface",
11175
12317
  typography: "body",
@@ -11256,7 +12398,8 @@ const eventListingManifest = createBlockManifestWithContentShape({
11256
12398
  }),
11257
12399
  baseClass: "",
11258
12400
  spacing: "comfortable"
11259
- })]
12401
+ })],
12402
+ editing: eventListingEditing
11260
12403
  }, {
11261
12404
  additionalFields: [{
11262
12405
  id: "layout",
@@ -11370,7 +12513,19 @@ const newsletterSignupManifest = createBlockManifest({
11370
12513
  text: "",
11371
12514
  target: "mailing-lists"
11372
12515
  },
11373
- promotedFields: ["targeting"],
12516
+ editing: {
12517
+ content: [
12518
+ "title",
12519
+ "subtitle",
12520
+ "targeting",
12521
+ "topicsQuestion"
12522
+ ],
12523
+ settings: [
12524
+ "showWhen",
12525
+ "selectedEventSeriesIds",
12526
+ "buttonVariant"
12527
+ ]
12528
+ },
11374
12529
  title: "Newsletter signup",
11375
12530
  titleSource: "title",
11376
12531
  description: "Lets people join one of your mailing lists.",
@@ -11398,11 +12553,17 @@ const newsletterSignupManifest = createBlockManifest({
11398
12553
  id: "topicsQuestion",
11399
12554
  type: "text",
11400
12555
  label: "Question above the topics",
11401
- description: "Used when people choose their own topics. Leave it empty for \"What would you like to hear about?\"",
12556
+ description: "Leave it empty for \"What would you like to hear about?\"",
11402
12557
  required: false,
11403
12558
  multiline: false,
11404
12559
  maxLength: 80,
11405
- ui: { intent: "content" }
12560
+ ui: {
12561
+ intent: "content",
12562
+ visibleWhen: {
12563
+ field: "targeting.selection.tag",
12564
+ equals: "visitor_choice"
12565
+ }
12566
+ }
11406
12567
  },
11407
12568
  {
11408
12569
  id: "showWhen",
@@ -11456,11 +12617,11 @@ const newsletterSignupManifest = createBlockManifest({
11456
12617
  description: "Vertical layout with fields stacked"
11457
12618
  },
11458
12619
  inline: {
11459
- label: "Inline",
12620
+ label: "Email and button on one row",
11460
12621
  description: "Horizontal layout (email + button side by side)"
11461
12622
  },
11462
12623
  "editorial-split": {
11463
- label: "Editorial split",
12624
+ label: "Text beside the sign-up",
11464
12625
  description: "Copy and form in balanced side-by-side columns, stacked on mobile."
11465
12626
  }
11466
12627
  },
@@ -11507,17 +12668,49 @@ const productDetailBlockDefinition = {
11507
12668
  manifest: createBlockManifest({
11508
12669
  variantMeaning: { kind: "arrangement" },
11509
12670
  id: "block.product-detail",
11510
- promotedFields: ["productSlug"],
11511
12671
  version: "1.0.0",
11512
12672
  title: "Product detail",
11513
12673
  titleSource: "heading",
11514
12674
  description: "One product with its photos and an add-to-cart button.",
11515
12675
  skipSectionStyles: true,
12676
+ editing: {
12677
+ content: ["productSlug"],
12678
+ settings: [{
12679
+ id: "shown",
12680
+ title: "With the product",
12681
+ fields: [
12682
+ "heading",
12683
+ "showSummary",
12684
+ "showBody"
12685
+ ],
12686
+ summary: {
12687
+ parts: [
12688
+ {
12689
+ field: "heading",
12690
+ text: {
12691
+ before: "label “",
12692
+ after: "”"
12693
+ }
12694
+ },
12695
+ {
12696
+ field: "showSummary",
12697
+ on: "summary"
12698
+ },
12699
+ {
12700
+ field: "showBody",
12701
+ on: "details"
12702
+ }
12703
+ ],
12704
+ none: "Name, photos and price only"
12705
+ }
12706
+ }, "addButtonText"]
12707
+ },
11516
12708
  additionalFields: [
11517
12709
  {
11518
12710
  id: "heading",
11519
12711
  type: "text",
11520
- label: "Heading",
12712
+ label: "Small label above the name",
12713
+ description: "Such as “New” or “Back in stock”. Leave it empty for none.",
11521
12714
  multiline: false,
11522
12715
  required: false,
11523
12716
  defaultValue: ""
@@ -11525,16 +12718,20 @@ const productDetailBlockDefinition = {
11525
12718
  {
11526
12719
  id: "productSlug",
11527
12720
  type: "text",
11528
- label: "Product slug",
12721
+ label: "Product",
11529
12722
  multiline: false,
11530
- description: "Only needed if this block isn't on a product page. Use the last part of the product's web address.",
12723
+ description: "Only needed when this isn't a product page. Type the last part of the product's web address.",
11531
12724
  required: false,
11532
- ui: { intent: "behavior" }
12725
+ ui: {
12726
+ intent: "behavior",
12727
+ visibleWhen: { template: "page" }
12728
+ }
11533
12729
  },
11534
12730
  {
11535
12731
  id: "showSummary",
11536
12732
  type: "boolean",
11537
- label: "Show summary",
12733
+ label: "Show the summary",
12734
+ description: "The product's summary, under the price.",
11538
12735
  required: false,
11539
12736
  defaultValue: true,
11540
12737
  ui: { intent: "display" }
@@ -11542,7 +12739,8 @@ const productDetailBlockDefinition = {
11542
12739
  {
11543
12740
  id: "showBody",
11544
12741
  type: "boolean",
11545
- label: "Show full description",
12742
+ label: "Show the details",
12743
+ description: "The product's details, under the button.",
11546
12744
  required: false,
11547
12745
  defaultValue: true,
11548
12746
  ui: { intent: "display" }
@@ -11550,7 +12748,8 @@ const productDetailBlockDefinition = {
11550
12748
  {
11551
12749
  id: "addButtonText",
11552
12750
  type: "text",
11553
- label: "Add button text",
12751
+ label: "Button text",
12752
+ description: "Leave it empty for “Add to cart”.",
11554
12753
  multiline: false,
11555
12754
  required: false,
11556
12755
  defaultValue: "Add to cart"
@@ -11561,7 +12760,8 @@ const productDetailBlockDefinition = {
11561
12760
  label: "If there's nothing to show",
11562
12761
  multiline: false,
11563
12762
  required: false,
11564
- defaultValue: "Product unavailable."
12763
+ defaultValue: "Product unavailable.",
12764
+ ui: { hidden: true }
11565
12765
  },
11566
12766
  sectionStylesField({
11567
12767
  id: "_sectionStyles",
@@ -11655,6 +12855,79 @@ const productListBlockDefinition = {
11655
12855
  titleSource: "heading",
11656
12856
  description: "Your products, each with a button to add it to the cart.",
11657
12857
  skipSectionStyles: true,
12858
+ editing: {
12859
+ content: ["heading"],
12860
+ settings: [
12861
+ {
12862
+ id: "card",
12863
+ title: "On each product",
12864
+ fields: [
12865
+ "showSummary",
12866
+ "showPrices",
12867
+ "addButtonText"
12868
+ ],
12869
+ summary: {
12870
+ parts: [
12871
+ {
12872
+ field: "showSummary",
12873
+ on: "summary"
12874
+ },
12875
+ {
12876
+ field: "showPrices",
12877
+ on: "price"
12878
+ },
12879
+ {
12880
+ field: "addButtonText",
12881
+ text: {
12882
+ before: "button says “",
12883
+ after: "”",
12884
+ empty: "button says “Add to cart”"
12885
+ }
12886
+ }
12887
+ ],
12888
+ none: "Name and photo only"
12889
+ }
12890
+ },
12891
+ {
12892
+ id: "layout",
12893
+ title: "Layout",
12894
+ fields: ["layout", "columns"],
12895
+ summary: {
12896
+ parts: [{
12897
+ field: "layout",
12898
+ options: {
12899
+ grid: "grid",
12900
+ list: "one under another"
12901
+ }
12902
+ }, {
12903
+ field: "columns",
12904
+ options: {
12905
+ "1": "1 column",
12906
+ "2": "2 columns",
12907
+ "3": "3 columns",
12908
+ "4": "4 columns"
12909
+ }
12910
+ }],
12911
+ none: "Grid"
12912
+ }
12913
+ },
12914
+ {
12915
+ id: "empty",
12916
+ title: "When there are no products",
12917
+ fields: ["emptyStateText"],
12918
+ summary: {
12919
+ parts: [{
12920
+ field: "emptyStateText",
12921
+ text: {
12922
+ before: "“",
12923
+ after: "”"
12924
+ }
12925
+ }],
12926
+ none: "Our standard wording"
12927
+ }
12928
+ }
12929
+ ]
12930
+ },
11658
12931
  additionalFields: [
11659
12932
  {
11660
12933
  id: "heading",
@@ -11676,7 +12949,7 @@ const productListBlockDefinition = {
11676
12949
  label: "Grid"
11677
12950
  }, {
11678
12951
  value: "list",
11679
- label: "List"
12952
+ label: "One under another"
11680
12953
  }],
11681
12954
  ui: { intent: "display" }
11682
12955
  },
@@ -11705,12 +12978,19 @@ const productListBlockDefinition = {
11705
12978
  label: "4 columns"
11706
12979
  }
11707
12980
  ],
11708
- ui: { intent: "display" }
12981
+ ui: {
12982
+ intent: "display",
12983
+ visibleWhen: {
12984
+ field: "layout",
12985
+ equals: "grid"
12986
+ }
12987
+ }
11709
12988
  },
11710
12989
  {
11711
12990
  id: "showSummary",
11712
12991
  type: "boolean",
11713
- label: "Show summary",
12992
+ label: "Show the summary",
12993
+ description: "The product's summary, under its name.",
11714
12994
  required: false,
11715
12995
  defaultValue: true,
11716
12996
  ui: { intent: "display" }
@@ -11718,7 +12998,7 @@ const productListBlockDefinition = {
11718
12998
  {
11719
12999
  id: "showPrices",
11720
13000
  type: "boolean",
11721
- label: "Show prices",
13001
+ label: "Show the price",
11722
13002
  required: false,
11723
13003
  defaultValue: true,
11724
13004
  ui: { intent: "display" }
@@ -11726,7 +13006,8 @@ const productListBlockDefinition = {
11726
13006
  {
11727
13007
  id: "addButtonText",
11728
13008
  type: "text",
11729
- label: "Add button text",
13009
+ label: "Button text",
13010
+ description: "Leave it empty for “Add to cart”.",
11730
13011
  multiline: false,
11731
13012
  required: false,
11732
13013
  defaultValue: "Add to cart"
@@ -11734,7 +13015,8 @@ const productListBlockDefinition = {
11734
13015
  {
11735
13016
  id: "emptyStateText",
11736
13017
  type: "text",
11737
- label: "If there's nothing to show",
13018
+ label: "Message",
13019
+ description: "What visitors see when there are no products to show.",
11738
13020
  multiline: false,
11739
13021
  required: false,
11740
13022
  defaultValue: "No products available right now."
@@ -11838,6 +13120,119 @@ function cardListSectionAction(labelPath = "content.sectionActionLabel", linkPat
11838
13120
  } }
11839
13121
  }, [text({ as: "span" }, bind(labelPath))], when(labelPath));
11840
13122
  }
13123
+ //#endregion
13124
+ //#region ../blocks/src/system/blocks/shopEditing.ts
13125
+ /**
13126
+ * Where Passes & memberships' settings go. The cards come from the site's
13127
+ * catalogue, so the one thing that's the block itself is what it shows: that
13128
+ * choice sits open at the top, and only appears when both kinds are on sale.
13129
+ * Settings about one kind drop out when the block doesn't show that kind.
13130
+ * On a style with Looks, the Look owns the layout and button style, so
13131
+ * "Layout and buttons" drops out there.
13132
+ */
13133
+ const shopEditing = {
13134
+ content: ["showPasses"],
13135
+ settings: [
13136
+ {
13137
+ id: "card",
13138
+ title: "On each card",
13139
+ fields: [
13140
+ "showDescriptions",
13141
+ "showValidityPeriod",
13142
+ "showPricePerCredit"
13143
+ ],
13144
+ summary: {
13145
+ parts: [
13146
+ {
13147
+ field: "showDescriptions",
13148
+ on: "description"
13149
+ },
13150
+ {
13151
+ field: "showValidityPeriod",
13152
+ on: "how long it lasts"
13153
+ },
13154
+ {
13155
+ field: "showPricePerCredit",
13156
+ on: "price each"
13157
+ }
13158
+ ],
13159
+ none: "Name and price only"
13160
+ }
13161
+ },
13162
+ {
13163
+ id: "layout",
13164
+ title: "Layout and buttons",
13165
+ fields: [
13166
+ "layout",
13167
+ "columns",
13168
+ "buttonVariant"
13169
+ ],
13170
+ summary: {
13171
+ parts: [{
13172
+ field: "layout",
13173
+ options: {
13174
+ grid: "grid",
13175
+ list: "list",
13176
+ register: "compact register"
13177
+ }
13178
+ }, {
13179
+ field: "columns",
13180
+ options: {
13181
+ "1": "1 column",
13182
+ "2": "2 columns",
13183
+ "3": "3 columns",
13184
+ "4": "4 columns"
13185
+ }
13186
+ }],
13187
+ none: "Set by the Look"
13188
+ }
13189
+ },
13190
+ {
13191
+ id: "wording",
13192
+ title: "Wording",
13193
+ fields: [
13194
+ "passesHeading",
13195
+ "membershipsHeading",
13196
+ "buyButtonText",
13197
+ "subscribeButtonText"
13198
+ ],
13199
+ summary: {
13200
+ parts: [{
13201
+ field: "passesHeading",
13202
+ text: {
13203
+ before: "“",
13204
+ after: "”"
13205
+ }
13206
+ }, {
13207
+ field: "membershipsHeading",
13208
+ text: {
13209
+ before: "“",
13210
+ after: "”"
13211
+ }
13212
+ }],
13213
+ none: "Our standard wording"
13214
+ }
13215
+ },
13216
+ {
13217
+ id: "link",
13218
+ title: "Link under the cards",
13219
+ fields: ["sectionActionLabel", "sectionActionLink"],
13220
+ summary: {
13221
+ parts: [{
13222
+ field: "sectionActionLabel",
13223
+ text: {
13224
+ before: "“",
13225
+ after: "”"
13226
+ }
13227
+ }],
13228
+ none: "No link"
13229
+ }
13230
+ }
13231
+ ]
13232
+ };
13233
+ //#endregion
13234
+ //#region ../blocks/src/system/blocks/shop.ts
13235
+ const [sectionActionLabelField, sectionActionLinkField] = cardListSectionActionFields;
11841
13236
  const shopBlockDefinition = {
11842
13237
  manifest: createBlockManifest({
11843
13238
  variantMeaning: {
@@ -11852,15 +13247,14 @@ const shopBlockDefinition = {
11852
13247
  ]
11853
13248
  },
11854
13249
  id: "block.shop",
11855
- promotedFields: ["showPasses", "showMemberships"],
11856
13250
  version: "1.0.0",
11857
13251
  title: "Passes & memberships",
11858
13252
  titleSource: "passesHeading",
11859
13253
  description: "Your class passes and memberships, ready for people to buy.",
11860
13254
  skipSectionStyles: true,
13255
+ editing: shopEditing,
11861
13256
  additionalFields: [
11862
13257
  ...cardListKnobFields,
11863
- ...cardListSectionActionFields,
11864
13258
  {
11865
13259
  id: "featured",
11866
13260
  type: "text",
@@ -11876,26 +13270,30 @@ const shopBlockDefinition = {
11876
13270
  {
11877
13271
  id: "showPasses",
11878
13272
  type: "boolean",
11879
- label: "Show passes",
11880
- description: "Lets visitors buy your class passes.",
13273
+ label: "Show",
11881
13274
  required: false,
11882
13275
  defaultValue: true,
11883
- ui: { intent: "behavior" }
13276
+ ui: {
13277
+ intent: "behavior",
13278
+ widget: "shopShow",
13279
+ visibleWhen: shopShowChoiceCondition
13280
+ }
11884
13281
  },
11885
13282
  {
11886
13283
  id: "showMemberships",
11887
13284
  type: "boolean",
11888
13285
  label: "Show memberships",
11889
- description: "Lets visitors buy your memberships.",
11890
13286
  required: false,
11891
13287
  defaultValue: true,
11892
- ui: { intent: "behavior" }
13288
+ ui: {
13289
+ intent: "behavior",
13290
+ hidden: true
13291
+ }
11893
13292
  },
11894
13293
  {
11895
13294
  id: "layout",
11896
13295
  type: "select",
11897
13296
  label: "Layout",
11898
- description: "How the passes and memberships are laid out.",
11899
13297
  required: false,
11900
13298
  multiple: false,
11901
13299
  defaultValue: "grid",
@@ -11918,8 +13316,7 @@ const shopBlockDefinition = {
11918
13316
  {
11919
13317
  id: "columns",
11920
13318
  type: "select",
11921
- label: "Grid columns",
11922
- description: "Number of columns in grid layout",
13319
+ label: "Columns",
11923
13320
  required: false,
11924
13321
  multiple: false,
11925
13322
  defaultValue: "2",
@@ -11941,13 +13338,18 @@ const shopBlockDefinition = {
11941
13338
  label: "4 columns"
11942
13339
  }
11943
13340
  ],
11944
- ui: { intent: "display" }
13341
+ ui: {
13342
+ intent: "display",
13343
+ visibleWhen: {
13344
+ field: "layout",
13345
+ equals: "grid"
13346
+ }
13347
+ }
11945
13348
  },
11946
13349
  {
11947
13350
  id: "showDescriptions",
11948
13351
  type: "boolean",
11949
- label: "Show descriptions",
11950
- description: "Shows the description under each one.",
13352
+ label: "Description",
11951
13353
  required: false,
11952
13354
  defaultValue: true,
11953
13355
  ui: { intent: "behavior" }
@@ -11955,20 +13357,25 @@ const shopBlockDefinition = {
11955
13357
  {
11956
13358
  id: "showValidityPeriod",
11957
13359
  type: "boolean",
11958
- label: "Show validity period",
11959
- description: "Shows how long each pass lasts, like 'Valid for 30 days'.",
13360
+ label: "How long a pass lasts",
13361
+ description: "Like “Valid for 30 days”.",
11960
13362
  required: false,
11961
13363
  defaultValue: true,
11962
- ui: { intent: "behavior" }
13364
+ ui: {
13365
+ intent: "behavior",
13366
+ visibleWhen: shopPassesShownCondition
13367
+ }
11963
13368
  },
11964
13369
  {
11965
13370
  id: "showPricePerCredit",
11966
13371
  type: "boolean",
11967
- label: "Show price per credit",
11968
- description: "Shows what each credit works out at, for passes and packs.",
13372
+ label: "What each one works out at",
11969
13373
  required: false,
11970
13374
  defaultValue: true,
11971
- ui: { intent: "behavior" }
13375
+ ui: {
13376
+ intent: "behavior",
13377
+ visibleWhen: shopPassesShownCondition
13378
+ }
11972
13379
  },
11973
13380
  createButtonVariantField({
11974
13381
  label: "Button style",
@@ -11978,52 +13385,65 @@ const shopBlockDefinition = {
11978
13385
  {
11979
13386
  id: "passesHeading",
11980
13387
  type: "text",
11981
- label: "Passes heading",
11982
- description: "An optional heading above your passes.",
13388
+ label: "Heading above passes",
13389
+ description: "Leave it empty and we’ll use one that fits your passes, like “Class passes”.",
11983
13390
  required: false,
11984
13391
  multiline: false,
11985
13392
  defaultValue: "",
11986
- maxLength: 100
13393
+ maxLength: 100,
13394
+ ui: { visibleWhen: shopPassesShownCondition }
11987
13395
  },
11988
13396
  {
11989
13397
  id: "membershipsHeading",
11990
13398
  type: "text",
11991
- label: "Memberships heading",
11992
- description: "Heading for the memberships section",
13399
+ label: "Heading above memberships",
11993
13400
  required: false,
11994
13401
  multiline: false,
11995
13402
  defaultValue: "Memberships",
11996
- maxLength: 100
13403
+ maxLength: 100,
13404
+ ui: { visibleWhen: shopMembershipsShownCondition }
11997
13405
  },
11998
13406
  {
11999
13407
  id: "buyButtonText",
12000
13408
  type: "text",
12001
- label: "Pass button text",
12002
- description: "The text on the button to buy a pass.",
13409
+ label: "Button on a pass",
12003
13410
  required: false,
12004
13411
  multiline: false,
12005
13412
  defaultValue: DEFAULT_PASS_BUY_BUTTON_TEXT,
12006
- maxLength: 40
13413
+ maxLength: 40,
13414
+ ui: { visibleWhen: shopPassesShownCondition }
12007
13415
  },
12008
13416
  {
12009
13417
  id: "subscribeButtonText",
12010
13418
  type: "text",
12011
- label: "Subscribe button text",
12012
- description: "Text for membership subscribe button",
13419
+ label: "Button on a membership",
12013
13420
  required: false,
12014
13421
  multiline: false,
12015
13422
  defaultValue: "Subscribe",
12016
- maxLength: 40
13423
+ maxLength: 40,
13424
+ ui: { visibleWhen: shopMembershipsShownCondition }
12017
13425
  },
12018
13426
  {
12019
13427
  id: "emptyStateText",
12020
13428
  type: "text",
12021
13429
  label: "If there's nothing to show",
12022
- description: "What visitors see when there's nothing for sale.",
12023
13430
  required: false,
12024
13431
  multiline: false,
12025
13432
  defaultValue: "No products available at this time.",
12026
- maxLength: 200
13433
+ maxLength: 200,
13434
+ ui: { hidden: true }
13435
+ },
13436
+ {
13437
+ ...sectionActionLabelField,
13438
+ label: "Link text"
13439
+ },
13440
+ {
13441
+ ...sectionActionLinkField,
13442
+ label: "Where it goes",
13443
+ ui: { visibleWhen: {
13444
+ field: "sectionActionLabel",
13445
+ hasValue: true
13446
+ } }
12027
13447
  },
12028
13448
  sectionStylesField({
12029
13449
  id: "_sectionStyles",
@@ -12112,16 +13532,13 @@ const shopBlockDefinition = {
12112
13532
  from: "content.subscribeButtonText",
12113
13533
  fallback: "Subscribe"
12114
13534
  } },
12115
- emptyStateText: { $bind: {
12116
- from: "content.emptyStateText",
12117
- fallback: "No products available at this time."
12118
- } },
12119
13535
  passes: { $bind: { from: "data.passes.passes" } },
12120
13536
  memberships: { $bind: { from: "data.memberships.memberships" } }
12121
13537
  })), cardListSectionAction()], { gap: "lg" })
12122
13538
  })]
12123
13539
  }),
12124
13540
  runtime: shopBlockRuntime,
13541
+ readiness: shopReadiness,
12125
13542
  dataSchemas: {
12126
13543
  passes: publicPassProductCollectionSchema.optional(),
12127
13544
  memberships: publicMembershipProductCollectionSchema.optional()
@@ -12269,10 +13686,6 @@ function GiftingSSR({ blockId, ...rest }) {
12269
13686
  const giftCards = offers?.giftCards ?? [];
12270
13687
  const vouchers = offers?.vouchers ?? [];
12271
13688
  const hasOffers = giftCards.length > 0 || vouchers.length > 0;
12272
- const eyebrow = giftingEyebrow(offers, {
12273
- giftCards: display.giftCardsHeading,
12274
- vouchers: display.vouchersHeading
12275
- });
12276
13689
  return /* @__PURE__ */ jsx(IslandRoot, {
12277
13690
  kind: "gifting",
12278
13691
  id: blockId,
@@ -12283,69 +13696,88 @@ function GiftingSSR({ blockId, ...rest }) {
12283
13696
  },
12284
13697
  value: islandProps,
12285
13698
  children: /* @__PURE__ */ jsxs("div", {
12286
- className: "gifting-panel",
12287
- ...giftingSlot(display, "panel"),
13699
+ className: "gifting",
13700
+ ...display.lookSlots ? { "data-slot": "layout" } : {},
12288
13701
  children: [/* @__PURE__ */ jsx(GiftingPanelHead, {
12289
- eyebrow,
12290
13702
  heading: display.heading,
12291
13703
  intro: display.intro,
12292
13704
  look: display
12293
- }), hasOffers ? /* @__PURE__ */ jsxs("div", {
12294
- className: "gifting-panel-offers",
12295
- children: [giftCards.map((offer) => /* @__PURE__ */ jsxs("div", {
12296
- className: "gifting-offer",
12297
- "data-gift-offer": offer.id,
12298
- children: [
12299
- giftCards.length > 1 ? /* @__PURE__ */ jsx("h3", {
12300
- className: "gifting-offer-title",
12301
- children: offer.title
12302
- }) : null,
12303
- offer.description ? /* @__PURE__ */ jsx("p", {
12304
- className: "gifting-offer-description",
12305
- children: offer.description
12306
- }) : null,
12307
- /* @__PURE__ */ jsxs("div", {
12308
- className: "gifting-offer-row",
12309
- "data-gift-offer-row": "",
12310
- children: [/* @__PURE__ */ jsx(GiftCardAmounts, {
12311
- offer,
12312
- currency: offers?.currency ?? "GBP",
12313
- groupName: `amountChoice-${offer.id}`,
12314
- look: display
12315
- }), /* @__PURE__ */ jsx(ThemedButton, {
12316
- ...giftingSlot(display, "action"),
12317
- type: "button",
12318
- variant: "primary",
12319
- size: "md",
12320
- extraClassName: "gifting-buy",
12321
- label: "Buy a gift card"
12322
- })]
12323
- })
12324
- ]
12325
- }, offer.id)), vouchers.map((offer) => /* @__PURE__ */ jsxs("div", {
12326
- className: "gifting-offer",
12327
- children: [
12328
- /* @__PURE__ */ jsx("h3", {
12329
- className: "gifting-offer-title",
12330
- children: offer.title
12331
- }),
12332
- offer.description ? /* @__PURE__ */ jsx("p", {
12333
- className: "gifting-offer-description",
12334
- children: offer.description
12335
- }) : null,
12336
- /* @__PURE__ */ jsx(ThemedButton, {
12337
- ...giftingSlot(display, "action"),
12338
- type: "button",
12339
- variant: "primary",
12340
- size: "md",
12341
- extraClassName: "gifting-buy",
12342
- label: "Buy this voucher"
13705
+ }), /* @__PURE__ */ jsx("div", {
13706
+ className: "gifting-main",
13707
+ children: hasOffers ? /* @__PURE__ */ jsx("div", {
13708
+ className: "gifting-groups",
13709
+ "data-group-count": display.groups.length,
13710
+ children: display.groups.map((group) => /* @__PURE__ */ jsx(GiftGroup, {
13711
+ group,
13712
+ look: display,
13713
+ children: group.kind === "gift_card" ? /* @__PURE__ */ jsx(Fragment, { children: giftCards.map((offer) => /* @__PURE__ */ jsxs("div", {
13714
+ className: "gifting-offer",
13715
+ "data-gift-offer": offer.id,
13716
+ children: [
13717
+ giftCards.length > 1 ? /* @__PURE__ */ jsx("h4", {
13718
+ className: "gifting-offer-title",
13719
+ children: offer.title
13720
+ }) : null,
13721
+ offer.description ? /* @__PURE__ */ jsx("p", {
13722
+ className: "gifting-offer-description",
13723
+ children: offer.description
13724
+ }) : null,
13725
+ /* @__PURE__ */ jsxs("div", {
13726
+ className: "gifting-offer-row",
13727
+ "data-gift-offer-row": "",
13728
+ children: [/* @__PURE__ */ jsx(GiftCardAmounts, {
13729
+ offer,
13730
+ currency: offers?.currency ?? "GBP",
13731
+ groupName: `amountChoice-${offer.id}`,
13732
+ look: display
13733
+ }), /* @__PURE__ */ jsx(ThemedButton, {
13734
+ ...giftingSlot(display, "action"),
13735
+ type: "button",
13736
+ variant: "primary",
13737
+ size: "md",
13738
+ extraClassName: "gifting-buy",
13739
+ label: "Buy a gift card"
13740
+ })]
13741
+ })
13742
+ ]
13743
+ }, offer.id)) }) : /* @__PURE__ */ jsx("ul", {
13744
+ className: "gifting-voucher-list",
13745
+ children: vouchers.map((offer) => /* @__PURE__ */ jsx("li", {
13746
+ className: "gifting-voucher",
13747
+ children: /* @__PURE__ */ jsxs("div", {
13748
+ className: "gifting-offer",
13749
+ children: [
13750
+ /* @__PURE__ */ jsxs("div", {
13751
+ className: "gifting-offer-summary",
13752
+ children: [/* @__PURE__ */ jsx("h4", {
13753
+ className: "gifting-offer-title",
13754
+ children: offer.title
13755
+ }), /* @__PURE__ */ jsx("strong", {
13756
+ className: "gifting-offer-price",
13757
+ children: formatGiftAmount(offer.voucher.purchaseAmountCents, offers?.currency ?? "GBP")
13758
+ })]
13759
+ }),
13760
+ offer.description ? /* @__PURE__ */ jsx("p", {
13761
+ className: "gifting-offer-description",
13762
+ children: offer.description
13763
+ }) : null,
13764
+ /* @__PURE__ */ jsx(ThemedButton, {
13765
+ ...giftingSlot(display, "action"),
13766
+ type: "button",
13767
+ variant: "secondary",
13768
+ size: "md",
13769
+ extraClassName: "gifting-buy",
13770
+ label: "Buy this voucher"
13771
+ })
13772
+ ]
13773
+ })
13774
+ }, offer.id))
12343
13775
  })
12344
- ]
12345
- }, offer.id))]
12346
- }) : /* @__PURE__ */ jsx("p", {
12347
- className: "gifting-empty",
12348
- children: display.emptyStateText
13776
+ }, group.kind))
13777
+ }) : /* @__PURE__ */ jsx("p", {
13778
+ className: "gifting-empty",
13779
+ children: display.emptyStateText
13780
+ })
12349
13781
  })]
12350
13782
  })
12351
13783
  });
@@ -12505,7 +13937,7 @@ function renderCalendarSsr(display, hydration) {
12505
13937
  }), /* @__PURE__ */ jsxs("div", {
12506
13938
  className: "event-calendar-events",
12507
13939
  children: [day.visibleEntries.map(({ event, timeZone }) => /* @__PURE__ */ jsxs("a", {
12508
- ...resolveEventLinkProps(event),
13940
+ ...resolveEventPageLink(event),
12509
13941
  className: "event-calendar-event",
12510
13942
  title: `${eventDisplayTitleText(event)} at ${formatTime(event.startsAt, eventDateOptions({
12511
13943
  ...event,
@@ -12611,7 +14043,7 @@ function renderTimetableSsr(display, hydration) {
12611
14043
  className: "event-timetable-day-empty",
12612
14044
  children: "No classes"
12613
14045
  }) : day.events.map((cell) => /* @__PURE__ */ jsxs("a", {
12614
- ...resolveEventLinkProps(cell.event),
14046
+ ...resolveEventPageLink(cell.event),
12615
14047
  className: "event-timetable-event",
12616
14048
  title: `${eventDisplayTitleText(cell.event)}, ${cell.timeLabel}`,
12617
14049
  style: {
@@ -13237,4 +14669,4 @@ const serverComponentRegistry = {
13237
14669
  ...buildServerRegistryFromEntries(runtimeBackedBlockServerEntries)
13238
14670
  };
13239
14671
  //#endregion
13240
- export { WeeklySlotAvailabilityView as $, media as $t, eventRegistrationBlockDefinition as A, lookQuoteLimitTransform as An, desktopOnlyDisplay as At, defineFragment as B, DEFAULT_MEDIA_FIELD_KINDS as Bn, SectionNode as Bt, teamReadiness as C, publicAppointmentPricingSchema as Cn, eventHeaderSlotParents as Ct, loadedReadinessFact as D, resolveBackgroundColorValue as Dn, composeHeaderSectionWrapperClassName as Dt, hiddenFromVisitors as E, getAnchorClasses as En, HeaderSectionFrame as Et, augmentManifest as F, ACCORDION_TRIGGER_FONT_SCALE as Fn, resolveAccordionIconStyle as Ft, parseFieldDefinitions as G, resolveRepeaterGridSpanFieldId as Gn, carousel as Gt, createSiteOptionSelectField as H, parseRepeaterGridInteger as Hn, bind as Ht, formEmbedFragment as I, ACCORDION_TRIGGER_LETTER_SPACING as In, PUBLIC_DOWNLOAD_MEDIA_TYPES as It, sectionHeaderLayoutNodes as J, publicMapLocationParamsSchema as Jn, form as Jt, withApiBindings as K, RESOLVED_INTERNAL_LINK_ENTITY_TYPES as Kn, el as Kt, formCopyFragment as L, ICON_CONFIG as Ln, FEATURE_CARD_GENERATED_ICON_SIZE_PX as Lt, checkoutBlockDefinition as M, lookSlot as Mn, accordionItemPartSlots as Mt, cartBlockDefinition as N, ACCORDION_OPEN_ACCENT_THICKNESS as Nn, accordionLookAttributes as Nt, pageTemplateFromEntry as O, lookCarouselRegionTransform as On, markEditableSurfaceForwarding as Ot, createBlockManifest as P, ACCORDION_SPACING_MAP as Pn, accordionIconColorStyle as Pt, backgroundFrame as Q, link as Qt, buildFragmentDataLoaders as R, ICON_SIZE_PX as Rn, FEATURE_CARD_ICON_TREATMENTS as Rt, galleryReadiness as S, publicAppointmentLocationSchema as Sn, lookPartShown as St, admitReadinessFacts as T, BACKGROUND_POSITION_PRESET_VALUES as Tn, buildAppointmentServicesView as Tt, normalizeSelectSource as U, resolveRepeaterGridColumnFieldId as Un, bookingForm as Ut, createSdkSelectField as V, isAcceptedRepeaterGridSpan as Vn, accordionList as Vt, parseFieldDefinition as W, resolveRepeaterGridRowFieldId as Wn, button as Wt, sectionContainer as X, isCanonicalRichTextDoc as Xn, icon as Xt, styledContainer as Y, publicMapLocationResultSchema as Yn, headerSection as Yt, styledSection as Z, inline as Zt, cardListSectionActionFields as _, eventScopeQueryKeys as _n, normalizeLocationMapProps as _t, cardListSectionAction as a, text as an, eventDisplayFields as at, formDataSchema as b, formatAppointmentLocation as bn, resolveLocationMapLocation as bt, newsletterSignupBlockDefinition as c, blockChecksForEvents as cn, containerStylesField as ct, eventListingBlockDefinition as d, eventReadinessQueryKeys as dn, createButtonVariantField as dt, props as en, buildLoadedOfferingsPreviewListing as et, mapDrawingStyleBinding as f, eventReadinessResultSchema as fn, LocationMapSSR as ft, cardListPresentationBindings as g, eventScopeQuery as gn, describeUnresolvedLocationMapLocation as gt, cardListPhotoNumberFields as h, eventScopeLoaderParam as hn, LOCATION_MAP_LOADER_KEYS as ht, shopBlockDefinition as i, stack as in, emptyStateField as it, giftingBlockDefinition as j, lookSkinSlotTransform as jn, mobileOnlyDisplay as jt, unavailableReadinessFact as k, lookLeadSlotTransform as kn, splitPositioningClasses as kt, sanitizeNewsletterSignupPublicContent as l, eventReadinessLoaderKey as ln, sectionStylesField as lt, cardListKnobFields as m, eventDiscoveryFilterKeys as mn, LOCATION_MAP_LIMITS as mt, runtimeBackedBlockModes as n, richText as nn, cardStylingFields as nt, productListBlockDefinition as o, videoEmbed as on, layoutField as ot, eventCalendarBlockDefinition as p, eventWeekReadScope as pn, LOCATION_MAP_DEFAULTS as pt, sectionHeaderFields as q, linkSchema as qn, fileDownload as qt, runtimeBackedBlockServerEntries as r, section as rn, columnsField as rt, productDetailBlockDefinition as s, when as sn, cardStylesField as st, serverComponentRegistry as t, repeat as tn, offeringCourseSlotParents as tt, normalizeMailingListBlockContent as u, eventReadinessQuery as un, createButtonGroup as ut, normalizeCardListContent as v, resolveEventScope as vn, normalizeLocationMapSource as vt, testimonialsReadiness as w, teamMemberCardBiographyFallback as wn, resolveEventDetailsPresentation as wt, chosenString as x, formatAppointmentPrice as xn, EventDetailsView as xt, formBlockDefinition as y, formatAppointmentDuration as yn, parseLocationMapLoaderResult as yt, composeFragments as z, bindingSchema as zn, parseBlockIconValue as zt };
14672
+ export { sectionContainer as $, DEFAULT_MEDIA_FIELD_KINDS as $n, el as $t, loadedReadinessFact as A, publicAppointmentLocationSchema as An, eventHeaderSlotParents as At, formCopyFragment as B, lookSlot as Bn, accordionLookAttributes as Bt, fileDownloadReadiness as C, eventDiscoveryFilterKeys as Cn, normalizeLocationMapProps as Ct, videoGridReadiness as D, formatAppointmentDuration as Dn, EventDetailsView as Dt, testimonialsReadiness as E, resolveEventScope as En, resolveLocationMapLocation as Et, checkoutBlockDefinition as F, resolveBackgroundColorValue as Fn, markEditableSurfaceForwarding as Ft, createSiteOptionSelectField as G, ICON_CONFIG as Gn, FEATURE_CARD_ICON_TREATMENTS as Gt, composeFragments as H, ACCORDION_SPACING_MAP as Hn, resolveAccordionIconStyle as Ht, cartBlockDefinition as I, lookCarouselRegionTransform as In, splitPositioningClasses as It, parseFieldDefinitions as J, storedSectionPhoto as Jn, accordionList as Jt, normalizeSelectSource as K, ICON_SIZE_PX as Kn, parseBlockIconValue as Kt, createBlockManifest as L, lookLeadSlotTransform as Ln, desktopOnlyDisplay as Lt, unavailableReadinessFact as M, teamMemberCardBiographyFallback as Mn, buildAppointmentServicesView as Mt, eventRegistrationBlockDefinition as N, BACKGROUND_POSITION_PRESET_VALUES as Nn, HeaderSectionFrame as Nt, admitReadinessFacts as O, formatAppointmentLocation as On, lookPartShown as Ot, giftingBlockDefinition as P, getAnchorClasses as Pn, composeHeaderSectionWrapperClassName as Pt, styledContainer as Q, placedEditingPaths as Qn, carousel as Qt, augmentManifest as R, lookQuoteLimitTransform as Rn, mobileOnlyDisplay as Rt, chosenString as S, resolveEventScopeRead as Sn, describeUnresolvedLocationMapLocation as St, teamReadiness as T, eventScopeQueryKeys as Tn, parseLocationMapLoaderResult as Tt, defineFragment as U, ACCORDION_TRIGGER_FONT_SCALE as Un, PUBLIC_DOWNLOAD_MEDIA_TYPES as Ut, buildFragmentDataLoaders as V, ACCORDION_OPEN_ACCENT_THICKNESS as Vn, accordionIconColorStyle as Vt, createSdkSelectField as W, ACCORDION_TRIGGER_LETTER_SPACING as Wn, FEATURE_CARD_GENERATED_ICON_SIZE_PX as Wt, sectionHeaderFields as X, pageGround as Xn, bookingForm as Xt, withApiBindings as Y, groundPaint as Yn, bind as Yt, sectionHeaderLayoutNodes as Z, bindingSchema as Zn, button as Zt, cardListSectionActionFields as _, eventReadinessQuery as _n, createButtonVariantField as _t, cardListSectionAction as a, link as an, mapReadinessFact as ar, offeringCourseSlotParents as at, formDataSchema as b, recurringScheduleRead as bn, LOCATION_MAP_LIMITS as bt, newsletterSignupBlockDefinition as c, repeat as cn, publicMapLocationParamsSchema as cr, emptyStateField as ct, eventListingBlockDefinition as d, stack as dn, withoutMap as dt, fileDownload as en, isAcceptedRepeaterGridSpan as er, layoutSectionGround as et, mapDrawingStyleBinding as f, text as fn, cardStylesField as ft, cardListPresentationBindings as g, eventReadinessLoaderKey as gn, createButtonGroup as gt, cardListPhotoNumberFields as h, blockChecksForEvents as hn, unreadContainerStylesField as ht, shopBlockDefinition as i, inline as in, resolveRepeaterGridSpanFieldId as ir, buildLoadedOfferingsPreviewListing as it, pageTemplateFromEntry as j, publicAppointmentPricingSchema as jn, resolveEventDetailsPresentation as jt, hiddenFromVisitors as k, formatAppointmentPrice as kn, lookParts as kt, sanitizeNewsletterSignupPublicContent as l, richText as ln, publicMapLocationResultSchema as lr, eventDisplayFields as lt, cardListKnobFields as m, when as mn, sectionStylesField as mt, runtimeBackedBlockModes as n, headerSection as nn, resolveRepeaterGridColumnFieldId as nr, backgroundFrame as nt, productListBlockDefinition as o, media as on, RESOLVED_INTERNAL_LINK_ENTITY_TYPES as or, cardStylingFields as ot, eventCalendarBlockDefinition as p, videoEmbed as pn, containerStylesField as pt, parseFieldDefinition as q, sectionPhotoPath as qn, SectionNode as qt, runtimeBackedBlockServerEntries as r, icon as rn, resolveRepeaterGridRowFieldId as rr, WeeklySlotAvailabilityView as rt, productDetailBlockDefinition as s, props as sn, linkSchema as sr, columnsField as st, serverComponentRegistry as t, form as tn, parseRepeaterGridInteger as tr, styledSection as tt, normalizeMailingListBlockContent as u, section as un, isCanonicalRichTextDoc as ur, layoutField as ut, normalizeCardListContent as v, eventReadinessQueryKeys as vn, LocationMapSSR as vt, galleryReadiness as w, eventScopeLoaderParam as wn, normalizeLocationMapSource as wt, audioPlayerReadiness as x, resolveEventCalendarRead as xn, LOCATION_MAP_LOADER_KEYS as xt, formBlockDefinition as y, eventReadinessResultSchema as yn, LOCATION_MAP_DEFAULTS as yt, formEmbedFragment as z, lookSkinSlotTransform as zn, accordionItemPartSlots as zt };