@riverbankcms/sdk 0.171.1 → 0.172.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 (210) hide show
  1. package/dist/_dts/{BlocksIslandsHydrator-D-6cWDDC.d.ts → BlocksIslandsHydrator-DtrzTJ77.d.ts} +1 -1
  2. package/dist/_dts/{Page-4jkUDm4D.d.ts → Page-DViYbakk.d.ts} +7 -7
  3. package/dist/_dts/{SdkPreviewMode-DEvzvovi.d.ts → SdkPreviewMode-D-5OeDbT.d.ts} +2 -2
  4. package/dist/_dts/{client-CXPH5esD.d.ts → client-DZBOzd3U.d.ts} +1 -2
  5. package/dist/_dts/{content-types-DsCr4-ny.d.ts → content-types-DS3DrYn_.d.ts} +3 -3
  6. package/dist/_dts/{contracts-BlmXM7xP.d.ts → contracts-C3QGPCUf.d.ts} +3 -3
  7. package/dist/_dts/{footerPageOutline-BA0DnxWU.d.ts → footerPageOutline-D9Q7VIul.d.ts} +6 -6
  8. package/dist/_dts/{generatePageMetadata-B7IRJCFG.d.ts → generatePageMetadata-R7NeFT1u.d.ts} +2 -2
  9. package/dist/_dts/{index-BQPJbOkU.d.ts → index-BnMavhoh.d.ts} +2 -2
  10. package/dist/_dts/{index-DScYSl03.d.ts → index-C0zjLMAW.d.ts} +49 -38
  11. package/dist/_dts/{index-BZ8-c4iQ.d.ts → index-CpOkfBt1.d.ts} +3 -3
  12. package/dist/_dts/{index-C9_OTCFQ.d.ts → index-Da4UMgbs.d.ts} +2 -2
  13. package/dist/_dts/{index-DlABXDte.d.ts → index-DkFV_1Bc.d.ts} +1 -1
  14. package/dist/_dts/{index-Sua-7CF1.d.ts → index-Dns7OHyl.d.ts} +1 -1
  15. package/dist/_dts/{index-B3gfKNI-.d.ts → index-MuMYjetm.d.ts} +4 -4
  16. package/dist/_dts/{loadContent-Dx4fW3Pa.d.ts → loadContent-DJmXHzfi.d.ts} +7 -7
  17. package/dist/_dts/{request-DUTkELQn.d.ts → request-wQ28JWbr.d.ts} +1021 -247
  18. package/dist/_dts/{resolveBlockData-Cze35i_N.d.ts → resolveBlockData-C-IP53u9.d.ts} +5 -5
  19. package/dist/_dts/{resolvePageContent-zf6-E-C3.d.ts → resolvePageContent-Cc4zqaEC.d.ts} +2 -2
  20. package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
  21. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  22. package/dist/_dts/sdk/src/client.d.ts +7 -7
  23. package/dist/_dts/sdk/src/config/index.d.ts +6 -6
  24. package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
  25. package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
  26. package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
  27. package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
  28. package/dist/_dts/sdk/src/data/types.d.ts +2 -2
  29. package/dist/_dts/sdk/src/index.d.ts +8 -8
  30. package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
  31. package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
  32. package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
  33. package/dist/_dts/sdk/src/next/index.d.ts +7 -7
  34. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  35. package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
  36. package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
  37. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  38. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  39. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  40. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  41. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  42. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
  43. package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
  44. package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
  45. package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
  46. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  47. package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
  48. package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
  49. package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
  50. package/dist/_dts/sdk/src/server.d.ts +5 -5
  51. package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
  52. package/dist/_dts/sdk/src/theme/index.d.ts +18 -1
  53. package/dist/_dts/{types-BCzfYDW2.d.ts → types-CpjyP5I4.d.ts} +7 -7
  54. package/dist/_dts/{types-JD-36x3P.d.ts → types-DrinAfeW.d.ts} +3 -3
  55. package/dist/_dts/{types-CPHk5Voq.d.ts → types-ZuZoGsZV.d.ts} +2 -2
  56. package/dist/_dts/{validation-0MyQlzWJ.d.ts → validation-CIZ_fP5l.d.ts} +4 -4
  57. package/dist/client/{BlocksIslandsHydrator-vTHQyBQF.mjs → BlocksIslandsHydrator-UFmQB1BE.mjs} +17 -17
  58. package/dist/client/{BookingMailingListNote-Blge9FJo.mjs → BookingMailingListNote-VjRYhx1c.mjs} +6 -6
  59. package/dist/client/{BookingPanelArrangement-wm6eeuin.mjs → BookingPanelArrangement-DpqnRo-t.mjs} +1 -1
  60. package/dist/client/{BookingQuestionFields-BlaCItmH.mjs → BookingQuestionFields-CzOT8ZWo.mjs} +4 -4
  61. package/dist/client/{CalendarNavigationChevron-DRH9qFny.mjs → CalendarNavigationChevron-CNckKZct.mjs} +7 -7
  62. package/dist/client/{CheckboxChoice-B65wFjqx.mjs → CheckboxChoice-b-PJLEXe.mjs} +1 -1
  63. package/dist/client/{DemoBookingPortalAccess-DPGZArG9.mjs → DemoBookingPortalAccess-CmZLVXOy.mjs} +6 -6
  64. package/dist/client/{EventCalendar.client-FGg6yCLH.mjs → EventCalendar.client-BU-SxLCn.mjs} +9 -9
  65. package/dist/client/{EventCombined.client-218_Gqgp.mjs → EventCombined.client-f28VltfY.mjs} +8 -8
  66. package/dist/client/{EventEmbeddedCheckoutStep-DKKRCuta.mjs → EventEmbeddedCheckoutStep-B18VbNS_.mjs} +1 -1
  67. package/dist/client/{EventItem-DKdZSW_R.mjs → EventItem-sKBofjiW.mjs} +40 -14
  68. package/dist/client/{EventListWeekNavigation-DZJ5qBhg.mjs → EventListWeekNavigation-IAcax47T.mjs} +1 -1
  69. package/dist/client/{EventListing.client-CCdsrqHc.mjs → EventListing.client-BEtnRvZr.mjs} +3 -3
  70. package/dist/client/{EventListing.view-BVoHnVZA.mjs → EventListing.view-BZ4l_rmT.mjs} +189 -73
  71. package/dist/client/{EventRegistrationPayment-BVxHCnxs.mjs → EventRegistrationPayment-BWb295cD.mjs} +9 -9
  72. package/dist/client/{LocationMapActions-QahdLtdE.mjs → LocationMapActions-Hsj2HC_1.mjs} +2 -2
  73. package/dist/client/{MapDrawingSvg-Dy6UMuIw.mjs → MapDrawingSvg-C7E7Lyfa.mjs} +1 -1
  74. package/dist/client/{Page-CT4HaEMr.mjs → Page-Ds1s3DuC.mjs} +1426 -486
  75. package/dist/client/{ProtectedSubmitButton-AOUzjDK9.mjs → ProtectedSubmitButton-C-ql101B.mjs} +1 -1
  76. package/dist/client/{StepIndicator-DRJy4eU3.mjs → StepIndicator-CSCyAaKY.mjs} +6 -6
  77. package/dist/client/{TabBarFragment-CsAufYwT.mjs → TabBarFragment-BqfRLojo.mjs} +1 -1
  78. package/dist/client/{ThemedButton-BMDHwnM6.mjs → ThemedButton-DuaYtnvG.mjs} +1 -1
  79. package/dist/client/{accessibleSurfaces-BnyVRqdU.mjs → accessibleSurfaces-OsAseM7H.mjs} +36 -18
  80. package/dist/client/{accordion-BOApxi9U.mjs → accordion-DgwFZJSx.mjs} +1 -1
  81. package/dist/client/{booking-form.client-DDf8Lmo5.mjs → booking-form.client-CKY9oksp.mjs} +33 -29
  82. package/dist/client/{bookingForm-DWrgG-Xx.mjs → bookingForm-CsHhcdSF.mjs} +4 -4
  83. package/dist/client/bookings.mjs +5 -5
  84. package/dist/client/{boxStyleClassNames-7MVCNWgc.mjs → boxStyleClassNames-B1Z_TGAe.mjs} +1 -1
  85. package/dist/client/{carousel-DeI76SEP.mjs → carousel-0sw2Kc3a.mjs} +2 -2
  86. package/dist/client/{carousel.client-YF4mUK5t.mjs → carousel.client-h65clfUO.mjs} +1 -1
  87. package/dist/client/{cart-D_uxULCO.mjs → cart-CPfvMDGJ.mjs} +3 -3
  88. package/dist/client/{cart.client-BxSMse88.mjs → cart.client-BJBPUTmg.mjs} +1 -1
  89. package/dist/client/{checkout-DIbh4g5e.mjs → checkout-DU4JFjGT.mjs} +3 -3
  90. package/dist/client/{checkout.client-x4Lkw8-E.mjs → checkout.client-BbNCO4xa.mjs} +1 -1
  91. package/dist/client/{checkoutUrls-DqN3L-kl.mjs → checkoutUrls-BQ3OlWlM.mjs} +1 -1
  92. package/dist/client/client.mjs +135 -4
  93. package/dist/client/{context-Dzjv2CpA.mjs → context-xNC1Cyjw.mjs} +14 -1
  94. package/dist/client/{cta-CP9l112u.mjs → cta-CNVQHLKs.mjs} +53 -11
  95. package/dist/client/{dateFormatting-BfurxGwg.mjs → dateFormatting-B6ea-egy.mjs} +1 -1
  96. package/dist/client/{demoPortalMagicLink-D0dcPsRE.mjs → demoPortalMagicLink-BhjGxhX3.mjs} +1 -1
  97. package/dist/client/{display-ChgDe9Da.mjs → display-B5DfNb6A.mjs} +1869 -333
  98. package/dist/client/{enhanceHeaderSection-BEjg_h_6.mjs → enhanceHeaderSection-BFcHLuqk.mjs} +139 -16
  99. package/dist/client/{event-details.client-COmbQ3mc.mjs → event-details.client-WHT5GLn2.mjs} +1 -1
  100. package/dist/client/{event-registration.client-BvQG3qEY.mjs → event-registration.client-CmnRKELC.mjs} +11 -11
  101. package/dist/client/{eventCalendar-DiitbUpV.mjs → eventCalendar-2NbdCyov.mjs} +4 -4
  102. package/dist/client/{eventCombined-Da9Z8KDq.mjs → eventCombined-D1lH1n2T.mjs} +4 -4
  103. package/dist/client/{eventDetails-Cf-kg7d6.mjs → eventDetails-BHvnF2Tw.mjs} +2 -2
  104. package/dist/client/{eventListing-xwXgVp7a.mjs → eventListing-EhSDk4UL.mjs} +4 -4
  105. package/dist/client/{eventRegistration-hlFYlgTA.mjs → eventRegistration-z_0jN_KS.mjs} +4 -4
  106. package/dist/client/{form-ERv_X_oZ.mjs → form-BfChzSkS.mjs} +3 -3
  107. package/dist/client/{form.client-Cz24FYNj.mjs → form.client-D1zehtPk.mjs} +4 -4
  108. package/dist/client/{form.parts-DeaH4kIe.mjs → form.parts-rMDlUQIv.mjs} +3 -3
  109. package/dist/client/{formatDate-Cjouxh4Y.mjs → formatDate-ymSVT9Y5.mjs} +1 -1
  110. package/dist/client/gifting/client.mjs +3 -3
  111. package/dist/client/{headerSection-CJvt0ZP4.mjs → headerSection-BX9bQ84k.mjs} +2 -2
  112. package/dist/client/{newsletter-form.client-WuGDEzdD.mjs → newsletter-form.client-DMbuJCtJ.mjs} +5 -5
  113. package/dist/client/{newsletter-form.parts-DhnW6tdB.mjs → newsletter-form.parts-BxrVsoI0.mjs} +2 -2
  114. package/dist/client/{newsletterForm-DxG7NV8U.mjs → newsletterForm-B_I3FJFS.mjs} +3 -3
  115. package/dist/client/{noop-poI1m2yW.mjs → noop-CamIX2yK.mjs} +17 -1
  116. package/dist/client/portal/client.mjs +231 -117
  117. package/dist/client/{product-detail.client-DsSfbmdV.mjs → product-detail.client-qxuiYCof.mjs} +1 -1
  118. package/dist/client/{product-list.client-Byzow88i.mjs → product-list.client-CDL-jihv.mjs} +1 -1
  119. package/dist/client/{productDetail-iXkmQpxG.mjs → productDetail-B97m0uZy.mjs} +3 -3
  120. package/dist/client/{productList-HoFGQXFl.mjs → productList-DE4vSSG_.mjs} +3 -3
  121. package/dist/client/{propsDecoder-CH2-LJME.mjs → propsDecoder-BTde6Syh.mjs} +3 -3
  122. package/dist/client/{registry.server-ed20Q7bV.mjs → registry.server-Cn8XjRte.mjs} +1458 -1178
  123. package/dist/client/rendering/client.mjs +27 -27
  124. package/dist/client/rendering/islands.mjs +1 -1
  125. package/dist/client/rendering.mjs +22 -16
  126. package/dist/client/{richText-coerce-CtoGLZ_e.mjs → richText-coerce-Bcl3vTb4.mjs} +1 -1
  127. package/dist/client/{routeIslandApiConfig-CBUO-xuz.mjs → routeIslandApiConfig-BjRoLoMD.mjs} +1 -1
  128. package/dist/client/{runtimeResponse-3brbt2Jq.mjs → runtimeResponse-B-lrAGhX.mjs} +1 -1
  129. package/dist/client/runtimeResponse-CPcA8xSm.mjs +3 -0
  130. package/dist/client/{shop-DXyeSNgi.mjs → shop-BC4H0oYT.mjs} +3 -3
  131. package/dist/client/{shop-commerce--klkHNzu.mjs → shop-commerce-BsY7a71m.mjs} +12 -12
  132. package/dist/client/{shop-commerce-store-BdpIWdc4.mjs → shop-commerce-store-BZ5j90HD.mjs} +1 -1
  133. package/dist/client/{shop.client-Sv7QVDmj.mjs → shop.client-WgGVGelc.mjs} +12 -12
  134. package/dist/client/{shop.interactive-C0IjiWOs.mjs → shop.interactive-Bb67gPLL.mjs} +187 -81
  135. package/dist/client/{shopShared-Jt4TzcAG.mjs → shopShared-BE6TEk2A.mjs} +2 -2
  136. package/dist/client/spam-protection.mjs +1 -1
  137. package/dist/client/{timetableModel-BxbnEJCi.mjs → timetableModel-Bbz_ECL5.mjs} +10 -10
  138. package/dist/client/{types-B0hJldSt.mjs → types-DjWUR_O6.mjs} +8 -2
  139. package/dist/client/{useAvailableSlots-ByHedoBi.mjs → useAvailableSlots-CdP14E_b.mjs} +2 -2
  140. package/dist/client/{useDiscountApply-dToQs9oY.mjs → useDiscountApply-DvOSso2l.mjs} +1 -1
  141. package/dist/client/{useDiscountCodeUi-C_aa_H69.mjs → useDiscountCodeUi-B4fRd2jy.mjs} +1 -1
  142. package/dist/client/{useEventPagination--MFZBoJt.mjs → useEventPagination-M3jC8lgP.mjs} +6 -6
  143. package/dist/client/{view-DhEwiTJG.mjs → view-B0TFnP4y.mjs} +198 -60
  144. package/dist/client/{view-C_brMDU2.mjs → view-DNNNbnNj.mjs} +3 -3
  145. package/dist/preview-next/client/{EventEmbeddedCheckoutStep-CKe4cjZ4.mjs → EventEmbeddedCheckoutStep-aRJjq4x8.mjs} +1 -1
  146. package/dist/preview-next/client/{LocationPickerEnvironment-OwAxA2C0.mjs → LocationPickerEnvironment-D4F_5rnr.mjs} +1 -1
  147. package/dist/preview-next/client/{MapLibreEditMap-CaUOTCSh.mjs → MapLibreEditMap-BKMNxSEJ.mjs} +2 -2
  148. package/dist/preview-next/client/{PageSectionToolbar-Dfi8Y3AI.mjs → PageSectionToolbar-D59tHj_L.mjs} +25 -20
  149. package/dist/preview-next/client/{PreviewEditorSidebar-DJlX4sXP.mjs → PreviewEditorSidebar-CjOIZlUk.mjs} +100 -70
  150. package/dist/preview-next/client/{PreviewEditorUI-FVAibBlC.mjs → PreviewEditorUI--kS9Cwsc.mjs} +5 -5
  151. package/dist/preview-next/client/PreviewLayoutContext-Dy0LwcHc.mjs +26 -0
  152. package/dist/preview-next/client/PreviewQueryProvider-BgIucg_5.mjs +21 -0
  153. package/dist/preview-next/client/{PreviewShell-9eAon7Z8.mjs → PreviewShell-Bi8-rclb.mjs} +311 -62
  154. package/dist/preview-next/client/{SdkPreviewModeRuntime-Byf-KW1x.mjs → SdkPreviewModeRuntime-CWTUw-3L.mjs} +301 -125
  155. package/dist/preview-next/client/{SiteChromeCustomizeButton-eU-zMftO.mjs → SiteChromeCustomizeButton-CrgS3I8d.mjs} +584 -286
  156. package/dist/preview-next/client/{ThemedButton-CKYjeU_M.mjs → ThemedButton-CVYz7h68.mjs} +8 -2
  157. package/dist/preview-next/client/{lucide-react-X0DjcFij.mjs → lucide-react-BCNn8dEQ.mjs} +1 -1
  158. package/dist/preview-next/client/{previewAssistantSlot-3FZrzbK8.mjs → previewAssistantSlot-Caofnr1Z.mjs} +7190 -4065
  159. package/dist/preview-next/client/{previewChromeRoot-C4gyNQXE.mjs → previewChromeRoot-CbAI_jSH.mjs} +1 -1
  160. package/dist/preview-next/client/runtime.mjs +5 -4
  161. package/dist/preview-next/client/sdk-runtime-DY65_hLk.mjs +6 -0
  162. package/dist/preview-next/client/{useAutosaveStatus-OIMkhbkP.mjs → useAutosaveStatus-CakNU3lp.mjs} +2 -2
  163. package/dist/preview-next/client/{useOpenBlockForSetup-BNG9P9sM.mjs → useOpenBlockForSetup-CCEMkosU.mjs} +20 -8
  164. package/dist/preview-next/container-responsive.css +215 -4
  165. package/dist/preview-next/keepAlive.mjs +1 -1
  166. package/dist/preview-next/middleware.mjs +1 -1
  167. package/dist/preview-next/{route-contract-BLY4ycq6.mjs → route-contract-DsKDQoVW.mjs} +131 -0
  168. package/dist/server/{Block.shared-BC3jPIP4.mjs → Block.shared-D7Qy9F4a.mjs} +4 -4
  169. package/dist/server/{ThemeScopeCore-B7Ey6AWT.mjs → ThemeScopeCore-D1NTXZdX.mjs} +14 -9
  170. package/dist/server/{accessibleSurfaces-BxsHs-jf.mjs → accessibleSurfaces-Dbd2__Le.mjs} +12 -11
  171. package/dist/server/{bindings-xQ9v3zrn.mjs → bindings-Bp6OnR3n.mjs} +109 -20
  172. package/dist/server/{block-kinds-DkzOr19P.mjs → block-kinds-BCY9z3oB.mjs} +1 -0
  173. package/dist/server/{client-DCwLR0kQ.mjs → client-dROAfMRa.mjs} +133 -2
  174. package/dist/server/config-template-validation.mjs +3 -0
  175. package/dist/server/config-validation.mjs +1 -1
  176. package/dist/server/config.mjs +2 -2
  177. package/dist/server/data/resolveBlockData.mjs +1 -1
  178. package/dist/server/index.mjs +3 -3
  179. package/dist/server/{loadContent-C4I3ltU_.mjs → loadContent-zOIrtqz-.mjs} +19 -14
  180. package/dist/server/{loadPage-COvxWN0r.mjs → loadPage-vwFiq1Rk.mjs} +2 -2
  181. package/dist/server/next.mjs +6 -6
  182. package/dist/server/{opaqueSurface-QiUjZmEV.mjs → opaqueSurface-COEKXVwk.mjs} +2 -2
  183. package/dist/server/{overrideResolution-BqQg6Iws.mjs → overrideResolution-DjboggbB.mjs} +1 -1
  184. package/dist/server/page-converter.mjs +1 -1
  185. package/dist/server/{pageRenderPlan-CVCGTj5S.mjs → pageRenderPlan-BR4t1rOw.mjs} +954 -337
  186. package/dist/server/{pageRuntimeSupport-C7Be9suN.mjs → pageRuntimeSupport-BKo6XVK-.mjs} +3 -2
  187. package/dist/server/{pageShared-H_bSBPLd.mjs → pageShared-BJjptSGp.mjs} +1039 -853
  188. package/dist/server/{parseThemeForPersistence-Bk0o95m6.mjs → parseThemeForPersistence-B18KDEue.mjs} +2 -2
  189. package/dist/server/{prebuild-HQNOeCs9.mjs → prebuild-CntSkZQI.mjs} +1 -1
  190. package/dist/server/prebuild.mjs +1 -1
  191. package/dist/server/{prefetchBlockData-CbRsnhta.mjs → prefetchBlockData-BM9Ds0OQ.mjs} +2 -2
  192. package/dist/server/{registry-CaeRTf4E.mjs → registry-wYH0LH5f.mjs} +7257 -4959
  193. package/dist/server/rendering/components/pageShared.mjs +1 -1
  194. package/dist/server/rendering/helpers/loadPage.mjs +1 -1
  195. package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
  196. package/dist/server/rendering/server.mjs +3 -3
  197. package/dist/server/rendering.mjs +7 -7
  198. package/dist/server/{resolveBlockData-CUMjWbXQ.mjs → resolveBlockData-Bu_p4HxZ.mjs} +2 -2
  199. package/dist/server/{resolveButtonColourStates-euZnRMIu.mjs → resolveButtonColourStates-CCPUY9Xh.mjs} +32 -9
  200. package/dist/server/{schema-CxBsE9Dv.mjs → schema-BFOqYIMQ.mjs} +2 -1
  201. package/dist/server/server.mjs +3 -3
  202. package/dist/server/theme-bridge.mjs +2 -2
  203. package/dist/server/theme.mjs +2 -2
  204. package/dist/server/{validation-CvmhnkDr.mjs → validation-DAQdPDku.mjs} +4 -4
  205. package/dist/server/{version-Clp2evCf.mjs → version-DAB0O3yx.mjs} +1 -1
  206. package/dist/styles/index.css +1260 -15
  207. package/package.json +1 -1
  208. package/dist/client/runtimeResponse-CTarP5K6.mjs +0 -3
  209. package/dist/preview-next/client/PreviewQueryProvider-BC0V7iAR.mjs +0 -43
  210. package/dist/preview-next/client/sdk-runtime-DtyRbz4E.mjs +0 -5
