@riverbankcms/sdk 0.160.0 → 0.162.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 (209) hide show
  1. package/dist/_dts/{BlocksIslandsHydrator-CoqeotCL.d.ts → BlocksIslandsHydrator-PZUoA872.d.ts} +1 -1
  2. package/dist/_dts/{Page-C0ENVLCF.d.ts → Page-CdQS6C7i.d.ts} +211 -9
  3. package/dist/_dts/{SdkPreviewMode-jZK0A49V.d.ts → SdkPreviewMode-CNGO-5f1.d.ts} +59 -92
  4. package/dist/_dts/{auth-contract-FPg0-2MC.d.ts → auth-contract-CgJ5nMaH.d.ts} +2 -0
  5. package/dist/_dts/{client-uMMuPq9V.d.ts → client-DGa53rjL.d.ts} +11 -3
  6. package/dist/_dts/{content-types-D6nXGqdQ.d.ts → content-types-K9R7P-KF.d.ts} +2 -2
  7. package/dist/_dts/{contracts-Bnmj1nxu.d.ts → contracts-CyBaPaIq.d.ts} +17 -5
  8. package/dist/_dts/{footerPageOutline-CeLjFX8b.d.ts → footerPageOutline-B6jmKmon.d.ts} +6 -6
  9. package/dist/_dts/{generatePageMetadata-nyU8q02J.d.ts → generatePageMetadata-iemoR3AN.d.ts} +2 -2
  10. package/dist/_dts/{index-BaaGBY1v.d.ts → index-8CN0Nd-Z.d.ts} +2 -2
  11. package/dist/_dts/{index-nVoi_74l.d.ts → index-BtnsA14K.d.ts} +10 -20
  12. package/dist/_dts/{index-lkpjIg5i.d.ts → index-C39F9KaB.d.ts} +13 -2
  13. package/dist/_dts/{index-C5xslEBn.d.ts → index-DEu85xBt.d.ts} +1 -1
  14. package/dist/_dts/{schema-D0bNcPWK.d.ts → index-DI2yaSPY.d.ts} +22873 -19918
  15. package/dist/_dts/{types-D8czmbQF.d.ts → index-Dbd0Sn0G.d.ts} +4356 -1827
  16. package/dist/_dts/{index-CEaKil7G.d.ts → index-Du1IRglc.d.ts} +2 -2
  17. package/dist/_dts/{index-DahMwisK.d.ts → index-Jlcq6w69.d.ts} +3 -3
  18. package/dist/_dts/{index-Bg64CkV-.d.ts → index-Wm62sXf2.d.ts} +4 -4
  19. package/dist/_dts/{loadContent-CYLmzvLq.d.ts → loadContent-BPfAAZDW.d.ts} +13 -10
  20. package/dist/_dts/{resolvePageContent-DqnxChOs.d.ts → resolvePageContent-DWbrtKf8.d.ts} +2 -2
  21. package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
  22. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  23. package/dist/_dts/sdk/src/client.d.ts +7 -7
  24. package/dist/_dts/sdk/src/config/index.d.ts +6 -6
  25. package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
  26. package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
  27. package/dist/_dts/sdk/src/index.d.ts +8 -8
  28. package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
  29. package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
  30. package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
  31. package/dist/_dts/sdk/src/next/index.d.ts +7 -7
  32. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  33. package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
  34. package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
  35. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  36. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  37. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  38. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  39. package/dist/_dts/sdk/src/preview-next/keep-alive.d.ts +1 -1
  40. package/dist/_dts/sdk/src/preview-next/session.d.ts +2 -2
  41. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  42. package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
  43. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  44. package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
  45. package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
  46. package/dist/_dts/sdk/src/server.d.ts +5 -5
  47. package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
  48. package/dist/_dts/{session-Ba2CsnK5.d.ts → session-C_gtSFyZ.d.ts} +2 -1
  49. package/dist/_dts/{types-DSgmJ15W.d.ts → types-CVv2H4AT.d.ts} +7 -7
  50. package/dist/_dts/{types-CFrYuXYP.d.ts → types-CfNG5koF.d.ts} +4 -2
  51. package/dist/_dts/{types-Dm-KW7nj.d.ts → types-ClZ-BQL_.d.ts} +3 -3
  52. package/dist/_dts/{validation-Bmb4WnHg.d.ts → validation-BJ6Lf_Dr.d.ts} +4 -4
  53. package/dist/client/{BlocksIslandsHydrator-DZRKi6tT.mjs → BlocksIslandsHydrator-COqlgWYU.mjs} +23 -21
  54. package/dist/client/{BookingMailingListNote-C00sLLdL.mjs → BookingMailingListNote-CFYPDEHH.mjs} +1 -1
  55. package/dist/client/{CalendarNavigationChevron-CHSi9b3E.mjs → CalendarNavigationChevron-COBVxgHb.mjs} +6 -6
  56. package/dist/client/{CheckboxChoice-Bhm6RAUL.mjs → CheckboxChoice-C7X9dJ8A.mjs} +1 -1
  57. package/dist/client/{DemoBookingPortalAccess-CaN-7ui7.mjs → DemoBookingPortalAccess-CvT0E9AR.mjs} +26 -10
  58. package/dist/client/{DemoPortalSignInLink-ClxN5_xZ.mjs → DemoPortalSignInLink-EBOBN5dT.mjs} +1 -1
  59. package/dist/client/{EventCalendar.client-BncvSa1n.mjs → EventCalendar.client-U6pKcntV.mjs} +16 -17
  60. package/dist/client/{EventCombined.client-DluBxVVu.mjs → EventCombined.client-CNzwEHws.mjs} +8 -8
  61. package/dist/client/{EventEmbeddedCheckoutStep-BiJrMtfp.mjs → EventEmbeddedCheckoutStep-B9yAWV_k.mjs} +1 -1
  62. package/dist/client/{EventItem-CXhnT9pF.mjs → EventItem-M5rpaHxi.mjs} +4 -4
  63. package/dist/client/{EventListWeekNavigation-V-dtoDlD.mjs → EventListWeekNavigation-D4ieBLDY.mjs} +1 -1
  64. package/dist/client/{EventListing.client-DPO6SZbx.mjs → EventListing.client-B8F40Rmn.mjs} +3 -3
  65. package/dist/client/{EventListing.view-B-Yi5JZS.mjs → EventListing.view-k4lhuCn5.mjs} +15 -6
  66. package/dist/client/{EventRegistrationPayment-Dc3Fnlnw.mjs → EventRegistrationPayment-C3g8_Hqb.mjs} +25 -13
  67. package/dist/client/LocationMapActions-CAjt7qVo.mjs +62 -0
  68. package/dist/client/MapDrawingSvg-_aIK2ojv.mjs +200 -0
  69. package/dist/client/{Page-7PkzO04N.mjs → Page-DJBIQBOw.mjs} +2555 -536
  70. package/dist/client/{StepIndicator-DiD6euZ8.mjs → StepIndicator-CFacB1z6.mjs} +2 -2
  71. package/dist/client/{TabBarFragment-BHd8GN8y.mjs → TabBarFragment-BLsfQskO.mjs} +1 -1
  72. package/dist/client/ThemedButton-BWsDgjMC.mjs +2243 -0
  73. package/dist/client/{accordion-2m27DsIk.mjs → accordion-CtO2XF7M.mjs} +1 -1
  74. package/dist/client/{booking-form.client-BddWV5w1.mjs → booking-form.client-RICCQ0h2.mjs} +137 -60
  75. package/dist/client/{bookingForm-bcdXQjmw.mjs → bookingForm-SvjLPx8i.mjs} +4 -4
  76. package/dist/client/bookings.mjs +5 -5
  77. package/dist/client/{carousel-D7nj9I0y.mjs → carousel-BR-zCD3O.mjs} +2 -2
  78. package/dist/client/{carousel.client-AffDJo_s.mjs → carousel.client-CEWtoZd3.mjs} +1 -1
  79. package/dist/client/{cart-PN6yCw1H.mjs → cart-C6YpKbZZ.mjs} +3 -3
  80. package/dist/client/{cart.client-D4t1f0cJ.mjs → cart.client-dC938WrX.mjs} +1 -1
  81. package/dist/client/{checkout-CsTwXVSb.mjs → checkout-Dy9RlREI.mjs} +3 -3
  82. package/dist/client/{checkout.client-BhQE3zY7.mjs → checkout.client-CefG0d2F.mjs} +1 -1
  83. package/dist/client/client.mjs +37 -71
  84. package/dist/client/{context-BLAvalAa.mjs → context-BFwxgZpB.mjs} +28 -1
  85. package/dist/client/{cta-CUXhX_D7.mjs → cta-DtA42Xio.mjs} +1 -1
  86. package/dist/client/{dateFormatting-BHIHxNuo.mjs → dateFormatting-yP1B7F0O.mjs} +39 -2
  87. package/dist/client/{demoPortalMagicLink-R-awbk_0.mjs → demoPortalMagicLink-WOiT5Ryi.mjs} +1 -1
  88. package/dist/client/{enhanceHeaderSection-9Q93uvTo.mjs → enhanceHeaderSection-Dh8c_Lq-.mjs} +3 -3
  89. package/dist/client/{event-details.client-BS1WtG-a.mjs → event-details.client-BFgsLqTj.mjs} +3 -17
  90. package/dist/client/{event-registration.client-BXndwsET.mjs → event-registration.client-BaXZ1-Ky.mjs} +16 -16
  91. package/dist/client/{eventCalendar-HyoOt1Qz.mjs → eventCalendar-COLwF80U.mjs} +4 -4
  92. package/dist/client/{eventCombined-sdG5oEaH.mjs → eventCombined-D3Ltwu03.mjs} +4 -4
  93. package/dist/client/{eventDetails-FFAknE4w.mjs → eventDetails-CBrkimXu.mjs} +2 -2
  94. package/dist/client/{eventListing-CGK6urk3.mjs → eventListing-CedKVA1S.mjs} +4 -4
  95. package/dist/client/{eventRegistration-VhrvCs4l.mjs → eventRegistration-DkQQfR1b.mjs} +4 -4
  96. package/dist/client/{form-C-B5O_ko.mjs → form-XFy9uXSJ.mjs} +3 -3
  97. package/dist/client/{form.client-DoZVcl8d.mjs → form.client-B0iancFK.mjs} +4 -4
  98. package/dist/client/{form.parts-mttKpgif.mjs → form.parts-DMbolu9Y.mjs} +3 -3
  99. package/dist/client/{formatDate-xUSCknEO.mjs → formatDate-Jm5MQOCA.mjs} +1 -1
  100. package/dist/client/gifting/client.mjs +3 -3
  101. package/dist/client/{headerSection-BHUEXsaI.mjs → headerSection-WjlECjtV.mjs} +2 -2
  102. package/dist/client/{mediaAssets-BOj-Co0B.mjs → mediaAssets-BkoW_PEn.mjs} +1 -1
  103. package/dist/client/{mediaContext-DThoeEBU.mjs → mediaContext-CNzWmoA4.mjs} +1 -1
  104. package/dist/client/{newsletter-form.client-D_n0rftg.mjs → newsletter-form.client-D-XwJTjN.mjs} +5 -5
  105. package/dist/client/{newsletter-form.parts-DKHye4IE.mjs → newsletter-form.parts-H92f30y0.mjs} +2 -2
  106. package/dist/client/{newsletterForm-tEaYelzx.mjs → newsletterForm-DMuxzu6I.mjs} +3 -3
  107. package/dist/client/{noop-B610YKEx.mjs → noop-B3RNPVrt.mjs} +313 -3
  108. package/dist/client/portal/client.mjs +1116 -85
  109. package/dist/client/{product-detail.client-DUf5x5Jt.mjs → product-detail.client-B3HuuykE.mjs} +1 -1
  110. package/dist/client/{product-list.client-Cqp1BPTV.mjs → product-list.client-CzsDrHQO.mjs} +1 -1
  111. package/dist/client/{productDetail-B8bBiogP.mjs → productDetail-CbBUVWgd.mjs} +3 -3
  112. package/dist/client/{productList-BKN4D-1z.mjs → productList-vqOKH2mh.mjs} +3 -3
  113. package/dist/client/{propsDecoder-2nNZh2Oe.mjs → propsDecoder-CkSUep5a.mjs} +4 -28
  114. package/dist/client/{registry.server-BAm4RPNJ.mjs → registry.server-cZ24QwtW.mjs} +607 -210
  115. package/dist/client/rendering/client.mjs +28 -28
  116. package/dist/client/rendering/islands.mjs +1 -1
  117. package/dist/client/rendering.mjs +18 -9
  118. package/dist/client/{richText-coerce-Cv-qomNB.mjs → richText-coerce-DDcCKvBJ.mjs} +1 -1
  119. package/dist/client/{routeIslandApiConfig-C5u8MbAA.mjs → routeIslandApiConfig-DYBioANh.mjs} +1 -1
  120. package/dist/client/{ThemedButton-C22C9cCF.mjs → schema-DNHLlze-.mjs} +7307 -8363
  121. package/dist/client/{shop-DZNC0VKk.mjs → shop-CF0dhnfH.mjs} +3 -3
  122. package/dist/client/{shop-commerce-DdX4LSa3.mjs → shop-commerce-DQznNBEo.mjs} +11 -11
  123. package/dist/client/{shop-commerce-store-BJtrZov9.mjs → shop-commerce-store-Ba8zPlIg.mjs} +1 -1
  124. package/dist/client/{shop.client-DmDd-igg.mjs → shop.client-DqfYoqWH.mjs} +12 -12
  125. package/dist/client/{shop.interactive-5SnnDHz3.mjs → shop.interactive-CreQ0I7i.mjs} +38 -183
  126. package/dist/client/{shopShared-CPqUlAh9.mjs → shopShared-D-yh-P7g.mjs} +2 -2
  127. package/dist/client/site-styles-B9HgmY07.mjs +11619 -0
  128. package/dist/client/{timetableModel-C19rcHEw.mjs → timetableModel-DCdVErTJ.mjs} +149 -8
  129. package/dist/client/{useAvailableSlots-BjbJXotk.mjs → useAvailableSlots-Cvgdp2DH.mjs} +8 -11
  130. package/dist/client/{useBookingNowIso-CMgfL7YJ.mjs → useBookingNowIso-DrTnGNzD.mjs} +1 -1
  131. package/dist/client/{useDiscountApply-KG8jB7WC.mjs → useDiscountApply-CULjnXGl.mjs} +2 -2
  132. package/dist/client/{useDiscountCodeUi-DK2w_i0a.mjs → useDiscountCodeUi-Gn_m7e0o.mjs} +1 -1
  133. package/dist/client/{useEventPagination-DW6MCirb.mjs → useEventPagination-CsysCF22.mjs} +8 -21
  134. package/dist/client/{view-CseyBW07.mjs → view-BpBjo9Te.mjs} +71 -59
  135. package/dist/client/{view-CkUn3Y0Y.mjs → view-DMyTchi7.mjs} +4 -4
  136. package/dist/client/wizardSteps-BO2OmMO9.mjs +6604 -0
  137. package/dist/preview-next/before-render.mjs +7 -6
  138. package/dist/preview-next/chrome.css +2 -0
  139. package/dist/preview-next/client/{EventEmbeddedCheckoutStep-lUHBrzHv.mjs → EventEmbeddedCheckoutStep-DLsSmZbO.mjs} +2 -1
  140. package/dist/preview-next/client/LocationPickerEnvironment-QtSG2Bl-.mjs +138 -0
  141. package/dist/preview-next/client/MapLibreEditMap-B-rohNcG.mjs +488 -0
  142. package/dist/preview-next/client/{PreviewEditorSidebar-DWyUGCAG.mjs → PreviewEditorSidebar-ChrW9VEo.mjs} +269 -1100
  143. package/dist/preview-next/client/{PreviewEditorUI-Wq0b3Daw.mjs → PreviewEditorUI-VaHvYtrA.mjs} +10 -190
  144. package/dist/preview-next/client/{SdkPreviewModeRuntime-BtZPcwYV.mjs → SdkPreviewModeRuntime-Bz7jR6nl.mjs} +1 -1
  145. package/dist/preview-next/client/{SdkPreviewModeRuntime-wSI_R361.mjs → SdkPreviewModeRuntime-DWwktlWs.mjs} +639 -536
  146. package/dist/preview-next/client/{ThemedButton-DzeycIlD.mjs → ThemedButton-CHKOWXxl.mjs} +1706 -692
  147. package/dist/preview-next/client/lucide-react-CA9cpo0P.mjs +51984 -0
  148. package/dist/preview-next/client/maplibre-gl-DykfOYYn.mjs +34208 -0
  149. package/dist/preview-next/client/{SiteChromeCustomizeContext-Hc4pYnNe.mjs → previewAuthStore-C0VUwEHz.mjs} +81363 -136296
  150. package/dist/preview-next/client/{previewChromeSurface-Corq4AG7.mjs → previewChromeSurface-Dhyx2YrS.mjs} +1 -1
  151. package/dist/preview-next/client/result-BjJUoxUF.mjs +16 -0
  152. package/dist/preview-next/client/rolldown-runtime-CE6sIgz8.mjs +34 -0
  153. package/dist/preview-next/client/runtime.mjs +3 -3
  154. package/dist/preview-next/client/{sdk-runtime-CWymRWhK.mjs → sdk-runtime-C2GWOCyj.mjs} +1 -1
  155. package/dist/preview-next/client/siteStyleAccess-DHyzUpv4.mjs +12833 -0
  156. package/dist/preview-next/client/{spinner-C4If5Y-O.mjs → spinner-BeR2S8oG.mjs} +2 -1
  157. package/dist/preview-next/{constants-D8Ya7bO4.mjs → constants-Bf-vqdKH.mjs} +2 -1
  158. package/dist/preview-next/editor-base.css +2 -2
  159. package/dist/preview-next/keepAlive.mjs +3 -3
  160. package/dist/preview-next/middleware.mjs +7 -3
  161. package/dist/preview-next/{refresh-contract-CvmNqZ1Q.mjs → refresh-contract-uQ6BXgLJ.mjs} +5 -0
  162. package/dist/preview-next/{route-contract-8csADeIT.mjs → route-contract-CkrFDMrl.mjs} +434 -203
  163. package/dist/preview-next/{session-BgkrPqu0.mjs → session-P1R_ajT7.mjs} +12 -2
  164. package/dist/preview-next/session.mjs +1 -1
  165. package/dist/server/{Block.shared-D1_gonwM.mjs → Block.shared-DxvNGDig.mjs} +4 -4
  166. package/dist/server/{bindings-CFmJg5lm.mjs → bindings-BuhKvYkE.mjs} +2 -1
  167. package/dist/server/{client-DPsi0Dai.mjs → client-BobW6DOz.mjs} +39 -72
  168. package/dist/server/config-validation.mjs +1 -1
  169. package/dist/server/config.mjs +2 -2
  170. package/dist/server/{siteChromeOverlayClearance-DALIAMwo.mjs → effectiveNavLinkStyle-B-MKSt0p.mjs} +2060 -1680
  171. package/dist/server/index.mjs +3 -3
  172. package/dist/server/{loadContent-RMCcuVU_.mjs → loadContent-CCG_3mbY.mjs} +14 -5
  173. package/dist/server/loadPage-Bk9HDh9K.mjs +2 -0
  174. package/dist/server/{loadPage-DhDGzj7t.mjs → loadPage-jntGoMrf.mjs} +3 -2
  175. package/dist/server/next.mjs +9 -9
  176. package/dist/server/{overrideResolution-OxY5FMuy.mjs → overrideResolution-BBOlgn4Z.mjs} +1 -1
  177. package/dist/server/{overrides-Bz_A6sB9.mjs → overrides-DByQwIyW.mjs} +803 -412
  178. package/dist/server/page-converter.mjs +1 -1
  179. package/dist/server/{prebuild-B_1vrSru.mjs → prebuild-DrwcTk2t.mjs} +1 -1
  180. package/dist/server/prebuild.mjs +1 -1
  181. package/dist/server/{prefetchBlockData-B7ukYXXR.mjs → prefetchBlockData-LfgxSJYE.mjs} +156 -89
  182. package/dist/server/{publicProducts-Djbpc81A.mjs → publicProducts-8A3T5v4M.mjs} +685 -166
  183. package/dist/server/{registry-eFjKtEhF.mjs → registry-Digv02oV.mjs} +780 -1052
  184. package/dist/server/rendering/server.mjs +4 -4
  185. package/dist/server/rendering.mjs +8 -8
  186. package/dist/server/{resolveBlockData-DYvEa9c5.mjs → resolveBlockData-C23t8-77.mjs} +1 -1
  187. package/dist/server/routing.mjs +1 -1
  188. package/dist/server/{schema-C3dJ5UkL.mjs → schema-BiqpDRwB.mjs} +4805 -3561
  189. package/dist/server/server.mjs +3 -3
  190. package/dist/server/site-styles-DrkprQPL.mjs +755 -0
  191. package/dist/server/siteChromeOverlayClearance-BmKKkkbh.mjs +750 -0
  192. package/dist/server/{src-C5Mu-z0F.mjs → src-08GY1njw.mjs} +1060 -44
  193. package/dist/server/theme-bridge.mjs +1 -1
  194. package/dist/server/theme.mjs +1 -1
  195. package/dist/server/{themeAdmission-ruoyXb_0.mjs → themeAdmission-CSd_Vusz.mjs} +151 -53
  196. package/dist/server/{validation-B-Xar8QS.mjs → validation-DdUTkBOZ.mjs} +2 -2
  197. package/dist/server/{version-Bg7VHK3i.mjs → version-DdIOqIDe.mjs} +1 -1
  198. package/dist/styles/index.css +1029 -41
  199. package/package.json +1 -1
  200. package/dist/_dts/index-Blwl7yl6.d.ts +0 -13
  201. package/dist/client/LeafletStaticMap-ClZCCzAm.mjs +0 -135
  202. package/dist/client/location-map.client-Cylb_MHw.mjs +0 -28
  203. package/dist/client/location-map.view-Cx4Bl7ij.mjs +0 -345
  204. package/dist/client/locationMap-QnKJi-nZ.mjs +0 -15
  205. package/dist/client/renderableMediaAssetAdmission-DGjBr_e-.mjs +0 -152
  206. package/dist/client/wizardSteps-zgq10lN1.mjs +0 -17181
  207. package/dist/preview-next/client/siteStyleAccess-QZkJRHl5.mjs +0 -1359
  208. package/dist/server/loadPage-DUPP51C-.mjs +0 -2
  209. package/dist/server/media-CcHwZkdJ.mjs +0 -243
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { t as defineIslandPropsDecoder } from "./propsDecoder-2nNZh2Oe.mjs";
3
- import { t as ShopClient } from "./shop.client-DmDd-igg.mjs";
4
- import { t as mountShopBlockIsland } from "./shopShared-CPqUlAh9.mjs";
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";
5
5
  //#region src/rendering/islands/enhancers/shop.tsx
