@riverbankcms/sdk 0.163.0 → 0.164.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (195) hide show
  1. package/README.md +12 -1
  2. package/dist/_dts/{BlocksIslandsHydrator-DYPGA_qh.d.ts → BlocksIslandsHydrator-CubPwupc.d.ts} +1 -1
  3. package/dist/_dts/{Page-zwnvFBPu.d.ts → Page-CDzsagB2.d.ts} +15 -12
  4. package/dist/_dts/{SdkPreviewMode-DukuJzGr.d.ts → SdkPreviewMode-CPRQbRCI.d.ts} +2 -3
  5. package/dist/_dts/{client-Chh3bnXC.d.ts → client-CbeYTSry.d.ts} +13 -41
  6. package/dist/_dts/{content-types-Bbzqw9J2.d.ts → content-types--uYRIcIF.d.ts} +2 -2
  7. package/dist/_dts/{contracts-GJ1kGBsi.d.ts → contracts-DJQYAOsv.d.ts} +5 -4
  8. package/dist/_dts/{footerPageOutline-BNMKhyvo.d.ts → footerPageOutline-CKkhBwgJ.d.ts} +6 -6
  9. package/dist/_dts/{generatePageMetadata-Ce0m1P3B.d.ts → generatePageMetadata--qd7NCIA.d.ts} +2 -2
  10. package/dist/_dts/{index-CdSNXLOx.d.ts → index-BZE-1azr.d.ts} +1 -1
  11. package/dist/_dts/{index-C3mJvn27.d.ts → index-BpEbwDM7.d.ts} +4 -4
  12. package/dist/_dts/index-CXsnaCGe.d.ts +10 -0
  13. package/dist/_dts/{index-rhMSu0oY.d.ts → index-CjdIn9-_.d.ts} +2 -2
  14. package/dist/_dts/{index-DRxgeK8L.d.ts → index-DYQFmf--.d.ts} +2 -2
  15. package/dist/_dts/{index-CyQhZuhM.d.ts → index-D_pQO-AS.d.ts} +21803 -21487
  16. package/dist/_dts/{index-FstkyqQB.d.ts → index-DriYVLfT.d.ts} +2 -2
  17. package/dist/_dts/{index-CaL0nKkl.d.ts → index-JS8WYgD3.d.ts} +31245 -31027
  18. package/dist/_dts/{index-G2p-HOrK.d.ts → index-wegfy7lf.d.ts} +3 -3
  19. package/dist/_dts/{loadContent-DiLZoInK.d.ts → loadContent-DUi94Qfk.d.ts} +15 -30
  20. package/dist/_dts/{resolvePageContent-CWUnipv8.d.ts → resolvePageContent-JDE0ry6T.d.ts} +2 -2
  21. package/dist/_dts/sdk/src/bookings/index.d.ts +3 -4
  22. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  23. package/dist/_dts/sdk/src/client.d.ts +6 -6
  24. package/dist/_dts/sdk/src/config/index.d.ts +6 -6
  25. package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
  26. package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
  27. package/dist/_dts/sdk/src/index.d.ts +8 -8
  28. package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
  29. package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
  30. package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
  31. package/dist/_dts/sdk/src/next/index.d.ts +7 -7
  32. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  33. package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
  34. package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
  35. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  36. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  37. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  38. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  39. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  40. package/dist/_dts/sdk/src/rendering/index.d.ts +7 -7
  41. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  42. package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
  43. package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
  44. package/dist/_dts/sdk/src/server.d.ts +5 -5
  45. package/dist/_dts/sdk/src/spam-protection/index.d.ts +32 -52
  46. package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
  47. package/dist/_dts/{types-DFOqkClJ.d.ts → types-DiciZDrk.d.ts} +3 -3
  48. package/dist/_dts/{types-CalL7aKP.d.ts → types-DubJnBnI.d.ts} +7 -7
  49. package/dist/_dts/{types-BmtrA45p.d.ts → types-W40f2olO.d.ts} +3 -2
  50. package/dist/_dts/{validation-G8MRoIhq.d.ts → validation-BF4_zNkR.d.ts} +4 -4
  51. package/dist/client/{BlocksIslandsHydrator-DLCXwe30.mjs → BlocksIslandsHydrator-64hFxF02.mjs} +20 -20
  52. package/dist/client/{BookingMailingListNote-BV5-50F0.mjs → BookingMailingListNote-CSQyFm9J.mjs} +1 -1
  53. package/dist/client/{CalendarNavigationChevron-CVLAHdZG.mjs → CalendarNavigationChevron-Bvkx8Z7Y.mjs} +6 -6
  54. package/dist/client/{CheckboxChoice-Dtgp3OU8.mjs → CheckboxChoice-3PhxDxgR.mjs} +1 -1
  55. package/dist/client/{DemoBookingPortalAccess-B3caCnTT.mjs → DemoBookingPortalAccess-pt2xXBQp.mjs} +5 -5
  56. package/dist/client/{DemoPortalSignInLink-Ct8JMKW0.mjs → DemoPortalSignInLink-Qw780EfW.mjs} +1 -1
  57. package/dist/client/{EventCalendar.client-ffa6920T.mjs → EventCalendar.client-DWoboRW5.mjs} +9 -9
  58. package/dist/client/{EventCombined.client-zm0W2G79.mjs → EventCombined.client-C98ucpcP.mjs} +8 -8
  59. package/dist/client/{EventEmbeddedCheckoutStep-CPPE2rWS.mjs → EventEmbeddedCheckoutStep-DHRlFfkp.mjs} +2 -1
  60. package/dist/client/{EventItem-CND3mfra.mjs → EventItem-hrSyTApW.mjs} +20 -16
  61. package/dist/client/{EventListWeekNavigation-D8QdxL_f.mjs → EventListWeekNavigation-C3t7H13W.mjs} +1 -1
  62. package/dist/client/{EventListing.client-CaoRZUI9.mjs → EventListing.client-Cp11sBX_.mjs} +3 -3
  63. package/dist/client/{EventListing.view-BfnOmxYD.mjs → EventListing.view-Dd5QHIAf.mjs} +7 -7
  64. package/dist/client/{EventRegistrationPayment-Dfu3RSL2.mjs → EventRegistrationPayment-ByT88VHR.mjs} +18 -22
  65. package/dist/client/{LocationMapActions-wlyxASdT.mjs → LocationMapActions-BsepG5Vv.mjs} +2 -2
  66. package/dist/client/{MapDrawingSvg-B9oKSitp.mjs → MapDrawingSvg-R4JMT4yd.mjs} +1 -1
  67. package/dist/client/{Page-BEF9HrAy.mjs → Page-Dub71o3c.mjs} +444 -199
  68. package/dist/client/ProtectedSubmitButton-DGbgGvdh.mjs +14 -0
  69. package/dist/client/SpamProtectionWidget-CRsKTQV-.mjs +139 -0
  70. package/dist/client/{StepIndicator-Bjx4faaw.mjs → StepIndicator-Bp7MyutT.mjs} +2 -2
  71. package/dist/client/{TabBarFragment-Cu7k_VSl.mjs → TabBarFragment-C4WJyybx.mjs} +1 -1
  72. package/dist/client/{ThemedButton-DclwabI7.mjs → ThemedButton-BGVwNwE-.mjs} +2 -898
  73. package/dist/client/{accordion-lzM2nSZB.mjs → accordion-vCG_JC5t.mjs} +1 -1
  74. package/dist/client/altchaProtection-BWchRM3v.mjs +12 -0
  75. package/dist/client/{booking-form.client-Bll4QwBi.mjs → booking-form.client-CHTbcZJM.mjs} +23 -56
  76. package/dist/client/{bookingForm-Cq5fQ-vo.mjs → bookingForm-BxbUbzUr.mjs} +4 -4
  77. package/dist/client/bookings.mjs +23 -32
  78. package/dist/client/{carousel-CxerQwIx.mjs → carousel-FM1mkkL0.mjs} +2 -2
  79. package/dist/client/{carousel.client-CVUXq8Mb.mjs → carousel.client-ChoLiWwD.mjs} +1 -1
  80. package/dist/client/{cart-X-m0isoI.mjs → cart-BDFhbh9j.mjs} +3 -3
  81. package/dist/client/{cart.client-CJbzWIl0.mjs → cart.client-x3HOke6T.mjs} +1 -1
  82. package/dist/client/{checkout-Gd0O_fGH.mjs → checkout-BibhwnTd.mjs} +3 -3
  83. package/dist/client/{checkout.client-Baee6Jsm.mjs → checkout.client-CE4jUi0G.mjs} +1 -1
  84. package/dist/client/client.mjs +216 -109
  85. package/dist/client/{context-Bg0SFWcM.mjs → context-BNAM7NsW.mjs} +17 -3
  86. package/dist/client/{cta-HffyM4MA.mjs → cta-ChiN1Vgg.mjs} +1 -1
  87. package/dist/client/{dateFormatting-CV45BH5M.mjs → dateFormatting-QwBSo0hK.mjs} +1 -1
  88. package/dist/client/{demoPortalMagicLink-CDWheSjI.mjs → demoPortalMagicLink-NwKJk6gn.mjs} +1 -1
  89. package/dist/client/{enhanceHeaderSection-BqVDXL0D.mjs → enhanceHeaderSection-D4zqEBDl.mjs} +3 -3
  90. package/dist/client/{event-details.client-SFtS9OkF.mjs → event-details.client-jFyFjOIC.mjs} +1 -1
  91. package/dist/client/{event-registration.client-CguNVIFY.mjs → event-registration.client-BK_jVv3R.mjs} +37 -55
  92. package/dist/client/{eventCalendar-DSGG35jd.mjs → eventCalendar-DSkzejQh.mjs} +4 -4
  93. package/dist/client/{eventCombined-Oe-PiChx.mjs → eventCombined-BG-BEaYh.mjs} +4 -4
  94. package/dist/client/{eventDetails-BhcTT6P3.mjs → eventDetails-BhIwXAKe.mjs} +2 -2
  95. package/dist/client/{eventListing-BS0kBEgI.mjs → eventListing-DQtyO1Xj.mjs} +4 -4
  96. package/dist/client/{eventRegistration-B82SHv7j.mjs → eventRegistration-DRTz8X0M.mjs} +4 -4
  97. package/dist/client/{form-DAIUrVXb.mjs → form-GXqjObPC.mjs} +3 -3
  98. package/dist/client/{form.client-BoAkhoh_.mjs → form.client-CoKNba2e.mjs} +33 -24
  99. package/dist/client/{form.parts-1VnasOK8.mjs → form.parts-magB_epJ.mjs} +6 -5
  100. package/dist/client/{formatDate-BKil_Psb.mjs → formatDate-BiloOyjS.mjs} +1 -1
  101. package/dist/client/gifting/client.mjs +4 -3
  102. package/dist/client/{headerSection-CyuHk8Ei.mjs → headerSection-BMQCPHT3.mjs} +2 -2
  103. package/dist/client/{mediaAssets-CGJE1Omu.mjs → mediaAssets-BX-vWwQc.mjs} +1 -1
  104. package/dist/client/{mediaContext-DIkX2S-X.mjs → mediaContext-CdqGYlWl.mjs} +1 -1
  105. package/dist/client/{newsletter-form.client-CCdyHx0B.mjs → newsletter-form.client-8orCez1z.mjs} +99 -84
  106. package/dist/client/{newsletter-form.parts-Dl8AjsXW.mjs → newsletter-form.parts-D8NgHY_F.mjs} +11 -7
  107. package/dist/client/{newsletterForm-qFWLZJui.mjs → newsletterForm-BhBNsS3n.mjs} +3 -3
  108. package/dist/client/{noop-4XFGzJpT.mjs → noop-C2vZse15.mjs} +3 -3
  109. package/dist/client/portal/client.mjs +13 -12
  110. package/dist/client/{product-detail.client-Tq4S99ce.mjs → product-detail.client-CQ0k0fbH.mjs} +1 -1
  111. package/dist/client/{product-list.client-CuL5jB1w.mjs → product-list.client-Xlr1P0x9.mjs} +1 -1
  112. package/dist/client/{productDetail-BRqgcotZ.mjs → productDetail-BsCao6X4.mjs} +3 -3
  113. package/dist/client/{productList-EK9Um-oh.mjs → productList-Cc-PmbEe.mjs} +3 -3
  114. package/dist/client/{propsDecoder-VD4arFq1.mjs → propsDecoder-DikkDJ9x.mjs} +3 -3
  115. package/dist/client/protection-C0PoH1lT.mjs +104 -0
  116. package/dist/client/purchase-BMsWpx8y.mjs +894 -0
  117. package/dist/client/{registry.server-qYbsatxH.mjs → registry.server-BpLZo3bC.mjs} +27 -24
  118. package/dist/client/rendering/client.mjs +27 -26
  119. package/dist/client/rendering/islands.mjs +1 -1
  120. package/dist/client/rendering.mjs +11 -7
  121. package/dist/client/{richText-coerce-CW8CFk8v.mjs → richText-coerce-WuMYrBm3.mjs} +1 -1
  122. package/dist/client/{routeIslandApiConfig-CnZ_1ol2.mjs → routeIslandApiConfig-DNx6b07x.mjs} +1 -1
  123. package/dist/client/{schema-BFwQDvJL.mjs → schema-DMUkBtIO.mjs} +2385 -2364
  124. package/dist/client/{shop-CTUaT57E.mjs → shop-DyXtB5TD.mjs} +3 -3
  125. package/dist/client/{shop-commerce-store-15UII0y3.mjs → shop-commerce-store-CbBsS1kD.mjs} +1 -1
  126. package/dist/client/{shop-commerce-BWwbsm_-.mjs → shop-commerce-xjWH7-Ym.mjs} +11 -11
  127. package/dist/client/{shop.client-UWgdmJBm.mjs → shop.client-QOKqQPgK.mjs} +12 -12
  128. package/dist/client/{shop.interactive-Cf_kASpd.mjs → shop.interactive-BQdm441g.mjs} +24 -14
  129. package/dist/client/{shopShared-Bi8d584P.mjs → shopShared-CyW6MU48.mjs} +2 -2
  130. package/dist/client/{site-styles-dy54AUdz.mjs → site-styles-BLHYJ8S7.mjs} +20 -15
  131. package/dist/client/spam-protection.mjs +4 -69
  132. package/dist/client/{timetableModel-Bi8ruFgB.mjs → timetableModel-BgdkhRuA.mjs} +10 -10
  133. package/dist/client/{useAvailableSlots-DiLbDqM3.mjs → useAvailableSlots-wmdo6uZ8.mjs} +3 -3
  134. package/dist/client/{useBookingNowIso-CWIiqPd0.mjs → useBookingNowIso-CUExAee1.mjs} +1 -1
  135. package/dist/client/{useDiscountApply-ChtszhF9.mjs → useDiscountApply-BRM-OoTN.mjs} +2 -2
  136. package/dist/client/{useDiscountCodeUi-B0Z7n2tZ.mjs → useDiscountCodeUi-BEIvL31G.mjs} +1 -1
  137. package/dist/client/{useEventPagination-DRrATQHQ.mjs → useEventPagination-Dk3g64we.mjs} +6 -6
  138. package/dist/client/{view-yUIfWX3S.mjs → view-BnaOmrap.mjs} +4 -4
  139. package/dist/client/{view-OvsxzgxP.mjs → view-vhKGFfC3.mjs} +7 -7
  140. package/dist/client/{wizardSteps-kbONzKUv.mjs → wizardSteps-xqU4q63H.mjs} +14 -14
  141. package/dist/preview-next/before-render.mjs +1 -1
  142. package/dist/preview-next/client/{EventEmbeddedCheckoutStep-DzoFjIqB.mjs → EventEmbeddedCheckoutStep-43wIAWr4.mjs} +1 -1
  143. package/dist/preview-next/client/{PreviewEditorSidebar-BhgPyyUW.mjs → PreviewEditorSidebar-C3AQVxQt.mjs} +68 -68
  144. package/dist/preview-next/client/{PreviewEditorUI-lndKKBtB.mjs → PreviewEditorUI-C-1zDCR_.mjs} +3 -3
  145. package/dist/preview-next/client/{SdkPreviewModeRuntime-Bk7On_EM.mjs → SdkPreviewModeRuntime-B47yHFL0.mjs} +240 -177
  146. package/dist/preview-next/client/{SdkPreviewModeRuntime-DCDDXDlt.mjs → SdkPreviewModeRuntime-C6Rhm2NQ.mjs} +1 -1
  147. package/dist/preview-next/client/{ThemedButton-nUnE3iMv.mjs → ThemedButton-g7NPrsGp.mjs} +60 -45
  148. package/dist/preview-next/client/{previewAuthStore-DHtSQIBE.mjs → previewAuthStore-By_zfrS5.mjs} +102570 -102217
  149. package/dist/preview-next/client/{previewChromeSurface-CxQ6dZ8D.mjs → previewChromeSurface-Cjwxv90x.mjs} +1 -1
  150. package/dist/preview-next/client/runtime.mjs +3 -3
  151. package/dist/preview-next/client/{sdk-runtime-DSZv7Vfm.mjs → sdk-runtime-BG2HYvQj.mjs} +1 -1
  152. package/dist/preview-next/client/{siteStyleAccess-Chq5KKKh.mjs → siteStyleAccess-BiSyYyyr.mjs} +3541 -3525
  153. package/dist/preview-next/client/{spinner-CjxE3uws.mjs → spinner-DnWpeDp2.mjs} +1 -1
  154. package/dist/preview-next/keepAlive.mjs +1 -1
  155. package/dist/preview-next/middleware.mjs +1 -1
  156. package/dist/preview-next/{route-contract-CxCstfkP.mjs → route-contract-D5tHZEz5.mjs} +31 -42
  157. package/dist/server/{Block.shared-Dz9k8vCX.mjs → Block.shared-Iy7g11iP.mjs} +5 -4
  158. package/dist/server/{bindings-S-gCHhj5.mjs → bindings-BVJGgUT0.mjs} +2 -2
  159. package/dist/server/{client-C2Q56xqV.mjs → client-CiKaE8ms.mjs} +215 -109
  160. package/dist/server/config-validation.mjs +1 -1
  161. package/dist/server/config.mjs +2 -2
  162. package/dist/server/{effectiveNavLinkStyle-DLzJPcDL.mjs → effectiveNavLinkStyle-EDSdd_oK.mjs} +14 -8
  163. package/dist/server/index.mjs +3 -3
  164. package/dist/server/{loadContent-D7ItMsEl.mjs → loadContent-BuintpdO.mjs} +6 -4
  165. package/dist/server/loadPage-BwjncpJf.mjs +2 -0
  166. package/dist/server/{loadPage-DaPiPYUL.mjs → loadPage-Dk4wea8M.mjs} +3 -2
  167. package/dist/server/next.mjs +9 -9
  168. package/dist/server/{overrideResolution-anoB3Kbn.mjs → overrideResolution-BDiQWM7D.mjs} +1 -1
  169. package/dist/server/{overrides-W1Cc6srh.mjs → overrides-DVemf-GV.mjs} +66 -46
  170. package/dist/server/page-converter.mjs +1 -1
  171. package/dist/server/{prebuild-BF9yNfCS.mjs → prebuild-DubLNgRH.mjs} +1 -1
  172. package/dist/server/prebuild.mjs +1 -1
  173. package/dist/server/{prefetchBlockData-Cn9k3DW6.mjs → prefetchBlockData-Bnbwoe5n.mjs} +48 -27
  174. package/dist/server/{publicProducts-BVcJ6TG7.mjs → publicProducts-D3Fc5TKk.mjs} +76 -70
  175. package/dist/server/{registry-4ZF3bUuJ.mjs → registry-zjd1P2Dl.mjs} +34 -21
  176. package/dist/server/rendering/server.mjs +4 -4
  177. package/dist/server/rendering.mjs +8 -8
  178. package/dist/server/{resolveBlockData-BKQ1Fc0M.mjs → resolveBlockData-CZJ--nH6.mjs} +1 -1
  179. package/dist/server/routing.mjs +1 -1
  180. package/dist/server/{schema-DgrigZq9.mjs → schema-BlTWmTSl.mjs} +58 -37
  181. package/dist/server/server.mjs +3 -3
  182. package/dist/server/{site-styles-CxE9F3hj.mjs → site-styles-yHytcXIB.mjs} +9 -10
  183. package/dist/server/{siteChromeOverlayClearance-OhS6f830.mjs → siteChromeOverlayClearance-D0uCNZ7E.mjs} +32 -36
  184. package/dist/server/{src-C44_fMy5.mjs → src-cbbK3Bho.mjs} +286 -71
  185. package/dist/server/theme-bridge.mjs +1 -1
  186. package/dist/server/theme.mjs +1 -1
  187. package/dist/server/{themeAdmission-CVc04B9m.mjs → themeAdmission-BdY8lP-K.mjs} +3 -2
  188. package/dist/server/{validation-BrbY0nxR.mjs → validation-CGH-Xs4E.mjs} +2 -2
  189. package/dist/server/{version-BBSk8uM6.mjs → version-DoOG6F13.mjs} +1 -1
  190. package/dist/styles/index.css +262 -65
  191. package/package.json +2 -3
  192. package/dist/_dts/AltchaWidget-COIYJ7DF.d.ts +0 -33
  193. package/dist/_dts/index-D2y4Iy-d.d.ts +0 -77
  194. package/dist/client/src-BNZzXgWu.mjs +0 -102
  195. package/dist/server/loadPage-D2qvYV5g.mjs +0 -2
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  import { i as useOptionalPreviewLayout, t as PreviewQueryProvider } from "./PreviewQueryProvider-BC0V7iAR.mjs";
3
- import { Hn as defaultThemeTokens, Mr as asDesignBlockId, Sr as indexRenderableMediaAssets, U as parseThemeForPersistence, br as buildRenderableMediaAssetIndex, rn as textColorStyle, un as parseSurfaceTree, xr as renderableMediaAssetSchema$1, zr as assertNever$1 } from "./ThemedButton-nUnE3iMv.mjs";
4
- import { $o as TabsList, $r as LINKED_CONTENT_ENTRY_META_KEY, Ai as blockLookFromContent, An as ApiRequestError, Ar as buildThemeDataAttrs, At as EditorProvider, B as useRetentionTicks, Bi as isRecord$5, Bn as clientComponentRegistry, Br as renderInlineText, Bs as parseFooterModuleId, Cn as decodePublicProductCategorySelectorQuery, Di as runTransforms, Dn as MediaEditorContextProvider, Do as getAtPath, Dr as getDefaultComponentRegistry, Ei as bodyCopyFragment, Er as mergeContentWithBlockStyleOverrides, Fi as loadedReadinessFact, Fr as buildAppointmentServicesView, G as EditorWriteSurface, Gi as inlineTextToPlainText, Gr as calendarWindowQuerySchema, Gs as readPublishedBlockPlacement, Hi as parseGeneratedIconAssetId, Hn as BlockApiProvider, Ho as CalloutDescription, Hr as Text$1, Hs as sameMailingListPlacementTargeting, Ht as useEditorUiStoreInstance, I as createEditorApiClientFactory, Ii as pageTemplateFromEntry, Ir as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, Is as cn, Ji as bindingSchema, Jr as resolveEntryRouteTarget, Jt as planLinkedSaveHandoverRetention, Ki as isInlineTextEmpty, Kr as publicEventsArraySchema, Ks as selectedContentVersionId, Li as unavailableReadinessFact, Ln as API_ENDPOINTS, Lr as offeringsListingFor, Mi as readRuntimeNow, Mr as buildLoadedOfferingsPreviewListing, Mt as createRoutingHelpers, Ni as resolveDateRuntimeContext, Nr as normalizeLocationMapSource, Ns as Button, Nt as createSnapshotFromPageRecord, Oi as defineFragment, Oo as siblingPath, Or as projectRecurringSchedule, Pi as admitReadinessFacts, Pr as resolveLocationMapLocation, Qn as isSupportedLoaderEndpoint, Qo as TabsContent, Qs as unsafeAsEditorBlockId, Qt as resolveRenderedValues, Sn as blocksKeys, Ti as ctaButton, Tn as deriveLaunchReadiness, U as EditLeaseDiscardedNotice, Ui as parseGeneratedIconSetId, Ur as RichText$1, Us as NO_BLOCK_VERSIONS, Ut as useOptionalEditorUiStoreInstance, V as VIEWING_PARTICIPATION, Vi as parseBlockIconValue, Vn as ImageResolveContextProvider, Vo as Callout, Vr as logger, Vs as parseMailingListPlacementTargeting, Vt as useEditorUiStore, W as EditLeaseModal, Wi as coerceInlineTextWithFallback, Wr as defaultTransforms, Ws as readEditorBlockVersionsFromPlacement, Xr as resolveRouteTarget, Xt as renderSourceFor, Yr as resolvePageRouteTarget, Yt as remoteDraftValues, Zo as Tabs, Zt as renderedFieldChanges, _i as testimonialsHeadingFragment, a as usePreviewAuth, ac as assertNever$2, ai as getCurrentResolveImageUrlContext, ao as formatSiteChromeBackgroundTokenLabel, as as DialogHeader, bi as ctaRowFragment, c as SessionJournalHost, ci as headingFragment, cr as offeringsPreviewBlockDefinition, di as faqHeadingFragment, ei as coerceLinkedContentEntriesPayload, en as unsafeAsLinkedContentEntryId, er as ThemeScopeCore, es as TabsTrigger, f as PreviewRichTextEditor, fi as blogFeaturedPostFragment, gi as testimonialsCarouselFragment, go as sectionTransitionVariantForBoundaryOptionId, h as PREVIEW_EDITABLE_OUTLINE, hi as formCopyFragment, ho as sectionTransitionFamilyForBoundaryOptionId, hr as validateManifestDraft, i as renewPreviewSession, ic as toUtcIsoDateTimeString, ii as buildResolveImageUrlContext, in as isEdited, ir as makeDefaultBlockComponent, is as DialogFooter, ji as readBlockComposition, jr as themeRuntimeScopeProps, jt as useEditor, ki as arrangementHooksFromContent, kn as useApiMediaUploader, kr as chosenString, kt as revealEditorElement, li as cardFragment, lr as publicRouteCandidatesSchema, m as PreviewTextEditor, mi as formEmbedFragment, mo as sectionTransitionFamilies, mr as compileManifestContentContract, n as initPreviewAuth, nn as editorAdmissionNotice, nr as resolveSdkFooterMode, ns as DialogContent, o as usePreviewToken, oi as setContextResolveImageUrlContext, or as getBlockDefinition, os as DialogTitle, p as PreviewInlineTextEditor, pi as singleButtonFragment, po as defaultSectionTransitionVariantForFamily, qr as bookingConsentCarrierSchema, qs as parseEditLeaseScope, qt as activeLinkedSaveHandover, r as registerPreviewRenewalFetcher, rn as baselineRevisionOf, rs as DialogDescription, s as SiteAdmissionObserver, si as richTextFragment, sn as canEditorWrite, sr as normalizeBlockContent, t as createGuardedPreviewApiClient, ti as getLinkedContentEntryMeta, ts as Dialog, u as renderSiteChromeBlock, ui as faqAccordionFragment, ur as SITE_CHROME_VISIBLE_HEADER_SELECTOR, v as EditableBlockProvider, vi as ctaCopyFragment, wn as DEFAULT_LAUNCH_READINESS_INPUT, wr as buildThemeRuntime, x as useEntryEditorController, xi as heroCopyFragment, y as EntryControllerProvider, yi as heroCtaRowFragment, z as createPageSurfaceEditorServices, zi as isObjectRecord, zn as unwrapResponse, zs as buildMailingListSignupBlockSourceRef } from "./previewAuthStore-DHtSQIBE.mjs";
3
+ import { $i as bookingConsentCarrierSchema, $s as unsafeAsEditorBlockId, Ai as buildThemeRuntime, At as EditorProvider, B as useRetentionTicks, Ba as admitReadinessFacts, Bi as resolveLocationMapLocation, Bn as clientComponentRegistry, Bs as buildMailingListSignupBlockSourceRef, Ca as testimonialsHeadingFragment, Cn as decodePublicProductCategorySelectorQuery, Cr as Dialog, Da as heroCopyFragment, Dn as MediaEditorContextProvider, Dr as DialogHeader, Ea as ctaRowFragment, Er as DialogFooter, Fa as arrangementHooksFromContent, Fi as chosenString, Fn as ApiRequestError, Fs as siblingPath, G as EditorWriteSurface, Ga as isObjectRecord, Gs as readEditorBlockVersionsFromPlacement, Ha as pageTemplateFromEntry, Hi as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, Hn as BlockApiProvider, Hs as parseMailingListPlacementTargeting, Ht as useEditorUiStoreInstance, I as createEditorApiClientFactory, Ia as blockLookFromContent, Ii as buildThemeDataAttrs, Ja as parseGeneratedIconAssetId, Ji as Text$1, Js as parseEditLeaseScope, Jt as planLinkedSaveHandoverRetention, Ka as isRecord$5, Ki as renderInlineText, Ks as readPublishedBlockPlacement, La as readBlockComposition, Li as themeRuntimeScopeProps, Ln as API_ENDPOINTS, Ls as cn, Ma as bodyCopyFragment, Mi as mergeContentWithBlockStyleOverrides, Mt as createRoutingHelpers, Na as runTransforms, Ni as getDefaultComponentRegistry, Nt as createSnapshotFromPageRecord, Or as DialogTitle, Pa as defineFragment, Pi as projectRecurringSchedule, Ps as getAtPath, Qa as isInlineTextEmpty, Qi as publicEventsArraySchema, Qt as resolveRenderedValues, Ra as readRuntimeNow, Ri as buildLoadedOfferingsPreviewListing, Sa as testimonialsCarouselFragment, Sn as blocksKeys, Sr as TabsTrigger, Ss as sectionTransitionVariantForBoundaryOptionId, Ta as heroCtaRowFragment, Tn as deriveLaunchReadiness, Tr as DialogDescription, U as EditLeaseDiscardedNotice, Ua as unavailableReadinessFact, Ui as offeringsListingFor, Us as sameMailingListPlacementTargeting, Ut as useOptionalEditorUiStoreInstance, V as VIEWING_PARTICIPATION, Va as loadedReadinessFact, Vi as buildAppointmentServicesView, Vn as ImageResolveContextProvider, Vs as parseFooterModuleId, Vt as useEditorUiStore, W as EditLeaseModal, Ws as NO_BLOCK_VERSIONS, Xa as coerceInlineTextWithFallback, Xi as defaultTransforms, Xt as renderSourceFor, Ya as parseGeneratedIconSetId, Yi as RichText$1, Yt as remoteDraftValues, Za as inlineTextToPlainText, Zi as calendarWindowQuerySchema, Zt as renderedFieldChanges, _a as faqHeadingFragment, a as usePreviewAuth, aa as LINKED_CONTENT_ENTRY_META_KEY, ac as toUtcIsoDateTimeString, ba as formEmbedFragment, bi as compileManifestContentContract, br as TabsContent, bs as sectionTransitionFamilies, c as SessionJournalHost, ci as resolveSdkFooterMode, da as getCurrentResolveImageUrlContext, ds as formatSiteChromeBackgroundTokenLabel, ea as resolveEntryRouteTarget, en as unsafeAsLinkedContentEntryId, eo as bindingSchema, f as PreviewRichTextEditor, fa as setContextResolveImageUrlContext, fi as getBlockDefinition, ga as faqAccordionFragment, gi as SITE_CHROME_VISIBLE_HEADER_SELECTOR, h as PREVIEW_EDITABLE_OUTLINE, ha as cardFragment, hi as publicRouteCandidatesSchema, i as renewPreviewSession, ii as isSupportedLoaderEndpoint, in as isEdited, ja as ctaButton, jt as useEditor, kn as useApiMediaUploader, kt as revealEditorElement, lr as Callout, m as PreviewTextEditor, ma as headingFragment, mi as offeringsPreviewBlockDefinition, n as initPreviewAuth, na as resolveRouteTarget, nn as editorAdmissionNotice, o as usePreviewToken, oa as coerceLinkedContentEntriesPayload, oc as assertNever$1, oi as ThemeScopeCore, p as PreviewInlineTextEditor, pa as richTextFragment, pi as normalizeBlockContent, qa as parseBlockIconValue, qi as logger, qs as selectedContentVersionId, qt as activeLinkedSaveHandover, r as registerPreviewRenewalFetcher, rn as baselineRevisionOf, s as SiteAdmissionObserver, sa as getLinkedContentEntryMeta, sn as canEditorWrite, t as createGuardedPreviewApiClient, ta as resolvePageRouteTarget, ti as Button, u as renderSiteChromeBlock, ua as buildResolveImageUrlContext, ui as makeDefaultBlockComponent, ur as CalloutDescription, v as EditableBlockProvider, va as blogFeaturedPostFragment, wa as ctaCopyFragment, wn as DEFAULT_LAUNCH_READINESS_INPUT, wr as DialogContent, x as useEntryEditorController, xa as formCopyFragment, xi as validateManifestDraft, xr as TabsList, xs as sectionTransitionFamilyForBoundaryOptionId, y as EntryControllerProvider, ya as singleButtonFragment, yr as Tabs, ys as defaultSectionTransitionVariantForFamily, z as createPageSurfaceEditorServices, za as resolveDateRuntimeContext, zi as normalizeLocationMapSource, zn as unwrapResponse } from "./previewAuthStore-By_zfrS5.mjs";
4
+ import { Hn as defaultThemeTokens, Mr as asDesignBlockId, Sr as indexRenderableMediaAssets, U as parseThemeForPersistence, br as buildRenderableMediaAssetIndex, rn as textColorStyle, un as parseSurfaceTree, xr as renderableMediaAssetSchema$1, zr as assertNever$2 } from "./ThemedButton-g7NPrsGp.mjs";
5
5
  import { Ft as parseLocationValue, H as GripVertical, It as projectPublicLocation, Lt as publicLocationSchema, _ as RotateCcw, kt as decideLocationSourcePermission, lt as ChevronRight, n as X, ut as ChevronLeft } from "./lucide-react-CA9cpo0P.mjs";
