@riverbankcms/sdk 0.174.1 → 0.176.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 (198) hide show
  1. package/dist/_dts/{BlocksIslandsHydrator-YRmc-Yxz.d.ts → BlocksIslandsHydrator-DvoTk7Py.d.ts} +1 -1
  2. package/dist/_dts/{Page-Du0zX1B-.d.ts → Page-D-l374tU.d.ts} +8 -16
  3. package/dist/_dts/{SdkPreviewMode-4L8v3FkY.d.ts → SdkPreviewMode-22DdQAj5.d.ts} +2 -2
  4. package/dist/_dts/{client-B1J6Akyf.d.ts → client-D4p0J1lK.d.ts} +487 -11
  5. package/dist/_dts/{content-types-CGGYI0u_.d.ts → content-types-0WWR6dC4.d.ts} +2 -2
  6. package/dist/_dts/{contracts-CHMlw9hT.d.ts → contracts-f_ZG_SwY.d.ts} +8 -8
  7. package/dist/_dts/{footerPageOutline-DIHSU1Vr.d.ts → footerPageOutline-DSeZvOaj.d.ts} +85 -8
  8. package/dist/_dts/{generatePageMetadata-JITXD6BU.d.ts → generatePageMetadata-BlitPA2D.d.ts} +2 -2
  9. package/dist/_dts/{index-BLEKFHt1.d.ts → index-CKkkCgb6.d.ts} +1 -1
  10. package/dist/_dts/{index-yWDbUojb.d.ts → index-CoLcwjqJ.d.ts} +1 -1
  11. package/dist/_dts/{index-DpJm0NpL.d.ts → index-D-ai8IQd.d.ts} +4 -4
  12. package/dist/_dts/{index-CXZSy_9M.d.ts → index-DDsfmM4d.d.ts} +2 -2
  13. package/dist/_dts/{index-CF62FntA.d.ts → index-EJMo-KSo.d.ts} +2 -2
  14. package/dist/_dts/{index-D9ZYmGAJ.d.ts → index-ZKEDvLuN.d.ts} +1 -1
  15. package/dist/_dts/{index-BgOr1Xyz.d.ts → index-tcPtGdag.d.ts} +3 -3
  16. package/dist/_dts/{loadContent-M-s0p0rq.d.ts → loadContent-Ci932ORy.d.ts} +7 -7
  17. package/dist/_dts/{request-BK-pHf0P.d.ts → request-B8jVdvgI.d.ts} +1993 -407
  18. package/dist/_dts/{resolveBlockData-DZAlnhwt.d.ts → resolveBlockData-DrSMuD76.d.ts} +5 -5
  19. package/dist/_dts/{resolvePageContent-DXUCWJ3y.d.ts → resolvePageContent-Be4iL6-F.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/gifting/client.d.ts +13 -1
  30. package/dist/_dts/sdk/src/index.d.ts +8 -8
  31. package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
  32. package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
  33. package/dist/_dts/sdk/src/navigation/index.d.ts +3 -3
  34. package/dist/_dts/sdk/src/next/index.d.ts +7 -7
  35. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  36. package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
  37. package/dist/_dts/sdk/src/portal/client.d.ts +3 -2
  38. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  39. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  40. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  41. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  42. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  43. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
  44. package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
  45. package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +5 -177
  46. package/dist/_dts/sdk/src/rendering/index.d.ts +7 -7
  47. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  48. package/dist/_dts/sdk/src/rendering/server.d.ts +3 -3
  49. package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
  50. package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
  51. package/dist/_dts/sdk/src/server.d.ts +5 -5
  52. package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
  53. package/dist/_dts/sdk/src/theme/index.d.ts +2 -1
  54. package/dist/_dts/{types-CwmB2NHU.d.ts → types-BXMX4z2j.d.ts} +7 -7
  55. package/dist/_dts/{types-DjVNADXR.d.ts → types-DXY64Xh4.d.ts} +4 -4
  56. package/dist/_dts/{types-Dmow_FI6.d.ts → types-lwSgCWZ4.d.ts} +11 -2
  57. package/dist/_dts/{validation-h8t1HLlL.d.ts → validation-C5xp--Fu.d.ts} +7 -4
  58. package/dist/client/{BlocksIslandsHydrator-DRVx_XLi.mjs → BlocksIslandsHydrator-CeYQQQs7.mjs} +17 -16
  59. package/dist/client/{BookingMailingListNote-CwrMzj-k.mjs → BookingMailingListNote-CDDWrY_W.mjs} +6 -6
  60. package/dist/client/{BookingPanelArrangement-C2_hFT6K.mjs → BookingPanelArrangement-BShQSial.mjs} +1 -1
  61. package/dist/client/{BookingQuestionFields-DZMrGvBh.mjs → BookingQuestionFields-MbvIo2jS.mjs} +3 -3
  62. package/dist/client/{CalendarNavigationChevron-Az1-TIEI.mjs → CalendarNavigationChevron-C6CSVfEB.mjs} +36 -11
  63. package/dist/client/DemoBookingPortalAccess-C9Ggcfx3.mjs +545 -0
  64. package/dist/client/{EventCalendar.client-CDkkP-Lv.mjs → EventCalendar.client-BSMuSqg0.mjs} +15 -25
  65. package/dist/client/{EventCombined.client-DK3aaz62.mjs → EventCombined.client-BTrmSyUB.mjs} +25 -17
  66. package/dist/client/{EventItem-WeUipfIP.mjs → EventItem-B0WjGXsH.mjs} +4 -3
  67. package/dist/client/{EventListWeekNavigation-D3sbAeDo.mjs → EventListWeekNavigation-8Ij7vuxY.mjs} +1 -1
  68. package/dist/client/{EventListing.client-DL3gGGmF.mjs → EventListing.client-CWk2NEwd.mjs} +3 -3
  69. package/dist/client/{EventListing.view-DKFImKOx.mjs → EventListing.view-BEH4UbSL.mjs} +18 -8
  70. package/dist/client/{EventRegistrationPayment-Dn9TpWyL.mjs → EventRegistrationPayment-B2EikR3f.mjs} +635 -359
  71. package/dist/client/{LocationMapActions-BJT7MqP2.mjs → LocationMapActions-myIQIvQL.mjs} +1 -1
  72. package/dist/client/{MapDrawingSvg-DCIwlON6.mjs → MapDrawingSvg-BfsVyPvB.mjs} +2 -22
  73. package/dist/client/{Page-BpeP9xdt.mjs → Page-F3lhDvw1.mjs} +1036 -953
  74. package/dist/client/{DemoBookingPortalAccess-1p-pJ1lg.mjs → SiteTermsAgreementField-BYACYP0T.mjs} +4 -301
  75. package/dist/client/{StepIndicator-CP6zrwkl.mjs → StepIndicator-Bb7rPtSq.mjs} +37 -12
  76. package/dist/client/{accordion-nR7D4m1a.mjs → accordion-BfsOiweL.mjs} +1 -1
  77. package/dist/client/{booking-form.client-Ce-mQZ7W.mjs → booking-form.client-B8ohIj13.mjs} +229 -42
  78. package/dist/client/{bookingForm-B-qT_AQB.mjs → bookingForm-CXsck2oH.mjs} +4 -4
  79. package/dist/client/bookings.mjs +22 -15
  80. package/dist/client/{boxStyleClassNames-CrE3TDpW.mjs → boxStyleClassNames-B_hcuT06.mjs} +2 -1
  81. package/dist/client/{carousel-CVUOatsY.mjs → carousel-Cz5Ddbsx.mjs} +1 -1
  82. package/dist/client/{cart-DE0K6E0R.mjs → cart-CTC2oS3p.mjs} +3 -3
  83. package/dist/client/{cart.client-C23E6WQ5.mjs → cart.client-c1YkTC-Q.mjs} +1 -1
  84. package/dist/client/{checkout-76cdHyPL.mjs → checkout-BeW1ufaH.mjs} +3 -3
  85. package/dist/client/{checkout.client-DJOzqb26.mjs → checkout.client-BeU32khQ.mjs} +1 -1
  86. package/dist/client/{checkoutUrls-CvIP5DCO.mjs → checkoutUrls-DVfSUSKp.mjs} +1 -1
  87. package/dist/client/client.mjs +145 -21
  88. package/dist/client/{context-CNlesLfF.mjs → context-R9p5c8IH.mjs} +76 -58
  89. package/dist/client/{course-DHIrXqNT.mjs → course-CUFVJEAc.mjs} +2 -2
  90. package/dist/client/{creditProducts-KYMVIH3J.mjs → creditProducts-BQ1t1erI.mjs} +14 -61
  91. package/dist/client/{dateFormatting-B73Ll0s4.mjs → dateFormatting-CF6FWCoo.mjs} +1 -1
  92. package/dist/client/{demoPortalMagicLink-BVbLD4pi.mjs → demoPortalMagicLink-tZxIm3RL.mjs} +1 -1
  93. package/dist/client/display-4HYOb-AK.mjs +11844 -0
  94. package/dist/client/{enhanceHeaderSection-5GD5o4Mt.mjs → enhanceHeaderSection-DEYDI54E.mjs} +3 -3
  95. package/dist/client/{event-details.client-D7Oz1q2L.mjs → event-details.client-BwjBJP-f.mjs} +1 -1
  96. package/dist/client/{event-registration.client-zbuX36aA.mjs → event-registration.client-DWvSODTI.mjs} +176 -75
  97. package/dist/client/{eventCalendar-uZrksODt.mjs → eventCalendar-C9Pn9eeZ.mjs} +4 -4
  98. package/dist/client/{eventCombined-DxhvNAx8.mjs → eventCombined-Bdhk0fp0.mjs} +4 -4
  99. package/dist/client/{eventDetails-DCIH4BYG.mjs → eventDetails-C2LfNW_o.mjs} +2 -2
  100. package/dist/client/{eventListing-B9KrnPvc.mjs → eventListing-B-bJOQUk.mjs} +4 -4
  101. package/dist/client/{eventRegistration-TjnURMKl.mjs → eventRegistration-CbdmUiDT.mjs} +4 -4
  102. package/dist/client/{form-CfqIAhfN.mjs → form-BbUUt784.mjs} +3 -3
  103. package/dist/client/{form.client-CL6fF0cW.mjs → form.client-BVlz-9_t.mjs} +4 -4
  104. package/dist/client/{form.parts-Bf-L66Gg.mjs → form.parts-TB4UIrML.mjs} +1 -1
  105. package/dist/client/{formatDate-Dp7POa9Y.mjs → formatDate-TDHhFjFN.mjs} +1 -1
  106. package/dist/client/gifting/client.mjs +5 -3
  107. package/dist/client/gifting-CbNSrp7C.mjs +28 -0
  108. package/dist/client/gifting.client-B__bGhFc.mjs +404 -0
  109. package/dist/client/gifting.parts-CTA1sDW6.mjs +86 -0
  110. package/dist/client/{headerSection-WVXtOcuW.mjs → headerSection-5Wn9nUW_.mjs} +2 -2
  111. package/dist/client/{display-Cf_j5stk.mjs → lookSurfaces-BwiNdgMU.mjs} +2951 -14395
  112. package/dist/client/{newsletter-form.client-Bb7GAZpO.mjs → newsletter-form.client-B17WYHxZ.mjs} +7 -5
  113. package/dist/client/{newsletter-form.parts-BqOVRdIc.mjs → newsletter-form.parts-DN9wD1ZG.mjs} +3 -3
  114. package/dist/client/{newsletterForm-DOVe-qY3.mjs → newsletterForm-DLMlxInp.mjs} +3 -3
  115. package/dist/client/{noop-D5mFWXtN.mjs → noop-CaQxI-Js.mjs} +94 -36
  116. package/dist/client/portal/client.mjs +313 -148
  117. package/dist/client/{product-detail.client-CNzeFnFf.mjs → product-detail.client-Di_anRGR.mjs} +1 -1
  118. package/dist/client/{product-list.client-LKpzC7pj.mjs → product-list.client-Duhl6rtL.mjs} +1 -1
  119. package/dist/client/{productDetail-D2JNeEgx.mjs → productDetail-BgKmCwA8.mjs} +3 -3
  120. package/dist/client/{productList-DTgZXOEq.mjs → productList-C_wMKsYS.mjs} +3 -3
  121. package/dist/client/{propsDecoder-mpBQt2AT.mjs → propsDecoder-y3LvxaiG.mjs} +4 -3
  122. package/dist/client/{registry.server-DdTJyar2.mjs → registry.server-CIWYKz1V.mjs} +369 -246
  123. package/dist/client/rendering/client.mjs +25 -491
  124. package/dist/client/rendering/islands.mjs +1 -1
  125. package/dist/client/rendering.mjs +87 -21
  126. package/dist/client/{richText-coerce-C32cRQ03.mjs → richText-coerce-DkPBFb_a.mjs} +1 -1
  127. package/dist/client/{routeIslandApiConfig-8cfSgT0E.mjs → routeIslandApiConfig-BgO0rZce.mjs} +1 -1
  128. package/dist/client/{shop-5LBhftWx.mjs → shop-CFbWlv_W.mjs} +3 -3
  129. package/dist/client/{shop-discount-apply.state-D0ifS6KX.mjs → shop-add-feedback-DvC2kP1K.mjs} +1 -78
  130. package/dist/client/{shop-commerce-DkValjZj.mjs → shop-commerce-C-I29eaA.mjs} +64 -32
  131. package/dist/client/{shop-commerce-store-BOmXFmk_.mjs → shop-commerce-store-DGcc7twO.mjs} +1 -1
  132. package/dist/client/shop-discount-apply.state-DOm7vx0X.mjs +83 -0
  133. package/dist/client/{shop.client-BTtZqNmv.mjs → shop.client-GHTWUKD6.mjs} +56 -19
  134. package/dist/client/{shop.interactive-DNRqG4aX.mjs → shop.interactive-CxDJ8P2r.mjs} +113 -35
  135. package/dist/client/{shopShared-Nky6kPYr.mjs → shopShared-Be9QJJpT.mjs} +2 -2
  136. package/dist/client/{timetableModel-DZArznD_.mjs → timetableModel--R0zVzZO.mjs} +10 -10
  137. package/dist/client/{useAvailableSlots-CUVRD1nx.mjs → useAvailableSlots-BGu_2F50.mjs} +3 -3
  138. package/dist/client/{useDiscountCodeUi-d7viY_mu.mjs → useDiscountCodeUi-I_mXI9Yd.mjs} +32 -17
  139. package/dist/client/{useEventPagination-Da2JqxGC.mjs → useEventPagination-DxIJ--JZ.mjs} +7 -6
  140. package/dist/client/{view-BvuYmQJ5.mjs → view-3foOzGWR.mjs} +3 -2
  141. package/dist/client/{view-D9ObkFtz.mjs → view-BbzH5MQb.mjs} +128 -32
  142. package/dist/preview-next/client/{PageSectionToolbar-DwxHT-2k.mjs → PageSectionToolbar-0xyUPWUB.mjs} +4 -4
  143. package/dist/preview-next/client/{PreviewEditorSidebar-D4SBxGU6.mjs → PreviewEditorSidebar-D8vUzXtI.mjs} +61 -55
  144. package/dist/preview-next/client/{PreviewEditorUI-D8mUct32.mjs → PreviewEditorUI-CRjS4gAu.mjs} +4 -4
  145. package/dist/preview-next/client/{PreviewShell-L2AEdNUQ.mjs → PreviewShell-BvdBdeH_.mjs} +5 -5
  146. package/dist/preview-next/client/{SdkPreviewModeRuntime-bhVAU2D2.mjs → SdkPreviewModeRuntime-DWTyKbFj.mjs} +156 -143
  147. package/dist/preview-next/client/{previewAssistantSlot-Jpj_HDra.mjs → previewAssistantSlot-BqY2TTcZ.mjs} +4535 -2913
  148. package/dist/preview-next/client/{previewChromeRoot-CYTDvx4u.mjs → previewChromeRoot-BuRYe2iL.mjs} +1 -1
  149. package/dist/preview-next/client/runtime.mjs +3 -3
  150. package/dist/preview-next/client/{sdk-runtime-CZHX6J_4.mjs → sdk-runtime-BnK5kH9f.mjs} +2 -2
  151. package/dist/preview-next/client/{siteStyleAccess-DmGIG9Hk.mjs → siteStyleAccess-DbKozRSn.mjs} +527 -236
  152. package/dist/preview-next/client/{useAutosaveStatus-DQCyswQ-.mjs → useAutosaveStatus-D9s6dyMW.mjs} +1 -1
  153. package/dist/preview-next/client/{useOpenBlockForSetup-LwE5yXvL.mjs → useOpenBlockForSetup-Ce4WCxpT.mjs} +28 -5
  154. package/dist/preview-next/container-responsive.css +51 -3
  155. package/dist/preview-next/keepAlive.mjs +1 -1
  156. package/dist/preview-next/middleware.mjs +1 -1
  157. package/dist/preview-next/{route-contract-BOuNcOcN.mjs → route-contract-BYezcMx5.mjs} +94 -12
  158. package/dist/server/{Block.shared-wfJfhs08.mjs → Block.shared-Cn7gg13_.mjs} +84 -16
  159. package/dist/server/{ThemeScopeCore-BtrJNHTB.mjs → ThemeScopeCore-DFEM1a85.mjs} +16 -2
  160. package/dist/server/{bindings-P1CF2Gm6.mjs → bindings-VGgS6UvF.mjs} +13 -34
  161. package/dist/server/{client-CGtU5fHI.mjs → client-Bvag5OtW.mjs} +145 -22
  162. package/dist/server/config-validation.mjs +1 -1
  163. package/dist/server/config.mjs +2 -2
  164. package/dist/server/{customCss-BGB8gMVb.mjs → customCss-BZ8YSrQg.mjs} +1 -0
  165. package/dist/server/data/resolveBlockData.mjs +1 -1
  166. package/dist/server/index.mjs +2 -2
  167. package/dist/server/{loadContent-ChnkJSay.mjs → loadContent-CxASA3PE.mjs} +6 -9
  168. package/dist/server/{loadPage-DesHhgxj.mjs → loadPage-CQgde5DN.mjs} +2 -2
  169. package/dist/server/{lookMediaFrame-BBr0mkze.mjs → lookMediaFrame-CaH018pK.mjs} +24 -5
  170. package/dist/server/mapLocation-BM5WX7FY.mjs +315 -0
  171. package/dist/server/next.mjs +35 -9
  172. package/dist/server/{overrideResolution-DHEkHcZs.mjs → overrideResolution-BqVLO4gX.mjs} +1 -1
  173. package/dist/server/page-converter.mjs +1 -1
  174. package/dist/server/{pageRenderPlan-0jvm0RBk.mjs → pageRenderPlan-CfSnAkCO.mjs} +67 -40
  175. package/dist/server/{pageRuntimeSupport-8-f1Zr9e.mjs → pageRuntimeSupport-uz4gzBOo.mjs} +7 -15
  176. package/dist/server/{pageShared-CuVFoV4z.mjs → pageShared-D23o5QgC.mjs} +1068 -891
  177. package/dist/server/{parseThemeForPersistence-Cwqb5pZx.mjs → parseThemeForPersistence-DOsfofCy.mjs} +1 -1
  178. package/dist/server/{prebuild-Bms_Y7wQ.mjs → prebuild-BuoXWT9y.mjs} +1 -1
  179. package/dist/server/prebuild.mjs +1 -1
  180. package/dist/server/{prefetchBlockData-5oC5kyHe.mjs → prefetchBlockData-CCiYV8_s.mjs} +21 -6
  181. package/dist/server/{registry-DmqxC8th.mjs → registry-CXRXsFSx.mjs} +19721 -19621
  182. package/dist/server/rendering/components/pageShared.mjs +1 -1
  183. package/dist/server/rendering/helpers/loadPage.mjs +1 -1
  184. package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
  185. package/dist/server/rendering/server.mjs +4 -4
  186. package/dist/server/rendering.mjs +7 -7
  187. package/dist/server/{resolveBlockData-EYogtwQc.mjs → resolveBlockData-yfe8WLEA.mjs} +1 -1
  188. package/dist/server/{responseMedia-DpBC1hTM.mjs → responseMedia-F-ElH2Rd.mjs} +1 -0
  189. package/dist/server/{schema-CUDHMirj.mjs → schema-BpsqaSSU.mjs} +2 -2
  190. package/dist/server/server.mjs +3 -3
  191. package/dist/server/theme-bridge.mjs +1 -1
  192. package/dist/server/theme.mjs +2 -2
  193. package/dist/server/{validation-Bt_8IL1g.mjs → validation-CozQ7wE0.mjs} +4 -4
  194. package/dist/server/{version-DT_efohp.mjs → version-CgCWRFEY.mjs} +1 -1
  195. package/dist/styles/index.css +295 -37
  196. package/package.json +1 -1
  197. package/dist/client/useDiscountApply-BBnStWXU.mjs +0 -199
  198. package/dist/server/identity-DQD_8lNO.mjs +0 -6
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { On as selectAutosaveStatus, Rn as useStore, Xc as Primitive, kn as selectEditorWriteState, mt as useSessionJournal, ol as cn, sl as useShallow, yn as useEditorUiStore } from "./previewAssistantSlot-Jpj_HDra.mjs";
2
+ import { On as selectAutosaveStatus, Rn as useStore, dl as useShallow, el as Primitive, kn as selectEditorWriteState, mt as useSessionJournal, ul as cn, yn as useEditorUiStore } from "./previewAssistantSlot-BqY2TTcZ.mjs";
3
3
  import { A as LoaderCircle } from "./lucide-react-Dfgl3Vtq.mjs";
4
4
  import * as React$1 from "react";
5
5
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { Ac as createRovingFocusGroupScope, Ai as isSystemCustomizeFacetId, Bc as FocusScope, Bo as readStoredMode, Bt as derivePromotedFieldPlan, Dc as hideOthers, Fc as Content, Gc as createCollection, Gn as createManifestFormAdapter, Hc as DismissableLayer, Hu as syncStateOf, I as lookTilesFor, Ic as Root2$1, Jc as createContextScope, Kc as useControllableState, Lc as createPopperScope, M as usePreviewRenderReadiness, Mc as Portal$2, Mi as systemCustomizeFacetDefinitionForBlock, Mo as resolveEditorArrangementLook, Nc as Anchor, Ni as systemCustomizeFacetDefinitionsForBlock, Oc as Item, Oi as arrangementKnobChoices, Oo as decideSectionPhoto, Os as augmentManifestWithStyleGroups, Pc as Arrow, Pi as systemCustomizeFacetStoredValue, To as resolveVisiblePromotedFieldPathsForEditorBlock, Uc as useCallbackRef, Us as Root$1, Vc as useFocusGuards, Wc as useDirection, Wo as getCuratedSiteStyle, Wr as fieldsNotShownIn, Xc as Primitive, Yc as composeEventHandlers, Zc as dispatchDiscreteCustomEvent, _c as usePortalContainer, _r as createCustomBlockRegistry, al as useComposedRefs, ar as parseBackgroundColorToken, au as asSiteStyleId, bn as useEditorUiStoreInstance, ei as fieldPathsOwnedBy, fs as lookModes, hc as menuTriggerInteractionClassName, i as usePreviewSidebarNavigation, il as composeRefs, jc as Presence, ji as systemCustomizeFacetAppliesToLayoutVariant, kc as Root, ki as resolveArrangementKnobs, ko as sectionPhotoPresence, ls as isThemeV2NormalEditorRawStyleFieldName, mc as menuItemInteractionClassName, ni as getBlockDefinition, nl as createSlot, o as usePreviewPageDesignEditorState, ol as cn, qn as manifestFieldSectionOptions, rl as createSlottable, sr as parseCanonicalSectionBackground, ti as resolveFieldOwnership, tl as cva, ui as eventCalendarPagingFields, us as isThemeV2NormalEditorRawStylePath, vc as ReactRemoveScroll, vr as mergeBlockDescriptorsWithRegistry, wn as shouldRevealAllBlockFieldValidation, yr as mergeManifestWithSdkOptions, zc as useId$1, zi as eventCalendarListGroupingDecision, zo as lookDefinitionForId } from "./previewAssistantSlot-Jpj_HDra.mjs";
2
+ import { $c as composeEventHandlers, Bc as Root2$1, Bt as derivePromotedFieldPlan, Fc as Presence, Fi as systemCustomizeFacetDefinitionForBlock, Fo as resolveEditorArrangementLook, Gc as useFocusGuards, Gn as createManifestFormAdapter, Ho as lookDefinitionForId, I as lookTilesFor, Ic as Portal$2, Ii as systemCustomizeFacetDefinitionsForBlock, Jc as useDirection, Kc as DismissableLayer, Ku as syncStateOf, Lc as Anchor, Li as systemCustomizeFacetStoredValue, M as usePreviewRenderReadiness, Mc as Item, Mi as resolveArrangementKnobs, Mo as sectionPhotoPresence, Nc as Root, Ni as isSystemCustomizeFacetId, Oo as resolveVisiblePromotedFieldPathsForEditorBlock, Pc as createRovingFocusGroupScope, Pi as systemCustomizeFacetAppliesToLayoutVariant, Qc as createContextScope, Rc as Arrow, Sc as ReactRemoveScroll, Uc as useId$1, Uo as readStoredMode, Vc as createPopperScope, Wc as FocusScope, Wr as fieldsNotShownIn, Xc as useControllableState, Yc as createCollection, _r as createCustomBlockRegistry, al as cva, ar as parseBackgroundColorToken, ba as eventCalendarListGroupingDecision, bn as useEditorUiStoreInstance, cl as composeRefs, ei as fieldPathsOwnedBy, el as Primitive, fs as isThemeV2NormalEditorRawStyleFieldName, hs as lookModes, i as usePreviewSidebarNavigation, jc as hideOthers, ji as arrangementKnobChoices, jo as decideSectionPhoto, js as augmentManifestWithStyleGroups, ll as useComposedRefs, lu as asSiteStyleId, ni as getBlockDefinition, o as usePreviewPageDesignEditorState, ol as createSlot, pi as eventCalendarPagingFields, ps as isThemeV2NormalEditorRawStylePath, qc as useCallbackRef, qn as manifestFieldSectionOptions, qo as getCuratedSiteStyle, qs as Root$1, sl as createSlottable, sr as parseCanonicalSectionBackground, ti as resolveFieldOwnership, tl as dispatchDiscreteCustomEvent, ul as cn, vc as menuItemInteractionClassName, vr as mergeBlockDescriptorsWithRegistry, wn as shouldRevealAllBlockFieldValidation, xc as usePortalContainer, yc as menuTriggerInteractionClassName, yr as mergeManifestWithSdkOptions, zc as Content } from "./previewAssistantSlot-BqY2TTcZ.mjs";
3
3
  import { at as Circle, dt as ChevronRight, mt as Check } from "./lucide-react-Dfgl3Vtq.mjs";
4
4
  import * as React$1 from "react";
5
5
  import { createContext, useContext, useMemo } from "react";
@@ -1038,11 +1038,25 @@ const DropdownMenuSubContent = React$1.forwardRef(({ className, ...props }, ref)
1038
1038
  ...props
1039
1039
  }));