6
6
  const decode = defineIslandPropsDecoder("shop");
7
7
  const enhance = (root, props) => {
@@ -1,19 +1,19 @@
1
1
  "use client";
2
- import { i as ThemedButtonLink, r as ThemedButton } from "./ThemedButton-C22C9cCF.mjs";
2
+ import { i as ThemedButtonLink, r as ThemedButton } from "./ThemedButton-BWsDgjMC.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-zgq10lN1.mjs";
5
- import { d as DiscountCodeDisclosure, i as SiteTermsChangedNotice, n as DemoBookingPortalAccess, o as useSiteTermsAgreement, r as SiteTermsAgreementField } from "./DemoBookingPortalAccess-CaN-7ui7.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-5SnnDHz3.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";
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-KG8jB7WC.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";
10
10
  import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
11
- import { t as coerceRichTextDoc } from "./richText-coerce-Cv-qomNB.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-CkUn3Y0Y.mjs";
13
- import { n as useBlockApi } from "./context-BLAvalAa.mjs";
14
- import { a as storeDemoBookingCheckoutReturn, i as readDemoBookingCheckoutReturnEmail } from "./demoPortalMagicLink-R-awbk_0.mjs";
15
- import { t as CarouselNodeClient } from "./carousel.client-AffDJo_s.mjs";
16
- import { n as useCommerceCart } from "./shop-commerce-store-BJtrZov9.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";
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,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-5SnnDHz3.mjs";
2
+ import { A as parseStoredCommerceCartState, D as buildPassCartItem, E as EMPTY_COMMERCE_CART_STATE, M as reduceCommerceCart } from "./shop.interactive-CreQ0I7i.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,23 +1,23 @@
1
1
  "use client";
2
- import { r as ThemedButton } from "./ThemedButton-C22C9cCF.mjs";
2
+ import { r as ThemedButton } from "./ThemedButton-BWsDgjMC.mjs";
3
3
  import { c as assertNever$1, t as assertNever } from "./src-VIsPY-kw.mjs";
4
- import { Wn as getShopSuccessCopy } from "./wizardSteps-zgq10lN1.mjs";
5
- import { d as DiscountCodeDisclosure, i as SiteTermsChangedNotice, o as useSiteTermsAgreement, r as SiteTermsAgreementField, t as BookingConfirmation } from "./DemoBookingPortalAccess-CaN-7ui7.mjs";
6
- import { S as formatInterval, _ as shopProductPresentation, x as formatCommercePrice } from "./shop.interactive-5SnnDHz3.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";
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-KG8jB7WC.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";
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-DK2w_i0a.mjs";
13
+ import { n as TerminalPanel, r as StateIcon, t as useDiscountCodeUi } from "./useDiscountCodeUi-Gn_m7e0o.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-CkUn3Y0Y.mjs";
16
- import { n as useBlockApi } from "./context-BLAvalAa.mjs";
17
- import { a as storeDemoBookingCheckoutReturn, i as readDemoBookingCheckoutReturnEmail } from "./demoPortalMagicLink-R-awbk_0.mjs";
18
- import { t as CarouselNodeClient } from "./carousel.client-AffDJo_s.mjs";
19
- import { r as formatEntitlementEnd } from "./dateFormatting-BHIHxNuo.mjs";
20
- import { t as addPassToCommerceCart } from "./shop-commerce-store-BJtrZov9.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";
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,167 +1,16 @@
1
1
  "use client";
2
2
  import { d as formatDateKey, l as buildCalendarViewport } from "./src-1PJxc8KO.mjs";
3
- import { T as ok, d as parseEventSeriesId, l as parseContentVersionId, w as err } from "./renderableMediaAssetAdmission-DGjBr_e-.mjs";
4
- import { C as clsx, Nr as formatCurrencyAmount, Wt as cardRoleSchema, g as ExternalLinkIcon, i as ThemedButtonLink, n as ThemedAuthoredButton, on as assertNever, wn as toNonEmptyReadonlyArray } from "./ThemedButton-C22C9cCF.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";
5
5
  import { c as assertNever$1 } from "./src-VIsPY-kw.mjs";
6
- import { Ar as defineProgressiveBlockRuntime, Bi as parseNewsletterListId, Bt as registrationDisplaySchema, Cr as createInteractiveIslandCodec, Dr as resolveEventRegistrationScopedEvents, Fi as DEFAULT_MAILING_LIST_SUCCESS_MESSAGE, Fr as lookListPresentationSchemaShape, Gi as publicEventPricingDisplay, H as findPreSelectedEvent, Hi as formatEventPricing, Ht as shownVenue, It as toRegistrationEvents, Jt as MediaPlaceholder, Kt as RichText, Li as parseBrevoListId, Lt as toWholeSeriesRegistrationEvent, Mi as resolveWholeSeriesRunLifecycle, Mr as listItemPresentation, Ni as parseMailingListRuntimeContext, Nn as groupPublicEventsByRun, Or as createZodCodec, Pr as listLookSlot, Qt as renderVideo, Ri as parseMailchimpAudienceId, Rt as toWholeSeriesRegistrationEvents, Sr as buildInteractiveIslandProps, Tn as formatRemainingPlaces, Tr as eventRegistrationPageSurfaceSubjectSchema, Tt as withOccurrenceTitle, Ut as browserReadAuthoritySchema, Vi as formatBookingPriceDisplay, Vt as resolveRegistrationDisplay, W as resolveEventRequiresPayment, Xt as mediaImageHostProps, Yt as computeMediaTransformStyle, Zt as renderAudio, _t as formatRegistrationSchedule, c as registrationStepLabelContext, cn as eventDateOptions, cr as columnOptionSchema, dr as eventCalendarDisplayModeSchema, fr as eventLayoutSchema, gr as weekStartSchema, hr as registrationButtonVariantSchema, jn as selectEventCapacitySource, jr as isDecodeSuccess, ki as nextLiveRunSessionStartMs, 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 resolveModeArrangement, qt as ImagePresets, 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, zi as parseMailchimpInterestId, zt as placesLeftLabel } from "./wizardSteps-zgq10lN1.mjs";
7
- import { A as eventScheduleScopeValues, B as normalizeIdList, C as eventCalendarVariantMeaning, Ct as toUtcIsoDateTimeString, D as isEventCalendarListLayout, F as normalizeEventStaffMemberId, H as publicEventLoaderQuerySchemaShape, L as normalizeEventSurfacePresetsCsv, N as normalizeEventCategoryIdsCsv, P as normalizeEventScheduleScope, R as normalizeEventSurfaceScope, U as publicEventSchema, V as publicEventDestinationSchema, at as formatTime, bt as resolveBookingTimeZoneId, ht as getLocalScheduleDate, j as eventSurfaceScopeValues, k as resolveEventCalendarReadPlan, n as blockSiteTermsSchema, nt as formatDateRange, p as calendarWindowPageSchema, st as inferSiteDateLocale, ut as buildBookingUtcDateWindow, vt as parseUtcIsoDateTimeString, w as eventListArrangementValues, y as eventCalendarListGroupingDecision, yt as resolveBookingBusinessTimeZone, z as normalizeEventVenueId } from "./noop-B610YKEx.mjs";
8
- import { n as getCurrentResolveImageUrlContext } from "./mediaContext-DThoeEBU.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";
9
10
  import { n as getCreditProductCreditUnit, t as deriveCreditProductLabels } from "./creditProducts-BOWi1QLp.mjs";
10
11
  import "react";
11
12
  import { z } from "zod";
12
13
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
13
- //#region ../core/src/public-profile.ts
14
- const publicProfileWeekdays = [
15
- "monday",
16
- "tuesday",
17
- "wednesday",
18
- "thursday",
19
- "friday",
20
- "saturday",
21
- "sunday"
22
- ];
23
- function isRecord$3(value) {
24
- return typeof value === "object" && value !== null && !Array.isArray(value);
25
- }
26
- function trimmedOptionalString(value) {
27
- if (value === null || value === void 0) return null;
28
- if (typeof value !== "string") return void 0;
29
- const trimmed = value.trim();
30
- return trimmed.length > 0 ? trimmed : null;
31
- }
32
- function parsePublicProfileTimeZone(value) {
33
- const timeZone = trimmedOptionalString(value);
34
- if (timeZone === null || timeZone === void 0) return err({
35
- code: "invalid_timezone",
36
- path: "openingHours.timeZone",
37
- message: "Choose a timezone."
38
- });
39
- try {
40
- new Intl.DateTimeFormat("en-GB", { timeZone }).format(/* @__PURE__ */ new Date(0));
41
- return ok(timeZone);
42
- } catch {
43
- return err({
44
- code: "invalid_timezone",
45
- path: "openingHours.timeZone",
46
- message: "Choose a valid IANA timezone."
47
- });
48
- }
49
- }
50
- function parseOpeningHoursTime(value, path) {
51
- if (typeof value !== "string" || !/^(?:[01]\d|2[0-3]):[0-5]\d$/u.test(value)) return err({
52
- code: "invalid_time",
53
- path,
54
- message: "Use a 24-hour time such as 09:00."
55
- });
56
- return ok(value);
57
- }
58
- function minutesSinceMidnight(value) {
59
- const [hours = "0", minutes = "0"] = value.split(":");
60
- return Number(hours) * 60 + Number(minutes);
61
- }
62
- function parseOpeningHoursDay(value, expectedWeekday, index) {
63
- const path = `openingHours.days.${index}`;
64
- if (!isRecord$3(value) || value.weekday !== expectedWeekday) return err({
65
- code: "invalid_weekdays",
66
- path,
67
- message: `Expected ${expectedWeekday} in calendar order.`
68
- });
69
- if (value.kind === "closed") return ok({
70
- kind: "closed",
71
- weekday: expectedWeekday
72
- });
73
- if (value.kind !== "open" || !Array.isArray(value.intervals) || value.intervals.length === 0) return err({
74
- code: "invalid_interval",
75
- path: `${path}.intervals`,
76
- message: "Open days need at least one opening interval."
77
- });
78
- const intervals = [];
79
- for (const [intervalIndex, rawInterval] of value.intervals.entries()) {
80
- const intervalPath = `${path}.intervals.${intervalIndex}`;
81
- if (!isRecord$3(rawInterval)) return err({
82
- code: "invalid_interval",
83
- path: intervalPath,
84
- message: "Opening interval is invalid."
85
- });
86
- const opensAt = parseOpeningHoursTime(rawInterval.opensAt, `${intervalPath}.opensAt`);
87
- if (!opensAt.ok) return opensAt;
88
- const closesAt = parseOpeningHoursTime(rawInterval.closesAt, `${intervalPath}.closesAt`);
89
- if (!closesAt.ok) return closesAt;
90
- if (minutesSinceMidnight(opensAt.value) >= minutesSinceMidnight(closesAt.value)) return err({
91
- code: "invalid_interval",
92
- path: intervalPath,
93
- message: "Closing time must be later than opening time on the same day."
94
- });
95
- intervals.push({
96
- opensAt: opensAt.value,
97
- closesAt: closesAt.value
98
- });
99
- }
100
- intervals.sort((left, right) => minutesSinceMidnight(left.opensAt) - minutesSinceMidnight(right.opensAt));
101
- for (let intervalIndex = 1; intervalIndex < intervals.length; intervalIndex += 1) {
102
- const previous = intervals[intervalIndex - 1];
103
- const current = intervals[intervalIndex];
104
- if (previous !== void 0 && current !== void 0 && minutesSinceMidnight(current.opensAt) < minutesSinceMidnight(previous.closesAt)) return err({
105
- code: "overlapping_intervals",
106
- path: `${path}.intervals.${intervalIndex}`,
107
- message: "Opening intervals cannot overlap."
108
- });
109
- }
110
- const [first, ...rest] = intervals;
111
- if (first === void 0) return err({
112
- code: "invalid_interval",
113
- path,
114
- message: "Open days need an opening interval."
115
- });
116
- return ok({
117
- kind: "open",
118
- weekday: expectedWeekday,
119
- intervals: [first, ...rest]
120
- });
121
- }
122
- function parseOpeningHoursWeek(rawDays) {
123
- const parsedDays = publicProfileWeekdays.map((weekday, index) => parseOpeningHoursDay(rawDays[index], weekday, index));
124
- const failed = parsedDays.find((day) => !day.ok);
125
- if (failed !== void 0) return failed;
126
- const [monday, tuesday, wednesday, thursday, friday, saturday, sunday] = parsedDays.flatMap((day) => day.ok ? [day.value] : []);
127
- if (monday === void 0 || tuesday === void 0 || wednesday === void 0 || thursday === void 0 || friday === void 0 || saturday === void 0 || sunday === void 0) return err({
128
- code: "invalid_weekdays",
129
- path: "openingHours.days",
130
- message: "Opening hours are incomplete."
131
- });
132
- return ok([
133
- monday,
134
- tuesday,
135
- wednesday,
136
- thursday,
137
- friday,
138
- saturday,
139
- sunday
140
- ]);
141
- }
142
- function parseWeeklyOpeningHours(value) {
143
- if (!isRecord$3(value) || !Array.isArray(value.days) || value.days.length !== publicProfileWeekdays.length) return err({
144
- code: "invalid_weekdays",
145
- path: "openingHours.days",
146
- message: "Opening hours must include all seven weekdays."
147
- });
148
- const timeZone = parsePublicProfileTimeZone(value.timeZone);
149
- if (!timeZone.ok) return timeZone;
150
- const note = value.note === void 0 || value.note === null ? null : trimmedOptionalString(value.note);
151
- if (note === void 0) return err({
152
- code: "invalid_shape",
153
- path: "openingHours.note",
154
- message: "The opening hours note must be text."
155
- });
156
- const days = parseOpeningHoursWeek(value.days);
157
- if (!days.ok) return days;
158
- return ok({
159
- timeZone: timeZone.value,
160
- ...note !== null ? { note } : {},
161
- days: days.value
162
- });
163
- }
164
- //#endregion
165
14
  //#region ../core/src/mailing-list-targeting.ts
166
15
  const DEFAULT_MAILING_LIST_TARGETING = { mode: "default" };
167
16
  function sameMailingListPlacementTargeting(left, right) {
@@ -453,10 +302,14 @@ function assessCustomTargeting(catalog, targeting) {
453
302
  }
454
303
  }
455
304
  }