6
- import { $t as SiteDocumentLayout, A as resolveRuntimePreviewSourceForTheme, B as SiteChromeCustomizeProvider, Bt as CustomizeBackgroundColorPicker, D as PreviewThemeOverlayProvider, Dt as cyclePageDesignBlockLook, E as PreviewCompiledThemeProvider, Et as CustomizeBackgroundControlRows, F as entryFieldRebindingProjection, Ht as PreviewRenderPlanProjection, I as previewProjectionsFromAiOverlays, L as mergeResolvedDataContext, M as applyPreviewRuntimeContentProjections, Mt as lookPositionLabel, N as applyPreviewStructureProjections, Nt as lookTilePosition, O as usePreviewCompiledTheme, Ot as pageDesignLookPosition, P as blockHasPreviewContentFieldProjection, Qt as SITE_CHROME_CLASS_NAMES, R as renderedBlockContent, S as LookCyclePill, U as PreviewDesignCoordinatorProvider, Ut as usePreviewBlockCustomizeSelectionOptional, V as useSiteChromeCustomizeOptional, Vt as PreviewBlockCustomizeSelectionProvider, _ as useBlockCustomizeControls, a as sanitizeDashboardPath, an as toEditorPresentationPage, b as ArrangementModeSwitchPill, bt as PreviewPageDesignEditorStateProvider, cn as renderedJoinLayout, en as planSiteDocument, h as SiteFontStorageProvider, i as resolvePreviewDashboardSetupHandoff, in as selectBlockContent, j as applyPreviewContentFieldProjections, k as pageDesignRuntimeProjectionFromSource, ln as retargetJoinsAcrossOmissions, n as resolveSiteStyleAccess, nn as buildPageRenderPlan, on as composePageJoins, r as buildPreviewDashboardSetupUrl, rn as planArrangementContent, s as resolvePreviewSetupBannerModel, sn as joinSlotKey, t as canInspectSiteStyle, tn as ResponsiveScope, un as Toaster, w as useArrangementToolbar, xt as usePreviewPageDesignEditorState, y as ArrangementLookPill, z as withRenderedContentEntry } from "./siteStyleAccess-Chq5KKKh.mjs";
6
+ import { $t as SITE_CHROME_CLASS_NAMES, A as resolveRuntimePreviewSourceForTheme, B as SiteChromeCustomizeProvider, Bt as CustomizeBackgroundColorPicker, D as PreviewThemeOverlayProvider, Dt as cyclePageDesignBlockLook, E as PreviewCompiledThemeProvider, Et as CustomizeBackgroundControlRows, F as entryFieldRebindingProjection, Gt as Toaster, Ht as PreviewRenderPlanProjection, I as previewProjectionsFromAiOverlays, L as mergeResolvedDataContext, M as applyPreviewRuntimeContentProjections, Mt as lookPositionLabel, N as applyPreviewStructureProjections, Nt as lookTilePosition, O as usePreviewCompiledTheme, Ot as pageDesignLookPosition, P as blockHasPreviewContentFieldProjection, R as renderedBlockContent, S as LookCyclePill, U as PreviewDesignCoordinatorProvider, Ut as usePreviewBlockCustomizeSelectionOptional, V as useSiteChromeCustomizeOptional, Vt as PreviewBlockCustomizeSelectionProvider, _ as useBlockCustomizeControls, a as sanitizeDashboardPath, an as selectBlockContent, b as ArrangementModeSwitchPill, bt as PreviewPageDesignEditorStateProvider, cn as joinSlotKey, en as SiteDocumentLayout, h as SiteFontStorageProvider, i as resolvePreviewDashboardSetupHandoff, in as planArrangementContent, j as applyPreviewContentFieldProjections, k as pageDesignRuntimeProjectionFromSource, ln as renderedJoinLayout, n as resolveSiteStyleAccess, nn as ResponsiveScope, on as toEditorPresentationPage, r as buildPreviewDashboardSetupUrl, rn as buildPageRenderPlan, s as resolvePreviewSetupBannerModel, sn as composePageJoins, t as canInspectSiteStyle, tn as planSiteDocument, un as retargetJoinsAcrossOmissions, w as useArrangementToolbar, xt as usePreviewPageDesignEditorState, y as ArrangementLookPill, z as withRenderedContentEntry } from "./siteStyleAccess-BiSyYyyr.mjs";
7
7
  import { n as LocationPickerEnvironmentProvider } from "./LocationPickerEnvironment-QtSG2Bl-.mjs";