@@ -1,12 +1,12 @@
1
1
  "use client";
2
- import { Ht as EventQuickFacts, Lt as CardListContentPart, Qt as formatEventPriceDisplay, Vt as MediaNodeServer, Xt as formatEventPrice, Zt as formatEventPriceAmount, it as formatBookingSchedulePresentation, ot as closedRunCopy } from "./shop.interactive-C0IjiWOs.mjs";
3
- import { Bi as resolveEventRegistrationScopedEvents, Cn as ImagePresets, Hn as formatEventCompactDateRail, Kn as formatEventRunDates, Ln as eventDateOptions, Ss as publicEventPricingType, Un as formatEventDateParts, as as orderedLiveRunSessions, bs as publicEventPricingDisplay, gs as formatBookingPriceDisplay, nr as formatTotalCapacity, ns as CANCELLED_SESSION_STATUS, os as resolveWholeSeriesBookingPhase, qi as listLookSlot, vs as isPublicEventPricingOptionDisplayable, ys as publicEventPricingCurrency } from "./display-ChgDe9Da.mjs";
4
- import { Ft as formatDate, Gt as toScheduledBookingDateTime, It as formatDateRange, Jt as compareLocalScheduleDates, Rt as formatDateTimeRange, Xt as getBookingLocalDateKey, Zt as getLocalScheduleDate, en as resolveBookingBusinessTimeZone, in as toUtcIsoDateTimeString, ln as formatCurrencyAmount, nn as toBookingTimeZone } from "./noop-poI1m2yW.mjs";
2
+ import { Gt as EventQuickFacts, Wt as MediaNodeServer, ct as closedRunCopy, nn as formatEventPriceAmount, ot as formatBookingSchedulePresentation, rn as formatEventPriceDisplay, tn as formatEventPrice, zt as CardListContentPart } from "./shop.interactive-Bb67gPLL.mjs";
3
+ import { Cn as ImagePresets, Es as publicEventPricingDisplay, Hn as formatEventCompactDateRail, Ji as listLookSlot, Kn as formatEventRunDates, Ln as eventDateOptions, Os as publicEventPricingType, Ss as formatBookingPriceDisplay, Ts as publicEventPricingCurrency, Un as formatEventDateParts, Vi as resolveEventRegistrationScopedEvents, Yn as formatTime, ar as getEventAvailabilityStatus, cs as nextLiveRunSessionStartMs, er as canJoinEventWaitlistOnAnyMode, ir as getEventAvailability, ls as orderedLiveRunSessions, os as CANCELLED_SESSION_STATUS, qn as formatEventTimeRange, rr as formatTotalCapacity, sr as isEventFull, tr as formatEventRemainingPlaces, us as resolveWholeSeriesBookingPhase, ws as isPublicEventPricingOptionDisplayable } from "./display-B5DfNb6A.mjs";
4
+ import { It as formatDate, Kt as toScheduledBookingDateTime, Lt as formatDateRange, Qt as getLocalScheduleDate, Yt as compareLocalScheduleDates, Zt as getBookingLocalDateKey, an as toUtcIsoDateTimeString, rn as toBookingTimeZone, tn as resolveBookingBusinessTimeZone, un as formatCurrencyAmount, zt as formatDateTimeRange } from "./noop-CamIX2yK.mjs";
5
5
  import { N as assertNever } from "./creditProducts-BTRX4edc.mjs";
