@riverbankcms/sdk 0.170.0 → 0.171.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (219) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/dist/_dts/{BlocksIslandsHydrator-B2i5CY_X.d.ts → BlocksIslandsHydrator-xuFmD41p.d.ts} +1 -1
  3. package/dist/_dts/{Page-BSZjbeRK.d.ts → Page-4fzXy8H9.d.ts} +13 -11
  4. package/dist/_dts/{SdkPreviewMode-BZpPBMcu.d.ts → SdkPreviewMode-BlHgMsc8.d.ts} +4 -3
  5. package/dist/_dts/{client-x82SZgwK.d.ts → client-BPoU758C.d.ts} +32 -1
  6. package/dist/_dts/{content-types-CODkxsZy.d.ts → content-types-TnkhoSls.d.ts} +3 -3
  7. package/dist/_dts/{contracts-Lyfhmbjf.d.ts → contracts-7wrMA79U.d.ts} +5 -3
  8. package/dist/_dts/{footerPageOutline-BShG2GAV.d.ts → footerPageOutline-DaOsPQ_Q.d.ts} +6 -6
  9. package/dist/_dts/{generatePageMetadata-DLhUW3xK.d.ts → generatePageMetadata-D9aDEzKK.d.ts} +2 -2
  10. package/dist/_dts/{index-BisbMZTW.d.ts → index-585vn6qb.d.ts} +72 -36
  11. package/dist/_dts/{index-B7Mq5M6P.d.ts → index-CZKSUcDs.d.ts} +4 -4
  12. package/dist/_dts/{index-B82pqQAC.d.ts → index-Cbw0IiY7.d.ts} +2 -2
  13. package/dist/_dts/{index-DXc_ewhR.d.ts → index-ChNbrcgD.d.ts} +1 -1
  14. package/dist/_dts/{index-C3rMEJ5a.d.ts → index-DDKJfaLY.d.ts} +2 -2
  15. package/dist/_dts/{index-CCugONHM.d.ts → index-DNCDENic.d.ts} +1 -1
  16. package/dist/_dts/{index-CstY6ZMa.d.ts → index-W9R3Bnf2.d.ts} +3 -3
  17. package/dist/_dts/{loadContent-BoqtbbhP.d.ts → loadContent-DPyNAJym.d.ts} +7 -7
  18. package/dist/_dts/{request-CJ_ClHLv.d.ts → request-jXTRN1Y4.d.ts} +3554 -1370
  19. package/dist/_dts/{resolveBlockData-DFExYkJ4.d.ts → resolveBlockData-BbvE-gsZ.d.ts} +5 -5
  20. package/dist/_dts/{resolvePageContent-D-WvpC_d.d.ts → resolvePageContent-BBgih00D.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-CbjK5ZLy.d.ts → types-BXuVxDYo.d.ts} +2 -2
  56. package/dist/_dts/{types-CpuxuS40.d.ts → types-DEAKoDNi.d.ts} +3 -3
  57. package/dist/_dts/{types-990t4t99.d.ts → types-kWvBwYK6.d.ts} +7 -7
  58. package/dist/_dts/{validation-BN95LiS0.d.ts → validation-BAO0_ntM.d.ts} +17 -17
  59. package/dist/client/{BlocksIslandsHydrator-B1Tkg-ZW.mjs → BlocksIslandsHydrator-DfMsMIej.mjs} +17 -17
  60. package/dist/client/{BookingMailingListNote-Br1VyHkP.mjs → BookingMailingListNote-aaSicywS.mjs} +7 -7
  61. package/dist/client/{StepIndicator-BK0GEDoP.mjs → BookingPanelArrangement-OgftZ9QC.mjs} +16 -4
  62. package/dist/client/{BookingQuestionFields-LLGCWjvU.mjs → BookingQuestionFields-BlaCItmH.mjs} +5 -5
  63. package/dist/client/{CalendarNavigationChevron-CH7z2m47.mjs → CalendarNavigationChevron-iMWrY6Hz.mjs} +7 -7
  64. package/dist/client/{CheckboxChoice-W_uiRgDK.mjs → CheckboxChoice-B65wFjqx.mjs} +1 -1
  65. package/dist/client/{DemoBookingPortalAccess-Cilv5zdS.mjs → DemoBookingPortalAccess-BCumOTLY.mjs} +7 -7
  66. package/dist/client/{EventCalendar.client-LXUHJEi7.mjs → EventCalendar.client-kh7mkYnW.mjs} +9 -9
  67. package/dist/client/{EventCombined.client-DpugEJLB.mjs → EventCombined.client-DXD5i0Ar.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-BnwcoFQN.mjs} +10 -7
  70. package/dist/client/{EventListWeekNavigation-D-kLg1jQ.mjs → EventListWeekNavigation-DuG6z02f.mjs} +1 -1
  71. package/dist/client/{EventListing.client-BNACUaxV.mjs → EventListing.client-18yfHrcr.mjs} +3 -3
  72. package/dist/client/{EventListing.view-CtVfe3VG.mjs → EventListing.view-BM7rTVSL.mjs} +42 -396
  73. package/dist/client/{EventRegistrationPayment-CqH3hE-k.mjs → EventRegistrationPayment-D5J3DR0x.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-DH2sm4Cf.mjs} +2696 -2426
  77. package/dist/client/{ProtectedSubmitButton-C3H26pN9.mjs → ProtectedSubmitButton-AOUzjDK9.mjs} +1 -1
  78. package/dist/client/StepIndicator-CsRlU46Y.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-Bbn1-jJ8.mjs} +52 -2
  82. package/dist/client/{accordion-DMItWylU.mjs → accordion-DT4MD3Np.mjs} +1 -1
  83. package/dist/client/{booking-form.client-wd71DG19.mjs → booking-form.client-DdqNQNCa.mjs} +79 -42
  84. package/dist/client/{bookingForm-Cyr2qeS1.mjs → bookingForm-CLN396HU.mjs} +4 -4
  85. package/dist/client/bookings.mjs +6 -6
  86. package/dist/client/boxStyleClassNames-iLF_3KX9.mjs +369 -0
  87. package/dist/client/{carousel-B5-Hzzif.mjs → carousel-DFLomCGm.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-BozMM5NK.mjs} +3 -3
  90. package/dist/client/{cart.client-CfpnxTUZ.mjs → cart.client-CqOOxPbW.mjs} +1 -1
  91. package/dist/client/{checkout-Dnu9W8IA.mjs → checkout-CTWF5nbB.mjs} +3 -3
  92. package/dist/client/{checkout.client-ovtyXyn0.mjs → checkout.client-CpqxN8e0.mjs} +1 -1
  93. package/dist/client/{checkoutUrls-CY8qywXl.mjs → checkoutUrls-Ccg6yfjq.mjs} +1 -1
  94. package/dist/client/client.mjs +640 -218
  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-pzQkBLgS.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-Cl6mgSJa.mjs} +3186 -81
  101. package/dist/client/{enhanceHeaderSection-D7gRy-pL.mjs → enhanceHeaderSection-CJCl0HJC.mjs} +4 -4
  102. package/dist/client/{event-details.client-DZZaoCUc.mjs → event-details.client-Pn9Kxh3I.mjs} +3 -2
  103. package/dist/client/{event-registration.client-CLBdHUfd.mjs → event-registration.client-BAmBdWXE.mjs} +48 -34
  104. package/dist/client/{eventCalendar-B4VbblGN.mjs → eventCalendar-C5Bh2L8L.mjs} +4 -4
  105. package/dist/client/{eventCombined-e2AvbA0u.mjs → eventCombined-dELKxxIe.mjs} +4 -4
  106. package/dist/client/{eventDetails-DIJYMzVg.mjs → eventDetails-Do9D_fJ_.mjs} +2 -2
  107. package/dist/client/{eventListing-C0bpAR1t.mjs → eventListing-B2HTUWLq.mjs} +4 -4
  108. package/dist/client/{eventRegistration-DyseP_sY.mjs → eventRegistration-ByOJnqGc.mjs} +4 -4
  109. package/dist/client/{form-Cfl8d6qc.mjs → form-DX70QG-J.mjs} +3 -3
  110. package/dist/client/{form.client-D3_RF29v.mjs → form.client-CJoqBrS6.mjs} +5 -5
  111. package/dist/client/{form.parts-DWLf_3PF.mjs → form.parts-DTof9pL3.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-CJuPX_1K.mjs} +2 -2
  115. package/dist/client/{newsletter-form.client-IfLup4o0.mjs → newsletter-form.client-CqzNjOft.mjs} +6 -6
  116. package/dist/client/{newsletter-form.parts-DDD-LRyW.mjs → newsletter-form.parts-DjJsFms2.mjs} +2 -2
  117. package/dist/client/{newsletterForm-Bn7HVbuq.mjs → newsletterForm-D1MHoPbh.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-DOQ7El1d.mjs} +1 -1
  121. package/dist/client/{product-list.client-C627X8DQ.mjs → product-list.client-CmxOZbzL.mjs} +1 -1
  122. package/dist/client/{productDetail-B-K_hd7Y.mjs → productDetail-BN3zv5sa.mjs} +3 -3
  123. package/dist/client/{productList-BNZAsfaP.mjs → productList-GN_Id4bF.mjs} +3 -3
  124. package/dist/client/{propsDecoder-Dc8j5i79.mjs → propsDecoder-BdmzM3D5.mjs} +8 -4
  125. package/dist/client/{registry.server-CBg2M6Uj.mjs → registry.server-BOyra8CA.mjs} +1015 -926
  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-DnaJ8PQc.mjs} +1 -1
  131. package/dist/client/{runtimeResponse-D2LT--Gj.mjs → runtimeResponse-B1-cyLXt.mjs} +1 -1
  132. package/dist/client/{runtimeResponse-BGU8sMZY.mjs → runtimeResponse-BN8PoIVp.mjs} +1 -1
  133. package/dist/client/{shop-PgmiVKSV.mjs → shop-LjBLDBqF.mjs} +3 -3
  134. package/dist/client/{shop-commerce-DkgvZAQS.mjs → shop-commerce-B8aZTdRJ.mjs} +13 -13
  135. package/dist/client/{shop-commerce-store-D9CHihQv.mjs → shop-commerce-store-C1FtHYl7.mjs} +1 -1
  136. package/dist/client/{shop.client-DDFRt6OU.mjs → shop.client-D0qZ3KZp.mjs} +13 -13
  137. package/dist/client/{shop.interactive-BH0xDlMF.mjs → shop.interactive-DAKyWK1B.mjs} +89 -19
  138. package/dist/client/{shopShared-BEfD0e4m.mjs → shopShared-CztcSe9i.mjs} +2 -2
  139. package/dist/client/spam-protection.mjs +1 -1
  140. package/dist/client/{timetableModel-GsDrJxxw.mjs → timetableModel-D1jDTbms.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-CHGYDxdM.mjs} +2 -2
  144. package/dist/client/{useDiscountCodeUi-CD82QX5i.mjs → useDiscountCodeUi-Dew9UAEy.mjs} +1 -1
  145. package/dist/client/{useEventPagination-DGl4Jeuz.mjs → useEventPagination-BpC7-ksE.mjs} +7 -7
  146. package/dist/client/{view-oToSpu1N.mjs → view-BxeiAL3c.mjs} +121 -28
  147. package/dist/client/{view-CgComegl.mjs → view-ShYH3WXh.mjs} +3 -3
  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-lW2aLGWd.mjs} +1 -1
  151. package/dist/preview-next/client/{MapLibreEditMap-CKjYUp_E.mjs → MapLibreEditMap-C9InQJpd.mjs} +2 -2
  152. package/dist/preview-next/client/{ArrangementLookControls-DJQrgD5f.mjs → PageSectionToolbar-DsSqwrMS.mjs} +392 -11
  153. package/dist/preview-next/client/{PreviewEditorSidebar-DWU6X6Y-.mjs → PreviewEditorSidebar-BEEWzXnU.mjs} +3264 -3199
  154. package/dist/preview-next/client/{PreviewEditorUI-C-X0ptC3.mjs → PreviewEditorUI-C86Out4V.mjs} +5 -6
  155. package/dist/preview-next/client/{PreviewShell-C1WUNsj9.mjs → PreviewShell-CBWYjBvQ.mjs} +20 -10
  156. package/dist/preview-next/client/{SdkPreviewModeRuntime-Cs2QFT7k.mjs → SdkPreviewModeRuntime-o-mVqWLx.mjs} +88 -394
  157. package/dist/preview-next/client/{SiteChromeCustomizeButton-CcZ_ERvZ.mjs → SiteChromeCustomizeButton-H_ciMNHA.mjs} +1155 -330
  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-DygTyy7K.mjs} +1 -1
  160. package/dist/preview-next/client/{previewAssistantSlot-CSs9S8wr.mjs → previewAssistantSlot-CuOcsG_N.mjs} +3558 -2230
  161. package/dist/preview-next/client/{previewChromeRoot-B2OTurZH.mjs → previewChromeRoot-DPeV7KaP.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-zTTFZ4MM.mjs} +2 -2
  164. package/dist/preview-next/client/{useAutosaveStatus-DoWvGNPA.mjs → useAutosaveStatus-DNA1Q4L1.mjs} +2 -2
  165. package/dist/preview-next/client/{useBlockCustomizeControls-WOs8Atje.mjs → useOpenBlockForSetup-BdnMlHC6.mjs} +28 -3
  166. package/dist/preview-next/container-responsive.css +43 -0
  167. package/dist/preview-next/keepAlive.mjs +1 -1
  168. package/dist/preview-next/middleware.mjs +1 -1
  169. package/dist/preview-next/{route-contract-BLYaenrK.mjs → route-contract-CtSgU8UZ.mjs} +547 -188
  170. package/dist/server/{Block.shared-Dx4j9CJT.mjs → Block.shared-ifgaBglp.mjs} +4 -4
  171. package/dist/server/{ThemeScopeCore-B0IfeNNZ.mjs → ThemeScopeCore-DGDOH6OU.mjs} +3 -3
  172. package/dist/server/{accessibleSurfaces-D0q5tLSW.mjs → accessibleSurfaces-BuPNCWAK.mjs} +52 -2
  173. package/dist/server/bindings-CiYpie1M.mjs +1802 -0
  174. package/dist/server/{block-kinds-CdI7NvAW.mjs → block-kinds-DkzOr19P.mjs} +2 -0
  175. package/dist/server/{client-Djjv-NuA.mjs → client-ngWuFsmN.mjs} +638 -216
  176. package/dist/server/config-template-validation.mjs +30 -4
  177. package/dist/server/config-validation.mjs +1 -1
  178. package/dist/server/config.mjs +3 -34
  179. package/dist/server/data/resolveBlockData.mjs +1 -1
  180. package/dist/server/index.mjs +3 -3
  181. package/dist/server/loadContent-DeLQeJAZ.mjs +2310 -0
  182. package/dist/server/{loadPage-QXSdPSYY.mjs → loadPage-D4J747FQ.mjs} +2 -2
  183. package/dist/server/manifest.mjs +1 -1
  184. package/dist/server/next.mjs +8 -6
  185. package/dist/server/{opaqueSurface-Yltv_u7r.mjs → opaqueSurface-ukEz1BaM.mjs} +2 -2
  186. package/dist/server/{overrideResolution-CMNx5tQg.mjs → overrideResolution-DSuVkpqm.mjs} +3 -2
  187. package/dist/server/page-converter.mjs +3 -3
  188. package/dist/server/pageRegions-BaeEF2MU.mjs +30 -0
  189. package/dist/server/{pageRenderPlan-Bv6NbFeM.mjs → pageRenderPlan-DFv3h4Ib.mjs} +306 -287
  190. package/dist/server/{pageRuntimeSupport-B2laBtff.mjs → pageRuntimeSupport-yHaRNWMj.mjs} +48 -35
  191. package/dist/server/{pageShared-CE9EBNSH.mjs → pageShared-CAZD0LcY.mjs} +848 -315
  192. package/dist/server/parseThemeForPersistence-Dl7LIBJq.mjs +52 -0
  193. package/dist/server/{prebuild-FBA6Y1K7.mjs → prebuild-BKOCND3b.mjs} +1 -1
  194. package/dist/server/prebuild.mjs +1 -1
  195. package/dist/server/{prefetchBlockData-yL2hB2l_.mjs → prefetchBlockData-GIoExi8A.mjs} +4 -3
  196. package/dist/server/{registry-Djrj9gWy.mjs → registry-BogXzcOD.mjs} +4000 -1989
  197. package/dist/server/rendering/components/pageShared.mjs +1 -1
  198. package/dist/server/rendering/helpers/loadPage.mjs +1 -1
  199. package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
  200. package/dist/server/rendering/server.mjs +3 -3
  201. package/dist/server/rendering.mjs +7 -7
  202. package/dist/server/{resolveBlockData-CyeIjmqx.mjs → resolveBlockData-CT4YSBve.mjs} +4 -3
  203. package/dist/server/{resolveButtonColourStates-Cn6j8Ee0.mjs → resolveButtonColourStates-DVISOQD9.mjs} +2 -0
  204. package/dist/server/rich-text-CRcONdyM.mjs +33 -0
  205. package/dist/server/{richTextSchema-DQ2NBP0n.mjs → richTextSchema-QLaQrbII.mjs} +31 -2
  206. package/dist/server/{parseThemeForPersistence-BebSeE17.mjs → schema-C92Q8y0-.mjs} +463 -53
  207. package/dist/server/server.mjs +3 -3
  208. package/dist/server/theme-bridge.mjs +2 -2
  209. package/dist/server/theme.mjs +2 -1
  210. package/dist/server/{three-pass-converter-CQWdnfjV.mjs → three-pass-converter-Bsfdy_ZV.mjs} +11 -8
  211. package/dist/server/{validation-Dh8htd6l.mjs → validation-vSBCWU3w.mjs} +9 -9
  212. package/dist/server/{version-LMwnoksN.mjs → version-Cw5vFmUY.mjs} +1 -1
  213. package/dist/styles/index.css +408 -10
  214. package/package.json +1 -1
  215. package/dist/client/StepIndicator-CR7_0yu4.mjs +0 -432
  216. package/dist/preview-next/client/useOpenBlockForSetup-CipKCK2O.mjs +0 -28
  217. package/dist/server/bindings-C1-MNwwS.mjs +0 -257
  218. package/dist/server/headerVariant-8O5MvxIU.mjs +0 -464
  219. 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-DAKyWK1B.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-Cl6mgSJa.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-Bbn1-jJ8.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-D1jDTbms.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-iLF_3KX9.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-BxeiAL3c.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-CsRlU46Y.mjs";