8
- import { a as resolvePreviewChromeSurface, i as getPreviewChromeSurfaceDataProps, n as PREVIEW_CHROME_THEME_CLASS_NAME, o as PREVIEW_KEEP_ALIVE_INTERVAL_MS, s as PREVIEW_KEEP_ALIVE_JITTER_RATIO, u as FixedBottomSurface } from "./previewChromeSurface-CxQ6dZ8D.mjs";
8
+ import { a as resolvePreviewChromeSurface, i as getPreviewChromeSurfaceDataProps, n as PREVIEW_CHROME_THEME_CLASS_NAME, o as PREVIEW_KEEP_ALIVE_INTERVAL_MS, s as PREVIEW_KEEP_ALIVE_JITTER_RATIO, u as FixedBottomSurface } from "./previewChromeSurface-Cjwxv90x.mjs";
9
9
  import * as React$1 from "react";
10
10
  import React, { Children, Fragment, cloneElement, createContext, isValidElement, useCallback, useContext, useEffect, useId, useLayoutEffect, useMemo, useReducer, useRef, useState } from "react";
11
11
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
@@ -13,150 +13,6 @@ import { useQueryClient } from "@tanstack/react-query";
13
13
  import { z } from "zod";
14
14
  import { createPortal } from "react-dom";