6
6
  import { t as formatEventDuration } from "./duration-Q6_QNgiv.mjs";
7
- import { t as LocationMapActions } from "./LocationMapActions-QahdLtdE.mjs";
8
- import { r as resolveEventLinkProps, t as resolveEventCardBooking } from "./cta-CP9l112u.mjs";
9
- import { a as eventVenuePlace, n as MapDrawingSvg } from "./MapDrawingSvg-Dy6UMuIw.mjs";
7
+ import { t as LocationMapActions } from "./LocationMapActions-Hsj2HC_1.mjs";
8
+ import { r as resolveEventLinkProps, t as resolveEventCardBooking } from "./cta-CNVQHLKs.mjs";
9
+ import { a as eventVenuePlace, n as MapDrawingSvg } from "./MapDrawingSvg-C7E7Lyfa.mjs";
10
10
  import { t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-4o4_hl34.mjs";
11
11
  import "react";
12
12
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -54,6 +54,53 @@ function selectEventDetailsCandidate(events, requested, nowIso) {
54
54
  } : null;
55
55
  }
56
56
  //#endregion
57
+ //#region ../blocks/src/system/runtime/nodes/events/domain/bookability.ts
58
+ /**
59
+ * Whether a public event has a registration path a visitor can take.
60
+ *
61
+ * Lifecycle admission comes from the public booking-availability contract;
62
+ * capacity comes from the shared event-domain helpers so uncapped, fallback,
63
+ * and hybrid attendance-mode cases agree with the registration runtime.
64
+ */
65
+ function isBookableEvent(event) {
66
+ if (!event.requiresRegistration) return false;
67
+ if (event.bookingAvailability.kind !== "open") return false;
68
+ return !isEventFull(event) || canJoinEventWaitlistOnAnyMode(event);
69
+ }
70
+ /**
71
+ * Select the next occurrence-targeted events for a quick-book rail.
72
+ *
73
+ * The API normally returns valid timestamps, but malformed values sort after
74
+ * valid events so one bad record cannot displace an otherwise useful rail.
75
+ * Sorting before deduplication means a duplicate occurrence keeps its earliest
76
+ * deterministic representation.
77
+ */
78
+ function selectQuickDateEvents(events) {
79
+ return orderedUniqueEventOccurrences(events.filter((event) => event.bookingScope !== "whole_series" && isBookableEvent(event))).slice(0, 4);
80
+ }
81
+ /** Shared ordering and identity selection, independent of booking capacity. */
82
+ function orderedUniqueEventOccurrences(events) {
83
+ const sorted = [...events].sort(compareQuickDateEvents);
84
+ return sorted.filter((event, index) => sorted.findIndex((candidate) => candidate.occurrenceId === event.occurrenceId) === index);
85
+ }
86
+ function formatEventQuickDate(event, style = "legacy") {
87
+ const options = eventDateOptions(event);
88
+ const dateRail = formatEventCompactDateRail(event.startsAt, options, style === "site" ? "as-written" : "capitals");
89
+ return {
90
+ dateTime: event.startsAt,
91
+ label: `${dateRail.weekday} ${dateRail.day} ${dateRail.month}, ${formatTime(event.startsAt, options)}`
92
+ };
93
+ }
94
+ function compareQuickDateEvents(left, right) {
95
+ const startsAtOrder = compareTimestamp(left.startsAt, right.startsAt);
96
+ return startsAtOrder === 0 ? left.occurrenceId.localeCompare(right.occurrenceId) : startsAtOrder;
97
+ }
98
+ function compareTimestamp(left, right) {
99
+ const leftTime = Date.parse(left);
100
+ const rightTime = Date.parse(right);
101
+ return (Number.isNaN(leftTime) ? Number.POSITIVE_INFINITY : leftTime) - (Number.isNaN(rightTime) ? Number.POSITIVE_INFINITY : rightTime);
102
+ }
103
+ //#endregion
57
104
  //#region ../blocks/src/system/runtime/nodes/events/shared/DateTimeTile.tsx
