@riverbankcms/sdk 0.168.0 → 0.169.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (211) hide show
  1. package/dist/_dts/{BlocksIslandsHydrator-CiD_VVGM.d.ts → BlocksIslandsHydrator-DEhlJEwj.d.ts} +1 -1
  2. package/dist/_dts/{Page-Bj6VJRS5.d.ts → Page-BhCfStX1.d.ts} +7 -7
  3. package/dist/_dts/{SdkPreviewMode-ChpsnwDX.d.ts → SdkPreviewMode-DSYdsdmJ.d.ts} +2 -2
  4. package/dist/_dts/{client-C8mfUxrJ.d.ts → client-BZMn4Y99.d.ts} +39 -397
  5. package/dist/_dts/{content-types-_vXZyR4H.d.ts → content-types-EMK-E_r9.d.ts} +2 -2
  6. package/dist/_dts/{contracts-CJFfrVKU.d.ts → contracts-DjYsGY3B.d.ts} +4 -3
  7. package/dist/_dts/{footerPageOutline-CMegb23G.d.ts → footerPageOutline-BtYUi-m0.d.ts} +6 -6
  8. package/dist/_dts/{generatePageMetadata-D9YdAIMh.d.ts → generatePageMetadata-D_fNTi5r.d.ts} +2 -2
  9. package/dist/_dts/{index-BQXaZ7aY.d.ts → index-BR0i0c3G.d.ts} +4 -4
  10. package/dist/_dts/{index-Bpr-wT5k.d.ts → index-BV-qVnt7.d.ts} +2 -2
  11. package/dist/_dts/{index-C7_Rz8EY.d.ts → index-BYYhTQ_b.d.ts} +3 -3
  12. package/dist/_dts/{index-Vh8B9FSa.d.ts → index-BzguBJzR.d.ts} +1 -1
  13. package/dist/_dts/{index-Dgz6yhsy.d.ts → index-DgEwZ5WQ.d.ts} +1 -1
  14. package/dist/_dts/{index-Cx2BQlHL.d.ts → index-NaRauKDR.d.ts} +1 -1
  15. package/dist/_dts/{index-vR3p9Bu-.d.ts → index-QIbYMeI7.d.ts} +2 -2
  16. package/dist/_dts/{loadContent-dhWSgLeS.d.ts → loadContent-BmGH6NKl.d.ts} +7 -7
  17. package/dist/_dts/{request-BrYhNV9Z.d.ts → request-DssgRQSm.d.ts} +9558 -7863
  18. package/dist/_dts/{resolveBlockData-BfSHm8Ms.d.ts → resolveBlockData-5BqNxwL8.d.ts} +5 -5
  19. package/dist/_dts/{resolvePageContent-gZJ4i1wN.d.ts → resolvePageContent-DIuwuFA7.d.ts} +2 -2
  20. package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
  21. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  22. package/dist/_dts/sdk/src/client.d.ts +7 -7
  23. package/dist/_dts/sdk/src/config/index.d.ts +6 -6
  24. package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
  25. package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
  26. package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
  27. package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
  28. package/dist/_dts/sdk/src/data/types.d.ts +2 -2
  29. package/dist/_dts/sdk/src/index.d.ts +8 -8
  30. package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
  31. package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
  32. package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
  33. package/dist/_dts/sdk/src/next/index.d.ts +7 -7
  34. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  35. package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
  36. package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
  37. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  38. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  39. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  40. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  41. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  42. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
  43. package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
  44. package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
  45. package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
  46. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  47. package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
  48. package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
  49. package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
  50. package/dist/_dts/sdk/src/server.d.ts +5 -5
  51. package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
  52. package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
  53. package/dist/_dts/{types-BB33-Spd.d.ts → types-DrAWDtqR.d.ts} +3 -3
  54. package/dist/_dts/{types-BVFXYtRg.d.ts → types-Z388-GR1.d.ts} +7 -7
  55. package/dist/_dts/{types-FOsJ-KYb.d.ts → types-cObpvZGF.d.ts} +2 -2
  56. package/dist/_dts/{validation-DckTc6TQ.d.ts → validation-hLr8zVrc.d.ts} +4 -4
  57. package/dist/client/BlocksIslandsHydrator-CN2GyuuA.mjs +410 -0
  58. package/dist/client/{BookingMailingListNote-Dsugoe-n.mjs → BookingMailingListNote-Br1VyHkP.mjs} +17 -6
  59. package/dist/client/{BookingQuestionFields-Bhh0cvsl.mjs → BookingQuestionFields-LLGCWjvU.mjs} +3 -3
  60. package/dist/client/{CalendarNavigationChevron-CNe3ZjdC.mjs → CalendarNavigationChevron-DSnSBNeq.mjs} +7 -7
  61. package/dist/client/{DemoBookingPortalAccess-BeiZxEUJ.mjs → DemoBookingPortalAccess-Cilv5zdS.mjs} +65 -9
  62. package/dist/client/{EventCalendar.client-BL943-tl.mjs → EventCalendar.client-ucgdMS35.mjs} +9 -9
  63. package/dist/client/{EventCombined.client-BFVxECTp.mjs → EventCombined.client-BEdfJGpx.mjs} +7 -7
  64. package/dist/client/{EventItem-BIc4gjiD.mjs → EventItem-OpLehMpT.mjs} +4 -4
  65. package/dist/client/{EventListWeekNavigation-a0QEIEf0.mjs → EventListWeekNavigation-DTsVU6gc.mjs} +1 -1
  66. package/dist/client/{EventListing.client-CEFTC3jH.mjs → EventListing.client-8MFGI9BA.mjs} +3 -3
  67. package/dist/client/{EventListing.view-Bt2sBBms.mjs → EventListing.view-BCvRqU86.mjs} +6 -6
  68. package/dist/client/{EventRegistrationPayment-D9YBNb_E.mjs → EventRegistrationPayment-CqH3hE-k.mjs} +132 -62
  69. package/dist/client/{LocationMapActions-gqzt5gkW.mjs → LocationMapActions-BFp2uQQQ.mjs} +1 -1
  70. package/dist/client/{MapDrawingSvg-13JQI7_z.mjs → MapDrawingSvg-DDWfmgpA.mjs} +1 -1
  71. package/dist/client/{Page-D_M2Vxz3.mjs → Page-Bu5TJU3L.mjs} +53 -22
  72. package/dist/client/{StepIndicator-CaN8snZ8.mjs → StepIndicator-CR7_0yu4.mjs} +5 -4
  73. package/dist/client/{accessibleSurfaces-chpD4C2c.mjs → accessibleSurfaces-_7jkuinl.mjs} +56 -8
  74. package/dist/client/{accordion-DE7OG--d.mjs → accordion-DMItWylU.mjs} +6 -1
  75. package/dist/client/{booking-form.client-CS1PPjw7.mjs → booking-form.client-wd71DG19.mjs} +505 -217
  76. package/dist/client/{bookingForm-DE2CwIU9.mjs → bookingForm-Cyr2qeS1.mjs} +17 -17
  77. package/dist/client/{bookingRoute-Bqlyu5Vb.mjs → bookingRoute-D6DlxYx6.mjs} +6 -2
  78. package/dist/client/bookings.mjs +16 -13
  79. package/dist/client/{carousel-DZyUdnFh.mjs → carousel-B5-Hzzif.mjs} +7 -9
  80. package/dist/client/{carousel.client-BD4DXMtI.mjs → carousel.client-eSSr1oYA.mjs} +2 -2
  81. package/dist/client/{cart-D7HkkNwe.mjs → cart-B-M5l__W.mjs} +3 -3
  82. package/dist/client/{cart.client-H4sv2TpD.mjs → cart.client-COAP4CEy.mjs} +1 -1
  83. package/dist/client/{checkout-2qVyG-Sh.mjs → checkout-ZHc8GfaG.mjs} +3 -3
  84. package/dist/client/{checkout.client-DAjrBZ74.mjs → checkout.client-DRralR3e.mjs} +1 -1
  85. package/dist/client/{checkoutUrls-CYj06rX1.mjs → checkoutUrls-CY8qywXl.mjs} +3 -2
  86. package/dist/client/client.mjs +87 -4
  87. package/dist/client/{context-DXmIbXCK.mjs → context-Xhf81Q-c.mjs} +25 -3
  88. package/dist/client/{createLucideIcon-CIbxe9em.mjs → createLucideIcon-BrXgHVKN.mjs} +9 -9
  89. package/dist/client/{bookingQuestionValues-BjcyCru5.mjs → creditProducts-CMOmhWm2.mjs} +71 -11
  90. package/dist/client/{cta-DP_IBnq3.mjs → cta-CfuyGqXL.mjs} +2 -2
  91. package/dist/client/{dateFormatting-CwrkFZTr.mjs → dateFormatting-Bv6kjUW3.mjs} +1 -1
  92. package/dist/client/{demoPortalMagicLink-DQXK-Fh6.mjs → demoPortalMagicLink-DQtwf_s2.mjs} +1 -1
  93. package/dist/client/{wizardSteps-CFulHWnT.mjs → display-DDNmyb0z.mjs} +920 -870
  94. package/dist/client/{enhanceHeaderSection-DheQj7rg.mjs → enhanceHeaderSection-D7gRy-pL.mjs} +3 -2
  95. package/dist/client/{event-details.client-C5UufcRp.mjs → event-details.client-DZZaoCUc.mjs} +1 -1
  96. package/dist/client/{event-registration.client-CMGg63IU.mjs → event-registration.client-CLBdHUfd.mjs} +59 -18
  97. package/dist/client/{eventCalendar-DlD0GCEy.mjs → eventCalendar-BY3AfYkK.mjs} +14 -17
  98. package/dist/client/eventCombined-86P2vQCb.mjs +25 -0
  99. package/dist/client/{eventDetails-DzuQYgmO.mjs → eventDetails-DIJYMzVg.mjs} +4 -6
  100. package/dist/client/eventListing-8jS0qGGC.mjs +26 -0
  101. package/dist/client/{eventRegistration-CjS3Zpjp.mjs → eventRegistration-DyseP_sY.mjs} +19 -19
  102. package/dist/client/flightRegistrations-DjYm0Wz6.mjs +45 -0
  103. package/dist/client/{form-DgQqm7T2.mjs → form-RTqunrpz.mjs} +9 -14
  104. package/dist/client/{form.client-BI9Dcsq5.mjs → form.client-D3_RF29v.mjs} +4 -4
  105. package/dist/client/{form.parts-DevF0L_A.mjs → form.parts-DWLf_3PF.mjs} +1 -1
  106. package/dist/client/{formatDate-DDyURjoe.mjs → formatDate-BGlhrmhF.mjs} +1 -1
  107. package/dist/client/gifting/client.mjs +2 -2
  108. package/dist/client/{headerSection-DYIG6Pwb.mjs → headerSection-CyNGt23J.mjs} +2 -2
  109. package/dist/client/{newsletter-form.client-BWp7Y1e1.mjs → newsletter-form.client-IfLup4o0.mjs} +5 -5
  110. package/dist/client/{newsletter-form.parts-Dg8s9NwJ.mjs → newsletter-form.parts-DDD-LRyW.mjs} +1 -1
  111. package/dist/client/{newsletterForm-DnPraMzx.mjs → newsletterForm-o5wFBVHv.mjs} +10 -15
  112. package/dist/client/{noop-ByFRHYQ2.mjs → noop-B_f7RqLD.mjs} +111 -2
  113. package/dist/client/portal/client.mjs +21 -13
  114. package/dist/client/{product-detail.client-BFAgHrdg.mjs → product-detail.client-5hNA8aKU.mjs} +1 -1
  115. package/dist/client/{product-list.client-DVrs_DyY.mjs → product-list.client-c-777ohj.mjs} +1 -1
  116. package/dist/client/{productDetail-D4rvl6Xg.mjs → productDetail-hXttfQhE.mjs} +3 -3
  117. package/dist/client/{productList-B8o5AOMX.mjs → productList-BPsYP_jA.mjs} +3 -3
  118. package/dist/client/{propsDecoder-hhotPP6P.mjs → propsDecoder-Dc8j5i79.mjs} +3 -3
  119. package/dist/client/reactMount-DFQy3CmO.mjs +51 -0
  120. package/dist/client/{registry.server-Ch3EpupA.mjs → registry.server-CMrdUGGv.mjs} +338 -289
  121. package/dist/client/rendering/client.mjs +39 -39
  122. package/dist/client/rendering/islandDelivery.flight.mjs +99 -0
  123. package/dist/client/rendering/islands.mjs +1 -1
  124. package/dist/client/rendering.mjs +5 -5
  125. package/dist/client/{richText-coerce-C3LabQ1O.mjs → richText-coerce-BTurYEao.mjs} +1 -1
  126. package/dist/client/{routeIslandApiConfig-CQGlxId8.mjs → routeIslandApiConfig-DFjRKvzM.mjs} +1 -1
  127. package/dist/client/{runtimeResponse-Dg4XFsuM.mjs → runtimeResponse-BGU8sMZY.mjs} +1 -1
  128. package/dist/client/runtimeResponse-D2LT--Gj.mjs +3 -0
  129. package/dist/client/{shop-rRXplPGZ.mjs → shop-Ds47onRS.mjs} +3 -3
  130. package/dist/client/{shop-commerce-VDbVaKY-.mjs → shop-commerce-B3PyRHaN.mjs} +12 -12
  131. package/dist/client/{shop-commerce-store-DqdgJ8Zw.mjs → shop-commerce-store-D9CHihQv.mjs} +1 -1
  132. package/dist/client/{shop.client-DdwvMvaK.mjs → shop.client-RljK0qPB.mjs} +110 -31
  133. package/dist/client/{shop.interactive-C8OvFY06.mjs → shop.interactive-BH0xDlMF.mjs} +42 -533
  134. package/dist/client/{shopShared-BeuJiGPU.mjs → shopShared-BEfD0e4m.mjs} +12 -15
  135. package/dist/client/src-BozhJ43Z.mjs +3 -0
  136. package/dist/client/{src-1PJxc8KO.mjs → src-xrjaKaCj.mjs} +6 -8
  137. package/dist/client/{timetableModel-Cko9LRKy.mjs → timetableModel-BG7Ejxdr.mjs} +12 -12
  138. package/dist/client/{useAvailableSlots-M6QIEiWf.mjs → useAvailableSlots-GP8tnAVW.mjs} +3 -3
  139. package/dist/client/{useDiscountApply-BJSnyO0f.mjs → useDiscountApply-Cq07nTyG.mjs} +5 -3
  140. package/dist/client/{useDiscountCodeUi-D3XnOSCi.mjs → useDiscountCodeUi-CD82QX5i.mjs} +1 -1
  141. package/dist/client/{useEventPagination-PhTIoFVX.mjs → useEventPagination-spj7sGQP.mjs} +6 -6
  142. package/dist/client/{view-L_mkgtnk.mjs → view-aAP2WbCR.mjs} +2 -3
  143. package/dist/client/{view-448wvvEY.mjs → view-oToSpu1N.mjs} +7 -7
  144. package/dist/preview-next/client/{ArrangementLookControls-BpvnOGlN.mjs → ArrangementLookControls-CoWdilcI.mjs} +7 -7
  145. package/dist/preview-next/client/{LocationPickerEnvironment-CZQ4vkRe.mjs → LocationPickerEnvironment-CwxRbAs2.mjs} +1 -1
  146. package/dist/preview-next/client/{MapLibreEditMap-CP4w7T_0.mjs → MapLibreEditMap-CKjYUp_E.mjs} +2 -2
  147. package/dist/preview-next/client/{PreviewEditorSidebar-C0OtdWu_.mjs → PreviewEditorSidebar-BNCrO6PQ.mjs} +201 -151
  148. package/dist/preview-next/client/{PreviewEditorUI-Csc5vH5k.mjs → PreviewEditorUI-inVZkLCd.mjs} +6 -6
  149. package/dist/preview-next/client/{PreviewShell-BOLH_pm-.mjs → PreviewShell-CFQlAHTe.mjs} +10 -15
  150. package/dist/preview-next/client/{SdkPreviewModeRuntime-CKodLReY.mjs → SdkPreviewModeRuntime-Dgl7ktO4.mjs} +12 -9
  151. package/dist/preview-next/client/{SiteChromeCustomizeButton-BeEZpeKn.mjs → SiteChromeCustomizeButton-DgDYHwkG.mjs} +1418 -598
  152. package/dist/preview-next/client/{lucide-react-DkZ8fO-G.mjs → lucide-react-DbC1o6_9.mjs} +11 -11
  153. package/dist/preview-next/client/{previewAssistantSlot-BBdN5kfY.mjs → previewAssistantSlot-DRDu7Ndv.mjs} +684 -930
  154. package/dist/preview-next/client/{previewChromeSurface-VZtGwPuH.mjs → previewChromeSurface-K6Q5uEMC.mjs} +1 -1
  155. package/dist/preview-next/client/runtime.mjs +3 -3
  156. package/dist/preview-next/client/{sdk-runtime-kiZkMcuR.mjs → sdk-runtime-AGypzhcO.mjs} +2 -2
  157. package/dist/preview-next/client/{src-DY8JCJdE.mjs → src-DzXUmsyK.mjs} +6 -8
  158. package/dist/preview-next/client/src-LUhVXBEQ.mjs +3 -0
  159. package/dist/preview-next/client/{useAutosaveStatus-BiIHEeE0.mjs → useAutosaveStatus-B2mn_l6c.mjs} +3 -3
  160. package/dist/preview-next/client/{useBlockCustomizeControls-BuFLIpmX.mjs → useBlockCustomizeControls-CBXHo6ph.mjs} +5 -5
  161. package/dist/preview-next/client/{useOpenBlockForSetup-DlxYgmh_.mjs → useOpenBlockForSetup-BpZnBznt.mjs} +1 -1
  162. package/dist/preview-next/keepAlive.mjs +1 -1
  163. package/dist/preview-next/middleware.mjs +3 -4
  164. package/dist/preview-next/{route-contract-C0sCvCYL.mjs → route-contract-jc2Bug-h.mjs} +83 -0
  165. package/dist/server/{Block.shared-Dnhc0Wu5.mjs → Block.shared-BHgQjX16.mjs} +4 -4
  166. package/dist/server/{ThemeScopeCore-NAQ_zsFu.mjs → ThemeScopeCore-Ck0dhZA6.mjs} +31 -5
  167. package/dist/server/{accessibleSurfaces-108nxyGc.mjs → accessibleSurfaces-D0q5tLSW.mjs} +56 -8
  168. package/dist/server/{bindings-DLoZYUxG.mjs → bindings-CAbTvrCZ.mjs} +1 -1
  169. package/dist/server/{booking-form.reserved-fields-BWRF7509.mjs → booking-form.reserved-fields-Cqp13TKc.mjs} +1 -0
  170. package/dist/server/{client-Bc8jI8zN.mjs → client-C-asG6Cf.mjs} +85 -2
  171. package/dist/server/config-validation.mjs +1 -1
  172. package/dist/server/config.mjs +1 -1
  173. package/dist/server/data/resolveBlockData.mjs +1 -1
  174. package/dist/server/{headerVariant-BwR9NV4b.mjs → headerVariant-8O5MvxIU.mjs} +2 -1
  175. package/dist/server/index.mjs +2 -2
  176. package/dist/server/{loadContent-D61gpqHB.mjs → loadContent-DKerbSnI.mjs} +4 -4
  177. package/dist/server/{loadPage-B4ZYpIcd.mjs → loadPage-XgtQR90Z.mjs} +2 -2
  178. package/dist/server/next.mjs +6 -6
  179. package/dist/server/{opaqueSurface-BawlEAd_.mjs → opaqueSurface-Yltv_u7r.mjs} +1 -1
  180. package/dist/server/{overrideResolution-CDReKy2P.mjs → overrideResolution-Z5pwH-kz.mjs} +1 -1
  181. package/dist/server/page-converter.mjs +1 -1
  182. package/dist/server/{pageRenderPlan-ByVTA7-4.mjs → pageRenderPlan-DQAo35og.mjs} +9 -8
  183. package/dist/server/{pageRuntimeSupport-Dzz_Dze6.mjs → pageRuntimeSupport-g-K-FCHa.mjs} +2 -2
  184. package/dist/server/{pageShared-Dk5Ku6hs.mjs → pageShared-7mPhqqXX.mjs} +345 -289
  185. package/dist/server/{parseThemeForPersistence-pJPGfMrf.mjs → parseThemeForPersistence-BebSeE17.mjs} +1 -1
  186. package/dist/server/{prebuild-CW4M0WEZ.mjs → prebuild-C0m4KOT9.mjs} +1 -1
  187. package/dist/server/prebuild.mjs +1 -1
  188. package/dist/server/{prefetchBlockData-Bvx0SiIM.mjs → prefetchBlockData-DcLKHfHG.mjs} +2 -2
  189. package/dist/server/{registry-Bh0Y25zH.mjs → registry-7_0_lUrh.mjs} +305 -844
  190. package/dist/server/rendering/components/pageShared.mjs +1 -1
  191. package/dist/server/rendering/helpers/loadPage.mjs +1 -1
  192. package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
  193. package/dist/server/rendering/islandDelivery.script.mjs +19 -0
  194. package/dist/server/rendering/server.mjs +3 -3
  195. package/dist/server/rendering.mjs +7 -7
  196. package/dist/server/{resolveBlockData-CnHHst9r.mjs → resolveBlockData-q3WnpvyZ.mjs} +1 -1
  197. package/dist/server/server.mjs +3 -3
  198. package/dist/server/theme-bridge.mjs +2 -2
  199. package/dist/server/theme.mjs +1 -1
  200. package/dist/server/{validation-D2bHWSxJ.mjs → validation-CSMS6XmP.mjs} +4 -4
  201. package/dist/server/{version-DkM1eAxG.mjs → version-DWeqmTXc.mjs} +1 -1
  202. package/dist/styles/index.css +15 -3
  203. package/package.json +10 -6
  204. package/dist/client/BlocksIslandsHydrator-DcwEaliO.mjs +0 -296
  205. package/dist/client/creditProducts-BOWi1QLp.mjs +0 -62
  206. package/dist/client/eventCombined-DoSi8p_l.mjs +0 -28
  207. package/dist/client/eventListing-CkiMjl0g.mjs +0 -29
  208. package/dist/client/reactMount-BGJVsHRb.mjs +0 -28
  209. package/dist/client/runtimeResponse-BP-L6exS.mjs +0 -3
  210. package/dist/client/src-CdRISvQp.mjs +0 -3
  211. package/dist/preview-next/client/src-BP8771hw.mjs +0 -3
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { a as mediaIdentifierSchema, d as parseUuidBrand, f as err, n as renderableMediaAssetSchema, p as ok } from "./renderableMediaAssetAdmission-BlfqYLJW.mjs";
3
- import { c as addMonths } from "./src-1PJxc8KO.mjs";
3
+ import { c as addMonths } from "./src-xrjaKaCj.mjs";
4
4
  import { z } from "zod";
