@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,10 +1,10 @@
1
1
  "use client";
2
- import { $r as selectBlockContent, Aa as formEmbedFragment, As as isRecord$1, Ba as ctaButton, Bi as normalizeEventRegistrationPageSurfaceSubject, Br as defaultTransforms, Bs as unwrapResponse, Ca as richTextFragment, Cr as arrangementHooksFromContent, D as ObservedJoin, Da as faqHeadingFragment, Dr as buildLoadedOfferingsPreviewListing, Ea as faqAccordionFragment, El as parseThemeForPersistence, Er as getDefaultComponentRegistry, Fa as heroCtaRowFragment, Fi as buildResolveImageUrlContext, Fn as renderSourceFor, Fr as siblingPath, Fu as readEditorBlockVersionsFromPlacement, Ga as validateManifestDraft, Gr as createEditorPresentationPageReader, Ha as defineFragment, Hi as groupOfferingRunsByCourse, Hn as unsafeAsLinkedContentEntryId, Hr as resolvePageRouteTarget, Ia as ctaRowFragment, Ii as getCurrentResolveImageUrlContext, Il as defaultThemeTokens, In as renderedFieldChanges, Iu as readPublishedBlockPlacement, Ji as readOfferingsGrouping, Jr as mapOutlineRegions, Ki as offeringsListingFor, Kr as allOutlineBlocks, Li as setContextResolveImageUrlContext, Ln as resolveRenderedValues, Ls as calendarWindowQuerySchema, Lu as selectedContentVersionId, Ma as testimonialsCarouselFragment, Mr as logger, Na as testimonialsHeadingFragment, Nl as parseSurfaceTree, Nr as Text$1, Oa as blogFeaturedPostFragment, Or as resolveEventDetailsPresentation, Pa as ctaCopyFragment, Pn as remoteDraftValues, Pr as getAtPath, Pt as clientComponentRegistry, Pu as NO_BLOCK_VERSIONS, Qr as readinessFactsFromLoaders, Ri as projectRecurringSchedule, Rr as coerceLinkedContentEntriesPayload, Sa as bookingConsentCarrierSchema, So as mergeContentWithBlockStyleOverrides, Sr as resolveDefaultBlockTree, Ta as cardFragment, Tr as readBlockComposition, Ua as runTransforms, Ur as resolveRouteTarget, Va as bodyCopyFragment, Vi as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, Vr as resolveEntryRouteTarget, W as usePreviewToken, Wa as compileManifestContentContract, Yu as unsafeAsEditorBlockId, ai as normalizeLocationMapSource, ao as coerceInlineTextWithFallback, ba as pageTemplateFromEntry, bn as useEditorUiStoreInstance, bo as buildThemeRuntime, br as makeDefaultBlockComponent, ci as offeringsPreviewBlockDefinition, do as isInlineTextEmpty, dr as createPageRenderPlanReader, eo as parseBlockIconValue, fr as planArrangementContent, ga as resolveDateRuntimeContext, gr as retargetJoinsAcrossOmissions, ha as readRuntimeNow, hr as renderedJoinLayout, id as assertNever, ii as normalizeBlockContent, ja as formCopyFragment, jl as textColorStyle, jr as renderInlineText, k as PreviewRenderPlanProjection, ka as singleButtonFragment, kr as buildAppointmentServicesView, ks as isObjectRecord, li as publicRouteCandidatesSchema, lu as buildMailingListSignupBlockSourceRef, mo as parseInlineTextFromUnknown, mr as joinSlotKey, ni as getBlockDefinition, no as parseGeneratedIconSetId, oi as resolveLocationMapLocation, oo as deriveInlineTextFieldChanges, pl as bindingSchema, pr as composePageJoins, qr as mapOutlineBlocks, rd as toUtcIsoDateTimeString, s as usePreviewPageDesignRenderState, su as generateUuidV4, to as parseGeneratedIconAssetId, ul as canWriteLinkedEntry, uo as inlineTextToPlainText, vi as cardListPresentationSchemaShape, wa as headingFragment, wr as blockLookFromContent, wu as sameMailingListPlacementTargeting, xa as publicEventsArraySchema, xu as parseMailingListPlacementTargeting, ya as hiddenFromVisitors, yi as RichText$1, yn as useEditorUiStore, za as heroCopyFragment } from "./previewAssistantSlot-Jpj_HDra.mjs";
3
- import { Bt as publicLocationSchema, Mt as decideLocationSourcePermission, Rt as parseLocationValue, zt as projectPublicLocation } from "./lucide-react-Dfgl3Vtq.mjs";
4
- import { A as pageDesignRuntimeProjectionFromSource, E as usePreviewCompiledThemeOptional, F as mergeResolvedDataContext, I as withRenderedContentEntry, M as applyPreviewRuntimeContentProjections, N as entryFieldRebindingProjection, P as runtimeContentDecorationProjectionFromServerPage, g as PreviewChromeFloatingBar, j as resolveRuntimePreviewSourceForTheme, ot as EditorCanvasChip } from "./siteStyleAccess-DmGIG9Hk.mjs";
5
- import { C as EMPTY_DOC, D as resolveSdkFooterMode, E as decideDocumentReplacement, S as useRichTextEditor, T as InlineTextEditor, m as useRichTextImageProjection, n as pageSectionIdFromBlockId, r as BlockToolbar, t as PageSectionToolbar, w as parseRichTextDoc, y as RichTextEditorSurface } from "./PageSectionToolbar-DwxHT-2k.mjs";
6
- import { f as useEditor } from "./previewChromeRoot-CYTDvx4u.mjs";
7
- import { a as dispatchLinkedEntryFieldFocusEvent, c as useLinkedSaveHandoverRetention, d as linkedEntryRenderOverlaysFromStore, f as PREVIEW_EDITABLE_OUTLINE, i as dispatchLinkedEntryEditEvent, l as applyLinkedEntryRenderOverlay, o as defaultPreviewThemeRuntime, r as dispatchBlockFieldFocusEvent, s as linkedSaveHandoversVersion, t as PreviewShell, u as applyLinkedEntryRenderOverlayToDataContext } from "./PreviewShell-L2AEdNUQ.mjs";
2
+ import { $r as selectBlockContent, $u as unsafeAsEditorBlockId, Aa as faqHeadingFragment, Al as parseThemeForPersistence, Bi as setContextResolveImageUrlContext, Bl as defaultThemeTokens, Br as defaultTransforms, Bs as publicMapLocationParamsSchema, Bu as readPublishedBlockPlacement, Ca as pageTemplateFromEntry, Co as buildThemeRuntime, Cr as arrangementHooksFromContent, D as ObservedJoin, Da as headingFragment, Dr as buildLoadedOfferingsPreviewListing, Ea as richTextFragment, Er as getDefaultComponentRegistry, Fa as testimonialsCarouselFragment, Fl as textColorStyle, Fn as renderSourceFor, Fr as siblingPath, Ga as defineFragment, Gr as createEditorPresentationPageReader, Ha as heroCopyFragment, Hi as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, Hn as unsafeAsLinkedContentEntryId, Hr as resolvePageRouteTarget, Ia as testimonialsHeadingFragment, In as renderedFieldChanges, Ja as validateManifestDraft, Jr as mapOutlineRegions, Ka as runTransforms, Kr as allOutlineBlocks, La as ctaCopyFragment, Ll as parseSurfaceTree, Ln as resolveRenderedValues, Ma as singleButtonFragment, Mr as logger, Ms as isObjectRecord, Na as formEmbedFragment, Nr as Text$1, Ns as isRecord$1, Oa as cardFragment, Or as resolveEventDetailsPresentation, Ou as sameMailingListPlacementTargeting, Pa as formCopyFragment, Pn as remoteDraftValues, Pr as getAtPath, Pt as clientComponentRegistry, Qr as readinessFactsFromLoaders, Ra as heroCtaRowFragment, Ri as buildResolveImageUrlContext, Rr as coerceLinkedContentEntriesPayload, Ru as NO_BLOCK_VERSIONS, Sa as hiddenFromVisitors, Si as RichText$1, Sr as resolveDefaultBlockTree, Ta as bookingConsentCarrierSchema, To as mergeContentWithBlockStyleOverrides, Tr as readBlockComposition, Tu as parseMailingListPlacementTargeting, Ua as ctaButton, Ui as groupOfferingRunsByCourse, Ur as resolveRouteTarget, Vi as normalizeEventRegistrationPageSurfaceSubject, Vr as resolveEntryRouteTarget, Vs as calendarWindowQuerySchema, Vu as selectedContentVersionId, W as usePreviewToken, Wa as bodyCopyFragment, Ws as unwrapResponse, Yi as readOfferingsGrouping, _a as resolveDateRuntimeContext, _l as bindingSchema, _o as parseInlineTextFromUnknown, ai as LOCATION_MAP_LOADER_KEYS, ao as parseGeneratedIconSetId, bn as useEditorUiStoreInstance, br as makeDefaultBlockComponent, cd as assertNever, ci as parseLocationMapLoaderResult, co as coerceInlineTextWithFallback, di as offeringsPreviewBlockDefinition, dr as createPageRenderPlanReader, du as generateUuidV4, fi as publicRouteCandidatesSchema, fr as planArrangementContent, ga as readRuntimeNow, gr as retargetJoinsAcrossOmissions, hr as renderedJoinLayout, ii as normalizeBlockContent, io as parseGeneratedIconAssetId, ja as blogFeaturedPostFragment, jr as renderInlineText, k as PreviewRenderPlanProjection, ka as faqAccordionFragment, kr as buildAppointmentServicesView, li as resolveLocationMapLocation, lo as deriveInlineTextFieldChanges, ml as canWriteLinkedEntry, mo as isInlineTextEmpty, mr as joinSlotKey, ni as getBlockDefinition, oi as describeUnresolvedLocationMapLocation, po as inlineTextToPlainText, pr as composePageJoins, pu as buildMailingListSignupBlockSourceRef, qa as compileManifestContentContract, qi as offeringsListingFor, qr as mapOutlineBlocks, ro as parseBlockIconValue, s as usePreviewPageDesignRenderState, sd as toUtcIsoDateTimeString, si as normalizeLocationMapSource, wa as publicEventsArraySchema, wr as blockLookFromContent, xa as projectRecurringSchedule, xi as cardListPresentationSchemaShape, yn as useEditorUiStore, za as ctaRowFragment, zi as getCurrentResolveImageUrlContext, zu as readEditorBlockVersionsFromPlacement } from "./previewAssistantSlot-BqY2TTcZ.mjs";
3
+ import { Bt as publicLocationSchema, Rt as parseLocationValue, zt as projectPublicLocation } from "./lucide-react-Dfgl3Vtq.mjs";
4
+ import { A as pageDesignRuntimeProjectionFromSource, E as usePreviewCompiledThemeOptional, F as mergeResolvedDataContext, I as withRenderedContentEntry, M as applyPreviewRuntimeContentProjections, N as entryFieldRebindingProjection, P as runtimeContentDecorationProjectionFromServerPage, g as PreviewChromeFloatingBar, j as resolveRuntimePreviewSourceForTheme, ot as EditorCanvasChip } from "./siteStyleAccess-DbKozRSn.mjs";
5
+ import { C as EMPTY_DOC, D as resolveSdkFooterMode, E as decideDocumentReplacement, S as useRichTextEditor, T as InlineTextEditor, m as useRichTextImageProjection, n as pageSectionIdFromBlockId, r as BlockToolbar, t as PageSectionToolbar, w as parseRichTextDoc, y as RichTextEditorSurface } from "./PageSectionToolbar-0xyUPWUB.mjs";
6
+ import { f as useEditor } from "./previewChromeRoot-BuRYe2iL.mjs";
7
+ import { a as dispatchLinkedEntryFieldFocusEvent, c as useLinkedSaveHandoverRetention, d as linkedEntryRenderOverlaysFromStore, f as PREVIEW_EDITABLE_OUTLINE, i as dispatchLinkedEntryEditEvent, l as applyLinkedEntryRenderOverlay, o as defaultPreviewThemeRuntime, r as dispatchBlockFieldFocusEvent, s as linkedSaveHandoversVersion, t as PreviewShell, u as applyLinkedEntryRenderOverlayToDataContext } from "./PreviewShell-BvdBdeH_.mjs";
8
8
  import * as React$1 from "react";