58
105
  /**
59
106
  * Shared tile content for displaying date and time range.
@@ -95,6 +142,7 @@ function derivePreviewRunSchedule(event) {
95
142
  first,
96
143
  last,
97
144
  sessionCount: sessions.length,
145
+ sessions,
98
146
  authoredSummary
99
147
  };
100
148
  return {
@@ -115,10 +163,47 @@ function isValidOccurrence(value) {
115
163
  return Number.isFinite(Date.parse(value.startsAt)) && Number.isFinite(Date.parse(value.endsAt));
116
164
  }
117
165
  //#endregion
166
+ //#region ../blocks/src/system/runtime/nodes/events/shared/offeringNextDates.ts
167
+ /** A bounded display sample only: capacity and booking admission belong to the booking destination. */
168
+ function offeringDatesBySeries(events, now, booking) {
169
+ const groups = events.reduce((result, event) => new Map([...result, [event.seriesId, [...result.get(event.seriesId) ?? [], event]]]), /* @__PURE__ */ new Map());
170
+ return new Map([...groups].map(([seriesId, occurrences]) => [seriesId, orderedUniqueEventOccurrences(occurrences.filter((event) => event.bookingScope !== "whole_series" && Date.parse(event.startsAt) >= now.getTime())).slice(0, 3).map((event) => offeringDateRow(event, event, occurrencePlaces(event), booking))]));
171
+ }
172
+ /** Whole-series sessions share the run's capacity, so every row shows the run's decided availability. */
173
+ function offeringRunDates(event, now, places) {
174
+ if (event.bookingScope !== "whole_series") return [];
175
+ const nextStart = nextLiveRunSessionStartMs(event.run.sessions, now);
176
+ return nextStart === null ? [] : orderedLiveRunSessions(event.run.sessions).filter((session) => Date.parse(session.startsAt) >= nextStart).slice(0, 3).map((session) => offeringDateRow(session, event, places));
177
+ }
178
+ function offeringDateRow(session, event, places, booking) {
179
+ const options = eventDateOptions({
180
+ ...event,
181
+ timeZone: session.timeZone
182
+ });
183
+ const date = formatEventCompactDateRail(session.startsAt, options, "as-written");
184
+ const label = `${date.weekday} ${date.day} ${date.month}, ${formatTime(session.startsAt, options)}`;
185
+ const bookingLink = booking?.(event, label) ?? null;
186
+ return {
187
+ startsAt: session.startsAt,
188
+ label,
189
+ ...bookingLink ? { booking: bookingLink } : {},
190
+ places
191
+ };
192
+ }
193
+ /** A single occurrence's row is its own booking, so it reports that occurrence's capacity. */
194
+ function occurrencePlaces(event) {
195
+ const capacity = getEventAvailability(event);
196
+ const status = getEventAvailabilityStatus(event);
197
+ return capacity.available === null ? null : {
198
+ label: capacity.isFull ? "Sold out" : `${capacity.available} place${capacity.available === 1 ? "" : "s"} left`,
199
+ status: capacity.isFull ? "full" : status.status === "filling" ? "low" : "available"
200
+ };
201
+ }
202
+ //#endregion
118
203
  //#region ../blocks/src/system/runtime/nodes/events/shared/eventCardListContent.ts
