@riverbankcms/sdk 0.171.1 → 0.172.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 (210) hide show
  1. package/dist/_dts/{BlocksIslandsHydrator-D-6cWDDC.d.ts → BlocksIslandsHydrator-DtrzTJ77.d.ts} +1 -1
  2. package/dist/_dts/{Page-4jkUDm4D.d.ts → Page-DViYbakk.d.ts} +7 -7
  3. package/dist/_dts/{SdkPreviewMode-DEvzvovi.d.ts → SdkPreviewMode-D-5OeDbT.d.ts} +2 -2
  4. package/dist/_dts/{client-CXPH5esD.d.ts → client-DZBOzd3U.d.ts} +1 -2
  5. package/dist/_dts/{content-types-DsCr4-ny.d.ts → content-types-DS3DrYn_.d.ts} +3 -3
  6. package/dist/_dts/{contracts-BlmXM7xP.d.ts → contracts-C3QGPCUf.d.ts} +3 -3
  7. package/dist/_dts/{footerPageOutline-BA0DnxWU.d.ts → footerPageOutline-D9Q7VIul.d.ts} +6 -6
  8. package/dist/_dts/{generatePageMetadata-B7IRJCFG.d.ts → generatePageMetadata-R7NeFT1u.d.ts} +2 -2
  9. package/dist/_dts/{index-BQPJbOkU.d.ts → index-BnMavhoh.d.ts} +2 -2
  10. package/dist/_dts/{index-DScYSl03.d.ts → index-C0zjLMAW.d.ts} +49 -38
  11. package/dist/_dts/{index-BZ8-c4iQ.d.ts → index-CpOkfBt1.d.ts} +3 -3
  12. package/dist/_dts/{index-C9_OTCFQ.d.ts → index-Da4UMgbs.d.ts} +2 -2
  13. package/dist/_dts/{index-DlABXDte.d.ts → index-DkFV_1Bc.d.ts} +1 -1
  14. package/dist/_dts/{index-Sua-7CF1.d.ts → index-Dns7OHyl.d.ts} +1 -1
  15. package/dist/_dts/{index-B3gfKNI-.d.ts → index-MuMYjetm.d.ts} +4 -4
  16. package/dist/_dts/{loadContent-Dx4fW3Pa.d.ts → loadContent-DJmXHzfi.d.ts} +7 -7
  17. package/dist/_dts/{request-DUTkELQn.d.ts → request-wQ28JWbr.d.ts} +1021 -247
  18. package/dist/_dts/{resolveBlockData-Cze35i_N.d.ts → resolveBlockData-C-IP53u9.d.ts} +5 -5
  19. package/dist/_dts/{resolvePageContent-zf6-E-C3.d.ts → resolvePageContent-Cc4zqaEC.d.ts} +2 -2
  20. package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
  21. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  22. package/dist/_dts/sdk/src/client.d.ts +7 -7
  23. package/dist/_dts/sdk/src/config/index.d.ts +6 -6
  24. package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
  25. package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
  26. package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
  27. package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
  28. package/dist/_dts/sdk/src/data/types.d.ts +2 -2
  29. package/dist/_dts/sdk/src/index.d.ts +8 -8
  30. package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
  31. package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
  32. package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
  33. package/dist/_dts/sdk/src/next/index.d.ts +7 -7
  34. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  35. package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
  36. package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
  37. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  38. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  39. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  40. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  41. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  42. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
  43. package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
  44. package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
  45. package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
  46. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  47. package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
  48. package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
  49. package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
  50. package/dist/_dts/sdk/src/server.d.ts +5 -5
  51. package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
  52. package/dist/_dts/sdk/src/theme/index.d.ts +18 -1
  53. package/dist/_dts/{types-BCzfYDW2.d.ts → types-CpjyP5I4.d.ts} +7 -7
  54. package/dist/_dts/{types-JD-36x3P.d.ts → types-DrinAfeW.d.ts} +3 -3
  55. package/dist/_dts/{types-CPHk5Voq.d.ts → types-ZuZoGsZV.d.ts} +2 -2
  56. package/dist/_dts/{validation-0MyQlzWJ.d.ts → validation-CIZ_fP5l.d.ts} +4 -4
  57. package/dist/client/{BlocksIslandsHydrator-vTHQyBQF.mjs → BlocksIslandsHydrator-UFmQB1BE.mjs} +17 -17
  58. package/dist/client/{BookingMailingListNote-Blge9FJo.mjs → BookingMailingListNote-VjRYhx1c.mjs} +6 -6
  59. package/dist/client/{BookingPanelArrangement-wm6eeuin.mjs → BookingPanelArrangement-DpqnRo-t.mjs} +1 -1
  60. package/dist/client/{BookingQuestionFields-BlaCItmH.mjs → BookingQuestionFields-CzOT8ZWo.mjs} +4 -4
  61. package/dist/client/{CalendarNavigationChevron-DRH9qFny.mjs → CalendarNavigationChevron-CNckKZct.mjs} +7 -7
  62. package/dist/client/{CheckboxChoice-B65wFjqx.mjs → CheckboxChoice-b-PJLEXe.mjs} +1 -1
  63. package/dist/client/{DemoBookingPortalAccess-DPGZArG9.mjs → DemoBookingPortalAccess-CmZLVXOy.mjs} +6 -6
  64. package/dist/client/{EventCalendar.client-FGg6yCLH.mjs → EventCalendar.client-BU-SxLCn.mjs} +9 -9
  65. package/dist/client/{EventCombined.client-218_Gqgp.mjs → EventCombined.client-f28VltfY.mjs} +8 -8
  66. package/dist/client/{EventEmbeddedCheckoutStep-DKKRCuta.mjs → EventEmbeddedCheckoutStep-B18VbNS_.mjs} +1 -1
  67. package/dist/client/{EventItem-DKdZSW_R.mjs → EventItem-sKBofjiW.mjs} +40 -14
  68. package/dist/client/{EventListWeekNavigation-DZJ5qBhg.mjs → EventListWeekNavigation-IAcax47T.mjs} +1 -1
  69. package/dist/client/{EventListing.client-CCdsrqHc.mjs → EventListing.client-BEtnRvZr.mjs} +3 -3
  70. package/dist/client/{EventListing.view-BVoHnVZA.mjs → EventListing.view-BZ4l_rmT.mjs} +189 -73
  71. package/dist/client/{EventRegistrationPayment-BVxHCnxs.mjs → EventRegistrationPayment-BWb295cD.mjs} +9 -9
  72. package/dist/client/{LocationMapActions-QahdLtdE.mjs → LocationMapActions-Hsj2HC_1.mjs} +2 -2
  73. package/dist/client/{MapDrawingSvg-Dy6UMuIw.mjs → MapDrawingSvg-C7E7Lyfa.mjs} +1 -1
  74. package/dist/client/{Page-CT4HaEMr.mjs → Page-Ds1s3DuC.mjs} +1426 -486
  75. package/dist/client/{ProtectedSubmitButton-AOUzjDK9.mjs → ProtectedSubmitButton-C-ql101B.mjs} +1 -1
  76. package/dist/client/{StepIndicator-DRJy4eU3.mjs → StepIndicator-CSCyAaKY.mjs} +6 -6
  77. package/dist/client/{TabBarFragment-CsAufYwT.mjs → TabBarFragment-BqfRLojo.mjs} +1 -1
  78. package/dist/client/{ThemedButton-BMDHwnM6.mjs → ThemedButton-DuaYtnvG.mjs} +1 -1
  79. package/dist/client/{accessibleSurfaces-BnyVRqdU.mjs → accessibleSurfaces-OsAseM7H.mjs} +36 -18
  80. package/dist/client/{accordion-BOApxi9U.mjs → accordion-DgwFZJSx.mjs} +1 -1
  81. package/dist/client/{booking-form.client-DDf8Lmo5.mjs → booking-form.client-CKY9oksp.mjs} +33 -29
  82. package/dist/client/{bookingForm-DWrgG-Xx.mjs → bookingForm-CsHhcdSF.mjs} +4 -4
  83. package/dist/client/bookings.mjs +5 -5
  84. package/dist/client/{boxStyleClassNames-7MVCNWgc.mjs → boxStyleClassNames-B1Z_TGAe.mjs} +1 -1
  85. package/dist/client/{carousel-DeI76SEP.mjs → carousel-0sw2Kc3a.mjs} +2 -2
  86. package/dist/client/{carousel.client-YF4mUK5t.mjs → carousel.client-h65clfUO.mjs} +1 -1
  87. package/dist/client/{cart-D_uxULCO.mjs → cart-CPfvMDGJ.mjs} +3 -3
  88. package/dist/client/{cart.client-BxSMse88.mjs → cart.client-BJBPUTmg.mjs} +1 -1
  89. package/dist/client/{checkout-DIbh4g5e.mjs → checkout-DU4JFjGT.mjs} +3 -3
  90. package/dist/client/{checkout.client-x4Lkw8-E.mjs → checkout.client-BbNCO4xa.mjs} +1 -1
  91. package/dist/client/{checkoutUrls-DqN3L-kl.mjs → checkoutUrls-BQ3OlWlM.mjs} +1 -1
  92. package/dist/client/client.mjs +135 -4
  93. package/dist/client/{context-Dzjv2CpA.mjs → context-xNC1Cyjw.mjs} +14 -1
  94. package/dist/client/{cta-CP9l112u.mjs → cta-CNVQHLKs.mjs} +53 -11
  95. package/dist/client/{dateFormatting-BfurxGwg.mjs → dateFormatting-B6ea-egy.mjs} +1 -1
  96. package/dist/client/{demoPortalMagicLink-D0dcPsRE.mjs → demoPortalMagicLink-BhjGxhX3.mjs} +1 -1
  97. package/dist/client/{display-ChgDe9Da.mjs → display-B5DfNb6A.mjs} +1869 -333
  98. package/dist/client/{enhanceHeaderSection-BEjg_h_6.mjs → enhanceHeaderSection-BFcHLuqk.mjs} +139 -16
  99. package/dist/client/{event-details.client-COmbQ3mc.mjs → event-details.client-WHT5GLn2.mjs} +1 -1
  100. package/dist/client/{event-registration.client-BvQG3qEY.mjs → event-registration.client-CmnRKELC.mjs} +11 -11
  101. package/dist/client/{eventCalendar-DiitbUpV.mjs → eventCalendar-2NbdCyov.mjs} +4 -4
  102. package/dist/client/{eventCombined-Da9Z8KDq.mjs → eventCombined-D1lH1n2T.mjs} +4 -4
  103. package/dist/client/{eventDetails-Cf-kg7d6.mjs → eventDetails-BHvnF2Tw.mjs} +2 -2
  104. package/dist/client/{eventListing-xwXgVp7a.mjs → eventListing-EhSDk4UL.mjs} +4 -4
  105. package/dist/client/{eventRegistration-hlFYlgTA.mjs → eventRegistration-z_0jN_KS.mjs} +4 -4
  106. package/dist/client/{form-ERv_X_oZ.mjs → form-BfChzSkS.mjs} +3 -3
  107. package/dist/client/{form.client-Cz24FYNj.mjs → form.client-D1zehtPk.mjs} +4 -4
  108. package/dist/client/{form.parts-DeaH4kIe.mjs → form.parts-rMDlUQIv.mjs} +3 -3
  109. package/dist/client/{formatDate-Cjouxh4Y.mjs → formatDate-ymSVT9Y5.mjs} +1 -1
  110. package/dist/client/gifting/client.mjs +3 -3
  111. package/dist/client/{headerSection-CJvt0ZP4.mjs → headerSection-BX9bQ84k.mjs} +2 -2
  112. package/dist/client/{newsletter-form.client-WuGDEzdD.mjs → newsletter-form.client-DMbuJCtJ.mjs} +5 -5
  113. package/dist/client/{newsletter-form.parts-DhnW6tdB.mjs → newsletter-form.parts-BxrVsoI0.mjs} +2 -2
  114. package/dist/client/{newsletterForm-DxG7NV8U.mjs → newsletterForm-B_I3FJFS.mjs} +3 -3
  115. package/dist/client/{noop-poI1m2yW.mjs → noop-CamIX2yK.mjs} +17 -1
  116. package/dist/client/portal/client.mjs +231 -117
  117. package/dist/client/{product-detail.client-DsSfbmdV.mjs → product-detail.client-qxuiYCof.mjs} +1 -1
  118. package/dist/client/{product-list.client-Byzow88i.mjs → product-list.client-CDL-jihv.mjs} +1 -1
  119. package/dist/client/{productDetail-iXkmQpxG.mjs → productDetail-B97m0uZy.mjs} +3 -3
  120. package/dist/client/{productList-HoFGQXFl.mjs → productList-DE4vSSG_.mjs} +3 -3
  121. package/dist/client/{propsDecoder-CH2-LJME.mjs → propsDecoder-BTde6Syh.mjs} +3 -3
  122. package/dist/client/{registry.server-ed20Q7bV.mjs → registry.server-Cn8XjRte.mjs} +1458 -1178
  123. package/dist/client/rendering/client.mjs +27 -27
  124. package/dist/client/rendering/islands.mjs +1 -1
  125. package/dist/client/rendering.mjs +22 -16
  126. package/dist/client/{richText-coerce-CtoGLZ_e.mjs → richText-coerce-Bcl3vTb4.mjs} +1 -1
  127. package/dist/client/{routeIslandApiConfig-CBUO-xuz.mjs → routeIslandApiConfig-BjRoLoMD.mjs} +1 -1
  128. package/dist/client/{runtimeResponse-3brbt2Jq.mjs → runtimeResponse-B-lrAGhX.mjs} +1 -1
  129. package/dist/client/runtimeResponse-CPcA8xSm.mjs +3 -0
  130. package/dist/client/{shop-DXyeSNgi.mjs → shop-BC4H0oYT.mjs} +3 -3
  131. package/dist/client/{shop-commerce--klkHNzu.mjs → shop-commerce-BsY7a71m.mjs} +12 -12
  132. package/dist/client/{shop-commerce-store-BdpIWdc4.mjs → shop-commerce-store-BZ5j90HD.mjs} +1 -1
  133. package/dist/client/{shop.client-Sv7QVDmj.mjs → shop.client-WgGVGelc.mjs} +12 -12
  134. package/dist/client/{shop.interactive-C0IjiWOs.mjs → shop.interactive-Bb67gPLL.mjs} +187 -81
  135. package/dist/client/{shopShared-Jt4TzcAG.mjs → shopShared-BE6TEk2A.mjs} +2 -2
  136. package/dist/client/spam-protection.mjs +1 -1
  137. package/dist/client/{timetableModel-BxbnEJCi.mjs → timetableModel-Bbz_ECL5.mjs} +10 -10
  138. package/dist/client/{types-B0hJldSt.mjs → types-DjWUR_O6.mjs} +8 -2
  139. package/dist/client/{useAvailableSlots-ByHedoBi.mjs → useAvailableSlots-CdP14E_b.mjs} +2 -2
  140. package/dist/client/{useDiscountApply-dToQs9oY.mjs → useDiscountApply-DvOSso2l.mjs} +1 -1
  141. package/dist/client/{useDiscountCodeUi-C_aa_H69.mjs → useDiscountCodeUi-B4fRd2jy.mjs} +1 -1
  142. package/dist/client/{useEventPagination--MFZBoJt.mjs → useEventPagination-M3jC8lgP.mjs} +6 -6
  143. package/dist/client/{view-DhEwiTJG.mjs → view-B0TFnP4y.mjs} +198 -60
  144. package/dist/client/{view-C_brMDU2.mjs → view-DNNNbnNj.mjs} +3 -3
  145. package/dist/preview-next/client/{EventEmbeddedCheckoutStep-CKe4cjZ4.mjs → EventEmbeddedCheckoutStep-aRJjq4x8.mjs} +1 -1
  146. package/dist/preview-next/client/{LocationPickerEnvironment-OwAxA2C0.mjs → LocationPickerEnvironment-D4F_5rnr.mjs} +1 -1
  147. package/dist/preview-next/client/{MapLibreEditMap-CaUOTCSh.mjs → MapLibreEditMap-BKMNxSEJ.mjs} +2 -2
  148. package/dist/preview-next/client/{PageSectionToolbar-Dfi8Y3AI.mjs → PageSectionToolbar-D59tHj_L.mjs} +25 -20
  149. package/dist/preview-next/client/{PreviewEditorSidebar-DJlX4sXP.mjs → PreviewEditorSidebar-CjOIZlUk.mjs} +100 -70
  150. package/dist/preview-next/client/{PreviewEditorUI-FVAibBlC.mjs → PreviewEditorUI--kS9Cwsc.mjs} +5 -5
  151. package/dist/preview-next/client/PreviewLayoutContext-Dy0LwcHc.mjs +26 -0
  152. package/dist/preview-next/client/PreviewQueryProvider-BgIucg_5.mjs +21 -0
  153. package/dist/preview-next/client/{PreviewShell-9eAon7Z8.mjs → PreviewShell-Bi8-rclb.mjs} +311 -62
  154. package/dist/preview-next/client/{SdkPreviewModeRuntime-Byf-KW1x.mjs → SdkPreviewModeRuntime-CWTUw-3L.mjs} +301 -125
  155. package/dist/preview-next/client/{SiteChromeCustomizeButton-eU-zMftO.mjs → SiteChromeCustomizeButton-CrgS3I8d.mjs} +584 -286
  156. package/dist/preview-next/client/{ThemedButton-CKYjeU_M.mjs → ThemedButton-CVYz7h68.mjs} +8 -2
  157. package/dist/preview-next/client/{lucide-react-X0DjcFij.mjs → lucide-react-BCNn8dEQ.mjs} +1 -1
  158. package/dist/preview-next/client/{previewAssistantSlot-3FZrzbK8.mjs → previewAssistantSlot-Caofnr1Z.mjs} +7190 -4065
  159. package/dist/preview-next/client/{previewChromeRoot-C4gyNQXE.mjs → previewChromeRoot-CbAI_jSH.mjs} +1 -1
  160. package/dist/preview-next/client/runtime.mjs +5 -4
  161. package/dist/preview-next/client/sdk-runtime-DY65_hLk.mjs +6 -0
  162. package/dist/preview-next/client/{useAutosaveStatus-OIMkhbkP.mjs → useAutosaveStatus-CakNU3lp.mjs} +2 -2
  163. package/dist/preview-next/client/{useOpenBlockForSetup-BNG9P9sM.mjs → useOpenBlockForSetup-CCEMkosU.mjs} +20 -8
  164. package/dist/preview-next/container-responsive.css +215 -4
  165. package/dist/preview-next/keepAlive.mjs +1 -1
  166. package/dist/preview-next/middleware.mjs +1 -1
  167. package/dist/preview-next/{route-contract-BLY4ycq6.mjs → route-contract-DsKDQoVW.mjs} +131 -0
  168. package/dist/server/{Block.shared-BC3jPIP4.mjs → Block.shared-D7Qy9F4a.mjs} +4 -4
  169. package/dist/server/{ThemeScopeCore-B7Ey6AWT.mjs → ThemeScopeCore-D1NTXZdX.mjs} +14 -9
  170. package/dist/server/{accessibleSurfaces-BxsHs-jf.mjs → accessibleSurfaces-Dbd2__Le.mjs} +12 -11
  171. package/dist/server/{bindings-xQ9v3zrn.mjs → bindings-Bp6OnR3n.mjs} +109 -20
  172. package/dist/server/{block-kinds-DkzOr19P.mjs → block-kinds-BCY9z3oB.mjs} +1 -0
  173. package/dist/server/{client-DCwLR0kQ.mjs → client-dROAfMRa.mjs} +133 -2
  174. package/dist/server/config-template-validation.mjs +3 -0
  175. package/dist/server/config-validation.mjs +1 -1
  176. package/dist/server/config.mjs +2 -2
  177. package/dist/server/data/resolveBlockData.mjs +1 -1
  178. package/dist/server/index.mjs +3 -3
  179. package/dist/server/{loadContent-C4I3ltU_.mjs → loadContent-zOIrtqz-.mjs} +19 -14
  180. package/dist/server/{loadPage-COvxWN0r.mjs → loadPage-vwFiq1Rk.mjs} +2 -2
  181. package/dist/server/next.mjs +6 -6
  182. package/dist/server/{opaqueSurface-QiUjZmEV.mjs → opaqueSurface-COEKXVwk.mjs} +2 -2
  183. package/dist/server/{overrideResolution-BqQg6Iws.mjs → overrideResolution-DjboggbB.mjs} +1 -1
  184. package/dist/server/page-converter.mjs +1 -1
  185. package/dist/server/{pageRenderPlan-CVCGTj5S.mjs → pageRenderPlan-BR4t1rOw.mjs} +954 -337
  186. package/dist/server/{pageRuntimeSupport-C7Be9suN.mjs → pageRuntimeSupport-BKo6XVK-.mjs} +3 -2
  187. package/dist/server/{pageShared-H_bSBPLd.mjs → pageShared-BJjptSGp.mjs} +1039 -853
  188. package/dist/server/{parseThemeForPersistence-Bk0o95m6.mjs → parseThemeForPersistence-B18KDEue.mjs} +2 -2
  189. package/dist/server/{prebuild-HQNOeCs9.mjs → prebuild-CntSkZQI.mjs} +1 -1
  190. package/dist/server/prebuild.mjs +1 -1
  191. package/dist/server/{prefetchBlockData-CbRsnhta.mjs → prefetchBlockData-BM9Ds0OQ.mjs} +2 -2
  192. package/dist/server/{registry-CaeRTf4E.mjs → registry-wYH0LH5f.mjs} +7257 -4959
  193. package/dist/server/rendering/components/pageShared.mjs +1 -1
  194. package/dist/server/rendering/helpers/loadPage.mjs +1 -1
  195. package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
  196. package/dist/server/rendering/server.mjs +3 -3
  197. package/dist/server/rendering.mjs +7 -7
  198. package/dist/server/{resolveBlockData-CUMjWbXQ.mjs → resolveBlockData-Bu_p4HxZ.mjs} +2 -2
  199. package/dist/server/{resolveButtonColourStates-euZnRMIu.mjs → resolveButtonColourStates-CCPUY9Xh.mjs} +32 -9
  200. package/dist/server/{schema-CxBsE9Dv.mjs → schema-BFOqYIMQ.mjs} +2 -1
  201. package/dist/server/server.mjs +3 -3
  202. package/dist/server/theme-bridge.mjs +2 -2
  203. package/dist/server/theme.mjs +2 -2
  204. package/dist/server/{validation-CvmhnkDr.mjs → validation-DAQdPDku.mjs} +4 -4
  205. package/dist/server/{version-Clp2evCf.mjs → version-DAB0O3yx.mjs} +1 -1
  206. package/dist/styles/index.css +1260 -15
  207. package/package.json +1 -1
  208. package/dist/client/runtimeResponse-CTarP5K6.mjs +0 -3
  209. package/dist/preview-next/client/PreviewQueryProvider-BC0V7iAR.mjs +0 -43
  210. package/dist/preview-next/client/sdk-runtime-DtyRbz4E.mjs +0 -5