1040
1040
  DropdownMenuSubContent.displayName = SubContent2.displayName;
1041
- const DropdownMenuContent = React$1.forwardRef(({ className, sideOffset = 4, container, ...props }, ref) => /* @__PURE__ */ jsx(DropdownMenuPortal, {
1041
+ /**
1042
+ * A menu hands focus back to its button once it has finished closing, which is
1043
+ * after a dialog opened from one of its items has taken focus. That would pull
1044
+ * focus out of the dialog, closing a search dropdown someone has started typing
1045
+ * into, so the button only gets it if nothing else has.
1046
+ */
1047
+ function focusMovedPastMenu(event) {
1048
+ const active = document.activeElement;
1049
+ return active instanceof HTMLElement && active !== document.body && event.currentTarget instanceof Node && !event.currentTarget.contains(active);
1050
+ }
1051
+ const DropdownMenuContent = React$1.forwardRef(({ className, sideOffset = 4, container, onCloseAutoFocus, ...props }, ref) => /* @__PURE__ */ jsx(DropdownMenuPortal, {
1042
1052
  container,
1043
1053
  children: /* @__PURE__ */ jsx(Content2$1, {
1044
1054
  ref,
1045
1055
  sideOffset,
1056
+ onCloseAutoFocus: (event) => {
1057
+ onCloseAutoFocus?.(event);
1058
+ if (focusMovedPastMenu(event)) event.preventDefault();
1059
+ },
1046
1060
  className: cn("z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-[var(--item-radius)] border border-border/60 bg-popover p-1 text-popover-foreground shadow-md", "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]", className),
1047
1061
  ...props
1048
1062
  })
@@ -1729,7 +1743,10 @@ const READINESS_REASON_COPY = {
1729
1743
  product_gone: "The product this block showed is no longer available. Choose another one. Until you do, this block stays hidden from visitors.",
1730
1744
  gallery_empty: "Add a photo. Until you do, this gallery stays hidden from visitors."
1731
1745
  };
1732
- const HIDDEN_REASON_COPY = { events_empty: "Nothing's scheduled here yet, so visitors won't see this section. It'll appear once you add something." };
1746
+ const HIDDEN_REASON_COPY = {
1747
+ events_empty: "Nothing's scheduled here yet, so visitors won't see this section. It'll appear once you add something.",
1748
+ events_coming_up: "The events you picked have dates coming up, so visitors won't see this signup. It'll come back once those dates have passed."
1749
+ };
1733
1750
  //#endregion
1734
1751
  //#region ../editor-blocks/src/block-form/debug.ts
1735
1752
  const noop = () => {};
@@ -2602,8 +2619,14 @@ function surfaceForToken(options, token) {
2602
2619
  //#region ../preview-next/src/client/blocks/blockNeedsSetup.ts
2603
2620
  /** The short label every editing surface uses for a block that isn't set up. */
2604
2621
  const NEEDS_SETUP_LABEL = "Needs setting up";
2605
- const HIDDEN_LABEL = { events_empty: "Hidden while empty" };
2606
- const HIDDEN_ACTION = { events_empty: "Choose what shows when empty" };
2622
+ const HIDDEN_LABEL = {
2623
+ events_empty: "Hidden while empty",
2624
+ events_coming_up: "Hidden while dates are coming up"
2625
+ };
2626
+ const HIDDEN_ACTION = {
2627
+ events_empty: "Choose what shows when empty",
2628
+ events_coming_up: "Choose when this shows"
2629
+ };
2607
2630
  /**
2608
2631
  * Whether the draft as rendered needs setting up. This reads the preview's own
2609
2632
  * render, so it's for editing surfaces; publishing checks published facts on the server.
@@ -841,7 +841,7 @@
841
841
  :where([data-block='event-registration'].event-registration--embedded)
842
842
  .er-container {
843
843
  display: flex;
844
- max-height: calc(100dvh - 9rem);
844
+ max-height: calc(100dvh - var(--site-sticky-chrome-height, 0px) - 7.5rem);
845
845
  min-height: 0;
846
846
  }
847
847
 
@@ -1107,8 +1107,8 @@
1107
1107
  :where(.theme-scope:is(*, :scope))
1108
1108
  :where([data-block='event-calendar'])
1109
1109
  .event-calendar-container {
1110
- margin-left: -1.5rem;
1111
- margin-right: -1.5rem;
1110
+ /* Edge to edge on a phone, whatever gutter the site style gives the page. */
1111
+ margin-inline: calc(50% - 50cqi);
1112
1112
  border-left: none;
1113
1113
  border-right: none;
1114
1114
  border-radius: 0;
@@ -3295,6 +3295,13 @@
3295
3295
  }
3296
3296
  @container rb-site (max-width: 767px) {
3297
3297
  @scope ([data-rb-responsive-mode="container"]) to (:scope [data-rb-responsive-mode]) {
3298
+ [data-skin="orbit"]:is(*, :scope) [data-arrangement][data-treat="cta-panel"] [data-slot="copy"]:not(:has(> [data-slot="actions"])) { grid-template-columns: minmax(0, 1fr); row-gap: 1rem; }
3299
+ [data-skin="orbit"]:is(*, :scope) [data-arrangement][data-treat="cta-panel"] [data-slot="copy"]:not(:has(> [data-slot="actions"]))::before { grid-row: auto; }
3300
+ [data-skin="orbit"]:is(*, :scope) [data-arrangement][data-treat="cta-panel"] [data-slot="copy"]:not(:has(> [data-slot="actions"])) > * { grid-column: 1; }
3301
+ }
3302
+ }
3303
+ @container rb-site (max-width: 767px) {
3304
+ @scope ([data-rb-responsive-mode="container"]) to (:scope [data-rb-responsive-mode]) {
3298
3305
  [data-skin="orbit"]:is(*, :scope) [data-arrangement]:is([data-treat="cta-centred"], [data-treat="cta-panel"], [data-treat="cta-beside"]) [data-slot="actions"] > * { box-sizing: border-box; flex: 1 1 100%; justify-content: center; }
3299
3306
  /* The panel sits straight in the section, so on a phone it keeps the page gutter itself. */
3300
3307
  [data-skin="orbit"]:is(*, :scope) [data-arrangement][data-treat="cta-panel"] [data-slot="section"] > [data-slot="copy"] { margin-inline: 1rem; }
@@ -3387,3 +3394,44 @@
3387
3394
  }
3388
3395
  }
3389
3396
  }
3397
+ @layer rb-utilities {
3398
+ @container rb-site (min-width: 1024px) {
3399
+ @scope ([data-rb-responsive-mode="container"]) to (:scope [data-rb-responsive-mode]) {
3400
+ :where(.theme-scope:is(*, :scope)) .rb-page-layout [data-page-region="main"] [data-block]:not([data-block="hero"]) :is([data-slot="frame"], [data-slot="layout"], [data-slot="lead"]) {
3401
+ grid-template-columns: minmax(0, 1fr) !important;
3402
+ width: auto !important;
3403
+ max-width: 100% !important;
3404
+ margin-inline: 0 !important;
3405
+ }
3406
+ :where(.theme-scope:is(*, :scope)) .rb-page-layout [data-page-region="main"] [data-block]:not([data-block="hero"]) :is([data-slot="frame"], [data-slot="layout"], [data-slot="lead"]) > * {
3407
+ grid-column: 1 / -1 !important;
3408
+ grid-row: auto !important;
3409
+ }
3410
+ /* Looks that never stack on a wide screen can leave no gap between the rows. */
3411
+ :where(.theme-scope:is(*, :scope)) .rb-page-layout [data-page-region="main"] [data-block]:not([data-block="hero"]) [data-slot="frame"] {
3412
+ row-gap: var(--rb-skin-stack-gap, 2rem) !important;
3413
+ }
3414
+ /* A photo running off the page's edge stops at the column's edge instead. */
3415
+ :where(.theme-scope:is(*, :scope)) .rb-page-layout [data-page-region="main"] [data-block]:not([data-block="hero"]) [data-slot="frame"] > [data-slot="media"] {
3416
+ --rb-edge-bleed: 0px !important;
3417
+ }
3418
+ /* So does a photo that a reading column widens past its words. */
3419
+ :where(.theme-scope:is(*, :scope)) .rb-page-layout [data-page-region="main"] [data-block]:not([data-block="hero"]) :is([data-slot="copy"], [data-slot="item-body"]) [data-slot="photo"] {
3420
+ width: 100% !important;
3421
+ margin-inline: 0 !important;
3422
+ }
3423
+ /* Cards: two across only when two fit, whatever count the Look asks for. */
3424
+ :where(.theme-scope:is(*, :scope)) .rb-page-layout [data-page-region="main"] [data-block="feature-cards"] :is([data-slot="items"], [data-card-list]) {
3425
+ grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)) !important;
3426
+ }
3427
+ :where(.theme-scope:is(*, :scope)) .rb-page-layout [data-page-region="main"] [data-block="feature-cards"] :is([data-slot="items"], [data-card-list]) > * {
3428
+ grid-column: auto !important;
3429
+ grid-row: auto !important;
3430
+ }
3431
+ /* A list's heading goes above its ticks, so a long word in it can't reach them. */
3432
+ :where(.theme-scope:is(*, :scope)) .rb-page-layout [data-page-region="main"] .rb-list-ticks {
3433
+ grid-template-columns: minmax(0, 1fr) !important;
3434
+ }
3435
+ }
3436
+ }
3437
+ }
@@ -1,5 +1,5 @@
1
1
  import { i as PREVIEW_REFRESH_COOKIE_NAME, r as PREVIEW_COOKIE_NAME } from "./constants-Bf-vqdKH.mjs";
2
- import { n as buildPreviewAuthRefreshUrl, r as setPreviewAuthCookies } from "./route-contract-BOuNcOcN.mjs";
2
+ import { n as buildPreviewAuthRefreshUrl, r as setPreviewAuthCookies } from "./route-contract-BYezcMx5.mjs";
3
3
  import { t as decodeJwtPayload } from "./jwt-BHfnwjzx.mjs";
4
4
  import { NextResponse } from "next/server";
5
5
  import { z } from "zod";
@@ -1,5 +1,5 @@
1
1
  import { t as PREVIEW_CODE_PARAM } from "./constants-Bf-vqdKH.mjs";
2
- import { i as setPreviewTilesKeyCookie, r as setPreviewAuthCookies, t as buildPreviewAuthExchangeUrl } from "./route-contract-BOuNcOcN.mjs";
2
+ import { i as setPreviewTilesKeyCookie, r as setPreviewAuthCookies, t as buildPreviewAuthExchangeUrl } from "./route-contract-BYezcMx5.mjs";
3
3
  import { NextResponse } from "next/server";
4
4
  //#region ../preview-next/src/middleware.ts
5
5
  const EXCHANGE_CODE_PATTERN = /^[A-Za-z0-9_-]{40,256}$/;
@@ -1037,6 +1037,42 @@ const APPOINTMENT_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
1037
1037
  "server:internal_error"
1038
1038
  ]
1039
1039
  },
1040
+ updateOwnTrainerProfile: {
1041
+ path: "/sites/{siteId}/bookings/my-trainer-profile",
1042
+ method: "PUT",
1043
+ auth: "user",
1044
+ responseKind: "json",
1045
+ errors: [
1046
+ "validation:invalid_input",
1047
+ "auth:forbidden",
1048
+ "resource:not_found",
1049
+ "server:internal_error"
1050
+ ]
1051
+ },
1052
+ createOwnTrainerPhotoUploadUrl: {
1053
+ path: "/sites/{siteId}/bookings/my-trainer-profile/photo/upload-url",
1054
+ method: "POST",
1055
+ tags: ["media"],
1056
+ auth: "user",
1057
+ responseKind: "json",
1058
+ errors: [
1059
+ "validation:invalid_input",
1060
+ "auth:forbidden",
1061
+ "server:internal_error"
1062
+ ]
1063
+ },
1064
+ finalizeOwnTrainerPhotoUpload: {
1065
+ path: "/sites/{siteId}/bookings/my-trainer-profile/photo/finalize",
1066
+ method: "POST",
1067
+ tags: ["media"],
1068
+ auth: "user",
1069
+ responseKind: "json",
1070
+ errors: [
1071
+ "validation:invalid_input",
1072
+ "auth:forbidden",
1073
+ "server:internal_error"
1074
+ ]
1075
+ },
1040
1076
  createTeamMemberProfile: {
1041
1077
  path: "/sites/{siteId}/bookings/resources/{resourceId}/profile",
1042
1078
  method: "POST",
@@ -1318,6 +1354,13 @@ const APPOINTMENT_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
1318
1354
  auth: "user",
1319
1355
  responseKind: "json"
1320
1356
  },
1357
+ makeAppointmentServiceStudio: {
1358
+ path: "/sites/{siteId}/bookings/services/{serviceId}/make-studio",
1359
+ method: "POST",
1360
+ auth: "user",
1361
+ responseKind: "json",
1362
+ errors: []
1363
+ },
1321
1364
  listAvailabilityRules: {
1322
1365
  path: "/sites/{siteId}/bookings/resources/{resourceId}/availability",
1323
1366
  method: "GET",
@@ -1671,6 +1714,18 @@ const EVENT_SERIES_REGISTRATION_ENDPOINT_DEFINITIONS = defineEndpointDefinitions
1671
1714
  "server:internal_error"
1672
1715
  ]
1673
1716
  },
