@riverbankcms/sdk 0.182.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-Bvw2bUif.d.ts → BlocksIslandsHydrator-X1_G96iN.d.ts} +1 -1
  4. package/dist/_dts/{Page-B2EAT-bE.d.ts → Page-CEqZJZEE.d.ts} +7 -7
  5. package/dist/_dts/{SdkPreviewMode-D0vww6rh.d.ts → SdkPreviewMode-DQejfbXL.d.ts} +2 -2
  6. package/dist/_dts/{client-D6T430bk.d.ts → client-B_B_amKD.d.ts} +2 -1
  7. package/dist/_dts/{content-types-wZVWccC6.d.ts → content-types-Dhx5Ocvx.d.ts} +9 -16
  8. package/dist/_dts/{contracts-B-vtOcr8.d.ts → contracts-FeOnfoa1.d.ts} +3 -3
  9. package/dist/_dts/{generatePageMetadata-CxfwHE6z.d.ts → generatePageMetadata-m70J6tit.d.ts} +2 -2
  10. package/dist/_dts/{index-CEyYMhLJ.d.ts → index-BOpUh8kO.d.ts} +1 -1
  11. package/dist/_dts/{index-DIU-wL1M.d.ts → index-Bizdaxji.d.ts} +2 -2
  12. package/dist/_dts/{index-Cqxis-nv.d.ts → index-BxCmCit0.d.ts} +1 -1
  13. package/dist/_dts/{index-CQrb3Ccc.d.ts → index-CjAkEWAp.d.ts} +4 -4
  14. package/dist/_dts/{index-DqPKdeTk.d.ts → index-iuFrbIjt.d.ts} +1 -1
  15. package/dist/_dts/{index-CciRW_w1.d.ts → index-liuhlOX7.d.ts} +2 -2
  16. package/dist/_dts/{loadContent-D0wrxiSp.d.ts → loadContent-D4wrTIIw.d.ts} +7 -7
  17. package/dist/_dts/{request-DEwxUSw8.d.ts → request-Gn0O1blj.d.ts} +24912 -23733
  18. package/dist/_dts/{resolveBlockData-VaG_MYbN.d.ts → resolveBlockData-D5duwuqS.d.ts} +5 -5
  19. package/dist/_dts/{resolvePageContent-DTwklC_v.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-DtQuFlID.d.ts → serviceBookingOutline-B1gyJon_.d.ts} +7 -7
  56. package/dist/_dts/{types-B3RjeBLV.d.ts → types-BoITy0rA.d.ts} +41 -4
  57. package/dist/_dts/{types-BvUSGQrw.d.ts → types-DBNuMtSk.d.ts} +16 -5
  58. package/dist/_dts/{types-CkRFtBqd.d.ts → types-DHMcuoeQ.d.ts} +7 -7
  59. package/dist/_dts/{validation-BZA3DhcV.d.ts → validation-BIPO-XlE.d.ts} +4 -4
  60. package/dist/client/{BlocksIslandsHydrator-CQMf0HdN.mjs → BlocksIslandsHydrator-Ct8slgRk.mjs} +22 -18
  61. package/dist/client/{BookingMailingListNote-7kdvuPow.mjs → BookingMailingListNote-qqTxGGS4.mjs} +7 -7
  62. package/dist/client/{BookingQuestionFields-BJI7mZuV.mjs → BookingQuestionFields-DCh9MUIF.mjs} +2 -2
  63. package/dist/client/{CalendarAction-D_Glwvz2.mjs → CalendarAction-RcdaStG7.mjs} +1 -1
  64. package/dist/client/{CalendarNavigationChevron-DPUD6wjy.mjs → CalendarNavigationChevron-D7Wt-Oaa.mjs} +25 -8
  65. package/dist/client/{CheckboxChoice-C8i4NraK.mjs → CheckboxChoice-BdGxZWeg.mjs} +1 -1
  66. package/dist/client/{DemoBookingPortalAccess-8kwNF9HN.mjs → DemoBookingPortalAccess-HFVkoOac.mjs} +5 -5
  67. package/dist/client/{EventCalendar.client-Dhb14bcC.mjs → EventCalendar.client-BtkJW8bA.mjs} +10 -10
  68. package/dist/client/{EventCombined.client-C1jEZBN9.mjs → EventCombined.client-DxaGjFFS.mjs} +9 -9
  69. package/dist/client/{EventEmbeddedCheckoutStep-BGkbUhuw.mjs → EventEmbeddedCheckoutStep-B2c5dR49.mjs} +1 -1
  70. package/dist/client/{EventItem-Bb0ppG2N.mjs → EventItem-Fr2qi2C2.mjs} +29 -14
  71. package/dist/client/{EventListWeekNavigation-DMryCaNV.mjs → EventListWeekNavigation-BRMaq0ky.mjs} +1 -1
  72. package/dist/client/{EventListing.client-BuH5kKA3.mjs → EventListing.client-BhGxfbjt.mjs} +3 -3
  73. package/dist/client/{EventListing.view-DsqvuulZ.mjs → EventListing.view-COuEJzbO.mjs} +6 -6
  74. package/dist/client/{EventRegistrationPayment-D4FvQSFF.mjs → EventRegistrationPayment-BTLYhVxD.mjs} +21 -42
  75. package/dist/client/{Page-sV6BJkXX.mjs → Page-CgbQZP5g.mjs} +2786 -927
  76. package/dist/client/{ProtectedSubmitButton-BNnKuir8.mjs → ProtectedSubmitButton-BG7my0Qf.mjs} +1 -1
  77. package/dist/client/{SiteTermsAgreementField-VfSd6JU-.mjs → SiteTermsAgreementField-DQNkfNLA.mjs} +3 -3
  78. package/dist/client/{StepIndicator-B6o5B7g3.mjs → StepIndicator-DvPekKeM.mjs} +1 -1
  79. package/dist/client/{StepIndicator-BTqO7cJl.mjs → StepIndicator-DyXoI3ob.mjs} +7 -7
  80. package/dist/client/{ThemedButton-PFOhXktM.mjs → ThemedButton-Bc9DBbVp.mjs} +42 -9
  81. package/dist/client/{accessibleSurfaces-BogaGutk.mjs → accessibleSurfaces-wj4Rloo5.mjs} +336 -119
  82. package/dist/client/{accordion-6cuswD_s.mjs → accordion-BVXfjnh-.mjs} +1 -1
  83. package/dist/client/{booking-form.client-BOMe_SKi.mjs → booking-form.client-DycPGtke.mjs} +191 -71
  84. package/dist/client/{bookingForm-DSCH-VHo.mjs → bookingForm-DrWSUqL3.mjs} +4 -4
  85. package/dist/client/bookings.mjs +5 -5
  86. package/dist/client/{boxStyleClassNames-BFuqZCfz.mjs → boxStyleClassNames-CduDRcIk.mjs} +2 -2
  87. package/dist/client/buttonParts-CJEtVOUy.mjs +1511 -0
  88. package/dist/client/{carousel-CGyQVV1M.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-BYOe7MCh.mjs → cart-BuEp_cj4.mjs} +3 -3
  91. package/dist/client/{cart.client-BKFkaXdV.mjs → cart.client-CAO39uDG.mjs} +1 -1
  92. package/dist/client/{checkout-Dwd7Di77.mjs → checkout-BoxzT64s.mjs} +3 -3
  93. package/dist/client/{checkout.client-C25hpi-z.mjs → checkout.client-IGUy7XOx.mjs} +1 -1
  94. package/dist/client/{checkoutUrls-tG788sw0.mjs → checkoutUrls-D0UsiFmm.mjs} +1 -1
  95. package/dist/client/client.mjs +446 -93
  96. package/dist/client/{constants-DdxFG3Ic.mjs → constants-C_8AxMdm.mjs} +1 -1
  97. package/dist/client/{context-Hi1RuYEM.mjs → context-D1L0pe__.mjs} +2 -2
  98. package/dist/client/{dateFormatting-C8vBCHuo.mjs → dateFormatting-HvfmS_cH.mjs} +1 -1
  99. package/dist/client/{demoPortalMagicLink-BAL5UIDG.mjs → demoPortalMagicLink-BunFTnIq.mjs} +1 -1
  100. package/dist/client/{enhanceHeaderSection-Dv1Lr9kJ.mjs → enhanceHeaderSection-CtLAG651.mjs} +4 -4
  101. package/dist/client/{event-registration.client-dB_Z7bb-.mjs → event-registration.client-DiSxkBUP.mjs} +15 -15
  102. package/dist/client/{eventCalendar-CQnRA4Ww.mjs → eventCalendar-DUnhwZ1o.mjs} +4 -4
  103. package/dist/client/{eventCombined-BDOG1hVp.mjs → eventCombined-BvBQo0nF.mjs} +4 -4
  104. package/dist/client/{eventListing-DSVmhy9n.mjs → eventListing-aTLifOX7.mjs} +4 -4
  105. package/dist/client/{eventRegistration-CD5mRtEH.mjs → eventRegistration-DFd7pr09.mjs} +4 -4
  106. package/dist/client/{form-DWnlEVSK.mjs → form-Dikmc2AO.mjs} +3 -3
  107. package/dist/client/{form.client-D7zmeqNI.mjs → form.client-zHaQK5I9.mjs} +5 -5
  108. package/dist/client/{form.parts-C-G6N_MK.mjs → form.parts-BLl9n8TH.mjs} +3 -3
  109. package/dist/client/gifting/client.mjs +16 -9
  110. package/dist/client/{gifting-Cn0jidP5.mjs → gifting-CufPM38H.mjs} +4 -4
  111. package/dist/client/{gifting.client-DVo1YFLs.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-DjQuj_6v.mjs → headerSection-BIaBpmk3.mjs} +2 -2
  115. package/dist/client/{noop-jesvJXEE.mjs → islands-DJDLGQEm.mjs} +14007 -6685
  116. package/dist/client/{newsletter-form.client-rIYPziZC.mjs → newsletter-form.client-wg_JHTxm.mjs} +6 -6
  117. package/dist/client/{newsletter-form.interactive-DVt3enLr.mjs → newsletter-form.interactive-hzpkW9NQ.mjs} +226 -195
  118. package/dist/client/{newsletter-form.parts-CH6dGfdn.mjs → newsletter-form.parts-CgzpSv9p.mjs} +2 -2
  119. package/dist/client/{newsletterForm-Cg8cBDHd.mjs → newsletterForm-CvxLiEBT.mjs} +3 -3
  120. package/dist/client/portal/client.mjs +31 -27
  121. package/dist/client/{portalOrders-oEoTvzkW.mjs → portalOrders-tCxS04g0.mjs} +3 -2
  122. package/dist/client/{portalRoutes-ByyVZfVq.mjs → portalRoutes-DTHlWg_F.mjs} +22 -7
  123. package/dist/client/{product-detail.client-5aHq-vuu.mjs → product-detail.client-22Q7zgjN.mjs} +1 -1
  124. package/dist/client/{product-list.client-CyAk5rnC.mjs → product-list.client-DFWYvK8z.mjs} +1 -1
  125. package/dist/client/{productDetail-B8aZ2mqY.mjs → productDetail-DhZAwo60.mjs} +3 -3
  126. package/dist/client/{productList-BuLemmod.mjs → productList-BiVpbZK2.mjs} +3 -3
  127. package/dist/client/{propsDecoder-0Unsqn3R.mjs → propsDecoder-DFYqKnLy.mjs} +4 -2
  128. package/dist/client/{registry.server-DzvtVVD0.mjs → registry.server-C3OBRg7x.mjs} +2027 -781
  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-Bnng7JFA.mjs → richText-coerce-ms477Z08.mjs} +2 -2
  133. package/dist/client/{routeIslandApiConfig-BGfcc9sk.mjs → routeIslandApiConfig-B6nQeqvH.mjs} +1 -1
  134. package/dist/client/{runtimeResponse-DAPVRToN.mjs → runtimeResponse-BYqsV1Kb.mjs} +1 -1
  135. package/dist/client/runtimeResponse-CUX_lldL.mjs +3 -0
  136. package/dist/client/{shop-commerce-D5bDY1o1.mjs → shop-commerce-DVsIcPaI.mjs} +16 -15
  137. package/dist/client/{shop-commerce-store-B7sHnLwI.mjs → shop-commerce-store-7mO6KY7_.mjs} +1 -1
  138. package/dist/client/{shop-discount-apply.state-Dos2zdC2.mjs → shop-discount-apply.state-L1Vge8tG.mjs} +2 -2
  139. package/dist/client/{shop-GuMqnDL-.mjs → shop-xt4dQ3HH.mjs} +3 -3
  140. package/dist/client/{shop.client-uvj5GDZb.mjs → shop.client-DNJfD3VQ.mjs} +28 -17
  141. package/dist/client/{shopShared-3giNWE3H.mjs → shopShared-DS8t6749.mjs} +2 -2
  142. package/dist/client/spam-protection.mjs +1 -1
  143. package/dist/client/{src-CmXh3JWs.mjs → src-Do_s2lqH.mjs} +11 -18
  144. package/dist/client/{timetableModel-GA-hn1qM.mjs → timetableModel-Dy3nNfTG.mjs} +11 -8
  145. package/dist/client/{useAvailableSlots-CBneCxbG.mjs → useAvailableSlots-DcjtDpUu.mjs} +2 -2
  146. package/dist/client/{useDiscountCodeUi-D0kGF0C7.mjs → useDiscountCodeUi-DvdFFWOT.mjs} +1 -1
  147. package/dist/client/{useEventPagination-xX8n_Tuu.mjs → useEventPagination-Cq-7sU5_.mjs} +8 -8
  148. package/dist/client/{view-DOyZc-DF.mjs → view-4gnPcpWJ.mjs} +24 -9
  149. package/dist/client/{wizardSteps-B952ify5.mjs → wizardSteps-DDvL3iza.mjs} +76 -159
  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-BI3UCdpu.mjs → PageSectionToolbar-D8srnz9R.mjs} +445 -18
  154. package/dist/preview-next/client/{PreviewEditorSidebar-jkfLVOgY.mjs → PreviewEditorSidebar-DVpk5cqp.mjs} +3864 -1943
  155. package/dist/preview-next/client/{PreviewEditorUI-DwJQs4hM.mjs → PreviewEditorUI-XoTtHSFH.mjs} +11 -36
  156. package/dist/preview-next/client/{PreviewShell-BAxAkuz8.mjs → PreviewShell-VQHsRg2u.mjs} +40 -35
  157. package/dist/preview-next/client/{SdkPreviewModeRuntime-0UVB-39f.mjs → SdkPreviewModeRuntime-CLdF9f6o.mjs} +12 -8
  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-BgiYk3PB.mjs → previewAssistantSlot-CqH91EwA.mjs} +17988 -6757
  161. package/dist/preview-next/client/{previewChromeRoot-tieNdF3E.mjs → previewChromeRoot-B3ySEu6p.mjs} +3 -90
  162. package/dist/preview-next/client/runtime.mjs +3 -3
  163. package/dist/preview-next/client/{sdk-runtime-DXb_Evl0.mjs → sdk-runtime-CdpSupcr.mjs} +2 -2
  164. package/dist/preview-next/client/{siteStyleAccess-BlN0jt2c.mjs → siteStyleAccess-C6eOP6QW.mjs} +35 -6
  165. package/dist/preview-next/client/{useAutosaveStatus-BUEPA4oL.mjs → useAutosaveStatus-BhPg4e-r.mjs} +49 -3
  166. package/dist/preview-next/client/{useOpenBlockForSetup-BVfr5P--.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-BHTBA48n.mjs → route-contract-Ch0X99vE.mjs} +163 -17
  172. package/dist/server/{Block.shared-hGoyEdjJ.mjs → Block.shared-B2FmczLO.mjs} +5 -5
  173. package/dist/server/{ThemeScopeCore-BfUCTOwj.mjs → ThemeScopeCore-DtAyv9qA.mjs} +17 -7
  174. package/dist/server/{accessibleSurfaces-Dskni4Xj.mjs → accessibleSurfaces-BtPqb76u.mjs} +418 -31
  175. package/dist/server/{accordions-By_0Ykks.mjs → accordions-vzdZ2Wt1.mjs} +1 -1
  176. package/dist/server/{bindings-DMJH4bvo.mjs → bindings-B_9JuU66.mjs} +7 -7
  177. package/dist/server/{client-DrwlRNAH.mjs → client-DC7cjiSw.mjs} +469 -92
  178. package/dist/server/config-validation.mjs +1 -1
  179. package/dist/server/config.mjs +2 -2
  180. package/dist/server/{constants-CeMywaiD.mjs → constants-d6nPNJpe.mjs} +22 -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/{expandPalette-ehuW8r2g.mjs → expandPalette-DxPrNOAB.mjs} +182 -90
  184. package/dist/server/index.mjs +3 -3
  185. package/dist/server/{loadContent-D0prFflT.mjs → loadContent-hb27HYic.mjs} +11 -10
  186. package/dist/server/{loadPage-CBLke9pJ.mjs → loadPage-JToD8wDD.mjs} +3 -3
  187. package/dist/server/{lookMediaFrame-H0fi4bJk.mjs → lookMediaFrame-CTsycLLK.mjs} +94 -39
  188. package/dist/server/manifest.mjs +2 -2
  189. package/dist/server/{navigation-wrcuWmgp.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-DUgCEH8z.mjs → overrideResolution-vD5KTClL.mjs} +1 -1
  193. package/dist/server/page-converter.mjs +3 -3
  194. package/dist/server/{pageRenderPlan-BHrmogsW.mjs → pageRenderPlan-CdqJ1NQZ.mjs} +86 -97
  195. package/dist/server/{pageRuntimeSupport-D2-YMRei.mjs → pageRuntimeSupport-CAhr4oOf.mjs} +3 -3
  196. package/dist/server/{pageShared-CG8O31Eo.mjs → pageShared-m80Xu2pd.mjs} +429 -247
  197. package/dist/server/{parseThemeForPersistence-CrPlbJEN.mjs → parseThemeForPersistence-CRwOZfpa.mjs} +3 -3
  198. package/dist/server/{portal-pG_uhsI2.mjs → portal-B2wCQno_.mjs} +1 -1
  199. package/dist/server/portal.mjs +2 -2
  200. package/dist/server/{prebuild-C8Amvzce.mjs → prebuild-BWIkFaXq.mjs} +1 -1
  201. package/dist/server/prebuild.mjs +1 -1
  202. package/dist/server/{prefetchBlockData-BxUETRIZ.mjs → prefetchBlockData-D1PHU-K9.mjs} +3 -3
  203. package/dist/server/{registry-Cc88-23f.mjs → registry-KtsOsAzY.mjs} +20113 -9774
  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-OG3KOkig.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-BcFuhhD7.mjs → servicePageContent-ChEZDRwU.mjs} +37 -14
  213. package/dist/server/theme-bridge.mjs +3 -3
  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-BovmbS8N.mjs → validation-Cvi-1TZZ.mjs} +13 -9
  220. package/dist/server/{version-hws4hgyX.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 +2482 -108
  223. package/package.json +1 -1
  224. package/dist/client/gifting.parts-Bak93gD2.mjs +0 -86
  225. package/dist/client/runtimeResponse-nXT8VAMl.mjs +0 -3
  226. package/dist/client/types-BEaKfam_.mjs +0 -778
@@ -1,32 +1,33 @@
1
1
  "use client";
2
- import { An as DEFAULT_MAILING_LIST_TARGETING, B as buildCartInteractiveIslandProps, Cn as formatEventPriceAmount, Ct as listingEventCardProps, Dn as assessMailingListTargeting, Et as eventCombinedBlockRuntime, F as buildGiftingInteractiveIslandProps, Ft as normalizeEventStaffMemberId, G as cartBlockRuntime, H as buildProductDetailInteractiveIslandProps, I as giftingBlockRuntime, It as normalizeEventSurfacePresets, Jt as getContainerClass, Lt as normalizeEventSurfaceScope, Nt as normalizeEventCategoryIds, On as parseMailingListPlacementTargeting, P as occurrenceContextSchema, Pt as normalizeEventScheduleScope, Q as productListBlockRuntime, R as publicGiftingOffersResponseSchema, Rt as normalizeEventVenueId, Sn as formatEventPrice, St as catalogueEventCardProps, Tn as formatEventStartingPrice, Tt as buildEventCombinedListingDisplay, U as buildProductListInteractiveIslandProps, V as buildCheckoutInteractiveIslandProps, W as buildShopInteractiveIslandProps, X as productDetailBlockRuntime, Xt as CardListContentPart, Yt as formatBookingSchedulePresentation, an as buildEventListWeek, bn as formatCoursePrice, bt as resolveOfferingsPreviewGroups, dt as groupOfferingRunsByCourse, et as shopBlockRuntime, f as eventCalendarBlockRuntime, fn as recurringScheduleProjectionSchema, g as formBlockRuntime, gn as staticHeaderChromeRuntime, gt as offeringsListingFor, h as buildFormInteractiveIslandProps, ht as offeringRunLifecycle, i as newsletterFormBlockRuntime, in as Grid, it as DEFAULT_GROUP_CTA, l as buildEventCalendarInteractiveIslandProps, lt as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, mt as normalizeOfferingsPreviewItemLimit, n as buildNewsletterFormInteractiveIslandProps, nt as shopProductPresentation, o as buildEventListingInteractiveIslandProps, on as eventListWeekDays, q as checkoutBlockRuntime, qt as getCardOrientation, r as newsletterBlockSubmissionMessage, rn as MediaNodeServer, rt as publicProductsResponseSchema, s as eventListingBlockRuntime, sn as eventWeekGroupingContext, t as NEWSLETTER_SIGNUPS_PAUSED_MESSAGE, tn as EventQuickFacts, u as buildEventCalendarListingDisplay, un as resolveEventSelection, ut as buildOfferingsPreviewListing, vt as readOfferingsGrouping, wn as formatEventPriceDisplay, wt as buildEventCombinedInteractiveIslandProps, x as eventRegistrationBlockRuntime, xn as formatEventDepositNote, xt as resolveOfferingsRenderInput, y as buildEventRegistrationInteractiveIslandProps, yn as splitSiteChromePlacementClasses, yt as resolveOfferingsPreviewGroupCta, z as DEFAULT_PASS_BUY_BUTTON_TEXT } from "./newsletter-form.interactive-DVt3enLr.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-CmXh3JWs.mjs";
5
- import { $o as groupEventsByDate, $s as resolveWholeSeriesBookingPhase, Ao as isEventFull, Bo as eventDateOptions, 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, Ms as sanitizeHref, Ni as groupPublicEventsByRun, No as BLOCK_BUTTON_ROLE_OPTIONS, Ns as parseAspectRatioValue, Oo as getEventAvailabilityStatus, Qo as formatTime, Qs as orderedLiveRunSessions, Sc as resolvePricingOptionsPriceDisplay, Xo as formatEventTimeRange, Xs as CANCELLED_SESSION_STATUS, Yo as formatEventRunDates, Zs as nextLiveRunSessionStartMs, _c as publicEventPricingCurrency, _o as resolveEventCta, bc as publicEventPricingType, bi as resolveEventRegistrationScopedEvents, bo as isBookableEvent, bs as asPartialObject, ds as resolvePublicMediaUrl, fo as eventVenuePlace, gc as isPublicEventPricingOptionDisplayable, go as resolveEventCardBooking, ho as eventDestinationPagePath, lo as bookingPresentation, mc as formatBookingPriceDisplay, pi as closedRunCopy, po as formatEventLocation, qo as formatEventHourLabel, ts as ImagePresets, uc as EVENT_ADDRESS_AFTER_BOOKING_LABEL, uo as eventOnlinePlace, vc as publicEventPricingDisplay, vi as normalizeEventRegistrationPageSurfaceSubject, vo as resolveEventPageLink, wo as formatEventRemainingPlaces, xc as resolveExactOrFreePriceDisplay, yo as resolveRuntimeEventDestination } from "./wizardSteps-B952ify5.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-DPUD6wjy.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-GA-hn1qM.mjs";
10
- import { Qt as arrangementSlotNames, R as compiledRuntimeStyleFieldNames, a as lookListPresentationSchemaShape, fn as cardVariantRoleValues, gn as parseGradientPresetId, i as listLookSlot, n as listItemPresentation, ot as gradientToCss, st as getGradientPreset } from "./noop-jesvJXEE.mjs";
11
- import { D as SYSTEM_BLOCK_KINDS, T as parseThemeColorToken } from "./types-BEaKfam_.mjs";
12
- import { H as rgbColorValue, I as resolveThemeColorReferenceValue, R as backgroundColorStyle, U as textColorStyle, V as mergeStyles, s as serializeSurfaceTree } from "./accessibleSurfaces-BogaGutk.mjs";
13
- import { l as DEFAULT_SECTION_SPACING, o as normalizeBoxStylesBorder, r as boxStyleClassNames, s as resolveCardRoleForBoxStyles } from "./boxStyleClassNames-BFuqZCfz.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-Bnng7JFA.mjs";
18
- import { f as formatCourseSessions, l as eventDisplayTitle, n as CardListItems, p as formatMoreDates, r as EventItem, u as eventDisplayTitleText } from "./EventItem-Bb0ppG2N.mjs";
19
- import { i as resolvePublicEventDepositOffer, t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-DdxFG3Ic.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-B6o5B7g3.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-BTqO7cJl.mjs";
23
- import { a as EventCard, i as EventCompactRow, r as EmptyState, t as EventListingFrameView } from "./EventListing.view-DsqvuulZ.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";
24
25
  import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
25
- 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-DOyZc-DF.mjs";
26
- import { a as giftingEyebrow, n as GiftCardAmounts, o as giftingSlot, r as GiftingPanelHead } from "./gifting.parts-Bak93gD2.mjs";
27
- import { n as EventListWeekNavigation, t as EventListWeekEmptyState } from "./EventListWeekNavigation-DMryCaNV.mjs";
28
- import { n as FormSubmitAction, t as FormFieldGroups } from "./form.parts-C-G6N_MK.mjs";
29
- import { a as partitionNewsletterFields, n as NewsletterSubmitRow, r as NewsletterTopicChips, t as NewsletterExtraField } from "./newsletter-form.parts-CH6dGfdn.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({
@@ -1072,6 +1220,24 @@ function requireGroundToken(value) {
1072
1220
  return token;
1073
1221
  }
1074
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
1075
1241
  //#region ../theme-core/src/accordions/types.ts
1076
1242
  /**
1077
1243
  * Icon configuration mapping icon styles to Lucide icons and behavior
@@ -4366,8 +4532,10 @@ function EventHeader({ selection, presentation, showCost, showCapacity }) {
4366
4532
  "aria-label": "At a glance",
4367
4533
  children: part("facts")
4368
4534
  }),
4369
- part("availability"),
4370
- part("action")
4535
+ item.availability || item.action ? /* @__PURE__ */ jsxs("div", {
4536
+ ...listLookSlot(presentation, "booking"),
4537
+ children: [part("availability"), part("action")]
4538
+ }) : null
4371
4539
  ]
4372
4540
  }),
