@riverbankcms/sdk 0.162.0 → 0.164.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 (201) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/README.md +12 -1
  3. package/dist/_dts/{BlocksIslandsHydrator-PZUoA872.d.ts → BlocksIslandsHydrator-CubPwupc.d.ts} +1 -1
  4. package/dist/_dts/{Page-CdQS6C7i.d.ts → Page-CDzsagB2.d.ts} +15 -12
  5. package/dist/_dts/{SdkPreviewMode-CNGO-5f1.d.ts → SdkPreviewMode-CPRQbRCI.d.ts} +2 -3
  6. package/dist/_dts/{client-DGa53rjL.d.ts → client-CbeYTSry.d.ts} +13 -41
  7. package/dist/_dts/{content-types-K9R7P-KF.d.ts → content-types--uYRIcIF.d.ts} +2 -2
  8. package/dist/_dts/{contracts-CyBaPaIq.d.ts → contracts-DJQYAOsv.d.ts} +5 -4
  9. package/dist/_dts/{footerPageOutline-B6jmKmon.d.ts → footerPageOutline-CKkhBwgJ.d.ts} +6 -6
  10. package/dist/_dts/{generatePageMetadata-iemoR3AN.d.ts → generatePageMetadata--qd7NCIA.d.ts} +2 -2
  11. package/dist/_dts/{index-DEu85xBt.d.ts → index-BZE-1azr.d.ts} +1 -1
  12. package/dist/_dts/{index-Wm62sXf2.d.ts → index-BpEbwDM7.d.ts} +4 -4
  13. package/dist/_dts/index-CXsnaCGe.d.ts +10 -0
  14. package/dist/_dts/{index-8CN0Nd-Z.d.ts → index-CjdIn9-_.d.ts} +2 -2
  15. package/dist/_dts/{index-BtnsA14K.d.ts → index-DYQFmf--.d.ts} +4 -3
  16. package/dist/_dts/{index-Dbd0Sn0G.d.ts → index-D_pQO-AS.d.ts} +21723 -21361
  17. package/dist/_dts/{index-Du1IRglc.d.ts → index-DriYVLfT.d.ts} +2 -2
  18. package/dist/_dts/{index-DI2yaSPY.d.ts → index-JS8WYgD3.d.ts} +31248 -30975
  19. package/dist/_dts/{index-Jlcq6w69.d.ts → index-wegfy7lf.d.ts} +3 -3
  20. package/dist/_dts/{loadContent-BPfAAZDW.d.ts → loadContent-DUi94Qfk.d.ts} +15 -30
  21. package/dist/_dts/{resolvePageContent-DWbrtKf8.d.ts → resolvePageContent-JDE0ry6T.d.ts} +2 -2
  22. package/dist/_dts/sdk/src/bookings/index.d.ts +3 -4
  23. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  24. package/dist/_dts/sdk/src/client.d.ts +6 -6
  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/index.d.ts +8 -8
  29. package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
  30. package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
  31. package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
  32. package/dist/_dts/sdk/src/next/index.d.ts +7 -7
  33. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  34. package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
  35. package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
  36. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  37. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  38. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  39. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  40. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  41. package/dist/_dts/sdk/src/rendering/index.d.ts +13 -7
  42. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  43. package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
  44. package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
  45. package/dist/_dts/sdk/src/server.d.ts +5 -5
  46. package/dist/_dts/sdk/src/spam-protection/index.d.ts +32 -52
  47. package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
  48. package/dist/_dts/{types-ClZ-BQL_.d.ts → types-DiciZDrk.d.ts} +3 -3
  49. package/dist/_dts/{types-CVv2H4AT.d.ts → types-DubJnBnI.d.ts} +7 -7
  50. package/dist/_dts/{types-CfNG5koF.d.ts → types-W40f2olO.d.ts} +3 -2
  51. package/dist/_dts/{validation-BJ6Lf_Dr.d.ts → validation-BF4_zNkR.d.ts} +4 -4
  52. package/dist/client/{BlocksIslandsHydrator-COqlgWYU.mjs → BlocksIslandsHydrator-64hFxF02.mjs} +20 -20
  53. package/dist/client/{BookingMailingListNote-CFYPDEHH.mjs → BookingMailingListNote-CSQyFm9J.mjs} +1 -1
  54. package/dist/client/{CalendarNavigationChevron-COBVxgHb.mjs → CalendarNavigationChevron-Bvkx8Z7Y.mjs} +6 -6
  55. package/dist/client/{CheckboxChoice-C7X9dJ8A.mjs → CheckboxChoice-3PhxDxgR.mjs} +1 -1
  56. package/dist/client/{DemoBookingPortalAccess-CvT0E9AR.mjs → DemoBookingPortalAccess-pt2xXBQp.mjs} +5 -5
  57. package/dist/client/{DemoPortalSignInLink-EBOBN5dT.mjs → DemoPortalSignInLink-Qw780EfW.mjs} +1 -1
  58. package/dist/client/{EventCalendar.client-U6pKcntV.mjs → EventCalendar.client-DWoboRW5.mjs} +9 -9
  59. package/dist/client/{EventCombined.client-CNzwEHws.mjs → EventCombined.client-C98ucpcP.mjs} +8 -8
  60. package/dist/client/{EventEmbeddedCheckoutStep-B9yAWV_k.mjs → EventEmbeddedCheckoutStep-DHRlFfkp.mjs} +2 -1
  61. package/dist/client/{EventItem-M5rpaHxi.mjs → EventItem-hrSyTApW.mjs} +102 -22
  62. package/dist/client/{EventListWeekNavigation-D4ieBLDY.mjs → EventListWeekNavigation-C3t7H13W.mjs} +1 -1
  63. package/dist/client/{EventListing.client-B8F40Rmn.mjs → EventListing.client-Cp11sBX_.mjs} +3 -3
  64. package/dist/client/{EventListing.view-k4lhuCn5.mjs → EventListing.view-Dd5QHIAf.mjs} +7 -56
  65. package/dist/client/{EventRegistrationPayment-C3g8_Hqb.mjs → EventRegistrationPayment-ByT88VHR.mjs} +18 -22
  66. package/dist/client/{LocationMapActions-CAjt7qVo.mjs → LocationMapActions-BsepG5Vv.mjs} +2 -2
  67. package/dist/client/{MapDrawingSvg-_aIK2ojv.mjs → MapDrawingSvg-R4JMT4yd.mjs} +1 -1
  68. package/dist/client/{Page-DJBIQBOw.mjs → Page-Dub71o3c.mjs} +956 -378
  69. package/dist/client/ProtectedSubmitButton-DGbgGvdh.mjs +14 -0
  70. package/dist/client/SpamProtectionWidget-CRsKTQV-.mjs +139 -0
  71. package/dist/client/{StepIndicator-CFacB1z6.mjs → StepIndicator-Bp7MyutT.mjs} +2 -2
  72. package/dist/client/{TabBarFragment-BLsfQskO.mjs → TabBarFragment-C4WJyybx.mjs} +1 -1
  73. package/dist/client/{ThemedButton-BWsDgjMC.mjs → ThemedButton-BGVwNwE-.mjs} +2 -898
  74. package/dist/client/{accordion-CtO2XF7M.mjs → accordion-vCG_JC5t.mjs} +1 -1
  75. package/dist/client/altchaProtection-BWchRM3v.mjs +12 -0
  76. package/dist/client/{booking-form.client-RICCQ0h2.mjs → booking-form.client-CHTbcZJM.mjs} +23 -56
  77. package/dist/client/{bookingForm-SvjLPx8i.mjs → bookingForm-BxbUbzUr.mjs} +4 -4
  78. package/dist/client/bookings.mjs +23 -32
  79. package/dist/client/{carousel-BR-zCD3O.mjs → carousel-FM1mkkL0.mjs} +2 -2
  80. package/dist/client/{carousel.client-CEWtoZd3.mjs → carousel.client-ChoLiWwD.mjs} +1 -1
  81. package/dist/client/{cart-C6YpKbZZ.mjs → cart-BDFhbh9j.mjs} +3 -3
  82. package/dist/client/{cart.client-dC938WrX.mjs → cart.client-x3HOke6T.mjs} +1 -1
  83. package/dist/client/{checkout-Dy9RlREI.mjs → checkout-BibhwnTd.mjs} +3 -3
  84. package/dist/client/{checkout.client-CefG0d2F.mjs → checkout.client-CE4jUi0G.mjs} +1 -1
  85. package/dist/client/client.mjs +216 -109
  86. package/dist/client/{context-BFwxgZpB.mjs → context-BNAM7NsW.mjs} +17 -3
  87. package/dist/client/{cta-DtA42Xio.mjs → cta-ChiN1Vgg.mjs} +1 -1
  88. package/dist/client/{dateFormatting-yP1B7F0O.mjs → dateFormatting-QwBSo0hK.mjs} +1 -1
  89. package/dist/client/{demoPortalMagicLink-WOiT5Ryi.mjs → demoPortalMagicLink-NwKJk6gn.mjs} +1 -1
  90. package/dist/client/{enhanceHeaderSection-Dh8c_Lq-.mjs → enhanceHeaderSection-D4zqEBDl.mjs} +3 -3
  91. package/dist/client/{event-details.client-BFgsLqTj.mjs → event-details.client-jFyFjOIC.mjs} +1 -1
  92. package/dist/client/{event-registration.client-BaXZ1-Ky.mjs → event-registration.client-BK_jVv3R.mjs} +37 -55
  93. package/dist/client/{eventCalendar-COLwF80U.mjs → eventCalendar-DSkzejQh.mjs} +4 -4
  94. package/dist/client/{eventCombined-D3Ltwu03.mjs → eventCombined-BG-BEaYh.mjs} +4 -4
  95. package/dist/client/{eventDetails-CBrkimXu.mjs → eventDetails-BhIwXAKe.mjs} +2 -2
  96. package/dist/client/{eventListing-CedKVA1S.mjs → eventListing-DQtyO1Xj.mjs} +4 -4
  97. package/dist/client/{eventRegistration-DkQQfR1b.mjs → eventRegistration-DRTz8X0M.mjs} +4 -4
  98. package/dist/client/{form-XFy9uXSJ.mjs → form-GXqjObPC.mjs} +3 -3
  99. package/dist/client/{form.client-B0iancFK.mjs → form.client-CoKNba2e.mjs} +33 -24
  100. package/dist/client/{form.parts-DMbolu9Y.mjs → form.parts-magB_epJ.mjs} +6 -5
  101. package/dist/client/{formatDate-Jm5MQOCA.mjs → formatDate-BiloOyjS.mjs} +1 -1
  102. package/dist/client/gifting/client.mjs +4 -3
  103. package/dist/client/{headerSection-WjlECjtV.mjs → headerSection-BMQCPHT3.mjs} +2 -2
  104. package/dist/client/mediaAssets-BX-vWwQc.mjs +43 -0
  105. package/dist/client/{mediaContext-CNzWmoA4.mjs → mediaContext-CdqGYlWl.mjs} +1 -1
  106. package/dist/client/{newsletter-form.client-D-XwJTjN.mjs → newsletter-form.client-8orCez1z.mjs} +99 -84
  107. package/dist/client/{newsletter-form.parts-H92f30y0.mjs → newsletter-form.parts-D8NgHY_F.mjs} +11 -7
  108. package/dist/client/{newsletterForm-DMuxzu6I.mjs → newsletterForm-BhBNsS3n.mjs} +3 -3
  109. package/dist/client/{noop-B3RNPVrt.mjs → noop-C2vZse15.mjs} +3 -3
  110. package/dist/client/portal/client.mjs +13 -12
  111. package/dist/client/{product-detail.client-B3HuuykE.mjs → product-detail.client-CQ0k0fbH.mjs} +1 -1
  112. package/dist/client/{product-list.client-CzsDrHQO.mjs → product-list.client-Xlr1P0x9.mjs} +1 -1
  113. package/dist/client/{productDetail-CbBUVWgd.mjs → productDetail-BsCao6X4.mjs} +3 -3
  114. package/dist/client/{productList-vqOKH2mh.mjs → productList-Cc-PmbEe.mjs} +3 -3
  115. package/dist/client/{propsDecoder-CkSUep5a.mjs → propsDecoder-DikkDJ9x.mjs} +3 -3
  116. package/dist/client/protection-C0PoH1lT.mjs +104 -0
  117. package/dist/client/purchase-BMsWpx8y.mjs +894 -0
  118. package/dist/client/{registry.server-cZ24QwtW.mjs → registry.server-BpLZo3bC.mjs} +27 -24
  119. package/dist/client/rendering/client.mjs +27 -27
  120. package/dist/client/rendering/islands.mjs +1 -1
  121. package/dist/client/rendering.mjs +23 -19
  122. package/dist/client/{richText-coerce-DDcCKvBJ.mjs → richText-coerce-WuMYrBm3.mjs} +1 -1
  123. package/dist/client/{routeIslandApiConfig-DYBioANh.mjs → routeIslandApiConfig-DNx6b07x.mjs} +1 -1
  124. package/dist/client/{schema-DNHLlze-.mjs → schema-DMUkBtIO.mjs} +3517 -3147
  125. package/dist/client/{shop-CF0dhnfH.mjs → shop-DyXtB5TD.mjs} +3 -3
  126. package/dist/client/{shop-commerce-store-Ba8zPlIg.mjs → shop-commerce-store-CbBsS1kD.mjs} +1 -1
  127. package/dist/client/{shop-commerce-DQznNBEo.mjs → shop-commerce-xjWH7-Ym.mjs} +11 -11
  128. package/dist/client/{shop.client-DqfYoqWH.mjs → shop.client-QOKqQPgK.mjs} +12 -12
  129. package/dist/client/{shop.interactive-CreQ0I7i.mjs → shop.interactive-BQdm441g.mjs} +62 -34
  130. package/dist/client/{shopShared-D-yh-P7g.mjs → shopShared-CyW6MU48.mjs} +2 -2
  131. package/dist/client/{site-styles-B9HgmY07.mjs → site-styles-BLHYJ8S7.mjs} +755 -35
  132. package/dist/client/spam-protection.mjs +4 -69
  133. package/dist/client/{timetableModel-DCdVErTJ.mjs → timetableModel-BgdkhRuA.mjs} +10 -10
  134. package/dist/client/{useAvailableSlots-Cvgdp2DH.mjs → useAvailableSlots-wmdo6uZ8.mjs} +3 -3
  135. package/dist/client/{useBookingNowIso-DrTnGNzD.mjs → useBookingNowIso-CUExAee1.mjs} +1 -1
  136. package/dist/client/{useDiscountApply-CULjnXGl.mjs → useDiscountApply-BRM-OoTN.mjs} +2 -2
  137. package/dist/client/{useDiscountCodeUi-Gn_m7e0o.mjs → useDiscountCodeUi-BEIvL31G.mjs} +1 -1
  138. package/dist/client/{useEventPagination-CsysCF22.mjs → useEventPagination-Dk3g64we.mjs} +6 -6
  139. package/dist/client/{view-DMyTchi7.mjs → view-BnaOmrap.mjs} +4 -4
  140. package/dist/client/{view-BpBjo9Te.mjs → view-vhKGFfC3.mjs} +7 -7
  141. package/dist/client/{wizardSteps-BO2OmMO9.mjs → wizardSteps-xqU4q63H.mjs} +14 -14
  142. package/dist/preview-next/before-render.mjs +1 -1
  143. package/dist/preview-next/chrome.css +1 -1
  144. package/dist/preview-next/client/{EventEmbeddedCheckoutStep-DLsSmZbO.mjs → EventEmbeddedCheckoutStep-43wIAWr4.mjs} +1 -1
  145. package/dist/preview-next/client/{PreviewEditorSidebar-ChrW9VEo.mjs → PreviewEditorSidebar-C3AQVxQt.mjs} +74 -72
  146. package/dist/preview-next/client/{PreviewEditorUI-VaHvYtrA.mjs → PreviewEditorUI-C-1zDCR_.mjs} +151 -126
  147. package/dist/preview-next/client/{SdkPreviewModeRuntime-DWwktlWs.mjs → SdkPreviewModeRuntime-B47yHFL0.mjs} +371 -1433
  148. package/dist/preview-next/client/{SdkPreviewModeRuntime-Bz7jR6nl.mjs → SdkPreviewModeRuntime-C6Rhm2NQ.mjs} +1 -1
  149. package/dist/preview-next/client/{ThemedButton-CHKOWXxl.mjs → ThemedButton-g7NPrsGp.mjs} +462 -110
  150. package/dist/preview-next/client/{previewAuthStore-C0VUwEHz.mjs → previewAuthStore-By_zfrS5.mjs} +164988 -163471
  151. package/dist/preview-next/client/{previewChromeSurface-Dhyx2YrS.mjs → previewChromeSurface-Cjwxv90x.mjs} +1 -1
  152. package/dist/preview-next/client/runtime.mjs +3 -3
  153. package/dist/preview-next/client/{sdk-runtime-C2GWOCyj.mjs → sdk-runtime-BG2HYvQj.mjs} +1 -1
  154. package/dist/preview-next/client/{siteStyleAccess-DHyzUpv4.mjs → siteStyleAccess-BiSyYyyr.mjs} +10854 -9509
  155. package/dist/preview-next/client/{spinner-BeR2S8oG.mjs → spinner-DnWpeDp2.mjs} +1 -1
  156. package/dist/preview-next/edit-map.css +37 -0
  157. package/dist/preview-next/keepAlive.mjs +1 -1
  158. package/dist/preview-next/maplibre-gl.css +1 -0
  159. package/dist/preview-next/middleware.mjs +1 -1
  160. package/dist/preview-next/{route-contract-CkrFDMrl.mjs → route-contract-D5tHZEz5.mjs} +40 -42
  161. package/dist/preview-next/upload-structure.css +18 -0
  162. package/dist/server/{Block.shared-DxvNGDig.mjs → Block.shared-Iy7g11iP.mjs} +17 -16
  163. package/dist/server/{bindings-BuhKvYkE.mjs → bindings-BVJGgUT0.mjs} +2 -2
  164. package/dist/server/{client-BobW6DOz.mjs → client-CiKaE8ms.mjs} +215 -109
  165. package/dist/server/config-validation.mjs +1 -1
  166. package/dist/server/config.mjs +2 -2
  167. package/dist/server/{effectiveNavLinkStyle-B-MKSt0p.mjs → effectiveNavLinkStyle-EDSdd_oK.mjs} +725 -18
  168. package/dist/server/index.mjs +3 -3
  169. package/dist/server/{loadContent-CCG_3mbY.mjs → loadContent-BuintpdO.mjs} +6 -4
  170. package/dist/server/loadPage-BwjncpJf.mjs +2 -0
  171. package/dist/server/{loadPage-jntGoMrf.mjs → loadPage-Dk4wea8M.mjs} +3 -2
  172. package/dist/server/next.mjs +9 -9
  173. package/dist/server/{overrideResolution-BBOlgn4Z.mjs → overrideResolution-BDiQWM7D.mjs} +1 -1
  174. package/dist/server/{overrides-DByQwIyW.mjs → overrides-DVemf-GV.mjs} +231 -114
  175. package/dist/server/page-converter.mjs +1 -1
  176. package/dist/server/{prebuild-DrwcTk2t.mjs → prebuild-DubLNgRH.mjs} +1 -1
  177. package/dist/server/prebuild.mjs +1 -1
  178. package/dist/server/{prefetchBlockData-LfgxSJYE.mjs → prefetchBlockData-Bnbwoe5n.mjs} +53 -28
  179. package/dist/server/{publicProducts-8A3T5v4M.mjs → publicProducts-D3Fc5TKk.mjs} +85 -70
  180. package/dist/server/{registry-Digv02oV.mjs → registry-zjd1P2Dl.mjs} +127 -59
  181. package/dist/server/rendering/server.mjs +4 -4
  182. package/dist/server/rendering.mjs +8 -8
  183. package/dist/server/{resolveBlockData-C23t8-77.mjs → resolveBlockData-CZJ--nH6.mjs} +1 -1
  184. package/dist/server/routing.mjs +1 -1
  185. package/dist/server/{schema-BiqpDRwB.mjs → schema-BlTWmTSl.mjs} +4163 -3793
  186. package/dist/server/server.mjs +3 -3
  187. package/dist/server/{site-styles-DrkprQPL.mjs → site-styles-yHytcXIB.mjs} +33 -20
  188. package/dist/server/{siteChromeOverlayClearance-BmKKkkbh.mjs → siteChromeOverlayClearance-D0uCNZ7E.mjs} +159 -107
  189. package/dist/server/{src-08GY1njw.mjs → src-cbbK3Bho.mjs} +547 -147
  190. package/dist/server/theme-bridge.mjs +1 -1
  191. package/dist/server/theme.mjs +1 -1
  192. package/dist/server/{themeAdmission-CSd_Vusz.mjs → themeAdmission-BdY8lP-K.mjs} +3 -2
  193. package/dist/server/{validation-DdUTkBOZ.mjs → validation-CGH-Xs4E.mjs} +2 -2
  194. package/dist/server/{version-DdIOqIDe.mjs → version-DoOG6F13.mjs} +1 -1
  195. package/dist/styles/index.css +399 -112
  196. package/package.json +2 -3
  197. package/dist/_dts/AltchaWidget-COIYJ7DF.d.ts +0 -33
  198. package/dist/_dts/index-C39F9KaB.d.ts +0 -77
  199. package/dist/client/mediaAssets-BkoW_PEn.mjs +0 -16
  200. package/dist/client/src-BNZzXgWu.mjs +0 -102
  201. package/dist/server/loadPage-Bk9HDh9K.mjs +0 -2
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { t as defineIslandPropsDecoder } from "./propsDecoder-CkSUep5a.mjs";
3
- import { t as ShopClient } from "./shop.client-DqfYoqWH.mjs";
4
- import { t as mountShopBlockIsland } from "./shopShared-D-yh-P7g.mjs";
2
+ import { t as defineIslandPropsDecoder } from "./propsDecoder-DikkDJ9x.mjs";
3
+ import { t as ShopClient } from "./shop.client-QOKqQPgK.mjs";
4
+ import { t as mountShopBlockIsland } from "./shopShared-CyW6MU48.mjs";
5
5
  //#region src/rendering/islands/enhancers/shop.tsx
