@riverbankcms/sdk 0.170.0 → 0.171.1

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 (221) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/dist/_dts/{BlocksIslandsHydrator-B2i5CY_X.d.ts → BlocksIslandsHydrator-D-6cWDDC.d.ts} +1 -1
  3. package/dist/_dts/{Page-BSZjbeRK.d.ts → Page-4jkUDm4D.d.ts} +13 -11
  4. package/dist/_dts/{SdkPreviewMode-BZpPBMcu.d.ts → SdkPreviewMode-DEvzvovi.d.ts} +4 -3
  5. package/dist/_dts/{client-x82SZgwK.d.ts → client-CXPH5esD.d.ts} +32 -1
  6. package/dist/_dts/{content-types-CODkxsZy.d.ts → content-types-DsCr4-ny.d.ts} +3 -3
  7. package/dist/_dts/{contracts-Lyfhmbjf.d.ts → contracts-BlmXM7xP.d.ts} +5 -3
  8. package/dist/_dts/{footerPageOutline-BShG2GAV.d.ts → footerPageOutline-BA0DnxWU.d.ts} +6 -6
  9. package/dist/_dts/{generatePageMetadata-DLhUW3xK.d.ts → generatePageMetadata-B7IRJCFG.d.ts} +2 -2
  10. package/dist/_dts/{index-B7Mq5M6P.d.ts → index-B3gfKNI-.d.ts} +4 -4
  11. package/dist/_dts/{index-C3rMEJ5a.d.ts → index-BQPJbOkU.d.ts} +2 -2
  12. package/dist/_dts/{index-CstY6ZMa.d.ts → index-BZ8-c4iQ.d.ts} +3 -3
  13. package/dist/_dts/{index-B82pqQAC.d.ts → index-C9_OTCFQ.d.ts} +2 -2
  14. package/dist/_dts/{index-BisbMZTW.d.ts → index-DScYSl03.d.ts} +72 -36
  15. package/dist/_dts/{index-CCugONHM.d.ts → index-DlABXDte.d.ts} +1 -1
  16. package/dist/_dts/{index-DXc_ewhR.d.ts → index-Sua-7CF1.d.ts} +1 -1
  17. package/dist/_dts/{loadContent-BoqtbbhP.d.ts → loadContent-Dx4fW3Pa.d.ts} +7 -7
  18. package/dist/_dts/{request-CJ_ClHLv.d.ts → request-DUTkELQn.d.ts} +66062 -63545
  19. package/dist/_dts/{resolveBlockData-DFExYkJ4.d.ts → resolveBlockData-Cze35i_N.d.ts} +5 -5
  20. package/dist/_dts/{resolvePageContent-D-WvpC_d.d.ts → resolvePageContent-zf6-E-C3.d.ts} +2 -2
  21. package/dist/_dts/{runtime-BY8DQBbT.d.ts → runtime-BEoNgYbd.d.ts} +2 -2
  22. package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
  23. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  24. package/dist/_dts/sdk/src/client.d.ts +7 -7
  25. package/dist/_dts/sdk/src/config/index.d.ts +6 -6
  26. package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
  27. package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
  28. package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
  29. package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
  30. package/dist/_dts/sdk/src/data/types.d.ts +2 -2
  31. package/dist/_dts/sdk/src/index.d.ts +8 -8
  32. package/dist/_dts/sdk/src/manifest/index.d.ts +7 -7
  33. package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
  34. package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
  35. package/dist/_dts/sdk/src/next/index.d.ts +7 -7
  36. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  37. package/dist/_dts/sdk/src/page-converter/index.d.ts +4 -4
  38. package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
  39. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  40. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  41. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  42. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  43. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  44. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
  45. package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
  46. package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
  47. package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
  48. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  49. package/dist/_dts/sdk/src/rendering/server.d.ts +3 -2
  50. package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
  51. package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
  52. package/dist/_dts/sdk/src/server.d.ts +5 -5
  53. package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
  54. package/dist/_dts/sdk/src/theme/index.d.ts +4740 -3
  55. package/dist/_dts/{types-990t4t99.d.ts → types-BCzfYDW2.d.ts} +7 -7
  56. package/dist/_dts/{types-CbjK5ZLy.d.ts → types-CPHk5Voq.d.ts} +2 -2
  57. package/dist/_dts/{types-CpuxuS40.d.ts → types-JD-36x3P.d.ts} +3 -3
  58. package/dist/_dts/{validation-BN95LiS0.d.ts → validation-0MyQlzWJ.d.ts} +17 -17
  59. package/dist/client/{BlocksIslandsHydrator-B1Tkg-ZW.mjs → BlocksIslandsHydrator-vTHQyBQF.mjs} +17 -17
  60. package/dist/client/{BookingMailingListNote-Br1VyHkP.mjs → BookingMailingListNote-Blge9FJo.mjs} +7 -7
  61. package/dist/client/{StepIndicator-BK0GEDoP.mjs → BookingPanelArrangement-wm6eeuin.mjs} +16 -4
  62. package/dist/client/{BookingQuestionFields-LLGCWjvU.mjs → BookingQuestionFields-BlaCItmH.mjs} +5 -5
  63. package/dist/client/{CalendarNavigationChevron-CH7z2m47.mjs → CalendarNavigationChevron-DRH9qFny.mjs} +7 -7
  64. package/dist/client/{CheckboxChoice-W_uiRgDK.mjs → CheckboxChoice-B65wFjqx.mjs} +1 -1
  65. package/dist/client/{DemoBookingPortalAccess-Cilv5zdS.mjs → DemoBookingPortalAccess-DPGZArG9.mjs} +7 -7
  66. package/dist/client/{EventCalendar.client-LXUHJEi7.mjs → EventCalendar.client-FGg6yCLH.mjs} +9 -9
  67. package/dist/client/{EventCombined.client-DpugEJLB.mjs → EventCombined.client-218_Gqgp.mjs} +8 -8
  68. package/dist/client/{EventEmbeddedCheckoutStep-Cf-HRHtb.mjs → EventEmbeddedCheckoutStep-DKKRCuta.mjs} +1 -1
  69. package/dist/client/{EventItem-gFuZn-dE.mjs → EventItem-DKdZSW_R.mjs} +10 -7
  70. package/dist/client/{EventListWeekNavigation-D-kLg1jQ.mjs → EventListWeekNavigation-DZJ5qBhg.mjs} +1 -1
  71. package/dist/client/{EventListing.client-BNACUaxV.mjs → EventListing.client-CCdsrqHc.mjs} +3 -3
  72. package/dist/client/{EventListing.view-CtVfe3VG.mjs → EventListing.view-BVoHnVZA.mjs} +42 -396
  73. package/dist/client/{EventRegistrationPayment-CqH3hE-k.mjs → EventRegistrationPayment-BVxHCnxs.mjs} +13 -13
  74. package/dist/client/{LocationMapActions-BFp2uQQQ.mjs → LocationMapActions-QahdLtdE.mjs} +2 -2
  75. package/dist/client/{MapDrawingSvg-DDWfmgpA.mjs → MapDrawingSvg-Dy6UMuIw.mjs} +1 -1
  76. package/dist/client/{Page-PW4Ojv9r.mjs → Page-CT4HaEMr.mjs} +2706 -2441
  77. package/dist/client/{ProtectedSubmitButton-C3H26pN9.mjs → ProtectedSubmitButton-AOUzjDK9.mjs} +1 -1
  78. package/dist/client/StepIndicator-DRJy4eU3.mjs +894 -0
  79. package/dist/client/{TabBarFragment-DkVKtK5a.mjs → TabBarFragment-CsAufYwT.mjs} +1 -1
  80. package/dist/client/{ThemedButton-BdnEwA38.mjs → ThemedButton-BMDHwnM6.mjs} +1 -1
  81. package/dist/client/{accessibleSurfaces-_7jkuinl.mjs → accessibleSurfaces-BnyVRqdU.mjs} +73 -26
  82. package/dist/client/{accordion-DMItWylU.mjs → accordion-BOApxi9U.mjs} +1 -1
  83. package/dist/client/{booking-form.client-wd71DG19.mjs → booking-form.client-DDf8Lmo5.mjs} +79 -42
  84. package/dist/client/{bookingForm-Cyr2qeS1.mjs → bookingForm-DWrgG-Xx.mjs} +4 -4
  85. package/dist/client/bookings.mjs +6 -6
  86. package/dist/client/boxStyleClassNames-7MVCNWgc.mjs +369 -0
  87. package/dist/client/{carousel-B5-Hzzif.mjs → carousel-DeI76SEP.mjs} +2 -2
  88. package/dist/client/{carousel.client-eSSr1oYA.mjs → carousel.client-YF4mUK5t.mjs} +1 -1
  89. package/dist/client/{cart-wlRXnOjO.mjs → cart-D_uxULCO.mjs} +3 -3
  90. package/dist/client/{cart.client-CfpnxTUZ.mjs → cart.client-BxSMse88.mjs} +1 -1
  91. package/dist/client/{checkout-Dnu9W8IA.mjs → checkout-DIbh4g5e.mjs} +3 -3
  92. package/dist/client/{checkout.client-ovtyXyn0.mjs → checkout.client-x4Lkw8-E.mjs} +1 -1
  93. package/dist/client/{checkoutUrls-CY8qywXl.mjs → checkoutUrls-DqN3L-kl.mjs} +1 -1
  94. package/dist/client/client.mjs +656 -220
  95. package/dist/client/{context-Xhf81Q-c.mjs → context-Dzjv2CpA.mjs} +10 -1
  96. package/dist/client/{creditProducts-CMOmhWm2.mjs → creditProducts-BTRX4edc.mjs} +54 -23
  97. package/dist/client/{cta-CfuyGqXL.mjs → cta-CP9l112u.mjs} +2 -2
  98. package/dist/client/{dateFormatting-Bv6kjUW3.mjs → dateFormatting-BfurxGwg.mjs} +1 -1
  99. package/dist/client/{demoPortalMagicLink-DQtwf_s2.mjs → demoPortalMagicLink-D0dcPsRE.mjs} +1 -1
  100. package/dist/client/{display-DDNmyb0z.mjs → display-ChgDe9Da.mjs} +3186 -81
  101. package/dist/client/{enhanceHeaderSection-D7gRy-pL.mjs → enhanceHeaderSection-BEjg_h_6.mjs} +4 -4
  102. package/dist/client/{event-details.client-DZZaoCUc.mjs → event-details.client-COmbQ3mc.mjs} +3 -2
  103. package/dist/client/{event-registration.client-CLBdHUfd.mjs → event-registration.client-BvQG3qEY.mjs} +48 -34
  104. package/dist/client/{eventCalendar-B4VbblGN.mjs → eventCalendar-DiitbUpV.mjs} +4 -4
  105. package/dist/client/{eventCombined-e2AvbA0u.mjs → eventCombined-Da9Z8KDq.mjs} +4 -4
  106. package/dist/client/{eventDetails-DIJYMzVg.mjs → eventDetails-Cf-kg7d6.mjs} +2 -2
  107. package/dist/client/{eventListing-C0bpAR1t.mjs → eventListing-xwXgVp7a.mjs} +4 -4
  108. package/dist/client/{eventRegistration-DyseP_sY.mjs → eventRegistration-hlFYlgTA.mjs} +4 -4
  109. package/dist/client/{form-Cfl8d6qc.mjs → form-ERv_X_oZ.mjs} +3 -3
  110. package/dist/client/{form.client-D3_RF29v.mjs → form.client-Cz24FYNj.mjs} +5 -5
  111. package/dist/client/{form.parts-DWLf_3PF.mjs → form.parts-DeaH4kIe.mjs} +3 -3
  112. package/dist/client/{formatDate-BGlhrmhF.mjs → formatDate-Cjouxh4Y.mjs} +1 -1
  113. package/dist/client/gifting/client.mjs +3 -3
  114. package/dist/client/{headerSection-CyNGt23J.mjs → headerSection-CJvt0ZP4.mjs} +2 -2
  115. package/dist/client/{newsletter-form.client-IfLup4o0.mjs → newsletter-form.client-WuGDEzdD.mjs} +6 -6
  116. package/dist/client/{newsletter-form.parts-DDD-LRyW.mjs → newsletter-form.parts-DhnW6tdB.mjs} +2 -2
  117. package/dist/client/{newsletterForm-Bn7HVbuq.mjs → newsletterForm-DxG7NV8U.mjs} +3 -3
  118. package/dist/client/{noop-B_f7RqLD.mjs → noop-poI1m2yW.mjs} +69 -2
  119. package/dist/client/portal/client.mjs +294 -48
  120. package/dist/client/{product-detail.client-BXeLqkCE.mjs → product-detail.client-DsSfbmdV.mjs} +1 -1
  121. package/dist/client/{product-list.client-C627X8DQ.mjs → product-list.client-Byzow88i.mjs} +1 -1
  122. package/dist/client/{productDetail-B-K_hd7Y.mjs → productDetail-iXkmQpxG.mjs} +3 -3
  123. package/dist/client/{productList-BNZAsfaP.mjs → productList-HoFGQXFl.mjs} +3 -3
  124. package/dist/client/{propsDecoder-Dc8j5i79.mjs → propsDecoder-CH2-LJME.mjs} +8 -4
  125. package/dist/client/{registry.server-CBg2M6Uj.mjs → registry.server-ed20Q7bV.mjs} +1021 -931
  126. package/dist/client/rendering/client.mjs +57 -32
  127. package/dist/client/rendering/islands.mjs +1 -1
  128. package/dist/client/rendering.mjs +1956 -191
  129. package/dist/client/{richText-coerce-BTurYEao.mjs → richText-coerce-CtoGLZ_e.mjs} +1 -1
  130. package/dist/client/{routeIslandApiConfig-DFjRKvzM.mjs → routeIslandApiConfig-CBUO-xuz.mjs} +1 -1
  131. package/dist/client/{runtimeResponse-BGU8sMZY.mjs → runtimeResponse-3brbt2Jq.mjs} +1 -1
  132. package/dist/client/runtimeResponse-CTarP5K6.mjs +3 -0
  133. package/dist/client/{shop-PgmiVKSV.mjs → shop-DXyeSNgi.mjs} +3 -3
  134. package/dist/client/{shop-commerce-DkgvZAQS.mjs → shop-commerce--klkHNzu.mjs} +13 -13
  135. package/dist/client/{shop-commerce-store-D9CHihQv.mjs → shop-commerce-store-BdpIWdc4.mjs} +1 -1
  136. package/dist/client/{shop.client-DDFRt6OU.mjs → shop.client-Sv7QVDmj.mjs} +13 -13
  137. package/dist/client/{shop.interactive-BH0xDlMF.mjs → shop.interactive-C0IjiWOs.mjs} +89 -19
  138. package/dist/client/{shopShared-BEfD0e4m.mjs → shopShared-Jt4TzcAG.mjs} +2 -2
  139. package/dist/client/spam-protection.mjs +1 -1
  140. package/dist/client/{timetableModel-GsDrJxxw.mjs → timetableModel-BxbnEJCi.mjs} +11 -11
  141. package/dist/client/{types-5fOsPIpL.mjs → types-B0hJldSt.mjs} +2 -0
  142. package/dist/client/{useAvailableSlots-GP8tnAVW.mjs → useAvailableSlots-ByHedoBi.mjs} +4 -8
  143. package/dist/client/{useDiscountApply-Cq07nTyG.mjs → useDiscountApply-dToQs9oY.mjs} +2 -2
  144. package/dist/client/{useDiscountCodeUi-CD82QX5i.mjs → useDiscountCodeUi-C_aa_H69.mjs} +1 -1
  145. package/dist/client/{useEventPagination-DGl4Jeuz.mjs → useEventPagination--MFZBoJt.mjs} +7 -7
  146. package/dist/client/{view-CgComegl.mjs → view-C_brMDU2.mjs} +3 -3
  147. package/dist/client/{view-oToSpu1N.mjs → view-DhEwiTJG.mjs} +121 -28
  148. package/dist/preview-next/before-render.mjs +33 -13
  149. package/dist/preview-next/client/{EventEmbeddedCheckoutStep-8-qtHjpb.mjs → EventEmbeddedCheckoutStep-CKe4cjZ4.mjs} +1 -1
  150. package/dist/preview-next/client/{LocationPickerEnvironment-CwxRbAs2.mjs → LocationPickerEnvironment-OwAxA2C0.mjs} +1 -1
  151. package/dist/preview-next/client/{MapLibreEditMap-CKjYUp_E.mjs → MapLibreEditMap-CaUOTCSh.mjs} +2 -2
  152. package/dist/preview-next/client/{ArrangementLookControls-DJQrgD5f.mjs → PageSectionToolbar-Dfi8Y3AI.mjs} +660 -359
  153. package/dist/preview-next/client/{PreviewEditorSidebar-DWU6X6Y-.mjs → PreviewEditorSidebar-DJlX4sXP.mjs} +3597 -3217
  154. package/dist/preview-next/client/{PreviewEditorUI-C-X0ptC3.mjs → PreviewEditorUI-FVAibBlC.mjs} +126 -138
  155. package/dist/preview-next/client/{PreviewShell-C1WUNsj9.mjs → PreviewShell-9eAon7Z8.mjs} +21 -11
  156. package/dist/preview-next/client/{SdkPreviewModeRuntime-Cs2QFT7k.mjs → SdkPreviewModeRuntime-Byf-KW1x.mjs} +95 -404
  157. package/dist/preview-next/client/{SiteChromeCustomizeButton-CcZ_ERvZ.mjs → SiteChromeCustomizeButton-eU-zMftO.mjs} +2507 -364
  158. package/dist/preview-next/client/{ThemedButton-BQU45t-E.mjs → ThemedButton-CKYjeU_M.mjs} +2 -0
  159. package/dist/preview-next/client/{lucide-react-DbC1o6_9.mjs → lucide-react-X0DjcFij.mjs} +1 -1
  160. package/dist/preview-next/client/{previewAssistantSlot-CSs9S8wr.mjs → previewAssistantSlot-3FZrzbK8.mjs} +6961 -6657
  161. package/dist/preview-next/client/{previewChromeRoot-B2OTurZH.mjs → previewChromeRoot-C4gyNQXE.mjs} +1 -1
  162. package/dist/preview-next/client/runtime.mjs +3 -3
  163. package/dist/preview-next/client/{sdk-runtime-CBIwYDyi.mjs → sdk-runtime-DtyRbz4E.mjs} +2 -2
  164. package/dist/preview-next/client/{useAutosaveStatus-DoWvGNPA.mjs → useAutosaveStatus-OIMkhbkP.mjs} +2 -2
  165. package/dist/preview-next/client/{useBlockCustomizeControls-WOs8Atje.mjs → useOpenBlockForSetup-BNG9P9sM.mjs} +134 -6
  166. package/dist/preview-next/container-responsive.css +43 -0
  167. package/dist/preview-next/editor-base.css +14 -4
  168. package/dist/preview-next/keepAlive.mjs +1 -1
  169. package/dist/preview-next/middleware.mjs +1 -1
  170. package/dist/preview-next/{route-contract-BLYaenrK.mjs → route-contract-BLY4ycq6.mjs} +563 -190
  171. package/dist/server/{Block.shared-Dx4j9CJT.mjs → Block.shared-BC3jPIP4.mjs} +4 -4
  172. package/dist/server/{ThemeScopeCore-B0IfeNNZ.mjs → ThemeScopeCore-B7Ey6AWT.mjs} +4 -4
  173. package/dist/server/{accessibleSurfaces-D0q5tLSW.mjs → accessibleSurfaces-BxsHs-jf.mjs} +52 -2
  174. package/dist/server/bindings-xQ9v3zrn.mjs +1802 -0
  175. package/dist/server/{block-kinds-CdI7NvAW.mjs → block-kinds-DkzOr19P.mjs} +2 -0
  176. package/dist/server/{client-Djjv-NuA.mjs → client-DCwLR0kQ.mjs} +654 -218
  177. package/dist/server/config-template-validation.mjs +30 -4
  178. package/dist/server/config-validation.mjs +1 -1
  179. package/dist/server/config.mjs +3 -34
  180. package/dist/server/data/resolveBlockData.mjs +1 -1
  181. package/dist/server/index.mjs +3 -3
  182. package/dist/server/loadContent-C4I3ltU_.mjs +2310 -0
  183. package/dist/server/{loadPage-QXSdPSYY.mjs → loadPage-COvxWN0r.mjs} +2 -2
  184. package/dist/server/manifest.mjs +1 -1
  185. package/dist/server/next.mjs +8 -6
  186. package/dist/server/{opaqueSurface-Yltv_u7r.mjs → opaqueSurface-QiUjZmEV.mjs} +2 -2
  187. package/dist/server/{overrideResolution-CMNx5tQg.mjs → overrideResolution-BqQg6Iws.mjs} +3 -2
  188. package/dist/server/page-converter.mjs +3 -3
  189. package/dist/server/pageRegions-BaeEF2MU.mjs +30 -0
  190. package/dist/server/{pageRenderPlan-Bv6NbFeM.mjs → pageRenderPlan-CVCGTj5S.mjs} +306 -287
  191. package/dist/server/{pageRuntimeSupport-B2laBtff.mjs → pageRuntimeSupport-C7Be9suN.mjs} +48 -35
  192. package/dist/server/{pageShared-CE9EBNSH.mjs → pageShared-H_bSBPLd.mjs} +848 -315
  193. package/dist/server/parseThemeForPersistence-Bk0o95m6.mjs +52 -0
  194. package/dist/server/{prebuild-FBA6Y1K7.mjs → prebuild-HQNOeCs9.mjs} +1 -1
  195. package/dist/server/prebuild.mjs +1 -1
  196. package/dist/server/{prefetchBlockData-yL2hB2l_.mjs → prefetchBlockData-CbRsnhta.mjs} +4 -3
  197. package/dist/server/{registry-Djrj9gWy.mjs → registry-CaeRTf4E.mjs} +4014 -2007
  198. package/dist/server/rendering/components/pageShared.mjs +1 -1
  199. package/dist/server/rendering/helpers/loadPage.mjs +1 -1
  200. package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
  201. package/dist/server/rendering/server.mjs +3 -3
  202. package/dist/server/rendering.mjs +7 -7
  203. package/dist/server/{resolveBlockData-CyeIjmqx.mjs → resolveBlockData-CUMjWbXQ.mjs} +4 -3
  204. package/dist/server/{resolveButtonColourStates-Cn6j8Ee0.mjs → resolveButtonColourStates-euZnRMIu.mjs} +23 -24
  205. package/dist/server/rich-text-CRcONdyM.mjs +33 -0
  206. package/dist/server/{richTextSchema-DQ2NBP0n.mjs → richTextSchema-QLaQrbII.mjs} +31 -2
  207. package/dist/server/{parseThemeForPersistence-BebSeE17.mjs → schema-CxBsE9Dv.mjs} +463 -53
  208. package/dist/server/server.mjs +3 -3
  209. package/dist/server/theme-bridge.mjs +2 -2
  210. package/dist/server/theme.mjs +2 -1
  211. package/dist/server/{three-pass-converter-CQWdnfjV.mjs → three-pass-converter-Bsfdy_ZV.mjs} +11 -8
  212. package/dist/server/{validation-Dh8htd6l.mjs → validation-CvmhnkDr.mjs} +9 -9
  213. package/dist/server/{version-LMwnoksN.mjs → version-Clp2evCf.mjs} +1 -1
  214. package/dist/styles/index.css +408 -10
  215. package/package.json +1 -1
  216. package/dist/client/StepIndicator-CR7_0yu4.mjs +0 -432
  217. package/dist/client/runtimeResponse-D2LT--Gj.mjs +0 -3
  218. package/dist/preview-next/client/useOpenBlockForSetup-CipKCK2O.mjs +0 -28
  219. package/dist/server/bindings-C1-MNwwS.mjs +0 -257
  220. package/dist/server/headerVariant-8O5MvxIU.mjs +0 -464
  221. package/dist/server/loadContent-DhraQ_Fi.mjs +0 -578