17
+ import { n as resolveEventCta, r as resolveEventLinkProps } from "./cta-pzQkBLgS.mjs";
18
+ import { i as SvgNode, o as formatEventLocation } from "./MapDrawingSvg-Dy6UMuIw.mjs";
19
+ import { n as CardListItems, r as EventItem } from "./EventItem-BnwcoFQN.mjs";
20
+ import { c as CalendarDayHeaders, i as CombinedLookFrame, l as buildMonthDay, n as WeekAgendaView, o as MonthLookView, u as resolveMonthSelectedDay } from "./CalendarNavigationChevron-iMWrY6Hz.mjs";
21
+ import { a as EventCard, i as EventCompactRow, r as EmptyState, t as EventListingFrameView } from "./EventListing.view-BM7rTVSL.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-OgftZ9QC.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-ShYH3WXh.mjs";
29
+ import { n as EventListWeekNavigation, t as EventListWeekEmptyState } from "./EventListWeekNavigation-DuG6z02f.mjs";
30
+ import { n as FormSubmitAction, t as FormFieldGroups } from "./form.parts-DTof9pL3.mjs";
31
+ import { a as partitionNewsletterFields, n as NewsletterSubmitRow, r as NewsletterTopicChips, t as NewsletterExtraField } from "./newsletter-form.parts-DjJsFms2.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
@@ -2800,203 +2802,258 @@ function resolveBlockIconRenderValue(value, generatedAssets = /* @__PURE__ */ ne
2800
2802
  }
2801
2803
  }
2802
2804
  //#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" } }
2805
+ //#region ../blocks/src/system/fragments/types.ts
2806
+ const FRAGMENT_ID_PATTERN = /^[a-z0-9](?:[a-z0-9._-]*[a-z0-9])?$/i;
2807
+ const FIELD_ID_PATTERN = /^[a-z][a-zA-Z0-9_-]*$/;
2808
+ const dataLoaderSchema = z.object({
2809
+ endpoint: z.string().min(1, "Fragment data loader requires an endpoint"),
2810
+ params: z.record(z.string(), z.unknown()).default({}),
2811
+ requiredParams: z.array(z.string().min(1)).optional(),
2812
+ mode: z.enum(["server", "client"]).default("server")
2813
+ });
2814
+ const fragmentDataSchema = z.object({
2815
+ key: z.string().min(1, "Fragment data key is required"),
2816
+ loader: dataLoaderSchema.optional()
2817
+ });
2818
+ const fragmentConfigSchema = z.object({
2819
+ id: z.string().min(1, "Fragment id is required").regex(FRAGMENT_ID_PATTERN, "Fragment id must be alphanumeric with optional . _ - separators"),
2820
+ title: z.string().optional(),
2821
+ description: z.string().optional(),
2822
+ category: z.enum([
2823
+ "content",
2824
+ "media",
2825
+ "interactive",
2826
+ "layout"
2827
+ ]).optional(),
2828
+ icon: z.string().optional(),
2829
+ fields: fieldSchema.array().default([]),
2830
+ layout: z.union([NodeSchema, z.array(NodeSchema)]).transform((value) => Array.isArray(value) ? value : [value]),
2831
+ data: fragmentDataSchema.optional()
2832
+ });
2833
+ var FragmentConfigError = class extends Error {
2834
+ constructor(message) {
2835
+ super(message);
2836
+ this.name = "FragmentConfigError";
2837
+ }
2811
2838
  };