15
15
  import { useRouter } from "next/navigation.js";
16
- //#region ../ui/src/resizable-split-pane.tsx
17
- /**
18
- * Resizable split pane component
19
- *
20
- * Two-panel layout with draggable resize handle.
21
- * On mobile (<1024px), switches to tabs.
22
- */
23
- function ResizableSplitPane({ left, right, defaultSplit = 40, minLeftWidth = 300, minRightWidth = 400, leftLabel = "Editor", rightLabel = "Preview", defaultTab = "left", className, leftPaneClassName, rightPaneClassName, onSplitChange, splitPercent: controlledSplitPercent }) {
24
- const [internalSplitPercent, setInternalSplitPercent] = useState(defaultSplit);
25
- const [isDragging, setIsDragging] = useState(false);
26
- const [isMobile, setIsMobile] = useState(false);
27
- const containerRef = useRef(null);
28
- const splitPercent = controlledSplitPercent ?? internalSplitPercent;
29
- const setSplitPercent = useCallback((value) => {
30
- setInternalSplitPercent(value);
31
- onSplitChange?.(value);
32
- }, [onSplitChange]);
33
- useEffect(() => {
34
- const checkMobile = () => {
35
- setIsMobile(window.innerWidth < 1024);
36
- };
37
- checkMobile();
38
- window.addEventListener("resize", checkMobile);
39
- return () => window.removeEventListener("resize", checkMobile);
40
- }, []);
41
- const handleMouseDown = useCallback((e) => {
42
- e.preventDefault();
43
- setIsDragging(true);
44
- }, []);
45
- const handleMouseMove = useCallback((e) => {
46
- if (!isDragging || !containerRef.current) return;
47
- const containerRect = containerRef.current.getBoundingClientRect();
48
- const containerWidth = containerRect.width;
49
- let newSplitPercent = (e.clientX - containerRect.left) / containerWidth * 100;
50
- const minLeftPercent = minLeftWidth / containerWidth * 100;
51
- const minRightPercent = minRightWidth / containerWidth * 100;
52
- newSplitPercent = Math.max(minLeftPercent, newSplitPercent);
53
- newSplitPercent = Math.min(100 - minRightPercent, newSplitPercent);
54
- setSplitPercent(newSplitPercent);
55
- }, [
56
- isDragging,
57
- minLeftWidth,
58
- minRightWidth,
59
- setSplitPercent
60
- ]);
61
- const handleMouseUp = useCallback(() => {
62
- setIsDragging(false);
63
- }, []);
64
- useEffect(() => {
65
- if (isDragging) {
66
- document.addEventListener("mousemove", handleMouseMove);
67
- document.addEventListener("mouseup", handleMouseUp);
68
- return () => {
69
- document.removeEventListener("mousemove", handleMouseMove);
70
- document.removeEventListener("mouseup", handleMouseUp);
71
- };
72
- }
73
- }, [
74
- isDragging,
75
- handleMouseMove,
76
- handleMouseUp
77
- ]);
78
- if (isMobile) return /* @__PURE__ */ jsx("div", {
79
- className: cn("h-full min-h-0 overflow-hidden", className),
80
- children: /* @__PURE__ */ jsxs(Tabs, {
81
- defaultValue: defaultTab,
82
- className: "flex h-full flex-col",
83
- children: [
84
- /* @__PURE__ */ jsxs(TabsList, {
85
- className: "w-full justify-start rounded-none border-b",
86
- children: [/* @__PURE__ */ jsx(TabsTrigger, {
87
- value: "left",
88
- className: "flex-1",
89
- children: leftLabel
90
- }), /* @__PURE__ */ jsx(TabsTrigger, {
91
- value: "right",
92
- className: "flex-1",
93
- children: rightLabel
94
- })]
95
- }),
96
- /* @__PURE__ */ jsx(TabsContent, {
97
- value: "left",
98
- className: "flex-1 overflow-auto min-h-0",
99
- children: left
100
- }),
101
- /* @__PURE__ */ jsx(TabsContent, {
102
- value: "right",
103
- className: "flex-1 overflow-auto min-h-0",
104
- children: right
105
- })
106
- ]
107
- })
108
- });
109
- return /* @__PURE__ */ jsxs("div", {
110
- ref: containerRef,
111
- "data-testid": "resizable-split-pane",
112
- className: cn("relative flex h-full min-h-0 overflow-hidden", className),
113
- style: { cursor: isDragging ? "col-resize" : void 0 },
114
- children: [
115
- /* @__PURE__ */ jsx("div", {
116
- className: cn("h-full min-h-0 overflow-auto", leftPaneClassName),
117
- style: { width: `${splitPercent}%` },
118
- children: left
119
- }),
120
- /* @__PURE__ */ jsx("div", {
121
- "data-testid": "resizable-split-pane-handle",
122
- role: "separator",
123
- "aria-orientation": "vertical",
124
- className: cn("group relative flex w-1.5 flex-shrink-0 cursor-col-resize items-center justify-center border-x bg-border/30 transition-colors hover:bg-border", isDragging && "bg-primary"),
125
- onMouseDown: handleMouseDown,
126
- children: /* @__PURE__ */ jsx("div", {
127
- className: "absolute inset-y-0 flex items-center",
128
- children: /* @__PURE__ */ jsx(GripVertical, { className: cn("h-3 w-3 text-muted-foreground transition-colors group-hover:text-foreground", isDragging && "text-primary-foreground") })
129
- })
130
- }),
131
- /* @__PURE__ */ jsx("div", {
132
- className: cn("relative z-10 h-full min-h-0 overflow-auto", rightPaneClassName),
133
- style: { width: `${100 - splitPercent}%` },
134
- children: right
135
- }),
136
- isDragging && /* @__PURE__ */ jsx("div", { className: "pointer-events-none fixed inset-0 z-50 cursor-col-resize" })
137
- ]
138
- });
139
- }
140
- //#endregion
141
- //#region ../ui/src/toast.tsx
142
- function ToastProvider() {
143
- return /* @__PURE__ */ jsx(Toaster, {
144
- position: "bottom-right",
145
- offset: {
146
- right: "calc(var(--assistant-dock-inset, 0px) + 24px)",
147
- bottom: "24px"
148
- },
149
- richColors: false,
150
- className: "rb-sonner-toaster",
151
- toastOptions: { classNames: {
152
- toast: "rb-sonner-toast",
153
- success: "rb-sonner-toast-success",
154
- info: "rb-sonner-toast-info",
155
- error: "rb-sonner-toast-error"
156
- } }
157
- });
158
- }
159
- //#endregion
160
16
  //#region ../blocks/src/pageRenderAudience.tsx