1717
+ findTransferRecipient: {
1718
+ path: "/sites/{siteId}/bookings/transfer-recipient",
1719
+ method: "POST",
1720
+ auth: "user",
1721
+ responseKind: "json",
1722
+ demoMutation: DEMO_MUTATION_ALLOWED,
1723
+ errors: [
1724
+ "validation:invalid_input",
1725
+ "auth:forbidden",
1726
+ "server:internal_error"
1727
+ ]
1728
+ },
1674
1729
  correctBookingCheckIn: {
1675
1730
  path: "/sites/{siteId}/bookings/attendees/{attendeeId}/check-in",
1676
1731
  method: "PATCH",
@@ -3940,12 +3995,37 @@ const BOOKING_PEOPLE_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
3940
3995
  "server:internal_error"
3941
3996
  ]
3942
3997
  },
3998
+ exportPersonDataReadable: {
3999
+ path: "/sites/{siteId}/bookings/people/{personId}/export.html",
4000
+ method: "GET",
4001
+ auth: "user",
4002
+ responseKind: "blob",
4003
+ tags: ["site-{siteId}", "customers-{siteId}"],
4004
+ errors: [
4005
+ "auth:forbidden",
4006
+ "resource:not_found",
4007
+ "server:internal_error"
4008
+ ]
4009
+ },
3943
4010
  lookupBookingPersonByEmail: {
3944
4011
  path: "/sites/{siteId}/bookings/people/lookup-email",
3945
4012
  method: "POST",
3946
4013
  tags: ["site-{siteId}"],
3947
4014
  auth: "user",
3948
4015
  responseKind: "json",
4016
+ errors: [
4017
+ "auth:forbidden",
4018
+ "validation:invalid_input",
4019
+ "rate_limit:exceeded",
4020
+ "server:internal_error"
4021
+ ]
4022
+ },
4023
+ addStaffClient: {
4024
+ path: "/sites/{siteId}/bookings/people/add-client",
4025
+ method: "POST",
4026
+ tags: ["site-{siteId}", "customers-{siteId}"],
4027
+ auth: "user",
4028
+ responseKind: "json",
3949
4029
  errors: [
3950
4030
  "auth:forbidden",
3951
4031
  "validation:invalid_input",
@@ -4454,18 +4534,6 @@ const API_ENDPOINTS = {
4454
4534
  "server:internal_error"
4455
4535
  ]
4456
4536
  },
4457
- turnOnCourses: {
4458
- path: "/sites/{siteId}/bookings/settings/courses",
4459
- method: "POST",
4460
- tags: [TAG_TEMPLATES.site, TAG_TEMPLATES.siteBookingSettings],
4461
- auth: "user",
4462
- responseKind: "json",
4463
- errors: [
4464
- "auth:forbidden",
4465
- "resource:conflict",
4466
- "server:internal_error"
4467
- ]
4468
- },
4469
4537
  sendTestEmail: {
4470
4538
  path: "/sites/{siteId}/settings/emails/test",
4471
4539
  method: "POST",
@@ -5863,6 +5931,19 @@ const API_ENDPOINTS = {
5863
5931
  ],
5864
5932
  responseKind: "json"
5865
5933
  },
5934
+ accountUpdateName: {
5935
+ path: "/account/name",
5936
+ method: "POST",
5937
+ tags: ["account"],
5938
+ auth: "user",
5939
+ errors: [
5940
+ "auth:unauthenticated",
5941
+ "auth:forbidden",
5942
+ "validation:invalid_input",
5943
+ "server:internal_error"
5944
+ ],
5945
+ responseKind: "json"
5946
+ },
5866
5947
  accountDismissTwoStepPrompt: {
5867
5948
  path: "/account/two-step-prompt/dismiss",
5868
5949
  method: "POST",
@@ -8242,6 +8323,7 @@ const API_ENDPOINTS = {
8242
8323
  responseKind: "json",
8243
8324
  errors: [
8244
8325
  "validation:invalid_input",
8326
+ "auth:forbidden",
8245
8327
  "resource:already_exists",
8246
8328
  "server:internal_error"
8247
8329
  ]
@@ -1,9 +1,9 @@
1
- import { Jn as resolveDateRuntimeContext, Rn as siteFooterManifest, Rs as toUtcIsoDateTimeString, dt as setContextResolveImageUrlContext, lt as buildResolveImageUrlContext, qn as readRuntimeNow, t as getBlockDefinition, zn as siteHeaderManifest } from "./registry-DmqxC8th.mjs";
2
- import { _ as parseBlocksTheme, a as planLayoutThemeRuntime, b as getDefaultComponentRegistry, c as solvedInksForThemeRuntime, f as PageRenderer, g as buildThemeRuntime, m as toBlocksImageResolveContextInput, o as renderWithOverrideOnlyRuntime, s as renderWithSdkThemeRuntime, v as makeDefaultBlockComponent, y as renderBlock } from "./pageShared-CuVFoV4z.mjs";
3
- import { f as resolveSiteCustomBlocks, n as buildRenderablePageOutline } from "./pageRuntimeSupport-8-f1Zr9e.mjs";
1
+ import { Jn as siteHeaderManifest, Ks as toUtcIsoDateTimeString, ft as buildResolveImageUrlContext, mt as setContextResolveImageUrlContext, nr as readRuntimeNow, qn as siteFooterManifest, rr as resolveDateRuntimeContext, t as getBlockDefinition } from "./registry-CXRXsFSx.mjs";
2
+ import { _ as parseBlocksTheme, a as planLayoutThemeRuntime, b as getDefaultComponentRegistry, c as solvedInksForThemeRuntime, f as PageRenderer, g as buildThemeRuntime, m as toBlocksImageResolveContextInput, o as renderWithOverrideOnlyRuntime, s as renderWithSdkThemeRuntime, v as makeDefaultBlockComponent, y as renderBlock } from "./pageShared-D23o5QgC.mjs";
3
+ import { f as resolveSiteCustomBlocks, n as buildRenderablePageOutline, o as projectRenderablePageOutline } from "./pageRuntimeSupport-uz4gzBOo.mjs";
4
4
  import { n as buildFooterMenu, r as buildFooterMenuForRole, s as buildMenu, t as buildChromeLogoContent } from "./navigation-iC_hXjJI.mjs";
5
5
  import { n as resolveSdkFooterMode, t as resolveFooterRenderPlan } from "./mode-bkFS8glh.mjs";
6
- import { n as prefetchBlockDataWithFailures } from "./prefetchBlockData-5oC5kyHe.mjs";
6
+ import { n as prefetchBlockDataWithFailures, r as planBlockDataRequests, t as SUPPORTED_LOADER_ENDPOINTS } from "./prefetchBlockData-CCiYV8_s.mjs";
7
7
  import { r as requireSdkTheme } from "./themeAdmission-DGSAlFUK.mjs";
8
8
  import { a as defaultOverrideOnlyRuntime, c as getRiverbankEnv } from "./overrides-CD4d-1w7.mjs";
9
9
  import "react";
@@ -27,6 +27,36 @@ function buildFooterRenderablePageOutline(siteData, blocks) {
27
27
  customBlocks: resolveSiteCustomBlocks(siteData)
28
28
  });
29
29
  }
30
+ function footerLoaderInputs(siteData, options) {
31
+ return {
32
+ page: projectRenderablePageOutline(buildFooterRenderablePageOutline(siteData, siteData.footerBlocks ?? [])),
33
+ context: {
34
+ siteId: siteData.site.id,
35
+ previewStage: options.previewStage ?? "published",
36
+ root: {
37
+ now: toUtcIsoDateTimeString((/* @__PURE__ */ new Date()).toISOString()),
38
+ bookingTimeZone: siteData.bookingTimeZone
39
+ }
40
+ }
41
+ };
42
+ }
43
+ /**
44
+ * Run the loaders of a site's footer blocks, for a footer `PageRenderer`.
45
+ *
46
+ * A custom footer callback calls this itself and passes the result in its data
47
+ * context, or hands it to `Layout` as `footerBlockData`. Without it, a map in the
48
+ * footer that needs a venue or the business address is left out for visitors.
49
+ */
50
+ async function prefetchFooterBlockData(client, siteData, options = {}) {
51
+ const { page, context } = footerLoaderInputs(siteData, options);
52
+ return prefetchBlockDataWithFailures(page, context, client, { customBlocks: resolveSiteCustomBlocks(siteData) });
53
+ }
54
+ /** Whether a footer needs `prefetchFooterBlockData`, for the warning `Layout` gives when it can't run it. */
55
+ function footerBlocksNeedLoaders(siteData, options = {}) {
56
+ const { page, context } = footerLoaderInputs(siteData, options);
57
+ const supported = SUPPORTED_LOADER_ENDPOINTS;
58
+ return planBlockDataRequests(page, context, { isValidEndpoint: (endpoint) => supported.includes(endpoint) }).blocks.some((block) => block.requests.length > 0);
59
+ }
30
60
  //#endregion
31
61
  //#region src/rendering/components/Layout.tsx
32
62
  /**
@@ -117,7 +147,7 @@ async function Layout(props) {
117
147
  const header = props.header ?? true;
118
148
  const footer = props.footer ?? true;
119
149
  const siteData = await resolveLayoutSiteData(props);
120
- const { site, navigation, layout, routes, footerBlocks = [] } = siteData;
150
+ const { site, navigation, layout, routes } = siteData;
121
151
  const navigationOptions = {
122
152
  hasPortalSession,
123
153
  previewStage,
@@ -143,7 +173,8 @@ async function Layout(props) {
143
173
  legalFooterMenu: legalFooterMenuViewModel,
144
174
  ...chromeLogoContent,
145
175
  site,
146
- routes
176
+ routes,
177
+ footerBlocks: await prepareFooterBlocks(props, siteData, previewStage)
147
178
  };
148
179
  if (isOverrideOnlyLayout(props)) return renderOverrideOnlyLayout(props, {
149
180
  header: props.header ?? true,
@@ -179,10 +210,9 @@ async function Layout(props) {
179
210
  } : theme;
180
211
  const blocksThemeWithVariant = themeWithVariant;
181
212
  const blocksTheme = theme;
182
- const apiBaseUrl = resolveLayoutApiBaseUrl();
183
213
  const sharedViewModelOverrides = {
184
214
  $root: buildLayoutRootContext(siteData, {
185
- apiBaseUrl,
215
+ apiBaseUrl: resolveLayoutApiBaseUrl(),
186
216
  previewStage,
187
217
  theme: themeWithVariant
188
218
  }),
@@ -217,17 +247,16 @@ async function Layout(props) {
217
247
  isSdkSite: Boolean(site.is_sdk_site),
218
248
  mode: resolveSdkFooterMode(siteData.sdkConfig)
219
249
  });
220
- const footerBlocksElement = footerPlan.renderFooterBlocks && footerBlocks.length > 0 ? /* @__PURE__ */ jsx(PageRenderer, {
250
+ const footerBlocks = customFooterData.footerBlocks;
251
+ const footerBlocksElement = footerBlocks ? /* @__PURE__ */ jsx(PageRenderer, {
221
252
  theme,
222
253
  themeTokens: builtThemeRuntime.tokens,
223
254
  headingScope: "region",
224
- page: buildFooterRenderablePageOutline(siteData, footerBlocks),
225
- routeMap: routes,
226
- dataContext: buildLayoutRootContext(siteData, {
227
- apiBaseUrl,
228
- previewStage,
255
+ ...footerBlocks,
256
+ dataContext: {
257
+ ...footerBlocks.dataContext,
229
258
  theme: themeWithVariant
230
- }),
259
+ },
231
260
  sdkConfig: siteData.sdkConfig ?? null
232
261
  }) : null;
233
262
  if (footerPlan.renderFooterBlocks && !footerBlocksElement && process.env.NODE_ENV !== "production") console.debug("[sdk] Footer mode renders blocks, but footerBlocks is empty/missing", {
@@ -257,6 +286,44 @@ async function Layout(props) {
257
286
  ] })
258
287
  });
259
288
  }