2812
- function withApiBindings(props, options) {
2839
+ function defineFragment(config) {
2840
+ const parsed = fragmentConfigSchema.parse(config);
2841
+ const fields = parseFieldDefinitions(parsed.fields);
2842
+ validateFieldDefinitions(fields, parsed.id);
2813
2843
  return {
2814
- ...options?.includeApiBaseUrl ?? true ? apiBindings : {
2815
- siteId: apiBindings.siteId,
2816
- now: apiBindings.now
2817
- },
2818
- ...props
2844
+ ...parsed,
2845
+ fields: fields.map((field) => cloneFieldDefinition(field)),
2846
+ layout: parsed.layout.map((node) => ({ ...node }))
2819
2847
  };
2820
2848
  }
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
- }
2849
+ function scopeFragmentFields(fragment, scope) {
2850
+ const normalizedScope = scope.trim();
2851
+ if (!normalizedScope) return fragment.fields.map((field) => cloneFieldDefinition(field));
2852
+ return fragment.fields.map((field) => prefixFieldId(field, normalizedScope));
2843
2853
  }
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);
2854
+ function scopeFragmentLayout(fragment, scope) {
2855
+ const normalizedScope = scope.trim();
2856
+ return fragment.layout.map((node) => cloneAndScopeNode(node, normalizedScope));
2868
2857
  }
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);
2858
+ function validateFieldDefinitions(fields, fragmentId) {
2859
+ const seen = /* @__PURE__ */ new Set();
2860
+ for (const field of fields) {
2861
+ if (field.id.includes(".")) throw new FragmentConfigError(`Field "${field.id}" in fragment "${fragmentId}" should not include dot notation; the builder scopes fields automatically.`);
2862
+ 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 "-".`);
2863
+ if (seen.has(field.id)) throw new FragmentConfigError(`Duplicate field id "${field.id}" found in fragment "${fragmentId}". Field ids must be unique per fragment.`);
2864
+ seen.add(field.id);
2865
+ }
2882
2866
  }
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;
2867
+ function prefixFieldId(field, scope) {
2868
+ const cloned = cloneFieldDefinition(field);
2869
+ cloned.id = `${scope}.${field.id}`;
2870
+ const defaultValue = cloned.defaultValue;
2871
+ cloned.defaultValue = cloneUnknown(defaultValue);
2872
+ cloned.visibleRoles = cloned.visibleRoles ? [...cloned.visibleRoles] : void 0;
2873
+ cloned.ui = cloneUnknown(cloned.ui);
2874
+ return cloned;
2889
2875
  }
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));
2876
+ function cloneFieldDefinition(field) {
2877
+ if (field.type === "repeater") {
2878
+ if (field.polymorphic && field.itemTypes) return {
2879
+ ...field,
2880
+ polymorphic: true,
2881
+ itemTypes: Object.fromEntries(Object.entries(field.itemTypes).map(([key, itemType]) => [key, {
2882
+ ...itemType,
2883
+ fields: itemType.fields.map(cloneFieldDefinition)
2884
+ }]))
2885
+ };
2886
+ if (field.schema) return {
2887
+ ...field,
2888
+ schema: { fields: field.schema.fields.map(cloneFieldDefinition) }
2889
+ };
2890
+ return { ...field };
2900
2891
  }
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
- });
2892
+ if (field.type === "group") return {
2893
+ ...field,
2894
+ schema: { fields: field.schema.fields.map(cloneFieldDefinition) }
2895
+ };
2896
+ return { ...field };
2941
2897
  }
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
- });
2898
+ function cloneUnknown(value) {
2899
+ if (value == null || typeof value !== "object") return value;
2900
+ if (Array.isArray(value)) return value.map((entry) => cloneUnknown(entry));
2901
+ return { ...value };
2952
2902
  }
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
- });
2903
+ function cloneAndScopeNode(node, scope) {
2904
+ const cloned = { ...node };
2905
+ if (node.children) cloned.children = node.children.map((child) => cloneAndScopeNode(child, scope));
2906
+ if (node.props) cloned.props = scopePropBindings(node.props, scope);
2907
+ if (node.$bind) cloned.$bind = scopeBinding(node.$bind, scope);
2908
+ if (node.$repeat) cloned.$repeat = scopeRepeat(node.$repeat, scope);
2909
+ if (node.$when) cloned.$when = scopeCondition(node.$when, scope);
2910
+ if (node.$scopes) cloned.$scopes = node.$scopes.map((entry) => ({
2911
+ name: entry.name,
2912
+ from: scopeBinding(entry.from, scope)
2913
+ }));
2914
+ return cloned;
2970
2915
  }
2971
- function props(extra) {
2972
- validateProps(extra, "props() modifier");
2973
- return (node) => ({
2974
- ...node,
2975
- props: {
2976
- ...node.props ?? {},
2977
- ...extra
2916
+ function scopeBinding(binding, scope) {
2917
+ const cloned = {
2918
+ ...binding,
2919
+ transforms: binding.transforms?.map((step) => ({ ...step })) ?? []
2920
+ };
2921
+ cloned.from = scopeContentPath(binding.from, scope);
2922
+ return cloned;
2923
+ }
2924
+ function scopeRepeat(repeat, scope) {
2925
+ const cloned = {
2926
+ ...repeat,
2927
+ collection: scopeBinding(repeat.collection, scope)
2928
+ };
2929
+ if (repeat.sortBy) cloned.sortBy = {
2930
+ ...repeat.sortBy,
2931
+ path: scopeContentPath(repeat.sortBy.path, scope)
2932
+ };
2933
+ return cloned;
2934
+ }
2935
+ function scopeCondition(condition, scope) {
2936
+ return {
2937
+ ...condition,
2938
+ when: scopeBinding(condition.when, scope)
2939
+ };
2940
+ }
2941
+ function scopePropBindings(input, scope) {
2942
+ const result = {};
2943
+ for (const [key, value] of Object.entries(input)) result[key] = scopePropValue(value, scope);
2944
+ return result;
2945
+ }
2946
+ function scopePropValue(value, scope) {
2947
+ if (Array.isArray(value)) return value.map((entry) => scopePropValue(entry, scope));
2948
+ if (value && typeof value === "object") {
2949
+ if ("$bind" in value) {
2950
+ const bindingConfig = value.$bind;
2951
+ return { $bind: scopeBinding(bindingConfig, scope) };
2978
2952
  }
2979
- });
2953
+ const result = {};
2954
+ for (const [key, entry] of Object.entries(value)) result[key] = scopePropValue(entry, scope);
2955
+ return result;
2956
+ }
2957
+ return value;
2980
2958
  }
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 } }
2959
+ function scopeContentPath(path, scope) {
2960
+ if (!scope || scope.length === 0) return path;
2961
+ if (path === "content") return `content.${scope}`;
2962
+ if (path.startsWith("content.")) {
2963
+ const remainder = path.slice(8);
2964
+ return remainder.length > 0 ? `content.${scope}.${remainder}` : `content.${scope}`;
2965
+ }
2966
+ if (path.startsWith("content[")) return path.replace(/^content/, `content.${scope}`);
2967
+ if (path.startsWith("$root.")) return path;
2968
+ if (path.includes(".")) return path;
2969
+ return `content.${scope}.${path}`;
2970
+ }
2971
+ //#endregion
2972
+ //#region ../blocks/src/system/fragments/builder.ts
2973
+ var FragmentCompositionError = class extends Error {
2974
+ constructor(message) {
2975
+ super(message);
2976
+ this.name = "FragmentCompositionError";
2977
+ }
2978
+ };
2979
+ const DOT_SCOPE_REGEX = /^[A-Za-z0-9_.-]*$/;
2980
+ function materializeFragment(config) {
2981
+ const scope = normalizeScope(config.scope);
2982
+ const fields = scopeFragmentFields(config.fragment, scope);
2983
+ const layout = scopeFragmentLayout(config.fragment, scope);
2984
+ const fieldPriority = config.fieldPriority ?? 0;
2985
+ let data;
2986
+ if (config.fragment.data) {
2987
+ const key = config.dataKey ?? config.fragment.data.key;
2988
+ if (!key || typeof key !== "string") throw new FragmentCompositionError(`Fragment "${config.fragment.id}" requires a data key to compose.`);
2989
+ data = {
2990
+ key,
2991
+ loader: config.fragment.data.loader ? { ...config.fragment.data.loader } : void 0
2992
+ };
2993
+ }
2994
+ return {
2995
+ fragment: config.fragment,
2996
+ scope,
2997
+ fields,
2998
+ layout,
2999
+ data,
3000
+ fieldPriority
2987
3001
  };
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
3002
  }
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());
3003
+ function composeFragments(instances) {
3004
+ const fieldEntries = [];
3005
+ const layouts = [];
3006
+ const dataEntries = [];
3007
+ const scopes = [];
3008
+ const seenFieldIds = /* @__PURE__ */ new Set();
3009
+ let fieldOrder = 0;
3010
+ for (const instance of instances) {
3011
+ const materialized = materializeFragment(instance);
3012
+ for (const field of materialized.fields) {
3013
+ if (seenFieldIds.has(field.id)) throw new FragmentCompositionError(`Duplicate field id "${field.id}" when composing fragments.`);
3014
+ seenFieldIds.add(field.id);
3015
+ fieldEntries.push({
3016
+ id: field.id,
3017
+ field,
3018
+ priority: materialized.fieldPriority,
3019
+ order: fieldOrder++
3020
+ });
2997
3021
  }
2998
- } catch {}
2999
- return node;
3022
+ scopes.push(materialized.scope);
3023
+ layouts.push(...materialized.layout);
3024
+ if (materialized.data) {
3025
+ if (dataEntries.find((entry) => entry.key === materialized.data?.key)) throw new FragmentCompositionError(`Duplicate fragment data key "${materialized.data.key}" detected.`);
3026
+ dataEntries.push(materialized.data);
3027
+ }
3028
+ }
3029
+ return {
3030
+ fields: fieldEntries.sort((a, b) => {
3031
+ if (a.priority !== b.priority) return a.priority - b.priority;
3032
+ return a.order - b.order;
3033
+ }).map((entry) => entry.field),
3034
+ layout: layouts,
3035
+ data: dataEntries,
3036
+ scopes
3037
+ };
3038
+ }
3039
+ function normalizeScope(scope) {
3040
+ if (!scope) return "";
3041
+ const trimmed = scope.trim();
3042
+ if (!DOT_SCOPE_REGEX.test(trimmed)) throw new FragmentCompositionError(`Fragment scope "${scope}" contains invalid characters. Use alphanumeric, ".", "-", or "_".`);
3043
+ return trimmed;
3044
+ }
3045
+ function buildFragmentDataLoaders(composition) {
3046
+ const loaders = {};
3047
+ for (const entry of composition.data) {
3048
+ if (!entry?.loader) continue;
3049
+ loaders[entry.key] = {
3050
+ endpoint: entry.loader.endpoint,
3051
+ params: { ...entry.loader.params ?? {} },
3052
+ ...entry.loader.requiredParams ? { requiredParams: [...entry.loader.requiredParams] } : {},
3053
+ mode: entry.loader.mode ?? "server"
3054
+ };
3055
+ }
3056
+ return loaders;
3000
3057
  }
3001
3058
  //#endregion
3002
3059
  //#region ../blocks/src/system/customize/testimonialCount.ts
@@ -3039,93 +3096,273 @@ const lookCarouselRegionTransform = {
3039
3096
  run: (value, options) => typeof value === "string" && value.trim() ? value.trim() : options?.fallback ?? "Carousel"
3040
3097
  };
3041
3098
  //#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";
3099
+ //#region ../blocks/src/utils/env.ts
3044
3100
  /**
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
3101
+ * Environment detection utilities
3064
3102
  *
3065
- * @example
3066
- * // Basic usage in a block
3067
- * const heroBackgroundNodes = backgroundLayer('_sectionStyles.background')
3103
+ * Provides type-safe environment detection without relying on `any`-typed globals.
3104
+ */
3105
+ /**
3106
+ * Check if the current environment is development.
3068
3107
  *
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
- * })
3108
+ * Returns true if NODE_ENV is not 'production', or if NODE_ENV cannot be determined
3109
+ * (which is the safe default for validation and warnings).
3074
3110
  *
3075
- * @example
3076
- * // In a block layout
3077
- * const layout = section(
3078
- * { background: 'background' },
3079
- * [
3080
- * ...backgroundLayer('_sectionStyles.background'),
3081
- * sectionContainer([])
3082
- * ]
3083
- * )
3111
+ * @returns true if in development mode, false if in production
3084
3112
  */
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
- ];
3113
+ function isDevEnvironment() {
3114
+ try {
3115
+ if (typeof process !== "undefined" && true) return true;
3116
+ return true;
3117
+ } catch {
3118
+ return true;
3119
+ }
3108
3120
  }
3121
+ //#endregion
3122
+ //#region ../blocks/src/system/node/types.ts
3109
3123
  /**
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.
3124
+ * List of reserved keys (for runtime validation).
3125
+ * Kept in sync with the ReservedNodeKeys type above.
3116
3126
  */
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,
3127
+ const RESERVED_KEYS = [
3128
+ "children",
3129
+ "key",
3130
+ "$bind",
3131
+ "$when",
3132
+ "$repeat",
3133
+ "$scopes"
3134
+ ];
3135
+ /**
3136
+ * Type guard to check if props contain reserved keys at runtime.
3137
+ * Use this in development mode to catch bugs early.
3138
+ *
3139
+ * @param props - Props object to validate
3140
+ * @returns Array of reserved keys found in props, or empty array if none
3141
+ */
3142
+ function findReservedKeysInProps(props) {
3143
+ if (!props) return [];
3144
+ return RESERVED_KEYS.filter((key) => key in props);
3145
+ }
3146
+ /**
3147
+ * Validates that props don't contain reserved keys.
3148
+ * Throws in development, warns in production.
3149
+ *
3150
+ * @param props - Props to validate
3151
+ * @param context - Context for error message (e.g., "el('grid', ...)")
3152
+ */
3153
+ function validateProps(props, context = "node builder") {
3154
+ const reserved = findReservedKeysInProps(props);
3155
+ if (reserved.length === 0) return;
3156
+ 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.`;
3157
+ if (isDevEnvironment()) throw new TypeError(message);
3158
+ else console.error(message);
3159
+ }
3160
+ //#endregion
3161
+ //#region ../blocks/src/system/node/builder.ts
3162
+ function normalizeChildren(children) {
3163
+ if (!children) return void 0;
3164
+ const flat = children.flat().filter(Boolean);
3165
+ return flat.length > 0 ? flat : void 0;
3166
+ }
3167
+ function el(type, props, children, ...mods) {
3168
+ validateProps(props, `el('${type}', ...)`);
3169
+ const node = {
3170
+ type,
3171
+ ...props && Object.keys(props).length > 0 ? { props } : {},
3172
+ ...children && children.length ? { children: normalizeChildren(children) } : {}
3173
+ };
3174
+ if (mods && mods.length > 0) {
3175
+ const validMods = mods.filter((mod) => typeof mod === "function");
3176
+ if (validMods.length > 0) return devValidate(validMods.reduce((acc, fn) => fn(acc), node));
3177
+ }
3178
+ return devValidate(node);
3179
+ }
3180
+ const section = (props, children, ...mods) => el("section", props, children, ...mods);
3181
+ const headerSection = (props, children, ...mods) => el("headerSection", props, children, ...mods);
3182
+ const stack = (props, children, ...mods) => el("stack", props, children, ...mods);
3183
+ const inline = (props, children, ...mods) => el("inline", props, children, ...mods);
3184
+ const accordion = (props, children, ...mods) => el("accordion", props, children, ...mods);
3185
+ const accordionItem = (props, children, ...mods) => el("accordionItem", props, children, ...mods);
3186
+ const carousel = (props, children, ...mods) => el("carousel", {
3187
+ mode: "legacy",
3188
+ ...props
3189
+ }, children, ...mods);
3190
+ const text = (props, ...mods) => el("text", props, void 0, ...mods);
3191
+ const richText = (props, ...mods) => el("richText", props, void 0, ...mods);
3192
+ const icon = (props, ...mods) => el("icon", props, void 0, ...mods);
3193
+ const media = (props, ...mods) => el("media", props, void 0, ...mods);
3194
+ const fileDownload = (props, ...mods) => el("file-download", props, void 0, ...mods);
3195
+ const videoEmbed = (props, ...mods) => el("videoEmbed", props, void 0, ...mods);
3196
+ const button = (props, children, ...mods) => el("button", props, children, ...mods);
3197
+ const link = (props, children, ...mods) => el("link", props, children, ...mods);
3198
+ const form = (props, children, ...mods) => el("form", props, children, ...mods);
3199
+ const bookingForm = (props, children, ...mods) => el("booking-form", props, children, ...mods);
3200
+ const eventRegistration = (props, children, ...mods) => el("event-registration", props, children, ...mods);
3201
+ const shop = (props, children, ...mods) => el("shop", props, children, ...mods);
3202
+ const productList = (props, children, ...mods) => el("product-list", props, children, ...mods);
3203
+ const productDetail = (props, children, ...mods) => el("product-detail", props, children, ...mods);
3204
+ const cart = (props, children, ...mods) => el("cart", props, children, ...mods);
3205
+ const checkout = (props, children, ...mods) => el("checkout", props, children, ...mods);
3206
+ const gifting = (props, children, ...mods) => el("gifting", props, children, ...mods);
3207
+ function bind(from, options) {
3208
+ return (node) => ({
3209
+ ...node,
3210
+ $bind: {
3211
+ from,
3212
+ ...options?.fallback !== void 0 ? { fallback: options.fallback } : {},
3213
+ ...options?.transforms ? { transforms: options.transforms } : {},
3214
+ ...options?.pick ? { pick: options.pick } : {},
3215
+ ...options?.coerce ? { coerce: options.coerce } : {}
3216
+ }
3217
+ });
3218
+ }
3219
+ function when(path, options) {
3220
+ return (node) => ({
3221
+ ...node,
3222
+ $when: {
3223
+ when: { from: path },
3224
+ ...options?.equals !== void 0 ? { equals: options.equals } : {},
3225
+ ...options?.not ? { not: true } : {},
3226
+ ...options?.authoringPresence ? { authoringPresence: options.authoringPresence } : {}
3227
+ }
3228
+ });
3229
+ }
3230
+ function repeat(collectionPath, itemName = "item", options) {
3231
+ return (node) => ({
3232
+ ...node,
3233
+ $repeat: {
3234
+ collection: {
3235
+ from: collectionPath,
3236
+ pick: "collection"
3237
+ },
3238
+ itemName,
3239
+ ...options?.indexName ? { indexName: options.indexName } : {},
3240
+ ...options?.limit ? { limit: options.limit } : {},
3241
+ ...options?.sortBy ? { sortBy: {
3242
+ path: options.sortBy.path,
3243
+ direction: options.sortBy.direction ?? "asc"
3244
+ } } : {}
3245
+ }
3246
+ });
3247
+ }
3248
+ function props(extra) {
3249
+ validateProps(extra, "props() modifier");
3250
+ return (node) => ({
3251
+ ...node,
3252
+ props: {
3253
+ ...node.props ?? {},
3254
+ ...extra
3255
+ }
3256
+ });
3257
+ }
3258
+ function accordionList({ collection, itemName = "item", indexName, accordionProps = null, itemProps = null, triggerFrom, contentFrom, valueFrom }, ...mods) {
3259
+ const resolvedIndexName = indexName ?? `${itemName}Index`;
3260
+ const resolvedValuePath = valueFrom === null ? null : valueFrom ?? resolvedIndexName;
3261
+ const baseItemProps = {
3262
+ ...itemProps ?? {},
3263
+ trigger: { $bind: { from: triggerFrom } }
3264
+ };
3265
+ if (contentFrom) baseItemProps.content = { $bind: { from: contentFrom } };
3266
+ if (resolvedValuePath) baseItemProps.value = { $bind: { from: resolvedValuePath } };
3267
+ return accordion(accordionProps ?? void 0, [accordionItem(baseItemProps, void 0, repeat(collection, itemName, { indexName: resolvedIndexName }))], ...mods);
3268
+ }
3269
+ function devValidate(node) {
3270
+ try {
3271
+ if (isDevEnvironment()) {
3272
+ const res = z.safeParse(NodeSchema, node);
3273
+ if (!res.success) console.warn("[blocks:builder] Invalid node produced by builder", res.error.format());
3274
+ }
3275
+ } catch {}
3276
+ return node;
3277
+ }
3278
+ //#endregion
3279
+ //#region ../blocks/src/system/node/fragments/backgroundLayer.ts
3280
+ 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";
3281
+ /**
3282
+ * Creates background layer nodes for rendering backgrounds from field data.
3283
+ *
3284
+ * This helper generates three nodes:
3285
+ * 1. A style layer (div) that renders solid colors and gradients
3286
+ * 2. A media layer that conditionally renders background images/videos
3287
+ * 3. An overlay layer (div) that renders color/gradient overlays on images
3288
+ *
3289
+ * The layers are designed to be placed behind content (z-index -10) and work
3290
+ * with data from `sectionStylesField`, `containerStylesField`, or `cardStylesField`.
3291
+ *
3292
+ * Layer stacking order (all use -z-10, stacking determined by DOM order):
3293
+ * - Content (default z-index, rendered last)
3294
+ * - Overlay layer (rendered third, above image due to DOM order)
3295
+ * - Image layer (rendered second)
3296
+ * - Style layer (rendered first, at bottom)
3297
+ *
3298
+ * @param path - The data path to the background field (e.g., '_sectionStyles.background')
3299
+ * @param options - Optional customization for layer appearance
3300
+ * @returns Array of NodeDefinition objects in paint order: style, optional image, overlay
3301
+ *
3302
+ * @example
3303
+ * // Basic usage in a block
3304
+ * const heroBackgroundNodes = backgroundLayer('_sectionStyles.background')
3305
+ *
3306
+ * @example
3307
+ * // Custom styling
3308
+ * const customBackgroundNodes = backgroundLayer('_sectionStyles.background', {
3309
+ * imageClassName: 'rb-absolute rb-inset-0 rb-z-neg-10 rb-h-full rb-w-full rb-object-cover rb-opacity-30'
3310
+ * })
3311
+ *
3312
+ * @example
3313
+ * // In a block layout
3314
+ * const layout = section(
3315
+ * { background: 'background' },
3316
+ * [
3317
+ * ...backgroundLayer('_sectionStyles.background'),
3318
+ * sectionContainer([])
3319
+ * ]
3320
+ * )
3321
+ */
3322
+ function backgroundLayer(path, options = {}) {
3323
+ 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;
3324
+ const styleLayer = el("div", {
3325
+ className: styleClassName,
3326
+ style: { $bind: {
3327
+ from: path,
3328
+ transforms: [{
3329
+ id: "background.resolveStyle",
3330
+ ...typeof fallbackToken === "string" && fallbackToken.trim().length > 0 ? { options: { fallbackToken: fallbackToken.trim() } } : {}
3331
+ }]
3332
+ } }
3333
+ });
3334
+ const imageLayer = createBackgroundImageNode(path, imageClassName, {
3335
+ loading: imageLoading,
3336
+ fetchPriority: imageFetchPriority,
3337
+ slot: imageSlot
3338
+ });
3339
+ const overlayLayer = createBackgroundOverlayNode(path, overlayClassName);
3340
+ return omitImageLayer ? [styleLayer, overlayLayer] : [
3341
+ styleLayer,
3342
+ imageLayer,
3343
+ overlayLayer
3344
+ ];
3345
+ }
3346
+ /**
3347
+ * Wrap decorative background layers in their own clipping frame.
3348
+ *
3349
+ * Foreground content remains outside this frame, so editor outlines, focus
3350
+ * rings, and floating controls are never clipped by a visual background.
3351
+ * Backgrounds that explicitly opt into overflow keep that behavior within
3352
+ * the decorative layer rather than changing the content root.
3353
+ */
3354
+ function backgroundFrame(path, options = {}) {
3355
+ const { leadingNodes = [], frameSlot, ...layerOptions } = options;
3356
+ const framedLayerOptions = {
3357
+ ...layerOptions,
3358
+ styleClassName: layerOptions.styleClassName ?? "background-style rb-absolute rb-inset-0 rb-z-0 rb-h-full rb-w-full rb-pointer-events-none",
3359
+ imageClassName: layerOptions.imageClassName ?? "rb-absolute rb-z-0",
3360
+ overlayClassName: layerOptions.overlayClassName ?? "background-overlay rb-absolute rb-inset-0 rb-z-0 rb-h-full rb-w-full rb-pointer-events-none"
3361
+ };
3362
+ return el("div", {
3363
+ ...frameSlot ? lookSlot(frameSlot) : {},
3364
+ className: { $bind: {
3365
+ from: path,
3129
3366
  transforms: [{
3130
3367
  id: "background.resolveFrameClassName",
3131
3368
  options: { baseClass: BACKGROUND_FRAME_BASE_CLASS }
@@ -3277,422 +3514,168 @@ function styledContainer(config) {
3277
3514
  ...safeRootProps,
3278
3515
  style: { $bind: {
3279
3516
  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}`;
3517
+ transforms: [{
3518
+ id: "background.resolveColorsStyle",
3519
+ options: { arrangementInherits: true }
3520
+ }]
3521
+ } },
3522
+ className: { $bind: {
3523
+ from: bindFrom,
3524
+ transforms: [constrainWidth ? {
3525
+ id: "containerStyles.resolveBoxClassName",
3526
+ options: { baseClass: baseClassName }
3527
+ } : {
3528
+ id: "boxStyles.all",
3529
+ options: {
3530
+ axis: "all",
3531
+ baseClass: baseClassName
3532
+ }
3533
+ }],
3534
+ fallback: constrainWidth ? `${baseClassName} rb-container` : baseClassName
3535
+ } }
3536
+ }, [when("content._lookSlots", { not: true })(backgroundNode), ...childrenArray]);
3608
3537
  }
3609
3538
  //#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
- };
3539
+ //#region ../blocks/src/system/node/fragments/styledSection.ts
3540
+ /**
3541
+ * Create a styled section with automatic background layer and spacing bindings.
3542
+ *
3543
+ * This helper encapsulates the common pattern of:
3544
+ * - Creating a section wrapper with background theme
3545
+ * - Adding background color/gradient/image layers
3546
+ * - Binding className to section styles with transform
3547
+ * - Keeping foreground overflow visible while decorative backgrounds clip independently
3548
+ * - Wrapping content children
3549
+ *
3550
+ * Use this helper to eliminate 25+ lines of boilerplate section setup code.
3551
+ *
3552
+ * @example
3553
+ * // Basic usage with default spacing
3554
+ * const layout = styledSection({
3555
+ * children: sectionContainer(contentNodes, { gap: 'md' }),
3556
+ * });
3557
+ *
3558
+ * @example
3559
+ * // Custom spacing and base padding
3560
+ * const compactLayout = styledSection({
3561
+ * children: sectionContainer(contentNodes, { gap: 'sm' }),
3562
+ * baseClass: 'rb-px-8',
3563
+ * spacing: 'compact',
3564
+ * });
3565
+ *
3566
+ * @example
3567
+ * // Multiple children
3568
+ * const layout = styledSection({
3569
+ * children: [
3570
+ * heading({ text: 'Title' }),
3571
+ * sectionContainer(contentNodes, { gap: 'md' }),
3572
+ * ],
3573
+ * });
3574
+ *
3575
+ * @example
3576
+ * // Custom binding path (for nested sections)
3577
+ * const nestedSection = styledSection({
3578
+ * children: content,
3579
+ * bindFrom: 'container.styles',
3580
+ * });
3581
+ */
3582
+ function styledSection(config) {
3583
+ 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;
3584
+ const renderedBackgroundNode = backgroundFrame(`${bindFrom}.background`, {
3585
+ ...config.backgroundLookSlots ? {
3586
+ frameSlot: "background",
3587
+ imageSlot: "photo"
3588
+ } : {},
3589
+ imageClassName,
3590
+ fallbackToken: background,
3591
+ omitImageLayer: !renderBackgroundImage,
3592
+ imageLoading: backgroundImageLoading,
3593
+ imageFetchPriority: backgroundImageFetchPriority
3594
+ });
3595
+ const childrenArray = Array.isArray(children) ? children : [children];
3596
+ return section(sectionAppearanceProps({
3597
+ bindFrom,
3598
+ background,
3599
+ baseClass,
3600
+ spacing,
3601
+ fullWidthPath,
3602
+ photoPaintsGround: renderBackgroundImage,
3603
+ skinSlot: config.skinSlot
3604
+ }), [renderedBackgroundNode, ...childrenArray]);
3640
3605
  }
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
- }
3606
+ function sectionAppearanceProps(input) {
3667
3607
  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
3608
+ ...input.skinSlot ? lookSlot(input.skinSlot, "skin") : lookSlot("section"),
3609
+ "data-arrangement": { $bind: { from: "content._lookHooks.data-arrangement" } },
3610
+ style: { $bind: {
3611
+ from: `${input.bindFrom}.background`,
3612
+ transforms: [{
3613
+ id: "sectionStyles.resolveColorsStyle",
3614
+ options: {
3615
+ fallbackToken: input.background,
3616
+ photoPaintsGround: input.photoPaintsGround
3617
+ }
3618
+ }]
3619
+ } },
3620
+ className: { $bind: {
3621
+ from: input.bindFrom,
3622
+ transforms: [{
3623
+ id: "sectionStyles.resolveClassName",
3624
+ options: {
3625
+ baseClass: input.baseClass,
3626
+ defaultSpacing: input.spacing,
3627
+ fullWidthPath: input.fullWidthPath
3628
+ }
3629
+ }]
3630
+ } }
3675
3631
  };
3676
3632
  }
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;
3633
+ //#endregion
3634
+ //#region ../blocks/src/system/transforms/registry/_utils/themeColorResolution.ts
3635
+ function resolveBackgroundColorValue(value, context) {
3636
+ return resolveThemeColorReferenceValue(value, { palette: context.theme?.palette });
3682
3637
  }
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;
3638
+ //#endregion
3639
+ //#region ../blocks/src/system/node/fragments/sectionHead.ts
3640
+ const recoverEmptyHeadingWhenActive = {
3641
+ kind: "recover-empty-when-active",
3642
+ placeholder: "Add heading"
3643
+ };
3644
+ const recoverEmptyDescriptionWhenActive = {
3645
+ kind: "recover-empty-when-active",
3646
+ placeholder: "Add description"
3647
+ };
3648
+ function sectionHeaderLayoutNodes(options = {}) {
3649
+ const headingNode = text({
3650
+ as: "h2",
3651
+ ...lookSlot("heading")
3652
+ }, bind("content.heading"), when("content.heading", { authoringPresence: recoverEmptyHeadingWhenActive }));
3653
+ const descriptionNode = richText({
3654
+ className: "rb-prose rb-max-w-none",
3655
+ ...lookSlot("intro")
3656
+ }, bind("content.description"), when("content.description", { authoringPresence: recoverEmptyDescriptionWhenActive }));
3657
+ if (options.splitClassName) return [el("div", {
3658
+ className: options.splitClassName,
3659
+ ...lookSlot("head")
3660
+ }, [headingNode, descriptionNode])];
3661
+ return [headingNode, descriptionNode];
3695
3662
  }
3663
+ /** Shared optional section copy. Existing consumers keep their description ID. */
3664
+ const sectionHeaderFields = (defaultHeading, introLabel = "Description") => [{
3665
+ id: "heading",
3666
+ type: "text",
3667
+ label: "Heading",
3668
+ description: "Main heading for the section",
3669
+ required: false,
3670
+ multiline: false,
3671
+ ...defaultHeading === void 0 ? {} : { defaultValue: defaultHeading }
3672
+ }, {
3673
+ id: "description",
3674
+ type: "richText",
3675
+ label: introLabel,
3676
+ description: "Optional introductory text",
3677
+ required: false
3678
+ }];
3696
3679
  //#endregion
3697
3680
  //#region ../blocks/src/system/fragments/library/formCopy.ts
3698
3681
  const formCopyFragment = defineFragment({
@@ -3727,6 +3710,25 @@ const formCopyFragment = defineFragment({
3727
3710
  } }), bind("content.intro"))]
3728
3711
  });
3729
3712
  //#endregion
3713
+ //#region ../blocks/src/system/helpers/api-bindings.ts
3714
+ /**
3715
+ * Standard API bindings that all interactive blocks need.
3716
+ */
3717
+ const apiBindings = {
3718
+ now: { $bind: { from: "$root.now" } },
3719
+ siteId: { $bind: { from: "$root.siteId" } },
3720
+ apiBaseUrl: { $bind: { from: "$root.apiBaseUrl" } }
3721
+ };
3722
+ function withApiBindings(props, options) {
3723
+ return {
3724
+ ...options?.includeApiBaseUrl ?? true ? apiBindings : {
3725
+ siteId: apiBindings.siteId,
3726
+ now: apiBindings.now
3727
+ },
3728
+ ...props
3729
+ };
3730
+ }
3731
+ //#endregion
3730
3732
  //#region ../blocks/src/system/fragments/library/formEmbed.ts
3731
3733
  const formEmbedFragment = defineFragment({
3732
3734
  variantMeaning: { kind: "arrangement" },
@@ -4529,6 +4531,24 @@ const eventRegistrationManifest = createBlockManifest({
4529
4531
  paletteHidden: false
4530
4532
  },
4531
4533
  additionalFields: [
4534
+ {
4535
+ id: "pageKind",
4536
+ type: "select",
4537
+ label: "Page kind",
4538
+ multiple: false,
4539
+ defaultValue: "fullPage",
4540
+ options: [{
4541
+ value: "fullPage",
4542
+ label: "Full page"
4543
+ }, {
4544
+ value: "bookingPage",
4545
+ label: "Booking page"
4546
+ }],
4547
+ ui: {
4548
+ hidden: true,
4549
+ intent: "behavior"
4550
+ }
4551
+ },
4532
4552
  {
4533
4553
  id: "heading",
4534
4554
  type: "text",
@@ -4630,6 +4650,10 @@ const eventRegistrationManifest = createBlockManifest({
4630
4650
  } },
4631
4651
  readAuthority: { $bind: { from: "$root.readAuthority" } },
4632
4652
  occurrenceContext: { $bind: { from: "$root.occurrenceContext" } },
4653
+ pageKind: { $bind: {
4654
+ from: "content.pageKind",
4655
+ fallback: "fullPage"
4656
+ } },
4633
4657
  subject: { $bind: { from: "$root.subject" } },
4634
4658
  pageNavigation: { $bind: { from: "$root.pageNavigation" } },
4635
4659
  portalToken: { $bind: {
@@ -4661,8 +4685,6 @@ const eventRegistrationManifest = createBlockManifest({
4661
4685
  from: "$root.bookingOfferingPresets",
4662
4686
  fallback: []
4663
4687
  } },
4664
- sitePasses: { $bind: { from: "data.sitePasses" } },
4665
- siteMemberships: { $bind: { from: "data.siteMemberships" } },
4666
4688
  stage: { $bind: {
4667
4689
  from: "$root.previewStage",
4668
4690
  fallback: "published"
@@ -4672,7 +4694,10 @@ const eventRegistrationManifest = createBlockManifest({
4672
4694
  })]
4673
4695
  });
4674
4696
  const registrationEventScopeParams = {
4675
- detailAdmission: { $bind: { from: "$root.subject.detailAdmission" } },
4697
+ detailAdmission: { $bind: {
4698
+ from: "$root",
4699
+ transforms: [{ id: "events.registrationPageReadAdmission" }]
4700
+ } },
4676
4701
  seriesId: { $bind: { from: "$root.subject.eventSeriesId" } },
4677
4702
  seriesIds: { $bind: {
4678
4703
  from: "$root.subject.catalogueEventSeriesIds",
@@ -4686,8 +4711,6 @@ const eventRegistrationBlockDefinition = {
4686
4711
  dataSchemas: {
4687
4712
  events: publicEventsArraySchema.optional(),
4688
4713
  wholeSeriesRunEvents: publicEventsArraySchema.optional(),
4689
- sitePasses: publicPassProductCollectionSchema.optional(),
4690
- siteMemberships: publicMembershipProductCollectionSchema.optional(),
4691
4714
  occurrenceContext: occurrenceContextSchema.optional()
4692
4715
  },
4693
4716
  dataLoaders: {
@@ -4736,16 +4759,6 @@ const eventRegistrationBlockDefinition = {
4736
4759
  ...registrationEventScopeParams
4737
4760
  },
4738
4761
  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
4762
  }
4750
4763
  }
4751
4764
  };
@@ -7553,6 +7566,102 @@ const newsletterSignupBlockDefinition = {
7553
7566
  runtime: newsletterFormBlockRuntime
7554
7567
  };
7555
7568
  //#endregion
7569
+ //#region ../blocks/src/system/blocks/appointments/presentation.ts
7570
+ const publicVenueSchema = z.object({
7571
+ name: z.string(),
7572
+ area: z.string().nullable()
7573
+ });
7574
+ const publicAppointmentLocationSchema = z.discriminatedUnion("mode", [
7575
+ z.object({ mode: z.literal("online") }),
7576
+ z.object({
7577
+ mode: z.literal("in_person"),
7578
+ venue: publicVenueSchema.nullable()
7579
+ }),
7580
+ z.object({
7581
+ mode: z.literal("either"),
7582
+ venue: publicVenueSchema.nullable()
7583
+ })
7584
+ ]);
7585
+ const publicPricingOptionSchema = z.object({
7586
+ priceAmount: z.number().finite(),
7587
+ isActive: z.boolean(),
7588
+ saleStartsAt: z.string().nullable(),
7589
+ saleEndsAt: z.string().nullable()
7590
+ });
7591
+ const publicAppointmentPricingSchema = z.object({
7592
+ pricingStrategy: z.enum([
7593
+ "free",
7594
+ "single",
7595
+ "tiered",
7596
+ "sliding_scale"
7597
+ ]),
7598
+ currency: z.string().min(1),
7599
+ singlePriceAmount: z.number().nullable(),
7600
+ slidingMinAmount: z.number().nullable(),
7601
+ slidingMaxAmount: z.number().nullable(),
7602
+ options: z.array(publicPricingOptionSchema).readonly()
7603
+ });
7604
+ function formatAppointmentDuration(durationMinutes) {
7605
+ return `${durationMinutes} ${durationMinutes === 1 ? "minute" : "minutes"}`;
7606
+ }
7607
+ function formatAppointmentLocation(location) {
7608
+ switch (location.mode) {
7609
+ case "online": return "Online";
7610
+ case "in_person": return formatVenue(location.venue);
7611
+ case "either": {
7612
+ const venue = formatVenue(location.venue);
7613
+ return venue ? `${venue} or online` : "In person or online";
7614
+ }
7615
+ default: return assertNever$1(location);
7616
+ }
7617
+ }
7618
+ function formatVenue(venue) {
7619
+ if (!venue) return null;
7620
+ return venue.area ? `${venue.name}, ${venue.area}` : venue.name;
7621
+ }
7622
+ function formatAppointmentPrice(service) {
7623
+ if (service.onlinePaymentMode === "package_only") return "Book with a package";
7624
+ const pricing = service.pricing;
7625
+ if (pricing) {
7626
+ const display = appointmentPricingDisplay(pricing);
7627
+ return display.kind === "unavailable" ? null : formatBookingPriceDisplay(display, { decimals: "auto" });
7628
+ }
7629
+ return formatAmountOrFree(service.priceAmount, service.priceCurrency);
7630
+ }
7631
+ function formatAmountOrFree(amount, currency) {
7632
+ if (amount === null || currency === null) return null;
7633
+ if (amount === 0) return "Free";
7634
+ return formatBookingPriceDisplay({
7635
+ kind: "exact",
7636
+ amount,
7637
+ currency
7638
+ }, { decimals: "auto" });
7639
+ }
7640
+ function appointmentPricingDisplay(pricing) {
7641
+ switch (pricing.pricingStrategy) {
7642
+ case "free": return {
7643
+ kind: "free",
7644
+ currency: pricing.currency
7645
+ };
7646
+ case "single": return resolveExactOrFreePriceDisplay(pricing.singlePriceAmount, pricing.currency);
7647
+ case "tiered": return resolvePricingOptionsPriceDisplay({
7648
+ options: pricing.options,
7649
+ currency: pricing.currency,
7650
+ purpose: "available_now"
7651
+ });
7652
+ case "sliding_scale": return pricing.slidingMinAmount === null || pricing.slidingMaxAmount === null ? {
7653
+ kind: "unavailable",
7654
+ currency: pricing.currency
7655
+ } : {
7656
+ kind: "range",
7657
+ minAmount: pricing.slidingMinAmount,
7658
+ maxAmount: pricing.slidingMaxAmount,
7659
+ currency: pricing.currency
7660
+ };
7661
+ default: return assertNever$1(pricing.pricingStrategy);
7662
+ }
7663
+ }
7664
+ //#endregion
7556
7665
  //#region ../blocks/src/primitives/layout/Section.tsx
7557
7666
  const Section = forwardRef(function Section({ as: Comp = "section", children, background, className = "", style, "data-slot": dataSlot, "data-arrangement": dataArrangement, "data-surface": dataSurface }, ref) {
7558
7667
  return /* @__PURE__ */ jsx(Comp, {
@@ -7623,8 +7732,10 @@ const GridNode = (props) => /* @__PURE__ */ jsx(Grid, { ...props });
7623
7732
  const DivNode = (props) => /* @__PURE__ */ jsx("div", { ...props });
7624
7733
  const FigureNode = (props) => /* @__PURE__ */ jsx("figure", { ...props });
7625
7734
  const OrderedListNode = (props) => /* @__PURE__ */ jsx("ol", { ...props });
7735
+ const UnorderedListNode = (props) => /* @__PURE__ */ jsx("ul", { ...props });
7626
7736
  const ListItemNode = (props) => /* @__PURE__ */ jsx("li", { ...props });
7627
7737
  const FigcaptionNode = (props) => /* @__PURE__ */ jsx("figcaption", { ...props });
7738
+ const DescriptionListNode = (props) => /* @__PURE__ */ jsx("dl", { ...props });
7628
7739
  //#endregion
7629
7740
  //#region ../blocks/src/system/runtime/nodes/icon.tsx
7630
7741
  const IconNode = ({ value, title, className, blockId: _blockId, blockKind: _blockKind, blockContent: _blockContent, fragmentRegistry: _fragmentRegistry, pathBase: _pathBase, ...rest }) => {
@@ -8464,40 +8575,6 @@ function ListGroup({ presentation, title, intro, Heading, sectionProps, children
8464
8575
  }
8465
8576
  //#endregion
8466
8577
  //#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
8578
  const publicAppointmentServiceSchema = z.object({
8502
8579
  id: z.string().min(1),
8503
8580
  image: runtimeMediaSchema.nullable().optional(),
@@ -8505,11 +8582,11 @@ const publicAppointmentServiceSchema = z.object({
8505
8582
  title: z.string(),
8506
8583
  description: z.string().nullable().optional(),
8507
8584
  durationMinutes: z.number().int().positive(),
8508
- pricing: publicPricingSchema.optional(),
8585
+ pricing: publicAppointmentPricingSchema.optional(),
8509
8586
  priceAmount: z.number().nullable(),
8510
8587
  priceCurrency: z.string().nullable(),
8511
8588
  onlinePaymentMode: z.enum(["session_or_package", "package_only"]).optional(),
8512
- location: publicLocationSchema,
8589
+ location: publicAppointmentLocationSchema,
8513
8590
  categoryId: z.string().nullable().optional().transform((value) => value ?? null)
8514
8591
  });
8515
8592
  const publicServiceCategorySchema = z.object({
@@ -8546,65 +8623,6 @@ function readCategoryFilter(value) {
8546
8623
  const trimmed = value.trim();
8547
8624
  return trimmed.length > 0 ? trimmed : null;
8548
8625
  }
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
8626
  function buildRows(services, pathname, servicePathPrefix) {
8609
8627
  return services.map((service) => ({
8610
8628
  id: service.id,
@@ -9040,54 +9058,59 @@ function BookingFormSSR({ blockId, children, ...sourceProps }) {
9040
9058
  id: blockId,
9041
9059
  attributes: { "data-block": "appointment-booking" },
9042
9060
  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
9061
+ children: [/* @__PURE__ */ jsx(BookingPanelArrangement, {
9062
+ pageKind: sourceProps.pageKind,
9063
+ children: display.state === "missing" ? /* @__PURE__ */ jsx("div", {
9064
+ ...bookingPresentation(sourceProps.pageKind).panelAttributes,
9065
+ className: `rb-reg-surface booking-form-ssr ${sourceProps.className ?? ""}`.trim(),
9066
+ children: /* @__PURE__ */ jsx("div", {
9067
+ className: "alert alert-error",
9068
+ role: "alert",
9069
+ children: /* @__PURE__ */ jsx("p", {
9070
+ className: "ab-text",
9071
+ children: display.message
9072
+ })
9051
9073
  })
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", {
9074
+ }) : /* @__PURE__ */ jsxs("div", {
9075
+ ...bookingPresentation(sourceProps.pageKind).panelAttributes,
9076
+ className: `rb-reg-surface booking-form-ssr ab-shell ${sourceProps.className ?? ""}`.trim(),
9077
+ "aria-busy": true,
9078
+ "aria-label": "Loading booking form",
9079
+ role: "status",
9080
+ children: [/* @__PURE__ */ jsx("span", {
9081
+ className: "rb-sr-only",
9082
+ children: "Loading booking form..."
9083
+ }), /* @__PURE__ */ jsxs("div", {
9084
+ className: "rb-reg-stack",
9085
+ "aria-hidden": "true",
9086
+ children: [
9087
+ bookingPresentation(sourceProps.pageKind).showShellHeading ? /* @__PURE__ */ jsx("div", {
9088
+ className: "rb-reg-summary",
9089
+ children: /* @__PURE__ */ jsxs("div", {
9090
+ className: "rb-reg-stack rb-reg-stack--sm",
9091
+ children: [/* @__PURE__ */ jsx("div", { className: "rb-shell-line rb-shell-line--md" }), /* @__PURE__ */ jsx("div", { className: "rb-shell-line rb-shell-line--sm" })]
9092
+ })
9093
+ }) : null,
9094
+ /* @__PURE__ */ jsxs("div", {
9068
9095
  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
9096
+ children: [/* @__PURE__ */ jsx("div", { className: "rb-shell-line rb-shell-line--lg" }), /* @__PURE__ */ jsx("div", { className: "rb-shell-line rb-shell-line--xs" })]
9097
+ }),
9098
+ /* @__PURE__ */ jsx("div", {
9099
+ className: "rb-wizard-actions",
9100
+ children: /* @__PURE__ */ jsx("div", {
9101
+ className: "ab-shell-button",
9102
+ children: display.submitLabel
9103
+ })
9081
9104
  })
9082
- })
9083
- ]
9084
- })]
9105
+ ]
9106
+ })]
9107
+ })
9085
9108
  }), children]
9086
9109
  });
9087
9110
  }
9088
9111
  //#endregion
9089
9112
  //#region ../blocks/src/system/runtime/nodes/event-details.server.tsx
9090
- function eventDetailsIslandValue({ props, presentation, scopedEvents, subject, nowIso }) {
9113
+ function eventDetailsIslandValue({ props, presentation, scopedEvents, subject }) {
9091
9114
  return {
9092
9115
  ...props.arrangement ? {
9093
9116
  arrangement: props.arrangement,
@@ -9097,6 +9120,7 @@ function eventDetailsIslandValue({ props, presentation, scopedEvents, subject, n
9097
9120
  surfacePresentation: props.surfacePresentation,
9098
9121
  panelHeading: props.panelHeading
9099
9122
  } : {},
9123
+ quickFacts: props.quickFacts,
9100
9124
  occurrenceContext: props.occurrenceContext ?? null,
9101
9125
  subject,
9102
9126
  events: scopedEvents,
@@ -9115,12 +9139,11 @@ function eventDetailsIslandValue({ props, presentation, scopedEvents, subject, n
9115
9139
  siteMemberships: props.siteMemberships,
9116
9140
  autoApplyDiscount: presentation.autoApplyDiscount,
9117
9141
  className: props.className,
9118
- nowIso
9142
+ now: props.now
9119
9143
  };
9120
9144
  }
9121
9145
  function EventDetailsSSR(props) {
9122
9146
  const { blockId, occurrenceContext = null, subject, events = null, className, children } = props;
9123
- const nowIso = props.now;
9124
9147
  const normalizedSubject = normalizeEventRegistrationPageSurfaceSubject(subject);
9125
9148
  const scopedEvents = events === null ? null : resolveEventRegistrationScopedEvents(events, {
9126
9149
  occurrenceContext,
@@ -9130,8 +9153,7 @@ function EventDetailsSSR(props) {
9130
9153
  ...props,
9131
9154
  events: scopedEvents,
9132
9155
  occurrenceContext,
9133
- subject: normalizedSubject,
9134
- nowIso
9156
+ subject: normalizedSubject
9135
9157
  });
9136
9158
  return /* @__PURE__ */ jsxs(IslandRoot, {
9137
9159
  kind: "event-details",
@@ -9144,8 +9166,7 @@ function EventDetailsSSR(props) {
9144
9166
  props,
9145
9167
  presentation,
9146
9168
  scopedEvents,
9147
- subject: normalizedSubject,
9148
- nowIso
9169
+ subject: normalizedSubject
9149
9170
  }),
9150
9171
  children: [/* @__PURE__ */ jsx(EventDetailsView, {
9151
9172
  ...presentation,
@@ -9739,27 +9760,34 @@ function FeaturedOfferingSummary({ item }) {
9739
9760
  if (!details) return null;
9740
9761
  return /* @__PURE__ */ jsxs("article", {
9741
9762
  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
- })]
9763
+ children: [
9764
+ /* @__PURE__ */ jsx(EventQuickFacts, {
9765
+ facts: item.kind === "event" ? item.event.facts : item.run.representative.facts,
9766
+ context: "card"
9767
+ }),
9768
+ /* @__PURE__ */ jsxs("p", {
9769
+ className: "offerings-preview-summary-date",
9770
+ children: [/* @__PURE__ */ jsx("time", {
9771
+ dateTime: details.startDateTime,
9772
+ children: details.startDate
9773
+ }), details.endDate ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("span", {
9774
+ "aria-hidden": "true",
9775
+ children: " – "
9776
+ }), /* @__PURE__ */ jsx("time", {
9777
+ dateTime: details.endDateTime,
9778
+ children: details.endDate
9779
+ })] }) : null]
9780
+ }),
9781
+ /* @__PURE__ */ jsxs("dl", {
9782
+ className: "offerings-preview-summary-facts",
9783
+ children: [
9784
+ details.recurrence ? /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("dt", { children: "Repeats" }), /* @__PURE__ */ jsx("dd", { children: details.recurrence })] }) : null,
9785
+ details.sessionCount ? /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("dt", { children: "Sessions" }), /* @__PURE__ */ jsx("dd", { children: details.sessionCount })] }) : null,
9786
+ details.timeRange ? /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("dt", { children: "Time" }), /* @__PURE__ */ jsx("dd", { children: details.timeRange })] }) : null,
9787
+ details.venue ? /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("dt", { children: "Venue" }), /* @__PURE__ */ jsx("dd", { children: details.venue })] }) : null
9788
+ ]
9789
+ })
9790
+ ]
9763
9791
  });
9764
9792
  }
9765
9793
  function featuredSummaryDetails(item) {
@@ -9923,31 +9951,38 @@ function WholeSeriesRunCompactRow({ group, path, now }) {
9923
9951
  }),
9924
9952
  /* @__PURE__ */ jsxs("div", {
9925
9953
  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
- })]
9954
+ children: [
9955
+ /* @__PURE__ */ jsx(OfferingTitle, {
9956
+ className: "event-compact-row-title",
9957
+ path,
9958
+ title: group.representative.title
9959
+ }),
9960
+ /* @__PURE__ */ jsx(EventQuickFacts, {
9961
+ facts: group.representative.facts,
9962
+ context: "card"
9963
+ }),
9964
+ /* @__PURE__ */ jsxs("div", {
9965
+ className: "event-compact-row-meta",
9966
+ children: [
9967
+ group.representative.venue ? /* @__PURE__ */ jsx("span", {
9968
+ className: "event-compact-row-venue",
9969
+ children: group.representative.venue.name
9970
+ }) : null,
9971
+ /* @__PURE__ */ jsx("span", {
9972
+ className: "event-compact-row-price",
9973
+ children: price
9974
+ }),
9975
+ /* @__PURE__ */ jsxs("span", {
9976
+ className: "event-compact-row-price",
9977
+ children: [
9978
+ sessionsCount,
9979
+ " session",
9980
+ sessionsCount === 1 ? "" : "s"
9981
+ ]
9982
+ })
9983
+ ]
9984
+ })
9985
+ ]
9951
9986
  }),
9952
9987
  /* @__PURE__ */ jsxs("div", {
9953
9988
  className: "event-compact-row-action",
@@ -9996,6 +10031,10 @@ function WholeSeriesRunFeatureCard({ group, now, path, buttonVariant, buttonText
9996
10031
  path,
9997
10032
  title: group.representative.title
9998
10033
  }),
10034
+ /* @__PURE__ */ jsx(EventQuickFacts, {
10035
+ facts: group.representative.facts,
10036
+ context: "card"
10037
+ }),
9999
10038
  /* @__PURE__ */ jsxs("div", {
10000
10039
  className: "rb-mb-2 rb-caption",
10001
10040
  children: [/* @__PURE__ */ jsx("time", { children: formattedDate }), /* @__PURE__ */ jsx("p", { children: timeRange })]
@@ -10090,6 +10129,10 @@ function RunWithoutLiveDates({ group, path }) {
10090
10129
  path,
10091
10130
  title: group.representative.title
10092
10131
  }),
10132
+ /* @__PURE__ */ jsx(EventQuickFacts, {
10133
+ facts: group.representative.facts,
10134
+ context: "card"
10135
+ }),
10093
10136
  /* @__PURE__ */ jsx("p", { children: "No dates available." }),
10094
10137
  /* @__PURE__ */ jsx("span", {
10095
10138
  className: "event-compact-row-status",
@@ -10893,35 +10936,76 @@ const EventListingSSR = (props) => {
10893
10936
  * Server-safe placeholder for event registration.
10894
10937
  * Provides a static container for island hydration without importing client hooks.
10895
10938
  */
10896
- function EventRegistrationSSR({ blockId, subject, loaderFailures, children, ...sourceProps }) {
10939
+ function EventRegistrationSSR({ subject, loaderFailures, ...props }) {
10940
+ const selection = resolveBookingPanelSelection({
10941
+ ...props,
10942
+ subject,
10943
+ eventLoaderFailures: props.blockId ? loaderFailures?.[props.blockId] : void 0
10944
+ });
10945
+ if (!selection) return /* @__PURE__ */ jsx(BookingPanelArrangement, {
10946
+ pageKind: props.pageKind,
10947
+ children: /* @__PURE__ */ jsx(EventRegistrationIsland, {
10948
+ ...props,
10949
+ subject: normalizeEventRegistrationPageSurfaceSubject(subject),
10950
+ loaderFailures
10951
+ })
10952
+ });
10953
+ return /* @__PURE__ */ jsx(SelectedEventRegistration, {
10954
+ selection,
10955
+ island: {
10956
+ ...props,
10957
+ subject: selection.subject,
10958
+ loaderFailures
10959
+ }
10960
+ });
10961
+ }
10962
+ /** Once admitted, render the decided target without re-parsing its subject. */
10963
+ function SelectedEventRegistration({ selection, island }) {
10964
+ const panel = planEventBookingPanel(selection, new Date(island.now));
10965
+ const registration = registrationSourceForPanel(island, panel);
10966
+ return /* @__PURE__ */ jsx(EventBookingPanelView, {
10967
+ panel,
10968
+ pageKind: island.pageKind ?? "fullPage",
10969
+ children: registration ? /* @__PURE__ */ jsx(EventRegistrationIsland, {
10970
+ ...island,
10971
+ ...registration,
10972
+ insidePanel: true
10973
+ }) : null
10974
+ });
10975
+ }
10976
+ function EventRegistrationIsland({ blockId, subject, loaderFailures, children, insidePanel, ...sourceProps }) {
10897
10977
  const islandProps = buildEventRegistrationInteractiveIslandProps({
10898
10978
  ...sourceProps,
10899
10979
  eventLoaderFailures: blockId ? loaderFailures?.[blockId] : void 0,
10900
- subject: normalizeEventRegistrationPageSurfaceSubject(subject)
10980
+ subject
10901
10981
  });
10902
10982
  const display = islandProps.render.display;
10903
- const className = sourceProps.className;
10983
+ const className = display.className;
10904
10984
  return /* @__PURE__ */ jsxs(IslandRoot, {
10905
10985
  kind: "event-registration",
10906
10986
  id: blockId,
10907
10987
  attributes: {
10908
10988
  className: `event-registration ${className ?? ""}`.trim(),
10909
10989
  "data-block": "event-registration",
10990
+ ...insidePanel ? void 0 : bookingPresentation(sourceProps.pageKind).panelAttributes,
10910
10991
  "data-rb-island-required": "true",
10911
10992
  "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
10993
  "data-rb-island-error-class": "event-registration__hydration-error"
10913
10994
  },
10914
10995
  value: islandProps,
10915
- children: [display.state === "booking-card" ? /* @__PURE__ */ jsx("div", {
10996
+ children: [islandProps.render.hydration.admission === "recoveryOnly" ? null : display.state === "booking-card" ? /* @__PURE__ */ jsx("div", {
10916
10997
  id: EVENT_REGISTRATION_ANCHOR_ID,
10917
10998
  children: /* @__PURE__ */ jsx(BookingEntryCard, {
10918
10999
  entry: display.entry,
10919
11000
  buttonVariant: display.buttonVariant ?? "primary"
10920
11001
  })
10921
- }) : /* @__PURE__ */ jsx(EventRegistrationShell, { display }), children]
11002
+ }) : /* @__PURE__ */ jsx(EventRegistrationShell, {
11003
+ display,
11004
+ showHeading: bookingPresentation(sourceProps.pageKind).showShellHeading
11005
+ }), children]
10922
11006
  });
10923
11007
  }
10924
- function EventRegistrationShell({ display }) {
11008
+ function EventRegistrationShell({ display, showHeading }) {
10925
11009
  if (display.state === "registration-closed") return /* @__PURE__ */ jsx(RegistrationClosedState, {
10926
11010
  title: display.titleText,
10927
11011
  body: display.bodyText
@@ -10943,32 +11027,9 @@ function EventRegistrationShell({ display }) {
10943
11027
  totalSteps: display.stepLabels.length,
10944
11028
  stepLabels: [...display.stepLabels]
10945
11029
  })
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
- })]
11030
+ }), /* @__PURE__ */ jsx(RegistrationShellBody, {
11031
+ display,
11032
+ showHeading
10972
11033
  })]
10973
11034
  }), /* @__PURE__ */ jsx("div", {
10974
11035
  className: "er-payment-layout-footer",
@@ -10987,6 +11048,32 @@ function EventRegistrationShell({ display }) {
10987
11048
  })
10988
11049
  });
10989
11050
  }
11051
+ /** Copy and skeleton cards for the first step, before its island is ready. */
11052
+ function RegistrationShellBody({ display, showHeading }) {
11053
+ return /* @__PURE__ */ jsxs("div", {
11054
+ className: "rb-reg-stack er-stack",
11055
+ children: [/* @__PURE__ */ jsxs("div", { children: [showHeading ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("p", {
11056
+ className: "er-registration-shell__eyebrow",
11057
+ children: "Registration"
11058
+ }), /* @__PURE__ */ jsx("h3", {
11059
+ className: "er-title er-registration-shell__title",
11060
+ children: display.titleText
11061
+ })] }) : null, /* @__PURE__ */ jsx("p", {
11062
+ className: "er-text er-text--muted er-registration-shell__copy",
11063
+ children: display.bodyText
11064
+ })] }), /* @__PURE__ */ jsxs("div", {
11065
+ className: "er-event-grid er-registration-shell__cards",
11066
+ "aria-hidden": "true",
11067
+ children: [/* @__PURE__ */ jsxs("div", {
11068
+ className: "er-event-card er-registration-shell__card",
11069
+ 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" })]
11070
+ }), /* @__PURE__ */ jsxs("div", {
11071
+ className: "er-event-card er-registration-shell__card",
11072
+ 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" })]
11073
+ })]
11074
+ })]
11075
+ });
11076
+ }
10990
11077
  //#endregion
10991
11078
  //#region ../blocks/src/system/runtime/nodes/form.server.tsx
10992
11079
  const FormNodeSSR = ({ blockId, lookSlots, value, submitLabel, successMessage, className, onSubmit, action = "/api/forms/submit", siteId, apiBaseUrl, spamProtectionEnabled }) => {
@@ -11299,9 +11386,11 @@ typedObjectKeys(runtimeBackedBlockServerEntries);
11299
11386
  //#region ../blocks/src/system/runtime/components/registry.server.ts
11300
11387
  const serverComponentRegistry = {
11301
11388
  div: DivNode,
11389
+ dl: DescriptionListNode,
11302
11390
  figure: FigureNode,
11303
11391
  figcaption: FigcaptionNode,
11304
11392
  ol: OrderedListNode,
11393
+ ul: UnorderedListNode,
11305
11394
  li: ListItemNode,
11306
11395
  svg: SvgNode,
11307
11396
  section: SectionNode,
@@ -11337,4 +11426,4 @@ const serverComponentRegistry = {
11337
11426
  ...buildServerRegistryFromEntries(runtimeBackedBlockServerEntries)
11338
11427
  };
11339
11428
  //#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 };
11429
+ 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 };