119
204
  /** Live offering data only; editorial cards never acquire booking fields. */
120
205
  function eventCardListContent(event, context, buttonText) {
121
- const { content, external } = cardProjectionBase(event, buttonText, context.kind);
206
+ const { content, external } = cardProjectionBase(event, buttonText, context);
122
207
  switch (context.kind) {
123
208
  case "event-details": return {
124
209
  ...content,
@@ -133,29 +218,44 @@ function eventCardListContent(event, context, buttonText) {
133
218
  chips: offeringTypeChips(event, context.typeLabel),
134
219
  leadDate: offeringLeadDate(event, context.nextStartMs),
135
220
  newTabHint: external,
136
- ...offeringSchedule(event, context.now)
221
+ ...offeringSchedule(event, context.now),
222
+ ...event.bookingScope === "whole_series" ? { dates: offeringRunDates(event, context.now, content.availability) } : {}
137
223
  };
138
224
  default: return assertNever(context);
139
225
  }
140
226
  }
141
227
  function cardProjectionBase(event, buttonText, context) {
142
- const offering = context !== "event-details";
143
- const { cta, availability: places } = resolveEventCardBooking(event, context === "catalogue" ? "series" : "occurrence", offering && event.destination.kind === "external" ? void 0 : buttonText);
228
+ const offering = context.kind !== "event-details";
229
+ const { cta, availability: places, closed } = cardBooking(event, buttonText, context);
230
+ const titleLink = resolveEventLinkProps(event);
144
231
  return {
145
232
  external: cta.external,
146
233
  content: {
147
234
  id: event.occurrenceId || event.id,
148
235
  title: event.title,
149
- titleLink: resolveEventLinkProps(event),
236
+ ...titleLink.href ? { titleLink } : {},
150
237
  quickFacts: event.facts,
151
238
  text: event.presentation?.summary ?? event.description,
152
239
  media: event.presentation?.image,
153
240
  facts: offeringFacts(event, places?.label, offering),
154
241
  availability: places,
155
- action: cardAction(cta)
242
+ action: cardAction(cta),
243
+ bookingClosed: closed ? cta.label : null
156
244
  }
157
245
  };
158
246
  }
247
+ /** Offering cards carry the render clock; an event's own details show its projected booking state. */
248
+ function cardBooking(event, buttonText, context) {
249
+ switch (context.kind) {
250
+ case "event-details": return resolveEventCardBooking(event, "occurrence", buttonText, { now: null });
251
+ case "catalogue":
252
+ case "offering": return resolveEventCardBooking(event, context.kind === "catalogue" ? "series" : "occurrence", event.destination.kind === "external" ? void 0 : buttonText, {
253
+ now: context.now,
254
+ count: context.count
255
+ });
256
+ default: return assertNever(context);
257
+ }
258
+ }
159
259
  function offeringLeadDate(event, startMs) {
160
260
  if (startMs === null || !Number.isFinite(startMs)) return null;
161
261
  const startsAt = new Date(startMs).toISOString();
@@ -222,7 +322,12 @@ function scheduleLine(summary, event, now) {
222
322
  zone
223
323
  }) : date(summary.occurrence.startsAt);
224
324
  case "multi-day-span": return dates(summary.occurrence.startsAt, summary.occurrence.endsAt);
225
- case "scheduled-run": return `${dates(summary.first.startsAt, summary.last.startsAt, "session")} · ${summary.authoredSummary?.text ?? `${summary.sessionCount} dates`}`;
325
+ case "scheduled-run": {
326
+ const range = dates(summary.first.startsAt, summary.last.startsAt, "session");
327
+ if (summary.authoredSummary) return `${range} · ${summary.authoredSummary.text}`;
328
+ const clock = regularSessionClock(summary.sessions, event);
329
+ return clock ? `${summary.sessionCount} ${clock.weekday}s, ${range}, ${clock.time}` : `${range} · ${summary.sessionCount} dates · Times vary`;
330
+ }
226
331
  }
227
332
  }
228
333
  function offeringFacts(event, places, offering) {
@@ -256,6 +361,31 @@ function cardAction(cta) {
256
361
  external: cta.external
257
362
  };
258
363
  }
364
+ /** Compare each session in its own local zone, so regular clocks survive DST changes. Null when sessions differ. */
365
+ function regularSessionClock(sessions, event) {
366
+ const clocks = sessions.map((session) => {
367
+ const context = {
368
+ ...eventDateOptions({
369
+ ...event,
370
+ timeZone: session.timeZone
371
+ }),
372
+ zone: "omit"
373
+ };
374
+ return {
375
+ weekday: formatDate({
376
+ kind: "instant",
377
+ value: toUtcIsoDateTimeString(session.startsAt)
378
+ }, context, {
379
+ date: "omit",
380
+ weekday: "long",
381
+ year: "omit"
382
+ }),
383
+ time: formatEventTimeRange(session, context)
384
+ };
385
+ });
386
+ const first = clocks[0];
387
+ return first && clocks.every((clock) => clock.weekday === first.weekday && clock.time === first.time) ? first : null;
388
+ }
259
389
  //#endregion
260
390
  //#region ../blocks/src/system/runtime/nodes/event-details/headerContent.ts
261
391
  /** Project selected live data; booking decisions stay with the existing event owners. */
@@ -379,6 +509,53 @@ const eventHeaderSlotParents = {
379
509
  "item-media": "frame"
380
510
  };
381
511
  //#endregion
512
+ //#region ../blocks/src/system/customize/lookParts.ts
513
+ const lookParts = {
514
+ "block.hero": [{
515
+ part: "more photos",
516
+ fields: ["morePhotos"],
517
+ shownIn: ["photo-trio"]
518
+ }],
519
+ "block.cta-full": [{
520
+ part: "figure",
521
+ fields: ["figure", "figureNote"],
522
+ shownIn: ["figure"]
523
+ }],
524
+ "block.location-map": [{
525
+ part: "entrance photo",
526
+ fields: ["entrancePhoto"],
527
+ shownIn: ["photo-and-details"]
528
+ }],
529
+ "block.feature-cards": [{
530
+ part: "eyebrow",
531
+ fields: ["eyebrow"],
532
+ shownIn: [
533
+ "lead-support",
534
+ "index",
535
+ "sequence",
536
+ "slides",
537
+ "track"
538
+ ]
539
+ }],
540
+ "block.event-details": [{
541
+ part: "title",
542
+ fields: ["showTitle"],
543
+ shownIn: ["details-panel"]
544
+ }, {
545
+ part: "description",
546
+ fields: ["showDescription"],
547
+ shownIn: ["details-panel"]
548
+ }]
549
+ };
550
+ /** Fields the arrangement leaves out. Nothing on an older style, where no arrangement Look shows the block. */
551
+ function fieldsNotShownIn(blockKind, arrangement) {
552
+ if (arrangement === null) return [];
553
+ return (lookParts[blockKind] ?? []).flatMap((part) => part.shownIn.includes(arrangement) ? [] : part.fields);
554
+ }
555
+ function lookPartShown(blockKind, field, arrangement) {
556
+ return !fieldsNotShownIn(blockKind, arrangement).includes(field);
557
+ }
558
+ //#endregion
382
559
  //#region ../blocks/src/system/runtime/nodes/events/shared/eventProductEligibility.ts