@@ -1,34 +1,34 @@
1
1
  "use client";
2
- import { $t as normalizeEventCategoryIds, D as publicGiftingOffersResponseSchema, Ft as catalogueEventCardProps, Gt as getContainerClass, H as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, Ht as EventQuickFacts, It as listingEventCardProps, J as resolveOfferingsPreviewGroupCta, Jt as eventListWeekDays, K as normalizeOfferingsPreviewItemLimit, Kt as Grid, M as buildEventRegistrationInteractiveIslandProps, O as buildFormInteractiveIslandProps, P as eventRegistrationBlockRuntime, Qt as formatEventPriceDisplay, S as newsletterFormBlockRuntime, T as giftingBlockRuntime, U as buildOfferingsPreviewListing, Vt as MediaNodeServer, Wt as getCardOrientation, X as resolveOfferingsRenderInput, Xt as formatEventPrice, Y as resolveOfferingsPreviewGroups, _ as shopProductPresentation, _n as DEFAULT_MAILING_LIST_TARGETING, _t as recurringScheduleProjectionSchema, a as buildShopInteractiveIslandProps, at as occurrenceContextSchema, b as buildNewsletterFormInteractiveIslandProps, bt as eventListingBlockRuntime, c as checkoutBlockRuntime, ct as buildEventCombinedListingDisplay, d as productDetailBlockRuntime, dt as buildEventCalendarInteractiveIslandProps, en as normalizeEventScheduleScope, fn as splitSiteChromePlacementClasses, ft as buildEventCalendarListingDisplay, h as shopBlockRuntime, hn as parseMailingListPlacementTargeting, i as buildProductListInteractiveIslandProps, in as normalizeEventVenueId, k as formBlockRuntime, ln as staticHeaderChromeRuntime, lt as eventCombinedBlockRuntime, mn as assessMailingListTargeting, mt as eventCalendarBlockRuntime, n as buildCheckoutInteractiveIslandProps, nn as normalizeEventSurfacePresets, o as cartBlockRuntime, p as productListBlockRuntime, q as offeringsListingFor, qt as buildEventListWeek, r as buildProductDetailInteractiveIslandProps, rn as normalizeEventSurfaceScope, st as buildEventCombinedInteractiveIslandProps, t as buildCartInteractiveIslandProps, tn as normalizeEventStaffMemberId, v as publicProductsResponseSchema, w as buildGiftingInteractiveIslandProps, x as newsletterBlockSubmissionMessage, y as NEWSLETTER_SIGNUPS_PAUSED_MESSAGE, yt as buildEventListingInteractiveIslandProps } from "./shop.interactive-C0IjiWOs.mjs";
2
+ import { Cn as DEFAULT_MAILING_LIST_TARGETING, D as publicGiftingOffersResponseSchema, Gt as EventQuickFacts, H as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, J as offeringRunLifecycle, Jt as getContainerClass, Lt as catalogueEventCardProps, M as buildEventRegistrationInteractiveIslandProps, O as buildFormInteractiveIslandProps, P as eventRegistrationBlockRuntime, Q as resolveOfferingsRenderInput, Qt as eventWeekGroupingContext, Rt as listingEventCardProps, S as newsletterFormBlockRuntime, St as eventListingBlockRuntime, T as giftingBlockRuntime, U as buildOfferingsPreviewListing, W as groupOfferingRunsByCourse, Wt as MediaNodeServer, X as resolveOfferingsPreviewGroupCta, Xt as buildEventListWeek, Y as offeringsListingFor, Yt as Grid, Z as resolveOfferingsPreviewGroups, Zt as eventListWeekDays, _ as shopProductPresentation, a as buildShopInteractiveIslandProps, an as normalizeEventCategoryIds, b as buildNewsletterFormInteractiveIslandProps, bn as assessMailingListTargeting, c as checkoutBlockRuntime, cn as normalizeEventSurfacePresets, d as productDetailBlockRuntime, dn as resolveEventSelection, dt as eventCombinedBlockRuntime, gt as eventCalendarBlockRuntime, h as shopBlockRuntime, hn as staticHeaderChromeRuntime, i as buildProductListInteractiveIslandProps, in as formatEventStartingPrice, k as formBlockRuntime, ln as normalizeEventSurfaceScope, lt as buildEventCombinedInteractiveIslandProps, mt as buildEventCalendarListingDisplay, n as buildCheckoutInteractiveIslandProps, o as cartBlockRuntime, on as normalizeEventScheduleScope, p as productListBlockRuntime, pt as buildEventCalendarInteractiveIslandProps, q as normalizeOfferingsPreviewItemLimit, qt as getCardOrientation, r as buildProductDetailInteractiveIslandProps, rn as formatEventPriceDisplay, sn as normalizeEventStaffMemberId, st as occurrenceContextSchema, t as buildCartInteractiveIslandProps, tn as formatEventPrice, un as normalizeEventVenueId, ut as buildEventCombinedListingDisplay, v as publicProductsResponseSchema, vn as splitSiteChromePlacementClasses, w as buildGiftingInteractiveIslandProps, x as newsletterBlockSubmissionMessage, xn as parseMailingListPlacementTargeting, xt as buildEventListingInteractiveIslandProps, y as NEWSLETTER_SIGNUPS_PAUSED_MESSAGE, yt as recurringScheduleProjectionSchema, zt as CardListContentPart } from "./shop.interactive-Bb67gPLL.mjs";
3
3
  import { f as err, p as ok } from "./renderableMediaAssetAdmission-BlfqYLJW.mjs";
4
- import { $n as canJoinEventWaitlistOnAnyMode, $o as sanitizeHref, Ao as arrangementSlotNames, Bi as resolveEventRegistrationScopedEvents, Ci as isBlockButtonRole, Cn as ImagePresets, Cs as resolveExactOrFreePriceDisplay, Gi as listItemPresentation, Hn as formatEventCompactDateRail, Ji as lookListPresentationSchemaShape, Jn as formatTime, Ln as eventDateOptions, Nn as resolvePublicMediaUrl, Pn as buildCalendarViewport, Sn as RichText, Vo as cardVariantRoleValues, Wn as formatEventHourLabel, Yn as groupEventsByDate, Zn as resolveRuntimeEventDestination, _n as bookingPresentation, as as orderedLiveRunSessions, dr as buildBookingFormInteractiveIslandProps, es as parseAspectRatioValue, gs as formatBookingPriceDisplay, ir as getEventAvailabilityStatus, is as nextLiveRunSessionStartMs, lr as groupPublicEventsByRun, or as isEventFull, os as resolveWholeSeriesBookingPhase, qi as listLookSlot, qn as formatEventTimeRange, rr as getEventAvailability, ws as resolvePricingOptionsPriceDisplay, xa as compiledRuntimeStyleFieldNames, xi as BLOCK_BUTTON_ROLE_OPTIONS, zi as normalizeEventRegistrationPageSurfaceSubject, zn as formatCalendarTitle } from "./display-ChgDe9Da.mjs";
5
- import { At as projectPublicLocation, C as normalizeEventCalendarDisplayMode$1, Ft as formatDate, Mt as toLocationCoordinates, Nt as trimmedStringOrNull, O as arrangementModes, Ot as normalizeLocationAddressText, S as isEventCalendarListLayout, _ as eventCalendarListLayoutOptions, at as isDisplayMediaKind, b as isEventCalendarDefaultView, en as resolveBookingBusinessTimeZone, in as toUtcIsoDateTimeString, it as PUBLIC_FILE_FIELD_KINDS, jt as publicLocationSchema, kt as parseLocationValue, nt as runtimeMediaSchema, o as publicMembershipProductCollectionSchema, ot as mediaTypeDiscriminants, p as calendarWindowPageSchema, q as RichTextDocSchema, s as publicPassProductCollectionSchema, v as eventCalendarVariantMeaning, x as isEventCalendarDisplayMode, z as publicEventsArraySchema } from "./noop-poI1m2yW.mjs";
4
+ import { As as resolvePricingOptionsPriceDisplay, Bi as normalizeEventRegistrationPageSurfaceSubject, Cn as ImagePresets, Go as cardVariantRoleValues, Hn as formatEventCompactDateRail, Ji as listLookSlot, Ki as listItemPresentation, Ln as eventDateOptions, Nn as resolvePublicMediaUrl, No as arrangementSlotNames, Pn as buildCalendarViewport, Qn as resolveRuntimeEventDestination, Si as BLOCK_BUTTON_ROLE_OPTIONS, Sn as RichText, Ss as formatBookingPriceDisplay, Vi as resolveEventRegistrationScopedEvents, Wn as formatEventHourLabel, Xn as groupEventsByDate, Yi as lookListPresentationSchemaShape, Yn as formatTime, _n as bookingPresentation, fr as buildBookingFormInteractiveIslandProps, is as parseAspectRatioValue, ks as resolveExactOrFreePriceDisplay, qn as formatEventTimeRange, rs as sanitizeHref, ur as groupPublicEventsByRun, us as resolveWholeSeriesBookingPhase, wa as compiledRuntimeStyleFieldNames, wi as isBlockButtonRole, zn as formatCalendarTitle } from "./display-B5DfNb6A.mjs";
5
+ import { At as parseLocationValue, B as publicEventsArraySchema, C as normalizeEventCalendarDisplayMode$1, It as formatDate, J as RichTextDocSchema, Mt as publicLocationSchema, Nt as toLocationCoordinates, O as arrangementModes, Pt as trimmedStringOrNull, S as isEventCalendarListLayout, _ as eventCalendarListLayoutOptions, an as toUtcIsoDateTimeString, at as PUBLIC_FILE_FIELD_KINDS, b as isEventCalendarDefaultView, jt as projectPublicLocation, kt as normalizeLocationAddressText, o as publicMembershipProductCollectionSchema, ot as isDisplayMediaKind, p as calendarWindowPageSchema, rt as runtimeMediaSchema, s as publicPassProductCollectionSchema, st as mediaTypeDiscriminants, tn as resolveBookingBusinessTimeZone, v as eventCalendarVariantMeaning, w as resolveEventCalendarReadPlan, x as isEventCalendarDisplayMode } from "./noop-CamIX2yK.mjs";
6
6
  import { N as assertNever$1 } from "./creditProducts-BTRX4edc.mjs";
7
7
  import { t as formatEventDuration } from "./duration-Q6_QNgiv.mjs";
8
8
  import { n as selectCategoryView } from "./appointment-service-categories-Cl2pqw-z.mjs";
9
- import { G as rgbColorValue, V as backgroundColorStyle, W as mergeStyles, q as textColorStyle, s as serializeSurfaceTree, z as resolveThemeColorReferenceValue } from "./accessibleSurfaces-BnyVRqdU.mjs";
10
- import { a as CalendarRecurringWeek, c as LinkNode, d as LocationMapView, i as buildWeekBoardViewProps, l as RichTextNode, n as WeekBoardView, o as RecurringSchedule, r as buildWeekBoardNavigationState, s as ButtonNode, t as buildTimetableModel, u as TextNode } from "./timetableModel-BxbnEJCi.mjs";
9
+ import { B as resolveThemeColorReferenceValue, G as mergeStyles, H as backgroundColorStyle, J as textColorStyle, K as rgbColorValue, s as serializeSurfaceTree } from "./accessibleSurfaces-OsAseM7H.mjs";
10
+ import { a as CalendarRecurringWeek, c as LinkNode, d as LocationMapView, i as buildWeekBoardViewProps, l as RichTextNode, n as WeekBoardView, o as RecurringSchedule, r as buildWeekBoardNavigationState, s as ButtonNode, t as buildTimetableModel, u as TextNode } from "./timetableModel-Bbz_ECL5.mjs";
11
11
  import { d as formatDateKey, h as getWeekCalendarDayTuple, m as getOrderedDayNames } from "./src-xrjaKaCj.mjs";
12
- import { h as SYSTEM_BLOCK_KINDS } from "./types-B0hJldSt.mjs";
13
- import { f as DEFAULT_SECTION_SPACING, o as normalizeBoxStylesBorder, r as boxStyleClassNames, s as resolveCardRoleForBoxStyles, v as asPartialObject } from "./boxStyleClassNames-7MVCNWgc.mjs";
14
- import { S as clsx, _ as FileAudioIcon, a as ThemedDownloadLink, b as MinusIcon, c as isSemanticIconId, d as ChevronDownIcon, f as CircleMinusIcon, g as FileArchiveIcon, i as ThemedButtonLink, l as SpinnerNode, p as CirclePlusIcon, r as ThemedButton, s as getIconComponent, u as ArrowDownIcon, v as FileSpreadsheetIcon, x as PlusIcon, y as FileTextIcon } from "./ThemedButton-BMDHwnM6.mjs";
15
- import { a as deriveEventScheduleSummary, i as eventCardListContent, n as resolveEventDetailsPresentation, o as derivePreviewRunSchedule, t as EventDetailsView } from "./view-DhEwiTJG.mjs";
16
- import { a as planEventBookingPanel, c as EventBookingPanelView, i as RegistrationClosedState, o as registrationSourceForPanel, r as BookingEntryCard, s as resolveBookingPanelSelection, t as StepIndicator } from "./StepIndicator-DRJy4eU3.mjs";
17
- import { n as resolveEventCta, r as resolveEventLinkProps } from "./cta-CP9l112u.mjs";
18
- import { i as SvgNode, o as formatEventLocation } from "./MapDrawingSvg-Dy6UMuIw.mjs";
19
- import { n as CardListItems, r as EventItem } from "./EventItem-DKdZSW_R.mjs";
20
- import { c as CalendarDayHeaders, i as CombinedLookFrame, l as buildMonthDay, n as WeekAgendaView, o as MonthLookView, u as resolveMonthSelectedDay } from "./CalendarNavigationChevron-DRH9qFny.mjs";
21
- import { a as EventCard, i as EventCompactRow, r as EmptyState, t as EventListingFrameView } from "./EventListing.view-BVoHnVZA.mjs";
12
+ import { h as SYSTEM_BLOCK_KINDS } from "./types-DjWUR_O6.mjs";
13
+ import { f as DEFAULT_SECTION_SPACING, o as normalizeBoxStylesBorder, r as boxStyleClassNames, s as resolveCardRoleForBoxStyles, v as asPartialObject } from "./boxStyleClassNames-B1Z_TGAe.mjs";
14
+ import { S as clsx, _ as FileAudioIcon, a as ThemedDownloadLink, b as MinusIcon, c as isSemanticIconId, d as ChevronDownIcon, f as CircleMinusIcon, g as FileArchiveIcon, i as ThemedButtonLink, l as SpinnerNode, p as CirclePlusIcon, r as ThemedButton, s as getIconComponent, u as ArrowDownIcon, v as FileSpreadsheetIcon, x as PlusIcon, y as FileTextIcon } from "./ThemedButton-DuaYtnvG.mjs";
15
+ import { a as eventCardListContent, c as derivePreviewRunSchedule, d as isBookableEvent, l as formatEventQuickDate, n as resolveEventDetailsPresentation, o as offeringDatesBySeries, s as deriveEventScheduleSummary, t as EventDetailsView, u as selectQuickDateEvents } from "./view-B0TFnP4y.mjs";
16
+ import { a as planEventBookingPanel, c as EventBookingPanelView, i as RegistrationClosedState, o as registrationSourceForPanel, r as BookingEntryCard, s as resolveBookingPanelSelection, t as StepIndicator } from "./StepIndicator-CSCyAaKY.mjs";
17
+ import { n as resolveEventCta, r as resolveEventLinkProps } from "./cta-CNVQHLKs.mjs";
18
+ import { i as SvgNode, o as formatEventLocation } from "./MapDrawingSvg-C7E7Lyfa.mjs";
19
+ import { n as CardListItems, r as EventItem } from "./EventItem-sKBofjiW.mjs";
20
+ import { c as CalendarDayHeaders, i as CombinedLookFrame, l as buildMonthDay, n as WeekAgendaView, o as MonthLookView, u as resolveMonthSelectedDay } from "./CalendarNavigationChevron-CNckKZct.mjs";
21
+ import { a as EventCard, i as EventCompactRow, r as EmptyState, t as EventListingFrameView } from "./EventListing.view-BZ4l_rmT.mjs";
22
22
  import { t as resolveDedicatedBookingHref } from "./bookingRoute-D6DlxYx6.mjs";
23
23
  import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
24
- import { t as BookingPanelArrangement } from "./BookingPanelArrangement-wm6eeuin.mjs";
24
+ import { t as BookingPanelArrangement } from "./BookingPanelArrangement-DpqnRo-t.mjs";
25
25
  import { t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-4o4_hl34.mjs";
26
26
  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";
27
- import { t as coerceRichTextDoc } from "./richText-coerce-CtoGLZ_e.mjs";
28
- 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-C_brMDU2.mjs";
29
- import { n as EventListWeekNavigation, t as EventListWeekEmptyState } from "./EventListWeekNavigation-DZJ5qBhg.mjs";
30
- import { n as FormSubmitAction, t as FormFieldGroups } from "./form.parts-DeaH4kIe.mjs";
31
- import { a as partitionNewsletterFields, n as NewsletterSubmitRow, r as NewsletterTopicChips, t as NewsletterExtraField } from "./newsletter-form.parts-DhnW6tdB.mjs";
27
+ import { t as coerceRichTextDoc } from "./richText-coerce-Bcl3vTb4.mjs";
28
+ 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-DNNNbnNj.mjs";
29
+ import { n as EventListWeekNavigation, t as EventListWeekEmptyState } from "./EventListWeekNavigation-IAcax47T.mjs";
30
+ import { n as FormSubmitAction, t as FormFieldGroups } from "./form.parts-rMDlUQIv.mjs";
31
+ import { a as partitionNewsletterFields, n as NewsletterSubmitRow, r as NewsletterTopicChips, t as NewsletterExtraField } from "./newsletter-form.parts-BxrVsoI0.mjs";
32
32
  import React, { forwardRef } from "react";
33
33
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
34
34
  import { z } from "zod";
@@ -1955,53 +1955,32 @@ const columnsField = (options = [
1955
1955
  label: `${n} columns`
1956
1956
  }))
1957
1957
  });
1958
- //#endregion
1959
- //#region ../blocks/src/system/runtime/nodes/events/domain/bookability.ts
1960
- /**
1961
- * Whether a public event has a registration path a visitor can take.
1962
- *
1963
- * Lifecycle admission comes from the public booking-availability contract;
1964
- * capacity comes from the shared event-domain helpers so uncapped, fallback,
1965
- * and hybrid attendance-mode cases agree with the registration runtime.
1966
- */
1967
- function isBookableEvent(event) {
1968
- if (!event.requiresRegistration) return false;
1969
- if (event.bookingAvailability.kind !== "open") return false;
1970
- return !isEventFull(event) || canJoinEventWaitlistOnAnyMode(event);
1971
- }
1972
- /**
1973
- * Select the next occurrence-targeted events for a quick-book rail.
1974
- *
1975
- * The API normally returns valid timestamps, but malformed values sort after
1976
- * valid events so one bad record cannot displace an otherwise useful rail.
1977
- * Sorting before deduplication means a duplicate occurrence keeps its earliest
1978
- * deterministic representation.
1979
- */
1980
- function selectQuickDateEvents(events) {
1981
- return orderedUniqueEventOccurrences(events.filter((event) => event.bookingScope !== "whole_series" && isBookableEvent(event))).slice(0, 4);
1982
- }
1983
- /** Shared ordering and identity selection, independent of booking capacity. */
1984
- function orderedUniqueEventOccurrences(events) {
1985
- const sorted = [...events].sort(compareQuickDateEvents);
1986
- return sorted.filter((event, index) => sorted.findIndex((candidate) => candidate.occurrenceId === event.occurrenceId) === index);
1987
- }
1988
- function formatEventQuickDate(event, style = "legacy") {
1989
- const options = eventDateOptions(event);
1990
- const dateRail = formatEventCompactDateRail(event.startsAt, options, style === "site" ? "as-written" : "capitals");
1991
- return {
1992
- dateTime: event.startsAt,
1993
- label: `${dateRail.weekday} ${dateRail.day} ${dateRail.month}, ${formatTime(event.startsAt, options)}`
1994
- };
1995
- }
1996
- function compareQuickDateEvents(left, right) {
1997
- const startsAtOrder = compareTimestamp(left.startsAt, right.startsAt);
1998
- return startsAtOrder === 0 ? left.occurrenceId.localeCompare(right.occurrenceId) : startsAtOrder;
1999
- }
2000
- function compareTimestamp(left, right) {
2001
- const leftTime = Date.parse(left);
2002
- const rightTime = Date.parse(right);
2003
- return (Number.isNaN(leftTime) ? Number.POSITIVE_INFINITY : leftTime) - (Number.isNaN(rightTime) ? Number.POSITIVE_INFINITY : rightTime);
2004
- }
1958
+ /** New block constructors store Hide; stored-content normalization owns legacy omission. */
1959
+ const eventEmptyBehaviorFields = [{
1960
+ id: "emptyBehavior",
1961
+ type: "select",
1962
+ label: "When there's nothing to show",
1963
+ required: false,
1964
+ multiple: false,
1965
+ defaultValue: "hide",
1966
+ options: [{
1967
+ value: "message",
1968
+ label: "Show a message"
1969
+ }, {
1970
+ value: "hide",
1971
+ label: "Hide this section"
1972
+ }],
1973
+ ui: { intent: "behavior" }
1974
+ }, {
1975
+ ...emptyStateField,
1976
+ ui: {
1977
+ ...emptyStateField.ui,
1978
+ visibleWhen: {
1979
+ field: "emptyBehavior",
1980
+ notEquals: "hide"
1981
+ }
1982
+ }
1983
+ }];
2005
1984
  //#endregion
2006
1985
  //#region ../blocks/src/system/runtime/nodes/events/shared/EventQuickDates.tsx