@@ -1,32 +1,34 @@
1
1
  "use client";
2
- import { $t as normalizeEventSurfaceScope, Bt as getCardOrientation, D as publicGiftingOffersResponseSchema, G as normalizeOfferingsPreviewItemLimit, H as buildOfferingsPreviewListing, Ht as Grid, J as resolveOfferingsPreviewGroups, Jt as formatEventPriceDisplay, K as offeringsListingFor, Kt as formatEventPrice, M as buildEventRegistrationInteractiveIslandProps, Nt as catalogueEventCardProps, O as buildFormInteractiveIslandProps, P as eventRegistrationBlockRuntime, Pt as listingEventCardProps, Qt as normalizeEventSurfacePresets, S as newsletterFormBlockRuntime, T as giftingBlockRuntime, Ut as buildEventListWeek, V as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, Vt as getContainerClass, Wt as eventListWeekDays, Xt as normalizeEventScheduleScope, Y as resolveOfferingsRenderInput, Yt as normalizeEventCategoryIds, Zt as normalizeEventStaffMemberId, _ as shopProductPresentation, _t as buildEventListingInteractiveIslandProps, a as buildShopInteractiveIslandProps, an as staticHeaderChromeRuntime, at as buildEventCombinedInteractiveIslandProps, b as buildNewsletterFormInteractiveIslandProps, c as checkoutBlockRuntime, cn as splitSiteChromePlacementClasses, d as productDetailBlockRuntime, dn as parseMailingListPlacementTargeting, en as normalizeEventVenueId, ft as eventCalendarBlockRuntime, h as shopBlockRuntime, ht as recurringScheduleProjectionSchema, i as buildProductListInteractiveIslandProps, it as occurrenceContextSchema, k as formBlockRuntime, lt as buildEventCalendarInteractiveIslandProps, n as buildCheckoutInteractiveIslandProps, o as cartBlockRuntime, ot as buildEventCombinedListingDisplay, p as productListBlockRuntime, pn as DEFAULT_MAILING_LIST_TARGETING, q as resolveOfferingsPreviewGroupCta, r as buildProductDetailInteractiveIslandProps, st as eventCombinedBlockRuntime, t as buildCartInteractiveIslandProps, un as assessMailingListTargeting, ut as buildEventCalendarListingDisplay, v as publicProductsResponseSchema, vt as eventListingBlockRuntime, w as buildGiftingInteractiveIslandProps, x as newsletterBlockSubmissionMessage, y as NEWSLETTER_SIGNUPS_PAUSED_MESSAGE, zt as MediaNodeServer } from "./shop.interactive-BH0xDlMF.mjs";
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";
3
3
  import { f as err, p as ok } from "./renderableMediaAssetAdmission-BlfqYLJW.mjs";
4
- import { $n as canJoinEventWaitlistOnAnyMode, Bn as formatCalendarTitle, Cn as RichText, Fn as buildCalendarViewport, Gi as listLookSlot, Gn as formatEventHourLabel, Io as resolveExactOrFreePriceDisplay, Jn as formatTime, Ki as lookListPresentationSchemaShape, Li as normalizeEventRegistrationPageSurfaceSubject, Lo as resolvePricingOptionsPriceDisplay, Pn as resolvePublicMediaUrl, Ri as resolveEventRegistrationScopedEvents, Rn as eventDateOptions, Si as isBlockButtonRole, Ui as listItemPresentation, Un as formatEventCompactDateRail, Ya as arrangementSlotNames, Yn as groupEventsByDate, Zn as resolveRuntimeEventDestination, _o as nextLiveRunSessionStartMs, bi as BLOCK_BUTTON_ROLE_OPTIONS, dr as buildBookingFormInteractiveIslandProps, io as cardVariantRoleValues, ir as getEventAvailabilityStatus, ko as formatBookingPriceDisplay, lr as groupPublicEventsByRun, mo as parseAspectRatioValue, or as isEventFull, po as sanitizeHref, qn as formatEventTimeRange, rr as getEventAvailability, sa as compiledRuntimeStyleFieldNames, vo as orderedLiveRunSessions, wn as ImagePresets, yo as resolveWholeSeriesBookingPhase } from "./display-DDNmyb0z.mjs";
5
- import { At as trimmedStringOrNull, C as normalizeEventCalendarDisplayMode$1, Dt as projectPublicLocation, Et as parseLocationValue, Mt as formatDate, O as arrangementModes, Ot as publicLocationSchema$1, S as isEventCalendarListLayout, Tt as normalizeLocationAddressText, Zt as resolveBookingBusinessTimeZone, _ as eventCalendarListLayoutOptions, b as isEventCalendarDefaultView, et as runtimeMediaSchema, it as mediaTypeDiscriminants, kt as toLocationCoordinates, nt as PUBLIC_FILE_FIELD_KINDS, o as publicMembershipProductCollectionSchema, p as calendarWindowPageSchema, q as RichTextDocSchema, rt as isDisplayMediaKind, s as publicPassProductCollectionSchema, tn as toUtcIsoDateTimeString, v as eventCalendarVariantMeaning, x as isEventCalendarDisplayMode, z as publicEventsArraySchema } from "./noop-B_f7RqLD.mjs";
6
- import { M as assertNever$1 } from "./creditProducts-CMOmhWm2.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";
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 { B as mergeStyles, F as resolveThemeColorReferenceValue, L as backgroundColorStyle, U as textColorStyle, V as rgbColorValue, o as serializeSurfaceTree } from "./accessibleSurfaces-_7jkuinl.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-GsDrJxxw.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";
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-5fOsPIpL.mjs";
13
- import { C as asPartialObject, _ as DEFAULT_SECTION_SPACING, a as EventCard, c as boxStyleClassNames, d as normalizeBoxStylesBorder, f as resolveCardRoleForBoxStyles, i as EventCompactRow, r as EmptyState, t as EventListingFrameView } from "./EventListing.view-CtVfe3VG.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-BdnEwA38.mjs";
15
- import { a as deriveEventScheduleSummary, i as eventCardListContent, n as resolveEventDetailsPresentation, o as derivePreviewRunSchedule, t as EventDetailsView } from "./view-oToSpu1N.mjs";
16
- import { n as resolveEventCta, r as resolveEventLinkProps } from "./cta-CfuyGqXL.mjs";
17
- import { i as SvgNode, o as formatEventLocation } from "./MapDrawingSvg-DDWfmgpA.mjs";
18
- import { n as CardListItems, r as EventItem } from "./EventItem-gFuZn-dE.mjs";
19
- import { c as CalendarDayHeaders, i as CombinedLookFrame, l as buildMonthDay, n as WeekAgendaView, o as MonthLookView, u as resolveMonthSelectedDay } from "./CalendarNavigationChevron-CH7z2m47.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";
20
22
  import { t as resolveDedicatedBookingHref } from "./bookingRoute-D6DlxYx6.mjs";
21
23
  import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