161
17
  /**
162
18
  * The single policy for what a non-renderable block looks like.
@@ -535,6 +391,7 @@ function resolveDemoEmailSuppression(dataContext) {
535
391
  }
536
392
  function pageRuntimeContext(dataContext) {
537
393
  return {
394
+ interactionContext: dataContext?.interactionContext,
538
395
  dateContext: pageDateRuntimeContext(dataContext),
539
396
  now: dataContext?.now,
540
397
  template: dataContext?.template ?? { kind: "page" }
@@ -714,7 +571,7 @@ function offeringsPreviewPhotoCount(listing) {
714
571
  case "nothing-to-show": return 0;
715
572
  case "by-date": return listing.items.filter(({ item }) => hasPhoto(item)).length;
716
573
  case "by-type": return listing.groups.reduce((count, load) => count + groupPhotoCount(load), 0);
717
- default: return assertNever$2(listing);
574
+ default: return assertNever$1(listing);
718
575
  }
719
576
  }
720
577
  function groupPhotoCount(load) {
@@ -722,14 +579,14 @@ function groupPhotoCount(load) {
722
579
  case "empty":
723
580
  case "failed": return 0;
724
581
  case "items": return load.items.filter(hasPhoto).length;
725
- default: return assertNever$2(load);
582
+ default: return assertNever$1(load);
726
583
  }
727
584
  }
728
585
  function hasPhoto(item) {
729
586
  switch (item.kind) {
730
587
  case "event": return Boolean(item.event.presentation?.image);
731
588
  case "run": return Boolean(item.run.representative.presentation?.image);
732
- default: return assertNever$2(item);
589
+ default: return assertNever$1(item);
733
590
  }
734
591
  }
735
592
  //#endregion
@@ -919,7 +776,7 @@ function preparePageRender(input) {
919
776
  template: input.dataContext?.template ?? pageTemplateFromEntry(input.dataContext?.contentEntry)
920
777
  });
921
778
  const permission = input.dataContext?.businessLocationPermission ?? decideLocationSourcePermission("business_address", input.dataContext?.businessAddressVisibility);
922
- const entries = input.plan.entries.filter((entry) => input.audience === "authoring" || !entryNeedsSetup(entry, facts)).filter((entry) => isPublicSourcePermitted(entry, permission) || input.audience === "authoring" && permission.kind === "hidden").map((entry) => preparedPlanEntry(entry, prepareSourceEntry(entry, input, permission)));
779
+ const entries = input.plan.entries.filter((entry) => input.audience === "authoring" || !entryNeedsSetup(entry, facts, input.dataContext?.interactionContext)).filter((entry) => isPublicSourcePermitted(entry, permission) || input.audience === "authoring" && permission.kind === "hidden").map((entry) => preparedPlanEntry(entry, prepareSourceEntry(entry, input, permission)));
923
780
  const constructionFailures = entries.filter((candidate) => candidate.prepared.kind === "render-threw").map((candidate) => candidate.entry);
924
781
  const survivors = input.audience === "authoring" ? entries : entries.filter((candidate) => candidate.prepared.kind !== "render-threw" && candidate.prepared.kind !== "unresolved-location");
925
782
  return {
@@ -956,15 +813,15 @@ function isPublicSourcePermitted(entry, permission) {
956
813
  const rawSource = entry.renderableContent.locationSource;
957
814
  return normalizeLocationMapSource(typeof rawSource === "string" ? rawSource : null) !== "business_address" || permission.kind === "permitted";
958
815
  }
816
+ function entryNeedsSetup(entry, facts, interaction) {
817
+ return entry.kind === "renderable" && entry.definition.readiness?.assess(entry.renderableContent, facts, interaction).kind === "NeedsSetup";
818
+ }
959
819
  /**
960
820
  * The only place joins are composed. Plan-time omissions were already
961
821
  * re-pointed by the plan; construction failures are re-pointed here by the
962
822
  * same primitive, so `[A, B, C]` losing B still gets an A→C join. Each
963
823
  * survivor is then classified from its final content.
964
824
  */