289
+ /** Footer data is loaded once here, for the built-in footer and a custom callback alike. */
290
+ async function prepareFooterBlocks(props, siteData, previewStage) {
291
+ const footer = props.footer ?? true;
292
+ const blocks = siteData.footerBlocks ?? [];
293
+ if (footer === false || blocks.length === 0) return null;
294
+ if (footer === true && !siteRendersFooterBlocks(siteData)) return null;
295
+ return {
296
+ page: buildFooterRenderablePageOutline(siteData, blocks),
297
+ routeMap: siteData.routes,
298
+ dataContext: {
299
+ ...buildLayoutRootContext(siteData, {
300
+ apiBaseUrl: resolveLayoutApiBaseUrl(),
301
+ previewStage
302
+ }),
303
+ ...footerLoaderContext(await resolveFooterBlockData(props, siteData, previewStage))
304
+ }
305
+ };
306
+ }
307
+ function siteRendersFooterBlocks(siteData) {
308
+ return resolveFooterRenderPlan({
309
+ isSdkSite: Boolean(siteData.site.is_sdk_site),
310
+ mode: resolveSdkFooterMode(siteData.sdkConfig)
311
+ }).renderFooterBlocks;
312
+ }
313
+ function footerLoaderContext(data) {
314
+ return data ? {
315
+ resolvedData: data.resolvedData,
316
+ loaderFailures: data.loaderFailures,
317
+ loaderSnapshot: data.loaderSnapshot,
318
+ prefetchedBlockData: data
319
+ } : {};
320
+ }
321
+ /** Requiring a client would break every `siteData` caller, so an unloaded footer block is left out instead. */
322
+ async function resolveFooterBlockData(props, siteData, previewStage) {
323
+ if (props.footerBlockData) return props.footerBlockData;
324
+ if (props.client) return prefetchFooterBlockData(props.client, siteData, { previewStage });
325
+ if (process.env.NODE_ENV !== "production" && footerBlocksNeedLoaders(siteData, { previewStage })) console.warn("[sdk] Layout has footer blocks that load data, but no client or footerBlockData, so they will not show. Pass client, or footerBlockData from prefetchFooterBlockData.");
326
+ }
260
327
  /** Shared public facts for SDK chrome; no customer acceptance is present. */