9
9
  import React, { createContext, memo, useCallback, useEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
10
10
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
@@ -17,6 +17,7 @@ const SUPPORTED_LOADER_ENDPOINTS = [
17
17
  "listPublicEventCalendarWindow",
18
18
  "listPublicRecurringSchedule",
19
19
  "getPublicEventDetails",
20
+ "getPublicMapLocation",
20
21
  "listPublicRouteCandidates",
21
22
  "listPublicTeamMembers",
22
23
  "listPublicProducts",
@@ -578,9 +579,10 @@ function projectLoaderOutcomes(blocks, outcomes) {
578
579
  return values.length ? [[block.id, Object.fromEntries(values)]] : [];
579
580
  })),
580
581
  loaderFailures: Object.fromEntries(blocks.flatMap((block) => {
581
- const values = outcomes.flatMap((outcome) => outcome.request.blockId === block.id && outcome.kind === "failed" ? [[outcome.request.key, {
582
+ const values = outcomes.flatMap((outcome) => outcome.request.blockId === block.id && outcome.kind !== "loaded" ? [[outcome.request.key, {
582
583
  endpoint: outcome.request.endpoint,
583
- params: outcome.request.params
584
+ params: outcome.request.params,
585
+ ...outcome.kind === "pending" ? { pending: true } : {}
584
586
  }]] : []);
585
587
  return values.length ? [[block.id, Object.fromEntries(values)]] : [];
586
588
  }))
@@ -902,6 +904,11 @@ function authoringMessage(reason) {
902
904
  case "missing-layout": return reason.isCustom ? `No renderer available for block kind "${reason.blockKind}". This custom block has no layout/variants, so it must be rendered via blockOverrides["${reason.blockKind}"].` : `No renderer available for block kind "${reason.blockKind}".`;
903
905
  case "hidden-business-location": return "This map is hidden because your business address is hidden.";
904
906
  case "unresolved-location":
907
+ if (reason.locationReason === "location_loading" || reason.locationReason === "location_load_failed") return describeUnresolvedLocationMapLocation({
908
+ kind: "unresolved",
909
+ source: reason.source,
910
+ reason: reason.locationReason
911
+ }) ?? "";
905
912
  if (reason.source === "business_address") return "Business address details are not configured yet.";
906
913
  return reason.source === "venue" ? "This map is hidden on your site until the venue has a location." : "This map is hidden on your site until you choose a place.";
907
914
  case "editor-unpreviewable":
@@ -1081,11 +1088,7 @@ function buildPageRendererRootRuntime(dataContext) {
1081
1088
  };
1082
1089
  }
1083
1090
  function publicLocationRuntime(context) {
1084
- return {
1085
- businessAddress: context?.businessLocation ?? null,
1086
- venuesById: context?.venuesById ?? {},
1087
- siteCountry: context?.siteCountry ?? null
1088
- };
1091
+ return { siteCountry: context?.siteCountry ?? null };
1089
1092
  }
1090
1093
  function resolveDemoEmailSuppression(dataContext) {
1091
1094
  return dataContext?.demoEmailSuppressed === true;
@@ -1515,11 +1518,10 @@ function createPageRenderPreparationReader() {
1515
1518
  };
1516
1519
  }
1517
1520
  function preparePageRenderEntries(input, previous = null) {
1518
- const admission = preparationAdmission(input);
1519
- const prepared = admission.entries.map((entry) => [entry, readPreparedPlanEntry(entry, input, previous, admission.permission)]);
1521
+ const prepared = preparationAdmission(input).entries.map((entry) => [entry, readPreparedPlanEntry(entry, input, previous)]);
1520
1522
  const entries = prepared.map(([, value]) => value);
1521
1523
  const constructionFailures = entries.filter((candidate) => candidate.prepared.kind === "render-threw").map((candidate) => candidate.entry);
1522
- const survivors = input.audience === "authoring" ? entries : entries.filter((candidate) => candidate.prepared.kind !== "render-threw" && candidate.prepared.kind !== "unresolved-location" && !(candidate.prepared.kind === "content" && candidate.prepared.publicVisibility === "omitted"));
1524
+ const survivors = input.audience === "authoring" ? entries : entries.filter((candidate) => candidate.prepared.kind !== "render-threw" && candidate.prepared.kind !== "unresolved-location" && candidate.prepared.kind !== "hidden-business-location" && !(candidate.prepared.kind === "content" && candidate.prepared.publicVisibility === "omitted"));
1523
1525
  const surviving = new Set(survivors);
1524
1526
  const survivingByEntry = new Map(prepared.filter(([, candidate]) => surviving.has(candidate)));
1525
1527
  const regions = {
@@ -1552,47 +1554,61 @@ function preparationAdmission(input) {
1552
1554
  mailingList: input.dataContext?.mailingList,
1553
1555
  template: input.dataContext?.template ?? pageTemplateFromEntry(input.dataContext?.contentEntry)
1554
1556
  });
1555
- const permission = input.dataContext?.businessLocationPermission ?? decideLocationSourcePermission("business_address", input.dataContext?.businessAddressVisibility);
1556
- return {
1557
- permission,
1558
- entries: input.plan.entries.filter((entry) => input.audience === "authoring" || !entryHiddenFromVisitors(entry, facts, input.dataContext?.interactionContext)).filter((entry) => isPublicSourcePermitted(entry, permission) || input.audience === "authoring" && permission.kind === "hidden")
1559
- };
1557
+ return { entries: input.plan.entries.filter((entry) => input.audience === "authoring" || !entryHiddenFromVisitors(entry, facts, input.dataContext?.interactionContext)) };
1560
1558
  }
1561
- function readPreparedPlanEntry(entry, input, previous, permission) {
1559
+ function readPreparedPlanEntry(entry, input, previous) {
1562
1560
  const cached = previous?.byEntry.get(entry);
1563
1561
  if (cached && previous && samePreparationSettings(previous.input, input) && sameBlockRenderDataContext(previous.input.dataContext, input.dataContext, entry.block.id)) return cached;
1564
- return preparedPlanEntry(entry, prepareSourceEntry(entry, input, permission));
1562
+ return preparedPlanEntry(entry, prepareSourceEntry(entry, input));
1565
1563
  }
1566
1564
  function samePreparationSettings(previous, current) {
1567
1565
  return previous.audience === current.audience && previous.routeMap === current.routeMap && previous.themeResources === current.themeResources && previous.imageResolveContext === current.imageResolveContext;
1568
1566
  }
1569
- /** Source availability is decided before constructing the block or its hydration props. */
1570
- function prepareSourceEntry(entry, input, permission) {
1571
- if (!isPublicSourcePermitted(entry, permission)) return {
1572
- kind: "hidden-business-location",
1573
- businessDetailsHref: input.dataContext?.authoringBusinessDetailsHref ?? null
1574
- };
1567
+ /**
1568
+ * A map's place is decided before constructing the block or its hydration props,
1569
+ * so a map with nothing to show touches no override, wrapper or authored detail.
1570
+ * Anything short of a loaded place leaves visitors with no map at all.
1571
+ */
1572
+ function prepareSourceEntry(entry, input) {
1575
1573
  if (entry.block.kind === "block.location-map") {
1576
1574
  const content = entry.renderableContent;
1575
+ const locationSource = typeof content.locationSource === "string" ? content.locationSource : null;
1577
1576
  const resolved = resolveLocationMapLocation({
1578
1577
  location: content.location,
1579
- locationSource: typeof content.locationSource === "string" ? content.locationSource : null,
1578
+ locationSource,
1580
1579
  venueId: typeof content.venueId === "string" ? content.venueId : null,
1581
- businessAddress: input.dataContext?.businessLocation,
1582
- venuesById: input.dataContext?.venuesById
1580
+ loaded: readLocationMapLoad(entry.block.id, normalizeLocationMapSource(locationSource), input.dataContext)
1583
1581
  });
1584
- if (resolved.kind === "unresolved") return {
1582
+ if (resolved.kind === "unresolved") return resolved.reason === "hidden_business_address" ? {
1583
+ kind: "hidden-business-location",
1584
+ businessDetailsHref: input.dataContext?.authoringBusinessDetailsHref ?? null
1585
+ } : {
1585
1586
  kind: "unresolved-location",
1586
- source: resolved.source
1587
+ source: resolved.source,
1588
+ reason: resolved.reason
1587
1589
  };
1590
+ if (resolved.kind === "venue" && resolved.disclosure === "area") return prepareEntry(withoutEntrancePhoto(entry), input);
1588
1591
  }
1589
1592
  return prepareEntry(entry, input);
1590
1593
  }
1591
- /** No source data, override component or wrapper is touched for a hidden map. */
1592
- function isPublicSourcePermitted(entry, permission) {
1593
- if (entry.block.kind !== "block.location-map") return true;
1594
- const rawSource = entry.renderableContent.locationSource;
1595
- return normalizeLocationMapSource(typeof rawSource === "string" ? rawSource : null) !== "business_address" || permission.kind === "permitted";
1594
+ /** A photo of the entrance gives away a place whose address is only shared with a booking. */
1595
+ function withoutEntrancePhoto(entry) {
1596
+ const { entrancePhoto: _withheld, ...content } = entry.renderableContent;
1597
+ return {
1598
+ ...entry,
1599
+ renderableContent: content
1600
+ };
1601
+ }
1602
+ /** A custom place is in the content. The other sources read only this block's own loader. */
1603
+ function readLocationMapLoad(blockId, source, dataContext) {
1604
+ if (source === "custom" || !blockId) return void 0;
1605
+ const key = LOCATION_MAP_LOADER_KEYS[source];
1606
+ const failure = dataContext?.loaderFailures?.[blockId]?.[key];
1607
+ if (failure) return locationMapLoadFromFailure(failure);
1608
+ return parseLocationMapLoaderResult(dataContext?.resolvedData?.[blockId]?.[key]);
1609
+ }
1610
+ function locationMapLoadFromFailure(failure) {
1611
+ return { kind: failure.pending ? "pending" : "failed" };
1596
1612
  }
1597
1613
  function entryHiddenFromVisitors(entry, facts, interaction) {
1598
1614
  return entry.kind === "renderable" && entry.definition.readiness !== void 0 && hiddenFromVisitors(entry.definition.readiness.assess(entry.renderableContent, facts, {
@@ -1642,13 +1658,15 @@ function prepareEntry(entry, input) {
1642
1658
  }
1643
1659
  }
1644
1660
  /**
1645
- * Editor admission validates raw in-flight values without minting a renderable
1646
- * proof. Returns `null` when even relaxed validation rejects the draft.
1661
+ * Editor admission validates what the owner still decides, without minting a
1662
+ * renderable proof. The Look's decisions are not authoring choices (a frame's
1663
+ * 4/5 is not on the block's ratio list), so the preview renders them unvalidated,
1664
+ * as a public page does, and a hidden stale value can't block it. Returns `null`
1665
+ * when even relaxed validation rejects the draft.
1647
1666
  */
1648
1667
  function previewableEditorContent(entry) {
1649
1668
  if (entry.block.presentationAdmission.kind !== "editor") return entry.renderableContent;
1650
- const draft = validateManifestDraft(compileManifestContentContract(entry.definition.manifest), entry.renderableContent);
1651
- return draft.kind === "previewable" ? draft.data : null;
1669
+ return validateManifestDraft(compileManifestContentContract(entry.definition.manifest), entry.ownerEditableContent).kind === "previewable" ? entry.renderableContent : null;
1652
1670
  }
1653
1671
  function buildPreparedContent(entry, content, input) {
1654
1672
  const { dataContext } = input;
@@ -2219,7 +2237,8 @@ function preparationDiagnostic(prepared, blockKind) {
2219
2237
  reason: {
2220
2238
  kind: prepared.kind,
2221
2239
  blockKind,
2222
- source: prepared.source
2240
+ source: prepared.source,
2241
+ locationReason: prepared.reason
2223
2242
  },
2224
2243
  outcome: "invalidPlaceholder"
2225
2244
  };
@@ -2913,79 +2932,70 @@ function drawingAtCurrentPin(location, ready) {
2913
2932
  }
2914
2933
  //#endregion
2915
2934
  //#region ../preview-next/src/client/blocks/previewBatchLoaderParams.ts
2916
- function isBatchableEndpoint(endpoint) {
2917
- return endpoint === "listPublicEvents" || endpoint === "listPublicEventCalendarWindow" || endpoint === "getPublicEventDetails" || endpoint === "listPublicRouteCandidates" || endpoint === "listPublicTeamMembers" || endpoint === "listPublicProducts" || endpoint === "getPublicBookingServices" || endpoint === "getPublicWeeklySlotAvailability" || endpoint === "getPublicFormById";
2935
+ function withOptionalParams(endpoint) {
2936
+ return (id, params) => params ? {
2937
+ id,
2938
+ endpoint,
2939
+ params
2940
+ } : {
2941
+ id,
2942
+ endpoint
2943
+ };
2918
2944
  }
2919
- function buildBatchLoaderRequest(id, endpoint, params) {
2920
- switch (endpoint) {
2921
- case "listPublicEventCalendarWindow": return {
2945
+ function withCategories(endpoint) {
2946
+ return (id, params) => {
2947
+ const categories = params?.categories;
2948
+ return categories ? {
2922
2949
  id,
2923
2950
  endpoint,
2924
- params: calendarWindowQuerySchema.parse(params ?? {})
2925
- };
2926
- case "listPublicEvents": {
2927
- const typedParams = params;
2928
- return typedParams ? {
2929
- id,
2930
- endpoint,
2931
- params: typedParams
2932
- } : {
2933
- id,
2934
- endpoint
2935
- };
2936
- }
2937
- case "getPublicEventDetails": {
2938
- const typedParams = params;
2939
- return typedParams ? {
2940
- id,
2941
- endpoint,
2942
- params: typedParams
2943
- } : {
2944
- id,
2945
- endpoint
2946
- };
2947
- }
2948
- case "listPublicRouteCandidates": return {
2949
- id,
2950
- endpoint
2951
- };
2952
- case "listPublicProducts": {
2953
- const typedParams = params;
2954
- return typedParams ? {
2955
- id,
2956
- endpoint,
2957
- params: typedParams
2958
- } : {
2959
- id,
2960
- endpoint
2961
- };
2962
- }
2963
- case "listPublicTeamMembers": return {
2951
+ params: { categories }
2952
+ } : {
2964
2953
  id,
2965
2954
  endpoint
2966
2955
  };
2967
- case "getPublicBookingServices": {
2968
- const typedParams = params;
2969
- return typedParams ? {
2970
- id,
2971
- endpoint,
2972
- params: typedParams
2973
- } : {
2974
- id,
2975
- endpoint
2976
- };
2977
- }
2978
- case "getPublicWeeklySlotAvailability": return {
2979
- id,
2980
- endpoint,
2981
- params: params ?? { serviceId: "" }
2982
- };
2983
- case "getPublicFormById": return {
2984
- id,
2985
- endpoint,
2986
- params: params ?? { formId: "" }
2987
- };
2988
- }
2956
+ };
2957
+ }
2958
+ const batchRequestBuilders = {
2959
+ listPublicEventCalendarWindow: (id, params) => ({
2960
+ id,
2961
+ endpoint: "listPublicEventCalendarWindow",
2962
+ params: calendarWindowQuerySchema.parse(params ?? {})
2963
+ }),
2964
+ listPublicEvents: withOptionalParams("listPublicEvents"),
2965
+ getPublicEventDetails: withOptionalParams("getPublicEventDetails"),
2966
+ listPublicRouteCandidates: (id) => ({
2967
+ id,
2968
+ endpoint: "listPublicRouteCandidates"
2969
+ }),
2970
+ listPublicTeamMembers: (id) => ({
2971
+ id,
2972
+ endpoint: "listPublicTeamMembers"
2973
+ }),
2974
+ listPublicProducts: withOptionalParams("listPublicProducts"),
2975
+ listPublicPasses: withCategories("listPublicPasses"),
2976
+ listPublicMemberships: withCategories("listPublicMemberships"),
2977
+ getPublicBookingServices: withOptionalParams("getPublicBookingServices"),
2978
+ getPublicWeeklySlotAvailability: (id, params) => ({
2979
+ id,
2980
+ endpoint: "getPublicWeeklySlotAvailability",
2981
+ params: params ?? { serviceId: "" }
2982
+ }),
2983
+ getPublicMapLocation: (id, params) => ({
2984
+ id,
2985
+ endpoint: "getPublicMapLocation",
2986
+ params
2987
+ }),
2988
+ getPublicFormById: (id, params) => ({
2989
+ id,
2990
+ endpoint: "getPublicFormById",
2991
+ params: params ?? { formId: "" }
2992
+ })
2993
+ };
2994
+ function isBatchableEndpoint(endpoint) {
2995
+ return Object.hasOwn(batchRequestBuilders, endpoint);
2996
+ }
2997
+ function buildBatchLoaderRequest(id, endpoint, params) {
2998
+ return batchRequestBuilders[endpoint](id, params);
2989
2999
  }
2990
3000
  function stripUndefined(obj) {
2991
3001
  const out = {};
@@ -3023,22 +3033,28 @@ function eventLoaderParams(params) {
3023
3033
  function nonEmpty(params) {
3024
3034
  return Object.keys(params).length ? params : void 0;
3025
3035
  }
3036
+ const noBatchParams = () => void 0;
3037
+ const categoriesParam = (params) => nonEmpty(stripUndefined({ categories: params.categories || void 0 }));
3038
+ const previewBatchParamReaders = {
3039
+ listPublicEventCalendarWindow: (params) => calendarWindowQuerySchema.parse(params),
3040
+ listPublicEvents: (params) => nonEmpty({
3041
+ ...eventLoaderParams(params),
3042
+ detailLevel: params.detailLevel || void 0,
3043
+ readProfile: params.readProfile || void 0
3044
+ }),
3045
+ getPublicEventDetails: (params) => nonEmpty(eventLoaderParams(params)),
3046
+ listPublicProducts: (params) => nonEmpty(stripUndefined({ categorySelector: decodePublicProductCategorySelectorQuery(params) ?? void 0 })),
3047
+ listPublicPasses: categoriesParam,
3048
+ listPublicMemberships: categoriesParam,
3049
+ getPublicBookingServices: (params) => nonEmpty(stripUndefined({ ids: normalizeIdsParam(params.ids || void 0) })),
3050
+ getPublicFormById: (params) => ({ formId: params.formId ?? "" }),
3051
+ getPublicMapLocation: (params) => publicMapLocationParamsSchema.parse(params),
3052
+ listPublicRouteCandidates: noBatchParams,
3053
+ listPublicTeamMembers: noBatchParams,
3054
+ getPublicWeeklySlotAvailability: noBatchParams
3055
+ };
3026
3056
  function toPreviewBatchParams(endpoint, params) {
3027
- switch (endpoint) {
3028
- case "listPublicEventCalendarWindow": return calendarWindowQuerySchema.parse(params);
3029
- case "listPublicEvents": return nonEmpty({
3030
- ...eventLoaderParams(params),
3031
- detailLevel: params.detailLevel || void 0,
3032
- readProfile: params.readProfile || void 0
3033
- });
3034
- case "getPublicEventDetails": return nonEmpty(eventLoaderParams(params));
3035
- case "listPublicProducts": return nonEmpty(stripUndefined({ categorySelector: decodePublicProductCategorySelectorQuery(params) ?? void 0 }));
3036
- case "getPublicBookingServices": return nonEmpty(stripUndefined({ ids: normalizeIdsParam(params.ids || void 0) }));
3037
- case "getPublicFormById": return { formId: params.formId ?? "" };
3038
- case "listPublicRouteCandidates":
3039
- case "listPublicTeamMembers":
3040
- case "getPublicWeeklySlotAvailability": return;
3041
- }
3057
+ return previewBatchParamReaders[endpoint](params);
3042
3058
  }
3043
3059
  //#endregion
3044
3060
  //#region ../preview-next/src/client/blocks/previewBlockDataClient.ts
@@ -3105,16 +3121,6 @@ async function callDirectLoaderApiEndpoint(client, endpoint, params, signal) {
3105
3121
  params,
3106
3122
  options: { signal }
3107
3123
  }));
3108
- case "listPublicPasses": return unwrapResponse(await client({
3109
- endpoint,
3110
- params,
3111
- options: { signal }
3112
- }));
3113
- case "listPublicMemberships": return unwrapResponse(await client({
3114
- endpoint,
3115
- params,
3116
- options: { signal }
3117
- }));
3118
3124
  case "listPublicRecurringSchedule": return projectRecurringSchedule(unwrapResponse(await client({
3119
3125
  endpoint: "listPublicEvents",
3120
3126
  params,
@@ -3139,6 +3145,9 @@ function batchAbortSignal(signals) {
3139
3145
  //#region ../preview-next/src/client/blocks/usePreviewBlockResolvedData.ts
3140
3146
  /** Only active resolved requests live here; the current plan always owns content provenance. */
3141
3147
  function createPreviewLoaderRequests(apiClient, context) {
3148
+ return createLoaderRequests(createPreviewBlockDataApiClient(apiClient, context), context);
3149
+ }
3150
+ function createLoaderRequests(client, context) {
3142
3151
  const entries = /* @__PURE__ */ new Map();
3143
3152
  const listeners = /* @__PURE__ */ new Set();
3144
3153
  const version = { current: 0 };
@@ -3146,7 +3155,6 @@ function createPreviewLoaderRequests(apiClient, context) {
3146
3155
  data: {},
3147
3156
  failures: {}
3148
3157
  };
3149
- const client = createPreviewBlockDataApiClient(apiClient, context);
3150
3158
  const keyFor = (request) => stableSerialize({
3151
3159
  endpoint: request.endpoint,
3152
3160
  params: isSupportedLoaderEndpoint(request.endpoint) ? normalizePublicApiLoaderParams(request.endpoint, request.params, context) : request.params
@@ -3225,9 +3233,10 @@ function serverRequestMatches(plan, request, snapshot) {
3225
3233
  const saved = source.requests[request.key];
3226
3234
  return Boolean(saved && saved.endpoint === request.endpoint && stableSerialize(saved.params) === stableSerialize(request.params));
3227
3235
  }
3236
+ /** Every planned request is started by `reconcile`, so with no server answer it's still on its way. */
3228
3237
  function matchingServerOutcome(plan, request, server) {
3229
3238
  if (!server || !serverRequestMatches(plan, request, server.loaderSnapshot)) return {
3230
- kind: "failed",
3239
+ kind: "pending",
3231
3240
  request
3232
3241
  };
3233
3242
  const values = server.resolvedData[request.blockId];
@@ -3262,11 +3271,7 @@ function usePreviewBlockResolvedData(input) {
3262
3271
  serverGeneration
3263
3272
  ]);
3264
3273
  const plan = useMemo(() => planBlockDataRequests(page, context, { isValidEndpoint: isSupportedLoaderEndpoint }), [page, dataContext]);
3265
- const version = useSyncExternalStore(requests?.subscribe ?? emptySubscribe, requests?.version ?? zero, zero);
3266
- useEffect(() => {
3267
- requests?.reconcile(plan);
3268
- }, [plan, requests]);
3269
- useEffect(() => () => requests?.dispose(), [requests]);
3274
+ const version = useActiveLoaderRequests(requests, plan);
3270
3275
  const icons = usePreviewGeneratedIcons(page, dataContext?.siteId, apiClient, scope, serverGeneration);
3271
3276
  const current = useMemo(() => {
3272
3277
  const server = dataContext?.prefetchedBlockData ?? (dataContext?.loaderSnapshot ? {
@@ -3299,6 +3304,14 @@ function usePreviewBlockResolvedData(input) {
3299
3304
  };
3300
3305
  }, [current, resolvedData]);
3301
3306
  }
3307
+ function useActiveLoaderRequests(requests, plan) {
3308
+ const version = useSyncExternalStore(requests?.subscribe ?? emptySubscribe, requests?.version ?? zero, zero);
3309
+ useEffect(() => {
3310
+ requests?.reconcile(plan);
3311
+ }, [plan, requests]);
3312
+ useEffect(() => () => requests?.dispose(), [requests]);
3313
+ return version;
3314
+ }
3302
3315
  const emptySubscribe = () => () => {};
3303
3316
  const zero = () => 0;
3304
3317
  function buildPreviewBlockDataContext(dataContext) {