383
560
  function isCategoryEligible(eligibleCategoryIds, eventCategoryId) {
384
561
  const categories = eligibleCategoryIds ?? [];
@@ -572,48 +749,6 @@ function resolveEventDetailsPresentation(input) {
572
749
  };
573
750
  }
574
751
  //#endregion
575
- //#region ../blocks/src/system/customize/lookParts.ts
576
- const lookParts = {
577
- "block.cta-full": [{
578
- part: "figure",
579
- fields: ["figure", "figureNote"],
580
- shownIn: ["figure"]
581
- }],
582
- "block.location-map": [{
583
- part: "entrance photo",
584
- fields: ["entrancePhoto"],
585
- shownIn: ["photo-and-details"]
586
- }],
587
- "block.feature-cards": [{
588
- part: "eyebrow",
589
- fields: ["eyebrow"],
590
- shownIn: [
591
- "lead-support",
592
- "index",
593
- "sequence",
594
- "slides",
595
- "track"
596
- ]
597
- }],
598
- "block.event-details": [{
599
- part: "title",
600
- fields: ["showTitle"],
601
- shownIn: ["details-panel"]
602
- }, {
603
- part: "description",
604
- fields: ["showDescription"],
605
- shownIn: ["details-panel"]
606
- }]
607
- };
608
- /** Fields the arrangement leaves out. Nothing on an older style, where no arrangement Look shows the block. */
609
- function fieldsNotShownIn(blockKind, arrangement) {
610
- if (arrangement === null) return [];
611
- return (lookParts[blockKind] ?? []).flatMap((part) => part.shownIn.includes(arrangement) ? [] : part.fields);
612
- }
613
- function lookPartShown(blockKind, field, arrangement) {
614
- return !fieldsNotShownIn(blockKind, arrangement).includes(field);
615
- }
616
- //#endregion
617
752
  //#region ../blocks/src/system/runtime/nodes/event-details/WholeSeriesPricingDisplay.tsx
618
753
  /** A course lists every active option, whether or not its sale window is open. */
619
754
  function wholeSeriesPriceOptions(pricing) {
@@ -754,10 +889,13 @@ function EventFacts({ selection, selected, venue, teamMembers, pricing, showCapa
754
889
  children: [/* @__PURE__ */ jsx("div", {
755
890
  className: "rb-label rb-mb-2",
756
891
  children: "Places"
757
- }), /* @__PURE__ */ jsx("p", { children: formatTotalCapacity(selected.capacity) })]
892
+ }), /* @__PURE__ */ jsx("p", { children: formatEventRemainingPlaces(selected) ?? formatTotalCapacity(selected.capacity) })]
758
893
  }) : null,
759
894
  pricing,
760
- selection.kind === "wholeSeries" ? /* @__PURE__ */ jsx(BookingState, { phase: selection.bookingPhase }) : null
895
+ selection.kind === "wholeSeries" ? /* @__PURE__ */ jsx(BookingState, {
896
+ phase: selection.bookingPhase,
897
+ event: selected
898
+ }) : null
761
899
  ]
762
900
  });
763
901
  }