5
5
  //#region ../core/src/branded/customers.ts
6
6
  const unsafeAsSiteTermsVersionId = (id) => id;
@@ -1112,6 +1112,111 @@ const publicEventLoaderQuerySchemaShape = {
1112
1112
  };
1113
1113
  z.object(publicEventLoaderQuerySchemaShape);
1114
1114
  //#endregion
1115
+ //#region ../site-contracts/src/siteData/products.ts
1116
+ const publicProductVariantSchema = z.object({
1117
+ id: z.string(),
1118
+ title: z.string(),
1119
+ sku: z.string().nullable(),
1120
+ priceCents: z.number(),
1121
+ stockQuantity: z.number().nullable(),
1122
+ soldOut: z.boolean()
1123
+ });
1124
+ const publicProductSchema = z.object({
1125
+ id: z.string(),
1126
+ contentEntryId: z.string().nullable(),
1127
+ title: z.string(),
1128
+ slug: z.string(),
1129
+ path: z.string().nullable(),
1130
+ status: z.enum(["draft", "active"]),
1131
+ priceCents: z.number(),
1132
+ currency: z.string(),
1133
+ productType: z.enum(["physical", "digital"]),
1134
+ requiresShipping: z.boolean(),
1135
+ hasVariants: z.boolean(),
1136
+ trackInventory: z.boolean(),
1137
+ soldOut: z.boolean(),
1138
+ category: z.object({
1139
+ id: z.string(),
1140
+ name: z.string(),
1141
+ slug: z.string()
1142
+ }).nullable(),
1143
+ summary: z.string().nullable(),
1144
+ body: z.unknown().nullable(),
1145
+ gallery: z.array(z.object({
1146
+ url: z.string(),
1147
+ alt: z.string().nullable()
1148
+ })),
1149
+ variants: z.array(publicProductVariantSchema)
1150
+ });
1151
+ /**
1152
+ * Public pass product for shop display
1153
+ */
1154
+ const publicPassProductFields = {
1155
+ id: z.string(),
1156
+ productUseCase: z.enum(["event_pass", "appointment_package"]).default("event_pass"),
1157
+ name: z.string(),
1158
+ description: z.string().nullable(),
1159
+ price: z.number(),
1160
+ currency: z.string(),
1161
+ creditsTotal: z.number(),
1162
+ pricePerCredit: z.number(),
1163
+ validDays: z.number().nullable(),
1164
+ eligibleCategoryIds: z.array(z.string()),
1165
+ eligibleCategoryNames: z.array(z.string()),
1166
+ heldWithTeamMember: z.object({
1167
+ id: z.string(),
1168
+ name: z.string()
1169
+ }).nullable().optional(),
1170
+ teamMemberSelection: z.discriminatedUnion("kind", [
1171
+ z.object({ kind: z.literal("any") }),
1172
+ z.object({
1173
+ kind: z.literal("owner"),
1174
+ teamMember: z.object({
1175
+ id: z.string(),
1176
+ name: z.string()
1177
+ })
1178
+ }),
1179
+ z.object({
1180
+ kind: z.literal("choose"),
1181
+ teamMembers: z.array(z.object({
1182
+ id: z.string(),
1183
+ name: z.string()
1184
+ }))
1185
+ })
1186
+ ]).optional()
1187
+ };
1188
+ const purchasablePublicPassProductSchema = z.object({
1189
+ ...publicPassProductFields,
1190
+ purchaseAvailability: z.literal("purchasable")
1191
+ });
1192
+ const publicPassProductSchema = z.discriminatedUnion("purchaseAvailability", [purchasablePublicPassProductSchema, z.object({
1193
+ ...publicPassProductFields,
1194
+ purchaseAvailability: z.literal("display_only"),
1195
+ unavailabilityReason: z.literal("online_payments_unavailable")
1196
+ })]);
1197
+ /**
1198
+ * Public membership product for shop display
1199
+ */
1200
+ const publicMembershipProductFields = {
1201
+ id: z.string(),
1202
+ name: z.string(),
1203
+ description: z.string().nullable(),
1204
+ price: z.number(),
1205
+ currency: z.string(),
1206
+ billingInterval: z.enum(["month", "year"]),
1207
+ eligibleCategoryIds: z.array(z.string()),
1208
+ eligibleCategoryNames: z.array(z.string())
1209
+ };
1210
+ const purchasablePublicMembershipProductSchema = z.object({
1211
+ ...publicMembershipProductFields,
1212
+ purchaseAvailability: z.literal("purchasable")
1213
+ });
1214
+ const publicMembershipProductSchema = z.discriminatedUnion("purchaseAvailability", [purchasablePublicMembershipProductSchema, z.object({
1215
+ ...publicMembershipProductFields,
1216
+ purchaseAvailability: z.literal("display_only"),
1217
+ unavailabilityReason: z.literal("online_payments_unavailable")
1218
+ })]);
1219
+ //#endregion
1115
1220
  //#region ../site-contracts/src/siteData/eventVocabulary.ts