261
328
  function buildLayoutRootContext(siteData, input) {
262
329
  return {
@@ -272,6 +339,7 @@ function buildLayoutRootContext(siteData, input) {
272
339
  siteTerms: siteData.siteTerms,
273
340
  mailingList: siteData.mailingList,
274
341
  interactionContext: siteData.interactionContext,
342
+ siteCountry: siteData.site.siteCountry ?? null,
275
343
  theme: input.theme
276
344
  };
277
345
  }
@@ -440,4 +508,4 @@ async function BlockContent(props) {
440
508
  });
441
509
  }
442
510
  //#endregion
443
- export { buildFooterRenderablePageOutline as a, UnsupportedOverrideOnlyLayoutChromeError as i, toBlockHydrationBootstrapConfig as n, Layout as r, BlockContent as t };
511
+ export { buildFooterRenderablePageOutline as a, UnsupportedOverrideOnlyLayoutChromeError as i, toBlockHydrationBootstrapConfig as n, prefetchFooterBlockData as o, Layout as r, BlockContent as t };
@@ -1,7 +1,7 @@
1
1
  import { $ as SURFACE_FOREGROUND_CSS_VARS, Dt as parseThemeColorToken, Et as parseColorTokenParts, Q as DEFAULT_SURFACE_TEXT_COLOR, at as surfaceForegroundValue, et as SURFACE_INK_CSS_VARS, ft as cssVarValue, lt as surfaceInkValue, mt as rgbColorValue, ot as surfaceForegroundValueWithOpacity, st as surfaceInkDeclarations } from "./resolveButtonColourStates--6yJp9Tq.mjs";