965
- function entryNeedsSetup(entry, facts) {
966
- return entry.kind === "renderable" && entry.definition.readiness?.assess(entry.renderableContent, facts).kind === "NeedsSetup";
967
- }
968
825
  function composeSurvivorJoins(plan, survivors, themeResources) {
969
826
  return composePageJoins({
970
827
  joins: retargetJoinsAcrossOmissions({
@@ -1078,14 +935,16 @@ function newsletterBlockProps(block, renderedContent, stage) {
1078
935
  }
1079
936
  /** Site, transport and session context a block needs to call back to the API. */
1080
937
  function blockSessionProps(dataContext) {
938
+ const context = dataContext ?? {};
1081
939
  return {
1082
- siteId: dataContext?.siteId,
1083
- apiBaseUrl: dataContext?.apiBaseUrl,
1084
- supabaseUrl: dataContext?.supabaseUrl,
1085
- portalToken: dataContext?.portalToken ?? null,
1086
- previewToken: dataContext?.previewToken ?? null,
1087
- readAuthority: dataContext?.readAuthority,
1088
- stage: dataContext?.previewStage
940
+ siteId: context.siteId,
941
+ interactionContext: context.interactionContext,
942
+ apiBaseUrl: context.apiBaseUrl,
943
+ supabaseUrl: context.supabaseUrl,
944
+ portalToken: context.portalToken ?? null,
945
+ previewToken: context.previewToken ?? null,
946
+ readAuthority: context.readAuthority,
947
+ stage: context.previewStage
1089
948
  };
1090
949
  }
1091
950
  /** What this render is *about* — the entry, occurrence or surface in scope. */
@@ -1845,7 +1704,7 @@ async function fetchAllPages(apiClient, endpoint, params, offset, seenPages) {
1845
1704
  case "invalid": throw new Error(page.message);
1846
1705
  case "complete": return page.entries;
1847
1706
  case "continue": return [...page.entries, ...await fetchAllPages(apiClient, endpoint, params, page.offset, page.seenPages)];
1848
- default: return assertNever$2(page);
1707
+ default: return assertNever$1(page);
1849
1708
  }
1850
1709
  }
1851
1710
  function isUnknownArray(value) {
@@ -2299,6 +2158,150 @@ function normalizePublicApiLoaderParams(endpoint, params, context) {
2299
2158
  const Text = Text$1;
2300
2159
  const RichText = RichText$1;
2301
2160
  //#endregion
2161
+ //#region ../ui/src/resizable-split-pane.tsx
2162
+ /**
2163
+ * Resizable split pane component
2164
+ *
2165
+ * Two-panel layout with draggable resize handle.
2166
+ * On mobile (<1024px), switches to tabs.
2167
+ */
2168
+ function ResizableSplitPane({ left, right, defaultSplit = 40, minLeftWidth = 300, minRightWidth = 400, leftLabel = "Editor", rightLabel = "Preview", defaultTab = "left", className, leftPaneClassName, rightPaneClassName, onSplitChange, splitPercent: controlledSplitPercent }) {
2169
+ const [internalSplitPercent, setInternalSplitPercent] = useState(defaultSplit);
2170
+ const [isDragging, setIsDragging] = useState(false);
2171
+ const [isMobile, setIsMobile] = useState(false);
2172
+ const containerRef = useRef(null);
2173
+ const splitPercent = controlledSplitPercent ?? internalSplitPercent;
2174
+ const setSplitPercent = useCallback((value) => {
2175
+ setInternalSplitPercent(value);
2176
+ onSplitChange?.(value);
2177
+ }, [onSplitChange]);
2178
+ useEffect(() => {
2179
+ const checkMobile = () => {
2180
+ setIsMobile(window.innerWidth < 1024);
2181
+ };
2182
+ checkMobile();
2183
+ window.addEventListener("resize", checkMobile);
2184
+ return () => window.removeEventListener("resize", checkMobile);
2185
+ }, []);
2186
+ const handleMouseDown = useCallback((e) => {
2187
+ e.preventDefault();
2188
+ setIsDragging(true);
2189
+ }, []);
2190
+ const handleMouseMove = useCallback((e) => {
2191
+ if (!isDragging || !containerRef.current) return;
2192
+ const containerRect = containerRef.current.getBoundingClientRect();
2193
+ const containerWidth = containerRect.width;
2194
+ let newSplitPercent = (e.clientX - containerRect.left) / containerWidth * 100;
2195
+ const minLeftPercent = minLeftWidth / containerWidth * 100;
2196
+ const minRightPercent = minRightWidth / containerWidth * 100;
2197
+ newSplitPercent = Math.max(minLeftPercent, newSplitPercent);
2198
+ newSplitPercent = Math.min(100 - minRightPercent, newSplitPercent);
2199
+ setSplitPercent(newSplitPercent);
2200
+ }, [
2201
+ isDragging,
2202
+ minLeftWidth,
2203
+ minRightWidth,
2204
+ setSplitPercent
2205
+ ]);
2206
+ const handleMouseUp = useCallback(() => {
2207
+ setIsDragging(false);
2208
+ }, []);
2209
+ useEffect(() => {
2210
+ if (isDragging) {
2211
+ document.addEventListener("mousemove", handleMouseMove);
2212
+ document.addEventListener("mouseup", handleMouseUp);
2213
+ return () => {
2214
+ document.removeEventListener("mousemove", handleMouseMove);
2215
+ document.removeEventListener("mouseup", handleMouseUp);
2216
+ };
2217
+ }
2218
+ }, [
2219
+ isDragging,
2220
+ handleMouseMove,
2221
+ handleMouseUp
2222
+ ]);
2223
+ if (isMobile) return /* @__PURE__ */ jsx("div", {
2224
+ className: cn("h-full min-h-0 overflow-hidden", className),
2225
+ children: /* @__PURE__ */ jsxs(Tabs, {
2226
+ defaultValue: defaultTab,
2227
+ className: "flex h-full flex-col",
2228
+ children: [
2229
+ /* @__PURE__ */ jsxs(TabsList, {
2230
+ className: "w-full justify-start rounded-none border-b",
2231
+ children: [/* @__PURE__ */ jsx(TabsTrigger, {
2232
+ value: "left",
2233
+ className: "flex-1",
2234
+ children: leftLabel
2235
+ }), /* @__PURE__ */ jsx(TabsTrigger, {
2236
+ value: "right",
2237
+ className: "flex-1",
2238
+ children: rightLabel
2239
+ })]
2240
+ }),
2241
+ /* @__PURE__ */ jsx(TabsContent, {
2242
+ value: "left",
2243
+ className: "flex-1 overflow-auto min-h-0",
2244
+ children: left
2245
+ }),
2246
+ /* @__PURE__ */ jsx(TabsContent, {
2247
+ value: "right",
2248
+ className: "flex-1 overflow-auto min-h-0",
2249
+ children: right
2250
+ })
2251
+ ]
2252
+ })
2253
+ });
2254
+ return /* @__PURE__ */ jsxs("div", {
2255
+ ref: containerRef,
2256
+ "data-testid": "resizable-split-pane",
2257
+ className: cn("relative flex h-full min-h-0 overflow-hidden", className),
2258
+ style: { cursor: isDragging ? "col-resize" : void 0 },
2259
+ children: [
2260
+ /* @__PURE__ */ jsx("div", {
2261
+ className: cn("h-full min-h-0 overflow-auto", leftPaneClassName),
2262
+ style: { width: `${splitPercent}%` },
2263
+ children: left
2264
+ }),
2265
+ /* @__PURE__ */ jsx("div", {
2266
+ "data-testid": "resizable-split-pane-handle",
2267
+ role: "separator",
2268
+ "aria-orientation": "vertical",
2269
+ className: cn("group relative flex w-1.5 flex-shrink-0 cursor-col-resize items-center justify-center border-x bg-border/30 transition-colors hover:bg-border", isDragging && "bg-primary"),
2270
+ onMouseDown: handleMouseDown,
2271
+ children: /* @__PURE__ */ jsx("div", {
2272
+ className: "absolute inset-y-0 flex items-center",
2273
+ children: /* @__PURE__ */ jsx(GripVertical, { className: cn("h-3 w-3 text-muted-foreground transition-colors group-hover:text-foreground", isDragging && "text-primary-foreground") })
2274
+ })
2275
+ }),
2276
+ /* @__PURE__ */ jsx("div", {
2277
+ className: cn("relative z-10 h-full min-h-0 overflow-auto", rightPaneClassName),
2278
+ style: { width: `${100 - splitPercent}%` },
2279
+ children: right
2280
+ }),
2281
+ isDragging && /* @__PURE__ */ jsx("div", { className: "pointer-events-none fixed inset-0 z-50 cursor-col-resize" })
2282
+ ]
2283
+ });
2284
+ }
2285
+ //#endregion
2286
+ //#region ../ui/src/toast.tsx
2287
+ function ToastProvider() {
2288
+ return /* @__PURE__ */ jsx(Toaster, {
2289
+ position: "bottom-right",
2290
+ offset: {
2291
+ right: "calc(var(--assistant-dock-inset, 0px) + 24px)",
2292
+ bottom: "24px"
2293
+ },
2294
+ richColors: false,
2295
+ className: "rb-sonner-toaster",
2296
+ toastOptions: { classNames: {
2297
+ toast: "rb-sonner-toast",
2298
+ success: "rb-sonner-toast-success",
2299
+ info: "rb-sonner-toast-info",
2300
+ error: "rb-sonner-toast-error"
2301
+ } }
2302
+ });
2303
+ }
2304
+ //#endregion
2302
2305
  //#region ../db/src/schemas/forms.ts
2303
2306
  /**
2304
2307
  * Form Settings Schemas
@@ -3098,6 +3101,37 @@ function isOneOf(value, allowed) {
3098
3101
  return allowed.includes(value);
3099
3102
  }
3100
3103
  new TextDecoder("latin1");
3104
+ const ImageKindSchema = z.enum([
3105
+ "photo",
3106
+ "logo",
3107
+ "icon",
3108
+ "illustration",
3109
+ "graphic-with-text",
3110
+ "screenshot",
3111
+ "document",
3112
+ "other"
3113
+ ]);
3114
+ z.enum(["original", "light-dark-composite"]);
3115
+ const ImageFactsSchema = z.strictObject({
3116
+ kind: ImageKindSchema,
3117
+ description: z.string().trim().min(1).max(600),
3118
+ readableText: z.string().trim().max(2e3)
3119
+ });
3120
+ /** Canonical English search slugs; unusable output cannot become an empty label. */
3121
+ function normalizeImageLabels(labels) {
3122
+ return [...new Set(labels.map((label) => label.normalize("NFKD").replace(/[\u0300-\u036f]/g, "").toLowerCase().trim().replace(/[^a-z0-9]+/g, "-").replace(/^-|-$/g, "")).filter((label) => /[a-z]/.test(label)))];
3123
+ }
3124
+ const ImageLabelsSchema = z.array(z.string().trim().min(1).max(64)).min(1).max(10).transform(normalizeImageLabels).pipe(z.array(z.string().min(1).max(64).regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/)).min(1).max(10));
3125
+ ImageFactsSchema.extend({ labels: ImageLabelsSchema });
3126
+ z.strictObject({
3127
+ version: z.literal(1),
3128
+ facts: ImageFactsSchema,
3129
+ modelId: z.string().trim().min(1),
3130
+ promptVersion: z.string().trim().min(1),
3131
+ sourceChecksum: z.string().regex(/^[a-f0-9]{64}$/),
3132
+ analyzedAt: z.iso.datetime({ offset: true }),
3133
+ embeddingModelId: z.string().trim().min(1)
3134
+ });
3101
3135
  function slugifyMediaIdentifier(value) {
3102
3136
  return value.toLowerCase().trim().replace(/[^a-z0-9\s-]/g, "").replace(/\s+/g, "-").replace(/-+/g, "-");
3103
3137
  }
@@ -3277,6 +3311,11 @@ var MediaStorageError = class extends Error {
3277
3311
  this.cause = options.cause;
3278
3312
  }
3279
3313
  };
3314
+ z.enum([
3315
+ "active",
3316
+ "pending-delete",
3317
+ "deleted"
3318
+ ]).optional();
3280
3319
  const pad = (value) => value.toString().padStart(2, "0");
3281
3320
  const extractExtension = (filename) => {
3282
3321
  if (!hasText(filename)) return "";
@@ -3383,6 +3422,8 @@ z.object({
3383
3422
  caption: z.string().optional().nullable(),
3384
3423
  exif: z.record(z.string(), z.any()).optional().nullable(),
3385
3424
  createdBy: z.string().min(1).optional().nullable(),
3425
+ durationSeconds: z.number().positive().nullable().optional(),
3426
+ thumbnailAssetId: z.string().uuid().nullable().optional(),
3386
3427
  isThumbnail: z.boolean().optional()
3387
3428
  });
3388
3429
  z.object({
@@ -3418,17 +3459,39 @@ z.object({
3418
3459
  });
3419
3460
  const searchMatchRowSchema = z.object({
3420
3461
  id: z.string(),
3421
- score: z.number()
3462
+ score: z.number().nullable(),
3463
+ tier: z.enum([
3464
+ "exact",
3465
+ "partial",
3466
+ "semantic"
3467
+ ]),
3468
+ reasons: z.array(z.enum([
3469
+ "label",
3470
+ "exact_text",
3471
+ "text",
3472
+ "semantic"
3473
+ ]))
3422
3474
  });
3423
3475
  z.array(searchMatchRowSchema);
3424
- const mediaLabelRowSchema = z.object({
3425
- id: z.number(),
3426
- slug: z.string(),
3427
- name: z.string(),
3428
- created_at: z.string(),
3429
- updated_at: z.string()
3476
+ z.object({
3477
+ siteId: z.string().uuid(),
3478
+ vector: z.array(z.number().finite()).length(1536).nullable(),
3479
+ query: z.string().trim().nullable().default(null),
3480
+ labels: z.array(z.string()).default([]),
3481
+ fileFilter: z.enum(MEDIA_ASSET_FILE_FILTERS).default("all"),
3482
+ offset: z.number().int().nonnegative().default(0),
3483
+ preferredKind: z.literal("logo").nullable().default(null),
3484
+ limit: z.number().int().min(1).max(200).default(20),
3485
+ threshold: z.number().positive().default(1.5),
3486
+ libraryScope: z.enum(MEDIA_ASSET_LIBRARY_SCOPES).default("files-and-media")
3430
3487
  });
3431
- z.array(mediaLabelRowSchema);
3488
+ z.array(z.number().finite()).length(1536);
3489
+ z.enum([
3490
+ "committed",
3491
+ "conflict",
3492
+ "superseded",
3493
+ "claim-lost"
3494
+ ]);
3432
3495
  //#endregion
3433
3496
  //#region ../media-storage-api/dist/index.mjs
3434
3497
  const DEFAULT_MESSAGES = {
@@ -4599,7 +4662,7 @@ function applyOnboardingConfirmationUpdate(state, update) {
4599
4662
  ...state,
4600
4663
  statusLoadFailed: update.statusLoadFailed
4601
4664
  };
4602
- default: return assertNever$2(update);
4665
+ default: return assertNever$1(update);
4603
4666
  }
4604
4667
  }
4605
4668
  function applyOnboardingConfirmationUpdates(state, updates) {
@@ -6747,7 +6810,7 @@ function renderThemedDocument(runtime, compiled, responsiveMode, documentNode) {
6747
6810
  children: documentNode
6748
6811
  });
6749
6812
  case "none": return documentNode;
6750
- default: return assertNever$2(runtime);
6813
+ default: return assertNever$1(runtime);
6751
6814
  }
6752
6815
  }
6753
6816
  function PreviewOverrideOnlySiteDocument({ children, runtime, useContainerResponsiveMode, viewportMode, viewportWidth, scale, contentHeight, scaleContainerRef, contentRef }) {
@@ -6911,10 +6974,10 @@ function resolveShellThemeRoles(props) {
6911
6974
  }
6912
6975
  const previewContainerResponsiveEnabled = process.env.NEXT_PUBLIC_ENABLE_PREVIEW_CONTAINER_RESPONSIVE !== "false";
6913
6976
  const PreviewEditorSidebar = React.lazy(async () => {
6914
- return { default: (await import("./PreviewEditorSidebar-BhgPyyUW.mjs")).PreviewEditorSidebar };
6977
+ return { default: (await import("./PreviewEditorSidebar-C3AQVxQt.mjs")).PreviewEditorSidebar };
6915
6978
  });
6916
6979
  const PreviewEditorUI = React.lazy(async () => {
6917
- return { default: (await import("./PreviewEditorUI-lndKKBtB.mjs")).PreviewEditorUI };
6980
+ return { default: (await import("./PreviewEditorUI-C-1zDCR_.mjs")).PreviewEditorUI };
6918
6981
  });
6919
6982
  function renderShellProviders(input) {
6920
6983
  if (!input.themeRoles) return input.content;
@@ -8283,7 +8346,7 @@ function boundaryBreakDisplay(boundary) {
8283
8346
  canReset: true,
8284
8347
  resetLabel: "Use default break"
8285
8348
  };
8286
- default: return assertNever$1(boundary.breakChoice, "Unhandled boundary break choice");
8349
+ default: return assertNever$2(boundary.breakChoice, "Unhandled boundary break choice");
8287
8350
  }
8288
8351
  }
8289
8352
  /**
@@ -8308,7 +8371,7 @@ function autoBoundaryBreakDisplay(source, label) {
8308
8371
  canReset: false,
8309
8372
  resetLabel: "Default"
8310
8373
  };
8311
- default: return assertNever$1(source, "Unhandled boundary default source");
8374
+ default: return assertNever$2(source, "Unhandled boundary default source");
8312
8375
  }
8313
8376
  }
8314
8377
  function formatBlockKindLabel(blockKind) {
@@ -1,3 +1,3 @@
1
1
  "use client";
2
- import { t as SdkPreviewModeRuntime } from "./SdkPreviewModeRuntime-Bk7On_EM.mjs";
2
+ import { t as SdkPreviewModeRuntime } from "./SdkPreviewModeRuntime-B47yHFL0.mjs";
3
3
  export { SdkPreviewModeRuntime };