4373
4541
  part("numeral")
@@ -4377,7 +4545,8 @@ function EventHeader({ selection, presentation, showCost, showCapacity }) {
4377
4545
  const eventHeaderSlotParents = {
4378
4546
  frame: null,
4379
4547
  copy: "frame",
4380
- availability: "copy",
4548
+ booking: "copy",
4549
+ availability: "booking",
4381
4550
  "item-media": "frame"
4382
4551
  };
4383
4552
  //#endregion
@@ -4409,15 +4578,23 @@ const lookParts = {
4409
4578
  "track"
4410
4579
  ]
4411
4580
  }],
4412
- "block.event-details": [{
4413
- part: "title",
4414
- fields: ["showTitle"],
4415
- shownIn: ["details-panel"]
4416
- }, {
4417
- part: "description",
4418
- fields: ["showDescription"],
4419
- shownIn: ["details-panel"]
4420
- }]
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
+ ]
4421
4598
  };
4422
4599
  /** Fields the arrangement leaves out. Nothing on an older style, where no arrangement Look shows the block. */
4423
4600
  function fieldsNotShownIn(blockKind, arrangement) {
@@ -4428,6 +4605,17 @@ function lookPartShown(blockKind, field, arrangement) {
4428
4605
  return !fieldsNotShownIn(blockKind, arrangement).includes(field);
4429
4606
  }
4430
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
4431
4619
  //#region ../blocks/src/system/runtime/nodes/events/shared/DateTimeTile.tsx
4432
4620
  /**
4433
4621
  * Shared tile content for displaying date and time range.
@@ -4453,19 +4641,25 @@ function wholeSeriesPriceOptions(pricing) {
4453
4641
  return pricing.kind === "tiered" ? pricing.options.filter((option) => option.isActive) : [];
4454
4642
  }
4455
4643
  /** The price, with any deposit option said beside it. */
4456
- function PriceLine({ price, depositNote }) {
4457
- 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
+ });
4458
4649
  }