24
+ import { t as BookingPanelArrangement } from "./BookingPanelArrangement-wm6eeuin.mjs";
22
25
  import { t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-4o4_hl34.mjs";
23
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";
24
- import { t as coerceRichTextDoc } from "./richText-coerce-BTurYEao.mjs";
25
- import { a as PassPurchaseUnavailable, c as ProductDetailView, d as ShopPurchaseAction, f as VariantSelectView, i as PassCardView, l as ProductGalleryFrameView, n as CheckoutShellView, o as PassesMembershipsSectionView, r as MembershipCardView, s as ProductCardView, t as CartShellView, u as ProductListSectionView } from "./view-CgComegl.mjs";
26
- import { n as EventListWeekNavigation, t as EventListWeekEmptyState } from "./EventListWeekNavigation-D-kLg1jQ.mjs";
27
- import { i as RegistrationClosedState, r as BookingEntryCard, t as StepIndicator } from "./StepIndicator-CR7_0yu4.mjs";
28
- import { n as FormSubmitAction, t as FormFieldGroups } from "./form.parts-DWLf_3PF.mjs";
29
- import { a as partitionNewsletterFields, n as NewsletterSubmitRow, r as NewsletterTopicChips, t as NewsletterExtraField } from "./newsletter-form.parts-DDD-LRyW.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";
30
32
  import React, { forwardRef } from "react";
31
33
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
32
34
  import { z } from "zod";
@@ -185,7 +187,7 @@ function parseWeeklyOpeningHours(value) {
185
187
  //#endregion
186
188
  //#region ../site-contracts/src/siteData/venues.ts
187
189
  /** Additive map DTO; hidden venues retain only their public name and area. */
188
- const publicVenueMapLocationSchema = publicLocationSchema$1.unwrap().extend({
190
+ const publicVenueMapLocationSchema = publicLocationSchema.unwrap().extend({
189
191
  name: z.string().optional(),
190
192
  area: z.string().nullable().optional(),
191
193
  addressWithBooking: z.boolean().optional()
@@ -351,7 +353,7 @@ const uiSchema = z.object({
351
353
  allowDirectInput: z.boolean().optional(),
352
354
  pattern: z.string().optional(),
353
355
  placeholder: z.string().optional(),
354
- visibleWhen: visibleWhenSchema.optional(),
356
+ visibleWhen: z.optional(visibleWhenSchema),
355
357
  modalConfig: z.object({
356
358
  buttonLabel: z.string().optional(),
357
359
  description: z.string().optional(),
@@ -890,13 +892,13 @@ const nodeSchema = z.object({
890
892
  type: z.string().min(1, "Node type is required"),
891
893
  key: z.string().optional(),
892
894
  props: nodePropsSchema.optional(),
893
- children: z.lazy(() => nodeSchema.array().default([])).optional(),
895
+ children: z.lazy(() => z.array(nodeSchema).default([])).optional(),
894
896
  $bind: bindingSchema.optional(),
895
897
  $repeat: repeatSchema.optional(),
896
898
  $when: conditionSchema.optional(),
897
899
  $scopes: dataScopeSchema.array().optional()
898
900
  });
899
- const nodeTreeSchema = nodeSchema.array().or(nodeSchema);
901
+ const nodeTreeSchema = z.union([z.array(nodeSchema), nodeSchema]);
900
902
  const NodeSchema = nodeSchema;
901
903
  const NodeTreeSchema = nodeTreeSchema;
902
904
  //#endregion
@@ -1088,7 +1090,8 @@ function createButtonGroup(options = {}) {
1088
1090
  sm: 2
1089
1091
  },
1090
1092
  flattenInRepeater,
1091
- hideLabel: !showGroupLabel
1093
+ hideLabel: !showGroupLabel,
1094
+ intent: "content"
1092
1095
  },
1093
1096
  schema: { fields: [...mainFields, ...iconFields] },
1094
1097
  required: false
@@ -1559,7 +1562,7 @@ function createBoxStylesFieldWithDepth(type, options = {}) {
1559
1562
  contextName: "card"
1560
1563
  }
1561
1564
  };
1562
- const { id = defaults[type].id, label = defaults[type].label, includeBackground = true, renderInHeader, intent } = options;
1565
+ const { id = defaults[type].id, label = defaults[type].label, includeBackground = true, renderInHeader, intent = "style" } = options;
1563
1566
  const contextName = defaults[type].contextName;
1564
1567
  const fields = [];
1565
1568
  if (includeBackground) fields.push(createBackgroundField({
@@ -1722,7 +1725,7 @@ function createBoxStylesFieldWithDepth(type, options = {}) {
1722
1725
  schema: { fields },
1723
1726
  ui: {
1724
1727
  ...typeof renderInHeader === "boolean" ? { renderInHeader } : {},
1725
- ...intent ? { intent } : {},
1728
+ intent,
1726
1729
  modalConfig: {
1727
1730
  buttonLabel: label,
1728
1731
  description: `Configure background, spacing, elevation, and rounded corners for the ${contextName}.`,
@@ -1803,7 +1806,7 @@ function cardStylesField(options = {}) {
1803
1806
  return createBoxStylesFieldWithDepth("card", options);
1804
1807
  }
1805
1808
  function createRoleOnlyCardStylesField(options) {
1806
- const { id = "_cardStyles", label = "Card styles", renderInHeader, intent } = options;
1809
+ const { id = "_cardStyles", label = "Card styles", renderInHeader, intent = "style" } = options;
1807
1810
  return {
1808
1811
  id,
1809
1812
  type: "modal",
@@ -1824,7 +1827,7 @@ function createRoleOnlyCardStylesField(options) {
1824
1827
  }] },
1825
1828
  ui: {
1826
1829
  ...typeof renderInHeader === "boolean" ? { renderInHeader } : {},
1827
- ...intent ? { intent } : {},
1830
+ intent,
1828
1831
  modalConfig: {
1829
1832
  buttonLabel: label,
1830
1833
  description: "Choose the site-style card role.",
@@ -2800,203 +2803,258 @@ function resolveBlockIconRenderValue(value, generatedAssets = /* @__PURE__ */ ne
2800
2803
  }
2801
2804
  }
2802
2805
  //#endregion
2803
- //#region ../blocks/src/system/helpers/api-bindings.ts
2804
- /**
2805
- * Standard API bindings that all interactive blocks need.
2806
- */
2807
- const apiBindings = {
2808
- now: { $bind: { from: "$root.now" } },
2809
- siteId: { $bind: { from: "$root.siteId" } },
2810
- apiBaseUrl: { $bind: { from: "$root.apiBaseUrl" } }
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";
2838
+ }
2811
2839
  };
2812
- function withApiBindings(props, options) {
2840
+ function defineFragment(config) {
2841
+ const parsed = fragmentConfigSchema.parse(config);
2842
+ const fields = parseFieldDefinitions(parsed.fields);
2843
+ validateFieldDefinitions(fields, parsed.id);
2813
2844
  return {
2814
- ...options?.includeApiBaseUrl ?? true ? apiBindings : {
2815
- siteId: apiBindings.siteId,
2816
- now: apiBindings.now
2817
- },
2818
- ...props
2845
+ ...parsed,
2846
+ fields: fields.map((field) => cloneFieldDefinition(field)),
2847
+ layout: parsed.layout.map((node) => ({ ...node }))
2819
2848
  };
2820
2849
  }
2821
- //#endregion
2822
- //#region ../blocks/src/utils/env.ts
2823
- /**
2824
- * Environment detection utilities
2825
- *
2826
- * Provides type-safe environment detection without relying on `any`-typed globals.
2827
- */
2828
- /**
2829
- * Check if the current environment is development.
2830
- *
2831
- * Returns true if NODE_ENV is not 'production', or if NODE_ENV cannot be determined
2832
- * (which is the safe default for validation and warnings).
2833
- *
2834
- * @returns true if in development mode, false if in production
2835
- */
2836
- function isDevEnvironment() {
2837
- try {
2838
- if (typeof process !== "undefined" && true) return true;
2839
- return true;
2840
- } catch {
2841
- return true;
2842
- }
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));
2843
2854
  }
2844
- //#endregion
2845
- //#region ../blocks/src/system/node/types.ts
2846
- /**
2847
- * List of reserved keys (for runtime validation).
2848
- * Kept in sync with the ReservedNodeKeys type above.
2849
- */
2850
- const RESERVED_KEYS = [
2851
- "children",
2852
- "key",
2853
- "$bind",
2854
- "$when",
2855
- "$repeat",
2856
- "$scopes"
2857
- ];
2858
- /**
2859
- * Type guard to check if props contain reserved keys at runtime.
2860
- * Use this in development mode to catch bugs early.
2861
- *
2862
- * @param props - Props object to validate
2863
- * @returns Array of reserved keys found in props, or empty array if none
2864
- */
2865
- function findReservedKeysInProps(props) {
2866
- if (!props) return [];
2867
- return RESERVED_KEYS.filter((key) => key in props);
2855
+ function scopeFragmentLayout(fragment, scope) {
2856
+ const normalizedScope = scope.trim();
2857
+ return fragment.layout.map((node) => cloneAndScopeNode(node, normalizedScope));
2868
2858
  }
2869
- /**
2870
- * Validates that props don't contain reserved keys.
2871
- * Throws in development, warns in production.
2872
- *
2873
- * @param props - Props to validate
2874
- * @param context - Context for error message (e.g., "el('grid', ...)")
2875
- */
2876
- function validateProps(props, context = "node builder") {
2877
- const reserved = findReservedKeysInProps(props);
2878
- if (reserved.length === 0) return;
2879
- 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.`;
2880
- if (isDevEnvironment()) throw new TypeError(message);
2881
- else console.error(message);
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);
2866
+ }
2882
2867
  }
2883
- //#endregion
2884
- //#region ../blocks/src/system/node/builder.ts
2885
- function normalizeChildren(children) {
2886
- if (!children) return void 0;
2887
- const flat = children.flat().filter(Boolean);
2888
- return flat.length > 0 ? flat : void 0;
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;
2889
2876
  }
2890
- function el(type, props, children, ...mods) {
2891
- validateProps(props, `el('${type}', ...)`);
2892
- const node = {
2893
- type,
2894
- ...props && Object.keys(props).length > 0 ? { props } : {},
2895
- ...children && children.length ? { children: normalizeChildren(children) } : {}
2896
- };
2897
- if (mods && mods.length > 0) {
2898
- const validMods = mods.filter((mod) => typeof mod === "function");
2899
- if (validMods.length > 0) return devValidate(validMods.reduce((acc, fn) => fn(acc), node));
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 };
2900
2892
  }
2901
- return devValidate(node);
2902
- }
2903
- const section = (props, children, ...mods) => el("section", props, children, ...mods);
2904
- const headerSection = (props, children, ...mods) => el("headerSection", props, children, ...mods);
2905
- const stack = (props, children, ...mods) => el("stack", props, children, ...mods);
2906
- const inline = (props, children, ...mods) => el("inline", props, children, ...mods);
2907
- const accordion = (props, children, ...mods) => el("accordion", props, children, ...mods);
2908
- const accordionItem = (props, children, ...mods) => el("accordionItem", props, children, ...mods);
2909
- const carousel = (props, children, ...mods) => el("carousel", {
2910
- mode: "legacy",
2911
- ...props
2912
- }, children, ...mods);
2913
- const text = (props, ...mods) => el("text", props, void 0, ...mods);
2914
- const richText = (props, ...mods) => el("richText", props, void 0, ...mods);
2915
- const icon = (props, ...mods) => el("icon", props, void 0, ...mods);
2916
- const media = (props, ...mods) => el("media", props, void 0, ...mods);
2917
- const fileDownload = (props, ...mods) => el("file-download", props, void 0, ...mods);
2918
- const videoEmbed = (props, ...mods) => el("videoEmbed", props, void 0, ...mods);
2919
- const button = (props, children, ...mods) => el("button", props, children, ...mods);
2920
- const link = (props, children, ...mods) => el("link", props, children, ...mods);
2921
- const form = (props, children, ...mods) => el("form", props, children, ...mods);
2922
- const bookingForm = (props, children, ...mods) => el("booking-form", props, children, ...mods);
2923
- const eventRegistration = (props, children, ...mods) => el("event-registration", props, children, ...mods);
2924
- const shop = (props, children, ...mods) => el("shop", props, children, ...mods);
2925
- const productList = (props, children, ...mods) => el("product-list", props, children, ...mods);
2926
- const productDetail = (props, children, ...mods) => el("product-detail", props, children, ...mods);
2927
- const cart = (props, children, ...mods) => el("cart", props, children, ...mods);
2928
- const checkout = (props, children, ...mods) => el("checkout", props, children, ...mods);
2929
- const gifting = (props, children, ...mods) => el("gifting", props, children, ...mods);
2930
- function bind(from, options) {
2931
- return (node) => ({
2932
- ...node,
2933
- $bind: {
2934
- from,
2935
- ...options?.fallback !== void 0 ? { fallback: options.fallback } : {},
2936
- ...options?.transforms ? { transforms: options.transforms } : {},
2937
- ...options?.pick ? { pick: options.pick } : {},
2938
- ...options?.coerce ? { coerce: options.coerce } : {}
2939
- }
2940
- });
2893
+ if (field.type === "group") return {
2894
+ ...field,
2895
+ schema: { fields: field.schema.fields.map(cloneFieldDefinition) }
2896
+ };
2897
+ return { ...field };
2941
2898
  }
2942
- function when(path, options) {
2943
- return (node) => ({
2944
- ...node,
2945
- $when: {
2946
- when: { from: path },
2947
- ...options?.equals !== void 0 ? { equals: options.equals } : {},
2948
- ...options?.not ? { not: true } : {},
2949
- ...options?.authoringPresence ? { authoringPresence: options.authoringPresence } : {}
2950
- }
2951
- });
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 };
2952
2903
  }
2953
- function repeat(collectionPath, itemName = "item", options) {
2954
- return (node) => ({
2955
- ...node,
2956
- $repeat: {
2957
- collection: {
2958
- from: collectionPath,
2959
- pick: "collection"
2960
- },
2961
- itemName,
2962
- ...options?.indexName ? { indexName: options.indexName } : {},
2963
- ...options?.limit ? { limit: options.limit } : {},
2964
- ...options?.sortBy ? { sortBy: {
2965
- path: options.sortBy.path,
2966
- direction: options.sortBy.direction ?? "asc"
2967
- } } : {}
2968
- }
2969
- });
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;
2970
2916
  }
2971
- function props(extra) {
2972
- validateProps(extra, "props() modifier");
2973
- return (node) => ({
2974
- ...node,
2975
- props: {
2976
- ...node.props ?? {},
2977
- ...extra
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;
2924
+ }
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;
2935
+ }
2936
+ function scopeCondition(condition, scope) {
2937
+ return {
2938
+ ...condition,
2939
+ when: scopeBinding(condition.when, scope)
2940
+ };
2941
+ }
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) };
2978
2953
  }
2979
- });
2954
+ const result = {};
2955
+ for (const [key, entry] of Object.entries(value)) result[key] = scopePropValue(entry, scope);
2956
+ return result;
2957
+ }
2958
+ return value;
2980
2959
  }
2981
- function accordionList({ collection, itemName = "item", indexName, accordionProps = null, itemProps = null, triggerFrom, contentFrom, valueFrom }, ...mods) {
2982
- const resolvedIndexName = indexName ?? `${itemName}Index`;
2983
- const resolvedValuePath = valueFrom === null ? null : valueFrom ?? resolvedIndexName;
2984
- const baseItemProps = {
2985
- ...itemProps ?? {},
2986
- trigger: { $bind: { from: triggerFrom } }
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
2987
3002
  };
2988
- if (contentFrom) baseItemProps.content = { $bind: { from: contentFrom } };
2989
- if (resolvedValuePath) baseItemProps.value = { $bind: { from: resolvedValuePath } };
2990
- return accordion(accordionProps ?? void 0, [accordionItem(baseItemProps, void 0, repeat(collection, itemName, { indexName: resolvedIndexName }))], ...mods);
2991
3003
  }
2992
- function devValidate(node) {
2993
- try {
2994
- if (isDevEnvironment()) {
2995
- const res = NodeSchema.safeParse(node);
2996
- if (!res.success) console.warn("[blocks:builder] Invalid node produced by builder", res.error.format());
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
+ });
2997
3022
  }
2998
- } catch {}
2999
- return node;
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);
3028
+ }
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
+ };
3039
+ }
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;
3045
+ }
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;
3000
3058
  }
3001
3059
  //#endregion
3002
3060
  //#region ../blocks/src/system/customize/testimonialCount.ts
@@ -3039,93 +3097,273 @@ const lookCarouselRegionTransform = {
3039
3097
  run: (value, options) => typeof value === "string" && value.trim() ? value.trim() : options?.fallback ?? "Carousel"
3040
3098
  };
3041
3099
  //#endregion
3042
- //#region ../blocks/src/system/node/fragments/backgroundLayer.ts
3043
- 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";
3100
+ //#region ../blocks/src/utils/env.ts
3044
3101
  /**
3045
- * Creates background layer nodes for rendering backgrounds from field data.
3046
- *
3047
- * This helper generates three nodes:
3048
- * 1. A style layer (div) that renders solid colors and gradients
3049
- * 2. A media layer that conditionally renders background images/videos
3050
- * 3. An overlay layer (div) that renders color/gradient overlays on images
3051
- *
3052
- * The layers are designed to be placed behind content (z-index -10) and work
3053
- * with data from `sectionStylesField`, `containerStylesField`, or `cardStylesField`.
3054
- *
3055
- * Layer stacking order (all use -z-10, stacking determined by DOM order):
3056
- * - Content (default z-index, rendered last)
3057
- * - Overlay layer (rendered third, above image due to DOM order)
3058
- * - Image layer (rendered second)
3059
- * - Style layer (rendered first, at bottom)
3060
- *
3061
- * @param path - The data path to the background field (e.g., '_sectionStyles.background')
3062
- * @param options - Optional customization for layer appearance
3063
- * @returns Array of NodeDefinition objects in paint order: style, optional image, overlay
3102
+ * Environment detection utilities
3064
3103
  *
3065
- * @example
3066
- * // Basic usage in a block
3067
- * const heroBackgroundNodes = backgroundLayer('_sectionStyles.background')
3104
+ * Provides type-safe environment detection without relying on `any`-typed globals.
3105
+ */
3106
+ /**
3107
+ * Check if the current environment is development.
3068
3108
  *
3069
- * @example
3070
- * // Custom styling
3071
- * const customBackgroundNodes = backgroundLayer('_sectionStyles.background', {
3072
- * imageClassName: 'rb-absolute rb-inset-0 rb-z-neg-10 rb-h-full rb-w-full rb-object-cover rb-opacity-30'
3073
- * })
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).
3074
3111
  *
3075
- * @example
3076
- * // In a block layout
3077
- * const layout = section(
3078
- * { background: 'background' },
3079
- * [
3080
- * ...backgroundLayer('_sectionStyles.background'),
3081
- * sectionContainer([])
3082
- * ]
3083
- * )
3112
+ * @returns true if in development mode, false if in production
3084
3113
  */
3085
- function backgroundLayer(path, options = {}) {
3086
- const { styleClassName = "background-style rb-absolute rb-inset-0 rb-z-neg-10 rb-h-full rb-w-full rb-pointer-events-none", imageClassName, overlayClassName = "background-overlay rb-absolute rb-inset-0 rb-z-neg-10 rb-h-full rb-w-full rb-pointer-events-none", fallbackToken, omitImageLayer = false, imageLoading, imageFetchPriority, imageSlot } = options;
3087
- const styleLayer = el("div", {
3088
- className: styleClassName,
3089
- style: { $bind: {
3090
- from: path,
3091
- transforms: [{
3092
- id: "background.resolveStyle",
3093
- ...typeof fallbackToken === "string" && fallbackToken.trim().length > 0 ? { options: { fallbackToken: fallbackToken.trim() } } : {}
3094
- }]
3095
- } }
3096
- });
3097
- const imageLayer = createBackgroundImageNode(path, imageClassName, {
3098
- loading: imageLoading,
3099
- fetchPriority: imageFetchPriority,
3100
- slot: imageSlot
3101
- });
3102
- const overlayLayer = createBackgroundOverlayNode(path, overlayClassName);
3103
- return omitImageLayer ? [styleLayer, overlayLayer] : [
3104
- styleLayer,
3105
- imageLayer,
3106
- overlayLayer
3107
- ];
3114
+ function isDevEnvironment() {
3115
+ try {
3116
+ if (typeof process !== "undefined" && true) return true;
3117
+ return true;
3118
+ } catch {
3119
+ return true;
3120
+ }
3108
3121
  }
3122
+ //#endregion
3123
+ //#region ../blocks/src/system/node/types.ts
3109
3124
  /**
3110
- * Wrap decorative background layers in their own clipping frame.
3111
- *
3112
- * Foreground content remains outside this frame, so editor outlines, focus
3113
- * rings, and floating controls are never clipped by a visual background.
3114
- * Backgrounds that explicitly opt into overflow keep that behavior within
3115
- * the decorative layer rather than changing the content root.
3125
+ * List of reserved keys (for runtime validation).
3126
+ * Kept in sync with the ReservedNodeKeys type above.
3116
3127
  */
3117
- function backgroundFrame(path, options = {}) {
3118
- const { leadingNodes = [], frameSlot, ...layerOptions } = options;
3119
- const framedLayerOptions = {
3120
- ...layerOptions,
3121
- styleClassName: layerOptions.styleClassName ?? "background-style rb-absolute rb-inset-0 rb-z-0 rb-h-full rb-w-full rb-pointer-events-none",
3122
- imageClassName: layerOptions.imageClassName ?? "rb-absolute rb-z-0",
3123
- overlayClassName: layerOptions.overlayClassName ?? "background-overlay rb-absolute rb-inset-0 rb-z-0 rb-h-full rb-w-full rb-pointer-events-none"
3124
- };
3125
- return el("div", {
3126
- ...frameSlot ? lookSlot(frameSlot) : {},
3127
- className: { $bind: {
3128
- from: path,
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);
3160
+ }
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;
3167
+ }
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));
3178
+ }
3179
+ return devValidate(node);
3180
+ }
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
+ });
3219
+ }
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
+ });
3230
+ }
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
+ });
3248
+ }
3249
+ function props(extra) {
3250
+ validateProps(extra, "props() modifier");
3251
+ return (node) => ({
3252
+ ...node,
3253
+ props: {
3254
+ ...node.props ?? {},
3255
+ ...extra
3256
+ }
3257
+ });
3258
+ }
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 } }
3265
+ };
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);
3269
+ }
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());
3275
+ }
3276
+ } catch {}
3277
+ return node;
3278
+ }
3279
+ //#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'),
3319
+ * sectionContainer([])
3320
+ * ]
3321
+ * )
3322
+ */
3323
+ function backgroundLayer(path, options = {}) {
3324
+ const { styleClassName = "background-style rb-absolute rb-inset-0 rb-z-neg-10 rb-h-full rb-w-full rb-pointer-events-none", imageClassName, overlayClassName = "background-overlay rb-absolute rb-inset-0 rb-z-neg-10 rb-h-full rb-w-full rb-pointer-events-none", fallbackToken, omitImageLayer = false, imageLoading, imageFetchPriority, imageSlot } = options;
3325
+ const styleLayer = el("div", {
3326
+ className: styleClassName,
3327
+ style: { $bind: {
3328
+ from: path,
3329
+ transforms: [{
3330
+ id: "background.resolveStyle",
3331
+ ...typeof fallbackToken === "string" && fallbackToken.trim().length > 0 ? { options: { fallbackToken: fallbackToken.trim() } } : {}
3332
+ }]
3333
+ } }
3334
+ });
3335
+ const imageLayer = createBackgroundImageNode(path, imageClassName, {
3336
+ loading: imageLoading,
3337
+ fetchPriority: imageFetchPriority,
3338
+ slot: imageSlot
3339
+ });
3340
+ const overlayLayer = createBackgroundOverlayNode(path, overlayClassName);
3341
+ return omitImageLayer ? [styleLayer, overlayLayer] : [
3342
+ styleLayer,
3343
+ imageLayer,
3344
+ overlayLayer
3345
+ ];
3346
+ }
3347
+ /**
3348
+ * Wrap decorative background layers in their own clipping frame.
3349
+ *
3350
+ * Foreground content remains outside this frame, so editor outlines, focus
3351
+ * rings, and floating controls are never clipped by a visual background.
3352
+ * Backgrounds that explicitly opt into overflow keep that behavior within
3353
+ * the decorative layer rather than changing the content root.
3354
+ */
3355
+ function backgroundFrame(path, options = {}) {
3356
+ const { leadingNodes = [], frameSlot, ...layerOptions } = options;
3357
+ const framedLayerOptions = {
3358
+ ...layerOptions,
3359
+ styleClassName: layerOptions.styleClassName ?? "background-style rb-absolute rb-inset-0 rb-z-0 rb-h-full rb-w-full rb-pointer-events-none",
3360
+ imageClassName: layerOptions.imageClassName ?? "rb-absolute rb-z-0",
3361
+ overlayClassName: layerOptions.overlayClassName ?? "background-overlay rb-absolute rb-inset-0 rb-z-0 rb-h-full rb-w-full rb-pointer-events-none"
3362
+ };
3363
+ return el("div", {
3364
+ ...frameSlot ? lookSlot(frameSlot) : {},
3365
+ className: { $bind: {
3366
+ from: path,
3129
3367
  transforms: [{
3130
3368
  id: "background.resolveFrameClassName",
3131
3369
  options: { baseClass: BACKGROUND_FRAME_BASE_CLASS }
@@ -3277,422 +3515,168 @@ function styledContainer(config) {
3277
3515
  ...safeRootProps,
3278
3516
  style: { $bind: {
3279
3517
  from: `${bindFrom}.background`,
3280
- transforms: [{
3281
- id: "background.resolveColorsStyle",
3282
- options: { arrangementInherits: true }
3283
- }]
3284
- } },
3285
- className: { $bind: {
3286
- from: bindFrom,
3287
- transforms: [constrainWidth ? {
3288
- id: "containerStyles.resolveBoxClassName",
3289
- options: { baseClass: baseClassName }
3290
- } : {
3291
- id: "boxStyles.all",
3292
- options: {
3293
- axis: "all",
3294
- baseClass: baseClassName
3295
- }
3296
- }],
3297
- fallback: constrainWidth ? `${baseClassName} rb-container` : baseClassName
3298
- } }
3299
- }, [when("content._lookSlots", { not: true })(backgroundNode), ...childrenArray]);
3300
- }
3301
- //#endregion
3302
- //#region ../blocks/src/system/node/fragments/styledSection.ts
3303
- /**
3304
- * Create a styled section with automatic background layer and spacing bindings.
3305
- *
3306
- * This helper encapsulates the common pattern of:
3307
- * - Creating a section wrapper with background theme
3308
- * - Adding background color/gradient/image layers
3309
- * - Binding className to section styles with transform
3310
- * - Keeping foreground overflow visible while decorative backgrounds clip independently
3311
- * - Wrapping content children
3312
- *
3313
- * Use this helper to eliminate 25+ lines of boilerplate section setup code.
3314
- *
3315
- * @example
3316
- * // Basic usage with default spacing
3317
- * const layout = styledSection({
3318
- * children: sectionContainer(contentNodes, { gap: 'md' }),
3319
- * });
3320
- *
3321
- * @example
3322
- * // Custom spacing and base padding
3323
- * const compactLayout = styledSection({
3324
- * children: sectionContainer(contentNodes, { gap: 'sm' }),
3325
- * baseClass: 'rb-px-8',
3326
- * spacing: 'compact',
3327
- * });
3328
- *
3329
- * @example
3330
- * // Multiple children
3331
- * const layout = styledSection({
3332
- * children: [
3333
- * heading({ text: 'Title' }),
3334
- * sectionContainer(contentNodes, { gap: 'md' }),
3335
- * ],
3336
- * });
3337
- *
3338
- * @example
3339
- * // Custom binding path (for nested sections)
3340
- * const nestedSection = styledSection({
3341
- * children: content,
3342
- * bindFrom: 'container.styles',
3343
- * });
3344
- */
3345
- function styledSection(config) {
3346
- const { children, baseClass = "rb-px-6", spacing = DEFAULT_SECTION_SPACING, background = "background", bindFrom = "_sectionStyles", imageClassName = "rb-absolute rb-z-0", renderBackgroundImage = true, backgroundImageLoading, backgroundImageFetchPriority, fullWidthPath } = config;
3347
- const renderedBackgroundNode = backgroundFrame(`${bindFrom}.background`, {
3348
- ...config.backgroundLookSlots ? {
3349
- frameSlot: "background",
3350
- imageSlot: "photo"
3351
- } : {},
3352
- imageClassName,
3353
- fallbackToken: background,
3354
- omitImageLayer: !renderBackgroundImage,
3355
- imageLoading: backgroundImageLoading,
3356
- imageFetchPriority: backgroundImageFetchPriority
3357
- });
3358
- const childrenArray = Array.isArray(children) ? children : [children];
3359
- return section(sectionAppearanceProps({
3360
- bindFrom,
3361
- background,
3362
- baseClass,
3363
- spacing,
3364
- fullWidthPath,
3365
- photoPaintsGround: renderBackgroundImage,
3366
- skinSlot: config.skinSlot
3367
- }), [renderedBackgroundNode, ...childrenArray]);
3368
- }
3369
- function sectionAppearanceProps(input) {
3370
- return {
3371
- ...input.skinSlot ? lookSlot(input.skinSlot, "skin") : lookSlot("section"),
3372
- "data-arrangement": { $bind: { from: "content._lookHooks.data-arrangement" } },
3373
- style: { $bind: {
3374
- from: `${input.bindFrom}.background`,
3375
- transforms: [{
3376
- id: "sectionStyles.resolveColorsStyle",
3377
- options: {
3378
- fallbackToken: input.background,
3379
- photoPaintsGround: input.photoPaintsGround
3380
- }
3381
- }]
3382
- } },
3383
- className: { $bind: {
3384
- from: input.bindFrom,
3385
- transforms: [{
3386
- id: "sectionStyles.resolveClassName",
3387
- options: {
3388
- baseClass: input.baseClass,
3389
- defaultSpacing: input.spacing,
3390
- fullWidthPath: input.fullWidthPath
3391
- }
3392
- }]
3393
- } }
3394
- };
3395
- }
3396
- //#endregion
3397
- //#region ../blocks/src/system/transforms/registry/_utils/themeColorResolution.ts
3398
- function resolveBackgroundColorValue(value, context) {
3399
- return resolveThemeColorReferenceValue(value, { palette: context.theme?.palette });
3400
- }
3401
- //#endregion
3402
- //#region ../blocks/src/system/node/fragments/sectionHead.ts
3403
- const recoverEmptyHeadingWhenActive = {
3404
- kind: "recover-empty-when-active",
3405
- placeholder: "Add heading"
3406
- };
3407
- const recoverEmptyDescriptionWhenActive = {
3408
- kind: "recover-empty-when-active",
3409
- placeholder: "Add description"
3410
- };
3411
- function sectionHeaderLayoutNodes(options = {}) {
3412
- const headingNode = text({
3413
- as: "h2",
3414
- ...lookSlot("heading")
3415
- }, bind("content.heading"), when("content.heading", { authoringPresence: recoverEmptyHeadingWhenActive }));
3416
- const descriptionNode = richText({
3417
- className: "rb-prose rb-max-w-none",
3418
- ...lookSlot("intro")
3419
- }, bind("content.description"), when("content.description", { authoringPresence: recoverEmptyDescriptionWhenActive }));
3420
- if (options.splitClassName) return [el("div", {
3421
- className: options.splitClassName,
3422
- ...lookSlot("head")
3423
- }, [headingNode, descriptionNode])];
3424
- return [headingNode, descriptionNode];
3425
- }
3426
- /** Shared optional section copy. Existing consumers keep their description ID. */
3427
- const sectionHeaderFields = (defaultHeading, introLabel = "Description") => [{
3428
- id: "heading",
3429
- type: "text",
3430
- label: "Heading",
3431
- description: "Main heading for the section",
3432
- required: false,
3433
- multiline: false,
3434
- ...defaultHeading === void 0 ? {} : { defaultValue: defaultHeading }
3435
- }, {
3436
- id: "description",
3437
- type: "richText",
3438
- label: introLabel,
3439
- description: "Optional introductory text",
3440
- required: false
3441
- }];
3442
- //#endregion
3443
- //#region ../blocks/src/system/fragments/types.ts
3444
- const FRAGMENT_ID_PATTERN = /^[a-z0-9](?:[a-z0-9._-]*[a-z0-9])?$/i;
3445
- const FIELD_ID_PATTERN = /^[a-z][a-zA-Z0-9_-]*$/;
3446
- const dataLoaderSchema = z.object({
3447
- endpoint: z.string().min(1, "Fragment data loader requires an endpoint"),
3448
- params: z.record(z.string(), z.unknown()).default({}),
3449
- requiredParams: z.array(z.string().min(1)).optional(),
3450
- mode: z.enum(["server", "client"]).default("server")
3451
- });
3452
- const fragmentDataSchema = z.object({
3453
- key: z.string().min(1, "Fragment data key is required"),
3454
- loader: dataLoaderSchema.optional()
3455
- });
3456
- const fragmentConfigSchema = z.object({
3457
- id: z.string().min(1, "Fragment id is required").regex(FRAGMENT_ID_PATTERN, "Fragment id must be alphanumeric with optional . _ - separators"),
3458
- title: z.string().optional(),
3459
- description: z.string().optional(),
3460
- category: z.enum([
3461
- "content",
3462
- "media",
3463
- "interactive",
3464
- "layout"
3465
- ]).optional(),
3466
- icon: z.string().optional(),
3467
- fields: fieldSchema.array().default([]),
3468
- layout: z.union([NodeSchema, NodeSchema.array()]).transform((value) => Array.isArray(value) ? value : [value]),
3469
- data: fragmentDataSchema.optional()
3470
- });
3471
- var FragmentConfigError = class extends Error {
3472
- constructor(message) {
3473
- super(message);
3474
- this.name = "FragmentConfigError";
3475
- }
3476
- };
3477
- function defineFragment(config) {
3478
- const parsed = fragmentConfigSchema.parse(config);
3479
- const fields = parseFieldDefinitions(parsed.fields);
3480
- validateFieldDefinitions(fields, parsed.id);
3481
- return {
3482
- ...parsed,
3483
- fields: fields.map((field) => cloneFieldDefinition(field)),
3484
- layout: parsed.layout.map((node) => ({ ...node }))
3485
- };
3486
- }
3487
- function scopeFragmentFields(fragment, scope) {
3488
- const normalizedScope = scope.trim();
3489
- if (!normalizedScope) return fragment.fields.map((field) => cloneFieldDefinition(field));
3490
- return fragment.fields.map((field) => prefixFieldId(field, normalizedScope));
3491
- }
3492
- function scopeFragmentLayout(fragment, scope) {
3493
- const normalizedScope = scope.trim();
3494
- return fragment.layout.map((node) => cloneAndScopeNode(node, normalizedScope));
3495
- }
3496
- function validateFieldDefinitions(fields, fragmentId) {
3497
- const seen = /* @__PURE__ */ new Set();
3498
- for (const field of fields) {
3499
- if (field.id.includes(".")) throw new FragmentConfigError(`Field "${field.id}" in fragment "${fragmentId}" should not include dot notation; the builder scopes fields automatically.`);
3500
- 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 "-".`);
3501
- if (seen.has(field.id)) throw new FragmentConfigError(`Duplicate field id "${field.id}" found in fragment "${fragmentId}". Field ids must be unique per fragment.`);
3502
- seen.add(field.id);
3503
- }
3504
- }
3505
- function prefixFieldId(field, scope) {
3506
- const cloned = cloneFieldDefinition(field);
3507
- cloned.id = `${scope}.${field.id}`;
3508
- const defaultValue = cloned.defaultValue;
3509
- cloned.defaultValue = cloneUnknown(defaultValue);
3510
- cloned.visibleRoles = cloned.visibleRoles ? [...cloned.visibleRoles] : void 0;
3511
- cloned.ui = cloneUnknown(cloned.ui);
3512
- return cloned;
3513
- }
3514
- function cloneFieldDefinition(field) {
3515
- if (field.type === "repeater") {
3516
- if (field.polymorphic && field.itemTypes) return {
3517
- ...field,
3518
- polymorphic: true,
3519
- itemTypes: Object.fromEntries(Object.entries(field.itemTypes).map(([key, itemType]) => [key, {
3520
- ...itemType,
3521
- fields: itemType.fields.map(cloneFieldDefinition)
3522
- }]))
3523
- };
3524
- if (field.schema) return {
3525
- ...field,
3526
- schema: { fields: field.schema.fields.map(cloneFieldDefinition) }
3527
- };
3528
- return { ...field };
3529
- }
3530
- if (field.type === "group") return {
3531
- ...field,
3532
- schema: { fields: field.schema.fields.map(cloneFieldDefinition) }
3533
- };
3534
- return { ...field };
3535
- }
3536
- function cloneUnknown(value) {
3537
- if (value == null || typeof value !== "object") return value;
3538
- if (Array.isArray(value)) return value.map((entry) => cloneUnknown(entry));
3539
- return { ...value };
3540
- }
3541
- function cloneAndScopeNode(node, scope) {
3542
- const cloned = { ...node };
3543
- if (node.children) cloned.children = node.children.map((child) => cloneAndScopeNode(child, scope));
3544
- if (node.props) cloned.props = scopePropBindings(node.props, scope);
3545
- if (node.$bind) cloned.$bind = scopeBinding(node.$bind, scope);
3546
- if (node.$repeat) cloned.$repeat = scopeRepeat(node.$repeat, scope);
3547
- if (node.$when) cloned.$when = scopeCondition(node.$when, scope);
3548
- if (node.$scopes) cloned.$scopes = node.$scopes.map((entry) => ({
3549
- name: entry.name,
3550
- from: scopeBinding(entry.from, scope)
3551
- }));
3552
- return cloned;
3553
- }
3554
- function scopeBinding(binding, scope) {
3555
- const cloned = {
3556
- ...binding,
3557
- transforms: binding.transforms?.map((step) => ({ ...step })) ?? []
3558
- };
3559
- cloned.from = scopeContentPath(binding.from, scope);
3560
- return cloned;
3561
- }
3562
- function scopeRepeat(repeat, scope) {
3563
- const cloned = {
3564
- ...repeat,
3565
- collection: scopeBinding(repeat.collection, scope)
3566
- };
3567
- if (repeat.sortBy) cloned.sortBy = {
3568
- ...repeat.sortBy,
3569
- path: scopeContentPath(repeat.sortBy.path, scope)
3570
- };
3571
- return cloned;
3572
- }
3573
- function scopeCondition(condition, scope) {
3574
- return {
3575
- ...condition,
3576
- when: scopeBinding(condition.when, scope)
3577
- };
3578
- }
3579
- function scopePropBindings(input, scope) {
3580
- const result = {};
3581
- for (const [key, value] of Object.entries(input)) result[key] = scopePropValue(value, scope);
3582
- return result;
3583
- }
3584
- function scopePropValue(value, scope) {
3585
- if (Array.isArray(value)) return value.map((entry) => scopePropValue(entry, scope));
3586
- if (value && typeof value === "object") {
3587
- if ("$bind" in value) {
3588
- const bindingConfig = value.$bind;
3589
- return { $bind: scopeBinding(bindingConfig, scope) };
3590
- }
3591
- const result = {};
3592
- for (const [key, entry] of Object.entries(value)) result[key] = scopePropValue(entry, scope);
3593
- return result;
3594
- }
3595
- return value;
3596
- }
3597
- function scopeContentPath(path, scope) {
3598
- if (!scope || scope.length === 0) return path;
3599
- if (path === "content") return `content.${scope}`;
3600
- if (path.startsWith("content.")) {
3601
- const remainder = path.slice(8);
3602
- return remainder.length > 0 ? `content.${scope}.${remainder}` : `content.${scope}`;
3603
- }
3604
- if (path.startsWith("content[")) return path.replace(/^content/, `content.${scope}`);
3605
- if (path.startsWith("$root.")) return path;
3606
- if (path.includes(".")) return path;
3607
- return `content.${scope}.${path}`;
3518
+ transforms: [{
3519
+ id: "background.resolveColorsStyle",
3520
+ options: { arrangementInherits: true }
3521
+ }]
3522
+ } },
3523
+ className: { $bind: {
3524
+ from: bindFrom,
3525
+ transforms: [constrainWidth ? {
3526
+ id: "containerStyles.resolveBoxClassName",
3527
+ options: { baseClass: baseClassName }
3528
+ } : {
3529
+ id: "boxStyles.all",
3530
+ options: {
3531
+ axis: "all",
3532
+ baseClass: baseClassName
3533
+ }
3534
+ }],
3535
+ fallback: constrainWidth ? `${baseClassName} rb-container` : baseClassName
3536
+ } }
3537
+ }, [when("content._lookSlots", { not: true })(backgroundNode), ...childrenArray]);
3608
3538
  }
3609
3539
  //#endregion
3610
- //#region ../blocks/src/system/fragments/builder.ts
3611
- var FragmentCompositionError = class extends Error {
3612
- constructor(message) {
3613
- super(message);
3614
- this.name = "FragmentCompositionError";
3615
- }
3616
- };
3617
- const DOT_SCOPE_REGEX = /^[A-Za-z0-9_.-]*$/;
3618
- function materializeFragment(config) {
3619
- const scope = normalizeScope(config.scope);
3620
- const fields = scopeFragmentFields(config.fragment, scope);
3621
- const layout = scopeFragmentLayout(config.fragment, scope);
3622
- const fieldPriority = config.fieldPriority ?? 0;
3623
- let data;
3624
- if (config.fragment.data) {
3625
- const key = config.dataKey ?? config.fragment.data.key;
3626
- if (!key || typeof key !== "string") throw new FragmentCompositionError(`Fragment "${config.fragment.id}" requires a data key to compose.`);
3627
- data = {
3628
- key,
3629
- loader: config.fragment.data.loader ? { ...config.fragment.data.loader } : void 0
3630
- };
3631
- }
3632
- return {
3633
- fragment: config.fragment,
3634
- scope,
3635
- fields,
3636
- layout,
3637
- data,
3638
- fieldPriority
3639
- };
3540
+ //#region ../blocks/src/system/node/fragments/styledSection.ts
3541
+ /**
3542
+ * Create a styled section with automatic background layer and spacing bindings.
3543
+ *
3544
+ * This helper encapsulates the common pattern of:
3545
+ * - Creating a section wrapper with background theme
3546
+ * - Adding background color/gradient/image layers
3547
+ * - Binding className to section styles with transform
3548
+ * - Keeping foreground overflow visible while decorative backgrounds clip independently
3549
+ * - Wrapping content children
3550
+ *
3551
+ * Use this helper to eliminate 25+ lines of boilerplate section setup code.
3552
+ *
3553
+ * @example
3554
+ * // Basic usage with default spacing
3555
+ * const layout = styledSection({
3556
+ * children: sectionContainer(contentNodes, { gap: 'md' }),
3557
+ * });
3558
+ *
3559
+ * @example
3560
+ * // Custom spacing and base padding
3561
+ * const compactLayout = styledSection({
3562
+ * children: sectionContainer(contentNodes, { gap: 'sm' }),
3563
+ * baseClass: 'rb-px-8',
3564
+ * spacing: 'compact',
3565
+ * });
3566
+ *
3567
+ * @example
3568
+ * // Multiple children
3569
+ * const layout = styledSection({
3570
+ * children: [
3571
+ * heading({ text: 'Title' }),
3572
+ * sectionContainer(contentNodes, { gap: 'md' }),
3573
+ * ],
3574
+ * });
3575
+ *
3576
+ * @example
3577
+ * // Custom binding path (for nested sections)
3578
+ * const nestedSection = styledSection({
3579
+ * children: content,
3580
+ * bindFrom: 'container.styles',
3581
+ * });
3582
+ */
3583
+ function styledSection(config) {
3584
+ const { children, baseClass = "rb-px-6", spacing = DEFAULT_SECTION_SPACING, background = "background", bindFrom = "_sectionStyles", imageClassName = "rb-absolute rb-z-0", renderBackgroundImage = true, backgroundImageLoading, backgroundImageFetchPriority, fullWidthPath } = config;
3585
+ const renderedBackgroundNode = backgroundFrame(`${bindFrom}.background`, {
3586
+ ...config.backgroundLookSlots ? {
3587
+ frameSlot: "background",
3588
+ imageSlot: "photo"
3589
+ } : {},
3590
+ imageClassName,
3591
+ fallbackToken: background,
3592
+ omitImageLayer: !renderBackgroundImage,
3593
+ imageLoading: backgroundImageLoading,
3594
+ imageFetchPriority: backgroundImageFetchPriority
3595
+ });
3596
+ const childrenArray = Array.isArray(children) ? children : [children];
3597
+ return section(sectionAppearanceProps({
3598
+ bindFrom,
3599
+ background,
3600
+ baseClass,
3601
+ spacing,
3602
+ fullWidthPath,
3603
+ photoPaintsGround: renderBackgroundImage,
3604
+ skinSlot: config.skinSlot
3605
+ }), [renderedBackgroundNode, ...childrenArray]);
3640
3606
  }
3641
- function composeFragments(instances) {
3642
- const fieldEntries = [];
3643
- const layouts = [];
3644
- const dataEntries = [];
3645
- const scopes = [];
3646
- const seenFieldIds = /* @__PURE__ */ new Set();
3647
- let fieldOrder = 0;
3648
- for (const instance of instances) {
3649
- const materialized = materializeFragment(instance);
3650
- for (const field of materialized.fields) {
3651
- if (seenFieldIds.has(field.id)) throw new FragmentCompositionError(`Duplicate field id "${field.id}" when composing fragments.`);
3652
- seenFieldIds.add(field.id);
3653
- fieldEntries.push({
3654
- id: field.id,
3655
- field,
3656
- priority: materialized.fieldPriority,
3657
- order: fieldOrder++
3658
- });
3659
- }
3660
- scopes.push(materialized.scope);
3661
- layouts.push(...materialized.layout);
3662
- if (materialized.data) {
3663
- if (dataEntries.find((entry) => entry.key === materialized.data?.key)) throw new FragmentCompositionError(`Duplicate fragment data key "${materialized.data.key}" detected.`);
3664
- dataEntries.push(materialized.data);
3665
- }
3666
- }
3607
+ function sectionAppearanceProps(input) {
3667
3608
  return {
3668
- fields: fieldEntries.sort((a, b) => {
3669
- if (a.priority !== b.priority) return a.priority - b.priority;
3670
- return a.order - b.order;
3671
- }).map((entry) => entry.field),
3672
- layout: layouts,
3673
- data: dataEntries,
3674
- scopes
3609
+ ...input.skinSlot ? lookSlot(input.skinSlot, "skin") : lookSlot("section"),
3610
+ "data-arrangement": { $bind: { from: "content._lookHooks.data-arrangement" } },
3611
+ style: { $bind: {
3612
+ from: `${input.bindFrom}.background`,
3613
+ transforms: [{
3614
+ id: "sectionStyles.resolveColorsStyle",
3615
+ options: {
3616
+ fallbackToken: input.background,
3617
+ photoPaintsGround: input.photoPaintsGround
3618
+ }
3619
+ }]
3620
+ } },
3621
+ className: { $bind: {
3622
+ from: input.bindFrom,
3623
+ transforms: [{
3624
+ id: "sectionStyles.resolveClassName",
3625
+ options: {
3626
+ baseClass: input.baseClass,
3627
+ defaultSpacing: input.spacing,
3628
+ fullWidthPath: input.fullWidthPath
3629
+ }
3630
+ }]
3631
+ } }
3675
3632
  };
3676
3633
  }
3677
- function normalizeScope(scope) {
3678
- if (!scope) return "";
3679
- const trimmed = scope.trim();
3680
- if (!DOT_SCOPE_REGEX.test(trimmed)) throw new FragmentCompositionError(`Fragment scope "${scope}" contains invalid characters. Use alphanumeric, ".", "-", or "_".`);
3681
- return trimmed;
3634
+ //#endregion
3635
+ //#region ../blocks/src/system/transforms/registry/_utils/themeColorResolution.ts
3636
+ function resolveBackgroundColorValue(value, context) {
3637
+ return resolveThemeColorReferenceValue(value, { palette: context.theme?.palette });
3682
3638
  }
3683
- function buildFragmentDataLoaders(composition) {
3684
- const loaders = {};
3685
- for (const entry of composition.data) {
3686
- if (!entry?.loader) continue;
3687
- loaders[entry.key] = {
3688
- endpoint: entry.loader.endpoint,
3689
- params: { ...entry.loader.params ?? {} },
3690
- ...entry.loader.requiredParams ? { requiredParams: [...entry.loader.requiredParams] } : {},
3691
- mode: entry.loader.mode ?? "server"
3692
- };
3693
- }
3694
- return loaders;
3639
+ //#endregion
3640
+ //#region ../blocks/src/system/node/fragments/sectionHead.ts
3641
+ const recoverEmptyHeadingWhenActive = {
3642
+ kind: "recover-empty-when-active",
3643
+ placeholder: "Add heading"
3644
+ };
3645
+ const recoverEmptyDescriptionWhenActive = {
3646
+ kind: "recover-empty-when-active",
3647
+ placeholder: "Add description"
3648
+ };
3649
+ function sectionHeaderLayoutNodes(options = {}) {
3650
+ const headingNode = text({
3651
+ as: "h2",
3652
+ ...lookSlot("heading")
3653
+ }, bind("content.heading"), when("content.heading", { authoringPresence: recoverEmptyHeadingWhenActive }));
3654
+ const descriptionNode = richText({
3655
+ className: "rb-prose rb-max-w-none",
3656
+ ...lookSlot("intro")
3657
+ }, bind("content.description"), when("content.description", { authoringPresence: recoverEmptyDescriptionWhenActive }));
3658
+ if (options.splitClassName) return [el("div", {
3659
+ className: options.splitClassName,
3660
+ ...lookSlot("head")
3661
+ }, [headingNode, descriptionNode])];
3662
+ return [headingNode, descriptionNode];
3695
3663
  }
3664
+ /** Shared optional section copy. Existing consumers keep their description ID. */
3665
+ const sectionHeaderFields = (defaultHeading, introLabel = "Description") => [{
3666
+ id: "heading",
3667
+ type: "text",
3668
+ label: "Heading",
3669
+ description: "Main heading for the section",
3670
+ required: false,
3671
+ multiline: false,
3672
+ ...defaultHeading === void 0 ? {} : { defaultValue: defaultHeading }
3673
+ }, {
3674
+ id: "description",
3675
+ type: "richText",
3676
+ label: introLabel,
3677
+ description: "Optional introductory text",
3678
+ required: false
3679
+ }];
3696
3680
  //#endregion
3697
3681
  //#region ../blocks/src/system/fragments/library/formCopy.ts
3698
3682
  const formCopyFragment = defineFragment({
@@ -3727,6 +3711,25 @@ const formCopyFragment = defineFragment({
3727
3711
  } }), bind("content.intro"))]
3728
3712
  });
3729
3713
  //#endregion
3714
+ //#region ../blocks/src/system/helpers/api-bindings.ts
3715
+ /**
3716
+ * Standard API bindings that all interactive blocks need.
3717
+ */
3718
+ const apiBindings = {
3719
+ now: { $bind: { from: "$root.now" } },
3720
+ siteId: { $bind: { from: "$root.siteId" } },
3721
+ apiBaseUrl: { $bind: { from: "$root.apiBaseUrl" } }
3722
+ };
3723
+ function withApiBindings(props, options) {
3724
+ return {
3725
+ ...options?.includeApiBaseUrl ?? true ? apiBindings : {
3726
+ siteId: apiBindings.siteId,
3727
+ now: apiBindings.now
3728
+ },
3729
+ ...props
3730
+ };
3731
+ }
3732
+ //#endregion
3730
3733
  //#region ../blocks/src/system/fragments/library/formEmbed.ts
3731
3734
  const formEmbedFragment = defineFragment({
3732
3735
  variantMeaning: { kind: "arrangement" },
@@ -4529,6 +4532,24 @@ const eventRegistrationManifest = createBlockManifest({
4529
4532
  paletteHidden: false
4530
4533
  },
4531
4534
  additionalFields: [
4535
+ {
4536
+ id: "pageKind",
4537
+ type: "select",
4538
+ label: "Page kind",
4539
+ multiple: false,
4540
+ defaultValue: "fullPage",
4541
+ options: [{
4542
+ value: "fullPage",
4543
+ label: "Full page"
4544
+ }, {
4545
+ value: "bookingPage",
4546
+ label: "Booking page"
4547
+ }],
4548
+ ui: {
4549
+ hidden: true,
4550
+ intent: "behavior"
4551
+ }
4552
+ },
4532
4553
  {
4533
4554
  id: "heading",
4534
4555
  type: "text",
@@ -4630,6 +4651,10 @@ const eventRegistrationManifest = createBlockManifest({
4630
4651
  } },
4631
4652
  readAuthority: { $bind: { from: "$root.readAuthority" } },
4632
4653
  occurrenceContext: { $bind: { from: "$root.occurrenceContext" } },
4654
+ pageKind: { $bind: {
4655
+ from: "content.pageKind",
4656
+ fallback: "fullPage"
4657
+ } },
4633
4658
  subject: { $bind: { from: "$root.subject" } },
4634
4659
  pageNavigation: { $bind: { from: "$root.pageNavigation" } },
4635
4660
  portalToken: { $bind: {
@@ -4661,8 +4686,6 @@ const eventRegistrationManifest = createBlockManifest({
4661
4686
  from: "$root.bookingOfferingPresets",
4662
4687
  fallback: []
4663
4688
  } },
4664
- sitePasses: { $bind: { from: "data.sitePasses" } },
4665
- siteMemberships: { $bind: { from: "data.siteMemberships" } },
4666
4689
  stage: { $bind: {
4667
4690
  from: "$root.previewStage",
4668
4691
  fallback: "published"
@@ -4672,7 +4695,10 @@ const eventRegistrationManifest = createBlockManifest({
4672
4695
  })]
4673
4696
  });
4674
4697
  const registrationEventScopeParams = {
4675
- detailAdmission: { $bind: { from: "$root.subject.detailAdmission" } },
4698
+ detailAdmission: { $bind: {
4699
+ from: "$root",
4700
+ transforms: [{ id: "events.registrationPageReadAdmission" }]
4701
+ } },
4676
4702
  seriesId: { $bind: { from: "$root.subject.eventSeriesId" } },
4677
4703
  seriesIds: { $bind: {
4678
4704
  from: "$root.subject.catalogueEventSeriesIds",
@@ -4686,8 +4712,6 @@ const eventRegistrationBlockDefinition = {
4686
4712
  dataSchemas: {
4687
4713
  events: publicEventsArraySchema.optional(),
4688
4714
  wholeSeriesRunEvents: publicEventsArraySchema.optional(),
4689
- sitePasses: publicPassProductCollectionSchema.optional(),
4690
- siteMemberships: publicMembershipProductCollectionSchema.optional(),
4691
4715
  occurrenceContext: occurrenceContextSchema.optional()
4692
4716
  },
4693
4717
  dataLoaders: {
@@ -4736,16 +4760,6 @@ const eventRegistrationBlockDefinition = {
4736
4760
  ...registrationEventScopeParams
4737
4761
  },
4738
4762
  mode: "server"
4739
- },
4740
- sitePasses: {
4741
- endpoint: "listPublicPasses",
4742
- params: { siteId: { $bind: { from: "$root.siteId" } } },
4743
- mode: "server"
4744
- },
4745
- siteMemberships: {
4746
- endpoint: "listPublicMemberships",
4747
- params: { siteId: { $bind: { from: "$root.siteId" } } },
4748
- mode: "server"
4749
4763
  }
4750
4764
  }
4751
4765
  };
@@ -7553,6 +7567,102 @@ const newsletterSignupBlockDefinition = {
7553
7567
  runtime: newsletterFormBlockRuntime
7554
7568
  };
7555
7569
  //#endregion
7570
+ //#region ../blocks/src/system/blocks/appointments/presentation.ts
7571
+ const publicVenueSchema = z.object({
7572
+ name: z.string(),
7573
+ area: z.string().nullable()
7574
+ });
7575
+ const publicAppointmentLocationSchema = z.discriminatedUnion("mode", [
7576
+ z.object({ mode: z.literal("online") }),
7577
+ z.object({
7578
+ mode: z.literal("in_person"),
7579
+ venue: publicVenueSchema.nullable()
7580
+ }),
7581
+ z.object({
7582
+ mode: z.literal("either"),
7583
+ venue: publicVenueSchema.nullable()
7584
+ })
7585
+ ]);
7586
+ const publicPricingOptionSchema = z.object({
7587
+ priceAmount: z.number().finite(),
7588
+ isActive: z.boolean(),
7589
+ saleStartsAt: z.string().nullable(),
7590
+ saleEndsAt: z.string().nullable()
7591
+ });
7592
+ const publicAppointmentPricingSchema = z.object({
7593
+ pricingStrategy: z.enum([
7594
+ "free",
7595
+ "single",
7596
+ "tiered",
7597
+ "sliding_scale"
7598
+ ]),
7599
+ currency: z.string().min(1),
7600
+ singlePriceAmount: z.number().nullable(),
7601
+ slidingMinAmount: z.number().nullable(),
7602
+ slidingMaxAmount: z.number().nullable(),
7603
+ options: z.array(publicPricingOptionSchema).readonly()
7604
+ });
7605
+ function formatAppointmentDuration(durationMinutes) {
7606
+ return `${durationMinutes} ${durationMinutes === 1 ? "minute" : "minutes"}`;
7607
+ }
7608
+ function formatAppointmentLocation(location) {
7609
+ switch (location.mode) {
7610
+ case "online": return "Online";
7611
+ case "in_person": return formatVenue(location.venue);
7612
+ case "either": {
7613
+ const venue = formatVenue(location.venue);
7614
+ return venue ? `${venue} or online` : "In person or online";
7615
+ }
7616
+ default: return assertNever$1(location);
7617
+ }
7618
+ }
7619
+ function formatVenue(venue) {
7620
+ if (!venue) return null;
7621
+ return venue.area ? `${venue.name}, ${venue.area}` : venue.name;
7622
+ }
7623
+ function formatAppointmentPrice(service) {
7624
+ if (service.onlinePaymentMode === "package_only") return "Book with a package";
7625
+ const pricing = service.pricing;
7626
+ if (pricing) {
7627
+ const display = appointmentPricingDisplay(pricing);
7628
+ return display.kind === "unavailable" ? null : formatBookingPriceDisplay(display, { decimals: "auto" });
7629
+ }
7630
+ return formatAmountOrFree(service.priceAmount, service.priceCurrency);
7631
+ }
7632
+ function formatAmountOrFree(amount, currency) {
7633
+ if (amount === null || currency === null) return null;
7634
+ if (amount === 0) return "Free";
7635
+ return formatBookingPriceDisplay({
7636
+ kind: "exact",
7637
+ amount,
7638
+ currency
7639
+ }, { decimals: "auto" });
7640
+ }
7641
+ function appointmentPricingDisplay(pricing) {
7642
+ switch (pricing.pricingStrategy) {
7643
+ case "free": return {
7644
+ kind: "free",
7645
+ currency: pricing.currency
7646
+ };
7647
+ case "single": return resolveExactOrFreePriceDisplay(pricing.singlePriceAmount, pricing.currency);
7648
+ case "tiered": return resolvePricingOptionsPriceDisplay({
7649
+ options: pricing.options,
7650
+ currency: pricing.currency,
7651
+ purpose: "available_now"
7652
+ });
7653
+ case "sliding_scale": return pricing.slidingMinAmount === null || pricing.slidingMaxAmount === null ? {
7654
+ kind: "unavailable",
7655
+ currency: pricing.currency
7656
+ } : {
7657
+ kind: "range",
7658
+ minAmount: pricing.slidingMinAmount,
7659
+ maxAmount: pricing.slidingMaxAmount,
7660
+ currency: pricing.currency
7661
+ };
7662
+ default: return assertNever$1(pricing.pricingStrategy);
7663
+ }
7664
+ }
7665
+ //#endregion
7556
7666
  //#region ../blocks/src/primitives/layout/Section.tsx
7557
7667
  const Section = forwardRef(function Section({ as: Comp = "section", children, background, className = "", style, "data-slot": dataSlot, "data-arrangement": dataArrangement, "data-surface": dataSurface }, ref) {
7558
7668
  return /* @__PURE__ */ jsx(Comp, {
@@ -7623,8 +7733,10 @@ const GridNode = (props) => /* @__PURE__ */ jsx(Grid, { ...props });
7623
7733
  const DivNode = (props) => /* @__PURE__ */ jsx("div", { ...props });
7624
7734
  const FigureNode = (props) => /* @__PURE__ */ jsx("figure", { ...props });
7625
7735
  const OrderedListNode = (props) => /* @__PURE__ */ jsx("ol", { ...props });
7736
+ const UnorderedListNode = (props) => /* @__PURE__ */ jsx("ul", { ...props });
7626
7737
  const ListItemNode = (props) => /* @__PURE__ */ jsx("li", { ...props });
7627
7738
  const FigcaptionNode = (props) => /* @__PURE__ */ jsx("figcaption", { ...props });
7739
+ const DescriptionListNode = (props) => /* @__PURE__ */ jsx("dl", { ...props });
7628
7740
  //#endregion
7629
7741
  //#region ../blocks/src/system/runtime/nodes/icon.tsx
7630
7742
  const IconNode = ({ value, title, className, blockId: _blockId, blockKind: _blockKind, blockContent: _blockContent, fragmentRegistry: _fragmentRegistry, pathBase: _pathBase, ...rest }) => {
@@ -8464,40 +8576,6 @@ function ListGroup({ presentation, title, intro, Heading, sectionProps, children
8464
8576
  }
8465
8577
  //#endregion
8466
8578
  //#region ../blocks/src/system/runtime/nodes/appointment-services.tsx
8467
- const publicVenueSchema = z.object({
8468
- name: z.string(),
8469
- area: z.string().nullable()
8470
- });
8471
- const publicLocationSchema = z.discriminatedUnion("mode", [
8472
- z.object({ mode: z.literal("online") }),
8473
- z.object({
8474
- mode: z.literal("in_person"),
8475
- venue: publicVenueSchema.nullable()
8476
- }),
8477
- z.object({
8478
- mode: z.literal("either"),
8479
- venue: publicVenueSchema.nullable()
8480
- })
8481
- ]);
8482
- const publicPricingOptionSchema = z.object({
8483
- priceAmount: z.number().finite(),
8484
- isActive: z.boolean(),
8485
- saleStartsAt: z.string().nullable(),
8486
- saleEndsAt: z.string().nullable()
8487
- });
8488
- const publicPricingSchema = z.object({
8489
- pricingStrategy: z.enum([
8490
- "free",
8491
- "single",
8492
- "tiered",
8493
- "sliding_scale"
8494
- ]),
8495
- currency: z.string().min(1),
8496
- singlePriceAmount: z.number().nullable(),
8497
- slidingMinAmount: z.number().nullable(),
8498
- slidingMaxAmount: z.number().nullable(),
8499
- options: z.array(publicPricingOptionSchema).readonly()
8500
- });
8501
8579
  const publicAppointmentServiceSchema = z.object({
8502
8580
  id: z.string().min(1),
8503
8581
  image: runtimeMediaSchema.nullable().optional(),
@@ -8505,11 +8583,11 @@ const publicAppointmentServiceSchema = z.object({
8505
8583
  title: z.string(),
8506
8584
  description: z.string().nullable().optional(),
8507
8585
  durationMinutes: z.number().int().positive(),
8508
- pricing: publicPricingSchema.optional(),
8586
+ pricing: publicAppointmentPricingSchema.optional(),
8509
8587
  priceAmount: z.number().nullable(),
8510
8588
  priceCurrency: z.string().nullable(),
8511
8589
  onlinePaymentMode: z.enum(["session_or_package", "package_only"]).optional(),
8512
- location: publicLocationSchema,
8590
+ location: publicAppointmentLocationSchema,
8513
8591
  categoryId: z.string().nullable().optional().transform((value) => value ?? null)
8514
8592
  });
8515
8593
  const publicServiceCategorySchema = z.object({
@@ -8546,65 +8624,6 @@ function readCategoryFilter(value) {
8546
8624
  const trimmed = value.trim();
8547
8625
  return trimmed.length > 0 ? trimmed : null;
8548
8626
  }
8549
- function formatAppointmentDuration(durationMinutes) {
8550
- return `${durationMinutes} min`;
8551
- }
8552
- function formatAppointmentLocation(location) {
8553
- switch (location.mode) {
8554
- case "online": return "Online";
8555
- case "in_person": return formatVenue(location.venue);
8556
- case "either": {
8557
- const venue = formatVenue(location.venue);
8558
- return venue ? `${venue} or online` : "In person or online";
8559
- }
8560
- default: return assertNever$1(location);
8561
- }
8562
- }
8563
- function formatVenue(venue) {
8564
- if (!venue) return null;
8565
- return venue.area ? `${venue.name}, ${venue.area}` : venue.name;
8566
- }
8567
- function formatAppointmentPrice(service) {
8568
- if (service.onlinePaymentMode === "package_only") return "Book with a package";
8569
- const pricing = service.pricing;
8570
- if (pricing) {
8571
- const display = (() => {
8572
- switch (pricing.pricingStrategy) {
8573
- case "free": return {
8574
- kind: "free",
8575
- currency: pricing.currency
8576
- };
8577
- case "single": return resolveExactOrFreePriceDisplay(pricing.singlePriceAmount, pricing.currency);
8578
- case "tiered": return resolvePricingOptionsPriceDisplay({
8579
- options: pricing.options,
8580
- currency: pricing.currency,
8581
- purpose: "available_now"
8582
- });
8583
- case "sliding_scale": return pricing.slidingMinAmount === null || pricing.slidingMaxAmount === null ? {
8584
- kind: "unavailable",
8585
- currency: pricing.currency
8586
- } : {
8587
- kind: "range",
8588
- minAmount: pricing.slidingMinAmount,
8589
- maxAmount: pricing.slidingMaxAmount,
8590
- currency: pricing.currency
8591
- };
8592
- default: return assertNever$1(pricing.pricingStrategy);
8593
- }
8594
- })();
8595
- return display.kind === "unavailable" ? null : formatBookingPriceDisplay(display, { decimals: "auto" });
8596
- }
8597
- return formatAmountOrFree(service.priceAmount, service.priceCurrency);
8598
- }
8599
- function formatAmountOrFree(amount, currency) {
8600
- if (amount === null || currency === null) return null;
8601
- if (amount === 0) return "Free";
8602
- return formatBookingPriceDisplay({
8603
- kind: "exact",
8604
- amount,
8605
- currency
8606
- }, { decimals: "auto" });
8607
- }
8608
8627
  function buildRows(services, pathname, servicePathPrefix) {
8609
8628
  return services.map((service) => ({
8610
8629
  id: service.id,
@@ -9040,54 +9059,59 @@ function BookingFormSSR({ blockId, children, ...sourceProps }) {
9040
9059
  id: blockId,
9041
9060
  attributes: { "data-block": "appointment-booking" },
9042
9061
  value: islandProps,
9043
- children: [display.state === "missing" ? /* @__PURE__ */ jsx("div", {
9044
- className: `rb-reg-surface booking-form-ssr ${sourceProps.className ?? ""}`.trim(),
9045
- children: /* @__PURE__ */ jsx("div", {
9046
- className: "alert alert-error",
9047
- role: "alert",
9048
- children: /* @__PURE__ */ jsx("p", {
9049
- className: "ab-text",
9050
- children: display.message
9062
+ children: [/* @__PURE__ */ jsx(BookingPanelArrangement, {
9063
+ pageKind: sourceProps.pageKind,
9064
+ children: display.state === "missing" ? /* @__PURE__ */ jsx("div", {
9065
+ ...bookingPresentation(sourceProps.pageKind).panelAttributes,
9066
+ className: `rb-reg-surface booking-form-ssr ${sourceProps.className ?? ""}`.trim(),
9067
+ children: /* @__PURE__ */ jsx("div", {
9068
+ className: "alert alert-error",
9069
+ role: "alert",
9070
+ children: /* @__PURE__ */ jsx("p", {
9071
+ className: "ab-text",
9072
+ children: display.message
9073
+ })
9051
9074
  })
9052
- })
9053
- }) : /* @__PURE__ */ jsxs("div", {
9054
- className: `rb-reg-surface booking-form-ssr ab-shell ${sourceProps.className ?? ""}`.trim(),
9055
- "aria-busy": true,
9056
- "aria-label": "Loading booking form",
9057
- role: "status",
9058
- children: [/* @__PURE__ */ jsx("span", {
9059
- className: "rb-sr-only",
9060
- children: "Loading booking form..."
9061
- }), /* @__PURE__ */ jsxs("div", {
9062
- className: "rb-reg-stack",
9063
- "aria-hidden": "true",
9064
- children: [
9065
- /* @__PURE__ */ jsx("div", {
9066
- className: "rb-reg-summary",
9067
- children: /* @__PURE__ */ jsxs("div", {
9075
+ }) : /* @__PURE__ */ jsxs("div", {
9076
+ ...bookingPresentation(sourceProps.pageKind).panelAttributes,
9077
+ className: `rb-reg-surface booking-form-ssr ab-shell ${sourceProps.className ?? ""}`.trim(),
9078
+ "aria-busy": true,
9079
+ "aria-label": "Loading booking form",
9080
+ role: "status",
9081
+ children: [/* @__PURE__ */ jsx("span", {
9082
+ className: "rb-sr-only",
9083
+ children: "Loading booking form..."
9084
+ }), /* @__PURE__ */ jsxs("div", {
9085
+ className: "rb-reg-stack",
9086
+ "aria-hidden": "true",
9087
+ children: [
9088
+ bookingPresentation(sourceProps.pageKind).showShellHeading ? /* @__PURE__ */ jsx("div", {
9089
+ className: "rb-reg-summary",
9090
+ children: /* @__PURE__ */ jsxs("div", {
9091
+ className: "rb-reg-stack rb-reg-stack--sm",
9092
+ children: [/* @__PURE__ */ jsx("div", { className: "rb-shell-line rb-shell-line--md" }), /* @__PURE__ */ jsx("div", { className: "rb-shell-line rb-shell-line--sm" })]
9093
+ })
9094
+ }) : null,
9095
+ /* @__PURE__ */ jsxs("div", {
9068
9096
  className: "rb-reg-stack rb-reg-stack--sm",
9069
- children: [/* @__PURE__ */ jsx("div", { className: "rb-shell-line rb-shell-line--md" }), /* @__PURE__ */ jsx("div", { className: "rb-shell-line rb-shell-line--sm" })]
9070
- })
9071
- }),
9072
- /* @__PURE__ */ jsxs("div", {
9073
- className: "rb-reg-stack rb-reg-stack--sm",
9074
- children: [/* @__PURE__ */ jsx("div", { className: "rb-shell-line rb-shell-line--lg" }), /* @__PURE__ */ jsx("div", { className: "rb-shell-line rb-shell-line--xs" })]
9075
- }),
9076
- /* @__PURE__ */ jsx("div", {
9077
- className: "rb-wizard-actions",
9078
- children: /* @__PURE__ */ jsx("div", {
9079
- className: "ab-shell-button",
9080
- children: display.submitLabel
9097
+ children: [/* @__PURE__ */ jsx("div", { className: "rb-shell-line rb-shell-line--lg" }), /* @__PURE__ */ jsx("div", { className: "rb-shell-line rb-shell-line--xs" })]
9098
+ }),
9099
+ /* @__PURE__ */ jsx("div", {
9100
+ className: "rb-wizard-actions",
9101
+ children: /* @__PURE__ */ jsx("div", {
9102
+ className: "ab-shell-button",
9103
+ children: display.submitLabel
9104
+ })
9081
9105
  })
9082
- })
9083
- ]
9084
- })]
9106
+ ]
9107
+ })]
9108
+ })
9085
9109
  }), children]
9086
9110
  });
9087
9111
  }
9088
9112
  //#endregion
9089
9113
  //#region ../blocks/src/system/runtime/nodes/event-details.server.tsx
9090
- function eventDetailsIslandValue({ props, presentation, scopedEvents, subject, nowIso }) {
9114
+ function eventDetailsIslandValue({ props, presentation, scopedEvents, subject }) {
9091
9115
  return {
9092
9116
  ...props.arrangement ? {
9093
9117
  arrangement: props.arrangement,
@@ -9097,6 +9121,7 @@ function eventDetailsIslandValue({ props, presentation, scopedEvents, subject, n
9097
9121
  surfacePresentation: props.surfacePresentation,
9098
9122
  panelHeading: props.panelHeading
9099
9123
  } : {},
9124
+ quickFacts: props.quickFacts,
9100
9125
  occurrenceContext: props.occurrenceContext ?? null,
9101
9126
  subject,
9102
9127
  events: scopedEvents,
@@ -9115,12 +9140,11 @@ function eventDetailsIslandValue({ props, presentation, scopedEvents, subject, n
9115
9140
  siteMemberships: props.siteMemberships,
9116
9141
  autoApplyDiscount: presentation.autoApplyDiscount,
9117
9142
  className: props.className,
9118
- nowIso
9143
+ now: props.now
9119
9144
  };
9120
9145
  }
9121
9146
  function EventDetailsSSR(props) {
9122
9147
  const { blockId, occurrenceContext = null, subject, events = null, className, children } = props;
9123
- const nowIso = props.now;
9124
9148
  const normalizedSubject = normalizeEventRegistrationPageSurfaceSubject(subject);
9125
9149
  const scopedEvents = events === null ? null : resolveEventRegistrationScopedEvents(events, {
9126
9150
  occurrenceContext,
@@ -9130,8 +9154,7 @@ function EventDetailsSSR(props) {
9130
9154
  ...props,
9131
9155
  events: scopedEvents,
9132
9156
  occurrenceContext,
9133
- subject: normalizedSubject,
9134
- nowIso
9157
+ subject: normalizedSubject
9135
9158
  });
9136
9159
  return /* @__PURE__ */ jsxs(IslandRoot, {
9137
9160
  kind: "event-details",
@@ -9144,8 +9167,7 @@ function EventDetailsSSR(props) {
9144
9167
  props,
9145
9168
  presentation,
9146
9169
  scopedEvents,
9147
- subject: normalizedSubject,
9148
- nowIso
9170
+ subject: normalizedSubject
9149
9171
  }),
9150
9172
  children: [/* @__PURE__ */ jsx(EventDetailsView, {
9151
9173
  ...presentation,
@@ -9739,27 +9761,34 @@ function FeaturedOfferingSummary({ item }) {
9739
9761
  if (!details) return null;
9740
9762
  return /* @__PURE__ */ jsxs("article", {
9741
9763
  className: "offerings-preview-summary rb-flex rb-flex-1 rb-flex-col",
9742
- children: [/* @__PURE__ */ jsxs("p", {
9743
- className: "offerings-preview-summary-date",
9744
- children: [/* @__PURE__ */ jsx("time", {
9745
- dateTime: details.startDateTime,
9746
- children: details.startDate
9747
- }), details.endDate ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("span", {
9748
- "aria-hidden": "true",
9749
- children: " – "
9750
- }), /* @__PURE__ */ jsx("time", {
9751
- dateTime: details.endDateTime,
9752
- children: details.endDate
9753
- })] }) : null]
9754
- }), /* @__PURE__ */ jsxs("dl", {
9755
- className: "offerings-preview-summary-facts",
9756
- children: [
9757
- details.recurrence ? /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("dt", { children: "Repeats" }), /* @__PURE__ */ jsx("dd", { children: details.recurrence })] }) : null,
9758
- details.sessionCount ? /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("dt", { children: "Sessions" }), /* @__PURE__ */ jsx("dd", { children: details.sessionCount })] }) : null,
9759
- details.timeRange ? /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("dt", { children: "Time" }), /* @__PURE__ */ jsx("dd", { children: details.timeRange })] }) : null,
9760
- details.venue ? /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("dt", { children: "Venue" }), /* @__PURE__ */ jsx("dd", { children: details.venue })] }) : null
9761
- ]
9762
- })]
9764
+ children: [
9765
+ /* @__PURE__ */ jsx(EventQuickFacts, {
9766
+ facts: item.kind === "event" ? item.event.facts : item.run.representative.facts,
9767
+ context: "card"
9768
+ }),
9769
+ /* @__PURE__ */ jsxs("p", {
9770
+ className: "offerings-preview-summary-date",
9771
+ children: [/* @__PURE__ */ jsx("time", {
9772
+ dateTime: details.startDateTime,
9773
+ children: details.startDate
9774
+ }), details.endDate ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("span", {
9775
+ "aria-hidden": "true",
9776
+ children: " – "
9777
+ }), /* @__PURE__ */ jsx("time", {
9778
+ dateTime: details.endDateTime,
9779
+ children: details.endDate
9780
+ })] }) : null]
9781
+ }),
9782
+ /* @__PURE__ */ jsxs("dl", {
9783
+ className: "offerings-preview-summary-facts",
9784
+ children: [
9785
+ details.recurrence ? /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("dt", { children: "Repeats" }), /* @__PURE__ */ jsx("dd", { children: details.recurrence })] }) : null,
9786
+ details.sessionCount ? /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("dt", { children: "Sessions" }), /* @__PURE__ */ jsx("dd", { children: details.sessionCount })] }) : null,
9787
+ details.timeRange ? /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("dt", { children: "Time" }), /* @__PURE__ */ jsx("dd", { children: details.timeRange })] }) : null,
9788
+ details.venue ? /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("dt", { children: "Venue" }), /* @__PURE__ */ jsx("dd", { children: details.venue })] }) : null
9789
+ ]
9790
+ })
9791
+ ]
9763
9792
  });
9764
9793
  }
9765
9794
  function featuredSummaryDetails(item) {
@@ -9923,31 +9952,38 @@ function WholeSeriesRunCompactRow({ group, path, now }) {
9923
9952
  }),
9924
9953
  /* @__PURE__ */ jsxs("div", {
9925
9954
  className: "event-compact-row-content",
9926
- children: [/* @__PURE__ */ jsx(OfferingTitle, {
9927
- className: "event-compact-row-title",
9928
- path,
9929
- title: group.representative.title
9930
- }), /* @__PURE__ */ jsxs("div", {
9931
- className: "event-compact-row-meta",
9932
- children: [
9933
- group.representative.venue ? /* @__PURE__ */ jsx("span", {
9934
- className: "event-compact-row-venue",
9935
- children: group.representative.venue.name
9936
- }) : null,
9937
- /* @__PURE__ */ jsx("span", {
9938
- className: "event-compact-row-price",
9939
- children: price
9940
- }),
9941
- /* @__PURE__ */ jsxs("span", {
9942
- className: "event-compact-row-price",
9943
- children: [
9944
- sessionsCount,
9945
- " session",
9946
- sessionsCount === 1 ? "" : "s"
9947
- ]
9948
- })
9949
- ]
9950
- })]
9955
+ children: [
9956
+ /* @__PURE__ */ jsx(OfferingTitle, {
9957
+ className: "event-compact-row-title",
9958
+ path,
9959
+ title: group.representative.title
9960
+ }),
9961
+ /* @__PURE__ */ jsx(EventQuickFacts, {
9962
+ facts: group.representative.facts,
9963
+ context: "card"
9964
+ }),
9965
+ /* @__PURE__ */ jsxs("div", {
9966
+ className: "event-compact-row-meta",
9967
+ children: [
9968
+ group.representative.venue ? /* @__PURE__ */ jsx("span", {
9969
+ className: "event-compact-row-venue",
9970
+ children: group.representative.venue.name
9971
+ }) : null,
9972
+ /* @__PURE__ */ jsx("span", {
9973
+ className: "event-compact-row-price",
9974
+ children: price
9975
+ }),
9976
+ /* @__PURE__ */ jsxs("span", {
9977
+ className: "event-compact-row-price",
9978
+ children: [
9979
+ sessionsCount,
9980
+ " session",
9981
+ sessionsCount === 1 ? "" : "s"
9982
+ ]
9983
+ })
9984
+ ]
9985
+ })
9986
+ ]
9951
9987
  }),
9952
9988
  /* @__PURE__ */ jsxs("div", {
9953
9989
  className: "event-compact-row-action",
@@ -9996,6 +10032,10 @@ function WholeSeriesRunFeatureCard({ group, now, path, buttonVariant, buttonText
9996
10032
  path,
9997
10033
  title: group.representative.title
9998
10034
  }),
10035
+ /* @__PURE__ */ jsx(EventQuickFacts, {
10036
+ facts: group.representative.facts,
10037
+ context: "card"
10038
+ }),
9999
10039
  /* @__PURE__ */ jsxs("div", {
10000
10040
  className: "rb-mb-2 rb-caption",
10001
10041
  children: [/* @__PURE__ */ jsx("time", { children: formattedDate }), /* @__PURE__ */ jsx("p", { children: timeRange })]
@@ -10090,6 +10130,10 @@ function RunWithoutLiveDates({ group, path }) {
10090
10130
  path,
10091
10131
  title: group.representative.title
10092
10132
  }),
10133
+ /* @__PURE__ */ jsx(EventQuickFacts, {
10134
+ facts: group.representative.facts,
10135
+ context: "card"
10136
+ }),
10093
10137
  /* @__PURE__ */ jsx("p", { children: "No dates available." }),
10094
10138
  /* @__PURE__ */ jsx("span", {
10095
10139
  className: "event-compact-row-status",
@@ -10893,35 +10937,76 @@ const EventListingSSR = (props) => {
10893
10937
  * Server-safe placeholder for event registration.
10894
10938
  * Provides a static container for island hydration without importing client hooks.
10895
10939
  */
10896
- function EventRegistrationSSR({ blockId, subject, loaderFailures, children, ...sourceProps }) {
10940
+ function EventRegistrationSSR({ subject, loaderFailures, ...props }) {
10941
+ const selection = resolveBookingPanelSelection({
10942
+ ...props,
10943
+ subject,
10944
+ eventLoaderFailures: props.blockId ? loaderFailures?.[props.blockId] : void 0
10945
+ });
10946
+ if (!selection) return /* @__PURE__ */ jsx(BookingPanelArrangement, {
10947
+ pageKind: props.pageKind,
10948
+ children: /* @__PURE__ */ jsx(EventRegistrationIsland, {
10949
+ ...props,
10950
+ subject: normalizeEventRegistrationPageSurfaceSubject(subject),
10951
+ loaderFailures
10952
+ })
10953
+ });
10954
+ return /* @__PURE__ */ jsx(SelectedEventRegistration, {
10955
+ selection,
10956
+ island: {
10957
+ ...props,
10958
+ subject: selection.subject,
10959
+ loaderFailures
10960
+ }
10961
+ });
10962
+ }
10963
+ /** Once admitted, render the decided target without re-parsing its subject. */
10964
+ function SelectedEventRegistration({ selection, island }) {
10965
+ const panel = planEventBookingPanel(selection, new Date(island.now));
10966
+ const registration = registrationSourceForPanel(island, panel);
10967
+ return /* @__PURE__ */ jsx(EventBookingPanelView, {
10968
+ panel,
10969
+ pageKind: island.pageKind ?? "fullPage",
10970
+ children: registration ? /* @__PURE__ */ jsx(EventRegistrationIsland, {
10971
+ ...island,
10972
+ ...registration,
10973
+ insidePanel: true
10974
+ }) : null
10975
+ });
10976
+ }
10977
+ function EventRegistrationIsland({ blockId, subject, loaderFailures, children, insidePanel, ...sourceProps }) {
10897
10978
  const islandProps = buildEventRegistrationInteractiveIslandProps({
10898
10979
  ...sourceProps,
10899
10980
  eventLoaderFailures: blockId ? loaderFailures?.[blockId] : void 0,
10900
- subject: normalizeEventRegistrationPageSurfaceSubject(subject)
10981
+ subject
10901
10982
  });
10902
10983
  const display = islandProps.render.display;
10903
- const className = sourceProps.className;
10984
+ const className = display.className;
10904
10985
  return /* @__PURE__ */ jsxs(IslandRoot, {
10905
10986
  kind: "event-registration",
10906
10987
  id: blockId,
10907
10988
  attributes: {
10908
10989
  className: `event-registration ${className ?? ""}`.trim(),
10909
10990
  "data-block": "event-registration",
10991
+ ...insidePanel ? void 0 : bookingPresentation(sourceProps.pageKind).panelAttributes,
10910
10992
  "data-rb-island-required": "true",
10911
10993
  "data-rb-island-error-message": "We couldn’t load the booking options for this event. Please refresh this page and try again. If this keeps happening, contact the organiser for help.",
10912
10994
  "data-rb-island-error-class": "event-registration__hydration-error"
10913
10995
  },
10914
10996
  value: islandProps,
10915
- children: [display.state === "booking-card" ? /* @__PURE__ */ jsx("div", {
10997
+ children: [islandProps.render.hydration.admission === "recoveryOnly" ? null : display.state === "booking-card" ? /* @__PURE__ */ jsx("div", {
10916
10998
  id: EVENT_REGISTRATION_ANCHOR_ID,
10917
10999
  children: /* @__PURE__ */ jsx(BookingEntryCard, {
10918
11000
  entry: display.entry,
10919
11001
  buttonVariant: display.buttonVariant ?? "primary"
10920
11002
  })
10921
- }) : /* @__PURE__ */ jsx(EventRegistrationShell, { display }), children]
11003
+ }) : /* @__PURE__ */ jsx(EventRegistrationShell, {
11004
+ display,
11005
+ showHeading: bookingPresentation(sourceProps.pageKind).showShellHeading
11006
+ }), children]
10922
11007
  });
10923
11008
  }
10924
- function EventRegistrationShell({ display }) {
11009
+ function EventRegistrationShell({ display, showHeading }) {
10925
11010
  if (display.state === "registration-closed") return /* @__PURE__ */ jsx(RegistrationClosedState, {
10926
11011
  title: display.titleText,
10927
11012
  body: display.bodyText
@@ -10943,32 +11028,9 @@ function EventRegistrationShell({ display }) {
10943
11028
  totalSteps: display.stepLabels.length,
10944
11029
  stepLabels: [...display.stepLabels]
10945
11030
  })
10946
- }), /* @__PURE__ */ jsxs("div", {
10947
- className: "rb-reg-stack er-stack",
10948
- children: [/* @__PURE__ */ jsxs("div", { children: [
10949
- /* @__PURE__ */ jsx("p", {
10950
- className: "er-registration-shell__eyebrow",
10951
- children: "Registration"
10952
- }),
10953
- /* @__PURE__ */ jsx("h3", {
10954
- className: "er-title er-registration-shell__title",
10955
- children: display.titleText
10956
- }),
10957
- /* @__PURE__ */ jsx("p", {
10958
- className: "er-text er-text--muted er-registration-shell__copy",
10959
- children: display.bodyText
10960
- })
10961
- ] }), /* @__PURE__ */ jsxs("div", {
10962
- className: "er-event-grid er-registration-shell__cards",
10963
- "aria-hidden": "true",
10964
- children: [/* @__PURE__ */ jsxs("div", {
10965
- className: "er-event-card er-registration-shell__card",
10966
- children: [/* @__PURE__ */ jsx("div", { className: "rb-shell-line rb-shell-line--lg er-registration-shell__line er-registration-shell__line--lg" }), /* @__PURE__ */ jsx("div", { className: "rb-shell-line rb-shell-line--sm er-registration-shell__line er-registration-shell__line--sm" })]
10967
- }), /* @__PURE__ */ jsxs("div", {
10968
- className: "er-event-card er-registration-shell__card",
10969
- children: [/* @__PURE__ */ jsx("div", { className: "rb-shell-line rb-shell-line--md er-registration-shell__line er-registration-shell__line--md" }), /* @__PURE__ */ jsx("div", { className: "rb-shell-line rb-shell-line--xs er-registration-shell__line er-registration-shell__line--xs" })]
10970
- })]
10971
- })]
11031
+ }), /* @__PURE__ */ jsx(RegistrationShellBody, {
11032
+ display,
11033
+ showHeading
10972
11034
  })]
10973
11035
  }), /* @__PURE__ */ jsx("div", {
10974
11036
  className: "er-payment-layout-footer",
@@ -10987,6 +11049,32 @@ function EventRegistrationShell({ display }) {
10987
11049
  })
10988
11050
  });
10989
11051
  }
11052
+ /** Copy and skeleton cards for the first step, before its island is ready. */
11053
+ function RegistrationShellBody({ display, showHeading }) {
11054
+ return /* @__PURE__ */ jsxs("div", {
11055
+ className: "rb-reg-stack er-stack",
11056
+ children: [/* @__PURE__ */ jsxs("div", { children: [showHeading ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("p", {
11057
+ className: "er-registration-shell__eyebrow",
11058
+ children: "Registration"
11059
+ }), /* @__PURE__ */ jsx("h3", {
11060
+ className: "er-title er-registration-shell__title",
11061
+ children: display.titleText
11062
+ })] }) : null, /* @__PURE__ */ jsx("p", {
11063
+ className: "er-text er-text--muted er-registration-shell__copy",
11064
+ children: display.bodyText
11065
+ })] }), /* @__PURE__ */ jsxs("div", {
11066
+ className: "er-event-grid er-registration-shell__cards",
11067
+ "aria-hidden": "true",
11068
+ children: [/* @__PURE__ */ jsxs("div", {
11069
+ className: "er-event-card er-registration-shell__card",
11070
+ children: [/* @__PURE__ */ jsx("div", { className: "rb-shell-line rb-shell-line--lg er-registration-shell__line er-registration-shell__line--lg" }), /* @__PURE__ */ jsx("div", { className: "rb-shell-line rb-shell-line--sm er-registration-shell__line er-registration-shell__line--sm" })]
11071
+ }), /* @__PURE__ */ jsxs("div", {
11072
+ className: "er-event-card er-registration-shell__card",
11073
+ children: [/* @__PURE__ */ jsx("div", { className: "rb-shell-line rb-shell-line--md er-registration-shell__line er-registration-shell__line--md" }), /* @__PURE__ */ jsx("div", { className: "rb-shell-line rb-shell-line--xs er-registration-shell__line er-registration-shell__line--xs" })]
11074
+ })]
11075
+ })]
11076
+ });
11077
+ }
10990
11078
  //#endregion
10991
11079
  //#region ../blocks/src/system/runtime/nodes/form.server.tsx
10992
11080
  const FormNodeSSR = ({ blockId, lookSlots, value, submitLabel, successMessage, className, onSubmit, action = "/api/forms/submit", siteId, apiBaseUrl, spamProtectionEnabled }) => {
@@ -11299,9 +11387,11 @@ typedObjectKeys(runtimeBackedBlockServerEntries);
11299
11387
  //#region ../blocks/src/system/runtime/components/registry.server.ts
11300
11388
  const serverComponentRegistry = {
11301
11389
  div: DivNode,
11390
+ dl: DescriptionListNode,
11302
11391
  figure: FigureNode,
11303
11392
  figcaption: FigcaptionNode,
11304
11393
  ol: OrderedListNode,
11394
+ ul: UnorderedListNode,
11305
11395
  li: ListItemNode,
11306
11396
  svg: SvgNode,
11307
11397
  section: SectionNode,
@@ -11337,4 +11427,4 @@ const serverComponentRegistry = {
11337
11427
  ...buildServerRegistryFromEntries(runtimeBackedBlockServerEntries)
11338
11428
  };
11339
11429
  //#endregion
11340
- export { styledContainer as $, eventDisplayFields as $t, cardListPhotoNumberFields as A, createSdkSelectField as At, normalizeMailingListBlockContent as B, testimonialsReadiness as Bt, eventListingBlockDefinition as C, section as Ct, FEATURE_CARD_ICON_TREATMENTS as D, when as Dt, FEATURE_CARD_GENERATED_ICON_SIZE_PX as E, videoEmbed as Et, markEditableSurfaceForwarding as F, PUBLIC_DOWNLOAD_MEDIA_TYPES as Ft, formCopyFragment as G, LOCATION_MAP_DEFAULTS as Gt, formDataSchema as H, loadedReadinessFact as Ht, splitPositioningClasses as I, augmentManifest as It, defineFragment as J, normalizeLocationMapSource as Jt, buildFragmentDataLoaders as K, LOCATION_MAP_LIMITS as Kt, desktopOnlyDisplay as L, chosenString as Lt, cardListSectionActionFields as M, normalizeSelectSource as Mt, normalizeCardListContent as N, parseFieldDefinition as Nt, cardListSectionAction as O, withApiBindings as Ot, composeHeaderSectionWrapperClassName as P, parseFieldDefinitions as Pt, styledSection as Q, emptyStateField as Qt, mobileOnlyDisplay as R, galleryReadiness as Rt, eventCalendarBlockDefinition as S, linkSchema as Sn, richText as St, eventRegistrationBlockDefinition as T, text as Tt, createBlockManifest as U, pageTemplateFromEntry as Ut, formBlockDefinition as V, admitReadinessFacts as Vt, formEmbedFragment as W, unavailableReadinessFact as Wt, sectionHeaderLayoutNodes as X, cardStylingFields as Xt, sectionHeaderFields as Y, resolveLocationMapLocation as Yt, resolveBackgroundColorValue as Z, columnsField as Zt, checkoutBlockDefinition as _, parseRepeaterGridInteger as _n, inline as _t, buildLoadedOfferingsPreviewListing as a, getAnchorClasses as an, lookSkinSlotTransform as at, productListBlockDefinition as b, resolveRepeaterGridSpanFieldId as bn, props as bt, HeaderSectionFrame as c, ACCORDION_OPEN_ACCENT_THICKNESS as cn, bind as ct, accordionIconColorStyle as d, ACCORDION_TRIGGER_LETTER_SPACING as dn, carousel as dt, layoutField as en, sectionContainer as et, resolveAccordionIconStyle as f, ICON_CONFIG as fn, el as ft, giftingBlockDefinition as g, isAcceptedRepeaterGridSpan as gn, icon as gt, sanitizeNewsletterSignupPublicContent as h, DEFAULT_MEDIA_FIELD_KINDS as hn, headerSection as ht, WeeklySlotAvailabilityView as i, BACKGROUND_POSITION_PRESET_VALUES as in, lookQuoteLimitTransform as it, cardListPresentationBindings as j, createSiteOptionSelectField as jt, cardListKnobFields as k, parseBlockIconValue as kt, accordionItemPartSlots as l, ACCORDION_SPACING_MAP as ln, bookingForm as lt, newsletterSignupBlockDefinition as m, bindingSchema as mn, form as mt, runtimeBackedBlockModes as n, containerStylesField as nn, lookCarouselRegionTransform as nt, LocationMapSSR as o, createButtonGroup as on, lookSlot as ot, SectionNode as p, ICON_SIZE_PX as pn, fileDownload as pt, composeFragments as q, normalizeLocationMapProps as qt, runtimeBackedBlockServerEntries as r, sectionStylesField as rn, lookLeadSlotTransform as rt, buildAppointmentServicesView as s, createButtonVariantField as sn, accordionList as st, serverComponentRegistry as t, cardStylesField as tn, backgroundFrame as tt, accordionLookAttributes as u, ACCORDION_TRIGGER_FONT_SCALE as un, button as ut, cartBlockDefinition as v, resolveRepeaterGridColumnFieldId as vn, link as vt, mapDrawingStyleBinding as w, stack as wt, shopBlockDefinition as x, RESOLVED_INTERNAL_LINK_ENTITY_TYPES as xn, repeat as xt, productDetailBlockDefinition as y, resolveRepeaterGridRowFieldId as yn, media as yt, teamMemberCardBiographyFallback as z, teamReadiness as zt };
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 };