2007
1986
  /**
@@ -2012,6 +1991,7 @@ function compareTimestamp(left, right) {
2012
1991
  * external events retain their canonical destination and target behaviour.
2013
1992
  */
2014
1993
  function EventQuickDates({ events, pathname, buttonVariant = "primary", dateStyle }) {
1994
+ const headingId = React.useId();
2015
1995
  const quickDateEvents = selectQuickDateEvents(events);
2016
1996
  if (quickDateEvents.length === 0) return null;
2017
1997
  return /* @__PURE__ */ jsxs("div", {
@@ -2019,9 +1999,13 @@ function EventQuickDates({ events, pathname, buttonVariant = "primary", dateStyl
2019
1999
  "data-event-quick-dates": "true",
2020
2000
  children: [/* @__PURE__ */ jsx("h2", {
2021
2001
  className: "event-quick-dates-heading",
2002
+ id: headingId,
2022
2003
  children: "Next few dates"
2023
2004
  }), /* @__PURE__ */ jsx("div", {
2024
- className: "event-quick-dates-rail rb-overflow-x-auto rb-flex rb-gap-4",
2005
+ className: "event-quick-dates-rail rb-overflow-x-auto",
2006
+ role: "region",
2007
+ "aria-labelledby": headingId,
2008
+ tabIndex: 0,
2025
2009
  children: quickDateEvents.map((event) => /* @__PURE__ */ jsx(EventQuickDateCard, {
2026
2010
  event,
2027
2011
  pathname,
@@ -2062,7 +2046,7 @@ function EventQuickDateCard(props) {
2062
2046
  const { event } = props;
2063
2047
  const { date, bookingLink } = quickDateCardPresentation(props);
2064
2048
  return /* @__PURE__ */ jsxs("article", {
2065
- className: "event-quick-date rb-flex rb-min-w-12rem rb-shrink-0 rb-flex-col rb-gap-3 rb-rounded-lg rb-border rb-p-4",
2049
+ className: "event-quick-date rb-flex rb-flex-col rb-gap-3 rb-rounded-lg rb-border rb-p-4",
2066
2050
  children: [
2067
2051
  /* @__PURE__ */ jsx("time", {
2068
2052
  className: "event-quick-date-when",
@@ -2283,6 +2267,17 @@ function needsSetup(reason, repair) {
2283
2267
  repair
2284
2268
  };
2285
2269
  }
2270
+ function hiddenByChoice(reason, repair) {
2271
+ return {
2272
+ kind: "Hidden",
2273
+ reason,
2274
+ repair
2275
+ };
2276
+ }
2277
+ /** Visitors don't see a block that needs setting up, or one its editor has chosen to hide for now. */
2278
+ function hiddenFromVisitors(readiness) {
2279
+ return readiness.kind === "NeedsSetup" || readiness.kind === "Hidden";
2280
+ }
2286
2281
  /** One boundary owns runtime stage checking and the resulting phantom proof. */
2287
2282
  function admitReadinessFacts(stage, input) {
2288
2283
  return input.stage === stage ? input.facts : unavailableReadinessFacts();
@@ -2292,6 +2287,7 @@ function unavailableReadinessFacts() {
2292
2287
  mailingList: unavailableReadinessFact,
2293
2288
  testimonials: unavailableReadinessFact,
2294
2289
  team: unavailableReadinessFact,
2290
+ events: /* @__PURE__ */ new Map(),
2295
2291
  forms: /* @__PURE__ */ new Map(),
2296
2292
  products: /* @__PURE__ */ new Map(),
2297
2293
  template: unavailableReadinessFact
@@ -2304,7 +2300,7 @@ function pageTemplateFromEntry(entry) {
2304
2300
  //#region ../blocks/src/system/blocks/readiness.ts
2305
2301
  const newsletterReadiness = {
2306
2302
  needs: ["mailingList"],
2307
- assess: (content, facts, interaction) => {
2303
+ assess: (content, facts, { interaction }) => {
2308
2304
  if (interaction?.kind === "demo") return ready;
2309
2305
  if (facts.mailingList.kind === "Unavailable") return unknownReadiness;
2310
2306
  const targeting = parseMailingListPlacementTargeting(content.targeting ?? { mode: "default" });
@@ -2389,6 +2385,227 @@ const galleryReadiness = {
2389
2385
  function chosenString(value) {
2390
2386
  return typeof value === "string" && value.trim() ? value.trim() : null;
2391
2387
  }
2388
+ /** Absent settings retain the published behavior of existing blocks. */
2389
+ const eventsReadiness = {
2390
+ needs: ["events"],
2391
+ assess: (content, facts, { blockId }) => {
2392
+ if (content.emptyBehavior !== "hide") return ready;
2393
+ const fact = blockId === null ? void 0 : facts.events.get(blockId);
2394
+ if (!fact || fact.kind === "Unavailable") return unknownReadiness;
2395
+ return fact.value ? ready : hiddenByChoice("events_empty", {
2396
+ kind: "field",
2397
+ path: "emptyBehavior"
2398
+ });
2399
+ }
2400
+ };
2401
+ //#endregion
2402
+ //#region ../blocks/src/system/blocks/events/shared/eventScope.ts
2403
+ /** Content fields that narrow a discovery (not hand-picked) event section. */
2404
+ const eventDiscoveryFilterKeys = [
2405
+ "eventSurface",
2406
+ "filterEventPresets",
2407
+ "scheduleScope",
2408
+ "filterCategoryIds",
2409
+ "filterStaffMemberId",
2410
+ "filterVenueId"
2411
+ ];
2412
+ /**
2413
+ * The one owner of an event section's scope. Readiness ("is there anything to
2414
+ * show?") and the render loaders both derive their query from this, so Hide can
2415
+ * never judge a section empty that would display events.
2416
+ */
2417
+ function resolveEventScope(content) {
2418
+ const selection = resolveEventSelection(content.eventSelection, content.selectedEventSeriesIds);
2419
+ if (selection.kind === "selected") return selection;
2420
+ return {
2421
+ kind: "matching",
2422
+ filters: Object.fromEntries(eventDiscoveryFilterKeys.map((key) => [key, content[key]]))
2423
+ };
2424
+ }
2425
+ const discoveryQueryKey = {
2426
+ eventSurface: "eventSurface",
2427
+ filterEventPresets: "eventPresets",
2428
+ scheduleScope: "scheduleScope",
2429
+ filterCategoryIds: "categoryIds",
2430
+ filterStaffMemberId: "staffMemberId",
2431
+ filterVenueId: "venueId"
2432
+ };
2433
+ const eventScopeQueryKeys = ["seriesIds", ...Object.values(discoveryQueryKey)];
2434
+ function scopeCsv(value) {
2435
+ const normalized = (Array.isArray(value) ? value : typeof value === "string" ? value.split(",") : []).filter((item) => typeof item === "string").map((item) => item.trim()).filter(Boolean);
2436
+ return normalized.length > 0 ? [...new Set(normalized)].join(",") : void 0;
2437
+ }
2438
+ /**
2439
+ * Public event query params for a scope. A selected scope sends only
2440
+ * `seriesIds` (an empty string is an explicitly empty selection, which reads
2441
+ * no rows); discovery sends only the filters that are set.
2442
+ */
2443
+ function eventScopeQuery(scope) {
2444
+ if (scope.kind === "selected") return { seriesIds: scope.seriesIds.join(",") };
2445
+ const query = {};
2446
+ for (const key of eventDiscoveryFilterKeys) {
2447
+ const value = scopeCsv(scope.filters[key]);
2448
+ if (value !== void 0) query[discoveryQueryKey[key]] = value;
2449
+ }
2450
+ return query;
2451
+ }
2452
+ /**
2453
+ * A query value as a loader binding must return it. Binding resolution treats
2454
+ * `""` as absent, which would widen an explicitly empty selection to discovery,
2455
+ * so `seriesIds` travels as an empty list and becomes `seriesIds=` when params
2456
+ * are stringified.
2457
+ */
2458
+ function eventScopeLoaderParam(query, key) {
2459
+ return key === "seriesIds" && query.seriesIds === "" ? [] : query[key];
2460
+ }
2461
+ //#endregion
2462
+ //#region ../blocks/src/system/blocks/events/eventCalendarDataLoaders.ts
2463
+ const eventWeekReadScope = {
2464
+ eventSurface: "custom",
2465
+ eventPresets: "class",
2466
+ scheduleScope: "any"
2467
+ };
2468
+ /** The section's event scope comes from resolveEventScope, the same owner readiness uses. */
2469
+ const eventScopeLoaderParams = Object.fromEntries(eventScopeQueryKeys.map((key) => [key, { $bind: {
2470
+ from: "content",
2471
+ transforms: [{
2472
+ id: "events.scopeParam",
2473
+ options: { key }
2474
+ }]
2475
+ } }]));
2476
+ const scopeParams = {
2477
+ siteId: { $bind: { from: "$root.siteId" } },
2478
+ stage: { $bind: {
2479
+ from: "$root.previewStage",
2480
+ fallback: "published"
2481
+ } },
2482
+ ...eventScopeLoaderParams
2483
+ };
2484
+ /** Combined renders two jobs; calendar-only variants never pay for the list seed. */
2485
+ const eventCalendarDataLoaders = {
2486
+ schedule: {
2487
+ endpoint: "listPublicRecurringSchedule",
2488
+ when: { $bind: {
2489
+ from: "content",
2490
+ transforms: [{
2491
+ id: "events.calendarReadEnabled",
2492
+ options: { job: "schedule" }
2493
+ }]
2494
+ } },
2495
+ params: {
2496
+ siteId: scopeParams.siteId,
2497
+ stage: scopeParams.stage,
2498
+ limit: "100",
2499
+ detailLevel: "listing",
2500
+ readProfile: "compact-list",
2501
+ ...eventWeekReadScope
2502
+ },
2503
+ mode: "server"
2504
+ },
2505
+ events: {
2506
+ endpoint: "listPublicEvents",
2507
+ when: { $bind: {
2508
+ from: "content",
2509
+ transforms: [{
2510
+ id: "events.calendarReadEnabled",
2511
+ options: { job: "list" }
2512
+ }]
2513
+ } },
2514
+ params: {
2515
+ ...scopeParams,
2516
+ limit: 100,
2517
+ detailLevel: "listing",
2518
+ readProfile: "listing-card",
2519
+ from: { $bind: {
2520
+ from: "$root",
2521
+ transforms: [{
2522
+ id: "events.calendarListWindow",
2523
+ options: { key: "from" }
2524
+ }]
2525
+ } },
2526
+ to: { $bind: {
2527
+ from: "$root",
2528
+ transforms: [{
2529
+ id: "events.calendarListWindow",
2530
+ options: { key: "to" }
2531
+ }]
2532
+ } }
2533
+ },
2534
+ mode: "server"
2535
+ },
2536
+ calendarWindow: {
2537
+ endpoint: "listPublicEventCalendarWindow",
2538
+ when: { $bind: {
2539
+ from: "content",
2540
+ transforms: [{
2541
+ id: "events.calendarReadEnabled",
2542
+ options: { job: "calendar" }
2543
+ }]
2544
+ } },
2545
+ params: {
2546
+ ...scopeParams,
2547
+ limit: 100,
2548
+ readProfile: { $bind: {
2549
+ from: "content",
2550
+ transforms: [{ id: "events.calendarReadProfile" }]
2551
+ } }
2552
+ },
2553
+ mode: "server"
2554
+ }
2555
+ };
2556
+ //#endregion
2557
+ //#region ../blocks/src/system/blocks/events/eventReadiness.ts
2558
+ const eventReadinessResultSchema = z.union([z.array(z.unknown()), recurringScheduleProjectionSchema]).transform((result) => Array.isArray(result) ? result.length > 0 : result.items.length > 0);
2559
+ const eventReadinessQueryKeys = ["limit", ...eventScopeQueryKeys];
2560
+ function eventReadinessLoaderKey(content) {
2561
+ return resolveEventCalendarReadPlan(content).mode === "week" ? "schedule" : "readinessEvents";
2562
+ }
2563
+ /**
2564
+ * Week uses its existing projected schedule; other modes ignore displayed date
2565
+ * windows but share the render loaders' event scope (see resolveEventScope).
2566
+ */
2567
+ function eventReadinessQuery(content) {
2568
+ if (eventReadinessLoaderKey(content) === "schedule") return {
2569
+ ...eventWeekReadScope,
2570
+ limit: "100"
2571
+ };
2572
+ return {
2573
+ limit: "1",
2574
+ ...eventScopeQuery(resolveEventScope(content))
2575
+ };
2576
+ }
2577
+ /** A one-row existence read shares the public event selection and stage contracts. */
2578
+ const eventReadinessLoader = {
2579
+ endpoint: "listPublicEvents",
2580
+ mode: "server",
2581
+ when: { $bind: {
2582
+ from: "content",
2583
+ transforms: [{ id: "events.readinessEnabled" }]
2584
+ } },
2585
+ params: {
2586
+ siteId: { $bind: { from: "$root.siteId" } },
2587
+ stage: { $bind: {
2588
+ from: "$root.previewStage",
2589
+ fallback: "published"
2590
+ } },
2591
+ detailLevel: "listing",
2592
+ readProfile: "compact-list",
2593
+ ...Object.fromEntries(eventReadinessQueryKeys.map((key) => [key, { $bind: {
2594
+ from: "content",
2595
+ transforms: [{
2596
+ id: "events.readinessParam",
2597
+ options: { key }
2598
+ }]
2599
+ } }]))
2600
+ }
2601
+ };
2602
+ /** Normalizing an existing block must never apply the new-block Hide default. */
2603
+ function normalizeEventEmptyBehavior(content) {
2604
+ return {
2605
+ ...content,
2606
+ emptyBehavior: content.emptyBehavior === "hide" ? "hide" : "message"
2607
+ };
2608
+ }
2392
2609
  //#endregion
2393
2610
  //#region ../blocks/src/system/manifest/augmentManifest.ts
2394
2611
  /**
@@ -2570,6 +2787,8 @@ z.object({
2570
2787
  description: z.string().optional(),
2571
2788
  component: z.string().min(1),
2572
2789
  fields: fieldSchema.array().default([]),
2790
+ /** Visible content paths: omit an entry-bound block only when all are empty. */
2791
+ contentPresence: z.array(z.string().min(1)).min(1).optional(),
2573
2792
  slots: slotSchema.array().default([]),
2574
2793
  styleTokens: styleTokenSchema.optional(),
2575
2794
  behaviours: behaviourSchema.optional(),
@@ -2803,258 +3022,285 @@ function resolveBlockIconRenderValue(value, generatedAssets = /* @__PURE__ */ ne
2803
3022
  }
2804
3023
  }
2805
3024
  //#endregion
2806
- //#region ../blocks/src/system/fragments/types.ts
2807
- const FRAGMENT_ID_PATTERN = /^[a-z0-9](?:[a-z0-9._-]*[a-z0-9])?$/i;
2808
- const FIELD_ID_PATTERN = /^[a-z][a-zA-Z0-9_-]*$/;
2809
- const dataLoaderSchema = z.object({
2810
- endpoint: z.string().min(1, "Fragment data loader requires an endpoint"),
2811
- params: z.record(z.string(), z.unknown()).default({}),
2812
- requiredParams: z.array(z.string().min(1)).optional(),
2813
- mode: z.enum(["server", "client"]).default("server")
2814
- });
2815
- const fragmentDataSchema = z.object({
2816
- key: z.string().min(1, "Fragment data key is required"),
2817
- loader: dataLoaderSchema.optional()
2818
- });
2819
- const fragmentConfigSchema = z.object({
2820
- id: z.string().min(1, "Fragment id is required").regex(FRAGMENT_ID_PATTERN, "Fragment id must be alphanumeric with optional . _ - separators"),
2821
- title: z.string().optional(),
2822
- description: z.string().optional(),
2823
- category: z.enum([
2824
- "content",
2825
- "media",
2826
- "interactive",
2827
- "layout"
2828
- ]).optional(),
2829
- icon: z.string().optional(),
2830
- fields: fieldSchema.array().default([]),
2831
- layout: z.union([NodeSchema, z.array(NodeSchema)]).transform((value) => Array.isArray(value) ? value : [value]),
2832
- data: fragmentDataSchema.optional()
2833
- });
2834
- var FragmentConfigError = class extends Error {
2835
- constructor(message) {
2836
- super(message);
2837
- this.name = "FragmentConfigError";
3025
+ //#region ../blocks/src/system/fields/cardList.ts
3026
+ /** Knob content is stored normally, edited only through facets and their history. */
3027
+ const cardListKnobFields = [{
3028
+ id: "actionStyle",
3029
+ type: "select",
3030
+ label: "Item actions",
3031
+ required: false,
3032
+ multiple: false,
3033
+ options: [{
3034
+ value: "button",
3035
+ label: "Button"
3036
+ }, {
3037
+ value: "link",
3038
+ label: "Link"
3039
+ }],
3040
+ ui: {
3041
+ intent: "display",
3042
+ hidden: true
2838
3043
  }
2839
- };
2840
- function defineFragment(config) {
2841
- const parsed = fragmentConfigSchema.parse(config);
2842
- const fields = parseFieldDefinitions(parsed.fields);
2843
- validateFieldDefinitions(fields, parsed.id);
2844
- return {
2845
- ...parsed,
2846
- fields: fields.map((field) => cloneFieldDefinition(field)),
2847
- layout: parsed.layout.map((node) => ({ ...node }))
2848
- };
2849
- }
2850
- function scopeFragmentFields(fragment, scope) {
2851
- const normalizedScope = scope.trim();
2852
- if (!normalizedScope) return fragment.fields.map((field) => cloneFieldDefinition(field));
2853
- return fragment.fields.map((field) => prefixFieldId(field, normalizedScope));
2854
- }
2855
- function scopeFragmentLayout(fragment, scope) {
2856
- const normalizedScope = scope.trim();
2857
- return fragment.layout.map((node) => cloneAndScopeNode(node, normalizedScope));
2858
- }
2859
- function validateFieldDefinitions(fields, fragmentId) {
2860
- const seen = /* @__PURE__ */ new Set();
2861
- for (const field of fields) {
2862
- if (field.id.includes(".")) throw new FragmentConfigError(`Field "${field.id}" in fragment "${fragmentId}" should not include dot notation; the builder scopes fields automatically.`);
2863
- if (!FIELD_ID_PATTERN.test(field.id)) throw new FragmentConfigError(`Field "${field.id}" in fragment "${fragmentId}" must start with a letter and contain only alphanumeric, "_", or "-".`);
2864
- if (seen.has(field.id)) throw new FragmentConfigError(`Duplicate field id "${field.id}" found in fragment "${fragmentId}". Field ids must be unique per fragment.`);
2865
- seen.add(field.id);
3044
+ }, {
3045
+ id: "dates",
3046
+ type: "select",
3047
+ label: "Dates",
3048
+ required: false,
3049
+ multiple: false,
3050
+ options: [{
3051
+ value: "summary",
3052
+ label: "Summary"
3053
+ }, {
3054
+ value: "next-dates",
3055
+ label: "Next dates"
3056
+ }],
3057
+ ui: {
3058
+ intent: "display",
3059
+ hidden: true
2866
3060
  }
2867
- }
2868
- function prefixFieldId(field, scope) {
2869
- const cloned = cloneFieldDefinition(field);
2870
- cloned.id = `${scope}.${field.id}`;
2871
- const defaultValue = cloned.defaultValue;
2872
- cloned.defaultValue = cloneUnknown(defaultValue);
2873
- cloned.visibleRoles = cloned.visibleRoles ? [...cloned.visibleRoles] : void 0;
2874
- cloned.ui = cloneUnknown(cloned.ui);
2875
- return cloned;
2876
- }
2877
- function cloneFieldDefinition(field) {
2878
- if (field.type === "repeater") {
2879
- if (field.polymorphic && field.itemTypes) return {
2880
- ...field,
2881
- polymorphic: true,
2882
- itemTypes: Object.fromEntries(Object.entries(field.itemTypes).map(([key, itemType]) => [key, {
2883
- ...itemType,
2884
- fields: itemType.fields.map(cloneFieldDefinition)
2885
- }]))
2886
- };
2887
- if (field.schema) return {
2888
- ...field,
2889
- schema: { fields: field.schema.fields.map(cloneFieldDefinition) }
2890
- };
2891
- return { ...field };
3061
+ }];
3062
+ const cardListPhotoNumberFields = [{
3063
+ id: "showPhotos",
3064
+ type: "boolean",
3065
+ label: "Show photos",
3066
+ required: false,
3067
+ defaultValue: true,
3068
+ ui: {
3069
+ intent: "display",
3070
+ hidden: true
2892
3071
  }
2893
- if (field.type === "group") return {
2894
- ...field,
2895
- schema: { fields: field.schema.fields.map(cloneFieldDefinition) }
2896
- };
2897
- return { ...field };
3072
+ }, {
3073
+ id: "cardMarker",
3074
+ type: "select",
3075
+ label: "Item markers",
3076
+ required: false,
3077
+ multiple: false,
3078
+ options: [{
3079
+ value: "numbers",
3080
+ label: "Numbers"
3081
+ }, {
3082
+ value: "none",
3083
+ label: "None"
3084
+ }],
3085
+ ui: {
3086
+ intent: "display",
3087
+ hidden: true
3088
+ }
3089
+ }];
3090
+ const cardListSectionActionFields = [{
3091
+ id: "sectionActionLabel",
3092
+ type: "text",
3093
+ label: "Section link text",
3094
+ required: false,
3095
+ multiline: false,
3096
+ maxLength: 80
3097
+ }, {
3098
+ id: "sectionActionLink",
3099
+ type: "link",
3100
+ label: "Section link destination",
3101
+ required: false
3102
+ }];
3103
+ /** React list nodes receive only compiler-resolved choices, so dormant preferences stay inert. */
3104
+ const cardListPresentationBindings = {
3105
+ cardArrangement: { $bind: { from: "content._effectiveLook.look.structure.byMode.default" } },
3106
+ lookSlots: { $bind: { from: "content._lookSlots" } },
3107
+ datesMode: { $bind: { from: "content._effectiveKnobs.dates.value" } },
3108
+ itemActionStyle: { $bind: { from: "content._effectiveKnobs.actionStyle.value" } },
3109
+ showPhotos: { $bind: { from: "content.showPhotos" } },
3110
+ cardMarker: { $bind: { from: "content.cardMarker" } },
3111
+ itemRoles: { $bind: { from: "content._effectiveLook.itemRoles" } },
3112
+ surfacePresentation: { $bind: { from: "content._effectiveLook.surfacePresentation" } }
3113
+ };
3114
+ const cardListContentSchema = z.object({
3115
+ dates: z.enum(["summary", "next-dates"]).nullish().catch(void 0),
3116
+ actionStyle: z.enum(["button", "link"]).nullish().catch(void 0),
3117
+ showPhotos: z.boolean().nullish().catch(void 0),
3118
+ cardMarker: z.enum(["numbers", "none"]).nullish().catch(void 0),
3119
+ sectionActionLabel: z.string().nullish().catch(void 0),
3120
+ sectionActionLink: linkSchema.nullish().catch(void 0)
3121
+ });
3122
+ function normalizeCardListContent(record) {
3123
+ return cardListContentSchema.parse(record);
2898
3124
  }
2899
- function cloneUnknown(value) {
2900
- if (value == null || typeof value !== "object") return value;
2901
- if (Array.isArray(value)) return value.map((entry) => cloneUnknown(entry));
2902
- return { ...value };
3125
+ //#endregion
3126
+ //#region ../blocks/src/utils/env.ts
3127
+ /**
3128
+ * Environment detection utilities
3129
+ *
3130
+ * Provides type-safe environment detection without relying on `any`-typed globals.
3131
+ */
3132
+ /**
3133
+ * Check if the current environment is development.
3134
+ *
3135
+ * Returns true if NODE_ENV is not 'production', or if NODE_ENV cannot be determined
3136
+ * (which is the safe default for validation and warnings).
3137
+ *
3138
+ * @returns true if in development mode, false if in production
3139
+ */
3140
+ function isDevEnvironment() {
3141
+ try {
3142
+ if (typeof process !== "undefined" && true) return true;
3143
+ return true;
3144
+ } catch {
3145
+ return true;
3146
+ }
2903
3147
  }
2904
- function cloneAndScopeNode(node, scope) {
2905
- const cloned = { ...node };
2906
- if (node.children) cloned.children = node.children.map((child) => cloneAndScopeNode(child, scope));
2907
- if (node.props) cloned.props = scopePropBindings(node.props, scope);
2908
- if (node.$bind) cloned.$bind = scopeBinding(node.$bind, scope);
2909
- if (node.$repeat) cloned.$repeat = scopeRepeat(node.$repeat, scope);
2910
- if (node.$when) cloned.$when = scopeCondition(node.$when, scope);
2911
- if (node.$scopes) cloned.$scopes = node.$scopes.map((entry) => ({
2912
- name: entry.name,
2913
- from: scopeBinding(entry.from, scope)
2914
- }));
2915
- return cloned;
3148
+ //#endregion
3149
+ //#region ../blocks/src/system/node/types.ts
3150
+ /**
3151
+ * List of reserved keys (for runtime validation).
3152
+ * Kept in sync with the ReservedNodeKeys type above.
3153
+ */
3154
+ const RESERVED_KEYS = [
3155
+ "children",
3156
+ "key",
3157
+ "$bind",
3158
+ "$when",
3159
+ "$repeat",
3160
+ "$scopes"
3161
+ ];
3162
+ /**
3163
+ * Type guard to check if props contain reserved keys at runtime.
3164
+ * Use this in development mode to catch bugs early.
3165
+ *
3166
+ * @param props - Props object to validate
3167
+ * @returns Array of reserved keys found in props, or empty array if none
3168
+ */
3169
+ function findReservedKeysInProps(props) {
3170
+ if (!props) return [];
3171
+ return RESERVED_KEYS.filter((key) => key in props);
2916
3172
  }
2917
- function scopeBinding(binding, scope) {
2918
- const cloned = {
2919
- ...binding,
2920
- transforms: binding.transforms?.map((step) => ({ ...step })) ?? []
2921
- };
2922
- cloned.from = scopeContentPath(binding.from, scope);
2923
- return cloned;
3173
+ /**
3174
+ * Validates that props don't contain reserved keys.
3175
+ * Throws in development, warns in production.
3176
+ *
3177
+ * @param props - Props to validate
3178
+ * @param context - Context for error message (e.g., "el('grid', ...)")
3179
+ */
3180
+ function validateProps(props, context = "node builder") {
3181
+ const reserved = findReservedKeysInProps(props);
3182
+ if (reserved.length === 0) return;
3183
+ const message = `[blocks:${context}] Reserved keys found in props: ${reserved.join(", ")}. These should be passed as separate parameters or modifiers, not in props. For example, 'children' should be the 3rd parameter to el(), not in the props object.`;
3184
+ if (isDevEnvironment()) throw new TypeError(message);
3185
+ else console.error(message);
2924
3186
  }
2925
- function scopeRepeat(repeat, scope) {
2926
- const cloned = {
2927
- ...repeat,
2928
- collection: scopeBinding(repeat.collection, scope)
2929
- };
2930
- if (repeat.sortBy) cloned.sortBy = {
2931
- ...repeat.sortBy,
2932
- path: scopeContentPath(repeat.sortBy.path, scope)
2933
- };
2934
- return cloned;
3187
+ //#endregion
3188
+ //#region ../blocks/src/system/node/builder.ts
3189
+ function normalizeChildren(children) {
3190
+ if (!children) return void 0;
3191
+ const flat = children.flat().filter(Boolean);
3192
+ return flat.length > 0 ? flat : void 0;
2935
3193
  }
2936
- function scopeCondition(condition, scope) {
2937
- return {
2938
- ...condition,
2939
- when: scopeBinding(condition.when, scope)
3194
+ function el(type, props, children, ...mods) {
3195
+ validateProps(props, `el('${type}', ...)`);
3196
+ const node = {
3197
+ type,
3198
+ ...props && Object.keys(props).length > 0 ? { props } : {},
3199
+ ...children && children.length ? { children: normalizeChildren(children) } : {}
2940
3200
  };
3201
+ if (mods && mods.length > 0) {
3202
+ const validMods = mods.filter((mod) => typeof mod === "function");
3203
+ if (validMods.length > 0) return devValidate(validMods.reduce((acc, fn) => fn(acc), node));
3204
+ }
3205
+ return devValidate(node);
2941
3206
  }
2942
- function scopePropBindings(input, scope) {
2943
- const result = {};
2944
- for (const [key, value] of Object.entries(input)) result[key] = scopePropValue(value, scope);
2945
- return result;
2946
- }
2947
- function scopePropValue(value, scope) {
2948
- if (Array.isArray(value)) return value.map((entry) => scopePropValue(entry, scope));
2949
- if (value && typeof value === "object") {
2950
- if ("$bind" in value) {
2951
- const bindingConfig = value.$bind;
2952
- return { $bind: scopeBinding(bindingConfig, scope) };
3207
+ const section = (props, children, ...mods) => el("section", props, children, ...mods);
3208
+ const headerSection = (props, children, ...mods) => el("headerSection", props, children, ...mods);
3209
+ const stack = (props, children, ...mods) => el("stack", props, children, ...mods);
3210
+ const inline = (props, children, ...mods) => el("inline", props, children, ...mods);
3211
+ const accordion = (props, children, ...mods) => el("accordion", props, children, ...mods);
3212
+ const accordionItem = (props, children, ...mods) => el("accordionItem", props, children, ...mods);
3213
+ const carousel = (props, children, ...mods) => el("carousel", {
3214
+ mode: "legacy",
3215
+ ...props
3216
+ }, children, ...mods);
3217
+ const text = (props, ...mods) => el("text", props, void 0, ...mods);
3218
+ const richText = (props, ...mods) => el("richText", props, void 0, ...mods);
3219
+ const icon = (props, ...mods) => el("icon", props, void 0, ...mods);
3220
+ const media = (props, ...mods) => el("media", props, void 0, ...mods);
3221
+ const fileDownload = (props, ...mods) => el("file-download", props, void 0, ...mods);
3222
+ const videoEmbed = (props, ...mods) => el("videoEmbed", props, void 0, ...mods);
3223
+ const button = (props, children, ...mods) => el("button", props, children, ...mods);
3224
+ const link = (props, children, ...mods) => el("link", props, children, ...mods);
3225
+ const form = (props, children, ...mods) => el("form", props, children, ...mods);
3226
+ const bookingForm = (props, children, ...mods) => el("booking-form", props, children, ...mods);
3227
+ const eventRegistration = (props, children, ...mods) => el("event-registration", props, children, ...mods);
3228
+ const shop = (props, children, ...mods) => el("shop", props, children, ...mods);
3229
+ const productList = (props, children, ...mods) => el("product-list", props, children, ...mods);
3230
+ const productDetail = (props, children, ...mods) => el("product-detail", props, children, ...mods);
3231
+ const cart = (props, children, ...mods) => el("cart", props, children, ...mods);
3232
+ const checkout = (props, children, ...mods) => el("checkout", props, children, ...mods);
3233
+ const gifting = (props, children, ...mods) => el("gifting", props, children, ...mods);
3234
+ function bind(from, options) {
3235
+ return (node) => ({
3236
+ ...node,
3237
+ $bind: {
3238
+ from,
3239
+ ...options?.fallback !== void 0 ? { fallback: options.fallback } : {},
3240
+ ...options?.transforms ? { transforms: options.transforms } : {},
3241
+ ...options?.pick ? { pick: options.pick } : {},
3242
+ ...options?.coerce ? { coerce: options.coerce } : {}
2953
3243
  }
2954
- const result = {};
2955
- for (const [key, entry] of Object.entries(value)) result[key] = scopePropValue(entry, scope);
2956
- return result;
2957
- }
2958
- return value;
3244
+ });
2959
3245
  }
2960
- function scopeContentPath(path, scope) {
2961
- if (!scope || scope.length === 0) return path;
2962
- if (path === "content") return `content.${scope}`;
2963
- if (path.startsWith("content.")) {
2964
- const remainder = path.slice(8);
2965
- return remainder.length > 0 ? `content.${scope}.${remainder}` : `content.${scope}`;
2966
- }
2967
- if (path.startsWith("content[")) return path.replace(/^content/, `content.${scope}`);
2968
- if (path.startsWith("$root.")) return path;
2969
- if (path.includes(".")) return path;
2970
- return `content.${scope}.${path}`;
2971
- }
2972
- //#endregion
2973
- //#region ../blocks/src/system/fragments/builder.ts
2974
- var FragmentCompositionError = class extends Error {
2975
- constructor(message) {
2976
- super(message);
2977
- this.name = "FragmentCompositionError";
2978
- }
2979
- };
2980
- const DOT_SCOPE_REGEX = /^[A-Za-z0-9_.-]*$/;
2981
- function materializeFragment(config) {
2982
- const scope = normalizeScope(config.scope);
2983
- const fields = scopeFragmentFields(config.fragment, scope);
2984
- const layout = scopeFragmentLayout(config.fragment, scope);
2985
- const fieldPriority = config.fieldPriority ?? 0;
2986
- let data;
2987
- if (config.fragment.data) {
2988
- const key = config.dataKey ?? config.fragment.data.key;
2989
- if (!key || typeof key !== "string") throw new FragmentCompositionError(`Fragment "${config.fragment.id}" requires a data key to compose.`);
2990
- data = {
2991
- key,
2992
- loader: config.fragment.data.loader ? { ...config.fragment.data.loader } : void 0
2993
- };
2994
- }
2995
- return {
2996
- fragment: config.fragment,
2997
- scope,
2998
- fields,
2999
- layout,
3000
- data,
3001
- fieldPriority
3002
- };
3246
+ function when(path, options) {
3247
+ return (node) => ({
3248
+ ...node,
3249
+ $when: {
3250
+ when: { from: path },
3251
+ ...options?.equals !== void 0 ? { equals: options.equals } : {},
3252
+ ...options?.not ? { not: true } : {},
3253
+ ...options?.authoringPresence ? { authoringPresence: options.authoringPresence } : {}
3254
+ }
3255
+ });
3003
3256
  }
3004
- function composeFragments(instances) {
3005
- const fieldEntries = [];
3006
- const layouts = [];
3007
- const dataEntries = [];
3008
- const scopes = [];
3009
- const seenFieldIds = /* @__PURE__ */ new Set();
3010
- let fieldOrder = 0;
3011
- for (const instance of instances) {
3012
- const materialized = materializeFragment(instance);
3013
- for (const field of materialized.fields) {
3014
- if (seenFieldIds.has(field.id)) throw new FragmentCompositionError(`Duplicate field id "${field.id}" when composing fragments.`);
3015
- seenFieldIds.add(field.id);
3016
- fieldEntries.push({
3017
- id: field.id,
3018
- field,
3019
- priority: materialized.fieldPriority,
3020
- order: fieldOrder++
3021
- });
3257
+ function repeat(collectionPath, itemName = "item", options) {
3258
+ return (node) => ({
3259
+ ...node,
3260
+ $repeat: {
3261
+ collection: {
3262
+ from: collectionPath,
3263
+ pick: "collection"
3264
+ },
3265
+ itemName,
3266
+ ...options?.indexName ? { indexName: options.indexName } : {},
3267
+ ...options?.limit ? { limit: options.limit } : {},
3268
+ ...options?.sortBy ? { sortBy: {
3269
+ path: options.sortBy.path,
3270
+ direction: options.sortBy.direction ?? "asc"
3271
+ } } : {}
3022
3272
  }
3023
- scopes.push(materialized.scope);
3024
- layouts.push(...materialized.layout);
3025
- if (materialized.data) {
3026
- if (dataEntries.find((entry) => entry.key === materialized.data?.key)) throw new FragmentCompositionError(`Duplicate fragment data key "${materialized.data.key}" detected.`);
3027
- dataEntries.push(materialized.data);
3273
+ });
3274
+ }
3275
+ function props(extra) {
3276
+ validateProps(extra, "props() modifier");
3277
+ return (node) => ({
3278
+ ...node,
3279
+ props: {
3280
+ ...node.props ?? {},
3281
+ ...extra
3028
3282
  }
3029
- }
3030
- return {
3031
- fields: fieldEntries.sort((a, b) => {
3032
- if (a.priority !== b.priority) return a.priority - b.priority;
3033
- return a.order - b.order;
3034
- }).map((entry) => entry.field),
3035
- layout: layouts,
3036
- data: dataEntries,
3037
- scopes
3038
- };
3283
+ });
3039
3284
  }
3040
- function normalizeScope(scope) {
3041
- if (!scope) return "";
3042
- const trimmed = scope.trim();
3043
- if (!DOT_SCOPE_REGEX.test(trimmed)) throw new FragmentCompositionError(`Fragment scope "${scope}" contains invalid characters. Use alphanumeric, ".", "-", or "_".`);
3044
- return trimmed;
3285
+ function accordionList({ collection, itemName = "item", indexName, accordionProps = null, itemProps = null, triggerFrom, contentFrom, valueFrom }, ...mods) {
3286
+ const resolvedIndexName = indexName ?? `${itemName}Index`;
3287
+ const resolvedValuePath = valueFrom === null ? null : valueFrom ?? resolvedIndexName;
3288
+ const baseItemProps = {
3289
+ ...itemProps ?? {},
3290
+ trigger: { $bind: { from: triggerFrom } }
3291
+ };
3292
+ if (contentFrom) baseItemProps.content = { $bind: { from: contentFrom } };
3293
+ if (resolvedValuePath) baseItemProps.value = { $bind: { from: resolvedValuePath } };
3294
+ return accordion(accordionProps ?? void 0, [accordionItem(baseItemProps, void 0, repeat(collection, itemName, { indexName: resolvedIndexName }))], ...mods);
3045
3295
  }
3046
- function buildFragmentDataLoaders(composition) {
3047
- const loaders = {};
3048
- for (const entry of composition.data) {
3049
- if (!entry?.loader) continue;
3050
- loaders[entry.key] = {
3051
- endpoint: entry.loader.endpoint,
3052
- params: { ...entry.loader.params ?? {} },
3053
- ...entry.loader.requiredParams ? { requiredParams: [...entry.loader.requiredParams] } : {},
3054
- mode: entry.loader.mode ?? "server"
3055
- };
3056
- }
3057
- return loaders;
3296
+ function devValidate(node) {
3297
+ try {
3298
+ if (isDevEnvironment()) {
3299
+ const res = z.safeParse(NodeSchema, node);
3300
+ if (!res.success) console.warn("[blocks:builder] Invalid node produced by builder", res.error.format());
3301
+ }
3302
+ } catch {}
3303
+ return node;
3058
3304
  }
3059
3305
  //#endregion
3060
3306
  //#region ../blocks/src/system/customize/testimonialCount.ts
@@ -3097,225 +3343,312 @@ const lookCarouselRegionTransform = {
3097
3343
  run: (value, options) => typeof value === "string" && value.trim() ? value.trim() : options?.fallback ?? "Carousel"
3098
3344
  };
3099
3345
  //#endregion
3100
- //#region ../blocks/src/utils/env.ts
3101
- /**
3102
- * Environment detection utilities
3103
- *
3104
- * Provides type-safe environment detection without relying on `any`-typed globals.
3105
- */
3106
- /**
3107
- * Check if the current environment is development.
3108
- *
3109
- * Returns true if NODE_ENV is not 'production', or if NODE_ENV cannot be determined
3110
- * (which is the safe default for validation and warnings).
3111
- *
3112
- * @returns true if in development mode, false if in production
3113
- */
3114
- function isDevEnvironment() {
3115
- try {
3116
- if (typeof process !== "undefined" && true) return true;
3117
- return true;
3118
- } catch {
3119
- return true;
3120
- }
3346
+ //#region ../blocks/src/system/node/fragments/cardListSectionAction.ts
3347
+ function cardListSectionAction(labelPath = "content.sectionActionLabel", linkPath = "content.sectionActionLink") {
3348
+ return link({
3349
+ ...lookSlot("more"),
3350
+ className: "rb-item-text-link",
3351
+ linkRequired: true,
3352
+ href: { $bind: {
3353
+ from: linkPath,
3354
+ transforms: [{ id: "links.resolve" }]
3355
+ } }
3356
+ }, [text({ as: "span" }, bind(labelPath))], when(labelPath));
3121
3357
  }
3122
3358
  //#endregion
3123
- //#region ../blocks/src/system/node/types.ts
3124
- /**
3125
- * List of reserved keys (for runtime validation).
3126
- * Kept in sync with the ReservedNodeKeys type above.
3127
- */
3128
- const RESERVED_KEYS = [
3129
- "children",
3130
- "key",
3131
- "$bind",
3132
- "$when",
3133
- "$repeat",
3134
- "$scopes"
3135
- ];
3136
- /**
3137
- * Type guard to check if props contain reserved keys at runtime.
3138
- * Use this in development mode to catch bugs early.
3139
- *
3140
- * @param props - Props object to validate
3141
- * @returns Array of reserved keys found in props, or empty array if none
3142
- */
3143
- function findReservedKeysInProps(props) {
3144
- if (!props) return [];
3145
- return RESERVED_KEYS.filter((key) => key in props);
3146
- }
3147
- /**
3148
- * Validates that props don't contain reserved keys.
3149
- * Throws in development, warns in production.
3150
- *
3151
- * @param props - Props to validate
3152
- * @param context - Context for error message (e.g., "el('grid', ...)")
3153
- */
3154
- function validateProps(props, context = "node builder") {
3155
- const reserved = findReservedKeysInProps(props);
3156
- if (reserved.length === 0) return;
3157
- const message = `[blocks:${context}] Reserved keys found in props: ${reserved.join(", ")}. These should be passed as separate parameters or modifiers, not in props. For example, 'children' should be the 3rd parameter to el(), not in the props object.`;
3158
- if (isDevEnvironment()) throw new TypeError(message);
3159
- else console.error(message);
3359
+ //#region ../blocks/src/system/fragments/types.ts
3360
+ const FRAGMENT_ID_PATTERN = /^[a-z0-9](?:[a-z0-9._-]*[a-z0-9])?$/i;
3361
+ const FIELD_ID_PATTERN = /^[a-z][a-zA-Z0-9_-]*$/;
3362
+ const dataLoaderSchema = z.object({
3363
+ endpoint: z.string().min(1, "Fragment data loader requires an endpoint"),
3364
+ params: z.record(z.string(), z.unknown()).default({}),
3365
+ requiredParams: z.array(z.string().min(1)).optional(),
3366
+ mode: z.enum(["server", "client"]).default("server")
3367
+ });
3368
+ const fragmentDataSchema = z.object({
3369
+ key: z.string().min(1, "Fragment data key is required"),
3370
+ loader: dataLoaderSchema.optional()
3371
+ });
3372
+ const fragmentConfigSchema = z.object({
3373
+ id: z.string().min(1, "Fragment id is required").regex(FRAGMENT_ID_PATTERN, "Fragment id must be alphanumeric with optional . _ - separators"),
3374
+ title: z.string().optional(),
3375
+ description: z.string().optional(),
3376
+ category: z.enum([
3377
+ "content",
3378
+ "media",
3379
+ "interactive",
3380
+ "layout"
3381
+ ]).optional(),
3382
+ icon: z.string().optional(),
3383
+ fields: fieldSchema.array().default([]),
3384
+ layout: z.union([NodeSchema, z.array(NodeSchema)]).transform((value) => Array.isArray(value) ? value : [value]),
3385
+ data: fragmentDataSchema.optional()
3386
+ });
3387
+ var FragmentConfigError = class extends Error {
3388
+ constructor(message) {
3389
+ super(message);
3390
+ this.name = "FragmentConfigError";
3391
+ }
3392
+ };
3393
+ function defineFragment(config) {
3394
+ const parsed = fragmentConfigSchema.parse(config);
3395
+ const fields = parseFieldDefinitions(parsed.fields);
3396
+ validateFieldDefinitions(fields, parsed.id);
3397
+ return {
3398
+ ...parsed,
3399
+ fields: fields.map((field) => cloneFieldDefinition(field)),
3400
+ layout: parsed.layout.map((node) => ({ ...node }))
3401
+ };
3160
3402
  }
3161
- //#endregion
3162
- //#region ../blocks/src/system/node/builder.ts
3163
- function normalizeChildren(children) {
3164
- if (!children) return void 0;
3165
- const flat = children.flat().filter(Boolean);
3166
- return flat.length > 0 ? flat : void 0;
3403
+ function scopeFragmentFields(fragment, scope) {
3404
+ const normalizedScope = scope.trim();
3405
+ if (!normalizedScope) return fragment.fields.map((field) => cloneFieldDefinition(field));
3406
+ return fragment.fields.map((field) => prefixFieldId(field, normalizedScope));
3167
3407
  }
3168
- function el(type, props, children, ...mods) {
3169
- validateProps(props, `el('${type}', ...)`);
3170
- const node = {
3171
- type,
3172
- ...props && Object.keys(props).length > 0 ? { props } : {},
3173
- ...children && children.length ? { children: normalizeChildren(children) } : {}
3174
- };
3175
- if (mods && mods.length > 0) {
3176
- const validMods = mods.filter((mod) => typeof mod === "function");
3177
- if (validMods.length > 0) return devValidate(validMods.reduce((acc, fn) => fn(acc), node));
3408
+ function scopeFragmentLayout(fragment, scope) {
3409
+ const normalizedScope = scope.trim();
3410
+ return fragment.layout.map((node) => cloneAndScopeNode(node, normalizedScope));
3411
+ }
3412
+ function validateFieldDefinitions(fields, fragmentId) {
3413
+ const seen = /* @__PURE__ */ new Set();
3414
+ for (const field of fields) {
3415
+ if (field.id.includes(".")) throw new FragmentConfigError(`Field "${field.id}" in fragment "${fragmentId}" should not include dot notation; the builder scopes fields automatically.`);
3416
+ if (!FIELD_ID_PATTERN.test(field.id)) throw new FragmentConfigError(`Field "${field.id}" in fragment "${fragmentId}" must start with a letter and contain only alphanumeric, "_", or "-".`);
3417
+ if (seen.has(field.id)) throw new FragmentConfigError(`Duplicate field id "${field.id}" found in fragment "${fragmentId}". Field ids must be unique per fragment.`);
3418
+ seen.add(field.id);
3178
3419
  }
3179
- return devValidate(node);
3180
3420
  }
3181
- const section = (props, children, ...mods) => el("section", props, children, ...mods);
3182
- const headerSection = (props, children, ...mods) => el("headerSection", props, children, ...mods);
3183
- const stack = (props, children, ...mods) => el("stack", props, children, ...mods);
3184
- const inline = (props, children, ...mods) => el("inline", props, children, ...mods);
3185
- const accordion = (props, children, ...mods) => el("accordion", props, children, ...mods);
3186
- const accordionItem = (props, children, ...mods) => el("accordionItem", props, children, ...mods);
3187
- const carousel = (props, children, ...mods) => el("carousel", {
3188
- mode: "legacy",
3189
- ...props
3190
- }, children, ...mods);
3191
- const text = (props, ...mods) => el("text", props, void 0, ...mods);
3192
- const richText = (props, ...mods) => el("richText", props, void 0, ...mods);
3193
- const icon = (props, ...mods) => el("icon", props, void 0, ...mods);
3194
- const media = (props, ...mods) => el("media", props, void 0, ...mods);
3195
- const fileDownload = (props, ...mods) => el("file-download", props, void 0, ...mods);
3196
- const videoEmbed = (props, ...mods) => el("videoEmbed", props, void 0, ...mods);
3197
- const button = (props, children, ...mods) => el("button", props, children, ...mods);
3198
- const link = (props, children, ...mods) => el("link", props, children, ...mods);
3199
- const form = (props, children, ...mods) => el("form", props, children, ...mods);
3200
- const bookingForm = (props, children, ...mods) => el("booking-form", props, children, ...mods);
3201
- const eventRegistration = (props, children, ...mods) => el("event-registration", props, children, ...mods);
3202
- const shop = (props, children, ...mods) => el("shop", props, children, ...mods);
3203
- const productList = (props, children, ...mods) => el("product-list", props, children, ...mods);
3204
- const productDetail = (props, children, ...mods) => el("product-detail", props, children, ...mods);
3205
- const cart = (props, children, ...mods) => el("cart", props, children, ...mods);
3206
- const checkout = (props, children, ...mods) => el("checkout", props, children, ...mods);
3207
- const gifting = (props, children, ...mods) => el("gifting", props, children, ...mods);
3208
- function bind(from, options) {
3209
- return (node) => ({
3210
- ...node,
3211
- $bind: {
3212
- from,
3213
- ...options?.fallback !== void 0 ? { fallback: options.fallback } : {},
3214
- ...options?.transforms ? { transforms: options.transforms } : {},
3215
- ...options?.pick ? { pick: options.pick } : {},
3216
- ...options?.coerce ? { coerce: options.coerce } : {}
3217
- }
3218
- });
3421
+ function prefixFieldId(field, scope) {
3422
+ const cloned = cloneFieldDefinition(field);
3423
+ cloned.id = `${scope}.${field.id}`;
3424
+ const defaultValue = cloned.defaultValue;
3425
+ cloned.defaultValue = cloneUnknown(defaultValue);
3426
+ cloned.visibleRoles = cloned.visibleRoles ? [...cloned.visibleRoles] : void 0;
3427
+ cloned.ui = cloneUnknown(cloned.ui);
3428
+ return cloned;
3219
3429
  }
3220
- function when(path, options) {
3221
- return (node) => ({
3222
- ...node,
3223
- $when: {
3224
- when: { from: path },
3225
- ...options?.equals !== void 0 ? { equals: options.equals } : {},
3226
- ...options?.not ? { not: true } : {},
3227
- ...options?.authoringPresence ? { authoringPresence: options.authoringPresence } : {}
3228
- }
3229
- });
3430
+ function cloneFieldDefinition(field) {
3431
+ if (field.type === "repeater") {
3432
+ if (field.polymorphic && field.itemTypes) return {
3433
+ ...field,
3434
+ polymorphic: true,
3435
+ itemTypes: Object.fromEntries(Object.entries(field.itemTypes).map(([key, itemType]) => [key, {
3436
+ ...itemType,
3437
+ fields: itemType.fields.map(cloneFieldDefinition)
3438
+ }]))
3439
+ };
3440
+ if (field.schema) return {
3441
+ ...field,
3442
+ schema: { fields: field.schema.fields.map(cloneFieldDefinition) }
3443
+ };
3444
+ return { ...field };
3445
+ }
3446
+ if (field.type === "group") return {
3447
+ ...field,
3448
+ schema: { fields: field.schema.fields.map(cloneFieldDefinition) }
3449
+ };
3450
+ return { ...field };
3230
3451
  }
3231
- function repeat(collectionPath, itemName = "item", options) {
3232
- return (node) => ({
3233
- ...node,
3234
- $repeat: {
3235
- collection: {
3236
- from: collectionPath,
3237
- pick: "collection"
3238
- },
3239
- itemName,
3240
- ...options?.indexName ? { indexName: options.indexName } : {},
3241
- ...options?.limit ? { limit: options.limit } : {},
3242
- ...options?.sortBy ? { sortBy: {
3243
- path: options.sortBy.path,
3244
- direction: options.sortBy.direction ?? "asc"
3245
- } } : {}
3246
- }
3247
- });
3452
+ function cloneUnknown(value) {
3453
+ if (value == null || typeof value !== "object") return value;
3454
+ if (Array.isArray(value)) return value.map((entry) => cloneUnknown(entry));
3455
+ return { ...value };
3248
3456
  }
3249
- function props(extra) {
3250
- validateProps(extra, "props() modifier");
3251
- return (node) => ({
3252
- ...node,
3253
- props: {
3254
- ...node.props ?? {},
3255
- ...extra
3256
- }
3257
- });
3457
+ function cloneAndScopeNode(node, scope) {
3458
+ const cloned = { ...node };
3459
+ if (node.children) cloned.children = node.children.map((child) => cloneAndScopeNode(child, scope));
3460
+ if (node.props) cloned.props = scopePropBindings(node.props, scope);
3461
+ if (node.$bind) cloned.$bind = scopeBinding(node.$bind, scope);
3462
+ if (node.$repeat) cloned.$repeat = scopeRepeat(node.$repeat, scope);
3463
+ if (node.$when) cloned.$when = scopeCondition(node.$when, scope);
3464
+ if (node.$scopes) cloned.$scopes = node.$scopes.map((entry) => ({
3465
+ name: entry.name,
3466
+ from: scopeBinding(entry.from, scope)
3467
+ }));
3468
+ return cloned;
3258
3469
  }
3259
- function accordionList({ collection, itemName = "item", indexName, accordionProps = null, itemProps = null, triggerFrom, contentFrom, valueFrom }, ...mods) {
3260
- const resolvedIndexName = indexName ?? `${itemName}Index`;
3261
- const resolvedValuePath = valueFrom === null ? null : valueFrom ?? resolvedIndexName;
3262
- const baseItemProps = {
3263
- ...itemProps ?? {},
3264
- trigger: { $bind: { from: triggerFrom } }
3470
+ function scopeBinding(binding, scope) {
3471
+ const cloned = {
3472
+ ...binding,
3473
+ transforms: binding.transforms?.map((step) => ({ ...step })) ?? []
3265
3474
  };
3266
- if (contentFrom) baseItemProps.content = { $bind: { from: contentFrom } };
3267
- if (resolvedValuePath) baseItemProps.value = { $bind: { from: resolvedValuePath } };
3268
- return accordion(accordionProps ?? void 0, [accordionItem(baseItemProps, void 0, repeat(collection, itemName, { indexName: resolvedIndexName }))], ...mods);
3475
+ cloned.from = scopeContentPath(binding.from, scope);
3476
+ return cloned;
3269
3477
  }
3270
- function devValidate(node) {
3271
- try {
3272
- if (isDevEnvironment()) {
3273
- const res = z.safeParse(NodeSchema, node);
3274
- if (!res.success) console.warn("[blocks:builder] Invalid node produced by builder", res.error.format());
3478
+ function scopeRepeat(repeat, scope) {
3479
+ const cloned = {
3480
+ ...repeat,
3481
+ collection: scopeBinding(repeat.collection, scope)
3482
+ };
3483
+ if (repeat.sortBy) cloned.sortBy = {
3484
+ ...repeat.sortBy,
3485
+ path: scopeContentPath(repeat.sortBy.path, scope)
3486
+ };
3487
+ return cloned;
3488
+ }
3489
+ function scopeCondition(condition, scope) {
3490
+ return {
3491
+ ...condition,
3492
+ when: scopeBinding(condition.when, scope)
3493
+ };
3494
+ }
3495
+ function scopePropBindings(input, scope) {
3496
+ const result = {};
3497
+ for (const [key, value] of Object.entries(input)) result[key] = scopePropValue(value, scope);
3498
+ return result;
3499
+ }
3500
+ function scopePropValue(value, scope) {
3501
+ if (Array.isArray(value)) return value.map((entry) => scopePropValue(entry, scope));
3502
+ if (value && typeof value === "object") {
3503
+ if ("$bind" in value) {
3504
+ const bindingConfig = value.$bind;
3505
+ return { $bind: scopeBinding(bindingConfig, scope) };
3275
3506
  }
3276
- } catch {}
3277
- return node;
3507
+ const result = {};
3508
+ for (const [key, entry] of Object.entries(value)) result[key] = scopePropValue(entry, scope);
3509
+ return result;
3510
+ }
3511
+ return value;
3512
+ }
3513
+ function scopeContentPath(path, scope) {
3514
+ if (!scope || scope.length === 0) return path;
3515
+ if (path === "content") return `content.${scope}`;
3516
+ if (path.startsWith("content.")) {
3517
+ const remainder = path.slice(8);
3518
+ return remainder.length > 0 ? `content.${scope}.${remainder}` : `content.${scope}`;
3519
+ }
3520
+ if (path.startsWith("content[")) return path.replace(/^content/, `content.${scope}`);
3521
+ if (path.startsWith("$root.")) return path;
3522
+ if (path.includes(".")) return path;
3523
+ return `content.${scope}.${path}`;
3278
3524
  }
3279
3525
  //#endregion
3280
- //#region ../blocks/src/system/node/fragments/backgroundLayer.ts
3281
- const BACKGROUND_FRAME_BASE_CLASS = "rb-background-frame rb-absolute rb-inset-0 rb-z-neg-10 rb-h-full rb-w-full rb-isolate rb-pointer-events-none";
3282
- /**
3283
- * Creates background layer nodes for rendering backgrounds from field data.
3284
- *
3285
- * This helper generates three nodes:
3286
- * 1. A style layer (div) that renders solid colors and gradients
3287
- * 2. A media layer that conditionally renders background images/videos
3288
- * 3. An overlay layer (div) that renders color/gradient overlays on images
3289
- *
3290
- * The layers are designed to be placed behind content (z-index -10) and work
3291
- * with data from `sectionStylesField`, `containerStylesField`, or `cardStylesField`.
3292
- *
3293
- * Layer stacking order (all use -z-10, stacking determined by DOM order):
3294
- * - Content (default z-index, rendered last)
3295
- * - Overlay layer (rendered third, above image due to DOM order)
3296
- * - Image layer (rendered second)
3297
- * - Style layer (rendered first, at bottom)
3298
- *
3299
- * @param path - The data path to the background field (e.g., '_sectionStyles.background')
3300
- * @param options - Optional customization for layer appearance
3301
- * @returns Array of NodeDefinition objects in paint order: style, optional image, overlay
3302
- *
3303
- * @example
3304
- * // Basic usage in a block
3305
- * const heroBackgroundNodes = backgroundLayer('_sectionStyles.background')
3306
- *
3307
- * @example
3308
- * // Custom styling
3309
- * const customBackgroundNodes = backgroundLayer('_sectionStyles.background', {
3310
- * imageClassName: 'rb-absolute rb-inset-0 rb-z-neg-10 rb-h-full rb-w-full rb-object-cover rb-opacity-30'
3311
- * })
3312
- *
3313
- * @example
3314
- * // In a block layout
3315
- * const layout = section(
3316
- * { background: 'background' },
3317
- * [
3318
- * ...backgroundLayer('_sectionStyles.background'),
3526
+ //#region ../blocks/src/system/fragments/builder.ts
3527
+ var FragmentCompositionError = class extends Error {
3528
+ constructor(message) {
3529
+ super(message);
3530
+ this.name = "FragmentCompositionError";
3531
+ }
3532
+ };
3533
+ const DOT_SCOPE_REGEX = /^[A-Za-z0-9_.-]*$/;
3534
+ function materializeFragment(config) {
3535
+ const scope = normalizeScope(config.scope);
3536
+ const fields = scopeFragmentFields(config.fragment, scope);
3537
+ const layout = scopeFragmentLayout(config.fragment, scope);
3538
+ const fieldPriority = config.fieldPriority ?? 0;
3539
+ let data;
3540
+ if (config.fragment.data) {
3541
+ const key = config.dataKey ?? config.fragment.data.key;
3542
+ if (!key || typeof key !== "string") throw new FragmentCompositionError(`Fragment "${config.fragment.id}" requires a data key to compose.`);
3543
+ data = {
3544
+ key,
3545
+ loader: config.fragment.data.loader ? { ...config.fragment.data.loader } : void 0
3546
+ };
3547
+ }
3548
+ return {
3549
+ fragment: config.fragment,
3550
+ scope,
3551
+ fields,
3552
+ layout,
3553
+ data,
3554
+ fieldPriority
3555
+ };
3556
+ }
3557
+ function composeFragments(instances) {
3558
+ const fieldEntries = [];
3559
+ const layouts = [];
3560
+ const dataEntries = [];
3561
+ const scopes = [];
3562
+ const seenFieldIds = /* @__PURE__ */ new Set();
3563
+ let fieldOrder = 0;
3564
+ for (const instance of instances) {
3565
+ const materialized = materializeFragment(instance);
3566
+ for (const field of materialized.fields) {
3567
+ if (seenFieldIds.has(field.id)) throw new FragmentCompositionError(`Duplicate field id "${field.id}" when composing fragments.`);
3568
+ seenFieldIds.add(field.id);
3569
+ fieldEntries.push({
3570
+ id: field.id,
3571
+ field,
3572
+ priority: materialized.fieldPriority,
3573
+ order: fieldOrder++
3574
+ });
3575
+ }
3576
+ scopes.push(materialized.scope);
3577
+ layouts.push(...materialized.layout);
3578
+ if (materialized.data) {
3579
+ if (dataEntries.find((entry) => entry.key === materialized.data?.key)) throw new FragmentCompositionError(`Duplicate fragment data key "${materialized.data.key}" detected.`);
3580
+ dataEntries.push(materialized.data);
3581
+ }
3582
+ }
3583
+ return {
3584
+ fields: fieldEntries.sort((a, b) => {
3585
+ if (a.priority !== b.priority) return a.priority - b.priority;
3586
+ return a.order - b.order;
3587
+ }).map((entry) => entry.field),
3588
+ layout: layouts,
3589
+ data: dataEntries,
3590
+ scopes
3591
+ };
3592
+ }
3593
+ function normalizeScope(scope) {
3594
+ if (!scope) return "";
3595
+ const trimmed = scope.trim();
3596
+ if (!DOT_SCOPE_REGEX.test(trimmed)) throw new FragmentCompositionError(`Fragment scope "${scope}" contains invalid characters. Use alphanumeric, ".", "-", or "_".`);
3597
+ return trimmed;
3598
+ }
3599
+ function buildFragmentDataLoaders(composition) {
3600
+ const loaders = {};
3601
+ for (const entry of composition.data) {
3602
+ if (!entry?.loader) continue;
3603
+ loaders[entry.key] = {
3604
+ endpoint: entry.loader.endpoint,
3605
+ params: { ...entry.loader.params ?? {} },
3606
+ ...entry.loader.requiredParams ? { requiredParams: [...entry.loader.requiredParams] } : {},
3607
+ mode: entry.loader.mode ?? "server"
3608
+ };
3609
+ }
3610
+ return loaders;
3611
+ }
3612
+ //#endregion
3613
+ //#region ../blocks/src/system/node/fragments/backgroundLayer.ts
3614
+ const BACKGROUND_FRAME_BASE_CLASS = "rb-background-frame rb-absolute rb-inset-0 rb-z-neg-10 rb-h-full rb-w-full rb-isolate rb-pointer-events-none";
3615
+ /**
3616
+ * Creates background layer nodes for rendering backgrounds from field data.
3617
+ *
3618
+ * This helper generates three nodes:
3619
+ * 1. A style layer (div) that renders solid colors and gradients
3620
+ * 2. A media layer that conditionally renders background images/videos
3621
+ * 3. An overlay layer (div) that renders color/gradient overlays on images
3622
+ *
3623
+ * The layers are designed to be placed behind content (z-index -10) and work
3624
+ * with data from `sectionStylesField`, `containerStylesField`, or `cardStylesField`.
3625
+ *
3626
+ * Layer stacking order (all use -z-10, stacking determined by DOM order):
3627
+ * - Content (default z-index, rendered last)
3628
+ * - Overlay layer (rendered third, above image due to DOM order)
3629
+ * - Image layer (rendered second)
3630
+ * - Style layer (rendered first, at bottom)
3631
+ *
3632
+ * @param path - The data path to the background field (e.g., '_sectionStyles.background')
3633
+ * @param options - Optional customization for layer appearance
3634
+ * @returns Array of NodeDefinition objects in paint order: style, optional image, overlay
3635
+ *
3636
+ * @example
3637
+ * // Basic usage in a block
3638
+ * const heroBackgroundNodes = backgroundLayer('_sectionStyles.background')
3639
+ *
3640
+ * @example
3641
+ * // Custom styling
3642
+ * const customBackgroundNodes = backgroundLayer('_sectionStyles.background', {
3643
+ * imageClassName: 'rb-absolute rb-inset-0 rb-z-neg-10 rb-h-full rb-w-full rb-object-cover rb-opacity-30'
3644
+ * })
3645
+ *
3646
+ * @example
3647
+ * // In a block layout
3648
+ * const layout = section(
3649
+ * { background: 'background' },
3650
+ * [
3651
+ * ...backgroundLayer('_sectionStyles.background'),
3319
3652
  * sectionContainer([])
3320
3653
  * ]
3321
3654
  * )
@@ -3936,6 +4269,7 @@ function createBlockManifest(config) {
3936
4269
  version: config.version ?? "0.1.0",
3937
4270
  title: config.title,
3938
4271
  titleSource: config.titleSource,
4272
+ contentPresence: config.contentPresence,
3939
4273
  description: config.description ?? "",
3940
4274
  component: deriveComponentName(config.id),
3941
4275
  fields,
@@ -4315,120 +4649,6 @@ function markEditableSurfaceForwarding(component) {
4315
4649
  return forwardingComponent;
4316
4650
  }
4317
4651
  //#endregion
4318
- //#region ../blocks/src/system/fields/cardList.ts
4319
- /** Knob content is stored normally, edited only through facets and their history. */
4320
- const cardListKnobFields = [{
4321
- id: "actionStyle",
4322
- type: "select",
4323
- label: "Item actions",
4324
- required: false,
4325
- multiple: false,
4326
- options: [{
4327
- value: "button",
4328
- label: "Button"
4329
- }, {
4330
- value: "link",
4331
- label: "Link"
4332
- }],
4333
- ui: {
4334
- intent: "display",
4335
- hidden: true
4336
- }
4337
- }, {
4338
- id: "dates",
4339
- type: "select",
4340
- label: "Dates",
4341
- required: false,
4342
- multiple: false,
4343
- options: [{
4344
- value: "summary",
4345
- label: "Summary"
4346
- }, {
4347
- value: "next-dates",
4348
- label: "Next dates"
4349
- }],
4350
- ui: {
4351
- intent: "display",
4352
- hidden: true
4353
- }
4354
- }];
4355
- const cardListPhotoNumberFields = [{
4356
- id: "showPhotos",
4357
- type: "boolean",
4358
- label: "Show photos",
4359
- required: false,
4360
- defaultValue: true,
4361
- ui: {
4362
- intent: "display",
4363
- hidden: true
4364
- }
4365
- }, {
4366
- id: "cardMarker",
4367
- type: "select",
4368
- label: "Item markers",
4369
- required: false,
4370
- multiple: false,
4371
- options: [{
4372
- value: "numbers",
4373
- label: "Numbers"
4374
- }, {
4375
- value: "none",
4376
- label: "None"
4377
- }],
4378
- ui: {
4379
- intent: "display",
4380
- hidden: true
4381
- }
4382
- }];
4383
- const cardListSectionActionFields = [{
4384
- id: "sectionActionLabel",
4385
- type: "text",
4386
- label: "Section link text",
4387
- required: false,
4388
- multiline: false,
4389
- maxLength: 80
4390
- }, {
4391
- id: "sectionActionLink",
4392
- type: "link",
4393
- label: "Section link destination",
4394
- required: false
4395
- }];
4396
- /** React list nodes receive only compiler-resolved choices, so dormant preferences stay inert. */
4397
- const cardListPresentationBindings = {
4398
- cardArrangement: { $bind: { from: "content._effectiveLook.look.structure.byMode.default" } },
4399
- lookSlots: { $bind: { from: "content._lookSlots" } },
4400
- datesMode: { $bind: { from: "content._effectiveKnobs.dates.value" } },
4401
- itemActionStyle: { $bind: { from: "content._effectiveKnobs.actionStyle.value" } },
4402
- showPhotos: { $bind: { from: "content.showPhotos" } },
4403
- cardMarker: { $bind: { from: "content.cardMarker" } },
4404
- itemRoles: { $bind: { from: "content._effectiveLook.itemRoles" } },
4405
- surfacePresentation: { $bind: { from: "content._effectiveLook.surfacePresentation" } }
4406
- };
4407
- const cardListContentSchema = z.object({
4408
- dates: z.enum(["summary", "next-dates"]).nullish().catch(void 0),
4409
- actionStyle: z.enum(["button", "link"]).nullish().catch(void 0),
4410
- showPhotos: z.boolean().nullish().catch(void 0),
4411
- cardMarker: z.enum(["numbers", "none"]).nullish().catch(void 0),
4412
- sectionActionLabel: z.string().nullish().catch(void 0),
4413
- sectionActionLink: linkSchema.nullish().catch(void 0)
4414
- });
4415
- function normalizeCardListContent(record) {
4416
- return cardListContentSchema.parse(record);
4417
- }
4418
- //#endregion
4419
- //#region ../blocks/src/system/node/fragments/cardListSectionAction.ts
4420
- function cardListSectionAction(labelPath = "content.sectionActionLabel", linkPath = "content.sectionActionLink") {
4421
- return link({
4422
- ...lookSlot("more"),
4423
- className: "rb-item-text-link",
4424
- linkRequired: true,
4425
- href: { $bind: {
4426
- from: linkPath,
4427
- transforms: [{ id: "links.resolve" }]
4428
- } }
4429
- }, [text({ as: "span" }, bind(labelPath))], when(labelPath));
4430
- }
4431
- //#endregion
4432
4652
  //#region ../blocks/src/system/blocks/feature-card-icons.ts
4433
4653
  const FEATURE_CARD_ICON_TREATMENTS = [
4434
4654
  "plain",
@@ -4773,364 +4993,362 @@ const mapDrawingStyleBinding = { $bind: {
4773
4993
  options: { fallbackToken: "background" }
4774
4994
  }]
4775
4995
  } };
4776
- const eventListingBlockDefinition = {
4777
- manifest: createBlockManifestWithContentShape({
4778
- variantMeaning: { kind: "arrangement" },
4779
- id: "block.event-listing",
4780
- version: "1.1.0",
4781
- title: "Event listing",
4782
- titleSource: "heading",
4783
- description: "All your upcoming events in one list.",
4784
- skipSectionStyles: true,
4785
- additionalFields: [
4786
- ...sectionHeaderFields("All Events"),
4787
- ...(() => {
4788
- const columns = columnsField([
4789
- "2",
4790
- "3",
4791
- "4"
4792
- ]);
4793
- return [{
4794
- ...layoutField,
4795
- ui: {
4796
- ...layoutField.ui ?? {},
4797
- intent: "display"
4798
- }
4799
- }, {
4800
- ...columns,
4801
- ui: {
4802
- ...columns.ui ?? {},
4803
- intent: "display"
4804
- }
4805
- }];
4806
- })(),
4807
- {
4808
- id: "eventsPerPage",
4809
- type: "select",
4810
- label: "How many",
4811
- required: false,
4812
- multiple: false,
4813
- defaultValue: "12",
4814
- options: [
4815
- {
4816
- value: "3",
4817
- label: "Show the first 3"
4818
- },
4819
- {
4820
- value: "6",
4821
- label: "Show the first 6"
4822
- },
4823
- {
4824
- value: "12",
4825
- label: "Show the first 12"
4826
- },
4827
- {
4828
- value: "24",
4829
- label: "Show the first 24"
4830
- }
4831
- ],
4832
- ui: { intent: "display" }
4833
- },
4834
- {
4835
- id: "paginationMode",
4836
- type: "select",
4837
- label: "More events",
4838
- description: "How visitors can see the rest of your events.",
4839
- required: false,
4840
- multiple: false,
4841
- defaultValue: "loadMore",
4842
- options: [{
4843
- value: "loadMore",
4844
- label: "Load more button"
4845
- }, {
4846
- value: "seeAllLink",
4847
- label: "Link to another page"
4848
- }],
4849
- ui: { intent: "display" }
4850
- },
4851
- {
4852
- id: "seeAllUrl",
4853
- type: "link",
4854
- label: "Link to the full list",
4855
- required: false,
4856
- ui: {
4857
- intent: "display",
4858
- visibleWhen: {
4859
- field: "paginationMode",
4860
- equals: "seeAllLink"
4861
- }
4862
- }
4863
- },
4864
- {
4865
- id: "loadMoreText",
4866
- type: "text",
4867
- label: "More events button text",
4868
- description: "The text on the button or link that shows more events.",
4869
- required: false,
4870
- multiline: false,
4871
- defaultValue: "Load more events",
4872
- maxLength: 40
4873
- },
4874
- ...cardStylingFields.map((field) => ({
4875
- ...field,
4996
+ const eventListingManifest = createBlockManifestWithContentShape({
4997
+ variantMeaning: { kind: "arrangement" },
4998
+ id: "block.event-listing",
4999
+ version: "1.1.0",
5000
+ title: "Event listing",
5001
+ titleSource: "heading",
5002
+ description: "All your upcoming events in one list.",
5003
+ skipSectionStyles: true,
5004
+ additionalFields: [
5005
+ ...sectionHeaderFields("All Events"),
5006
+ ...(() => {
5007
+ const columns = columnsField([
5008
+ "2",
5009
+ "3",
5010
+ "4"
5011
+ ]);
5012
+ return [{
5013
+ ...layoutField,
4876
5014
  ui: {
4877
- ...field.ui ?? {},
4878
- intent: "style"
5015
+ ...layoutField.ui ?? {},
5016
+ intent: "display"
4879
5017
  }
4880
- })),
4881
- ...eventDisplayFields.map((field) => ({
4882
- ...field,
5018
+ }, {
5019
+ ...columns,
4883
5020
  ui: {
4884
- ...field.ui ?? {},
5021
+ ...columns.ui ?? {},
4885
5022
  intent: "display"
4886
5023
  }
4887
- })),
4888
- {
4889
- id: "eventSurface",
4890
- type: "select",
4891
- label: "Event types",
4892
- description: "Choose whether this block shows everything, regular classes, or workshops and special events.",
4893
- required: false,
4894
- multiple: false,
4895
- defaultValue: "all",
4896
- options: [
4897
- {
4898
- value: "all",
4899
- label: "All events"
4900
- },
4901
- {
4902
- value: "regularClassSchedule",
4903
- label: "Regular class schedule"
4904
- },
4905
- {
4906
- value: "specialDatedEvents",
4907
- label: "Workshops and special events"
4908
- },
4909
- {
4910
- value: "custom",
4911
- label: "Custom"
4912
- }
4913
- ],
4914
- ui: { intent: "behavior" }
4915
- },
4916
- {
4917
- id: "filterEventPresets",
4918
- type: "select",
4919
- label: "Only show these event types",
4920
- description: "Pick the types of event this block shows.",
4921
- required: false,
4922
- multiple: true,
4923
- defaultValue: [],
4924
- options: [
4925
- {
4926
- value: "course",
4927
- label: "Courses"
4928
- },
4929
- {
4930
- value: "class",
4931
- label: "Classes"
4932
- },
4933
- {
4934
- value: "workshop",
4935
- label: "Workshops"
4936
- },
4937
- {
4938
- value: "retreat",
4939
- label: "Retreats"
4940
- },
4941
- {
4942
- value: "performance",
4943
- label: "Performances"
4944
- }
4945
- ],
4946
- ui: {
4947
- intent: "behavior",
4948
- visibleWhen: {
4949
- field: "eventSurface",
4950
- equals: "custom"
4951
- }
5024
+ }];
5025
+ })(),
5026
+ {
5027
+ id: "eventsPerPage",
5028
+ type: "select",
5029
+ label: "How many",
5030
+ required: false,
5031
+ multiple: false,
5032
+ defaultValue: "12",
5033
+ options: [
5034
+ {
5035
+ value: "3",
5036
+ label: "Show the first 3"
5037
+ },
5038
+ {
5039
+ value: "6",
5040
+ label: "Show the first 6"
5041
+ },
5042
+ {
5043
+ value: "12",
5044
+ label: "Show the first 12"
5045
+ },
5046
+ {
5047
+ value: "24",
5048
+ label: "Show the first 24"
4952
5049
  }
4953
- },
4954
- {
4955
- id: "scheduleScope",
4956
- type: "select",
4957
- label: "Regular or one-off",
4958
- description: "Show regular events, one-off events or both.",
4959
- required: false,
4960
- multiple: false,
4961
- defaultValue: "any",
4962
- options: [
4963
- {
4964
- value: "any",
4965
- label: "Both"
4966
- },
4967
- {
4968
- value: "recurring",
4969
- label: "Regular events only"
4970
- },
4971
- {
4972
- value: "oneOff",
4973
- label: "One-off events only"
4974
- }
4975
- ],
4976
- ui: {
4977
- intent: "behavior",
4978
- visibleWhen: {
4979
- field: "eventSurface",
4980
- equals: "custom"
4981
- }
5050
+ ],
5051
+ ui: { intent: "display" }
5052
+ },
5053
+ {
5054
+ id: "paginationMode",
5055
+ type: "select",
5056
+ label: "More events",
5057
+ description: "How visitors can see the rest of your events.",
5058
+ required: false,
5059
+ multiple: false,
5060
+ defaultValue: "loadMore",
5061
+ options: [{
5062
+ value: "loadMore",
5063
+ label: "Load more button"
5064
+ }, {
5065
+ value: "seeAllLink",
5066
+ label: "Link to another page"
5067
+ }],
5068
+ ui: { intent: "display" }
5069
+ },
5070
+ {
5071
+ id: "seeAllUrl",
5072
+ type: "link",
5073
+ label: "Link to the full list",
5074
+ required: false,
5075
+ ui: {
5076
+ intent: "display",
5077
+ visibleWhen: {
5078
+ field: "paginationMode",
5079
+ equals: "seeAllLink"
4982
5080
  }
4983
- },
4984
- {
4985
- ...emptyStateField,
4986
- ui: {
4987
- ...emptyStateField.ui ?? {},
4988
- intent: "display"
5081
+ }
5082
+ },
5083
+ {
5084
+ id: "loadMoreText",
5085
+ type: "text",
5086
+ label: "More events button text",
5087
+ description: "The text on the button or link that shows more events.",
5088
+ required: false,
5089
+ multiline: false,
5090
+ defaultValue: "Load more events",
5091
+ maxLength: 40
5092
+ },
5093
+ ...cardStylingFields.map((field) => ({
5094
+ ...field,
5095
+ ui: {
5096
+ ...field.ui ?? {},
5097
+ intent: "style"
5098
+ }
5099
+ })),
5100
+ ...eventDisplayFields.map((field) => ({
5101
+ ...field,
5102
+ ui: {
5103
+ ...field.ui ?? {},
5104
+ intent: "display"
5105
+ }
5106
+ })),
5107
+ {
5108
+ id: "eventSurface",
5109
+ type: "select",
5110
+ label: "Event types",
5111
+ description: "Choose whether this block shows everything, regular classes, or workshops and special events.",
5112
+ required: false,
5113
+ multiple: false,
5114
+ defaultValue: "all",
5115
+ options: [
5116
+ {
5117
+ value: "all",
5118
+ label: "All events"
5119
+ },
5120
+ {
5121
+ value: "regularClassSchedule",
5122
+ label: "Regular class schedule"
5123
+ },
5124
+ {
5125
+ value: "specialDatedEvents",
5126
+ label: "Workshops and special events"
5127
+ },
5128
+ {
5129
+ value: "custom",
5130
+ label: "Custom"
4989
5131
  }
4990
- },
4991
- sectionStylesField({
4992
- id: "_sectionStyles",
4993
- label: "Section styles",
4994
- renderInHeader: false
4995
- }),
4996
- containerStylesField({
4997
- id: "_containerStyles",
4998
- label: "Panel styles",
4999
- includeBackground: false,
5000
- renderInHeader: false
5001
- })
5002
- ],
5003
- styleTokens: {
5004
- background: "surface",
5005
- typography: "body",
5006
- spacing: "md"
5132
+ ],
5133
+ ui: { intent: "behavior" }
5007
5134
  },
5008
- behaviours: {
5009
- supportsThemeSwitching: true,
5010
- inlineEditing: false,
5011
- animation: false,
5012
- paletteHidden: true
5135
+ {
5136
+ id: "filterEventPresets",
5137
+ type: "select",
5138
+ label: "Only show these event types",
5139
+ description: "Pick the types of event this block shows.",
5140
+ required: false,
5141
+ multiple: true,
5142
+ defaultValue: [],
5143
+ options: [
5144
+ {
5145
+ value: "course",
5146
+ label: "Courses"
5147
+ },
5148
+ {
5149
+ value: "class",
5150
+ label: "Classes"
5151
+ },
5152
+ {
5153
+ value: "workshop",
5154
+ label: "Workshops"
5155
+ },
5156
+ {
5157
+ value: "retreat",
5158
+ label: "Retreats"
5159
+ },
5160
+ {
5161
+ value: "performance",
5162
+ label: "Performances"
5163
+ }
5164
+ ],
5165
+ ui: {
5166
+ intent: "behavior",
5167
+ visibleWhen: {
5168
+ field: "eventSurface",
5169
+ equals: "custom"
5170
+ }
5171
+ }
5013
5172
  },
5014
- category: "interactive",
5015
- contentSource: { kind: "entries" },
5016
- tags: [
5017
- "events",
5018
- "listing",
5019
- "paginated",
5020
- "archive",
5021
- "all-events"
5022
- ],
5023
- icon: "List",
5024
- layout: [styledSection({
5025
- children: styledContainer({
5026
- rootType: "stack",
5027
- rootProps: { gap: "lg" },
5028
- children: [...sectionHeaderLayoutNodes(), el("div", { style: mapDrawingStyleBinding }, [el("event-listing", withApiBindings({
5029
- readAuthority: { $bind: { from: "$root.readAuthority" } },
5030
- events: { $bind: { from: "data.events" } },
5031
- stage: { $bind: {
5032
- from: "$root.previewStage",
5033
- fallback: "published"
5034
- } },
5035
- layout: { $bind: {
5036
- from: "content.layout",
5037
- fallback: "grid"
5038
- } },
5039
- columns: { $bind: {
5040
- from: "content.columns",
5041
- fallback: "3"
5042
- } },
5043
- eventsPerPage: { $bind: {
5044
- from: "content.eventsPerPage",
5045
- fallback: "12"
5046
- } },
5047
- paginationMode: { $bind: {
5048
- from: "content.paginationMode",
5049
- fallback: "loadMore"
5050
- } },
5051
- seeAllUrl: { $bind: {
5052
- from: "content.seeAllUrl",
5053
- fallback: "",
5054
- transforms: [{ id: "links.resolve" }]
5055
- } },
5056
- loadMoreText: { $bind: {
5057
- from: "content.loadMoreText",
5058
- fallback: "Load more events"
5059
- } },
5060
- cardRole: { $bind: {
5061
- from: "content._cardStyles.role",
5062
- fallback: "default"
5063
- } },
5064
- buttonVariant: { $bind: {
5065
- from: "content.buttonVariant",
5066
- fallback: "primary"
5067
- } },
5068
- buttonText: { $bind: {
5069
- from: "content.buttonText",
5070
- fallback: "Book"
5071
- } },
5072
- showVenue: { $bind: { from: "content.showVenue" } },
5073
- showMap: { $bind: { from: "content.showMap" } },
5074
- showCapacity: { $bind: { from: "content.showCapacity" } },
5075
- eventSurface: { $bind: {
5076
- from: "content.eventSurface",
5077
- fallback: "all"
5078
- } },
5079
- filterEventPresets: { $bind: { from: "content.filterEventPresets" } },
5080
- scheduleScope: { $bind: {
5081
- from: "content.scheduleScope",
5082
- fallback: "any"
5083
- } },
5084
- emptyMessage: { $bind: { from: "content.emptyMessage" } }
5085
- }))])]
5086
- }),
5087
- baseClass: "",
5088
- spacing: "comfortable"
5089
- })]
5173
+ {
5174
+ id: "scheduleScope",
5175
+ type: "select",
5176
+ label: "Regular or one-off",
5177
+ description: "Show regular events, one-off events or both.",
5178
+ required: false,
5179
+ multiple: false,
5180
+ defaultValue: "any",
5181
+ options: [
5182
+ {
5183
+ value: "any",
5184
+ label: "Both"
5185
+ },
5186
+ {
5187
+ value: "recurring",
5188
+ label: "Regular events only"
5189
+ },
5190
+ {
5191
+ value: "oneOff",
5192
+ label: "One-off events only"
5193
+ }
5194
+ ],
5195
+ ui: {
5196
+ intent: "behavior",
5197
+ visibleWhen: {
5198
+ field: "eventSurface",
5199
+ equals: "custom"
5200
+ }
5201
+ }
5202
+ },
5203
+ ...eventEmptyBehaviorFields,
5204
+ sectionStylesField({
5205
+ id: "_sectionStyles",
5206
+ label: "Section styles",
5207
+ renderInHeader: false
5208
+ }),
5209
+ containerStylesField({
5210
+ id: "_containerStyles",
5211
+ label: "Panel styles",
5212
+ includeBackground: false,
5213
+ renderInHeader: false
5214
+ })
5215
+ ],
5216
+ styleTokens: {
5217
+ background: "surface",
5218
+ typography: "body",
5219
+ spacing: "md"
5220
+ },
5221
+ behaviours: {
5222
+ supportsThemeSwitching: true,
5223
+ inlineEditing: false,
5224
+ animation: false,
5225
+ paletteHidden: true
5226
+ },
5227
+ category: "interactive",
5228
+ contentSource: { kind: "entries" },
5229
+ tags: [
5230
+ "events",
5231
+ "listing",
5232
+ "paginated",
5233
+ "archive",
5234
+ "all-events"
5235
+ ],
5236
+ icon: "List",
5237
+ layout: [styledSection({
5238
+ children: styledContainer({
5239
+ rootType: "stack",
5240
+ rootProps: { gap: "lg" },
5241
+ children: [...sectionHeaderLayoutNodes(), el("div", { style: mapDrawingStyleBinding }, [el("event-listing", withApiBindings({
5242
+ readAuthority: { $bind: { from: "$root.readAuthority" } },
5243
+ events: { $bind: { from: "data.events" } },
5244
+ stage: { $bind: {
5245
+ from: "$root.previewStage",
5246
+ fallback: "published"
5247
+ } },
5248
+ layout: { $bind: {
5249
+ from: "content.layout",
5250
+ fallback: "grid"
5251
+ } },
5252
+ columns: { $bind: {
5253
+ from: "content.columns",
5254
+ fallback: "3"
5255
+ } },
5256
+ eventsPerPage: { $bind: {
5257
+ from: "content.eventsPerPage",
5258
+ fallback: "12"
5259
+ } },
5260
+ paginationMode: { $bind: {
5261
+ from: "content.paginationMode",
5262
+ fallback: "loadMore"
5263
+ } },
5264
+ seeAllUrl: { $bind: {
5265
+ from: "content.seeAllUrl",
5266
+ fallback: "",
5267
+ transforms: [{ id: "links.resolve" }]
5268
+ } },
5269
+ loadMoreText: { $bind: {
5270
+ from: "content.loadMoreText",
5271
+ fallback: "Load more events"
5272
+ } },
5273
+ cardRole: { $bind: {
5274
+ from: "content._cardStyles.role",
5275
+ fallback: "default"
5276
+ } },
5277
+ buttonVariant: { $bind: {
5278
+ from: "content.buttonVariant",
5279
+ fallback: "primary"
5280
+ } },
5281
+ buttonText: { $bind: {
5282
+ from: "content.buttonText",
5283
+ fallback: "Book"
5284
+ } },
5285
+ showVenue: { $bind: { from: "content.showVenue" } },
5286
+ showMap: { $bind: { from: "content.showMap" } },
5287
+ showCapacity: { $bind: { from: "content.showCapacity" } },
5288
+ eventSurface: { $bind: {
5289
+ from: "content.eventSurface",
5290
+ fallback: "all"
5291
+ } },
5292
+ filterEventPresets: { $bind: { from: "content.filterEventPresets" } },
5293
+ scheduleScope: { $bind: {
5294
+ from: "content.scheduleScope",
5295
+ fallback: "any"
5296
+ } },
5297
+ emptyMessage: { $bind: { from: "content.emptyMessage" } }
5298
+ }))])]
5299
+ }),
5300
+ baseClass: "",
5301
+ spacing: "comfortable"
5302
+ })]
5303
+ }, {
5304
+ additionalFields: [{
5305
+ id: "layout",
5306
+ type: "select",
5307
+ required: false,
5308
+ multiple: false,
5309
+ options: [{ value: "grid" }, { value: "stack" }]
5090
5310
  }, {
5091
- additionalFields: [{
5092
- id: "layout",
5093
- type: "select",
5094
- required: false,
5095
- multiple: false,
5096
- options: [{ value: "grid" }, { value: "stack" }]
5097
- }, {
5098
- id: "paginationMode",
5099
- type: "select",
5100
- required: false,
5101
- multiple: false,
5102
- options: [{ value: "loadMore" }, { value: "seeAllLink" }]
5103
- }],
5104
- skipSectionStyles: true
5105
- }),
5311
+ id: "paginationMode",
5312
+ type: "select",
5313
+ required: false,
5314
+ multiple: false,
5315
+ options: [{ value: "loadMore" }, { value: "seeAllLink" }]
5316
+ }],
5317
+ skipSectionStyles: true
5318
+ });
5319
+ const eventListingBlockDefinition = {
5320
+ readiness: eventsReadiness,
5321
+ contentNormalizer: {
5322
+ fieldIds: ["emptyBehavior"],
5323
+ normalize: normalizeEventEmptyBehavior
5324
+ },
5325
+ manifest: eventListingManifest,
5106
5326
  runtime: eventListingBlockRuntime,
5107
5327
  dataSchemas: { events: publicEventsArraySchema.optional() },
5108
- dataLoaders: { events: {
5109
- endpoint: "listPublicEvents",
5110
- params: {
5111
- siteId: { $bind: { from: "$root.siteId" } },
5112
- limit: { $bind: {
5113
- from: "content.eventsPerPage",
5114
- fallback: "12"
5115
- } },
5116
- stage: { $bind: {
5117
- from: "$root.previewStage",
5118
- fallback: "published"
5119
- } },
5120
- detailLevel: "listing",
5121
- readProfile: { $bind: {
5122
- from: "content.layout",
5123
- fallback: "listing-card"
5124
- } },
5125
- eventSurface: { $bind: { from: "content.eventSurface" } },
5126
- eventPresets: { $bind: {
5127
- from: "content.filterEventPresets",
5128
- transforms: [{ id: "value.csv" }]
5129
- } },
5130
- scheduleScope: { $bind: { from: "content.scheduleScope" } }
5131
- },
5132
- mode: "server"
5133
- } }
5328
+ dataLoaders: {
5329
+ readinessEvents: eventReadinessLoader,
5330
+ events: {
5331
+ endpoint: "listPublicEvents",
5332
+ params: {
5333
+ siteId: { $bind: { from: "$root.siteId" } },
5334
+ limit: { $bind: {
5335
+ from: "content.eventsPerPage",
5336
+ fallback: "12"
5337
+ } },
5338
+ stage: { $bind: {
5339
+ from: "$root.previewStage",
5340
+ fallback: "published"
5341
+ } },
5342
+ detailLevel: "listing",
5343
+ readProfile: { $bind: {
5344
+ from: "content.layout",
5345
+ fallback: "listing-card"
5346
+ } },
5347
+ ...eventScopeLoaderParams
5348
+ },
5349
+ mode: "server"
5350
+ }
5351
+ }
5134
5352
  };
5135
5353
  //#endregion
5136
5354
  //#region ../blocks/src/system/blocks/events/eventSelectionChips.ts
@@ -5217,144 +5435,12 @@ function withEventSelectionVisibility(field) {
5217
5435
  };
5218
5436
  }
5219
5437
  //#endregion
5220
- //#region ../blocks/src/system/blocks/events/eventCalendarDataLoaders.ts
5221
- const scopeParams = {
5222
- siteId: { $bind: { from: "$root.siteId" } },
5223
- seriesIds: { $bind: {
5224
- from: "content",
5225
- transforms: [{
5226
- id: "events.calendarSelectionParam",
5227
- options: { key: "seriesIds" }
5228
- }]
5229
- } },
5230
- stage: { $bind: {
5231
- from: "$root.previewStage",
5232
- fallback: "published"
5233
- } },
5234
- eventSurface: { $bind: {
5235
- from: "content",
5236
- transforms: [{
5237
- id: "events.calendarSelectionParam",
5238
- options: { key: "eventSurface" }
5239
- }, { id: "value.csv" }]
5240
- } },
5241
- eventPresets: { $bind: {
5242
- from: "content",
5243
- transforms: [{
5244
- id: "events.calendarSelectionParam",
5245
- options: { key: "filterEventPresets" }
5246
- }, { id: "value.csv" }]
5247
- } },
5248
- scheduleScope: { $bind: {
5249
- from: "content",
5250
- transforms: [{
5251
- id: "events.calendarSelectionParam",
5252
- options: { key: "scheduleScope" }
5253
- }, { id: "value.csv" }]
5254
- } },
5255
- categoryIds: { $bind: {
5256
- from: "content",
5257
- transforms: [{
5258
- id: "events.calendarSelectionParam",
5259
- options: { key: "filterCategoryIds" }
5260
- }, { id: "value.csv" }]
5261
- } },
5262
- staffMemberId: { $bind: {
5263
- from: "content",
5264
- transforms: [{
5265
- id: "events.calendarSelectionParam",
5266
- options: { key: "filterStaffMemberId" }
5267
- }, { id: "value.csv" }]
5268
- } },
5269
- venueId: { $bind: {
5270
- from: "content",
5271
- transforms: [{
5272
- id: "events.calendarSelectionParam",
5273
- options: { key: "filterVenueId" }
5274
- }, { id: "value.csv" }]
5275
- } }
5276
- };
5277
- /** Combined renders two jobs; calendar-only variants never pay for the list seed. */
5278
- const eventCalendarDataLoaders = {
5279
- schedule: {
5280
- endpoint: "listPublicRecurringSchedule",
5281
- when: { $bind: {
5282
- from: "content",
5283
- transforms: [{
5284
- id: "events.calendarReadEnabled",
5285
- options: { job: "schedule" }
5286
- }]
5287
- } },
5288
- params: {
5289
- siteId: scopeParams.siteId,
5290
- stage: scopeParams.stage,
5291
- limit: "100",
5292
- detailLevel: "listing",
5293
- readProfile: "compact-list",
5294
- eventSurface: "custom",
5295
- eventPresets: "class",
5296
- scheduleScope: "any"
5297
- },
5298
- mode: "server"
5299
- },
5300
- events: {
5301
- endpoint: "listPublicEvents",
5302
- when: { $bind: {
5303
- from: "content",
5304
- transforms: [{
5305
- id: "events.calendarReadEnabled",
5306
- options: { job: "list" }
5307
- }]
5308
- } },
5309
- params: {
5310
- ...scopeParams,
5311
- limit: 100,
5312
- detailLevel: "listing",
5313
- readProfile: "listing-card",
5314
- from: { $bind: {
5315
- from: "$root",
5316
- transforms: [{
5317
- id: "events.calendarListWindow",
5318
- options: { key: "from" }
5319
- }]
5320
- } },
5321
- to: { $bind: {
5322
- from: "$root",
5323
- transforms: [{
5324
- id: "events.calendarListWindow",
5325
- options: { key: "to" }
5326
- }]
5327
- } }
5328
- },
5329
- mode: "server"
5330
- },
5331
- calendarWindow: {
5332
- endpoint: "listPublicEventCalendarWindow",
5333
- when: { $bind: {
5334
- from: "content",
5335
- transforms: [{
5336
- id: "events.calendarReadEnabled",
5337
- options: { job: "calendar" }
5338
- }]
5339
- } },
5340
- params: {
5341
- ...scopeParams,
5342
- limit: 100,
5343
- readProfile: { $bind: {
5344
- from: "content",
5345
- transforms: [{ id: "events.calendarReadProfile" }]
5346
- } }
5347
- },
5348
- mode: "server"
5349
- }
5350
- };
5351
- //#endregion
5352
5438
  //#region ../blocks/src/system/blocks/events/event-calendar.ts
5353
5439
  function normalizeEventCalendarContent(content) {
5354
5440
  const record = typeof content === "object" && content !== null ? content : {};
5355
5441
  const variant = normalizeEventCalendarDisplayMode$1(record);
5356
5442
  return {
5357
- ...record,
5443
+ ...normalizeEventEmptyBehavior(record),
5358
5444
  ...variant ? { variant } : {},
5359
5445
  displayMode: normalizeEventCalendarDisplayMode(record.displayMode),
5360
5446
  listLayout: normalizeEventCalendarListLayout(record.listLayout),
@@ -5432,6 +5518,7 @@ const eventCalendarLayout = [styledSection({
5432
5518
  lookSlots: { $bind: { from: "content._lookSlots" } },
5433
5519
  itemActionStyle: { $bind: { from: "content._effectiveKnobs.actionStyle.value" } },
5434
5520
  showPhotos: { $bind: { from: "content.showPhotos" } },
5521
+ eventRows: { $bind: { from: "content._effectiveLook.look.structure.eventRows" } },
5435
5522
  panelHeading: { $bind: { from: "content._lookPanelHeading" } },
5436
5523
  itemRoles: { $bind: { from: "content._effectiveLook.itemRoles" } },
5437
5524
  surfacePresentation: { $bind: { from: "content._effectiveLook.surfacePresentation" } },
@@ -6208,7 +6295,7 @@ const eventCalendarAdditionalFields = [
6208
6295
  intent: field.id === "_cardStyles" || field.id === "buttonVariant" ? "style" : "content"
6209
6296
  }
6210
6297
  })),
6211
- emptyStateField,
6298
+ ...eventEmptyBehaviorFields,
6212
6299
  sectionStylesField({
6213
6300
  id: "_sectionStyles",
6214
6301
  label: "Section styles",
@@ -6372,6 +6459,7 @@ const generatedEventCalendarManifest = createBlockManifestWithContentShape({
6372
6459
  }
6373
6460
  }, eventCalendarContentShape);
6374
6461
  const eventCalendarBlockDefinition = {
6462
+ readiness: eventsReadiness,
6375
6463
  manifest: {
6376
6464
  ...generatedEventCalendarManifest,
6377
6465
  fields: generatedEventCalendarManifest.fields?.map((field) => field.id === "variant" ? {
@@ -6386,6 +6474,7 @@ const eventCalendarBlockDefinition = {
6386
6474
  },
6387
6475
  contentNormalizer: {
6388
6476
  fieldIds: [
6477
+ "emptyBehavior",
6389
6478
  "variant",
6390
6479
  "displayMode",
6391
6480
  "listLayout",
@@ -6404,7 +6493,10 @@ const eventCalendarBlockDefinition = {
6404
6493
  events: publicEventsArraySchema.optional(),
6405
6494
  calendarWindow: calendarWindowPageSchema.optional()
6406
6495
  },
6407
- dataLoaders: eventCalendarDataLoaders,
6496
+ dataLoaders: {
6497
+ ...eventCalendarDataLoaders,
6498
+ readinessEvents: eventReadinessLoader
6499
+ },
6408
6500
  runtime: eventCalendarBlockRuntime
6409
6501
  };
6410
6502
  //#endregion
@@ -6433,7 +6525,7 @@ function buildOfferingsCatalogueListing(input) {
6433
6525
  items
6434
6526
  }])),
6435
6527
  itemLimit: Infinity,
6436
- listingMode: input.listingMode,
6528
+ listingMode: input.listingMode === "next-per-type" || input.listingMode === "by-course" ? "by-type" : input.listingMode,
6437
6529
  now: input.now
6438
6530
  });
6439
6531
  }
@@ -6445,6 +6537,7 @@ function countListedOfferings(listing) {
6445
6537
  case "no-groups":
6446
6538
  case "nothing-to-show": return 0;
6447
6539
  case "by-date": return listing.items.length;
6540
+ case "by-course":
6448
6541
  case "by-type": return listing.groups.reduce((count, load) => count + (load.kind === "items" ? load.items.length : 0), 0);
6449
6542
  default: return assertNever$1(listing);
6450
6543
  }
@@ -7567,6 +7660,139 @@ const newsletterSignupBlockDefinition = {
7567
7660
  runtime: newsletterFormBlockRuntime
7568
7661
  };
7569
7662
  //#endregion
7663
+ //#region ../blocks/src/system/runtime/nodes/offerings-preview-courses.tsx
7664
+ /** Course cards own parent copy once, while rows reuse the normal booking projection. */
7665
+ function OfferingCourseCards({ items, presentation, now, Carousel, buttonText }) {
7666
+ const courses = groupOfferingRunsByCourse(items);
7667
+ const ungrouped = items.filter((item) => item.kind !== "run" || !item.run.run.listing);
7668
+ return /* @__PURE__ */ jsxs("div", {
7669
+ ...listLookSlot(presentation, "items"),
7670
+ children: [courses.map(({ id, course, parts }) => /* @__PURE__ */ jsxs("article", {
7671
+ ...listLookSlot(presentation, "item"),
7672
+ children: [
7673
+ presentation.showPhotos !== false ? /* @__PURE__ */ jsx(CardListContentPart, {
7674
+ part: "media",
7675
+ item: {
7676
+ id,
7677
+ title: course.title,
7678
+ media: course.presentation?.image
7679
+ },
7680
+ presentation
7681
+ }) : null,
7682
+ /* @__PURE__ */ jsxs("header", {
7683
+ ...listLookSlot(presentation, "item-body"),
7684
+ children: [
7685
+ /* @__PURE__ */ jsx(EventQuickFacts, {
7686
+ facts: course.facts,
7687
+ context: "card",
7688
+ eyebrow: true
7689
+ }),
7690
+ /* @__PURE__ */ jsx("h3", {
7691
+ ...listLookSlot(presentation, "item-title"),
7692
+ children: course.title
7693
+ }),
7694
+ course.presentation?.summary ? /* @__PURE__ */ jsx("p", {
7695
+ ...listLookSlot(presentation, "item-text"),
7696
+ children: course.presentation.summary
7697
+ }) : null
7698
+ ]
7699
+ }),
7700
+ /* @__PURE__ */ jsx("ol", {
7701
+ ...listLookSlot(presentation, "list"),
7702
+ children: parts.map((part) => /* @__PURE__ */ jsx(CoursePart, {
7703
+ part,
7704
+ presentation,
7705
+ now
7706
+ }, part.kind === "run" ? part.run.eventSeriesId : part.event.id))
7707
+ }),
7708
+ course.path ? /* @__PURE__ */ jsx("a", {
7709
+ ...listLookSlot(presentation, "more"),
7710
+ className: "rb-item-text-link",
7711
+ href: course.path,
7712
+ children: buttonText
7713
+ }) : null
7714
+ ]
7715
+ }, id)), ungrouped.length ? /* @__PURE__ */ jsx(CardListItems, {
7716
+ Carousel,
7717
+ presentation: {
7718
+ ...presentation,
7719
+ cardArrangement: "cards"
7720
+ },
7721
+ items: ungrouped.map((item) => coursePartContent(item, now))
7722
+ }) : null]
7723
+ });
7724
+ }
7725
+ function coursePartContent(part, now) {
7726
+ const content = eventCardListContent(part.kind === "run" ? part.run.representative : part.event, {
7727
+ kind: "offering",
7728
+ now,
7729
+ nextStartMs: part.nextStartMs,
7730
+ count: "always"
7731
+ });
7732
+ return part.kind === "run" && part.run.run.listing ? {
7733
+ ...content,
7734
+ title: part.run.run.listing.title ?? part.run.run.listing.course.title
7735
+ } : content;
7736
+ }
7737
+ function CoursePart({ part, presentation, now }) {
7738
+ const content = coursePartContent(part, now);
7739
+ const event = part.kind === "run" ? part.run.representative : part.event;
7740
+ return /* @__PURE__ */ jsxs("li", {
7741
+ ...listLookSlot(presentation, "row"),
7742
+ children: [
7743
+ /* @__PURE__ */ jsx(CardListContentPart, {
7744
+ part: "date-stamp",
7745
+ item: content,
7746
+ presentation
7747
+ }),
7748
+ /* @__PURE__ */ jsxs("div", {
7749
+ ...listLookSlot(presentation, "what"),
7750
+ children: [/* @__PURE__ */ jsx("h4", {
7751
+ ...listLookSlot(presentation, "group-label"),
7752
+ children: content.titleLink ? /* @__PURE__ */ jsx("a", {
7753
+ ...content.titleLink,
7754
+ children: content.title
7755
+ }) : content.title
7756
+ }), /* @__PURE__ */ jsx(CardListContentPart, {
7757
+ part: "schedule",
7758
+ item: content,
7759
+ presentation
7760
+ })]
7761
+ }),
7762
+ /* @__PURE__ */ jsx("p", {
7763
+ ...listLookSlot(presentation, "price"),
7764
+ children: formatEventStartingPrice(event.pricing) ?? formatEventPriceDisplay(event.pricing)
7765
+ }),
7766
+ content.bookingClosed ? /* @__PURE__ */ jsx("p", {
7767
+ ...listLookSlot(presentation, "availability"),
7768
+ "data-availability": "closed",
7769
+ children: /* @__PURE__ */ jsx("span", { children: content.bookingClosed })
7770
+ }) : /* @__PURE__ */ jsx(CardListContentPart, {
7771
+ part: "availability",
7772
+ item: content,
7773
+ presentation
7774
+ })
7775
+ ]
7776
+ });
7777
+ }
7778
+ /** Slot parents follow course-card markup, including the nested part rows. */
7779
+ const offeringCourseSlotParents = {
7780
+ items: "layout",
7781
+ item: "items",
7782
+ "item-media": "item",
7783
+ "item-body": "item",
7784
+ list: "item",
7785
+ row: "list",
7786
+ what: "row",
7787
+ eyebrow: "item-body",
7788
+ "group-label": "what",
7789
+ schedule: "what",
7790
+ date: "row",
7791
+ availability: "row",
7792
+ price: "row",
7793
+ more: "item"
7794
+ };
7795
+ //#endregion
7570
7796
  //#region ../blocks/src/system/blocks/appointments/presentation.ts
7571
7797
  const publicVenueSchema = z.object({
7572
7798
  name: z.string(),
@@ -8067,8 +8293,10 @@ const VideoEmbedNode = ({ value, className, style, aspectRatio, blockId: _blockI
8067
8293
  });
8068
8294
  const title = getVideoTitle(embedInfo);
8069
8295
  const shouldDeferSrc = getVideoEmbedLoadingStrategy(embedInfo.provider) === "defer-until-near-viewport";
8296
+ const providerHook = "data-slot" in rest ? { "data-video-provider": embedInfo.provider } : {};
8070
8297
  return /* @__PURE__ */ jsx("div", {
8071
8298
  ...rest,
8299
+ ...providerHook,
8072
8300
  children: /* @__PURE__ */ jsxs("div", {
8073
8301
  className,
8074
8302
  "data-rb-video-embed-wrapper": shouldDeferSrc ? "true" : void 0,
@@ -8541,7 +8769,7 @@ function listGroupPresentation(presentation) {
8541
8769
  * Every renderer of grouped offerings frames its groups from this one answer.
8542
8770
  */
8543
8771
  function listGroupFrames(presentation) {
8544
- const panels = presentation.cardArrangement === "type-columns";
8772
+ const panels = presentation.cardArrangement === "type-columns" || presentation.cardArrangement === "next-cards";
8545
8773
  return {
8546
8774
  list: panels ? listLookSlot(presentation, "list") : {},
8547
8775
  panel: panels ? listLookSlot(presentation, "panel") : {}
@@ -9379,39 +9607,6 @@ function buildLoadedOfferingsPreviewListing(input) {
9379
9607
  });
9380
9608
  }
9381
9609
  //#endregion
9382
- //#region ../blocks/src/system/runtime/nodes/events/shared/offeringNextDates.ts
9383
- /** A bounded display sample only: capacity and booking admission belong to the booking destination. */
9384
- function offeringDatesBySeries(events, now, booking) {
9385
- const groups = events.reduce((result, event) => new Map([...result, [event.seriesId, [...result.get(event.seriesId) ?? [], event]]]), /* @__PURE__ */ new Map());
9386
- return new Map([...groups].map(([seriesId, occurrences]) => [seriesId, orderedUniqueEventOccurrences(occurrences.filter((event) => event.bookingScope !== "whole_series" && Date.parse(event.startsAt) >= now.getTime())).slice(0, 3).map((event) => offeringDateRow(event, event, booking))]));
9387
- }
9388
- /** Whole-series sessions share the run-level booking capacity, by contract. */
9389
- function offeringRunDates(event, now) {
9390
- if (event.bookingScope !== "whole_series") return [];
9391
- const nextStart = nextLiveRunSessionStartMs(event.run.sessions, now);
9392
- return nextStart === null ? [] : orderedLiveRunSessions(event.run.sessions).filter((session) => Date.parse(session.startsAt) >= nextStart).slice(0, 3).map((session) => offeringDateRow(session, event));
9393
- }
9394
- function offeringDateRow(session, event, booking) {
9395
- const options = eventDateOptions({
9396
- ...event,
9397
- timeZone: session.timeZone
9398
- });
9399
- const date = formatEventCompactDateRail(session.startsAt, options, "as-written");
9400
- const capacity = getEventAvailability(event);
9401
- const status = getEventAvailabilityStatus(event);
9402
- const label = `${date.weekday} ${date.day} ${date.month}, ${formatTime(session.startsAt, options)}`;
9403
- const bookingLink = booking?.(event, label) ?? null;
9404
- return {
9405
- startsAt: session.startsAt,
9406
- label,
9407
- ...bookingLink ? { booking: bookingLink } : {},
9408
- places: capacity.available === null ? null : {
9409
- label: capacity.isFull ? "Sold out" : `${capacity.available} place${capacity.available === 1 ? "" : "s"} left`,
9410
- status: capacity.isFull ? "full" : status.status === "filling" ? "low" : "available"
9411
- }
9412
- };
9413
- }
9414
- //#endregion
9415
9610
  //#region ../blocks/src/system/runtime/nodes/offerings-preview-catalogue.tsx
9416
9611
  function OfferingsCatalogue(props) {
9417
9612
  const input = resolveOfferingsRenderInput(props);
@@ -9441,6 +9636,7 @@ function OfferingsCatalogue(props) {
9441
9636
  now,
9442
9637
  shape
9443
9638
  });
9639
+ case "by-course":
9444
9640
  case "by-type": return props.lookSlots ? /* @__PURE__ */ jsxs("div", {
9445
9641
  ...listLookSlot(props, "layout"),
9446
9642
  children: [/* @__PURE__ */ jsx("header", {
@@ -9536,6 +9732,7 @@ function renderCatalogueItems({ props, items, shape, groupTitle }) {
9536
9732
  style: { gridTemplateColumns: "repeat(auto-fill, minmax(min(100%, 18rem), 1fr))" },
9537
9733
  children: events.map((event) => /* @__PURE__ */ jsx(EventCard, {
9538
9734
  event,
9735
+ now: props.now,
9539
9736
  ...catalogueEventCardProps(event, props.buttonVariant ?? "primary")
9540
9737
  }, event.seriesId))
9541
9738
  });
@@ -9546,14 +9743,15 @@ function catalogueDates(events, now, shape, pathname) {
9546
9743
  }
9547
9744
  function catalogueCardContent(item, now, dates, typeLabel) {
9548
9745
  const event = item.kind === "event" ? item.event : item.run.representative;
9549
- return {
9550
- ...eventCardListContent(event, {
9551
- kind: "catalogue",
9552
- now,
9553
- nextStartMs: item.nextStartMs,
9554
- typeLabel
9555
- }, catalogueEventCardProps(event).buttonText),
9556
- dates: event.bookingScope === "whole_series" ? offeringRunDates(event, now) : dates.get(event.seriesId)
9746
+ const content = eventCardListContent(event, {
9747
+ kind: "catalogue",
9748
+ now,
9749
+ nextStartMs: item.nextStartMs,
9750
+ typeLabel
9751
+ }, catalogueEventCardProps(event).buttonText);
9752
+ return event.bookingScope === "whole_series" ? content : {
9753
+ ...content,
9754
+ dates: dates.get(event.seriesId)
9557
9755
  };
9558
9756
  }
9559
9757
  function renderCatalogueEmpty({ props, failed }) {
@@ -9662,17 +9860,19 @@ const OFFERINGS_PREVIEW_GRID_STYLE = {
9662
9860
  //#endregion
9663
9861
  //#region ../blocks/src/system/runtime/nodes/offerings-preview.tsx
9664
9862
  const OFFERINGS_WHOLE_SERIES_CARD_CLASS = boxStyleClassNames({ role: "default" }, { baseClass: "group rb-flex rb-h-full rb-flex-col event-card offerings-preview-whole-series-card" });
9665
- function OfferingsPreviewNode(props) {
9666
- if (props.displayMode === "catalogue") return OfferingsCatalogue(props);
9667
- return props.lookSlots ? /* @__PURE__ */ jsxs("div", {
9668
- ...listLookSlot(props, "layout"),
9669
- children: [/* @__PURE__ */ jsx("header", {
9670
- ...listLookSlot(props, "head"),
9671
- children: props.children
9672
- }), /* @__PURE__ */ jsx("div", { children: renderOfferingsPreview(props) })]
9673
- }) : /* @__PURE__ */ jsxs(Fragment, { children: [props.children, renderOfferingsPreview(props)] });
9863
+ /** An authored label is kept as typed; an absent one takes the default for the presentation. */
9864
+ function withButtonText(props) {
9865
+ return {
9866
+ ...props,
9867
+ buttonText: props.buttonText ?? (props.displayMode !== "catalogue" && props.cardArrangement === "course-groups" ? "View course" : "Book")
9868
+ };
9674
9869
  }
9675
- function renderOfferingsPreview(props) {
9870
+ function OfferingsPreviewNode(authored) {
9871
+ const props = withButtonText(authored);
9872
+ if (props.displayMode === "catalogue") return OfferingsCatalogue(isPreviewOnlyArrangement(props.cardArrangement) ? {
9873
+ ...props,
9874
+ cardArrangement: "cards"
9875
+ } : props);
9676
9876
  const input = resolveOfferingsRenderInput(props);
9677
9877
  const now = input.now;
9678
9878
  const listing = input.kind === "prepared" ? input.listing : buildLoadedOfferingsPreviewListing({
@@ -9681,6 +9881,16 @@ function renderOfferingsPreview(props) {
9681
9881
  listingMode: offeringsListingFor(props.cardArrangement ?? "legacy"),
9682
9882
  now
9683
9883
  });
9884
+ if (listing.kind === "no-groups" && listing.reason === "empty-hidden") return props.showHiddenPlaceholder || props.previewStage === "preview" ? /* @__PURE__ */ jsxs(Fragment, { children: [props.children, /* @__PURE__ */ jsx(EmptyState, { message: "Visitors won't see this section at the moment, because none of its cards has anything coming up." })] }) : null;
9885
+ return props.lookSlots ? /* @__PURE__ */ jsxs("div", {
9886
+ ...listLookSlot(props, "layout"),
9887
+ children: [/* @__PURE__ */ jsx("header", {
9888
+ ...listLookSlot(props, "head"),
9889
+ children: props.children
9890
+ }), /* @__PURE__ */ jsx("div", { children: renderOfferingsPreview(props, listing, now) })]
9891
+ }) : /* @__PURE__ */ jsxs(Fragment, { children: [props.children, renderOfferingsPreview(props, listing, now)] });
9892
+ }
9893
+ function renderOfferingsPreview(props, listing, now) {
9684
9894
  switch (listing.kind) {
9685
9895
  case "no-groups": return props.previewStage === "preview" ? /* @__PURE__ */ jsx(EmptyState, {
9686
9896
  className: "offerings-preview-empty",
@@ -9702,6 +9912,7 @@ function renderOfferingsPreview(props) {
9702
9912
  }, dates, group.singularLabel))
9703
9913
  });
9704
9914
  }
9915
+ case "by-course":
9705
9916
  case "by-type": return props.lookSlots ? renderOfferingCardGroups({
9706
9917
  ...props,
9707
9918
  states: listing.groups,
@@ -9892,6 +10103,7 @@ function renderSingleOfferingCard(item, options) {
9892
10103
  switch (item.kind) {
9893
10104
  case "event": return /* @__PURE__ */ jsx(EventCard, {
9894
10105
  event: item.event,
10106
+ now: options.now,
9895
10107
  buttonVariant: options.buttonVariant,
9896
10108
  buttonText: options.buttonText,
9897
10109
  showMap: false,
@@ -10145,8 +10357,10 @@ function RunWithoutLiveDates({ group, path }) {
10145
10357
  function renderOfferingCardGroups(props) {
10146
10358
  const datesBySeries = offeringDatesBySeries(props.quickDateEvents ?? [], props.now);
10147
10359
  const frames = listGroupFrames(props);
10360
+ const nextCards = props.cardArrangement === "next-cards";
10148
10361
  return /* @__PURE__ */ jsx("div", {
10149
- className: "rb-flex rb-flex-col rb-gap-10",
10362
+ className: nextCards ? "rb-grid rb-gap-6" : "rb-flex rb-flex-col rb-gap-10",
10363
+ style: nextCards ? { gridTemplateColumns: "repeat(auto-fit, minmax(min(100%, 16rem), 1fr))" } : void 0,
10150
10364
  ...frames.list,
10151
10365
  children: props.states.map((state) => {
10152
10366
  const cta = resolveOfferingsPreviewGroupCta({
@@ -10160,6 +10374,7 @@ function renderOfferingCardGroups(props) {
10160
10374
  Heading: "h3",
10161
10375
  sectionProps: {
10162
10376
  ...frames.panel,
10377
+ ...nextCards ? { className: "rb-flex rb-flex-col rb-gap-4 rb-rounded-lg rb-border rb-border-border rb-p-5" } : {},
10163
10378
  "data-offering-source": state.group.sourceKey
10164
10379
  },
10165
10380
  children: [offeringGroupCards(state, props, datesBySeries), cta ? /* @__PURE__ */ jsx("a", {
@@ -10184,27 +10399,24 @@ function previewCardContent(item, props, datesBySeries, typeLabel) {
10184
10399
  ...content,
10185
10400
  dates: datesBySeries.get(event.seriesId) ?? offeringDatesBySeries([event], props.now).get(event.seriesId)
10186
10401
  };
10187
- const runContent = {
10188
- ...content,
10189
- dates: offeringRunDates(event, props.now),
10190
- id: item.run.eventSeriesId
10191
- };
10192
- return event.destination.kind === "external" ? runContent : nativeRunCardContent(item, runContent, props);
10193
- }
10194
- function nativeRunCardContent(item, content, props) {
10195
- const open = resolveWholeSeriesBookingPhase(item.run.run, props.now).kind === "open";
10196
- const path = content.titleLink?.href ?? null;
10197
10402
  return {
10198
10403
  ...content,
10199
- action: {
10200
- label: open ? path ? props.buttonText || "Book" : "Details coming soon" : "Registration closed",
10201
- ...open && path ? { href: path } : {}
10202
- }
10404
+ id: item.run.eventSeriesId
10203
10405
  };
10204
10406
  }
10205
10407
  function offeringGroupCards(state, props, dates) {
10206
10408
  switch (state.kind) {
10207
- case "items": return CardListItems({
10409
+ case "items": return props.cardArrangement === "course-groups" ? /* @__PURE__ */ jsx(OfferingCourseCards, {
10410
+ Carousel: props.Carousel,
10411
+ items: state.items,
10412
+ presentation: props,
10413
+ now: props.now,
10414
+ buttonText: props.buttonText
10415
+ }) : props.cardArrangement === "next-cards" ? renderNextOfferingCard(state.items[0], {
10416
+ now: props.now,
10417
+ buttonVariant: props.buttonVariant ?? "primary",
10418
+ buttonText: props.buttonText ?? "Book"
10419
+ }, props) : CardListItems({
10208
10420
  Carousel: props.Carousel,
10209
10421
  Title: "h4",
10210
10422
  presentation: props,
@@ -10215,6 +10427,74 @@ function offeringGroupCards(state, props, dates) {
10215
10427
  default: return assertNever$1(state);
10216
10428
  }
10217
10429
  }
10430
+ /** The existing booking projection owns prices, availability and sold-out/waitlist actions. */
10431
+ function renderNextOfferingCard(item, options, presentation = {}) {
10432
+ const { content, inProgress } = nextOfferingCardContent(item, options);
10433
+ const cardPresentation = {
10434
+ ...presentation,
10435
+ buttonVariant: options.buttonVariant
10436
+ };
10437
+ return /* @__PURE__ */ jsxs("article", {
10438
+ ...listLookSlot(cardPresentation, "item"),
10439
+ className: "offerings-preview-next-card rb-flex rb-flex-col rb-gap-3",
10440
+ children: [presentation.showPhotos !== false && content.media ? /* @__PURE__ */ jsx("div", {
10441
+ ...listLookSlot(cardPresentation, "item-media"),
10442
+ style: {
10443
+ width: "min(100%, 14rem)",
10444
+ aspectRatio: "1",
10445
+ borderRadius: "50%",
10446
+ overflow: "hidden",
10447
+ marginInline: "auto"
10448
+ },
10449
+ children: /* @__PURE__ */ jsx(MediaNodeServer, {
10450
+ ...listLookSlot(cardPresentation, "photo"),
10451
+ value: content.media,
10452
+ size: ImagePresets.card,
10453
+ style: {
10454
+ width: "100%",
10455
+ height: "100%",
10456
+ objectFit: "cover"
10457
+ }
10458
+ })
10459
+ }) : null, /* @__PURE__ */ jsxs("div", {
10460
+ ...listLookSlot(cardPresentation, "item-body"),
10461
+ className: "rb-flex rb-flex-col rb-gap-3",
10462
+ children: [inProgress ? /* @__PURE__ */ jsx("p", { children: "In progress" }) : null, [
10463
+ "title",
10464
+ "schedule",
10465
+ "facts",
10466
+ "action"
10467
+ ].map((part) => /* @__PURE__ */ jsx(React.Fragment, { children: /* @__PURE__ */ jsx(CardListContentPart, {
10468
+ part,
10469
+ item: content,
10470
+ presentation: cardPresentation,
10471
+ Title: "h4"
10472
+ }) }, part))]
10473
+ })]
10474
+ });
10475
+ }
10476
+ function nextOfferingCardContent(item, options) {
10477
+ const event = item.kind === "event" ? item.event : item.run.representative;
10478
+ const projected = eventCardListContent(event, {
10479
+ kind: "offering",
10480
+ now: options.now,
10481
+ nextStartMs: null
10482
+ }, options.buttonText);
10483
+ const inProgress = offeringRunLifecycle(event, options.now) === "in_progress";
10484
+ const course = item.kind === "run" ? item.run.run.listing?.course : void 0;
10485
+ return {
10486
+ content: course ? {
10487
+ ...projected,
10488
+ title: course.title,
10489
+ eyebrowFacts: course.facts,
10490
+ quickFacts: void 0
10491
+ } : projected,
10492
+ inProgress
10493
+ };
10494
+ }
10495
+ function isPreviewOnlyArrangement(arrangement) {
10496
+ return arrangement === "next-cards" || arrangement === "course-groups";
10497
+ }
10218
10498
  //#endregion
10219
10499
  //#region ../blocks/src/system/runtime/nodes/weekly-slot-availability.view.tsx
10220
10500
  function pluralizeWeeks(count) {
@@ -10616,10 +10896,10 @@ function renderCombinedSsr(display, prefetchedEvents) {
10616
10896
  function renderListSsr(display, hydration) {
10617
10897
  const { initialToday, timeZone } = hydration.calendarContext;
10618
10898
  const week = display.listBy === "week" ? buildEventListWeek(initialToday, display.startOfWeek, timeZone) : null;
10619
- const listing = buildEventCalendarListingDisplay(display, hydration.prefetchedEvents);
10620
- const listDisplay = week === null ? listing : {
10621
- ...listing,
10622
- week: eventListWeekDays(week, initialToday, timeZone)
10899
+ const listDisplay = {
10900
+ ...buildEventCalendarListingDisplay(display, hydration.prefetchedEvents),
10901
+ weekGrouping: eventWeekGroupingContext(initialToday, timeZone, display.startOfWeek),
10902
+ ...week === null ? {} : { week: eventListWeekDays(week, initialToday, timeZone) }
10623
10903
  };
10624
10904
  return /* @__PURE__ */ jsxs(Fragment, { children: [week !== null ? /* @__PURE__ */ jsx(EventListWeekNavigation, {
10625
10905
  ...display,
@@ -11427,4 +11707,4 @@ const serverComponentRegistry = {
11427
11707
  ...buildServerRegistryFromEntries(runtimeBackedBlockServerEntries)
11428
11708
  };
11429
11709
  //#endregion
11430
- export { sectionHeaderLayoutNodes as $, normalizeLocationMapSource as $t, eventRegistrationBlockDefinition as A, lookSlot as At, markEditableSurfaceForwarding as B, PUBLIC_DOWNLOAD_MEDIA_TYPES as Bt, cartBlockDefinition as C, resolveRepeaterGridColumnFieldId as Cn, text as Ct, eventCalendarBlockDefinition as D, linkSchema as Dn, lookLeadSlotTransform as Dt, shopBlockDefinition as E, RESOLVED_INTERNAL_LINK_ENTITY_TYPES as En, lookCarouselRegionTransform as Et, cardListPhotoNumberFields as F, createSdkSelectField as Ft, normalizeMailingListBlockContent as G, testimonialsReadiness as Gt, desktopOnlyDisplay as H, chosenString as Ht, cardListPresentationBindings as I, createSiteOptionSelectField as It, createBlockManifest as J, pageTemplateFromEntry as Jt, formBlockDefinition as K, admitReadinessFacts as Kt, cardListSectionActionFields as L, normalizeSelectSource as Lt, FEATURE_CARD_ICON_TREATMENTS as M, composeFragments as Mt, cardListSectionAction as N, defineFragment as Nt, eventListingBlockDefinition as O, lookQuoteLimitTransform as Ot, cardListKnobFields as P, parseBlockIconValue as Pt, sectionHeaderFields as Q, normalizeLocationMapProps as Qt, normalizeCardListContent as R, parseFieldDefinition as Rt, checkoutBlockDefinition as S, parseRepeaterGridInteger as Sn, stack as St, productListBlockDefinition as T, resolveRepeaterGridSpanFieldId as Tn, when as Tt, mobileOnlyDisplay as U, galleryReadiness as Ut, splitPositioningClasses as V, augmentManifest as Vt, teamMemberCardBiographyFallback as W, teamReadiness as Wt, withApiBindings as X, LOCATION_MAP_DEFAULTS as Xt, formEmbedFragment as Y, unavailableReadinessFact as Yt, formCopyFragment as Z, LOCATION_MAP_LIMITS as Zt, publicAppointmentLocationSchema as _, ICON_CONFIG as _n, media as _t, buildLoadedOfferingsPreviewListing as a, layoutField as an, accordionList as at, sanitizeNewsletterSignupPublicContent as b, DEFAULT_MEDIA_FIELD_KINDS as bn, richText as bt, HeaderSectionFrame as c, sectionStylesField as cn, button as ct, accordionIconColorStyle as d, createButtonGroup as dn, fileDownload as dt, resolveLocationMapLocation as en, resolveBackgroundColorValue as et, resolveAccordionIconStyle as f, createButtonVariantField as fn, form as ft, formatAppointmentPrice as g, ACCORDION_TRIGGER_LETTER_SPACING as gn, link as gt, formatAppointmentLocation as h, ACCORDION_TRIGGER_FONT_SCALE as hn, inline as ht, WeeklySlotAvailabilityView as i, eventDisplayFields as in, backgroundFrame as it, FEATURE_CARD_GENERATED_ICON_SIZE_PX as j, buildFragmentDataLoaders as jt, mapDrawingStyleBinding as k, lookSkinSlotTransform as kt, accordionItemPartSlots as l, BACKGROUND_POSITION_PRESET_VALUES as ln, carousel as lt, formatAppointmentDuration as m, ACCORDION_SPACING_MAP as mn, icon as mt, runtimeBackedBlockModes as n, columnsField as nn, styledContainer as nt, LocationMapSSR as o, cardStylesField as on, bind as ot, SectionNode as p, ACCORDION_OPEN_ACCENT_THICKNESS as pn, headerSection as pt, formDataSchema as q, loadedReadinessFact as qt, runtimeBackedBlockServerEntries as r, emptyStateField as rn, sectionContainer as rt, buildAppointmentServicesView as s, containerStylesField as sn, bookingForm as st, serverComponentRegistry as t, cardStylingFields as tn, styledSection as tt, accordionLookAttributes as u, getAnchorClasses as un, el as ut, publicAppointmentPricingSchema as v, ICON_SIZE_PX as vn, props as vt, productDetailBlockDefinition as w, resolveRepeaterGridRowFieldId as wn, videoEmbed as wt, giftingBlockDefinition as x, isAcceptedRepeaterGridSpan as xn, section as xt, newsletterSignupBlockDefinition as y, bindingSchema as yn, repeat as yt, composeHeaderSectionWrapperClassName as z, parseFieldDefinitions as zt };
11710
+ export { backgroundFrame as $, chosenString as $t, mapDrawingStyleBinding as A, ICON_SIZE_PX as An, cardListKnobFields as At, normalizeMailingListBlockContent as B, parseFieldDefinitions as Bt, checkoutBlockDefinition as C, createButtonGroup as Cn, repeat as Ct, shopBlockDefinition as D, ACCORDION_TRIGGER_FONT_SCALE as Dn, text as Dt, productListBlockDefinition as E, ACCORDION_SPACING_MAP as En, stack as Et, markEditableSurfaceForwarding as F, resolveRepeaterGridColumnFieldId as Fn, parseBlockIconValue as Ft, withApiBindings as G, eventReadinessQueryKeys as Gt, formDataSchema as H, augmentManifest as Ht, splitPositioningClasses as I, resolveRepeaterGridRowFieldId as In, createSdkSelectField as It, sectionHeaderLayoutNodes as J, eventDiscoveryFilterKeys as Jt, formCopyFragment as K, eventReadinessResultSchema as Kt, desktopOnlyDisplay as L, resolveRepeaterGridSpanFieldId as Ln, createSiteOptionSelectField as Lt, FEATURE_CARD_GENERATED_ICON_SIZE_PX as M, DEFAULT_MEDIA_FIELD_KINDS as Mn, cardListPresentationBindings as Mt, FEATURE_CARD_ICON_TREATMENTS as N, isAcceptedRepeaterGridSpan as Nn, cardListSectionActionFields as Nt, eventCalendarBlockDefinition as O, ACCORDION_TRIGGER_LETTER_SPACING as On, videoEmbed as Ot, composeHeaderSectionWrapperClassName as P, parseRepeaterGridInteger as Pn, normalizeCardListContent as Pt, sectionContainer as Q, resolveEventScope as Qt, mobileOnlyDisplay as R, RESOLVED_INTERNAL_LINK_ENTITY_TYPES as Rn, normalizeSelectSource as Rt, giftingBlockDefinition as S, getAnchorClasses as Sn, props as St, productDetailBlockDefinition as T, ACCORDION_OPEN_ACCENT_THICKNESS as Tn, section as Tt, createBlockManifest as U, eventReadinessLoaderKey as Ut, formBlockDefinition as V, PUBLIC_DOWNLOAD_MEDIA_TYPES as Vt, formEmbedFragment as W, eventReadinessQuery as Wt, styledSection as X, eventScopeQuery as Xt, resolveBackgroundColorValue as Y, eventScopeLoaderParam as Yt, styledContainer as Z, eventScopeQueryKeys as Zt, publicAppointmentLocationSchema as _, layoutField as _n, headerSection as _t, buildLoadedOfferingsPreviewListing as a, loadedReadinessFact as an, lookLeadSlotTransform as at, newsletterSignupBlockDefinition as b, sectionStylesField as bn, link as bt, HeaderSectionFrame as c, LOCATION_MAP_DEFAULTS as cn, lookSlot as ct, accordionIconColorStyle as d, normalizeLocationMapSource as dn, bookingForm as dt, galleryReadiness as en, buildFragmentDataLoaders as et, resolveAccordionIconStyle as f, resolveLocationMapLocation as fn, button as ft, formatAppointmentPrice as g, eventDisplayFields as gn, form as gt, formatAppointmentLocation as h, emptyStateField as hn, fileDownload as ht, WeeklySlotAvailabilityView as i, hiddenFromVisitors as in, lookCarouselRegionTransform as it, eventRegistrationBlockDefinition as j, bindingSchema as jn, cardListPhotoNumberFields as jt, eventListingBlockDefinition as k, ICON_CONFIG as kn, when as kt, accordionItemPartSlots as l, LOCATION_MAP_LIMITS as ln, accordionList as lt, formatAppointmentDuration as m, columnsField as mn, el as mt, runtimeBackedBlockModes as n, testimonialsReadiness as nn, defineFragment as nt, LocationMapSSR as o, pageTemplateFromEntry as on, lookQuoteLimitTransform as ot, SectionNode as p, cardStylingFields as pn, carousel as pt, sectionHeaderFields as q, eventWeekReadScope as qt, runtimeBackedBlockServerEntries as r, admitReadinessFacts as rn, cardListSectionAction as rt, buildAppointmentServicesView as s, unavailableReadinessFact as sn, lookSkinSlotTransform as st, serverComponentRegistry as t, teamReadiness as tn, composeFragments as tt, accordionLookAttributes as u, normalizeLocationMapProps as un, bind as ut, publicAppointmentPricingSchema as v, cardStylesField as vn, icon as vt, cartBlockDefinition as w, createButtonVariantField as wn, richText as wt, sanitizeNewsletterSignupPublicContent as x, BACKGROUND_POSITION_PRESET_VALUES as xn, media as xt, offeringCourseSlotParents as y, containerStylesField as yn, inline as yt, teamMemberCardBiographyFallback as z, linkSchema as zn, parseFieldDefinition as zt };