2
2
  import { F as resolveSurfaceForeground, I as safeTokenOr, K as resolveOpaqueSurfaceHex, L as surfaceInkPublication, g as actionVariableFallback, o as resolveSurface, r as prepareSurfaceIndex, z as solveSurfaceInks } from "./accessibleSurfaces-CM3QANtw.mjs";
3
- import { r as customCssRuleSchema, t as blockCustomCssRuleSchema } from "./customCss-BGB8gMVb.mjs";
4
- import { P as opaqueSurfaceDeclarations, t as generateLookMediaFrameCss } from "./lookMediaFrame-BBr0mkze.mjs";
3
+ import { r as customCssRuleSchema, t as blockCustomCssRuleSchema } from "./customCss-BZ8YSrQg.mjs";
4
+ import { M as opaqueSurfaceDeclarations, t as generateLookMediaFrameCss } from "./lookMediaFrame-CaH018pK.mjs";
5
5
  import "react";
6
6
  import { jsx, jsxs } from "react/jsx-runtime";
7
7
  //#region ../theme-core/src/cards/decorations.ts
@@ -409,6 +409,20 @@ const opaquePanels = [
409
409
  kind: "solid",
410
410
  token: "surface"
411
411
  }
412
+ },
413
+ {
414
+ selector: "[data-block=\"gifting\"] .gifting-panel",
415
+ paint: {
416
+ kind: "solid",
417
+ token: "surface"
418
+ }
419
+ },
420
+ {
421
+ selector: "[data-block=\"gifting\"] .gifting-field :is(input, textarea)",
422
+ paint: {
423
+ kind: "solid",
424
+ token: "surface"
425
+ }
412
426
  }