4459
- function WholeSeriesPricingDisplay({ pricing, depositNote, acceptedItems }) {
4650
+ function WholeSeriesPricingDisplay({ pricing, depositNote, acceptedItems, slots }) {
4460
4651
  const options = wholeSeriesPriceOptions(pricing);
4461
4652
  return /* @__PURE__ */ jsxs("div", {
4653
+ ...slots.detail,
4462
4654
  className: "rb-mt-6",
4463
4655
  children: [
4464
4656
  /* @__PURE__ */ jsx("div", {
4657
+ ...slots.label,
4465
4658
  className: "rb-label rb-mb-2",
4466
4659
  children: options.length > 1 ? "Pricing" : "Cost"
4467
4660
  }),
4468
4661
  options.length > 1 ? /* @__PURE__ */ jsx("div", {
4662
+ ...slots.value,
4469
4663
  className: "rb-flex rb-flex-col rb-gap-2",
4470
4664
  children: options.map((option) => /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsxs("strong", { children: [
4471
4665
  option.name,
@@ -4478,7 +4672,8 @@ function WholeSeriesPricingDisplay({ pricing, depositNote, acceptedItems }) {
4478
4672
  }) : null] }, option.id))
4479
4673
  }) : /* @__PURE__ */ jsx(PriceLine, {
4480
4674
  price: formatBookingPriceDisplay(publicEventPricingDisplay(pricing), { decimals: "auto" }),
4481
- depositNote
4675
+ depositNote,
4676
+ valueSlot: slots.value
4482
4677
  }),
4483
4678
  depositNote && options.length > 1 ? /* @__PURE__ */ jsxs("p", {
4484
4679
  className: "rb-caption rb-mt-1",
@@ -4525,13 +4720,16 @@ function TicketTypePriceList({ ticketTypes, currency }) {
4525
4720
  }, ticketType.id))
4526
4721
  });
4527
4722
  }
4528
- function EventPricingDetails({ isDropIn, wholeSeriesPricingDisplay, acceptedItems, eventCostLabel, depositNote, eventPricingCurrency, ticketTypes, autoApplyDiscount }) {
4723
+ function EventPricingDetails({ isDropIn, wholeSeriesPricingDisplay, acceptedItems, eventCostLabel, depositNote, eventPricingCurrency, ticketTypes, autoApplyDiscount, slots }) {
4529
4724
  if (isDropIn) return /* @__PURE__ */ jsxs("div", {
4725
+ ...slots.detail,
4530
4726
  className: "rb-mt-6",
4531
4727
  children: [/* @__PURE__ */ jsx("div", {
4728
+ ...slots.label,
4532
4729
  className: "rb-label rb-mb-2",
4533
4730
  children: "Registration"
4534
4731
  }), /* @__PURE__ */ jsx("p", {
4732
+ ...slots.value,
4535
4733
  className: "rb-caption status-muted",
4536
4734
  children: "No registration required - just show up"
4537
4735
  })]
@@ -4539,18 +4737,22 @@ function EventPricingDetails({ isDropIn, wholeSeriesPricingDisplay, acceptedItem
4539
4737
  if (wholeSeriesPricingDisplay) return /* @__PURE__ */ jsx(WholeSeriesPricingDisplay, {
4540
4738
  pricing: wholeSeriesPricingDisplay,
4541
4739
  depositNote,
4542
- acceptedItems: [...acceptedItems]
4740
+ acceptedItems: [...acceptedItems],
4741
+ slots
4543
4742
  });
4544
4743
  if (eventCostLabel) return /* @__PURE__ */ jsxs("div", {
4744
+ ...slots.detail,
4545
4745
  className: "rb-mt-6",
4546
4746
  children: [
4547
4747
  /* @__PURE__ */ jsx("div", {
4748
+ ...slots.label,
4548
4749
  className: "rb-label rb-mb-2",
4549
4750
  children: "Cost"
4550
4751
  }),
4551
4752
  /* @__PURE__ */ jsx(PriceLine, {
4552
4753
  price: eventCostLabel,
4553
- depositNote
4754
+ depositNote,
4755
+ valueSlot: slots.value
4554
4756
  }),
4555
4757
  autoApplyDiscount && eventPricingCurrency ? /* @__PURE__ */ jsx("p", {
4556
4758
  className: "rb-caption rb-mt-1",
@@ -4567,14 +4769,16 @@ function EventPricingDetails({ isDropIn, wholeSeriesPricingDisplay, acceptedItem
4567
4769
  ]
4568
4770
  });
4569
4771
  return acceptedItems.length > 0 ? /* @__PURE__ */ jsx("div", {
4772
+ ...slots.detail,
4570
4773
  className: "rb-mt-6",
4571
4774
  children: /* @__PURE__ */ jsxs("p", {
4775
+ ...slots.value,
4572
4776
  className: "rb-caption",
4573
4777
  children: ["You can also attend with: ", acceptedItems.join(", ")]
4574
4778
  })
4575
4779
  }) : null;
4576
4780
  }
4577
- function EventFacts({ selection, selected, venue, online, addressAfterBooking, teamMembers, pricing, showCapacity, lookSlots }) {
4781
+ function EventFacts({ selection, selected, venue, online, addressAfterBooking, teamMembers, pricing, showCapacity, lookSlots, slots }) {
4578
4782
  const { date, timeRange } = formatEventDateParts({
4579
4783
  startsAt: selected.startsAt,
4580
4784
  endsAt: selected.endsAt,
@@ -4585,34 +4789,51 @@ function EventFacts({ selection, selected, venue, online, addressAfterBooking, t
4585
4789
  ...listLookSlot({ lookSlots }, "facts"),
4586
4790
  className: "rb-flex rb-flex-col rb-gap-4",
4587
4791
  children: [
4588
- /* @__PURE__ */ jsxs("div", { children: [
4589
- /* @__PURE__ */ jsx("div", {
4590
- className: "rb-label rb-mb-2",
4591
- children: dateHeading
4592
- }),
4593
- /* @__PURE__ */ jsx("p", { children: /* @__PURE__ */ jsx("strong", { children: date }) }),
4594
- /* @__PURE__ */ jsx("p", {
4595
- className: "rb-caption",
4596
- children: timeRange
4597
- })
4598
- ] }),
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
+ }),
4599
4810
  /* @__PURE__ */ jsx(EventVenueFact, {
4600
4811
  venue,
4601
4812
  online,
4602
- addressAfterBooking
4813
+ addressAfterBooking,
4814
+ slots
4815
+ }),
4816
+ /* @__PURE__ */ jsx(EventTeacherFacts, {
4817
+ teamMembers,
4818
+ slots
4603
4819
  }),
4604
- /* @__PURE__ */ jsx(EventTeacherFacts, { teamMembers }),
4605
4820
  showCapacity && selected.capacity != null ? /* @__PURE__ */ jsxs("div", {
4821
+ ...slots.detail,
4606
4822
  className: "rb-mt-6",
4607
4823
  children: [/* @__PURE__ */ jsx("div", {
4824
+ ...slots.label,
4608
4825
  className: "rb-label rb-mb-2",
4609
4826
  children: "Places"
4610
- }), /* @__PURE__ */ jsx("p", { children: formatEventRemainingPlaces(selected) ?? formatTotalCapacity(selected.capacity) })]
4827
+ }), /* @__PURE__ */ jsx("p", {
4828
+ ...slots.value,
4829
+ children: formatEventRemainingPlaces(selected) ?? formatTotalCapacity(selected.capacity)
4830
+ })]
4611
4831
  }) : null,
4612
4832
  pricing,
4613
4833
  selection.kind === "wholeSeries" ? /* @__PURE__ */ jsx(BookingState, {
4614
4834
  phase: selection.bookingPhase,
4615
- event: selected
4835
+ event: selected,
4836
+ slots
4616
4837
  }) : null
4617
4838
  ]
4618
4839
  });
@@ -4621,23 +4842,33 @@ const eventOnlinePlaceShown = (event, showVenue) => showVenue ? eventOnlinePlace
4621
4842
  const hasEventPlaceFact = (event, showVenue) => showVenue && (Boolean(event.venue) || eventOnlinePlace(event) !== null || event.addressAfterBooking === true);
4622
4843
  const addressAfterBookingShown = (event, showVenue) => showVenue && event.addressAfterBooking === true;
4623
4844
  /** Where a venue would go: online, the owner's word that the address follows the booking, or nothing at all. */
4624
- function EventPlaceWithoutVenue({ online, addressAfterBooking }) {
4845
+ function EventPlaceWithoutVenue({ online, addressAfterBooking, slots }) {
4625
4846
  if (!online && !addressAfterBooking) return null;
4626
4847
  if (!online) return /* @__PURE__ */ jsxs("div", {
4848
+ ...slots.detail,
4627
4849
  className: "rb-mt-6",
4628
4850
  children: [/* @__PURE__ */ jsx("div", {
4851
+ ...slots.label,
4629
4852
  className: "rb-label rb-mb-2",
4630
4853
  children: "Venue"
4631
- }), /* @__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
+ })]
4632
4858
  });
4633
4859
  return /* @__PURE__ */ jsxs("div", {
4860
+ ...slots.detail,
4634
4861
  className: "rb-mt-6",
4635
4862
  children: [
4636
4863
  /* @__PURE__ */ jsx("div", {
4864
+ ...slots.label,
4637
4865
  className: "rb-label rb-mb-2",
4638
4866
  children: "Venue"
4639
4867
  }),
4640
- /* @__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
+ }),
4641
4872
  addressAfterBooking ? /* @__PURE__ */ jsxs("p", {
4642
4873
  className: "rb-caption",
4643
4874
  children: [EVENT_ADDRESS_AFTER_BOOKING_LABEL, "."]
@@ -4650,20 +4881,26 @@ function EventPlaceWithoutVenue({ online, addressAfterBooking }) {
4650
4881
  });
4651
4882
  }
4652
4883
  /** An online event says so where a venue would go; a hybrid one adds it under the venue. */
4653
- function EventVenueFact({ venue, online, addressAfterBooking }) {
4884
+ function EventVenueFact({ venue, online, addressAfterBooking, slots }) {
4654
4885
  if (!venue) return /* @__PURE__ */ jsx(EventPlaceWithoutVenue, {
4655
4886
  online,
4656
- addressAfterBooking
4887
+ addressAfterBooking,
4888
+ slots
4657
4889
  });
4658
4890
  const { place, addressWithBooking } = eventVenuePlace(venue);
4659
4891
  return /* @__PURE__ */ jsxs("div", {
4892
+ ...slots.detail,
4660
4893
  className: "rb-mt-6",
4661
4894
  children: [
4662
4895
  /* @__PURE__ */ jsx("div", {
4896
+ ...slots.label,
4663
4897
  className: "rb-label rb-mb-2",
4664
4898
  children: "Venue"
4665
4899
  }),
4666
- /* @__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
+ }),
4667
4904
  place ? /* @__PURE__ */ jsx("p", {
4668
4905
  className: "rb-caption",
4669
4906
  children: place
@@ -4682,13 +4919,16 @@ function EventVenueFact({ venue, online, addressAfterBooking }) {
4682
4919
  ]
4683
4920
  });
4684
4921
  }
4685
- function EventTeacherFacts({ teamMembers }) {
4922
+ function EventTeacherFacts({ teamMembers, slots }) {
4686
4923
  return teamMembers.length ? /* @__PURE__ */ jsxs("div", {
4924
+ ...slots.detail,
4687
4925
  className: "rb-mt-6",
4688
4926
  children: [/* @__PURE__ */ jsx("div", {
4927
+ ...slots.label,
4689
4928
  className: "rb-label rb-mb-2",
4690
4929
  children: "With"
4691
4930
  }), /* @__PURE__ */ jsx("div", {
4931
+ ...slots.value,
4692
4932
  className: "rb-flex rb-flex-col rb-gap-3",
4693
4933
  children: teamMembers.map((member) => /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("p", { children: /* @__PURE__ */ jsx(TeamMemberName, {
4694
4934
  name: member.name,
@@ -4722,15 +4962,20 @@ function runLifecycleLabel(lifecycle) {
4722
4962
  * the booking panel beside it says cancelled is the contradiction a visitor
4723
4963
  * actually notices.
4724
4964
  */
4725
- function BookingState({ phase, event }) {
4965
+ function BookingState({ phase, event, slots }) {
4726
4966
  return /* @__PURE__ */ jsxs("div", {
4967
+ ...slots.detail,
4727
4968
  className: "rb-mt-6",
4728
4969
  children: [
4729
4970
  /* @__PURE__ */ jsx("div", {
4971
+ ...slots.label,
4730
4972
  className: "rb-label rb-mb-2",
4731
4973
  children: "Booking"
4732
4974
  }),
4733
- /* @__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
+ }),
4734
4979
  phase.kind === "closed" ? /* @__PURE__ */ jsx("p", {
4735
4980
  className: "rb-caption",
4736
4981
  children: bookingClosedReason(phase.reason)
@@ -4756,16 +5001,19 @@ function bookingClosedReason(reason) {
4756
5001
  * the list and says so: dropping it would leave a visitor wondering whether
4757
5002
  * they had misremembered the dates.
4758
5003
  */
4759
- function SessionSchedule({ sessions, event }) {
5004
+ function SessionSchedule({ sessions, event, slots }) {
4760
5005
  if (sessions.length === 0) return null;
4761
5006
  return /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("div", {
5007
+ ...slots.label,
4762
5008
  className: "rb-label",
4763
5009
  children: "Session schedule"
4764
5010
  }), /* @__PURE__ */ jsx("div", {
5011
+ ...slots.sessions,
4765
5012
  className: "rb-mt-2 rb-tiles-grid",
4766
5013
  children: sessions.map((session) => {
4767
5014
  const cancelled = session.status === CANCELLED_SESSION_STATUS;
4768
5015
  return /* @__PURE__ */ jsxs("div", {
5016
+ ...slots.session,
4769
5017
  className: `rb-tile${cancelled ? " rb-tile--cancelled" : ""}`,
4770
5018
  children: [/* @__PURE__ */ jsx(DateTimeTile, {
4771
5019
  startsAt: session.startsAt,
@@ -4782,20 +5030,24 @@ function SessionSchedule({ sessions, event }) {
4782
5030
  })
4783
5031
  })] });
4784
5032
  }
4785
- function OtherEventDates({ selection }) {
5033
+ function OtherEventDates({ selection, slots }) {
4786
5034
  if (selection.kind === "empty") return null;
4787
5035
  if (selection.kind === "wholeSeries") return /* @__PURE__ */ jsx(SessionSchedule, {
4788
5036
  sessions: selection.sessions,
4789
- event: selection.selected
5037
+ event: selection.selected,
5038
+ slots
4790
5039
  });
4791
5040
  const dates = selection.otherDates;
4792
5041
  if (dates.length === 0) return null;
4793
5042
  return /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("div", {
5043
+ ...slots.label,
4794
5044
  className: "rb-label",
4795
5045
  children: "Other dates"
4796
5046
  }), /* @__PURE__ */ jsx("div", {
5047
+ ...slots.sessions,
4797
5048
  className: "rb-mt-2 rb-tiles-grid",
4798
5049
  children: dates.map((event) => /* @__PURE__ */ jsx("a", {
5050
+ ...slots.session,
4799
5051
  className: "rb-tile rb-tile--interactive",
4800
5052
  ...resolveEventPageLink(event),
4801
5053
  children: /* @__PURE__ */ jsx(DateTimeTile, {
@@ -4866,6 +5118,7 @@ function SelectedEventDetailsView(props) {
4866
5118
  className: "rb-grid rb-grid-cols-1 rb-gap-6 rb-items-start rb-sm-grid-cols-2",
4867
5119
  children: [/* @__PURE__ */ jsx(EventFacts, {
4868
5120
  lookSlots: props.lookSlots,
5121
+ slots: props.slots,
4869
5122
  selection,
4870
5123
  selected,
4871
5124
  venue,
@@ -4876,7 +5129,8 @@ function SelectedEventDetailsView(props) {
4876
5129
  pricing: /* @__PURE__ */ jsx(EventPricingDetails, {
4877
5130
  ...pricing,
4878
5131
  acceptedItems,
4879
- autoApplyDiscount: props.autoApplyDiscount ?? null
5132
+ autoApplyDiscount: props.autoApplyDiscount ?? null,
5133
+ slots: props.slots
4880
5134
  })
4881
5135
  }), /* @__PURE__ */ jsx(EventVenueMap, {
4882
5136
  venue,
@@ -4886,7 +5140,10 @@ function SelectedEventDetailsView(props) {
4886
5140
  drawing: props.selectedVenueDrawing
4887
5141
  })]
4888
5142
  }),
4889
- showOtherDates ? /* @__PURE__ */ jsx(OtherEventDates, { selection }) : null
5143
+ showOtherDates ? /* @__PURE__ */ jsx(OtherEventDates, {
5144
+ selection,
5145
+ slots: props.slots
5146
+ }) : null
4890
5147
  ]
4891
5148
  });
4892
5149
  }
@@ -4897,6 +5154,7 @@ function LegacyEventDetailsView(props) {
4897
5154
  });
4898
5155
  return /* @__PURE__ */ jsx(SelectedEventDetailsView, {
4899
5156
  lookSlots: props.lookSlots,
5157
+ slots: resolveDetailSlots(props),
4900
5158
  selection: props.selection,
4901
5159
  showVenue: props.showVenue,
4902
5160
  showMap: props.showMap,
@@ -4946,34 +5204,48 @@ function EventDetailsView(input) {
4946
5204
  function EventHeaderPanel(props) {
4947
5205
  const content = headerPanelContent(props);
4948
5206
  if (!content.hasFacts && !content.hasMap && !content.hasDates) return null;
5207
+ const slots = resolveDetailSlots(props);
4949
5208
  return /* @__PURE__ */ jsx("div", {
4950
5209
  ...listLookSlot(props, "panel"),
4951
5210
  children: /* @__PURE__ */ jsxs("div", {
4952
5211
  className: "rb-flex rb-flex-col rb-gap-6 rb-text-left",
4953
5212
  children: [content.hasFacts || content.hasMap ? /* @__PURE__ */ jsxs("div", {
4954
5213
  className: "rb-grid rb-grid-cols-1 rb-gap-6 rb-items-start rb-sm-grid-cols-2",
4955
- 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, {
4956
5218
  venue: content.venue,
4957
5219
  showMap: props.showMap,
4958
5220
  drawing: props.selectedVenueDrawing,
4959
5221
  mapHeight: props.mapHeight ?? 200,
4960
5222
  mapClassName: props.mapClassName ?? "event-details-map"
4961
5223
  })]
4962
- }) : 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]
4963
5228
  })
4964
5229
  });
4965
5230
  }
4966
- function HeaderPanelFacts({ venue, online, addressAfterBooking, teamMembers, pricing }) {
5231
+ function HeaderPanelFacts({ venue, online, addressAfterBooking, teamMembers, pricing, slots }) {
4967
5232
  return /* @__PURE__ */ jsxs("div", {
4968
5233
  className: "rb-flex rb-flex-col rb-gap-4",
4969
5234
  children: [
4970
5235
  /* @__PURE__ */ jsx(EventVenueFact, {
4971
5236
  venue,
4972
5237
  online,
4973
- addressAfterBooking
5238
+ addressAfterBooking,
5239
+ slots
5240
+ }),
5241
+ /* @__PURE__ */ jsx(EventTeacherFacts, {
5242
+ teamMembers,
5243
+ slots
4974
5244
  }),
4975
- /* @__PURE__ */ jsx(EventTeacherFacts, { teamMembers }),
4976
- pricing ? /* @__PURE__ */ jsx(EventPricingDetails, { ...pricing }) : null
5245
+ pricing ? /* @__PURE__ */ jsx(EventPricingDetails, {
5246
+ ...pricing,
5247
+ slots
5248
+ }) : null
4977
5249
  ]
4978
5250
  });
4979
5251
  }
@@ -6159,6 +6431,27 @@ function sectionStylesField(options = {}) {
6159
6431
  function containerStylesField(options = {}) {
6160
6432
  return createBoxStylesFieldWithDepth("container", options);
6161
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
+ }
6162
6455
  function cardStylesField(options = {}) {
6163
6456
  if (options.controls === "role-only") return createRoleOnlyCardStylesField(options);
6164
6457
  return createBoxStylesFieldWithDepth("card", options);
@@ -6245,14 +6538,29 @@ const eventDisplayFields = [
6245
6538
  {
6246
6539
  id: "showCapacity",
6247
6540
  type: "boolean",
6248
- label: "Show available places",
6249
- description: "Shows how many places are left.",
6541
+ label: "Show places left",
6542
+ description: "How many places are left on each event.",
6250
6543
  required: false,
6251
6544
  defaultValue: true,
6252
6545
  ui: { intent: "behavior" }
6253
6546
  }
6254
6547
  ];
6255
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
+ /**
6256
6564
  * Empty state field for when no events are available
6257
6565
  */
6258
6566
  const emptyStateField = {
@@ -6273,16 +6581,15 @@ const layoutField = {
6273
6581
  id: "layout",
6274
6582
  type: "select",
6275
6583
  label: "Layout",
6276
- description: "Choose how events are displayed",
6277
6584
  required: false,
6278
6585
  multiple: false,
6279
6586
  defaultValue: "grid",
6280
6587
  options: [{
6281
6588
  value: "grid",
6282
- label: "Grid (cards)"
6589
+ label: "Cards in a grid"
6283
6590
  }, {
6284
6591
  value: "stack",
6285
- label: "Stack (vertical list)"
6592
+ label: "One under another"
6286
6593
  }],
6287
6594
  ui: { intent: "display" }
6288
6595
  };
@@ -6297,7 +6604,6 @@ const columnsField = (options = [
6297
6604
  id: "columns",
6298
6605
  type: "select",
6299
6606
  label: "Columns",
6300
- description: "Number of columns in grid layout",
6301
6607
  required: false,
6302
6608
  multiple: false,
6303
6609
  defaultValue: "3",
@@ -7586,8 +7892,8 @@ function buildSlotCtaLabel(ctaText, slot) {
7586
7892
  }
7587
7893
  function WeeklySlotAvailabilityView({ availability, loading = false, error, emptyMessage, ctaText, ctaUrl }) {
7588
7894
  const slots = availability?.slots ?? [];
7589
- const resolvedEmptyMessage = emptyMessage ?? "No regular weekly openings are currently available.";
7590
- 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";
7591
7897
  const resolvedCtaUrl = typeof ctaUrl === "string" ? ctaUrl.trim() : "";
7592
7898
  return /* @__PURE__ */ jsxs("div", {
7593
7899
  className: "weekly-slot-availability",
@@ -8217,13 +8523,6 @@ z.object({
8217
8523
  styleTokens: styleTokenSchema.optional(),
8218
8524
  behaviours: behaviourSchema.optional(),
8219
8525
  layout: NodeTreeSchema.optional(),
8220
- /**
8221
- * Optional list of nested field paths that should be surfaced in the main form body
8222
- * as "shortcuts" (render-only). These paths should refer to existing data within the
8223
- * block content object (e.g. `_sectionStyles.background.image`).
8224
- *
8225
- * The original fields remain available in settings for power users.
8226
- */
8227
8526
  lookField: z.string().min(1).optional(),
8228
8527
  sourceLine: z.object({
8229
8528
  text: z.string(),
@@ -8237,7 +8536,15 @@ z.object({
8237
8536
  equals: z.string()
8238
8537
  }).optional()
8239
8538
  }).optional(),
8240
- 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(),
8241
8548
  variantMeaning: z.discriminatedUnion("kind", [z.object({
8242
8549
  kind: z.literal("arrangement"),
8243
8550
  lookOnlyKeys: z.array(z.string().min(1)).readonly().optional()
@@ -8538,8 +8845,7 @@ const formCopyFragment = defineFragment({
8538
8845
  }, {
8539
8846
  id: "intro",
8540
8847
  type: "richText",
8541
- label: "Intro",
8542
- description: "Optional introduction above the form."
8848
+ label: "Introduction"
8543
8849
  }],
8544
8850
  layout: [text({
8545
8851
  as: "h2",
@@ -8578,14 +8884,14 @@ const formEmbedFragment = defineFragment({
8578
8884
  {
8579
8885
  id: "submitLabel",
8580
8886
  type: "text",
8581
- label: "Submit button label",
8582
- defaultValue: "Submit"
8887
+ label: "Button text",
8888
+ description: "Leave it empty to use the form's own."
8583
8889
  },
8584
8890
  {
8585
8891
  id: "successMessage",
8586
8892
  type: "text",
8587
- label: "Success message",
8588
- 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."
8589
8895
  }
8590
8896
  ],
8591
8897
  layout: [form(withApiBindings({
@@ -8618,8 +8924,7 @@ const newsletterCopyFragment = defineFragment({
8618
8924
  }, {
8619
8925
  id: "subtitle",
8620
8926
  type: "richText",
8621
- label: "Subtitle",
8622
- description: "Optional description below the title."
8927
+ label: "Introduction"
8623
8928
  }],
8624
8929
  layout: [text({
8625
8930
  as: "h2",
@@ -8849,7 +9154,8 @@ function createBlockManifest(config) {
8849
9154
  variantOptions: config.variantOptions,
8850
9155
  lookField: config.lookField,
8851
9156
  sourceLine: config.sourceLine,
8852
- promotedFields: config.promotedFields ? [...config.promotedFields] : void 0
9157
+ sectionPhoto: config.sectionPhoto,
9158
+ editing: config.editing
8853
9159
  });
8854
9160
  }
8855
9161
  function createBlockManifestWithContentShape(config, _contentShape) {
@@ -8911,6 +9217,14 @@ const cartBlockDefinition = {
8911
9217
  titleSource: "heading",
8912
9218
  description: "Shows what a visitor has in their cart.",
8913
9219
  skipSectionStyles: true,
9220
+ editing: {
9221
+ content: ["heading"],
9222
+ settings: [
9223
+ "checkoutButtonText",
9224
+ "clearButtonText",
9225
+ "emptyStateText"
9226
+ ]
9227
+ },
8914
9228
  additionalFields: [
8915
9229
  {
8916
9230
  id: "heading",
@@ -8923,7 +9237,7 @@ const cartBlockDefinition = {
8923
9237
  {
8924
9238
  id: "emptyStateText",
8925
9239
  type: "text",
8926
- label: "If there's nothing to show",
9240
+ label: "When the cart is empty",
8927
9241
  multiline: false,
8928
9242
  required: false,
8929
9243
  defaultValue: "Your cart is empty."
@@ -8931,7 +9245,7 @@ const cartBlockDefinition = {
8931
9245
  {
8932
9246
  id: "checkoutButtonText",
8933
9247
  type: "text",
8934
- label: "Checkout button text",
9248
+ label: "Button to check out",
8935
9249
  multiline: false,
8936
9250
  required: false,
8937
9251
  defaultValue: "Go to checkout"
@@ -8939,7 +9253,7 @@ const cartBlockDefinition = {
8939
9253
  {
8940
9254
  id: "clearButtonText",
8941
9255
  type: "text",
8942
- label: "Clear button text",
9256
+ label: "Button to empty the cart",
8943
9257
  multiline: false,
8944
9258
  required: false,
8945
9259
  defaultValue: "Clear cart"
@@ -9005,6 +9319,10 @@ const checkoutBlockDefinition = {
9005
9319
  titleSource: "heading",
9006
9320
  description: "Where visitors enter their details and pay for what's in their cart.",
9007
9321
  skipSectionStyles: true,
9322
+ editing: {
9323
+ content: ["heading"],
9324
+ settings: ["submitButtonText", "emptyStateText"]
9325
+ },
9008
9326
  additionalFields: [
9009
9327
  {
9010
9328
  id: "heading",
@@ -9017,7 +9335,8 @@ const checkoutBlockDefinition = {
9017
9335
  {
9018
9336
  id: "submitButtonText",
9019
9337
  type: "text",
9020
- label: "Submit button text",
9338
+ label: "Button text",
9339
+ description: "With a discount code applied, the button shows the amount to pay.",
9021
9340
  multiline: false,
9022
9341
  required: false,
9023
9342
  defaultValue: "Checkout"
@@ -9025,7 +9344,7 @@ const checkoutBlockDefinition = {
9025
9344
  {
9026
9345
  id: "emptyStateText",
9027
9346
  type: "text",
9028
- label: "If there's nothing to show",
9347
+ label: "When the cart is empty",
9029
9348
  multiline: false,
9030
9349
  required: false,
9031
9350
  defaultValue: "Add something to your cart to continue."
@@ -9091,11 +9410,22 @@ const giftingBlockDefinition = {
9091
9410
  titleSource: "heading",
9092
9411
  description: "Lets people buy gift cards and vouchers for someone else.",
9093
9412
  skipSectionStyles: true,
9413
+ editing: {
9414
+ content: ["heading", "intro"],
9415
+ settings: [
9416
+ "giftCardsHeading",
9417
+ "vouchersHeading",
9418
+ "checkoutButtonText",
9419
+ "successMessage",
9420
+ "emptyStateText"
9421
+ ]
9422
+ },
9094
9423
  additionalFields: [
9095
9424
  {
9096
9425
  id: "heading",
9097
9426
  type: "text",
9098
9427
  label: "Heading",
9428
+ description: "Leave it empty for “Gift cards & vouchers”.",
9099
9429
  required: false,
9100
9430
  multiline: false,
9101
9431
  defaultValue: "Gift cards & vouchers"
@@ -9103,7 +9433,7 @@ const giftingBlockDefinition = {
9103
9433
  {
9104
9434
  id: "intro",
9105
9435
  type: "text",
9106
- label: "Intro",
9436
+ label: "Introduction",
9107
9437
  required: false,
9108
9438
  multiline: true,
9109
9439
  defaultValue: "Choose a gift card or voucher and send it straight away or schedule it for later."
@@ -9111,7 +9441,8 @@ const giftingBlockDefinition = {
9111
9441
  {
9112
9442
  id: "giftCardsHeading",
9113
9443
  type: "text",
9114
- 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.",
9115
9446
  required: false,
9116
9447
  multiline: false,
9117
9448
  defaultValue: "Gift cards"
@@ -9119,7 +9450,8 @@ const giftingBlockDefinition = {
9119
9450
  {
9120
9451
  id: "vouchersHeading",
9121
9452
  type: "text",
9122
- 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.",
9123
9455
  required: false,
9124
9456
  multiline: false,
9125
9457
  defaultValue: "Vouchers"
@@ -9127,7 +9459,7 @@ const giftingBlockDefinition = {
9127
9459
  {
9128
9460
  id: "emptyStateText",
9129
9461
  type: "text",
9130
- label: "If there's nothing to show",
9462
+ label: "When nothing's on offer",
9131
9463
  required: false,
9132
9464
  multiline: false,
9133
9465
  defaultValue: "Nothing is available right now."
@@ -9135,18 +9467,18 @@ const giftingBlockDefinition = {
9135
9467
  {
9136
9468
  id: "checkoutButtonText",
9137
9469
  type: "text",
9138
- label: "Checkout button text",
9470
+ label: "Button under the gift details",
9139
9471
  required: false,
9140
9472
  multiline: false,
9141
- defaultValue: "Continue"
9473
+ defaultValue: "Continue to payment"
9142
9474
  },
9143
9475
  {
9144
9476
  id: "successMessage",
9145
9477
  type: "text",
9146
- label: "Success message",
9478
+ label: "Message after buying",
9147
9479
  required: false,
9148
9480
  multiline: false,
9149
- 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."
9150
9482
  },
9151
9483
  sectionStylesField({
9152
9484
  id: "_sectionStyles",
@@ -9185,25 +9517,19 @@ const giftingBlockDefinition = {
9185
9517
  from: "content.intro",
9186
9518
  fallback: "Choose a gift card or voucher and send it straight away or schedule it for later."
9187
9519
  } },
9188
- giftCardsHeading: { $bind: {
9189
- from: "content.giftCardsHeading",
9190
- fallback: "Gift cards"
9191
- } },
9192
- vouchersHeading: { $bind: {
9193
- from: "content.vouchersHeading",
9194
- fallback: "Vouchers"
9195
- } },
9520
+ giftCardsHeading: { $bind: { from: "content.giftCardsHeading" } },
9521
+ vouchersHeading: { $bind: { from: "content.vouchersHeading" } },
9196
9522
  emptyStateText: { $bind: {
9197
9523
  from: "content.emptyStateText",
9198
9524
  fallback: "Nothing is available right now."
9199
9525
  } },
9200
9526
  checkoutButtonText: { $bind: {
9201
9527
  from: "content.checkoutButtonText",
9202
- fallback: "Continue"
9528
+ fallback: "Continue to payment"
9203
9529
  } },
9204
9530
  successMessage: { $bind: {
9205
9531
  from: "content.successMessage",
9206
- 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."
9207
9533
  } },
9208
9534
  siteTerms: { $bind: { from: "$root.siteTerms" } },
9209
9535
  lookSlots: { $bind: { from: "content._lookSlots" } },
@@ -9272,7 +9598,6 @@ const eventRegistrationManifest = createBlockManifest({
9272
9598
  id: "heading",
9273
9599
  type: "text",
9274
9600
  label: "Heading",
9275
- description: "The heading above the booking form.",
9276
9601
  required: false,
9277
9602
  multiline: false,
9278
9603
  defaultValue: ""
@@ -9280,8 +9605,7 @@ const eventRegistrationManifest = createBlockManifest({
9280
9605
  {
9281
9606
  id: "description",
9282
9607
  type: "richText",
9283
- label: "Description",
9284
- description: "Optional introductory text",
9608
+ label: "Text under the heading",
9285
9609
  required: false
9286
9610
  },
9287
9611
  {
@@ -9314,31 +9638,31 @@ const eventRegistrationManifest = createBlockManifest({
9314
9638
  label: "10 tickets"
9315
9639
  }
9316
9640
  ],
9317
- ui: { intent: "display" }
9641
+ ui: { intent: "behavior" }
9318
9642
  },
9319
9643
  {
9320
9644
  id: "showVenue",
9321
9645
  type: "boolean",
9322
- label: "Show venue",
9323
- description: "Shows where the event is.",
9646
+ label: "Show the venue",
9647
+ description: "Where the event is, in the booking summary.",
9324
9648
  required: false,
9325
9649
  defaultValue: true,
9326
- ui: { intent: "display" }
9650
+ ui: { intent: "behavior" }
9327
9651
  },
9328
9652
  {
9329
9653
  id: "showCapacity",
9330
9654
  type: "boolean",
9331
- label: "Show available places",
9332
- description: "Shows how many places are left.",
9655
+ label: "Show places left",
9656
+ description: "How many places are left, in the booking summary.",
9333
9657
  required: false,
9334
9658
  defaultValue: true,
9335
- ui: { intent: "display" }
9659
+ ui: { intent: "behavior" }
9336
9660
  },
9337
9661
  {
9338
9662
  id: "successMessage",
9339
9663
  type: "text",
9340
- label: "Success message",
9341
- 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.",
9342
9666
  required: false,
9343
9667
  multiline: true,
9344
9668
  maxLength: 500,
@@ -9348,7 +9672,7 @@ const eventRegistrationManifest = createBlockManifest({
9348
9672
  id: "buttonText",
9349
9673
  type: "text",
9350
9674
  label: "Button text",
9351
- description: "Text on the booking button",
9675
+ description: "The button that starts a booking.",
9352
9676
  required: false,
9353
9677
  multiline: false,
9354
9678
  defaultValue: "Book your place",
@@ -9356,6 +9680,62 @@ const eventRegistrationManifest = createBlockManifest({
9356
9680
  },
9357
9681
  createButtonVariantField()
9358
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
+ },
9359
9739
  layout: [styledSection({
9360
9740
  baseClass: "",
9361
9741
  spacing: "spacious",
@@ -9517,6 +9897,7 @@ function admitReadinessFacts(stage, input) {
9517
9897
  }
9518
9898
  function unavailableReadinessFacts() {
9519
9899
  return {
9900
+ catalogue: unavailableReadinessFact,
9520
9901
  mailingList: unavailableReadinessFact,
9521
9902
  testimonials: unavailableReadinessFact,
9522
9903
  team: unavailableReadinessFact,
@@ -9625,6 +10006,55 @@ const galleryReadiness = {
9625
10006
  path: "images"
9626
10007
  })
9627
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
+ };
9628
10058
  function chosenString(value) {
9629
10059
  return typeof value === "string" && value.trim() ? value.trim() : null;
9630
10060
  }
@@ -9707,7 +10137,15 @@ const dataLoaders = Object.fromEntries(Object.entries(fragmentDataLoaders).map((
9707
10137
  const formManifest = createBlockManifest({
9708
10138
  variantMeaning: { kind: "arrangement" },
9709
10139
  id: "block.form",
9710
- promotedFields: ["formSlug"],
10140
+ editing: {
10141
+ content: [
10142
+ "formSlug",
10143
+ "title",
10144
+ "intro"
10145
+ ],
10146
+ settings: ["submitLabel", "successMessage"],
10147
+ setup: ["formSlug"]
10148
+ },
9711
10149
  title: "Form",
9712
10150
  titleSource: "title",
9713
10151
  description: "Shows one of your forms so visitors can get in touch.",
@@ -10062,83 +10500,546 @@ const eventCalendarDataLoaders = {
10062
10500
  }
10063
10501
  };
10064
10502
  //#endregion
10065
- //#region ../blocks/src/system/blocks/events/event-calendar.ts
10066
- function normalizeEventCalendarContent(content) {
10067
- const record = typeof content === "object" && content !== null ? content : {};
10068
- const variant = normalizeEventCalendarDisplayMode$1(record);
10069
- return {
10070
- ...normalizeEventEmptyBehavior(record),
10071
- ...variant ? { variant } : {},
10072
- displayMode: normalizeEventCalendarDisplayMode(record.displayMode),
10073
- listLayout: normalizeEventCalendarListLayout(record.listLayout),
10074
- defaultCalendarView: normalizeEventCalendarDefaultView(record.defaultCalendarView),
10075
- eventSurface: normalizeEventSurfaceScope(record.eventSurface),
10076
- filterEventPresets: normalizeEventSurfacePresets(record.filterEventPresets),
10077
- scheduleScope: normalizeEventScheduleScope(record.scheduleScope),
10078
- filterCategoryIds: normalizeEventCategoryIds(record.filterCategoryIds),
10079
- filterStaffMemberId: normalizeEventStaffMemberId(record.filterStaffMemberId),
10080
- filterVenueId: normalizeEventVenueId(record.filterVenueId)
10081
- };
10082
- }
10083
- function normalizeEventCalendarDisplayMode(value) {
10084
- return isEventCalendarDisplayMode(value) ? value : void 0;
10085
- }
10086
- function normalizeEventCalendarListLayout(value) {
10087
- return isEventCalendarListLayout(value) ? value : void 0;
10088
- }
10089
- function normalizeEventCalendarDefaultView(value) {
10090
- return isEventCalendarDefaultView(value) ? value : void 0;
10091
- }
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
+ ];
10092
10518
  /**
10093
- * Event Calendar Block
10094
- *
10095
- * Displays events in multiple view modes with optional filtering.
10096
- *
10097
- * Display Modes:
10098
- * - Combined (default): Tabbed view with List + Calendar tabs
10099
- * - Calendar: Standalone month or week calendar
10100
- * - List: Chronological list with load-more pagination
10101
- * - Timetable: Weekly timetable for recurring class schedules
10102
- *
10103
- * Features:
10104
- * - Category, staff, and venue filtering
10105
- * - Interactive calendar navigation (prev/next/today)
10106
- * - Pre-fetches events for smooth navigation
10107
- * - Configurable week start day
10108
- * - Theme-aware styling
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`).
10109
10524
  */
10110
- const eventCalendarLayout = [styledSection({
10111
- children: styledContainer({
10112
- rootType: "stack",
10113
- rootProps: {
10114
- gap: "lg",
10115
- ...lookSlot("layout")
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
+ }
10116
10581
  },
10117
- children: [
10118
- text({
10119
- as: "p",
10120
- ...lookSlot("eyebrow")
10121
- }, bind("content.eyebrow"), when("content.eyebrow")),
10122
- ...sectionHeaderLayoutNodes({ splitClassName: "event-section-head event-section-head--split" }),
10123
- el("event-calendar", withApiBindings({
10124
- readAuthority: { $bind: { from: "$root.readAuthority" } },
10125
- schedule: { $bind: { from: "data.schedule" } },
10126
- seeAllButtonVariant: { $bind: {
10127
- from: "content.seeAllButtonVariant",
10128
- fallback: "secondary"
10129
- } },
10130
- events: { $bind: { from: "data.events" } },
10131
- effectiveListArrangementKey: { $bind: { from: "$root.effectiveListArrangementKey" } },
10132
- calendarWindow: { $bind: { from: "data.calendarWindow" } },
10133
- stage: { $bind: {
10134
- from: "$root.previewStage",
10135
- fallback: "published"
10136
- } },
10137
- variant: { $bind: { from: "content.variant" } },
10138
- displayMode: { $bind: { from: "content.displayMode" } },
10139
- listLayout: { $bind: { from: "content.listLayout" } },
10140
- listBy: { $bind: { from: "content.listBy" } },
10141
- bookingTimeZone: { $bind: { from: "$root.dateContext.timeZone" } },
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;
10826
+ return {
10827
+ kind: "when",
10828
+ condition: terms.length === 1 && only ? only : { anyOf: terms }
10829
+ };
10830
+ }
10831
+ function conjuncts(condition) {
10832
+ return condition.allOf ?? [condition];
10833
+ }
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) {
10991
+ return isEventCalendarDefaultView(value) ? value : void 0;
10992
+ }
10993
+ /**
10994
+ * Event Calendar Block
10995
+ *
10996
+ * Displays events in multiple view modes with optional filtering.
10997
+ *
10998
+ * Display Modes:
10999
+ * - Combined (default): Tabbed view with List + Calendar tabs
11000
+ * - Calendar: Standalone month or week calendar
11001
+ * - List: Chronological list with load-more pagination
11002
+ * - Timetable: Weekly timetable for recurring class schedules
11003
+ *
11004
+ * Features:
11005
+ * - Category, staff, and venue filtering
11006
+ * - Interactive calendar navigation (prev/next/today)
11007
+ * - Pre-fetches events for smooth navigation
11008
+ * - Configurable week start day
11009
+ * - Theme-aware styling
11010
+ */
11011
+ const eventCalendarLayout = [styledSection({
11012
+ children: styledContainer({
11013
+ rootType: "stack",
11014
+ rootProps: {
11015
+ gap: "lg",
11016
+ ...lookSlot("layout")
11017
+ },
11018
+ children: [
11019
+ text({
11020
+ as: "p",
11021
+ ...lookSlot("eyebrow")
11022
+ }, bind("content.eyebrow"), when("content.eyebrow")),
11023
+ ...sectionHeaderLayoutNodes({ splitClassName: "event-section-head event-section-head--split" }),
11024
+ el("event-calendar", withApiBindings({
11025
+ readAuthority: { $bind: { from: "$root.readAuthority" } },
11026
+ schedule: { $bind: { from: "data.schedule" } },
11027
+ seeAllButtonVariant: { $bind: {
11028
+ from: "content.seeAllButtonVariant",
11029
+ fallback: "secondary"
11030
+ } },
11031
+ events: { $bind: { from: "data.events" } },
11032
+ effectiveListArrangementKey: { $bind: { from: "$root.effectiveListArrangementKey" } },
11033
+ calendarWindow: { $bind: { from: "data.calendarWindow" } },
11034
+ stage: { $bind: {
11035
+ from: "$root.previewStage",
11036
+ fallback: "published"
11037
+ } },
11038
+ variant: { $bind: { from: "content.variant" } },
11039
+ displayMode: { $bind: { from: "content.displayMode" } },
11040
+ listLayout: { $bind: { from: "content.listLayout" } },
11041
+ listBy: { $bind: { from: "content.listBy" } },
11042
+ bookingTimeZone: { $bind: { from: "$root.dateContext.timeZone" } },
10142
11043
  dateContext: { $bind: { from: "$root.dateContext" } },
10143
11044
  combinedLook: { $bind: { from: "content._combinedLook" } },
10144
11045
  monthArrangement: { $bind: { from: "content._lookMonthArrangement" } },
@@ -10283,119 +11184,129 @@ const eventCalendarLayout = [styledSection({
10283
11184
  spacing: "comfortable"
10284
11185
  })];
10285
11186
  /**
10286
- * Page size and "more events" settings apply to paged lists. A week list always shows its whole
10287
- * week, so they're hidden under List by Week where the site style offers week lists; the editor
10288
- * 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.
10289
11190
  */
10290
- const eventsPerPageOptions = [{
10291
- value: "1",
10292
- label: "Show just one"
10293
- }, ...[
10294
- "2",
10295
- "3",
10296
- "4",
10297
- "5",
10298
- "6",
10299
- "10",
10300
- "12",
10301
- "20",
10302
- "24",
10303
- "30"
10304
- ].map((value) => ({
11191
+ const eventsPerPageOptions = eventCalendarPageSizes.map((value) => ({
10305
11192
  value,
10306
- label: `Show the first ${value}`
10307
- }))];
10308
- function eventCalendarPagingFields(weekListsAvailable) {
10309
- const paged = weekListsAvailable ? { anyOf: [{
10310
- field: "variant",
10311
- equals: "combined"
10312
- }, { allOf: [{
10313
- field: "variant",
10314
- equals: "list"
10315
- }, {
10316
- field: "listBy",
10317
- notEquals: "week"
10318
- }] }] } : {
10319
- field: "variant",
10320
- oneOf: ["combined", "list"]
10321
- };
10322
- const weekVariants = {
10323
- field: "variant",
10324
- oneOf: ["week-board", "week"]
10325
- };
10326
- return [
10327
- {
10328
- id: "eventsPerPage",
10329
- type: "select",
10330
- label: "How many",
10331
- required: false,
10332
- multiple: false,
10333
- defaultValue: "12",
10334
- options: eventsPerPageOptions,
10335
- ui: {
10336
- intent: "behavior",
10337
- visibleWhen: paged
10338
- }
10339
- },
10340
- {
10341
- id: "paginationMode",
10342
- type: "select",
10343
- label: "More events",
10344
- required: false,
10345
- multiple: false,
10346
- defaultValue: "loadMore",
10347
- description: "How visitors can see the rest of your events.",
10348
- options: [
10349
- {
10350
- value: "none",
10351
- label: "No link or button"
10352
- },
10353
- {
10354
- value: "loadMore",
10355
- label: "Load more button"
10356
- },
10357
- {
10358
- value: "seeAllLink",
10359
- label: "Link to another page"
10360
- }
10361
- ],
10362
- ui: {
10363
- intent: "behavior",
10364
- visibleWhen: paged
10365
- }
10366
- },
10367
- {
10368
- id: "seeAllUrl",
10369
- type: "link",
10370
- label: "Link to the full list",
10371
- required: false,
10372
- ui: {
10373
- intent: "behavior",
10374
- visibleWhen: { anyOf: [{ allOf: [paged, {
10375
- field: "paginationMode",
10376
- equals: "seeAllLink"
10377
- }] }, weekVariants] }
10378
- }
10379
- },
10380
- {
10381
- id: "loadMoreText",
10382
- type: "text",
10383
- label: "More events button text",
10384
- required: false,
10385
- multiline: false,
10386
- description: "The text on the button or link that shows more events.",
10387
- defaultValue: "Load more events",
10388
- ui: {
10389
- intent: "behavior",
10390
- 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"
10391
11239
  }
11240
+ ],
11241
+ ui: {
11242
+ intent: "behavior",
11243
+ visibleWhen: paged
11244
+ }
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] }] }
10392
11273
  }
10393
- ];
11274
+ }
11275
+ ];
11276
+ function withVisibleWhen(field, visibleWhen) {
11277
+ return {
11278
+ ...field,
11279
+ ui: {
11280
+ ...field.ui,
11281
+ visibleWhen
11282
+ }
11283
+ };
10394
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
+ }] }] };
10395
11306
  const eventCalendarAdditionalFields = [
10396
11307
  ...cardListKnobFields,
10397
11308
  ...cardListPhotoNumberFields.filter((field) => field.id === "showPhotos"),
10398
- ...eventDisplayFields.filter((field) => field.id === "showVenue"),
11309
+ ...eventDisplayFields.filter((field) => field.id === "showVenue").map((field) => withVisibleWhen(field, eventCalendarFormConditions.showVenue)),
10399
11310
  {
10400
11311
  id: "eyebrow",
10401
11312
  type: "text",
@@ -10404,11 +11315,14 @@ const eventCalendarAdditionalFields = [
10404
11315
  multiline: false,
10405
11316
  maxLength: 80
10406
11317
  },
10407
- createButtonVariantField({
11318
+ withVisibleWhen(createButtonVariantField({
10408
11319
  id: "seeAllButtonVariant",
10409
11320
  label: "See all button style",
10410
11321
  defaultValue: "secondary"
10411
- }),
11322
+ }), { allOf: [{
11323
+ field: "variant",
11324
+ equals: "week"
11325
+ }, hasSeeAllLink] }),
10412
11326
  ...sectionHeaderFields("Event Calendar"),
10413
11327
  {
10414
11328
  id: "displayMode",
@@ -10465,10 +11379,7 @@ const eventCalendarAdditionalFields = [
10465
11379
  }],
10466
11380
  ui: {
10467
11381
  intent: "behavior",
10468
- visibleWhen: {
10469
- field: "variant",
10470
- equals: "list"
10471
- }
11382
+ visibleWhen: eventCalendarFormConditions.listBy
10472
11383
  }
10473
11384
  },
10474
11385
  {
@@ -10494,8 +11405,8 @@ const eventCalendarAdditionalFields = [
10494
11405
  {
10495
11406
  id: "listColumns",
10496
11407
  type: "select",
10497
- label: "Grid columns",
10498
- description: "Number of columns in grid layout",
11408
+ label: "Columns",
11409
+ description: "How many columns the grid has.",
10499
11410
  required: false,
10500
11411
  multiple: false,
10501
11412
  defaultValue: "3",
@@ -10524,12 +11435,12 @@ const eventCalendarAdditionalFields = [
10524
11435
  }] }
10525
11436
  }
10526
11437
  },
10527
- ...eventCalendarPagingFields(true),
11438
+ ...eventCalendarPagingFields,
10528
11439
  {
10529
11440
  id: "startOfWeek",
10530
11441
  type: "select",
10531
11442
  label: "Week starts on",
10532
- description: "First day of the week",
11443
+ description: "Left unset, weeks start on your country’s usual day.",
10533
11444
  required: false,
10534
11445
  multiple: false,
10535
11446
  options: [{
@@ -10541,16 +11452,7 @@ const eventCalendarAdditionalFields = [
10541
11452
  }],
10542
11453
  ui: {
10543
11454
  intent: "behavior",
10544
- visibleWhen: {
10545
- field: "variant",
10546
- oneOf: [
10547
- "combined",
10548
- "calendar",
10549
- "list",
10550
- "timetable",
10551
- "week-board"
10552
- ]
10553
- }
11455
+ visibleWhen: eventCalendarFormConditions.startOfWeek
10554
11456
  }
10555
11457
  },
10556
11458
  {
@@ -10577,16 +11479,13 @@ const eventCalendarAdditionalFields = [
10577
11479
  ],
10578
11480
  ui: {
10579
11481
  intent: "behavior",
10580
- visibleWhen: {
10581
- field: "variant",
10582
- equals: "combined"
10583
- }
11482
+ visibleWhen: eventCalendarFormConditions.calendarTabViews
10584
11483
  }
10585
11484
  },
10586
11485
  {
10587
11486
  id: "defaultCalendarView",
10588
11487
  type: "select",
10589
- label: "Calendar view",
11488
+ label: "Opens on",
10590
11489
  description: "Which view visitors see first.",
10591
11490
  required: false,
10592
11491
  multiple: false,
@@ -10600,37 +11499,19 @@ const eventCalendarAdditionalFields = [
10600
11499
  }],
10601
11500
  ui: {
10602
11501
  intent: "display",
10603
- visibleWhen: { anyOf: [{
10604
- field: "variant",
10605
- equals: "calendar"
10606
- }, { allOf: [{
10607
- field: "variant",
10608
- equals: "combined"
10609
- }, {
10610
- field: "calendarTabViews",
10611
- equals: "both"
10612
- }] }] }
11502
+ visibleWhen: eventCalendarFormConditions.defaultCalendarView
10613
11503
  }
10614
11504
  },
10615
11505
  {
10616
11506
  id: "showFilters",
10617
11507
  type: "boolean",
10618
11508
  label: "Show filters",
10619
- description: "Lets visitors filter by category, team member or venue.",
11509
+ description: "Lets visitors filter by category, host or venue.",
10620
11510
  required: false,
10621
11511
  defaultValue: true,
10622
11512
  ui: {
10623
11513
  intent: "behavior",
10624
- visibleWhen: {
10625
- field: "variant",
10626
- oneOf: [
10627
- "combined",
10628
- "calendar",
10629
- "list",
10630
- "timetable",
10631
- "week-board"
10632
- ]
10633
- }
11514
+ visibleWhen: filterBarVariants
10634
11515
  }
10635
11516
  },
10636
11517
  {
@@ -10657,16 +11538,7 @@ const eventCalendarAdditionalFields = [
10657
11538
  ],
10658
11539
  ui: {
10659
11540
  intent: "behavior",
10660
- visibleWhen: { allOf: [{
10661
- field: "variant",
10662
- oneOf: [
10663
- "combined",
10664
- "calendar",
10665
- "list",
10666
- "timetable",
10667
- "week-board"
10668
- ]
10669
- }, {
11541
+ visibleWhen: { allOf: [filterBarVariants, {
10670
11542
  field: "showFilters",
10671
11543
  equals: true
10672
11544
  }] }
@@ -10681,16 +11553,7 @@ const eventCalendarAdditionalFields = [
10681
11553
  defaultValue: false,
10682
11554
  ui: {
10683
11555
  intent: "behavior",
10684
- visibleWhen: { allOf: [{
10685
- field: "variant",
10686
- oneOf: [
10687
- "combined",
10688
- "calendar",
10689
- "list",
10690
- "timetable",
10691
- "week-board"
10692
- ]
10693
- }, {
11556
+ visibleWhen: { allOf: [filterBarVariants, {
10694
11557
  field: "showFilters",
10695
11558
  equals: true
10696
11559
  }] }
@@ -10699,22 +11562,13 @@ const eventCalendarAdditionalFields = [
10699
11562
  {
10700
11563
  id: "showStaffFilter",
10701
11564
  type: "boolean",
10702
- label: "Show team filter",
10703
- description: "Lets visitors pick someone from your team.",
11565
+ label: "Show host filter",
11566
+ description: "Lets visitors pick a host.",
10704
11567
  required: false,
10705
11568
  defaultValue: true,
10706
11569
  ui: {
10707
11570
  intent: "behavior",
10708
- visibleWhen: { allOf: [{
10709
- field: "variant",
10710
- oneOf: [
10711
- "combined",
10712
- "calendar",
10713
- "list",
10714
- "timetable",
10715
- "week-board"
10716
- ]
10717
- }, {
11571
+ visibleWhen: { allOf: [filterBarVariants, {
10718
11572
  field: "showFilters",
10719
11573
  equals: true
10720
11574
  }] }
@@ -10729,21 +11583,10 @@ const eventCalendarAdditionalFields = [
10729
11583
  defaultValue: true,
10730
11584
  ui: {
10731
11585
  intent: "display",
10732
- visibleWhen: { anyOf: [{
10733
- field: "variant",
10734
- oneOf: [
10735
- "combined",
10736
- "list",
10737
- "timetable",
10738
- "week-board"
10739
- ]
10740
- }, { allOf: [{
11586
+ visibleWhen: {
10741
11587
  field: "variant",
10742
- equals: "calendar"
10743
- }, {
10744
- field: "defaultCalendarView",
10745
- equals: "week"
10746
- }] }] }
11588
+ notEquals: "week"
11589
+ }
10747
11590
  }
10748
11591
  },
10749
11592
  {
@@ -10764,7 +11607,7 @@ const eventCalendarAdditionalFields = [
10764
11607
  {
10765
11608
  id: "footerNote",
10766
11609
  type: "text",
10767
- label: "Footer note",
11610
+ label: "Note under the board",
10768
11611
  description: "An optional note along the bottom of the board.",
10769
11612
  required: false,
10770
11613
  multiline: true,
@@ -10810,7 +11653,7 @@ const eventCalendarAdditionalFields = [
10810
11653
  {
10811
11654
  id: "eventSurface",
10812
11655
  type: "select",
10813
- label: "Which events",
11656
+ label: "Kinds of event",
10814
11657
  required: false,
10815
11658
  multiple: false,
10816
11659
  defaultValue: "all",
@@ -10893,8 +11736,8 @@ const eventCalendarAdditionalFields = [
10893
11736
  }),
10894
11737
  createSiteOptionSelectField({
10895
11738
  id: "filterStaffMemberId",
10896
- label: "Only show one team member",
10897
- 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.",
10898
11741
  required: false,
10899
11742
  multiple: false,
10900
11743
  optionSource: "staffMembers",
@@ -10919,7 +11762,8 @@ const eventCalendarAdditionalFields = [
10919
11762
  ...field,
10920
11763
  ui: {
10921
11764
  ...field.ui ?? {},
10922
- 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 } : {}
10923
11767
  }
10924
11768
  })),
10925
11769
  ...eventEmptyBehaviorFields,
@@ -10982,30 +11826,6 @@ const eventCalendarContentShape = {
10982
11826
  /** Week rows use their fixed recurring-series read, without occurrence filters. */
10983
11827
  function withCalendarModeVisibility(field) {
10984
11828
  const selected = withEventSelectionVisibility(field);
10985
- if (field.id === "showVenue") return {
10986
- ...selected,
10987
- ui: {
10988
- ...selected.ui,
10989
- visibleWhen: {
10990
- field: "variant",
10991
- oneOf: [
10992
- "week",
10993
- "list",
10994
- "combined"
10995
- ]
10996
- }
10997
- }
10998
- };
10999
- if (field.id === "seeAllButtonVariant") return {
11000
- ...selected,
11001
- ui: {
11002
- ...selected.ui,
11003
- visibleWhen: {
11004
- field: "variant",
11005
- equals: "week"
11006
- }
11007
- }
11008
- };
11009
11829
  if (![
11010
11830
  "eventSelection",
11011
11831
  "selectedEventSeriesIds",
@@ -11029,18 +11849,7 @@ function withCalendarModeVisibility(field) {
11029
11849
  }
11030
11850
  const generatedEventCalendarManifest = createBlockManifestWithContentShape({
11031
11851
  id: "block.event-calendar",
11032
- promotedFields: [
11033
- "variant",
11034
- "listBy",
11035
- "calendarTabViews",
11036
- "defaultCalendarView",
11037
- "eventSurface",
11038
- "filterEventPresets",
11039
- "scheduleScope",
11040
- "eventsPerPage",
11041
- "paginationMode",
11042
- "seeAllUrl"
11043
- ],
11852
+ editing: eventCalendarEditing,
11044
11853
  version: "3.6.0",
11045
11854
  title: "Event calendar",
11046
11855
  titleSource: "heading",
@@ -11136,226 +11945,373 @@ const mapDrawingStyleBinding = { $bind: {
11136
11945
  options: { fallbackToken: "background" }
11137
11946
  }]
11138
11947
  } };
11139
- const eventListingManifest = createBlockManifestWithContentShape({
11140
- variantMeaning: { kind: "arrangement" },
11141
- id: "block.event-listing",
11142
- version: "1.1.0",
11143
- title: "Event listing",
11144
- titleSource: "heading",
11145
- description: "All your upcoming events in one list.",
11146
- skipSectionStyles: true,
11147
- additionalFields: [
11148
- ...sectionHeaderFields("All Events"),
11149
- ...(() => {
11150
- const columns = columnsField([
11151
- "2",
11152
- "3",
11153
- "4"
11154
- ]);
11155
- return [{
11156
- ...layoutField,
11157
- ui: {
11158
- ...layoutField.ui ?? {},
11159
- intent: "display"
11160
- }
11161
- }, {
11162
- ...columns,
11163
- ui: {
11164
- ...columns.ui ?? {},
11165
- intent: "display"
11166
- }
11167
- }];
11168
- })(),
11169
- {
11170
- id: "eventsPerPage",
11171
- type: "select",
11172
- label: "How many",
11173
- required: false,
11174
- multiple: false,
11175
- defaultValue: "12",
11176
- options: [
11177
- {
11178
- value: "3",
11179
- label: "Show the first 3"
11180
- },
11181
- {
11182
- value: "6",
11183
- label: "Show the first 6"
11184
- },
11185
- {
11186
- value: "12",
11187
- label: "Show the first 12"
11188
- },
11189
- {
11190
- value: "24",
11191
- label: "Show the first 24"
11192
- }
11193
- ],
11194
- ui: { intent: "display" }
11195
- },
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: [
11196
12180
  {
11197
- id: "paginationMode",
11198
- type: "select",
11199
- label: "More events",
11200
- description: "How visitors can see the rest of your events.",
11201
- required: false,
11202
- multiple: false,
11203
- defaultValue: "loadMore",
11204
- options: [{
11205
- value: "loadMore",
11206
- label: "Load more button"
11207
- }, {
11208
- value: "seeAllLink",
11209
- label: "Link to another page"
11210
- }],
11211
- 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
+ }
11212
12207
  },
11213
12208
  {
11214
- id: "seeAllUrl",
11215
- type: "link",
11216
- label: "Link to the full list",
11217
- required: false,
11218
- ui: {
11219
- intent: "display",
11220
- 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
+ }, {
11221
12227
  field: "paginationMode",
11222
- equals: "seeAllLink"
11223
- }
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"
11224
12234
  }
11225
12235
  },
11226
12236
  {
11227
- id: "loadMoreText",
11228
- type: "text",
11229
- label: "More events button text",
11230
- description: "The text on the button or link that shows more events.",
11231
- required: false,
11232
- multiline: false,
11233
- defaultValue: "Load more events",
11234
- maxLength: 40
11235
- },
11236
- ...cardStylingFields.map((field) => ({
11237
- ...field,
11238
- ui: {
11239
- ...field.ui ?? {},
11240
- intent: "style"
11241
- }
11242
- })),
11243
- ...eventDisplayFields.map((field) => ({
11244
- ...field,
11245
- ui: {
11246
- ...field.ui ?? {},
11247
- intent: "display"
11248
- }
11249
- })),
11250
- {
11251
- id: "eventSurface",
11252
- type: "select",
11253
- label: "Event types",
11254
- description: "Choose whether this block shows everything, regular classes, or workshops and special events.",
11255
- required: false,
11256
- multiple: false,
11257
- defaultValue: "all",
11258
- options: [
11259
- {
11260
- value: "all",
11261
- label: "All events"
11262
- },
11263
- {
11264
- value: "regularClassSchedule",
11265
- label: "Regular class schedule"
11266
- },
11267
- {
11268
- value: "specialDatedEvents",
11269
- label: "Workshops and special events"
11270
- },
11271
- {
11272
- value: "custom",
11273
- label: "Custom"
11274
- }
12237
+ id: "card",
12238
+ title: "On each event",
12239
+ fields: [
12240
+ "showVenue",
12241
+ "showCapacity",
12242
+ "buttonText",
12243
+ "buttonVariant"
11275
12244
  ],
11276
- 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
+ }
11277
12266
  },
11278
12267
  {
11279
- id: "filterEventPresets",
11280
- type: "select",
11281
- label: "Only show these event types",
11282
- description: "Pick the types of event this block shows.",
11283
- required: false,
11284
- multiple: true,
11285
- defaultValue: [],
11286
- options: [
11287
- {
11288
- value: "course",
11289
- label: "Courses"
11290
- },
11291
- {
11292
- value: "class",
11293
- label: "Classes"
11294
- },
11295
- {
11296
- value: "workshop",
11297
- label: "Workshops"
11298
- },
11299
- {
11300
- value: "retreat",
11301
- label: "Retreats"
11302
- },
11303
- {
11304
- value: "performance",
11305
- label: "Performances"
11306
- }
11307
- ],
11308
- ui: {
11309
- intent: "behavior",
11310
- visibleWhen: {
11311
- field: "eventSurface",
11312
- equals: "custom"
11313
- }
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"
11314
12287
  }
11315
12288
  },
11316
12289
  {
11317
- id: "scheduleScope",
11318
- type: "select",
11319
- label: "Regular or one-off",
11320
- description: "Show regular events, one-off events or both.",
11321
- required: false,
11322
- multiple: false,
11323
- defaultValue: "any",
11324
- options: [
11325
- {
11326
- value: "any",
11327
- label: "Both"
11328
- },
11329
- {
11330
- value: "recurring",
11331
- label: "Regular events only"
11332
- },
11333
- {
11334
- value: "oneOff",
11335
- label: "One-off events only"
11336
- }
11337
- ],
11338
- ui: {
11339
- intent: "behavior",
11340
- visibleWhen: {
11341
- field: "eventSurface",
11342
- equals: "custom"
11343
- }
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"
11344
12302
  }
11345
- },
11346
- ...eventEmptyBehaviorFields,
11347
- sectionStylesField({
11348
- id: "_sectionStyles",
11349
- label: "Section styles",
11350
- renderInHeader: false
11351
- }),
11352
- containerStylesField({
11353
- id: "_containerStyles",
11354
- label: "Panel styles",
11355
- includeBackground: false,
11356
- renderInHeader: false
11357
- })
11358
- ],
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,
11359
12315
  styleTokens: {
11360
12316
  background: "surface",
11361
12317
  typography: "body",
@@ -11442,7 +12398,8 @@ const eventListingManifest = createBlockManifestWithContentShape({
11442
12398
  }),
11443
12399
  baseClass: "",
11444
12400
  spacing: "comfortable"
11445
- })]
12401
+ })],
12402
+ editing: eventListingEditing
11446
12403
  }, {
11447
12404
  additionalFields: [{
11448
12405
  id: "layout",
@@ -11556,7 +12513,19 @@ const newsletterSignupManifest = createBlockManifest({
11556
12513
  text: "",
11557
12514
  target: "mailing-lists"
11558
12515
  },
11559
- 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
+ },
11560
12529
  title: "Newsletter signup",
11561
12530
  titleSource: "title",
11562
12531
  description: "Lets people join one of your mailing lists.",
@@ -11584,11 +12553,17 @@ const newsletterSignupManifest = createBlockManifest({
11584
12553
  id: "topicsQuestion",
11585
12554
  type: "text",
11586
12555
  label: "Question above the topics",
11587
- 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?\"",
11588
12557
  required: false,
11589
12558
  multiline: false,
11590
12559
  maxLength: 80,
11591
- ui: { intent: "content" }
12560
+ ui: {
12561
+ intent: "content",
12562
+ visibleWhen: {
12563
+ field: "targeting.selection.tag",
12564
+ equals: "visitor_choice"
12565
+ }
12566
+ }
11592
12567
  },
11593
12568
  {
11594
12569
  id: "showWhen",
@@ -11642,11 +12617,11 @@ const newsletterSignupManifest = createBlockManifest({
11642
12617
  description: "Vertical layout with fields stacked"
11643
12618
  },
11644
12619
  inline: {
11645
- label: "Inline",
12620
+ label: "Email and button on one row",
11646
12621
  description: "Horizontal layout (email + button side by side)"
11647
12622
  },
11648
12623
  "editorial-split": {
11649
- label: "Editorial split",
12624
+ label: "Text beside the sign-up",
11650
12625
  description: "Copy and form in balanced side-by-side columns, stacked on mobile."
11651
12626
  }
11652
12627
  },
@@ -11693,17 +12668,49 @@ const productDetailBlockDefinition = {
11693
12668
  manifest: createBlockManifest({
11694
12669
  variantMeaning: { kind: "arrangement" },
11695
12670
  id: "block.product-detail",
11696
- promotedFields: ["productSlug"],
11697
12671
  version: "1.0.0",
11698
12672
  title: "Product detail",
11699
12673
  titleSource: "heading",
11700
12674
  description: "One product with its photos and an add-to-cart button.",
11701
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
+ },
11702
12708
  additionalFields: [
11703
12709
  {
11704
12710
  id: "heading",
11705
12711
  type: "text",
11706
- label: "Heading",
12712
+ label: "Small label above the name",
12713
+ description: "Such as “New” or “Back in stock”. Leave it empty for none.",
11707
12714
  multiline: false,
11708
12715
  required: false,
11709
12716
  defaultValue: ""
@@ -11711,16 +12718,20 @@ const productDetailBlockDefinition = {
11711
12718
  {
11712
12719
  id: "productSlug",
11713
12720
  type: "text",
11714
- label: "Product slug",
12721
+ label: "Product",
11715
12722
  multiline: false,
11716
- 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.",
11717
12724
  required: false,
11718
- ui: { intent: "behavior" }
12725
+ ui: {
12726
+ intent: "behavior",
12727
+ visibleWhen: { template: "page" }
12728
+ }
11719
12729
  },
11720
12730
  {
11721
12731
  id: "showSummary",
11722
12732
  type: "boolean",
11723
- label: "Show summary",
12733
+ label: "Show the summary",
12734
+ description: "The product's summary, under the price.",
11724
12735
  required: false,
11725
12736
  defaultValue: true,
11726
12737
  ui: { intent: "display" }
@@ -11728,7 +12739,8 @@ const productDetailBlockDefinition = {
11728
12739
  {
11729
12740
  id: "showBody",
11730
12741
  type: "boolean",
11731
- label: "Show full description",
12742
+ label: "Show the details",
12743
+ description: "The product's details, under the button.",
11732
12744
  required: false,
11733
12745
  defaultValue: true,
11734
12746
  ui: { intent: "display" }
@@ -11736,7 +12748,8 @@ const productDetailBlockDefinition = {
11736
12748
  {
11737
12749
  id: "addButtonText",
11738
12750
  type: "text",
11739
- label: "Add button text",
12751
+ label: "Button text",
12752
+ description: "Leave it empty for “Add to cart”.",
11740
12753
  multiline: false,
11741
12754
  required: false,
11742
12755
  defaultValue: "Add to cart"
@@ -11747,7 +12760,8 @@ const productDetailBlockDefinition = {
11747
12760
  label: "If there's nothing to show",
11748
12761
  multiline: false,
11749
12762
  required: false,
11750
- defaultValue: "Product unavailable."
12763
+ defaultValue: "Product unavailable.",
12764
+ ui: { hidden: true }
11751
12765
  },
11752
12766
  sectionStylesField({
11753
12767
  id: "_sectionStyles",
@@ -11841,6 +12855,79 @@ const productListBlockDefinition = {
11841
12855
  titleSource: "heading",
11842
12856
  description: "Your products, each with a button to add it to the cart.",
11843
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
+ },
11844
12931
  additionalFields: [
11845
12932
  {
11846
12933
  id: "heading",
@@ -11862,7 +12949,7 @@ const productListBlockDefinition = {
11862
12949
  label: "Grid"
11863
12950
  }, {
11864
12951
  value: "list",
11865
- label: "List"
12952
+ label: "One under another"
11866
12953
  }],
11867
12954
  ui: { intent: "display" }
11868
12955
  },
@@ -11891,12 +12978,19 @@ const productListBlockDefinition = {
11891
12978
  label: "4 columns"
11892
12979
  }
11893
12980
  ],
11894
- ui: { intent: "display" }
12981
+ ui: {
12982
+ intent: "display",
12983
+ visibleWhen: {
12984
+ field: "layout",
12985
+ equals: "grid"
12986
+ }
12987
+ }
11895
12988
  },
11896
12989
  {
11897
12990
  id: "showSummary",
11898
12991
  type: "boolean",
11899
- label: "Show summary",
12992
+ label: "Show the summary",
12993
+ description: "The product's summary, under its name.",
11900
12994
  required: false,
11901
12995
  defaultValue: true,
11902
12996
  ui: { intent: "display" }
@@ -11904,7 +12998,7 @@ const productListBlockDefinition = {
11904
12998
  {
11905
12999
  id: "showPrices",
11906
13000
  type: "boolean",
11907
- label: "Show prices",
13001
+ label: "Show the price",
11908
13002
  required: false,
11909
13003
  defaultValue: true,
11910
13004
  ui: { intent: "display" }
@@ -11912,7 +13006,8 @@ const productListBlockDefinition = {
11912
13006
  {
11913
13007
  id: "addButtonText",
11914
13008
  type: "text",
11915
- label: "Add button text",
13009
+ label: "Button text",
13010
+ description: "Leave it empty for “Add to cart”.",
11916
13011
  multiline: false,
11917
13012
  required: false,
11918
13013
  defaultValue: "Add to cart"
@@ -11920,7 +13015,8 @@ const productListBlockDefinition = {
11920
13015
  {
11921
13016
  id: "emptyStateText",
11922
13017
  type: "text",
11923
- label: "If there's nothing to show",
13018
+ label: "Message",
13019
+ description: "What visitors see when there are no products to show.",
11924
13020
  multiline: false,
11925
13021
  required: false,
11926
13022
  defaultValue: "No products available right now."
@@ -12024,6 +13120,119 @@ function cardListSectionAction(labelPath = "content.sectionActionLabel", linkPat
12024
13120
  } }
12025
13121
  }, [text({ as: "span" }, bind(labelPath))], when(labelPath));
12026
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;
12027
13236
  const shopBlockDefinition = {
12028
13237
  manifest: createBlockManifest({
12029
13238
  variantMeaning: {
@@ -12038,15 +13247,14 @@ const shopBlockDefinition = {
12038
13247
  ]
12039
13248
  },
12040
13249
  id: "block.shop",
12041
- promotedFields: ["showPasses", "showMemberships"],
12042
13250
  version: "1.0.0",
12043
13251
  title: "Passes & memberships",
12044
13252
  titleSource: "passesHeading",
12045
13253
  description: "Your class passes and memberships, ready for people to buy.",
12046
13254
  skipSectionStyles: true,
13255
+ editing: shopEditing,
12047
13256
  additionalFields: [
12048
13257
  ...cardListKnobFields,
12049
- ...cardListSectionActionFields,
12050
13258
  {
12051
13259
  id: "featured",
12052
13260
  type: "text",
@@ -12062,26 +13270,30 @@ const shopBlockDefinition = {
12062
13270
  {
12063
13271
  id: "showPasses",
12064
13272
  type: "boolean",
12065
- label: "Show passes",
12066
- description: "Lets visitors buy your class passes.",
13273
+ label: "Show",
12067
13274
  required: false,
12068
13275
  defaultValue: true,
12069
- ui: { intent: "behavior" }
13276
+ ui: {
13277
+ intent: "behavior",
13278
+ widget: "shopShow",
13279
+ visibleWhen: shopShowChoiceCondition
13280
+ }
12070
13281
  },
12071
13282
  {
12072
13283
  id: "showMemberships",
12073
13284
  type: "boolean",
12074
13285
  label: "Show memberships",
12075
- description: "Lets visitors buy your memberships.",
12076
13286
  required: false,
12077
13287
  defaultValue: true,
12078
- ui: { intent: "behavior" }
13288
+ ui: {
13289
+ intent: "behavior",
13290
+ hidden: true
13291
+ }
12079
13292
  },
12080
13293
  {
12081
13294
  id: "layout",
12082
13295
  type: "select",
12083
13296
  label: "Layout",
12084
- description: "How the passes and memberships are laid out.",
12085
13297
  required: false,
12086
13298
  multiple: false,
12087
13299
  defaultValue: "grid",
@@ -12104,8 +13316,7 @@ const shopBlockDefinition = {
12104
13316
  {
12105
13317
  id: "columns",
12106
13318
  type: "select",
12107
- label: "Grid columns",
12108
- description: "Number of columns in grid layout",
13319
+ label: "Columns",
12109
13320
  required: false,
12110
13321
  multiple: false,
12111
13322
  defaultValue: "2",
@@ -12127,13 +13338,18 @@ const shopBlockDefinition = {
12127
13338
  label: "4 columns"
12128
13339
  }
12129
13340
  ],
12130
- ui: { intent: "display" }
13341
+ ui: {
13342
+ intent: "display",
13343
+ visibleWhen: {
13344
+ field: "layout",
13345
+ equals: "grid"
13346
+ }
13347
+ }
12131
13348
  },
12132
13349
  {
12133
13350
  id: "showDescriptions",
12134
13351
  type: "boolean",
12135
- label: "Show descriptions",
12136
- description: "Shows the description under each one.",
13352
+ label: "Description",
12137
13353
  required: false,
12138
13354
  defaultValue: true,
12139
13355
  ui: { intent: "behavior" }
@@ -12141,20 +13357,25 @@ const shopBlockDefinition = {
12141
13357
  {
12142
13358
  id: "showValidityPeriod",
12143
13359
  type: "boolean",
12144
- label: "Show validity period",
12145
- 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”.",
12146
13362
  required: false,
12147
13363
  defaultValue: true,
12148
- ui: { intent: "behavior" }
13364
+ ui: {
13365
+ intent: "behavior",
13366
+ visibleWhen: shopPassesShownCondition
13367
+ }
12149
13368
  },
12150
13369
  {
12151
13370
  id: "showPricePerCredit",
12152
13371
  type: "boolean",
12153
- label: "Show price per credit",
12154
- description: "Shows what each credit works out at, for passes and packs.",
13372
+ label: "What each one works out at",
12155
13373
  required: false,
12156
13374
  defaultValue: true,
12157
- ui: { intent: "behavior" }
13375
+ ui: {
13376
+ intent: "behavior",
13377
+ visibleWhen: shopPassesShownCondition
13378
+ }
12158
13379
  },
12159
13380
  createButtonVariantField({
12160
13381
  label: "Button style",
@@ -12164,52 +13385,65 @@ const shopBlockDefinition = {
12164
13385
  {
12165
13386
  id: "passesHeading",
12166
13387
  type: "text",
12167
- label: "Passes heading",
12168
- 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”.",
12169
13390
  required: false,
12170
13391
  multiline: false,
12171
13392
  defaultValue: "",
12172
- maxLength: 100
13393
+ maxLength: 100,
13394
+ ui: { visibleWhen: shopPassesShownCondition }
12173
13395
  },
12174
13396
  {
12175
13397
  id: "membershipsHeading",
12176
13398
  type: "text",
12177
- label: "Memberships heading",
12178
- description: "Heading for the memberships section",
13399
+ label: "Heading above memberships",
12179
13400
  required: false,
12180
13401
  multiline: false,
12181
13402
  defaultValue: "Memberships",
12182
- maxLength: 100
13403
+ maxLength: 100,
13404
+ ui: { visibleWhen: shopMembershipsShownCondition }
12183
13405
  },
12184
13406
  {
12185
13407
  id: "buyButtonText",
12186
13408
  type: "text",
12187
- label: "Pass button text",
12188
- description: "The text on the button to buy a pass.",
13409
+ label: "Button on a pass",
12189
13410
  required: false,
12190
13411
  multiline: false,
12191
13412
  defaultValue: DEFAULT_PASS_BUY_BUTTON_TEXT,
12192
- maxLength: 40
13413
+ maxLength: 40,
13414
+ ui: { visibleWhen: shopPassesShownCondition }
12193
13415
  },
12194
13416
  {
12195
13417
  id: "subscribeButtonText",
12196
13418
  type: "text",
12197
- label: "Subscribe button text",
12198
- description: "Text for membership subscribe button",
13419
+ label: "Button on a membership",
12199
13420
  required: false,
12200
13421
  multiline: false,
12201
13422
  defaultValue: "Subscribe",
12202
- maxLength: 40
13423
+ maxLength: 40,
13424
+ ui: { visibleWhen: shopMembershipsShownCondition }
12203
13425
  },
12204
13426
  {
12205
13427
  id: "emptyStateText",
12206
13428
  type: "text",
12207
13429
  label: "If there's nothing to show",
12208
- description: "What visitors see when there's nothing for sale.",
12209
13430
  required: false,
12210
13431
  multiline: false,
12211
13432
  defaultValue: "No products available at this time.",
12212
- 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
+ } }
12213
13447
  },
12214
13448
  sectionStylesField({
12215
13449
  id: "_sectionStyles",
@@ -12298,16 +13532,13 @@ const shopBlockDefinition = {
12298
13532
  from: "content.subscribeButtonText",
12299
13533
  fallback: "Subscribe"
12300
13534
  } },
12301
- emptyStateText: { $bind: {
12302
- from: "content.emptyStateText",
12303
- fallback: "No products available at this time."
12304
- } },
12305
13535
  passes: { $bind: { from: "data.passes.passes" } },
12306
13536
  memberships: { $bind: { from: "data.memberships.memberships" } }
12307
13537
  })), cardListSectionAction()], { gap: "lg" })
12308
13538
  })]
12309
13539
  }),
12310
13540
  runtime: shopBlockRuntime,
13541
+ readiness: shopReadiness,
12311
13542
  dataSchemas: {
12312
13543
  passes: publicPassProductCollectionSchema.optional(),
12313
13544
  memberships: publicMembershipProductCollectionSchema.optional()
@@ -12455,10 +13686,6 @@ function GiftingSSR({ blockId, ...rest }) {
12455
13686
  const giftCards = offers?.giftCards ?? [];
12456
13687
  const vouchers = offers?.vouchers ?? [];
12457
13688
  const hasOffers = giftCards.length > 0 || vouchers.length > 0;
12458
- const eyebrow = giftingEyebrow(offers, {
12459
- giftCards: display.giftCardsHeading,
12460
- vouchers: display.vouchersHeading
12461
- });
12462
13689
  return /* @__PURE__ */ jsx(IslandRoot, {
12463
13690
  kind: "gifting",
12464
13691
  id: blockId,
@@ -12469,69 +13696,88 @@ function GiftingSSR({ blockId, ...rest }) {
12469
13696
  },
12470
13697
  value: islandProps,
12471
13698
  children: /* @__PURE__ */ jsxs("div", {
12472
- className: "gifting-panel",
12473
- ...giftingSlot(display, "panel"),
13699
+ className: "gifting",
13700
+ ...display.lookSlots ? { "data-slot": "layout" } : {},
12474
13701
  children: [/* @__PURE__ */ jsx(GiftingPanelHead, {
12475
- eyebrow,
12476
13702
  heading: display.heading,
12477
13703
  intro: display.intro,
12478
13704
  look: display
12479
- }), hasOffers ? /* @__PURE__ */ jsxs("div", {
12480
- className: "gifting-panel-offers",
12481
- children: [giftCards.map((offer) => /* @__PURE__ */ jsxs("div", {
12482
- className: "gifting-offer",
12483
- "data-gift-offer": offer.id,
12484
- children: [
12485
- giftCards.length > 1 ? /* @__PURE__ */ jsx("h3", {
12486
- className: "gifting-offer-title",
12487
- children: offer.title
12488
- }) : null,
12489
- offer.description ? /* @__PURE__ */ jsx("p", {
12490
- className: "gifting-offer-description",
12491
- children: offer.description
12492
- }) : null,
12493
- /* @__PURE__ */ jsxs("div", {
12494
- className: "gifting-offer-row",
12495
- "data-gift-offer-row": "",
12496
- children: [/* @__PURE__ */ jsx(GiftCardAmounts, {
12497
- offer,
12498
- currency: offers?.currency ?? "GBP",
12499
- groupName: `amountChoice-${offer.id}`,
12500
- look: display
12501
- }), /* @__PURE__ */ jsx(ThemedButton, {
12502
- ...giftingSlot(display, "action"),
12503
- type: "button",
12504
- variant: "primary",
12505
- size: "md",
12506
- extraClassName: "gifting-buy",
12507
- label: "Buy a gift card"
12508
- })]
12509
- })
12510
- ]
12511
- }, offer.id)), vouchers.map((offer) => /* @__PURE__ */ jsxs("div", {
12512
- className: "gifting-offer",
12513
- children: [
12514
- /* @__PURE__ */ jsx("h3", {
12515
- className: "gifting-offer-title",
12516
- children: offer.title
12517
- }),
12518
- offer.description ? /* @__PURE__ */ jsx("p", {
12519
- className: "gifting-offer-description",
12520
- children: offer.description
12521
- }) : null,
12522
- /* @__PURE__ */ jsx(ThemedButton, {
12523
- ...giftingSlot(display, "action"),
12524
- type: "button",
12525
- variant: "primary",
12526
- size: "md",
12527
- extraClassName: "gifting-buy",
12528
- 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))
12529
13775
  })
12530
- ]
12531
- }, offer.id))]
12532
- }) : /* @__PURE__ */ jsx("p", {
12533
- className: "gifting-empty",
12534
- children: display.emptyStateText
13776
+ }, group.kind))
13777
+ }) : /* @__PURE__ */ jsx("p", {
13778
+ className: "gifting-empty",
13779
+ children: display.emptyStateText
13780
+ })
12535
13781
  })]
12536
13782
  })
12537
13783
  });
@@ -13423,4 +14669,4 @@ const serverComponentRegistry = {
13423
14669
  ...buildServerRegistryFromEntries(runtimeBackedBlockServerEntries)
13424
14670
  };
13425
14671
  //#endregion
13426
- export { backgroundFrame as $, publicMapLocationResultSchema as $n, link as $t, eventRegistrationBlockDefinition as A, lookCarouselRegionTransform as An, splitPositioningClasses as At, defineFragment as B, ICON_SIZE_PX as Bn, parseBlockIconValue as Bt, teamReadiness as C, formatAppointmentPrice as Cn, lookPartShown as Ct, loadedReadinessFact as D, BACKGROUND_POSITION_PRESET_VALUES as Dn, HeaderSectionFrame as Dt, hiddenFromVisitors as E, teamMemberCardBiographyFallback as En, buildAppointmentServicesView as Et, augmentManifest as F, ACCORDION_OPEN_ACCENT_THICKNESS as Fn, accordionIconColorStyle as Ft, parseFieldDefinitions as G, isAcceptedRepeaterGridSpan as Gn, button as Gt, createSiteOptionSelectField as H, pageGround as Hn, accordionList as Ht, formEmbedFragment as I, ACCORDION_SPACING_MAP as In, resolveAccordionIconStyle as It, sectionHeaderLayoutNodes as J, resolveRepeaterGridRowFieldId as Jn, fileDownload as Jt, withApiBindings as K, parseRepeaterGridInteger as Kn, carousel as Kt, formCopyFragment as L, ACCORDION_TRIGGER_FONT_SCALE as Ln, PUBLIC_DOWNLOAD_MEDIA_TYPES as Lt, checkoutBlockDefinition as M, lookQuoteLimitTransform as Mn, mobileOnlyDisplay as Mt, cartBlockDefinition as N, lookSkinSlotTransform as Nn, accordionItemPartSlots as Nt, pageTemplateFromEntry as O, getAnchorClasses as On, composeHeaderSectionWrapperClassName as Ot, createBlockManifest as P, lookSlot as Pn, accordionLookAttributes as Pt, styledSection as Q, publicMapLocationParamsSchema as Qn, inline as Qt, buildFragmentDataLoaders as R, ACCORDION_TRIGGER_LETTER_SPACING as Rn, FEATURE_CARD_GENERATED_ICON_SIZE_PX as Rt, galleryReadiness as S, formatAppointmentLocation as Sn, EventDetailsView as St, admitReadinessFacts as T, publicAppointmentPricingSchema as Tn, resolveEventDetailsPresentation as Tt, normalizeSelectSource as U, bindingSchema as Un, bind as Ut, createSdkSelectField as V, groundPaint as Vn, SectionNode as Vt, parseFieldDefinition as W, DEFAULT_MEDIA_FIELD_KINDS as Wn, bookingForm as Wt, sectionContainer as X, RESOLVED_INTERNAL_LINK_ENTITY_TYPES as Xn, headerSection as Xt, styledContainer as Y, resolveRepeaterGridSpanFieldId as Yn, form as Yt, layoutSectionGround as Z, linkSchema as Zn, icon as Zt, cardListSectionActionFields as _, eventDiscoveryFilterKeys as _n, describeUnresolvedLocationMapLocation as _t, cardListSectionAction as a, stack as an, emptyStateField as at, formDataSchema as b, resolveEventScope as bn, parseLocationMapLoaderResult as bt, newsletterSignupBlockDefinition as c, when as cn, cardStylesField as ct, eventListingBlockDefinition as d, eventReadinessQuery as dn, createButtonGroup as dt, media as en, isCanonicalRichTextDoc as er, WeeklySlotAvailabilityView as et, mapDrawingStyleBinding as f, eventReadinessQueryKeys as fn, createButtonVariantField as ft, cardListPresentationBindings as g, resolveEventScopeRead as gn, LOCATION_MAP_LOADER_KEYS as gt, cardListPhotoNumberFields as h, resolveEventCalendarRead as hn, LOCATION_MAP_LIMITS as ht, shopBlockDefinition as i, section as in, columnsField as it, giftingBlockDefinition as j, lookLeadSlotTransform as jn, desktopOnlyDisplay as jt, unavailableReadinessFact as k, resolveBackgroundColorValue as kn, markEditableSurfaceForwarding as kt, sanitizeNewsletterSignupPublicContent as l, blockChecksForEvents as ln, containerStylesField as lt, cardListKnobFields as m, recurringScheduleRead as mn, LOCATION_MAP_DEFAULTS as mt, runtimeBackedBlockModes as n, repeat as nn, offeringCourseSlotParents as nt, productListBlockDefinition as o, text as on, eventDisplayFields as ot, eventCalendarBlockDefinition as p, eventReadinessResultSchema as pn, LocationMapSSR as pt, sectionHeaderFields as q, resolveRepeaterGridColumnFieldId as qn, el as qt, runtimeBackedBlockServerEntries as r, richText as rn, cardStylingFields as rt, productDetailBlockDefinition as s, videoEmbed as sn, layoutField as st, serverComponentRegistry as t, props as tn, buildLoadedOfferingsPreviewListing as tt, normalizeMailingListBlockContent as u, eventReadinessLoaderKey as un, sectionStylesField as ut, normalizeCardListContent as v, eventScopeLoaderParam as vn, normalizeLocationMapProps as vt, testimonialsReadiness as w, publicAppointmentLocationSchema as wn, eventHeaderSlotParents as wt, chosenString as x, formatAppointmentDuration as xn, resolveLocationMapLocation as xt, formBlockDefinition as y, eventScopeQueryKeys as yn, normalizeLocationMapSource as yt, composeFragments as z, ICON_CONFIG as zn, FEATURE_CARD_ICON_TREATMENTS 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 };