1116
1221
  const eventCalendarDisplayModeValues = [
1117
1222
  "combined",
@@ -2124,6 +2229,10 @@ function planCalendarMonthRanges(months) {
2124
2229
  return ranges;
2125
2230
  }
2126
2231
  //#endregion
2232
+ //#region ../blocks/src/system/blocks/shop.shared.ts
2233
+ const publicPassProductCollectionSchema = z.object({ passes: z.array(publicPassProductSchema) });
2234
+ const publicMembershipProductCollectionSchema = z.object({ memberships: z.array(publicMembershipProductSchema) });
2235
+ //#endregion
2127
2236
  //#region ../blocks/src/contracts/events.ts
2128
2237
  /** Release 1: older SDKs reject additional confirmed-outcome fields. */
2129
2238
  const EVENT_BOOKING_ARRIVAL_QUERY = "bookingArrival";
@@ -2178,4 +2287,4 @@ const logger = {
2178
2287
  withFields: (_) => logger
2179
2288
  };
2180
2289
  //#endregion
2181
- export { videoMediaSchema as $, formatCurrencyAmount as $t, headingDecorationOverrideValues as A, formatTimeRange as At, bookingConsentCarrierSchema as B, getBookingLocalDateKey as Bt, accordionIconColorTokenValues as C, trimmedStringOrNull as Ct, eventListTreatmentValues as D, formatDateTime as Dt, arrangementModes as E, formatDateRange as Et, publicEventDestinationSchema as F, toScheduledBookingDateTime as Ft, RichTextDocSchema as G, resolveBookingTimeZoneId as Gt, toBookingRequirementConsentField as H, parseBookingLocalDate as Ht, publicEventSchema as I, buildBookingUtcDateWindow as It, externalMediaSchema as J, toUtcIsoDateTimeString as Jt, isRichTextDoc as K, toBookingTimeZone as Kt, publicEventsArraySchema as L, addLocalScheduleDays as Lt, tileTreatmentValues as M, inferSiteDateLocale as Mt, visibleHeadingDecorationFamilyValues as N, resolveBookingDisplayContext as Nt, eyebrowTreatmentValues as O, formatDateTimeRange as Ot, eventVenueDrawingSchema as P, formatBookingCompactEnglishTime as Pt, runtimeMediaSchema as Q, toNonNegativeCents as Qt, blockBookingPaymentTermsSchema as R, compareLocalScheduleDates as Rt, resolveEventCalendarReadPlan as S, toLocationCoordinates as St, accordionIconSetValues as T, formatDate as Tt, beforeBookingQuestionsPresentationSchema as U, parseLocalScheduleTime as Ut, isBookingRequirementConsentFieldId as V, getLocalScheduleDate as Vt, bookingQuestionsAnswerValueSchema as W, resolveBookingBusinessTimeZone as Wt, mediaSchema as X, parsePositiveCents as Xt, imageMediaSchema as Y, validateBookingPaymentOptionKinds as Yt, persistableMediaSchema as Z, parsePositiveMoneyInputToCents as Zt, eventListArrangementValues as _, locationValueSchema as _t, eventAutoApplyDiscountPreviewSchema as a, eventCalendarDisplayModeValues as at, isEventCalendarListLayout as b, projectPublicLocation as bt, calendarQueryKey as c, calendarMonthDate as ct, calendarWindowPageSchema as d, eventSurfacePresetValues as dt, formatGiftCardAmountLabel as en, PUBLIC_FILE_FIELD_KINDS as et, planCalendarMonthRanges as f, eventSurfaceScopeValues as ft, eventCalendarVariantMeaning as g, decideLocationSourcePermission as gt, eventCalendarListLayoutOptions as h, WHOLE_SERIES_EVENT_PRESET_VALUES as ht, EVENT_BOOKING_ARRIVAL_QUERY as i, eventCalendarDefaultViewValues as it, isArrangementMode as j, formatTimeZoneCityLabel as jt, headingDecorationColorTokenValues as k, formatTime as kt, calendarWindowBounds as l, calendarWindowQuerySchema as lt, eventCalendarListGroupingDecision as m, isRecord as mt, blockSiteTermsSchema as n, mediaTypeDiscriminants as nt, calendarMonthKey as o, eventCalendarListLayoutCompatibleDisplayModeValues as ot, resolveCalendarReadProfile as p, publicEventLoaderQuerySchemaShape as pt, assetMediaSchema as q, parseUtcIsoDateTimeString as qt, verifiedSiteTermsAcceptanceSchema as r, normalizeCurrencyCode as rt, calendarPageResponseError as s, eventCalendarListLayoutValues as st, logger as t, isDisplayMediaKind as tt, calendarWindowMonths as u, eventScheduleScopeValues as ut, isEventCalendarDefaultView as v, normalizeLocationAddressText as vt, accordionIconMotionValues as w, mapDrawingSchema as wt, normalizeEventCalendarDisplayMode as x, publicLocationSchema as xt, isEventCalendarDisplayMode as y, parseLocationValue as yt, blockBookingConsentSchema as z, formatLocalScheduleDate as zt };
2290
+ export { persistableMediaSchema as $, toBookingTimeZone as $t, eyebrowTreatmentValues as A, trimmedStringOrNull as At, blockBookingPaymentTermsSchema as B, resolveBookingDisplayContext as Bt, normalizeEventCalendarDisplayMode as C, decideLocationSourcePermission as Ct, accordionIconSetValues as D, projectPublicLocation as Dt, accordionIconMotionValues as E, parseLocationValue as Et, visibleHeadingDecorationFamilyValues as F, formatDateTimeRange as Ft, beforeBookingQuestionsPresentationSchema as G, compareLocalScheduleDates as Gt, bookingConsentCarrierSchema as H, toScheduledBookingDateTime as Ht, eventVenueDrawingSchema as I, formatTime as It, isRichTextDoc as J, getLocalScheduleDate as Jt, bookingQuestionsAnswerValueSchema as K, formatLocalScheduleDate as Kt, publicEventDestinationSchema as L, formatTimeRange as Lt, headingDecorationOverrideValues as M, formatDate as Mt, isArrangementMode as N, formatDateRange as Nt, arrangementModes as O, publicLocationSchema as Ot, tileTreatmentValues as P, formatDateTime as Pt, mediaSchema as Q, resolveBookingTimeZoneId as Qt, publicEventSchema as R, formatTimeZoneCityLabel as Rt, isEventCalendarListLayout as S, WHOLE_SERIES_EVENT_PRESET_VALUES as St, accordionIconColorTokenValues as T, normalizeLocationAddressText as Tt, isBookingRequirementConsentFieldId as U, buildBookingUtcDateWindow as Ut, blockBookingConsentSchema as V, formatBookingCompactEnglishTime as Vt, toBookingRequirementConsentField as W, addLocalScheduleDays as Wt, externalMediaSchema as X, parseLocalScheduleTime as Xt, assetMediaSchema as Y, parseBookingLocalDate as Yt, imageMediaSchema as Z, resolveBookingBusinessTimeZone as Zt, eventCalendarListLayoutOptions as _, eventScheduleScopeValues as _t, eventAutoApplyDiscountPreviewSchema as a, toNonNegativeCents as an, normalizeCurrencyCode as at, isEventCalendarDefaultView as b, publicEventLoaderQuerySchemaShape as bt, calendarMonthKey as c, eventCalendarListLayoutCompatibleDisplayModeValues as ct, calendarWindowBounds as d, publicPassProductSchema as dt, parseUtcIsoDateTimeString as en, runtimeMediaSchema as et, calendarWindowMonths as f, publicProductSchema as ft, eventCalendarListGroupingDecision as g, calendarWindowQuerySchema as gt, resolveCalendarReadProfile as h, calendarMonthDate as ht, EVENT_BOOKING_ARRIVAL_QUERY as i, parsePositiveMoneyInputToCents as in, mediaTypeDiscriminants as it, headingDecorationColorTokenValues as j, mapDrawingSchema as jt, eventListTreatmentValues as k, toLocationCoordinates as kt, calendarPageResponseError as l, eventCalendarListLayoutValues as lt, planCalendarMonthRanges as m, purchasablePublicPassProductSchema as mt, blockSiteTermsSchema as n, validateBookingPaymentOptionKinds as nn, PUBLIC_FILE_FIELD_KINDS as nt, publicMembershipProductCollectionSchema as o, formatCurrencyAmount as on, eventCalendarDefaultViewValues as ot, calendarWindowPageSchema as p, purchasablePublicMembershipProductSchema as pt, RichTextDocSchema as q, getBookingLocalDateKey as qt, verifiedSiteTermsAcceptanceSchema as r, parsePositiveCents as rn, isDisplayMediaKind as rt, publicPassProductCollectionSchema as s, formatGiftCardAmountLabel as sn, eventCalendarDisplayModeValues as st, logger as t, toUtcIsoDateTimeString as tn, videoMediaSchema as tt, calendarQueryKey as u, publicMembershipProductSchema as ut, eventCalendarVariantMeaning as v, eventSurfacePresetValues as vt, resolveEventCalendarReadPlan as w, locationValueSchema as wt, isEventCalendarDisplayMode as x, isRecord as xt, eventListArrangementValues as y, eventSurfaceScopeValues as yt, publicEventsArraySchema as z, inferSiteDateLocale as zt };
@@ -1,19 +1,18 @@
1
1
  "use client";
2
2
  "use client";
3
- import { $t as formatCurrencyAmount, Zt as parsePositiveMoneyInputToCents, t as logger } from "../noop-ByFRHYQ2.mjs";
4
- import { n as useAvailableDates, s as unsafeAsAppointmentResourceId, t as useAvailableSlots } from "../useAvailableSlots-M6QIEiWf.mjs";
5
- import { D as resolveFlexibleBalancePaymentEligibility, O as assertNever$1, b as formatOrderInstalmentStatusLabel$1, d as assertNever, n as UNANSWERED_QUESTION_MESSAGE, o as initialBookingQuestionValues, t as UNANSWERED_QUESTIONS_SUMMARY, u as unansweredRequiredBookingQuestions } from "../bookingQuestionValues-BjcyCru5.mjs";
3
+ import { in as parsePositiveMoneyInputToCents, on as formatCurrencyAmount, t as logger } from "../noop-B_f7RqLD.mjs";
4
+ import { n as useAvailableDates, s as unsafeAsAppointmentResourceId, t as useAvailableSlots } from "../useAvailableSlots-GP8tnAVW.mjs";
5
+ import { M as assertNever$1, a as UNANSWERED_QUESTIONS_SUMMARY, h as assertNever, i as getPortalCreditProductCreditNoun, j as resolveFlexibleBalancePaymentEligibility, m as unansweredRequiredBookingQuestions, o as UNANSWERED_QUESTION_MESSAGE, r as getCreditProductTypeLabel, t as deriveCreditProductLabels, u as initialBookingQuestionValues, w as formatOrderInstalmentStatusLabel$1 } from "../creditProducts-CMOmhWm2.mjs";
6
6
  import { t as generateUuidV4 } from "../uuid-BETKW8rS.mjs";
7
- import { i as createBlockApi, n as useBlockApi, r as BlockApiError, t as BlockApiProvider } from "../context-DXmIbXCK.mjs";
7
+ import { a as createBlockApi, i as BlockApiError, n as useBlockApi, t as BlockApiProvider } from "../context-Xhf81Q-c.mjs";
8
8
  import { S as clsx, i as ThemedButtonLink, l as SpinnerNode, o as ThemedFileChooser, r as ThemedButton, t as ThemedActionsButton } from "../ThemedButton-BdnEwA38.mjs";
9
- import { t as resolveDedicatedBookingHref } from "../bookingRoute-Bqlyu5Vb.mjs";
10
- import { a as DemoPortalSignInLink, i as useBookingNowIso, r as parseBookingSubmissionFailure, t as BookingQuestionFields } from "../BookingQuestionFields-Bhh0cvsl.mjs";
9
+ import { t as resolveDedicatedBookingHref } from "../bookingRoute-D6DlxYx6.mjs";
10
+ import { a as DemoPortalSignInLink, i as useBookingNowIso, r as parseBookingSubmissionFailure, t as BookingQuestionFields } from "../BookingQuestionFields-LLGCWjvU.mjs";
11
11
  import { t as ModalShell } from "../ModalShell-B_fHWK71.mjs";
12
12
  import { t as TabBarFragment } from "../TabBarFragment-DkVKtK5a.mjs";
13
- import { i as getPortalCreditProductCreditNoun, r as getCreditProductTypeLabel, t as deriveCreditProductLabels } from "../creditProducts-BOWi1QLp.mjs";
14
- import { t as formatDate } from "../formatDate-DDyURjoe.mjs";
15
- import { n as buildPortalCallbackUrl, r as requestDemoPortalMagicLink } from "../demoPortalMagicLink-DQXK-Fh6.mjs";
16
- import { a as formatPortalSessionDay, c as isPast, i as formatPortalSession, l as portalSessionDisplay, n as formatDateTime, o as formatPortalSessionTime, r as formatEntitlementEnd, s as formatPortalSessionWithWeekday, t as formatDate$1 } from "../dateFormatting-CwrkFZTr.mjs";
13
+ import { t as formatDate } from "../formatDate-BGlhrmhF.mjs";
14
+ import { n as buildPortalCallbackUrl, r as requestDemoPortalMagicLink } from "../demoPortalMagicLink-DQtwf_s2.mjs";
15
+ import { a as formatPortalSessionDay, c as isPast, i as formatPortalSession, l as portalSessionDisplay, n as formatDateTime, o as formatPortalSessionTime, r as formatEntitlementEnd, s as formatPortalSessionWithWeekday, t as formatDate$1 } from "../dateFormatting-Bv6kjUW3.mjs";
17
16
  import * as React$1 from "react";
18
17
  import React, { createContext, forwardRef, useCallback, useContext, useEffect, useId, useMemo, useReducer, useRef, useState } from "react";
19
18
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -5474,11 +5473,11 @@ function BeforeYouComeTask({ entityId, task, session, loadTask, saveTask, create
5474
5473
  className: "rb-space-y-4",
5475
5474
  children: [
5476
5475
  /* @__PURE__ */ jsx(TaskIntro, { detail }),
5477
- /* @__PURE__ */ jsx(BookingQuestionFields, {
5476
+ viewOnly ? /* @__PURE__ */ jsx(CapturedAnswers, { answers: detail.completedAnswers }) : /* @__PURE__ */ jsx(BookingQuestionFields, {
5478
5477
  sections: detail.sections,
5479
5478
  values: formValues,
5480
5479
  fieldErrors,
5481
- disabled: viewOnly || saving,
5480
+ disabled: saving,
5482
5481
  showFirstSectionTitle: detail.shape === "detailed-questionnaire",
5483
5482
  onChange: (fieldId, next) => {
5484
5483
  setFormValues((current) => ({
@@ -5529,6 +5528,15 @@ function BeforeYouComeTask({ entityId, task, session, loadTask, saveTask, create
5529
5528
  }) : null
5530
5529
  }) : null] });
5531
5530
  }
5531
+ function CapturedAnswers({ answers }) {
5532
+ return /* @__PURE__ */ jsx("div", {
5533
+ className: "rb-space-y-4",
5534
+ children: answers?.map((answer) => /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("p", {
5535
+ className: "rb-font-medium",
5536
+ children: answer.label
5537
+ }), /* @__PURE__ */ jsx("p", { children: answer.kind === "scalar" ? answer.valueSummary : answer.fileName })] }, answer.fieldId))
5538
+ });
5539
+ }
5532
5540
  function TaskIntro({ detail }) {
5533
5541
  const body = detail.introBody ? /* @__PURE__ */ jsx("p", {
5534
5542
  className: "rb-caption status-muted cp-before-you-come__body",
@@ -10112,7 +10120,7 @@ function CreditSection({ credit }) {
10112
10120
  children: "Site credit"
10113
10121
  }), /* @__PURE__ */ jsx("p", {
10114
10122
  className: "cp-card-subtitle",
10115
- children: "Automatically applied at checkout when you pay."
10123
+ children: "Used automatically when you pay online."
10116
10124
  })] })
10117
10125
  }), /* @__PURE__ */ jsxs("div", {
10118
10126
  className: "cp-card-meta",
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { r as ProductDetailController } from "./shop-commerce-VDbVaKY-.mjs";
2
+ import { r as ProductDetailController } from "./shop-commerce-B3PyRHaN.mjs";
3
3
  import "react";
4
4
  import { jsx } from "react/jsx-runtime";
5
5
  //#region ../blocks/src/system/runtime/nodes/product-detail.client.tsx
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { i as ProductListController } from "./shop-commerce-VDbVaKY-.mjs";
2
+ import { i as ProductListController } from "./shop-commerce-B3PyRHaN.mjs";
3
3
  import "react";
4
4
  import { jsx } from "react/jsx-runtime";
5
5
  //#region ../blocks/src/system/runtime/nodes/product-list.client.tsx
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { t as defineIslandPropsDecoder } from "./propsDecoder-hhotPP6P.mjs";
3
- import { t as ProductDetailClient } from "./product-detail.client-BFAgHrdg.mjs";
4
- import { t as mountShopBlockIsland } from "./shopShared-BeuJiGPU.mjs";
2
+ import { t as defineIslandPropsDecoder } from "./propsDecoder-Dc8j5i79.mjs";
3
+ import { t as ProductDetailClient } from "./product-detail.client-5hNA8aKU.mjs";
4
+ import { t as mountShopBlockIsland } from "./shopShared-BEfD0e4m.mjs";
5
5
  //#region src/rendering/islands/enhancers/productDetail.tsx
6
6
  const decode = defineIslandPropsDecoder("product-detail");
7
7
  const enhance = (root, props) => mountShopBlockIsland(root, props, ProductDetailClient, "product-detail");
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { t as defineIslandPropsDecoder } from "./propsDecoder-hhotPP6P.mjs";
3
- import { t as ProductListClient } from "./product-list.client-DVrs_DyY.mjs";
4
- import { t as mountShopBlockIsland } from "./shopShared-BeuJiGPU.mjs";
2
+ import { t as defineIslandPropsDecoder } from "./propsDecoder-Dc8j5i79.mjs";
3
+ import { t as ProductListClient } from "./product-list.client-c-777ohj.mjs";
4
+ import { t as mountShopBlockIsland } from "./shopShared-BEfD0e4m.mjs";
5
5
  //#region src/rendering/islands/enhancers/productList.tsx
6
6
  const decode = defineIslandPropsDecoder("product-list");
7
7
  const enhance = (root, props) => mountShopBlockIsland(root, props, ProductListClient, "product-list");
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { Cn as publicMembershipProductCollectionSchema, Dt as eventCalendarInteractiveIslandPropsCodec, G as formInteractiveIslandPropsCodec, Nt as eventListingInteractiveIslandPropsCodec, R as newsletterFormInteractiveIslandPropsCodec, St as eventCombinedInteractiveIslandPropsCodec, V as giftingInteractiveIslandPropsCodec, X as eventRegistrationInteractiveIslandPropsCodec, f as productDetailInteractiveIslandPropsCodec, g as shopInteractiveIslandPropsCodec, gn as headerChromeRuntimeContractSchema, l as checkoutInteractiveIslandPropsCodec, m as productListInteractiveIslandPropsCodec, s as cartInteractiveIslandPropsCodec, wn as publicPassProductCollectionSchema } from "./shop.interactive-C8OvFY06.mjs";
3
- import { Un as bookingFormInteractiveIslandPropsCodec, Zr as eventRegistrationPageSurfaceSubjectSchema, ei as createZodCodec, ri as isDecodeSuccess, si as lookListPresentationSchemaShape } from "./wizardSteps-CFulHWnT.mjs";
4
- import { I as publicEventSchema, P as eventVenueDrawingSchema, a as eventAutoApplyDiscountPreviewSchema } from "./noop-ByFRHYQ2.mjs";
2
+ import { A as formInteractiveIslandPropsCodec, C as newsletterFormInteractiveIslandPropsCodec, E as giftingInteractiveIslandPropsCodec, F as eventRegistrationInteractiveIslandPropsCodec, ct as eventCombinedInteractiveIslandPropsCodec, f as productDetailInteractiveIslandPropsCodec, g as shopInteractiveIslandPropsCodec, l as checkoutInteractiveIslandPropsCodec, m as productListInteractiveIslandPropsCodec, nn as headerChromeRuntimeContractSchema, pt as eventCalendarInteractiveIslandPropsCodec, s as cartInteractiveIslandPropsCodec, yt as eventListingInteractiveIslandPropsCodec } from "./shop.interactive-BH0xDlMF.mjs";
3
+ import { Hi as isDecodeSuccess, Ii as eventRegistrationPageSurfaceSubjectSchema, Ki as lookListPresentationSchemaShape, ur as bookingFormInteractiveIslandPropsCodec, zi as createZodCodec } from "./display-DDNmyb0z.mjs";
4
+ import { I as eventVenueDrawingSchema, R as publicEventSchema, a as eventAutoApplyDiscountPreviewSchema, o as publicMembershipProductCollectionSchema, s as publicPassProductCollectionSchema } from "./noop-B_f7RqLD.mjs";
5
5
  import { z } from "zod";
6
6
  //#region ../blocks/src/system/runtime/nodes/event-details/lookPresentation.ts
7
7
  const eventDetailsLookSchemaShape = {
@@ -0,0 +1,51 @@
1
+ "use client";
2
+ import { createElement, useLayoutEffect } from "react";
3
+ import { createRoot } from "react-dom/client";
4
+ //#region src/rendering/islands/enhancers/reactMount.ts
5
+ /**
6
+ * Removes the fallback in the same commit that shows the island, so nothing paints in
7
+ * between. Fallback nodes the island moved into its own tree (as the carousel does with
8
+ * its slides) are no longer the root's children and stay where the island put them.
9
+ */
10
+ function FallbackHandover({ root, mount, fallbackNodes, handover, children }) {
11
+ useLayoutEffect(() => {
12
+ handover?.(mount);
13
+ fallbackNodes.forEach((node) => {
14
+ if (node.parentNode === root) node.remove();
15
+ });
16
+ }, []);
17
+ return children;
18
+ }
19
+ /**
20
+ * The island's React tree mounts beside the server fallback rather than in place of it,
21
+ * so fallback content never leaves the document. Nested islands inside it (in a carousel
22
+ * slide, say) stay connected while the island takes over, and the runtime has no reason
23
+ * to treat them as removed.
24
+ */
25
+ function mountReactIsland(root, island, options = {}) {
26
+ if (root.dataset.rbReactMounted === "true") return;
27
+ const fallbackNodes = Array.from(root.childNodes);
28
+ const mount = document.createElement("div");
29
+ root.append(mount);
30
+ const reactRoot = createRoot(mount);
31
+ try {
32
+ reactRoot.render(createElement(FallbackHandover, {
33
+ root,
34
+ mount,
35
+ fallbackNodes,
36
+ handover: options.handover,
37
+ children: island
38
+ }));
39
+ } catch (error) {
40
+ reactRoot.unmount();
41
+ mount.remove();
42
+ throw error;
43
+ }
44
+ root.dataset.rbReactMounted = "true";
45
+ return () => {
46
+ reactRoot.unmount();
47
+ delete root.dataset.rbReactMounted;
48
+ };
49
+ }
50
+ //#endregion
51
+ export { mountReactIsland as t };