413
427
  ];
414
428
  /**
@@ -1,10 +1,10 @@
1
- import { et as parseStoredVariant, nt as lookFillPartsFromContent, rt as resolveRuntimeSection, t as buildPageRenderPlan } from "./pageRenderPlan-0jvm0RBk.mjs";
2
- import { $a as filterLookIdsForPolicy, Ao as transitionIntentForTreatment, Ba as compileArrangementLookRuntime, Co as boundaryOptions, Do as noneBoundaryOption, Eo as isDecorativeTransitionIntent, Fi as plainTextToInlineText, Fo as parseCanonicalRuntimeBackground, Ha as resolveArrangementLookForBlock, Ia as arrangementAppearancePresets, Io as resolveSectionBackground, Ka as readStoredMode, Oo as softBoundaryOption, Qa as filterLayoutProfilesForPolicy, Ra as arrangementStyleAvailability, So as boundaryOptionForTransitionIntent, Sr as resolveDeclaredBlockDesignCapability, To as boundaryTreatmentForBoundaryOptionId, Ua as resolveLookForBlock, Va as getCompatibleBlockAppearancePresets, Za as deriveSiteStyleBlockPolicy, _o as resolvePageDesignBlockLookChoice, ao as stripCompiledRuntimeStyleFields, ba as isRecord, ct as systemCustomizeFacetDefinitionsForBlock, io as compilePageRuntimeFields, ko as spaciousBoundaryOption, no as getCuratedSiteStyle, nr as formatDate, qa as resolveEffectiveArrangement, t as getBlockDefinition, vo as resolvePageDesignBoundaryChoice, za as automaticArrangementLook } from "./registry-DmqxC8th.mjs";
3
- import { E as asPageFlowPresetId, O as makeBoundaryId, T as asLayoutVariantKey, _ as isArrangementMode } from "./customCss-BGB8gMVb.mjs";
4
- import { r as sectionStylesOverrideSchema } from "./schema-CUDHMirj.mjs";
5
- import { h as registeredManifestContentContract, p as admitTransportedRenderableManifestContent } from "./pageRuntimeSupport-8-f1Zr9e.mjs";
1
+ import { et as parseStoredVariant, nt as lookFillPartsFromContent, rt as resolveRuntimeSection, t as buildPageRenderPlan } from "./pageRenderPlan-CfSnAkCO.mjs";
2
+ import { Aa as arrangementStyleAvailability, Ao as resolveSectionBackground, Co as spaciousBoundaryOption, Fa as resolveLookForBlock, Ga as filterLookIdsForPolicy, Gi as plainTextToInlineText, Ja as getCuratedSiteStyle, Ma as compileArrangementLookRuntime, Mo as defaultHeroImageSurfaceTreatment, Na as getCompatibleBlockAppearancePresets, Oa as arrangementAppearancePresets, Pa as resolveArrangementLookForBlock, Qi as isRecord, Ra as readStoredMode, So as softBoundaryOption, Ua as deriveSiteStyleBlockPolicy, Wa as filterLayoutProfilesForPolicy, Xa as compilePageRuntimeFields, Za as stripCompiledRuntimeStyleFields, _o as boundaryOptions, bo as isDecorativeTransitionIntent, do as resolvePageDesignBlockLookChoice, dr as formatDate, dt as systemCustomizeFacetDefinitionsForBlock, fo as resolvePageDesignBoundaryChoice, go as boundaryOptionForTransitionIntent, ja as automaticArrangementLook, jr as resolveDeclaredBlockDesignCapability, ko as parseCanonicalRuntimeBackground, t as getBlockDefinition, wo as transitionIntentForTreatment, xo as noneBoundaryOption, yo as boundaryTreatmentForBoundaryOptionId, za as resolveEffectiveArrangement } from "./registry-CXRXsFSx.mjs";
3
+ import { E as asPageFlowPresetId, O as makeBoundaryId, T as asLayoutVariantKey, _ as isArrangementMode } from "./customCss-BZ8YSrQg.mjs";
4
+ import { r as sectionStylesOverrideSchema } from "./schema-BpsqaSSU.mjs";
5
+ import { h as registeredManifestContentContract, p as admitTransportedRenderableManifestContent } from "./pageRuntimeSupport-uz4gzBOo.mjs";
6
6
  import { a as isRichTextDoc } from "./richTextSchema-QLaQrbII.mjs";
7
- import { E as sectionBackgroundPaintValues, O as toNonEmptyReadonlyArray, _ as designIssueSeverityForPolicy, d as lookModes, f as assertNever, p as defineBlockDesignCapability, w as plainFrame } from "./lookMediaFrame-BBr0mkze.mjs";
7
+ import { E as toNonEmptyReadonlyArray, S as plainFrame, _ as designIssueSeverityForPolicy, d as lookModes, f as assertNever, p as defineBlockDesignCapability, w as sectionBackgroundPaintValues } from "./lookMediaFrame-CaH018pK.mjs";
8
8
  import { t as BINDING_TRANSFORMS } from "./bindings-DhmIW3Er.mjs";
9
9
  //#region ../theme-core/src/site-styles/resolver.ts
10
10
  const repairActionsByIssueKind = {
@@ -23,8 +23,7 @@ const repairActionsByIssueKind = {
23
23
  "unsupported-block-composition": ["remove-composition"],
24
24
  "image-surface-treatment-without-image-surface": ["fallback-image-surface-treatment"],
25
25
  "image-surface-motion-without-image-surface": ["fallback-image-surface-motion"],
26
- "hero-legibility-overridden-by-image-surface-treatment": ["remove-hero-legibility"],
27
- "hero-image-without-legibility": ["fallback-hero-legibility"]
26
+ "hero-image-without-treatment": ["fallback-image-surface-treatment"]
28
27
  };
29
28
  function repairActionsForIssue(issueKind) {
30
29
  return repairActionsByIssueKind[issueKind];
@@ -67,7 +66,6 @@ const blockDesignFallback = {
67
66
  sectionSurface: "base",
68
67
  contentFrame: plainFrame,
69
68
  sectionHeight: "default",
70
- heroLegibility: "none",
71
69
  imageSurfaceTreatment: { kind: "none" },
72
70
  imageSurfaceMotion: "static",
73
71
  tileTreatment: "default",
@@ -83,7 +81,6 @@ const appliedBlockDesignFallback = {
83
81
  appliedContentFrame: blockDesignFallback.contentFrame,
84
82
  appliedCardRole: null,
85
83
  appliedSectionHeight: blockDesignFallback.sectionHeight,
86
- appliedHeroLegibility: blockDesignFallback.heroLegibility,
87
84
  appliedImageSurfaceTreatment: blockDesignFallback.imageSurfaceTreatment,
88
85
  appliedImageSurfaceMotion: blockDesignFallback.imageSurfaceMotion,
89
86
  appliedTileTreatment: blockDesignFallback.tileTreatment,
@@ -108,7 +105,6 @@ function blockDesignRequest(block) {
108
105
  contentFrame: block.contentFrame,
109
106
  ...block.cardRole ? { cardRole: block.cardRole } : {},
110
107
  sectionHeight: block.sectionHeight,
111
- heroLegibility: block.heroLegibility,
112
108
  imageSurfaceTreatment: block.imageSurfaceTreatment,
113
109
  imageSurfaceMotion: block.imageSurfaceMotion,
114
110
  tileTreatment: block.tileTreatment,
@@ -127,7 +123,6 @@ function resolveBlockDesignPlan(input) {
127
123
  let appliedContentFrame = block.contentFrame;
128
124
  const appliedCardRole = appliedCardRoleFor(block, capability);
129
125
  let appliedSectionHeight = block.sectionHeight ?? "default";
130
- let appliedHeroLegibility = block.heroLegibility ?? "none";
131
126
  let appliedImageSurfaceTreatment = block.imageSurfaceTreatment ?? { kind: "none" };
132
127
  let appliedImageSurfaceMotion = block.imageSurfaceMotion ?? "static";
133
128
  let appliedTileTreatment = block.tileTreatment ?? "default";
@@ -354,33 +349,18 @@ function resolveBlockDesignPlan(input) {
354
349
  allowedRepairActions: repairActionsForIssue("image-surface-motion-without-image-surface")
355
350
  });
356
351
  }
357
- if (appliedSectionSurface === "hero-image" && appliedImageSurfaceTreatment.kind !== "none" && appliedHeroLegibility !== "none") {
358
- const requested = appliedHeroLegibility;
359
- appliedHeroLegibility = "none";
352
+ if (appliedSectionSurface === "hero-image" && appliedImageSurfaceTreatment.kind === "none") {
353
+ appliedImageSurfaceTreatment = defaultHeroImageSurfaceTreatment;
360
354
  issues.push({
361
- kind: "hero-legibility-overridden-by-image-surface-treatment",
355
+ kind: "hero-image-without-treatment",
362
356
  blockId: block.blockId,
363
357
  blockKind: block.blockKind,
364
358
  purpose: block.purpose,
365
- requested,
366
- fallback: appliedHeroLegibility,
367
- policy: input.policy,
368
- severity: designIssueSeverityForPolicy(input.policy),
369
- allowedRepairActions: repairActionsForIssue("hero-legibility-overridden-by-image-surface-treatment")
370
- });
371
- }
372
- if (appliedSectionSurface === "hero-image" && appliedImageSurfaceTreatment.kind === "none" && (block.heroLegibility === void 0 || appliedHeroLegibility === "none")) {
373
- appliedHeroLegibility = "scrim-gradient";
374
- issues.push({
375
- kind: "hero-image-without-legibility",
376
- blockId: block.blockId,
377
- blockKind: block.blockKind,
378
- purpose: block.purpose,
379
- requested: block.heroLegibility,
380
- fallback: appliedHeroLegibility,
359
+ requested: block.imageSurfaceTreatment,
360
+ fallback: appliedImageSurfaceTreatment,
381
361
  policy: input.policy,
382
362
  severity: designIssueSeverityForPolicy(input.policy),
383
- allowedRepairActions: repairActionsForIssue("hero-image-without-legibility")
363
+ allowedRepairActions: repairActionsForIssue("hero-image-without-treatment")
384
364
  });
385
365
  }
386
366
  return {
@@ -390,7 +370,6 @@ function resolveBlockDesignPlan(input) {
390
370
  appliedCardRole,
391
371
  appliedSectionBackgroundPaints: capability.sectionBackgroundPaints,
392
372
  appliedSectionHeight,
393
- appliedHeroLegibility,
394
373
  appliedImageSurfaceTreatment,
395
374
  appliedImageSurfaceMotion,
396
375
  appliedTileTreatment,