305
+ /** Shared choice availability decision for both runtime catalogues and captured document facts. */
306
+ function missingMailingListTargetingChoiceIds(targeting, choices) {
307
+ const available = new Set(choices.map((choice) => choice.id));
308
+ return mailingListTargetingChoiceIds(targeting).filter((id) => !available.has(id));
309
+ }
456
310
  function assessMatchedChoices(matched, choices) {
457
311
  const selected = new Set(mailingListTargetingChoiceIds(matched.targeting));
458
- const available = new Set(choices.map((item) => item.id));
459
- const missingIds = [...selected].filter((id) => !available.has(id));
312
+ const missingIds = missingMailingListTargetingChoiceIds(matched.targeting, choices);
460
313
  const value = {
461
314
  mode: "custom",
462
315
  ...matched,
@@ -1044,14 +897,23 @@ const partRenderers = {
1044
897
  ...listLookSlot(presentation, "dates"),
1045
898
  children: item.dates.map((date, index) => /* @__PURE__ */ jsxs("li", {
1046
899
  ...listLookSlot(presentation, "date"),
1047
- children: [/* @__PURE__ */ jsx("time", {
1048
- dateTime: date.startsAt,
1049
- children: date.label
1050
- }), date.places ? /* @__PURE__ */ jsx("span", {
1051
- ...listLookSlot(presentation, "date-places"),
1052
- "data-availability": date.places.status,
1053
- children: date.places.label
1054
- }) : null]
900
+ children: [
901
+ /* @__PURE__ */ jsx("time", {
902
+ dateTime: date.startsAt,
903
+ children: date.label
904
+ }),
905
+ date.places ? /* @__PURE__ */ jsx("span", {
906
+ ...listLookSlot(presentation, "date-places"),
907
+ "data-availability": date.places.status,
908
+ children: date.places.label
909
+ }) : null,
910
+ date.booking ? /* @__PURE__ */ jsx(ThemedButtonLink, {
911
+ ...date.booking,
912
+ variant: presentation.buttonVariant ?? "primary",
913
+ size: "sm",
914
+ extraClassName: "rb-card-list-date-booking"
915
+ }) : null
916
+ ]
1055
917
  }, `${date.startsAt}-${index}`))
1056
918
  }) : null,
1057
919
  availability: ({ item, presentation }) => item.availability ? /* @__PURE__ */ jsx("p", {
@@ -2822,14 +2684,6 @@ function resolveAutoCtaPath(source, routes) {
2822
2684
  }
2823
2685
  return routeByNormalizedPath.get("/offerings") ?? null;
2824
2686
  }
2825
- function resolveOfferingsPreviewRunPath(run, routes) {
2826
- const routeIds = [run.eventSeriesId, run.eventOfferingId];
2827
- for (const entityId of routeIds) {
2828
- const path = normalizeRoutePath((routes ?? []).find((candidate) => candidate.entityId === entityId)?.path);
2829
- if (path) return path;
2830
- }
2831
- return null;
2832
- }
2833
2687
  function preferredPathsForSource(source) {
2834
2688
  switch (source.kind) {
2835
2689
  case "eventPreset": switch (source.preset) {
@@ -4644,7 +4498,7 @@ const shopBlockRuntime = defineProgressiveBlockRuntime({
4644
4498
  buildRender: (source) => {
4645
4499
  const passPurchaseMode = source.passPurchaseMode ?? "add_to_cart";
4646
4500
  const subscribeButtonText = source.subscribeButtonText ?? "Subscribe";
4647
- const products = shopDisplayedProducts(source);
4501
+ const products = decideShopDisplayedCatalogue(source);
4648
4502
  const dateContext = source.dateContext ?? resolveDateRuntimeContext(void 0);
4649
4503
  return {
4650
4504
  display: buildPassesMembershipsDisplay({
@@ -4917,16 +4771,17 @@ function shopCardListPresentation(source) {
4917
4771
  [key]: source[key]
4918
4772
  }), {});
4919
4773
  }
4920
- function shopDisplayedProducts(source) {
4774
+ function decideShopDisplayedCatalogue(source) {
4775
+ const passes = source.showPasses === false ? [] : source.passes ?? [];
4776
+ const memberships = source.showMemberships === false ? [] : source.memberships ?? [];
4921
4777
  return {
4922
- passes: source.showPasses === false ? [] : source.passes ?? [],
4923
- memberships: source.showMemberships === false ? [] : source.memberships ?? []
4778
+ passes,
4779
+ memberships,
4780
+ featured: [...passes, ...memberships].some(({ id }) => id === source.featured) ? source.featured ?? null : null
4924
4781
  };
4925
4782
  }
4926
4783
  function shopFeaturedProduct(source, products) {
4927
- const selectedId = source.featured;
4928
- const visible = [...products.passes, ...products.memberships].some(({ id }) => id === selectedId);
4929
- return source.lookSlots && source.itemRoles?.featured && selectedId && visible ? { featured: selectedId } : {};
4784
+ return source.lookSlots && source.itemRoles?.featured && products.featured !== null ? { featured: products.featured } : {};
4930
4785
  }
4931
4786
  /** Server and hydrated cards share the same decided role and featured marker. */
4932
4787
  function shopProductPresentation(hydration, productId, index, count) {
@@ -4938,4 +4793,4 @@ function shopProductPresentation(hydration, productId, index, count) {
4938
4793
  };
4939
4794
  }
4940
4795
  //#endregion
4941
- export { OFFERINGS_PREVIEW_DEFAULT_BUTTON_TEXT as $, resolveEventSelection as $t, parseStoredCommerceCartState as A, recurringScheduleProjectionSchema as At, giftingBlockRuntime as B, listingEventCardProps as Bt, membershipCardListContent as C, eventCombinedInteractiveIslandPropsCodec as Ct, buildPassCartItem as D, eventCalendarBlockRuntime as Dt, EMPTY_COMMERCE_CART_STATE as E, buildEventCalendarListingRender as Et, buildNewsletterFormInteractiveIslandProps as F, getEventRuntimeFiltersKey as Ft, formInteractiveIslandPropsCodec as G, MediaNodeServer as Gt, publicGiftingOffersResponseSchema as H, CardListLeadDate as Ht, newsletterBlockSubmissionMessage as I, normalizeCsvIds as It, displayButtonText as J, Grid as Jt, buildEventRegistrationDisplayFromScopedEvents as K, getCardOrientation as Kt, newsletterFormBlockRuntime as L, normalizeCsvString as Lt, reduceCommerceCart as M, eventListingBlockRuntime as Mt, publicProductsResponseSchema as N, eventListingInteractiveIslandPropsCodec as Nt, buildProductCartItem as O, eventCalendarInteractiveIslandPropsCodec as Ot, NEWSLETTER_SIGNUPS_PAUSED_MESSAGE as P, buildEventRuntimeFilters as Pt, OFFERINGS_PREVIEW_AUTHORABLE_SOURCE_KEYS as Q, formatEventPriceDisplay as Qt, newsletterFormInteractiveIslandPropsCodec as R, normalizeOptionalId as Rt, formatInterval as S, eventCombinedBlockRuntime as St, passCardListContent as T, buildEventCalendarListingDisplay as Tt, buildFormInteractiveIslandProps as U, resolveCardListSchedule as Ut, giftingInteractiveIslandPropsCodec as V, CardListContentPart as Vt, formBlockRuntime as W, selectCardListPresentation as Wt, eventRegistrationInteractiveIslandPropsCodec as X, formatEventPrice as Xt, eventRegistrationBlockRuntime as Y, buildEventListWeek as Yt, offeringNounForEvent as Z, formatEventPriceAmount as Zt, shopProductPresentation as _, bookingPanelHeading as _t, buildShopInteractiveIslandProps as a, planSiteChromePlacement as an, normalizeOfferingsPreviewContentForWrite as at, buildProductDetailDisplay as b, buildEventCombinedInteractiveIslandProps as bt, checkoutBlockRuntime as c, publicPassProductCollectionSchema as cn, resolveOfferingsPreviewGroupCta as ct, productDetailBlockRuntime as d, parseMailingListPlacementTargeting as dn, resolveOfferingsRenderInput as dt, headerChromeRuntimeContractSchema as en, OFFERINGS_PREVIEW_DEFAULT_EMPTY_MESSAGE as et, productDetailInteractiveIslandPropsCodec as f, parseMailingListVisitorSelection as fn, DEFAULT_BOOKING_BUTTON_TEXT as ft, shopInteractiveIslandPropsCodec as g, bookingEntryProgress as gt, shopBlockRuntime as h, parseWeeklyOpeningHours as hn, bookingEntry as ht, buildProductListInteractiveIslandProps as i, parseHeaderPositioning as in, isOfferingsPreviewSourceKey as it, productItemKey as j, buildEventListingInteractiveIslandProps as jt, deriveCommerceCheckoutState as k, projectRecurringSchedule as kt, checkoutInteractiveIslandPropsCodec as l, buildMailingListSignupBlockSourceRef as ln, resolveOfferingsPreviewGroups as lt, productListInteractiveIslandPropsCodec as m, sameMailingListPlacementTargeting as mn, bookingCardEntry as mt, buildCheckoutInteractiveIslandProps as n, resolveHeaderChromeRuntimeContract as nn, OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS as nt, cartBlockRuntime as o, splitSiteChromePlacementClasses as on, normalizeOfferingsPreviewItemLimit as ot, productListBlockRuntime as p, DEFAULT_MAILING_LIST_TARGETING as pn, bookingBarPlacement as pt, buildEventRegistrationInteractiveIslandProps as q, getContainerClass as qt, buildProductDetailInteractiveIslandProps as r, staticHeaderChromeRuntime as rn, buildOfferingsPreviewListing as rt, cartInteractiveIslandPropsCodec as s, publicMembershipProductCollectionSchema as sn, offeringsListingFor as st, buildCartInteractiveIslandProps as t, isHeaderScrollRuntimeEnabled as tn, OFFERINGS_PREVIEW_DEFAULT_FAILED_MESSAGE as tt, getShopDisplayForItems as u, assessMailingListTargeting as un, resolveOfferingsPreviewRunPath as ut, buildCartDisplay as v, formatBookingSchedulePresentation as vt, membershipClassesLabel as w, buildEventCalendarInteractiveIslandProps as wt, formatCommercePrice as x, buildEventCombinedListingDisplay as xt, buildProductCardDisplay as y, occurrenceContextSchema as yt, buildGiftingInteractiveIslandProps as z, catalogueEventCardProps as zt };
4796
+ export { OFFERINGS_PREVIEW_DEFAULT_BUTTON_TEXT as $, headerChromeRuntimeContractSchema as $t, parseStoredCommerceCartState as A, buildEventListingInteractiveIslandProps as At, giftingBlockRuntime as B, CardListContentPart as Bt, membershipCardListContent as C, buildEventCalendarInteractiveIslandProps as Ct, buildPassCartItem as D, eventCalendarInteractiveIslandPropsCodec as Dt, EMPTY_COMMERCE_CART_STATE as E, eventCalendarBlockRuntime as Et, buildNewsletterFormInteractiveIslandProps as F, normalizeCsvIds as Ft, formInteractiveIslandPropsCodec as G, getCardOrientation as Gt, publicGiftingOffersResponseSchema as H, resolveCardListSchedule as Ht, newsletterBlockSubmissionMessage as I, normalizeCsvString as It, displayButtonText as J, buildEventListWeek as Jt, buildEventRegistrationDisplayFromScopedEvents as K, getContainerClass as Kt, newsletterFormBlockRuntime as L, normalizeOptionalId as Lt, reduceCommerceCart as M, eventListingInteractiveIslandPropsCodec as Mt, publicProductsResponseSchema as N, buildEventRuntimeFilters as Nt, buildProductCartItem as O, projectRecurringSchedule as Ot, NEWSLETTER_SIGNUPS_PAUSED_MESSAGE as P, getEventRuntimeFiltersKey as Pt, OFFERINGS_PREVIEW_AUTHORABLE_SOURCE_KEYS as Q, resolveEventSelection as Qt, newsletterFormInteractiveIslandPropsCodec as R, catalogueEventCardProps as Rt, formatInterval as S, eventCombinedInteractiveIslandPropsCodec as St, passCardListContent as T, buildEventCalendarListingRender as Tt, buildFormInteractiveIslandProps as U, selectCardListPresentation as Ut, giftingInteractiveIslandPropsCodec as V, CardListLeadDate as Vt, formBlockRuntime as W, MediaNodeServer as Wt, eventRegistrationInteractiveIslandPropsCodec as X, formatEventPriceAmount as Xt, eventRegistrationBlockRuntime as Y, formatEventPrice as Yt, offeringNounForEvent as Z, formatEventPriceDisplay as Zt, shopProductPresentation as _, formatBookingSchedulePresentation as _t, buildShopInteractiveIslandProps as a, splitSiteChromePlacementClasses as an, normalizeOfferingsPreviewContentForWrite as at, buildProductDetailDisplay as b, buildEventCombinedListingDisplay as bt, checkoutBlockRuntime as c, buildMailingListSignupBlockSourceRef as cn, resolveOfferingsPreviewGroupCta as ct, productDetailBlockRuntime as d, parseMailingListVisitorSelection as dn, DEFAULT_BOOKING_BUTTON_TEXT as dt, isHeaderScrollRuntimeEnabled as en, OFFERINGS_PREVIEW_DEFAULT_EMPTY_MESSAGE as et, productDetailInteractiveIslandPropsCodec as f, DEFAULT_MAILING_LIST_TARGETING as fn, bookingBarPlacement as ft, shopInteractiveIslandPropsCodec as g, bookingPanelHeading as gt, shopBlockRuntime as h, bookingEntryProgress as ht, buildProductListInteractiveIslandProps as i, planSiteChromePlacement as in, isOfferingsPreviewSourceKey as it, productItemKey as j, eventListingBlockRuntime as jt, deriveCommerceCheckoutState as k, recurringScheduleProjectionSchema as kt, checkoutInteractiveIslandPropsCodec as l, assessMailingListTargeting as ln, resolveOfferingsPreviewGroups as lt, productListInteractiveIslandPropsCodec as m, bookingEntry as mt, buildCheckoutInteractiveIslandProps as n, staticHeaderChromeRuntime as nn, OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS as nt, cartBlockRuntime as o, publicMembershipProductCollectionSchema as on, normalizeOfferingsPreviewItemLimit as ot, productListBlockRuntime as p, sameMailingListPlacementTargeting as pn, bookingCardEntry as pt, buildEventRegistrationInteractiveIslandProps as q, Grid as qt, buildProductDetailInteractiveIslandProps as r, parseHeaderPositioning as rn, buildOfferingsPreviewListing as rt, cartInteractiveIslandPropsCodec as s, publicPassProductCollectionSchema as sn, offeringsListingFor as st, buildCartInteractiveIslandProps as t, resolveHeaderChromeRuntimeContract as tn, OFFERINGS_PREVIEW_DEFAULT_FAILED_MESSAGE as tt, getShopDisplayForItems as u, parseMailingListPlacementTargeting as un, resolveOfferingsRenderInput as ut, buildCartDisplay as v, occurrenceContextSchema as vt, membershipClassesLabel as w, buildEventCalendarListingDisplay as wt, formatCommercePrice as x, eventCombinedBlockRuntime as xt, buildProductCardDisplay as y, buildEventCombinedInteractiveIslandProps as yt, buildGiftingInteractiveIslandProps as z, listingEventCardProps as zt };
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { t as BlockApiProvider } from "./context-BLAvalAa.mjs";
2
+ import { t as BlockApiProvider } from "./context-BFwxgZpB.mjs";
3
3
  import { t as mountReactIsland } from "./reactMount-BGJVsHRb.mjs";
4
- import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-C5u8MbAA.mjs";
4
+ import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-DYBioANh.mjs";
5
5
  import "react";
6
6
  import { jsx } from "react/jsx-runtime";
7
7
  //#region src/rendering/islands/enhancers/shopShared.tsx