@@ -826,7 +964,7 @@ function runLifecycleLabel(lifecycle) {
826
964
  * the booking panel beside it says cancelled is the contradiction a visitor
827
965
  * actually notices.
828
966
  */
829
- function BookingState({ phase }) {
967
+ function BookingState({ phase, event }) {
830
968
  return /* @__PURE__ */ jsxs("div", {
831
969
  className: "rb-mt-6",
832
970
  children: [
@@ -834,7 +972,7 @@ function BookingState({ phase }) {
834
972
  className: "rb-label rb-mb-2",
835
973
  children: "Booking"
836
974
  }),
837
- /* @__PURE__ */ jsx("p", { children: /* @__PURE__ */ jsx("strong", { children: phase.kind === "open" ? "Open" : "Closed" }) }),
975
+ /* @__PURE__ */ jsx("p", { children: /* @__PURE__ */ jsx("strong", { children: phase.kind === "closed" ? "Closed" : isEventFull(event) ? formatEventRemainingPlaces(event) : "Open" }) }),
838
976
  phase.kind === "closed" ? /* @__PURE__ */ jsx("p", {
839
977
  className: "rb-caption",
840
978
  children: bookingClosedReason(phase.reason)
@@ -1113,4 +1251,4 @@ function withLookParts(props, arrangement) {
1113
1251
  };
1114
1252
  }
1115
1253
  //#endregion
1116
- export { deriveEventScheduleSummary as a, eventCardListContent as i, resolveEventDetailsPresentation as n, derivePreviewRunSchedule as o, eventHeaderSlotParents as r, EventDetailsView as t };
1254
+ export { eventCardListContent as a, derivePreviewRunSchedule as c, isBookableEvent as d, eventHeaderSlotParents as i, formatEventQuickDate as l, resolveEventDetailsPresentation as n, offeringDatesBySeries as o, lookPartShown as r, deriveEventScheduleSummary as s, EventDetailsView as t, selectQuickDateEvents as u };
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { d as membershipClassesLabel, f as passCardListContent, qi as listLookSlot, u as membershipCardListContent } from "./display-ChgDe9Da.mjs";
3
- import { r as ThemedButton } from "./ThemedButton-BMDHwnM6.mjs";
4
- import { r as EventItem, t as CardListCollection } from "./EventItem-DKdZSW_R.mjs";
2
+ import { Ji as listLookSlot, d as membershipClassesLabel, f as passCardListContent, u as membershipCardListContent } from "./display-B5DfNb6A.mjs";
3
+ import { r as ThemedButton } from "./ThemedButton-DuaYtnvG.mjs";
4
+ import { r as EventItem, t as CardListCollection } from "./EventItem-sKBofjiW.mjs";
5
5
  import React from "react";
6
6
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
7
7
  //#region ../blocks/src/system/runtime/nodes/commerce/shared/view.tsx
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { t as __commonJSMin } from "./rolldown-runtime-CE6sIgz8.mjs";
3
- import { n as ThemedButton, nt as SpinnerNode } from "./ThemedButton-CKYjeU_M.mjs";
3
+ import { n as ThemedButton, nt as SpinnerNode } from "./ThemedButton-CVYz7h68.mjs";
4
4
  import { useEffect, useRef, useState } from "react";
5
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
6
  //#region ../../node_modules/.pnpm/@stripe+stripe-js@9.17.0/node_modules/@stripe/stripe-js/dist/pure.js
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { Pt as locationPinSchema } from "./lucide-react-X0DjcFij.mjs";
2
+ import { Ft as locationPinSchema } from "./lucide-react-BCNn8dEQ.mjs";
3
3
  import { createContext, useContext } from "react";
4
4
  import { jsx } from "react/jsx-runtime";
5
5
  //#region ../editor-blocks/src/widgets/location/editMapDecision.ts
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { r as __toESM } from "./rolldown-runtime-CE6sIgz8.mjs";
3
- import { Pt as locationPinSchema, T as Minus, k as LocateFixed, kt as sameMeaningfulAddress, v as Plus } from "./lucide-react-X0DjcFij.mjs";
4
- import { a as NO_EDIT_MAP_OVERLAY, c as overlayFeatures, d as editMapResource, f as editMapStyleUrl, i as useOptionalLocationPickerEnvironment, l as EMPTY_EDIT_MAP_VIEW, m as moveEditingPin, o as midpoint, p as isPinArrow, s as overlayExtent, u as editMapInteraction } from "./LocationPickerEnvironment-OwAxA2C0.mjs";
3
+ import { At as sameMeaningfulAddress, Ft as locationPinSchema, T as Minus, k as LocateFixed, v as Plus } from "./lucide-react-BCNn8dEQ.mjs";
4
+ import { a as NO_EDIT_MAP_OVERLAY, c as overlayFeatures, d as editMapResource, f as editMapStyleUrl, i as useOptionalLocationPickerEnvironment, l as EMPTY_EDIT_MAP_VIEW, m as moveEditingPin, o as midpoint, p as isPinArrow, s as overlayExtent, u as editMapInteraction } from "./LocationPickerEnvironment-D4F_5rnr.mjs";
5
5
  import { useEffect, useEffectEvent, useMemo, useRef, useState } from "react";
6
6
  import { jsx, jsxs } from "react/jsx-runtime";
7
7
  import { createPortal } from "react-dom";
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import { r as __toESM, t as __commonJSMin } from "./rolldown-runtime-CE6sIgz8.mjs";
3
- import { $d as inlineTextToPlainText, $t as useEditorUiStore, Am as DialogPortal, Bm as __extends, C as selectedImageFromMediaValue, Ca as getRichTextImageSize, D_ as asLayoutVariantKey, Dm as DialogContent, Ea as computeMediaTransformStyle, Em as DialogClose, F as nextLookTilePin, Fa as SECTION_BACKGROUND_MIN_SOURCE_WIDTH, Fd as RichTextDocSchema, Gf as getGradientPreset, Gm as __spreadArrays, Gn as rankBackgroundImagePoolItems, Hm as __read, If as getCuratedSiteStyle, Im as usePortalContainer, In as backgroundColorTokens, Ld as richTextVariantCapabilities, M as lookPositionLabel, N as lookTilePosition, N_ as authoredValuesEqual, Na as resolveMediaStorageUrl, Nr as getBlockDefinition, Om as DialogDescription, Qd as inlineTextHighlightTones, Rm as __assign, Rn as defaultBackgroundOverrideForMode, Sm as DialogTitle$1, Th as cn$2, Tv as unsafeAsEditorBlockId, Uf as gradientToCss, Um as __rest, V_ as generateUuidV4, Vm as __generator, Wm as __spreadArray, Xd as inlineTextAccentTones, Zd as inlineTextEqual, __ as resolveManagedMediaReference, _h as Button, a_ as isRotationDimensionSwap, af as removeInlineTextMarkFromRange, am as selectedCanvasBlockId, b as pageDesignLookPosition, bh as cva, c_ as parseAspectRatioValue, cy as unsafeAsMediaAssetId, d_ as getImageUrl, dh as useControllableState, en as useEditorUiStoreInstance, gm as Dialog, hh as Primitive, i as usePreviewSidebarNavigation, if as plainTextToInlineText, im as unwrapResponse, iy as assertNever, ja as resolveImageUrlWithContext, jm as DialogTitle, k as usePreviewRenderBackgrounds, km as DialogOverlay, l_ as resolveMediaTransformForAspect, ly as unsafeAsPositiveByteCount, mh as composeEventHandlers, mp as assertNever$1, nf as normalizeInlineTextMarks, o as usePreviewPageDesignEditorState, o_ as normalizeRightAngle, of as replaceInlineTextRange, ph as createContextScope, pm as Callout, qd as applyInlineTextMarkToRange, rg as surfaceForegroundValue, rh as useSize, s_ as formatAspectRatioToken, sf as truncateInlineText, tf as normalizeInlineText, u_ as getDirectImageUrlForMediaAsset, vm as DialogContent$1, w as selectedImageFromRenderableAsset, wh as useComposedRefs, wm as overlayScrimClass, xm as DialogHeader, y as cyclePageDesignBlockLook, y_ as mediaIdentifierSchema, yh as useControlReadiness, ym as DialogDescription$1, zm as __awaiter, zt as getDashboardBaseUrl } from "./previewAssistantSlot-3FZrzbK8.mjs";
4
- import { A as LoaderCircle, F as Italic$1, G as FileText, Gt as ok, H as Highlighter, I as Info, J as FileHeadphone, K as FileSpreadsheet, L as Image, M as ListOrdered, N as Link$1, R as ImageUp, S as Palette, W as File, Wt as err, Y as FileArchive, _t as Bold$1, a as Upload, c as Trash2, dt as ChevronLeft, et as Crop, j as List, n as X, pt as Check, q as FilePlay, s as TriangleAlert, ut as ChevronRight, v as Plus, xt as Archive, y as Pencil } from "./lucide-react-X0DjcFij.mjs";
5
- import { $ as useMediaEditor, $t as SelectItem, Bt as readThemeScopeContext, D as usePreviewCompiledThemeOptional, F as siteColourCss, Qt as SelectContent, Sn as classifyKnownMimeType, Zt as Select, d as CustomizeBackgroundColorPicker, en as SelectTrigger, et as useMediaEditorOptional, i as PreviewChromeFloatingControl, l as planBlockToolbarPlacement, ln as useFieldDescribedBy, nn as usePrevious, nt as TransferError, o as readThemeCustomProperties, on as Input, qt as CHOSEN_OPTION_CLASS, s as measureSiteTopChromeClearance, tn as SelectValue, tt as useApiMediaUploader } from "./SiteChromeCustomizeButton-eU-zMftO.mjs";
6
- import { A as TooltipProvider, B as DropdownMenuTrigger, F as DropdownMenuItem, M as Badge, N as DropdownMenu, O as Tooltip, P as DropdownMenuContent, c as useBlockNeedsSetup, i as NEEDS_SETUP_LABEL, j as TooltipTrigger, k as TooltipContent, l as arrangementBackgroundControlFor, o as needsSetupMessage, r as useBlockCustomizeControls, t as useOpenBlockForSetup, u as arrangementBlockControlsFor } from "./useOpenBlockForSetup-BNG9P9sM.mjs";
3
+ import { $_ as authoredValuesEqual, A_ as getDirectImageUrlForMediaAsset, Ah as useControllableState, Bm as DialogHeader, C as selectedImageFromMediaValue, Cf as plainTextToInlineText, Cg as surfaceForegroundValue, Cm as unwrapResponse, Cy as assertNever, D_ as formatAspectRatioToken, Dy as unsafeAsMediaAssetId, E_ as normalizeRightAngle, Ef as truncateInlineText, F as nextLookTilePin, Fm as Dialog, Fn as defaultBackgroundOverrideForMode, Gm as DialogClose, Hn as rankBackgroundImagePoolItems, Ih as Button, It as getDashboardBaseUrl, Jm as DialogOverlay, Km as DialogContent, L_ as resolveManagedMediaReference, Lm as DialogContent$1, M as lookPositionLabel, Mh as createContextScope, Mm as Callout, Mr as getBlockDefinition, N as lookTilePosition, Nh as composeEventHandlers, Nn as backgroundColorTokens, Np as assertNever$1, O_ as parseAspectRatioValue, Oy as unsafeAsPositiveByteCount, Ph as Primitive, Rh as useControlReadiness, Rm as DialogDescription$1, Sa as SECTION_BACKGROUND_MIN_SOURCE_WIDTH, Sh as useSize, T_ as isRotationDimensionSwap, Tf as replaceInlineTextRange, Uh as useComposedRefs, Um as overlayScrimClass, Vm as DialogTitle$1, Wh as cn$2, Wv as unsafeAsEditorBlockId, Xm as DialogTitle, Xt as useEditorUiStore, Ym as DialogPortal, Zt as useEditorUiStoreInstance, _f as inlineTextHighlightTones, ah as __extends, b as pageDesignLookPosition, ba as resolveMediaStorageUrl, bf as normalizeInlineText, ch as __rest, cp as gradientToCss, ef as RichTextDocSchema, ff as applyInlineTextMarkToRange, gf as inlineTextEqual, hf as inlineTextAccentTones, i as usePreviewSidebarNavigation, ih as __awaiter, j_ as getImageUrl, k as usePreviewRenderBackgrounds, k_ as resolveMediaTransformForAspect, lh as __spreadArray, nf as richTextVariantCapabilities, o as usePreviewPageDesignEditorState, oh as __generator, ov as generateUuidV4, pa as computeMediaTransformStyle, q_ as asLayoutVariantKey, qm as DialogDescription, rh as __assign, sh as __read, th as usePortalContainer, tp as getCuratedSiteStyle, ua as getRichTextImageSize, uh as __spreadArrays, up as getGradientPreset, va as resolveImageUrlWithContext, vf as inlineTextToPlainText, w as selectedImageFromRenderableAsset, wf as removeInlineTextMarkFromRange, wm as selectedCanvasBlockId, xf as normalizeInlineTextMarks, y as cyclePageDesignBlockLook, z_ as mediaIdentifierSchema, zh as cva } from "./previewAssistantSlot-Caofnr1Z.mjs";
4
+ import { A as LoaderCircle, F as Italic$1, G as FileText, Gt as err, H as Highlighter, I as Info, J as FileHeadphone, K as FileSpreadsheet, Kt as ok, L as Image, M as ListOrdered, N as Link$1, R as ImageUp, S as Palette, St as Archive, W as File, Y as FileArchive, Z as EyeOff, a as Upload, c as Trash2, dt as ChevronRight, ft as ChevronLeft, j as List, mt as Check, n as X, q as FilePlay, s as TriangleAlert, tt as Crop, v as Plus, vt as Bold$1, y as Pencil } from "./lucide-react-BCNn8dEQ.mjs";
5
+ import { I as siteColourCss, O as usePreviewCompiledThemeOptional, Tn as classifyKnownMimeType, Ut as readThemeScopeContext, Xt as CHOSEN_OPTION_CLASS, a as PreviewChromeFloatingControl, an as usePrevious, c as measureSiteTopChromeClearance, en as Select, et as useMediaEditor, f as CustomizeBackgroundColorPicker, fn as useFieldDescribedBy, in as SelectValue, ln as Input, nn as SelectItem, nt as useApiMediaUploader, rn as SelectTrigger, rt as TransferError, s as readThemeCustomProperties, tn as SelectContent, tt as useMediaEditorOptional, u as planBlockToolbarPlacement } from "./SiteChromeCustomizeButton-CrgS3I8d.mjs";
6
+ import { A as Tooltip, F as DropdownMenu, H as DropdownMenuTrigger, I as DropdownMenuContent, L as DropdownMenuItem, M as TooltipProvider, N as TooltipTrigger, P as Badge, a as blockNoticeAction, d as arrangementBackgroundControlFor, f as arrangementBlockControlsFor, j as TooltipContent, o as blockNoticeLabel, r as useBlockCustomizeControls, s as blockNoticeMessage, t as useOpenBlockForSetup, u as useBlockNotice } from "./useOpenBlockForSetup-CCEMkosU.mjs";
7
7
  import * as React$1 from "react";
8
8
  import React, { Component, createContext, createRef, forwardRef, useCallback, useContext, useDebugValue, useEffect, useId, useImperativeHandle, useLayoutEffect, useMemo, useRef, useState } from "react";
9
9
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
@@ -31162,21 +31162,25 @@ function useMediaQuery(query) {
31162
31162
  //#endregion
31163
31163
  //#region ../preview-next/src/client/blocks/BlockReadinessNote.tsx
31164
31164
  /**
31165
- * The canvas note on a block that isn't set up yet: only editors see it, and
31166
- * it sits inside the block so it moves with it.
31165
+ * The canvas note on a block visitors can't see: only editors see it, and it
31166
+ * sits inside the block so it moves with it. Something to set up is a warning;
31167
+ * a block hidden by the editor's own choice gets a quiet note.
31167
31168
  */
31168
- function BlockReadinessNote({ needs, element, blockName, onSetUp }) {
31169
- if (!needs || !element) return null;
31169
+ function BlockReadinessNote({ notice, element, blockName, onOpen }) {
31170
+ if (!notice || !element) return null;
31171
+ const warning = notice.kind === "NeedsSetup";
31172
+ const Icon = warning ? TriangleAlert : EyeOff;
31173
+ const label = blockNoticeLabel(notice);
31170
31174
  return createPortal(/* @__PURE__ */ jsx("div", {
31171
- className: "builder-dashboard-chrome-theme absolute left-4 top-4 z-20 max-w-[22rem] overflow-hidden rounded-md text-left font-sans shadow-md",
31175
+ className: "builder-dashboard-chrome-theme absolute left-4 top-4 z-20 max-w-[22rem] overflow-hidden rounded-md bg-background text-left font-sans shadow-md",
31172
31176
  children: /* @__PURE__ */ jsxs(Callout, {
31173
- tone: "warning",
31177
+ tone: warning ? "warning" : "default",
31174
31178
  role: "note",
31175
- "aria-label": `${blockName}: ${NEEDS_SETUP_LABEL}`,
31179
+ "aria-label": `${blockName}: ${label}`,
31176
31180
  "data-preview-readiness-note": "",
31177
31181
  className: "flex gap-2.5 p-3 leading-snug",
31178
- children: [/* @__PURE__ */ jsx(TriangleAlert, {
31179
- className: "mt-0.5 size-4 shrink-0 text-warning",
31182
+ children: [/* @__PURE__ */ jsx(Icon, {
31183
+ className: warning ? "mt-0.5 size-4 shrink-0 text-warning" : "mt-0.5 size-4 shrink-0 text-muted-foreground",
31180
31184
  "aria-hidden": "true"
31181
31185
  }), /* @__PURE__ */ jsxs("div", {
31182
31186
  className: "min-w-0 space-y-1.5 text-sm",
@@ -31188,11 +31192,11 @@ function BlockReadinessNote({ needs, element, blockName, onSetUp }) {
31188
31192
  " ",
31189
31193
  /* @__PURE__ */ jsxs("span", {
31190
31194
  className: "font-normal text-muted-foreground",
31191
- children: ["· ", NEEDS_SETUP_LABEL]
31195
+ children: ["· ", label]
31192
31196
  })
31193
31197
  ]
31194
31198
  }),
31195
- /* @__PURE__ */ jsx("p", { children: needsSetupMessage(needs) }),
31199
+ /* @__PURE__ */ jsx("p", { children: blockNoticeMessage(notice) }),
31196
31200
  /* @__PURE__ */ jsx("p", {
31197
31201
  className: "text-xs text-muted-foreground",
31198
31202
  children: "You're seeing this because you're editing."
@@ -31200,8 +31204,9 @@ function BlockReadinessNote({ needs, element, blockName, onSetUp }) {
31200
31204
  /* @__PURE__ */ jsx(Button, {
31201
31205
  type: "button",
31202
31206
  size: "sm",
31203
- onClick: onSetUp,
31204
- children: "Set this up"
31207
+ variant: warning ? "default" : "outline",
31208
+ onClick: onOpen,
31209
+ children: blockNoticeAction(notice)
31205
31210
  })
31206
31211
  ]
31207
31212
  })]
@@ -31282,7 +31287,7 @@ function revealWhenShown(marker) {
31282
31287
  //#region ../preview-next/src/client/blocks/BlockToolbar.tsx
31283
31288
  function BlockToolbar(input) {
31284
31289
  const { selection, controls, toolbar, open, openField, cycleSdk, cycleRecipe } = useBlockToolbar(input);
31285
- const needs = useBlockNeedsSetup(input.blockId);
31290
+ const notice = useBlockNotice(input.blockId);
31286
31291
  const name = controls.manifest?.title ?? getBlockDefinition(input.blockKind)?.manifest.title ?? input.blockKind;
31287
31292
  const row = /* @__PURE__ */ jsxs(EditorCanvasChipRow, {
31288
31293
  label: `${name} controls`,
@@ -31314,10 +31319,10 @@ function BlockToolbar(input) {
31314
31319
  element: selection.blockElement
31315
31320
  }),
31316
31321
  /* @__PURE__ */ jsx(BlockReadinessNote, {
31317
- needs,
31322
+ notice,
31318
31323
  element: selection.blockElement,
31319
31324
  blockName: name,
31320
- onSetUp: () => needs?.repair.kind === "field" ? openField(needs.repair.path) : open()
31325
+ onOpen: () => notice?.repair.kind === "field" ? openField(notice.repair.path) : open()
31321
31326
  }),
31322
31327
  /* @__PURE__ */ jsx(InsertionMarker, {
31323
31328
  blockId: input.blockId,