6
6
  const decode = defineIslandPropsDecoder("shop");
7
7
  const enhance = (root, props) => {
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { A as parseStoredCommerceCartState, D as buildPassCartItem, E as EMPTY_COMMERCE_CART_STATE, M as reduceCommerceCart } from "./shop.interactive-CreQ0I7i.mjs";
2
+ import { A as parseStoredCommerceCartState, D as buildPassCartItem, E as EMPTY_COMMERCE_CART_STATE, M as reduceCommerceCart } from "./shop.interactive-BQdm441g.mjs";
3
3
  import * as React$1 from "react";
4
4
  //#region ../blocks/src/system/runtime/nodes/shop-commerce-store.ts
5
5
  const EMPTY_STATE = EMPTY_COMMERCE_CART_STATE;
@@ -1,19 +1,19 @@
1
1
  "use client";
2
- import { i as ThemedButtonLink, r as ThemedButton } from "./ThemedButton-BWsDgjMC.mjs";
2
+ import { O as buildProductCartItem, b as buildProductDetailDisplay, j as productItemKey, k as deriveCommerceCheckoutState, u as getShopDisplayForItems, x as formatCommercePrice, y as buildProductCardDisplay } from "./shop.interactive-BQdm441g.mjs";
3
3
  import { a as clearWorkflowFeedback, o as reportWorkflowError, t as assertNever } from "./src-VIsPY-kw.mjs";
4
- import { Kt as RichText } from "./wizardSteps-BO2OmMO9.mjs";
5
- import { d as DiscountCodeDisclosure, i as SiteTermsChangedNotice, n as DemoBookingPortalAccess, o as useSiteTermsAgreement, r as SiteTermsAgreementField } from "./DemoBookingPortalAccess-CvT0E9AR.mjs";
6
- import { O as buildProductCartItem, b as buildProductDetailDisplay, j as productItemKey, k as deriveCommerceCheckoutState, u as getShopDisplayForItems, x as formatCommercePrice, y as buildProductCardDisplay } from "./shop.interactive-CreQ0I7i.mjs";
4
+ import { Kt as RichText } from "./wizardSteps-xqU4q63H.mjs";
5
+ import { d as DiscountCodeDisclosure, i as SiteTermsChangedNotice, n as DemoBookingPortalAccess, o as useSiteTermsAgreement, r as SiteTermsAgreementField } from "./DemoBookingPortalAccess-pt2xXBQp.mjs";
6
+ import { i as ThemedButtonLink, r as ThemedButton } from "./ThemedButton-BGVwNwE-.mjs";
7
7
  import { t as buildCheckoutReturnUrls } from "./checkoutUrls-CYj06rX1.mjs";
8
8
  import { t as resolveDedicatedCheckoutPath } from "./checkoutRoute-DKlZRNZD.mjs";
9
- import { a as initialDiscountApplyState, c as checkoutFormForDiscountUiState, d as planUnifiedCheckoutRequest, f as ShopAddFeedback, i as getDiscountApplyFeedback, l as planCartDiscountAvailabilityRequests, m as consumeSearchParam, n as discountApplyReducer, o as isDiscountApplyInFlight, p as useTransientShopAddFeedback, r as getAppliedDiscountCode, s as aggregateCartDiscountUiState, t as useDiscountApply } from "./useDiscountApply-CULjnXGl.mjs";
9
+ import { a as initialDiscountApplyState, c as checkoutFormForDiscountUiState, d as planUnifiedCheckoutRequest, f as ShopAddFeedback, i as getDiscountApplyFeedback, l as planCartDiscountAvailabilityRequests, m as consumeSearchParam, n as discountApplyReducer, o as isDiscountApplyInFlight, p as useTransientShopAddFeedback, r as getAppliedDiscountCode, s as aggregateCartDiscountUiState, t as useDiscountApply } from "./useDiscountApply-BRM-OoTN.mjs";
10
10
  import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
11
- import { t as coerceRichTextDoc } from "./richText-coerce-DDcCKvBJ.mjs";
12
- import { c as ProductDetailView, f as VariantSelectView, l as ProductGalleryFrameView, n as CheckoutShellView, s as ProductCardView, t as CartShellView, u as ProductListSectionView } from "./view-DMyTchi7.mjs";
13
- import { n as useBlockApi } from "./context-BFwxgZpB.mjs";
14
- import { a as storeDemoBookingCheckoutReturn, i as readDemoBookingCheckoutReturnEmail } from "./demoPortalMagicLink-WOiT5Ryi.mjs";
15
- import { t as CarouselNodeClient } from "./carousel.client-CEWtoZd3.mjs";
16
- import { n as useCommerceCart } from "./shop-commerce-store-Ba8zPlIg.mjs";
11
+ import { t as coerceRichTextDoc } from "./richText-coerce-WuMYrBm3.mjs";
12
+ import { c as ProductDetailView, f as VariantSelectView, l as ProductGalleryFrameView, n as CheckoutShellView, s as ProductCardView, t as CartShellView, u as ProductListSectionView } from "./view-BnaOmrap.mjs";
13
+ import { n as useBlockApi } from "./context-BNAM7NsW.mjs";
14
+ import { a as storeDemoBookingCheckoutReturn, i as readDemoBookingCheckoutReturnEmail } from "./demoPortalMagicLink-NwKJk6gn.mjs";
15
+ import { t as CarouselNodeClient } from "./carousel.client-ChoLiWwD.mjs";
16
+ import { n as useCommerceCart } from "./shop-commerce-store-CbBsS1kD.mjs";
17
17
  import * as React$1 from "react";
18
18
  import { useEffect, useState } from "react";
19
19
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -1,23 +1,23 @@
1
1
  "use client";
2
- import { r as ThemedButton } from "./ThemedButton-BWsDgjMC.mjs";
2
+ import { S as formatInterval, _ as shopProductPresentation, x as formatCommercePrice } from "./shop.interactive-BQdm441g.mjs";
3
3
  import { c as assertNever$1, t as assertNever } from "./src-VIsPY-kw.mjs";
4
- import { Wn as getShopSuccessCopy } from "./wizardSteps-BO2OmMO9.mjs";
5
- import { d as DiscountCodeDisclosure, i as SiteTermsChangedNotice, o as useSiteTermsAgreement, r as SiteTermsAgreementField, t as BookingConfirmation } from "./DemoBookingPortalAccess-CvT0E9AR.mjs";
6
- import { S as formatInterval, _ as shopProductPresentation, x as formatCommercePrice } from "./shop.interactive-CreQ0I7i.mjs";
4
+ import { Wn as getShopSuccessCopy } from "./wizardSteps-xqU4q63H.mjs";
5
+ import { d as DiscountCodeDisclosure, i as SiteTermsChangedNotice, o as useSiteTermsAgreement, r as SiteTermsAgreementField, t as BookingConfirmation } from "./DemoBookingPortalAccess-pt2xXBQp.mjs";
6
+ import { r as ThemedButton } from "./ThemedButton-BGVwNwE-.mjs";
7
7
  import { t as scrollToBlock } from "./scrollToBlock-DrgKE0qZ.mjs";
8
8
  import { t as createBodyThemePortalRoot } from "./themePortalRoot-DeP49PT8.mjs";
9
- import { a as initialDiscountApplyState, f as ShopAddFeedback, h as consumeSearchParams, i as getDiscountApplyFeedback, n as discountApplyReducer, o as isDiscountApplyInFlight, p as useTransientShopAddFeedback, r as getAppliedDiscountCode, t as useDiscountApply, u as planDirectShopCheckoutRequest } from "./useDiscountApply-CULjnXGl.mjs";
9
+ import { a as initialDiscountApplyState, f as ShopAddFeedback, h as consumeSearchParams, i as getDiscountApplyFeedback, n as discountApplyReducer, o as isDiscountApplyInFlight, p as useTransientShopAddFeedback, r as getAppliedDiscountCode, t as useDiscountApply, u as planDirectShopCheckoutRequest } from "./useDiscountApply-BRM-OoTN.mjs";
10
10
  import { t as CheckIcon } from "./CheckIcon-CVcKteXH.mjs";
11
11
  import { t as CrossIcon } from "./CrossIcon-CpG9VRyW.mjs";
12
12
  import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
13
- import { n as TerminalPanel, r as StateIcon, t as useDiscountCodeUi } from "./useDiscountCodeUi-Gn_m7e0o.mjs";
13
+ import { n as TerminalPanel, r as StateIcon, t as useDiscountCodeUi } from "./useDiscountCodeUi-BEIvL31G.mjs";
14
14
  import { t as ModalShell } from "./ModalShell-B_fHWK71.mjs";
15
- import { a as PassPurchaseUnavailable, d as ShopPurchaseAction, i as PassCardView, o as PassesMembershipsSectionView, r as MembershipCardView } from "./view-DMyTchi7.mjs";
16
- import { n as useBlockApi } from "./context-BFwxgZpB.mjs";
17
- import { a as storeDemoBookingCheckoutReturn, i as readDemoBookingCheckoutReturnEmail } from "./demoPortalMagicLink-WOiT5Ryi.mjs";
18
- import { t as CarouselNodeClient } from "./carousel.client-CEWtoZd3.mjs";
19
- import { r as formatEntitlementEnd } from "./dateFormatting-yP1B7F0O.mjs";
20
- import { t as addPassToCommerceCart } from "./shop-commerce-store-Ba8zPlIg.mjs";
15
+ import { a as PassPurchaseUnavailable, d as ShopPurchaseAction, i as PassCardView, o as PassesMembershipsSectionView, r as MembershipCardView } from "./view-BnaOmrap.mjs";
16
+ import { n as useBlockApi } from "./context-BNAM7NsW.mjs";
17
+ import { a as storeDemoBookingCheckoutReturn, i as readDemoBookingCheckoutReturnEmail } from "./demoPortalMagicLink-NwKJk6gn.mjs";
18
+ import { t as CarouselNodeClient } from "./carousel.client-ChoLiWwD.mjs";
19
+ import { r as formatEntitlementEnd } from "./dateFormatting-QwBSo0hK.mjs";
20
+ import { t as addPassToCommerceCart } from "./shop-commerce-store-CbBsS1kD.mjs";
21
21
  import React, { useCallback, useEffect, useRef, useState } from "react";
22
22
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
23
23
  //#region ../blocks/src/system/runtime/shared/components/ActionRow.tsx
@@ -1,16 +1,21 @@
1
1
  "use client";
2
2
  import { d as formatDateKey, l as buildCalendarViewport } from "./src-1PJxc8KO.mjs";
3
- import { B as cardRoleSchema, Cr as err, Dt as assertNever, Kt as toNonEmptyReadonlyArray, sr as parseContentVersionId, ur as parseEventSeriesId, wr as ok } from "./schema-DNHLlze-.mjs";
4
- import { C as clsx, U as formatCurrencyAmount, g as ExternalLinkIcon, i as ThemedButtonLink, n as ThemedAuthoredButton } from "./ThemedButton-BWsDgjMC.mjs";
3
+ import { Jt as toNonEmptyReadonlyArray, Mr as err, Nr as ok, V as cardRoleSchema, gr as parseContentVersionId, kt as assertNever, yr as parseEventSeriesId } from "./schema-DMUkBtIO.mjs";
4
+ import { b as formatCurrencyAmount } from "./purchase-BMsWpx8y.mjs";
5
5
  import { c as assertNever$1 } from "./src-VIsPY-kw.mjs";
6
- import { $r as formatBookingPriceDisplay, Ar as defineProgressiveBlockRuntime, Bt as registrationDisplaySchema, Cr as createInteractiveIslandCodec, Dr as resolveEventRegistrationScopedEvents, Fr as lookListPresentationSchemaShape, Gr as parseMailingListRuntimeContext, H as findPreSelectedEvent, Ht as shownVenue, It as toRegistrationEvents, Jt as MediaPlaceholder, Kt as RichText, Lt as toWholeSeriesRegistrationEvent, Mr as listItemPresentation, Nn as groupPublicEventsByRun, Or as createZodCodec, Pr as listLookSlot, Qr as parseNewsletterListId, Qt as renderVideo, Rt as toWholeSeriesRegistrationEvents, Sr as buildInteractiveIslandProps, Tn as formatRemainingPlaces, Tr as eventRegistrationPageSurfaceSubjectSchema, Tt as withOccurrenceTitle, Ut as browserReadAuthoritySchema, Vr as nextLiveRunSessionStartMs, Vt as resolveRegistrationDisplay, W as resolveEventRequiresPayment, Wr as resolveWholeSeriesRunLifecycle, Xr as parseMailchimpAudienceId, Xt as mediaImageHostProps, Yr as parseBrevoListId, Yt as computeMediaTransformStyle, Zr as parseMailchimpInterestId, Zt as renderAudio, _t as formatRegistrationSchedule, c as registrationStepLabelContext, cn as eventDateOptions, cr as columnOptionSchema, dr as eventCalendarDisplayModeSchema, ei as formatEventPricing, fr as eventLayoutSchema, gr as weekStartSchema, hr as registrationButtonVariantSchema, jn as selectEventCapacitySource, jr as isDecodeSuccess, kr as defineClientOwnedBlockRuntime, lr as eventButtonVariantSchema, mr as previewStageSchema, n as getEventSelectionMode, nn as resolveMediaNodeResponsiveImage, o as registrationRoute, on as eventCalendarWeekStart, or as bookingNowSchema, p as isRegistrationLocked, pn as formatEventCompactDateRail, pr as filterAutoShowSchema, pt as formatBookingWhen, qr as DEFAULT_MAILING_LIST_SUCCESS_MESSAGE, qt as ImagePresets, ri as publicEventPricingDisplay, s as registrationStepLabel, sn as eventDateLocale, sr as calendarTabViewsSchema, t as REGISTRATION_STEP_LABELS, ur as eventCalendarDefaultViewSchema, vr as blockButtonRoleSchema, wr as defineInteractiveIslandMetaKeys, xn as resolveRuntimeEventDestination, xr as resolveDateRuntimeContext, zt as placesLeftLabel } from "./wizardSteps-BO2OmMO9.mjs";
7
- import { A as eventScheduleScopeValues, At as resolveBookingTimeZoneId, B as normalizeIdList, C as eventCalendarVariantMeaning, D as isEventCalendarListLayout, F as normalizeEventStaffMemberId, H as publicEventDestinationSchema, L as normalizeEventSurfacePresetsCsv, N as normalizeEventCategoryIdsCsv, Nt as toUtcIsoDateTimeString, Ot as parseUtcIsoDateTimeString, P as normalizeEventScheduleScope, R as normalizeEventSurfaceScope, Tt as getLocalScheduleDate, U as publicEventLoaderQuerySchemaShape, W as publicEventSchema, _t as inferSiteDateLocale, bt as buildBookingUtcDateWindow, dt as formatDateRange, j as eventSurfaceScopeValues, k as resolveEventCalendarReadPlan, kt as resolveBookingBusinessTimeZone, mt as formatTime, n as blockSiteTermsSchema, p as calendarWindowPageSchema, w as eventListArrangementValues, y as eventCalendarListGroupingDecision, z as normalizeEventVenueId } from "./noop-B3RNPVrt.mjs";
8
- import { h as resolveModeArrangement } from "./site-styles-B9HgmY07.mjs";
9
- import { n as getCurrentResolveImageUrlContext } from "./mediaContext-CNzWmoA4.mjs";
6
+ import { $r as formatBookingPriceDisplay, Ar as defineProgressiveBlockRuntime, Bt as registrationDisplaySchema, Cr as createInteractiveIslandCodec, Dr as resolveEventRegistrationScopedEvents, Fr as lookListPresentationSchemaShape, Gr as parseMailingListRuntimeContext, H as findPreSelectedEvent, Ht as shownVenue, It as toRegistrationEvents, Jt as MediaPlaceholder, Kt as RichText, Lt as toWholeSeriesRegistrationEvent, Mr as listItemPresentation, Nn as groupPublicEventsByRun, Or as createZodCodec, Pr as listLookSlot, Qr as parseNewsletterListId, Qt as renderVideo, Rt as toWholeSeriesRegistrationEvents, Sr as buildInteractiveIslandProps, Tn as formatRemainingPlaces, Tr as eventRegistrationPageSurfaceSubjectSchema, Tt as withOccurrenceTitle, Ut as browserReadAuthoritySchema, Vr as nextLiveRunSessionStartMs, Vt as resolveRegistrationDisplay, W as resolveEventRequiresPayment, Wr as resolveWholeSeriesRunLifecycle, Xr as parseMailchimpAudienceId, Xt as mediaImageHostProps, Yr as parseBrevoListId, Yt as computeMediaTransformStyle, Zr as parseMailchimpInterestId, Zt as renderAudio, _t as formatRegistrationSchedule, c as registrationStepLabelContext, cn as eventDateOptions, cr as columnOptionSchema, dr as eventCalendarDisplayModeSchema, ei as formatEventPricing, fr as eventLayoutSchema, gr as weekStartSchema, hr as registrationButtonVariantSchema, jn as selectEventCapacitySource, jr as isDecodeSuccess, kr as defineClientOwnedBlockRuntime, lr as eventButtonVariantSchema, mr as previewStageSchema, n as getEventSelectionMode, nn as resolveMediaNodeResponsiveImage, o as registrationRoute, on as eventCalendarWeekStart, or as bookingNowSchema, p as isRegistrationLocked, pn as formatEventCompactDateRail, pr as filterAutoShowSchema, pt as formatBookingWhen, qr as DEFAULT_MAILING_LIST_SUCCESS_MESSAGE, qt as ImagePresets, ri as publicEventPricingDisplay, s as registrationStepLabel, sn as eventDateLocale, sr as calendarTabViewsSchema, t as REGISTRATION_STEP_LABELS, ur as eventCalendarDefaultViewSchema, vr as blockButtonRoleSchema, wr as defineInteractiveIslandMetaKeys, xn as resolveRuntimeEventDestination, xr as resolveDateRuntimeContext, zt as placesLeftLabel } from "./wizardSteps-xqU4q63H.mjs";
7
+ import { A as eventScheduleScopeValues, At as resolveBookingTimeZoneId, B as normalizeIdList, C as eventCalendarVariantMeaning, D as isEventCalendarListLayout, F as normalizeEventStaffMemberId, H as publicEventDestinationSchema, L as normalizeEventSurfacePresetsCsv, N as normalizeEventCategoryIdsCsv, Nt as toUtcIsoDateTimeString, Ot as parseUtcIsoDateTimeString, P as normalizeEventScheduleScope, R as normalizeEventSurfaceScope, Tt as getLocalScheduleDate, U as publicEventLoaderQuerySchemaShape, W as publicEventSchema, _t as inferSiteDateLocale, bt as buildBookingUtcDateWindow, dt as formatDateRange, j as eventSurfaceScopeValues, k as resolveEventCalendarReadPlan, kt as resolveBookingBusinessTimeZone, mt as formatTime, n as blockSiteTermsSchema, p as calendarWindowPageSchema, w as eventListArrangementValues, y as eventCalendarListGroupingDecision, z as normalizeEventVenueId } from "./noop-C2vZse15.mjs";
8
+ import { g as resolveModeArrangement } from "./site-styles-BLHYJ8S7.mjs";
9
+ import { C as clsx, g as ExternalLinkIcon, i as ThemedButtonLink, n as ThemedAuthoredButton } from "./ThemedButton-BGVwNwE-.mjs";
10
+ import { n as getCurrentResolveImageUrlContext } from "./mediaContext-CdqGYlWl.mjs";
10
11
  import { n as getCreditProductCreditUnit, t as deriveCreditProductLabels } from "./creditProducts-BOWi1QLp.mjs";
11
12
  import "react";
12
13
  import { z } from "zod";
13
14
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
15
+ //#region ../core/src/block-interaction-context.ts
16
+ /** Server-resolved presentation context, never permission to perform a write. */
17
+ const blockInteractionContextSchema = z.discriminatedUnion("kind", [z.object({ kind: z.literal("live") }).strict(), z.object({ kind: z.literal("demo") }).strict()]);
18
+ //#endregion
14
19
  //#region ../core/src/mailing-list-targeting.ts
15
20
  const DEFAULT_MAILING_LIST_TARGETING = { mode: "default" };
16
21
  function sameMailingListPlacementTargeting(left, right) {
@@ -832,17 +837,7 @@ function resolveCardListSchedule(item, mode) {
832
837
  }
833
838
  /** Each part owns optional-content collapse once, for calendar and catalogue items. */
834
839
  const partRenderers = {
835
- title: ({ item, presentation, Title = "h3" }) => /* @__PURE__ */ jsx(Title, {
836
- ...listLookSlot(presentation, "item-title"),
837
- children: item.titleLink || item.href ? /* @__PURE__ */ jsx("a", {
838
- ...item.titleLink,
839
- href: item.titleLink?.href ?? item.href ?? void 0,
840
- children: /* @__PURE__ */ jsx(LinkedLabel, {
841
- label: item.title,
842
- newTabHint: item.newTabHint
843
- })
844
- }) : item.title
845
- }),
840
+ title: CardListTitle,
846
841
  text: ({ item, presentation }) => item.textDocument ? /* @__PURE__ */ jsx(RichText, {
847
842
  doc: item.textDocument,
848
843
  ...listLookSlot(presentation, "item-text"),
@@ -851,14 +846,7 @@ const partRenderers = {
851
846
  ...listLookSlot(presentation, "item-text"),
852
847
  children: item.text
853
848
  }) : null,
854
- media: ({ item, presentation }) => item.media ? /* @__PURE__ */ jsx("div", {
855
- ...listLookSlot(presentation, "item-media"),
856
- children: /* @__PURE__ */ jsx(MediaNodeServer, {
857
- value: item.media,
858
- size: ImagePresets.card,
859
- ...listLookSlot(presentation, "photo")
860
- })
861
- }) : null,
849
+ media: CardListMedia,
862
850
  facts: ({ item, presentation }) => item.facts?.length ? /* @__PURE__ */ jsx("dl", {
863
851
  ...listLookSlot(presentation, "facts"),
864
852
  children: item.facts.map(({ label, value }) => /* @__PURE__ */ jsxs("div", {
@@ -946,6 +934,41 @@ const partRenderers = {
946
934
  children: props.actionNode
947
935
  })
948
936
  };
937
+ /** Title and photo share the same destination and external-link behavior. */
938
+ function cardListItemLink(item) {
939
+ return item.titleLink ?? (item.href ? { href: item.href } : null);
940
+ }
941
+ function CardListTitle({ item, presentation, Title = "h3" }) {
942
+ const link = cardListItemLink(item);
943
+ return /* @__PURE__ */ jsx(Title, {
944
+ ...listLookSlot(presentation, "item-title"),
945
+ children: link ? /* @__PURE__ */ jsx("a", {
946
+ ...link,
947
+ children: /* @__PURE__ */ jsx(LinkedLabel, {
948
+ label: item.title,
949
+ newTabHint: item.newTabHint
950
+ })
951
+ }) : item.title
952
+ });
953
+ }
954
+ function CardListMedia({ item, presentation }) {
955
+ if (!item.media) return null;
956
+ const link = cardListItemLink(item);
957
+ const photo = /* @__PURE__ */ jsx(MediaNodeServer, {
958
+ value: item.media,
959
+ size: ImagePresets.card,
960
+ ...listLookSlot(presentation, "photo")
961
+ });
962
+ return /* @__PURE__ */ jsx("div", {
963
+ ...listLookSlot(presentation, "item-media"),
964
+ children: link ? /* @__PURE__ */ jsx("a", {
965
+ ...link,
966
+ className: "rb-block rb-h-full",
967
+ "aria-label": `${item.title}${item.newTabHint ? " (opens in a new tab)" : ""}`,
968
+ children: photo
969
+ }) : photo
970
+ });
971
+ }
949
972
  function CardListContentPart({ part, ...props }) {
950
973
  return partRenderers[part](props);
951
974
  }
@@ -1288,7 +1311,7 @@ function buildEventCollectionListDisplay(source) {
1288
1311
  events: Array.isArray(source.events) ? [...source.events] : [],
1289
1312
  listLayout: source.listLayout ?? "stack",
1290
1313
  listColumns: source.listColumns ?? "3",
1291
- eventsPerPage: source.lookSlots !== void 0 && source.listLayout === "compact" ? 3 : resolveEventCalendarListPageSize({ eventsPerPage: source.eventsPerPage }),
1314
+ eventsPerPage: resolveEventCalendarListPageSize({ eventsPerPage: source.eventsPerPage ?? (source.lookSlots !== void 0 && source.listLayout === "compact" ? "3" : void 0) }),
1292
1315
  paginationAction,
1293
1316
  sectionAction: paginationAction.kind === "seeAllLink" ? {
1294
1317
  href: paginationAction.href,
@@ -2902,7 +2925,6 @@ const eventRegistrationCommonSchemaShape = {
2902
2925
  successMessage: z.string().optional(),
2903
2926
  buttonVariant: registrationButtonVariantSchema.optional(),
2904
2927
  host: bookingHostSchema.optional(),
2905
- spamProtectionEnabled: z.boolean().optional(),
2906
2928
  supportEmail: z.string().optional(),
2907
2929
  sitePasses: publicPassProductCollectionSchema.nullable().optional(),
2908
2930
  siteMemberships: publicMembershipProductCollectionSchema.nullable().optional(),
@@ -3092,7 +3114,6 @@ const eventRegistrationBlockRuntime = defineClientOwnedBlockRuntime({
3092
3114
  successMessage: source.successMessage,
3093
3115
  buttonVariant: source.buttonVariant,
3094
3116
  host: source.host ?? "overlay",
3095
- spamProtectionEnabled: source.spamProtectionEnabled,
3096
3117
  supportEmail: source.supportEmail,
3097
3118
  sitePasses: source.sitePasses ?? null,
3098
3119
  siteMemberships: source.siteMemberships ?? null,
@@ -3506,6 +3527,7 @@ function withOptionalPhone(fields, includePhone) {
3506
3527
  }
3507
3528
  //#endregion
3508
3529
  //#region ../blocks/src/system/runtime/nodes/newsletter-form.interactive.ts
3530
+ const NEWSLETTER_DEMO_MESSAGE = "This is a demo. No signup has been saved.";
3509
3531
  const NEWSLETTER_SIGNUPS_PAUSED_MESSAGE = "We can’t accept signups right now. Please try again later.";
3510
3532
  function newsletterBlockSubmissionMessage(target) {
3511
3533
  if (target.tag === "block-source") return target.sourceRef ? null : NEWSLETTER_SIGNUPS_PAUSED_MESSAGE;
@@ -3563,6 +3585,7 @@ const newsletterSourceCommonSchema = z.object({
3563
3585
  siteId: z.string().optional(),
3564
3586
  apiBaseUrl: z.string().optional(),
3565
3587
  mailingList: mailingListContextSchema.optional(),
3588
+ interactionContext: blockInteractionContextSchema.optional(),
3566
3589
  targeting: mailingListTargetingSchema.optional(),
3567
3590
  buttonVariant: newsletterButtonVariantSchema.nullable().optional(),
3568
3591
  spamProtectionEnabled: z.boolean().optional(),
@@ -3619,6 +3642,7 @@ const newsletterHydrationSchema = z.object({
3619
3642
  token: signedMailingListSourceTokenSchema
3620
3643
  })
3621
3644
  }),
3645
+ z.object({ tag: z.literal("demo") }),
3622
3646
  z.object({ tag: z.literal("preview") }),
3623
3647
  z.object({
3624
3648
  tag: z.literal("unpublished-preview"),
@@ -3647,24 +3671,27 @@ const newsletterIslandMetaCodec = createZodCodec(z.object({
3647
3671
  apiBaseUrl: z.string().optional()
3648
3672
  }));
3649
3673
  const newsletterIslandMetaKeys = defineInteractiveIslandMetaKeys("siteId", "apiBaseUrl");
3650
- function buildNewsletterDisplay(source) {
3651
- const context = source.mailingList;
3652
- const form = context?.tag === "configured" ? context.form : {
3674
+ function newsletterGlobalForm(context) {
3675
+ return context?.tag === "configured" ? context.form : {
3653
3676
  fields: { preset: "emailOnly" },
3654
3677
  includeOptionalPhone: false,
3655
3678
  buttonLabel: "Subscribe",
3656
3679
  successMessage: DEFAULT_MAILING_LIST_SUCCESS_MESSAGE,
3657
3680
  privacyNote: null
3658
3681
  };
3682
+ }
3683
+ function buildNewsletterDisplay(source) {
3684
+ const context = source.mailingList;
3685
+ const form = newsletterGlobalForm(context);
3659
3686
  const assessment = assessMailingListTargeting(context, source.targeting ?? { mode: "default" });
3660
3687
  const choices = resolveRuntimeChoices(assessment);
3661
3688
  return {
3662
3689
  kind: "newsletter-form",
3663
3690
  ...source.lookSlots ? { lookSlots: source.lookSlots } : {},
3664
- availability: assessment.tag === "available" ? "ready" : "unavailable",
3691
+ availability: source.interactionContext?.kind === "demo" || assessment.tag === "available" ? "ready" : "unavailable",
3665
3692
  className: source.className ?? null,
3666
3693
  buttonLabel: form.buttonLabel,
3667
- successMessage: form.successMessage,
3694
+ successMessage: source.interactionContext?.kind === "demo" ? NEWSLETTER_DEMO_MESSAGE : form.successMessage,
3668
3695
  buttonVariant: source.buttonVariant ?? "primary",
3669
3696
  privacyNote: form.privacyNote,
3670
3697
  fields: getGlobalFormFields(form, source),
@@ -3687,12 +3714,13 @@ const newsletterFormBlockRuntime = defineProgressiveBlockRuntime({
3687
3714
  setupRevision: source.mailingList?.tag === "configured" ? source.mailingList.revision : null,
3688
3715
  choiceProvider: targeting.mode === "custom" ? targeting.provider : null,
3689
3716
  choicePresentation: presentation.tag,
3690
- spamProtectionEnabled: source.spamProtectionEnabled
3717
+ spamProtectionEnabled: source.interactionContext?.kind === "demo" ? false : source.spamProtectionEnabled
3691
3718
  }
3692
3719
  };
3693
3720
  }
3694
3721
  });
3695
3722
  function projectNewsletterFormHydrationTarget(source) {
3723
+ if (source.interactionContext?.kind === "demo") return { tag: "demo" };
3696
3724
  switch (source.source) {
3697
3725
  case "block": switch (source.newsletterBlockSubmission.tag) {
3698
3726
  case "unpublished-form":
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { t as BlockApiProvider } from "./context-BFwxgZpB.mjs";
2
+ import { t as BlockApiProvider } from "./context-BNAM7NsW.mjs";
3
3
  import { t as mountReactIsland } from "./reactMount-BGJVsHRb.mjs";
4
- import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-DYBioANh.mjs";
4
+ import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-DNx6b07x.mjs";
5
5
  import "react";
6
6
  import { jsx } from "react/jsx-runtime";
7
7
  //#region src/rendering/islands/enhancers/shopShared.tsx