@riverbankcms/sdk 0.168.0 → 0.169.1

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 (211) hide show
  1. package/dist/_dts/{BlocksIslandsHydrator-CiD_VVGM.d.ts → BlocksIslandsHydrator-DEhlJEwj.d.ts} +1 -1
  2. package/dist/_dts/{Page-Bj6VJRS5.d.ts → Page-BhCfStX1.d.ts} +7 -7
  3. package/dist/_dts/{SdkPreviewMode-ChpsnwDX.d.ts → SdkPreviewMode-DSYdsdmJ.d.ts} +2 -2
  4. package/dist/_dts/{client-C8mfUxrJ.d.ts → client-BZMn4Y99.d.ts} +39 -397
  5. package/dist/_dts/{content-types-_vXZyR4H.d.ts → content-types-EMK-E_r9.d.ts} +2 -2
  6. package/dist/_dts/{contracts-CJFfrVKU.d.ts → contracts-DjYsGY3B.d.ts} +4 -3
  7. package/dist/_dts/{footerPageOutline-CMegb23G.d.ts → footerPageOutline-BtYUi-m0.d.ts} +6 -6
  8. package/dist/_dts/{generatePageMetadata-D9YdAIMh.d.ts → generatePageMetadata-D_fNTi5r.d.ts} +2 -2
  9. package/dist/_dts/{index-BQXaZ7aY.d.ts → index-BR0i0c3G.d.ts} +4 -4
  10. package/dist/_dts/{index-Bpr-wT5k.d.ts → index-BV-qVnt7.d.ts} +2 -2
  11. package/dist/_dts/{index-C7_Rz8EY.d.ts → index-BYYhTQ_b.d.ts} +3 -3
  12. package/dist/_dts/{index-Vh8B9FSa.d.ts → index-BzguBJzR.d.ts} +1 -1
  13. package/dist/_dts/{index-Dgz6yhsy.d.ts → index-DgEwZ5WQ.d.ts} +1 -1
  14. package/dist/_dts/{index-Cx2BQlHL.d.ts → index-NaRauKDR.d.ts} +1 -1
  15. package/dist/_dts/{index-vR3p9Bu-.d.ts → index-QIbYMeI7.d.ts} +2 -2
  16. package/dist/_dts/{loadContent-dhWSgLeS.d.ts → loadContent-BmGH6NKl.d.ts} +7 -7
  17. package/dist/_dts/{request-BrYhNV9Z.d.ts → request-DssgRQSm.d.ts} +9558 -7863
  18. package/dist/_dts/{resolveBlockData-BfSHm8Ms.d.ts → resolveBlockData-5BqNxwL8.d.ts} +5 -5
  19. package/dist/_dts/{resolvePageContent-gZJ4i1wN.d.ts → resolvePageContent-DIuwuFA7.d.ts} +2 -2
  20. package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
  21. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  22. package/dist/_dts/sdk/src/client.d.ts +7 -7
  23. package/dist/_dts/sdk/src/config/index.d.ts +6 -6
  24. package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
  25. package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
  26. package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
  27. package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
  28. package/dist/_dts/sdk/src/data/types.d.ts +2 -2
  29. package/dist/_dts/sdk/src/index.d.ts +8 -8
  30. package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
  31. package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
  32. package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
  33. package/dist/_dts/sdk/src/next/index.d.ts +7 -7
  34. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  35. package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
  36. package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
  37. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  38. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  39. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  40. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  41. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  42. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
  43. package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
  44. package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
  45. package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
  46. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  47. package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
  48. package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
  49. package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
  50. package/dist/_dts/sdk/src/server.d.ts +5 -5
  51. package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
  52. package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
  53. package/dist/_dts/{types-BB33-Spd.d.ts → types-DrAWDtqR.d.ts} +3 -3
  54. package/dist/_dts/{types-BVFXYtRg.d.ts → types-Z388-GR1.d.ts} +7 -7
  55. package/dist/_dts/{types-FOsJ-KYb.d.ts → types-cObpvZGF.d.ts} +2 -2
  56. package/dist/_dts/{validation-DckTc6TQ.d.ts → validation-hLr8zVrc.d.ts} +4 -4
  57. package/dist/client/BlocksIslandsHydrator-CN2GyuuA.mjs +410 -0
  58. package/dist/client/{BookingMailingListNote-Dsugoe-n.mjs → BookingMailingListNote-Br1VyHkP.mjs} +17 -6
  59. package/dist/client/{BookingQuestionFields-Bhh0cvsl.mjs → BookingQuestionFields-LLGCWjvU.mjs} +3 -3
  60. package/dist/client/{CalendarNavigationChevron-CNe3ZjdC.mjs → CalendarNavigationChevron-DSnSBNeq.mjs} +7 -7
  61. package/dist/client/{DemoBookingPortalAccess-BeiZxEUJ.mjs → DemoBookingPortalAccess-Cilv5zdS.mjs} +65 -9
  62. package/dist/client/{EventCalendar.client-BL943-tl.mjs → EventCalendar.client-ucgdMS35.mjs} +9 -9
  63. package/dist/client/{EventCombined.client-BFVxECTp.mjs → EventCombined.client-BEdfJGpx.mjs} +7 -7
  64. package/dist/client/{EventItem-BIc4gjiD.mjs → EventItem-OpLehMpT.mjs} +4 -4
  65. package/dist/client/{EventListWeekNavigation-a0QEIEf0.mjs → EventListWeekNavigation-DTsVU6gc.mjs} +1 -1
  66. package/dist/client/{EventListing.client-CEFTC3jH.mjs → EventListing.client-8MFGI9BA.mjs} +3 -3
  67. package/dist/client/{EventListing.view-Bt2sBBms.mjs → EventListing.view-BCvRqU86.mjs} +6 -6
  68. package/dist/client/{EventRegistrationPayment-D9YBNb_E.mjs → EventRegistrationPayment-CqH3hE-k.mjs} +132 -62
  69. package/dist/client/{LocationMapActions-gqzt5gkW.mjs → LocationMapActions-BFp2uQQQ.mjs} +1 -1
  70. package/dist/client/{MapDrawingSvg-13JQI7_z.mjs → MapDrawingSvg-DDWfmgpA.mjs} +1 -1
  71. package/dist/client/{Page-D_M2Vxz3.mjs → Page-Bu5TJU3L.mjs} +53 -22
  72. package/dist/client/{StepIndicator-CaN8snZ8.mjs → StepIndicator-CR7_0yu4.mjs} +5 -4
  73. package/dist/client/{accessibleSurfaces-chpD4C2c.mjs → accessibleSurfaces-_7jkuinl.mjs} +56 -8
  74. package/dist/client/{accordion-DE7OG--d.mjs → accordion-DMItWylU.mjs} +6 -1
  75. package/dist/client/{booking-form.client-CS1PPjw7.mjs → booking-form.client-wd71DG19.mjs} +505 -217
  76. package/dist/client/{bookingForm-DE2CwIU9.mjs → bookingForm-Cyr2qeS1.mjs} +17 -17
  77. package/dist/client/{bookingRoute-Bqlyu5Vb.mjs → bookingRoute-D6DlxYx6.mjs} +6 -2
  78. package/dist/client/bookings.mjs +16 -13
  79. package/dist/client/{carousel-DZyUdnFh.mjs → carousel-B5-Hzzif.mjs} +7 -9
  80. package/dist/client/{carousel.client-BD4DXMtI.mjs → carousel.client-eSSr1oYA.mjs} +2 -2
  81. package/dist/client/{cart-D7HkkNwe.mjs → cart-B-M5l__W.mjs} +3 -3
  82. package/dist/client/{cart.client-H4sv2TpD.mjs → cart.client-COAP4CEy.mjs} +1 -1
  83. package/dist/client/{checkout-2qVyG-Sh.mjs → checkout-ZHc8GfaG.mjs} +3 -3
  84. package/dist/client/{checkout.client-DAjrBZ74.mjs → checkout.client-DRralR3e.mjs} +1 -1
  85. package/dist/client/{checkoutUrls-CYj06rX1.mjs → checkoutUrls-CY8qywXl.mjs} +3 -2
  86. package/dist/client/client.mjs +87 -4
  87. package/dist/client/{context-DXmIbXCK.mjs → context-Xhf81Q-c.mjs} +25 -3
  88. package/dist/client/{createLucideIcon-CIbxe9em.mjs → createLucideIcon-BrXgHVKN.mjs} +9 -9
  89. package/dist/client/{bookingQuestionValues-BjcyCru5.mjs → creditProducts-CMOmhWm2.mjs} +71 -11
  90. package/dist/client/{cta-DP_IBnq3.mjs → cta-CfuyGqXL.mjs} +2 -2
  91. package/dist/client/{dateFormatting-CwrkFZTr.mjs → dateFormatting-Bv6kjUW3.mjs} +1 -1
  92. package/dist/client/{demoPortalMagicLink-DQXK-Fh6.mjs → demoPortalMagicLink-DQtwf_s2.mjs} +1 -1
  93. package/dist/client/{wizardSteps-CFulHWnT.mjs → display-DDNmyb0z.mjs} +920 -870
  94. package/dist/client/{enhanceHeaderSection-DheQj7rg.mjs → enhanceHeaderSection-D7gRy-pL.mjs} +3 -2
  95. package/dist/client/{event-details.client-C5UufcRp.mjs → event-details.client-DZZaoCUc.mjs} +1 -1
  96. package/dist/client/{event-registration.client-CMGg63IU.mjs → event-registration.client-CLBdHUfd.mjs} +59 -18
  97. package/dist/client/{eventCalendar-DlD0GCEy.mjs → eventCalendar-BY3AfYkK.mjs} +14 -17
  98. package/dist/client/eventCombined-86P2vQCb.mjs +25 -0
  99. package/dist/client/{eventDetails-DzuQYgmO.mjs → eventDetails-DIJYMzVg.mjs} +4 -6
  100. package/dist/client/eventListing-8jS0qGGC.mjs +26 -0
  101. package/dist/client/{eventRegistration-CjS3Zpjp.mjs → eventRegistration-DyseP_sY.mjs} +19 -19
  102. package/dist/client/flightRegistrations-DjYm0Wz6.mjs +45 -0
  103. package/dist/client/{form-DgQqm7T2.mjs → form-RTqunrpz.mjs} +9 -14
  104. package/dist/client/{form.client-BI9Dcsq5.mjs → form.client-D3_RF29v.mjs} +4 -4
  105. package/dist/client/{form.parts-DevF0L_A.mjs → form.parts-DWLf_3PF.mjs} +1 -1
  106. package/dist/client/{formatDate-DDyURjoe.mjs → formatDate-BGlhrmhF.mjs} +1 -1
  107. package/dist/client/gifting/client.mjs +2 -2
  108. package/dist/client/{headerSection-DYIG6Pwb.mjs → headerSection-CyNGt23J.mjs} +2 -2
  109. package/dist/client/{newsletter-form.client-BWp7Y1e1.mjs → newsletter-form.client-IfLup4o0.mjs} +5 -5
  110. package/dist/client/{newsletter-form.parts-Dg8s9NwJ.mjs → newsletter-form.parts-DDD-LRyW.mjs} +1 -1
  111. package/dist/client/{newsletterForm-DnPraMzx.mjs → newsletterForm-o5wFBVHv.mjs} +10 -15
  112. package/dist/client/{noop-ByFRHYQ2.mjs → noop-B_f7RqLD.mjs} +111 -2
  113. package/dist/client/portal/client.mjs +21 -13
  114. package/dist/client/{product-detail.client-BFAgHrdg.mjs → product-detail.client-5hNA8aKU.mjs} +1 -1
  115. package/dist/client/{product-list.client-DVrs_DyY.mjs → product-list.client-c-777ohj.mjs} +1 -1
  116. package/dist/client/{productDetail-D4rvl6Xg.mjs → productDetail-hXttfQhE.mjs} +3 -3
  117. package/dist/client/{productList-B8o5AOMX.mjs → productList-BPsYP_jA.mjs} +3 -3
  118. package/dist/client/{propsDecoder-hhotPP6P.mjs → propsDecoder-Dc8j5i79.mjs} +3 -3
  119. package/dist/client/reactMount-DFQy3CmO.mjs +51 -0
  120. package/dist/client/{registry.server-Ch3EpupA.mjs → registry.server-CMrdUGGv.mjs} +338 -289
  121. package/dist/client/rendering/client.mjs +39 -39
  122. package/dist/client/rendering/islandDelivery.flight.mjs +99 -0
  123. package/dist/client/rendering/islands.mjs +1 -1
  124. package/dist/client/rendering.mjs +5 -5
  125. package/dist/client/{richText-coerce-C3LabQ1O.mjs → richText-coerce-BTurYEao.mjs} +1 -1
  126. package/dist/client/{routeIslandApiConfig-CQGlxId8.mjs → routeIslandApiConfig-DFjRKvzM.mjs} +1 -1
  127. package/dist/client/{runtimeResponse-Dg4XFsuM.mjs → runtimeResponse-BGU8sMZY.mjs} +1 -1
  128. package/dist/client/runtimeResponse-D2LT--Gj.mjs +3 -0
  129. package/dist/client/{shop-rRXplPGZ.mjs → shop-Ds47onRS.mjs} +3 -3
  130. package/dist/client/{shop-commerce-VDbVaKY-.mjs → shop-commerce-B3PyRHaN.mjs} +12 -12
  131. package/dist/client/{shop-commerce-store-DqdgJ8Zw.mjs → shop-commerce-store-D9CHihQv.mjs} +1 -1
  132. package/dist/client/{shop.client-DdwvMvaK.mjs → shop.client-RljK0qPB.mjs} +110 -31
  133. package/dist/client/{shop.interactive-C8OvFY06.mjs → shop.interactive-BH0xDlMF.mjs} +42 -533
  134. package/dist/client/{shopShared-BeuJiGPU.mjs → shopShared-BEfD0e4m.mjs} +12 -15
  135. package/dist/client/src-BozhJ43Z.mjs +3 -0
  136. package/dist/client/{src-1PJxc8KO.mjs → src-xrjaKaCj.mjs} +6 -8
  137. package/dist/client/{timetableModel-Cko9LRKy.mjs → timetableModel-BG7Ejxdr.mjs} +12 -12
  138. package/dist/client/{useAvailableSlots-M6QIEiWf.mjs → useAvailableSlots-GP8tnAVW.mjs} +3 -3
  139. package/dist/client/{useDiscountApply-BJSnyO0f.mjs → useDiscountApply-Cq07nTyG.mjs} +5 -3
  140. package/dist/client/{useDiscountCodeUi-D3XnOSCi.mjs → useDiscountCodeUi-CD82QX5i.mjs} +1 -1
  141. package/dist/client/{useEventPagination-PhTIoFVX.mjs → useEventPagination-spj7sGQP.mjs} +6 -6
  142. package/dist/client/{view-L_mkgtnk.mjs → view-aAP2WbCR.mjs} +2 -3
  143. package/dist/client/{view-448wvvEY.mjs → view-oToSpu1N.mjs} +7 -7
  144. package/dist/preview-next/client/{ArrangementLookControls-BpvnOGlN.mjs → ArrangementLookControls-CoWdilcI.mjs} +7 -7
  145. package/dist/preview-next/client/{LocationPickerEnvironment-CZQ4vkRe.mjs → LocationPickerEnvironment-CwxRbAs2.mjs} +1 -1
  146. package/dist/preview-next/client/{MapLibreEditMap-CP4w7T_0.mjs → MapLibreEditMap-CKjYUp_E.mjs} +2 -2
  147. package/dist/preview-next/client/{PreviewEditorSidebar-C0OtdWu_.mjs → PreviewEditorSidebar-BNCrO6PQ.mjs} +201 -151
  148. package/dist/preview-next/client/{PreviewEditorUI-Csc5vH5k.mjs → PreviewEditorUI-inVZkLCd.mjs} +6 -6
  149. package/dist/preview-next/client/{PreviewShell-BOLH_pm-.mjs → PreviewShell-CFQlAHTe.mjs} +10 -15
  150. package/dist/preview-next/client/{SdkPreviewModeRuntime-CKodLReY.mjs → SdkPreviewModeRuntime-Dgl7ktO4.mjs} +12 -9
  151. package/dist/preview-next/client/{SiteChromeCustomizeButton-BeEZpeKn.mjs → SiteChromeCustomizeButton-DgDYHwkG.mjs} +1418 -598
  152. package/dist/preview-next/client/{lucide-react-DkZ8fO-G.mjs → lucide-react-DbC1o6_9.mjs} +11 -11
  153. package/dist/preview-next/client/{previewAssistantSlot-BBdN5kfY.mjs → previewAssistantSlot-DRDu7Ndv.mjs} +684 -930
  154. package/dist/preview-next/client/{previewChromeSurface-VZtGwPuH.mjs → previewChromeSurface-K6Q5uEMC.mjs} +1 -1
  155. package/dist/preview-next/client/runtime.mjs +3 -3
  156. package/dist/preview-next/client/{sdk-runtime-kiZkMcuR.mjs → sdk-runtime-AGypzhcO.mjs} +2 -2
  157. package/dist/preview-next/client/{src-DY8JCJdE.mjs → src-DzXUmsyK.mjs} +6 -8
  158. package/dist/preview-next/client/src-LUhVXBEQ.mjs +3 -0
  159. package/dist/preview-next/client/{useAutosaveStatus-BiIHEeE0.mjs → useAutosaveStatus-B2mn_l6c.mjs} +3 -3
  160. package/dist/preview-next/client/{useBlockCustomizeControls-BuFLIpmX.mjs → useBlockCustomizeControls-CBXHo6ph.mjs} +5 -5
  161. package/dist/preview-next/client/{useOpenBlockForSetup-DlxYgmh_.mjs → useOpenBlockForSetup-BpZnBznt.mjs} +1 -1
  162. package/dist/preview-next/keepAlive.mjs +1 -1
  163. package/dist/preview-next/middleware.mjs +3 -4
  164. package/dist/preview-next/{route-contract-C0sCvCYL.mjs → route-contract-jc2Bug-h.mjs} +83 -0
  165. package/dist/server/{Block.shared-Dnhc0Wu5.mjs → Block.shared-BHgQjX16.mjs} +4 -4
  166. package/dist/server/{ThemeScopeCore-NAQ_zsFu.mjs → ThemeScopeCore-Ck0dhZA6.mjs} +31 -5
  167. package/dist/server/{accessibleSurfaces-108nxyGc.mjs → accessibleSurfaces-D0q5tLSW.mjs} +56 -8
  168. package/dist/server/{bindings-DLoZYUxG.mjs → bindings-CAbTvrCZ.mjs} +1 -1
  169. package/dist/server/{booking-form.reserved-fields-BWRF7509.mjs → booking-form.reserved-fields-Cqp13TKc.mjs} +1 -0
  170. package/dist/server/{client-Bc8jI8zN.mjs → client-C-asG6Cf.mjs} +85 -2
  171. package/dist/server/config-validation.mjs +1 -1
  172. package/dist/server/config.mjs +1 -1
  173. package/dist/server/data/resolveBlockData.mjs +1 -1
  174. package/dist/server/{headerVariant-BwR9NV4b.mjs → headerVariant-8O5MvxIU.mjs} +2 -1
  175. package/dist/server/index.mjs +2 -2
  176. package/dist/server/{loadContent-D61gpqHB.mjs → loadContent-DKerbSnI.mjs} +4 -4
  177. package/dist/server/{loadPage-B4ZYpIcd.mjs → loadPage-XgtQR90Z.mjs} +2 -2
  178. package/dist/server/next.mjs +6 -6
  179. package/dist/server/{opaqueSurface-BawlEAd_.mjs → opaqueSurface-Yltv_u7r.mjs} +1 -1
  180. package/dist/server/{overrideResolution-CDReKy2P.mjs → overrideResolution-Z5pwH-kz.mjs} +1 -1
  181. package/dist/server/page-converter.mjs +1 -1
  182. package/dist/server/{pageRenderPlan-ByVTA7-4.mjs → pageRenderPlan-DQAo35og.mjs} +9 -8
  183. package/dist/server/{pageRuntimeSupport-Dzz_Dze6.mjs → pageRuntimeSupport-g-K-FCHa.mjs} +2 -2
  184. package/dist/server/{pageShared-Dk5Ku6hs.mjs → pageShared-7mPhqqXX.mjs} +345 -289
  185. package/dist/server/{parseThemeForPersistence-pJPGfMrf.mjs → parseThemeForPersistence-BebSeE17.mjs} +1 -1
  186. package/dist/server/{prebuild-CW4M0WEZ.mjs → prebuild-C0m4KOT9.mjs} +1 -1
  187. package/dist/server/prebuild.mjs +1 -1
  188. package/dist/server/{prefetchBlockData-Bvx0SiIM.mjs → prefetchBlockData-DcLKHfHG.mjs} +2 -2
  189. package/dist/server/{registry-Bh0Y25zH.mjs → registry-7_0_lUrh.mjs} +305 -844
  190. package/dist/server/rendering/components/pageShared.mjs +1 -1
  191. package/dist/server/rendering/helpers/loadPage.mjs +1 -1
  192. package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
  193. package/dist/server/rendering/islandDelivery.script.mjs +19 -0
  194. package/dist/server/rendering/server.mjs +3 -3
  195. package/dist/server/rendering.mjs +7 -7
  196. package/dist/server/{resolveBlockData-CnHHst9r.mjs → resolveBlockData-q3WnpvyZ.mjs} +1 -1
  197. package/dist/server/server.mjs +3 -3
  198. package/dist/server/theme-bridge.mjs +2 -2
  199. package/dist/server/theme.mjs +1 -1
  200. package/dist/server/{validation-D2bHWSxJ.mjs → validation-CSMS6XmP.mjs} +4 -4
  201. package/dist/server/{version-DkM1eAxG.mjs → version-DWeqmTXc.mjs} +1 -1
  202. package/dist/styles/index.css +15 -3
  203. package/package.json +10 -6
  204. package/dist/client/BlocksIslandsHydrator-DcwEaliO.mjs +0 -296
  205. package/dist/client/creditProducts-BOWi1QLp.mjs +0 -62
  206. package/dist/client/eventCombined-DoSi8p_l.mjs +0 -28
  207. package/dist/client/eventListing-CkiMjl0g.mjs +0 -29
  208. package/dist/client/reactMount-BGJVsHRb.mjs +0 -28
  209. package/dist/client/runtimeResponse-BP-L6exS.mjs +0 -3
  210. package/dist/client/src-CdRISvQp.mjs +0 -3
  211. package/dist/preview-next/client/src-BP8771hw.mjs +0 -3
@@ -1,9 +1,9 @@
1
1
  "use client";
2
- import { t as BookingFormClient } from "./booking-form.client-CS1PPjw7.mjs";
3
- import { t as BlockApiProvider } from "./context-DXmIbXCK.mjs";
4
- import { t as defineIslandPropsDecoder } from "./propsDecoder-hhotPP6P.mjs";
5
- import { t as mountReactIsland } from "./reactMount-BGJVsHRb.mjs";
6
- import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-CQGlxId8.mjs";
2
+ import { t as BookingFormClient } from "./booking-form.client-wd71DG19.mjs";
3
+ import { t as BlockApiProvider } from "./context-Xhf81Q-c.mjs";
4
+ import { t as defineIslandPropsDecoder } from "./propsDecoder-Dc8j5i79.mjs";
5
+ import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
6
+ import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-DFjRKvzM.mjs";
7
7
  import "react";
8
8
  import { jsx } from "react/jsx-runtime";
9
9
  //#region src/rendering/islands/enhancers/bookingForm.tsx
@@ -14,18 +14,18 @@ const enhance = (root, props) => {
14
14
  const siteId = props.siteId;
15
15
  if (!siteId) throw new Error("[sdk:islands] booking-form requires siteId");
16
16
  if (!apiBaseUrl) throw new Error("[sdk:islands] booking-form requires apiBaseUrl");
17
- const apiConfig = buildRouteIslandApiConfig({
18
- apiBaseUrl,
19
- readAuthority: props.readAuthority,
20
- portalToken,
21
- siteId
22
- });
23
- return mountReactIsland(root, ({ root: reactRoot }) => {
24
- reactRoot.render(/* @__PURE__ */ jsx(BlockApiProvider, {
25
- config: apiConfig,
26
- children: /* @__PURE__ */ jsx(BookingFormClient, { ...props })
27
- }));
28
- });
17
+ return mountReactIsland(root, /* @__PURE__ */ jsx(BlockApiProvider, {
18
+ config: {
19
+ ...buildRouteIslandApiConfig({
20
+ apiBaseUrl,
21
+ readAuthority: props.readAuthority,
22
+ portalToken,
23
+ siteId
24
+ }),
25
+ pageNavigation: props.render.hydration.pageNavigation
26
+ },
27
+ children: /* @__PURE__ */ jsx(BookingFormClient, { ...props })
28
+ }));
29
29
  };
30
30
  //#endregion
31
31
  export { decode, enhance };
@@ -4,9 +4,11 @@ const BOOK_TARGET_PARAMS = {
4
4
  service: "service",
5
5
  resource: "resource",
6
6
  occurrence: "occurrence",
7
- event: "event"
7
+ event: "event",
8
+ category: "category"
8
9
  };
9
10
  function resolveDedicatedBookingTarget(pathname) {
11
+ if (pathname === "/embed" || pathname.startsWith("/embed/")) return { kind: "embed" };
10
12
  const internalPublishedMatch = pathname.match(/^\/internal-sites\/([^/]+)\/([^/]+)\/published(?:\/.*)?$/);
11
13
  if (internalPublishedMatch) {
12
14
  const hostKey = internalPublishedMatch[1];
@@ -22,7 +24,7 @@ function resolveDedicatedBookingTarget(pathname) {
22
24
  function resolveDedicatedBookingPath(pathname) {
23
25
  const target = resolveDedicatedBookingTarget(pathname);
24
26
  if (target.kind === "internal_published_preview") return `/internal-sites/${target.hostKey}/${target.siteIdentifier}/published/book`;
25
- return "/book";
27
+ return target.kind === "embed" ? "/embed/book" : "/book";
26
28
  }
27
29
  function resolveDedicatedBookingHref(pathname, bookingTarget = { kind: "chooser" }) {
28
30
  const bookingPath = resolveDedicatedBookingPath(pathname);
@@ -44,5 +46,7 @@ function resolveDedicatedBookingHref(pathname, bookingTarget = { kind: "chooser"
44
46
  const queryString = params.toString();
45
47
  return queryString ? `${bookingPath}?${queryString}` : bookingPath;
46
48
  }
49
+ const EMBED_SEGMENT = "[a-z0-9][a-z0-9-]*";
50
+ new RegExp(`^/(?:events/${EMBED_SEGMENT}(?:/${EMBED_SEGMENT})?|services/${EMBED_SEGMENT})$`, "i");
47
51
  //#endregion
48
52
  export { resolveDedicatedBookingHref as t };
@@ -1,10 +1,10 @@
1
1
  "use client";
2
- import { An as resolveRuntimeEventDestination, F as toHeadlessPaymentSelection, I as toInternalPaymentSelection, Kr as createHostedBlockApiConfig, M as resolveEventRegistrationSubmitPlan, N as resolveHeadlessEventRegistrationStatus, Or as BOOKING_FORM_DATA_RESERVED_KEY_VALUES, P as resolveHeadlessEventRegistrationView, Qr as normalizeEventRegistrationPageSurfaceSubject, Ur as readRuntimeNow, en as resolveRegistrationDisplay, j as normalizeEventRegistrationMaxTickets, k as deriveEventRegistrationSteps, kt as getSingleSelectedPricingOptionId, nr as normalizeBookingServices, tr as normalizeBookingFormConfig } from "./wizardSteps-CFulHWnT.mjs";
3
- import { a as useHeadlessBookingFlow, i as HeadlessBookingProvider$1, o as createBookingBlockApiConfig, r as HeadlessBookingPaymentSelectionStep$1, s as getAppointmentBookingOverrideInput, t as BookingFormClient$1 } from "./booking-form.client-CS1PPjw7.mjs";
4
- import { I as publicEventSchema } from "./noop-ByFRHYQ2.mjs";
5
- import { d as assertNever } from "./bookingQuestionValues-BjcyCru5.mjs";
6
- import { n as useBlockApi, t as BlockApiProvider } from "./context-DXmIbXCK.mjs";
7
- import { n as EventRegistrationPayment, r as useEventRegistrationWizard } from "./EventRegistrationPayment-D9YBNb_E.mjs";
2
+ import { $ as resolveHeadlessEventRegistrationStatus, Ci as readRuntimeNow, Ei as createHostedBlockApiConfig, Li as normalizeEventRegistrationPageSurfaceSubject, Q as resolveEventRegistrationSubmitPlan, Sr as normalizeBookingServices, Xt as getSingleSelectedPricingOptionId, Y as deriveEventRegistrationSteps, Yr as BOOKING_FORM_DATA_RESERVED_KEY_VALUES, Z as normalizeEventRegistrationMaxTickets, Zn as resolveRuntimeEventDestination, et as resolveHeadlessEventRegistrationView, nt as toInternalPaymentSelection, tt as toHeadlessPaymentSelection, xn as resolveRegistrationDisplay, xr as normalizeBookingFormConfig } from "./display-DDNmyb0z.mjs";
3
+ import { a as useHeadlessBookingFlow, i as HeadlessBookingProvider$1, o as createBookingBlockApiConfig, r as HeadlessBookingPaymentSelectionStep$1, s as getAppointmentBookingOverrideInput, t as BookingFormClient$1 } from "./booking-form.client-wd71DG19.mjs";
4
+ import { R as publicEventSchema } from "./noop-B_f7RqLD.mjs";
5
+ import { h as assertNever } from "./creditProducts-CMOmhWm2.mjs";
6
+ import { n as useBlockApi, t as BlockApiProvider } from "./context-Xhf81Q-c.mjs";
7
+ import { n as EventRegistrationPayment, r as useEventRegistrationWizard } from "./EventRegistrationPayment-CqH3hE-k.mjs";
8
8
  import * as React$1 from "react";
9
9
  import React, { useCallback, useEffect, useMemo, useReducer } from "react";
10
10
  //#region ../blocks/src/system/runtime/nodes/event-registration/event-registration.headless.override.ts
@@ -185,10 +185,7 @@ function useEventRegistrationControllerWithDeps(options, deps) {
185
185
  isAuthenticated: wizard.portalAuthState === "authenticated",
186
186
  showMagicLinkModal: wizard.showMagicLinkModal
187
187
  },
188
- existingRegistration: {
189
- state: resolveExistingRegistrationState(wizard),
190
- registration: wizard.existingRegistration
191
- },
188
+ existingRegistrations: resolveExistingRegistrations(wizard),
192
189
  waitlistClaim: wizard.waitlistClaim,
193
190
  terminal: projectRegistrationTerminal(wizard),
194
191
  actions: {
@@ -334,19 +331,25 @@ function useEventRegistrationWizardControllerWithDeps(options, deps) {
334
331
  siteName: options.siteName
335
332
  }) };
336
333
  }
334
+ function resolveExistingRegistrations(wizard) {
335
+ return {
336
+ state: resolveExistingRegistrationState(wizard),
337
+ registrations: wizard.existingRegistrations
338
+ };
339
+ }
337
340
  function resolveExistingRegistrationState(wizard) {
338
341
  switch (wizard.existingRegistrationState.tag) {
339
342
  case "idle": return {
340
343
  tag: "idle",
341
- value: wizard.existingRegistration
344
+ value: wizard.existingRegistrations
342
345
  };
343
346
  case "loading": return {
344
347
  tag: "loading",
345
- value: wizard.existingRegistration
348
+ value: wizard.existingRegistrations
346
349
  };
347
350
  case "resolved": return {
348
351
  tag: "loaded",
349
- value: wizard.existingRegistration
352
+ value: wizard.existingRegistrations
350
353
  };
351
354
  }
352
355
  }
@@ -1,8 +1,8 @@
1
1
  "use client";
2
- import { t as defineIslandPropsDecoder } from "./propsDecoder-hhotPP6P.mjs";
2
+ import { t as defineIslandPropsDecoder } from "./propsDecoder-Dc8j5i79.mjs";
3
3
  import { i as carouselRegionAttributes } from "./carousel.shared-BFQ3kBEw.mjs";
4
- import { t as CarouselNodeClient } from "./carousel.client-BD4DXMtI.mjs";
5
- import { t as mountReactIsland } from "./reactMount-BGJVsHRb.mjs";
4
+ import { t as CarouselNodeClient } from "./carousel.client-eSSr1oYA.mjs";
5
+ import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
6
6
  import "react";
7
7
  import { jsx } from "react/jsx-runtime";
8
8
  //#region src/rendering/islands/enhancers/carousel.tsx
@@ -26,12 +26,10 @@ const enhance = (root, props) => {
26
26
  Object.entries(carouselRegionAttributes(admittedProps)).forEach(([name, value]) => {
27
27
  if (value !== void 0) root.setAttribute(name, String(value));
28
28
  });
29
- return mountReactIsland(root, ({ root: reactRoot }) => {
30
- reactRoot.render(/* @__PURE__ */ jsx(CarouselNodeClient, {
31
- renderRoot: false,
32
- ...admittedProps
33
- }));
34
- });
29
+ return mountReactIsland(root, /* @__PURE__ */ jsx(CarouselNodeClient, {
30
+ renderRoot: false,
31
+ ...admittedProps
32
+ }));
35
33
  };
36
34
  /** Current metadata must match SSR content; the retired payload is a distinct case. */
37
35
  function admitCarouselSlides(props, extracted) {
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { S as clsx } from "./ThemedButton-BdnEwA38.mjs";
3
3
  import { a as carouselShape, c as getCarouselSlidesToShowCssVars, i as carouselRegionAttributes, l as normalizeSlidesToShow, n as arrangementCarouselSettings, o as carouselStatus, r as carouselContents, u as resolveSlidesToShowMobile } from "./carousel.shared-BFQ3kBEw.mjs";
4
- import { t as createLucideIcon } from "./createLucideIcon-CIbxe9em.mjs";
4
+ import { t as createLucideIcon } from "./createLucideIcon-BrXgHVKN.mjs";
5
5
  import React, { useCallback, useEffect, useRef, useState } from "react";
6
6
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
7
7
  /**
@@ -1605,7 +1605,7 @@ function EmblaCarousel(root, userOptions, userPlugins) {
1605
1605
  }
1606
1606
  EmblaCarousel.globalOptions = void 0;
1607
1607
  //#endregion
1608
- //#region ../../node_modules/.pnpm/embla-carousel-react@8.6.0_react@19.2.7/node_modules/embla-carousel-react/esm/embla-carousel-react.esm.js
1608
+ //#region ../../node_modules/.pnpm/embla-carousel-react@8.6.0_react@19.3.1/node_modules/embla-carousel-react/esm/embla-carousel-react.esm.js
1609
1609
  function useEmblaCarousel(options = {}, plugins = []) {
1610
1610
  const storedOptions = useRef(options);
1611
1611
  const storedPlugins = useRef(plugins);
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { t as defineIslandPropsDecoder } from "./propsDecoder-hhotPP6P.mjs";
3
- import { t as CartClient } from "./cart.client-H4sv2TpD.mjs";
4
- import { t as mountShopBlockIsland } from "./shopShared-BeuJiGPU.mjs";
2
+ import { t as defineIslandPropsDecoder } from "./propsDecoder-Dc8j5i79.mjs";
3
+ import { t as CartClient } from "./cart.client-COAP4CEy.mjs";
4
+ import { t as mountShopBlockIsland } from "./shopShared-BEfD0e4m.mjs";
5
5
  //#region src/rendering/islands/enhancers/cart.tsx
6
6
  const decode = defineIslandPropsDecoder("cart");
7
7
  const enhance = (root, props) => mountShopBlockIsland(root, props, CartClient, "cart");
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { t as CartController } from "./shop-commerce-VDbVaKY-.mjs";
2
+ import { t as CartController } from "./shop-commerce-B3PyRHaN.mjs";
3
3
  import "react";
4
4
  import { jsx } from "react/jsx-runtime";
5
5
  //#region ../blocks/src/system/runtime/nodes/cart.client.tsx
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { t as defineIslandPropsDecoder } from "./propsDecoder-hhotPP6P.mjs";
3
- import { t as CheckoutClient } from "./checkout.client-DAjrBZ74.mjs";
4
- import { t as mountShopBlockIsland } from "./shopShared-BeuJiGPU.mjs";
2
+ import { t as defineIslandPropsDecoder } from "./propsDecoder-Dc8j5i79.mjs";
3
+ import { t as CheckoutClient } from "./checkout.client-DRralR3e.mjs";
4
+ import { t as mountShopBlockIsland } from "./shopShared-BEfD0e4m.mjs";
5
5
  //#region src/rendering/islands/enhancers/checkout.tsx
6
6
  const decode = defineIslandPropsDecoder("checkout");
7
7
  const enhance = (root, props) => mountShopBlockIsland(root, props, CheckoutClient, "checkout");
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { n as CheckoutController } from "./shop-commerce-VDbVaKY-.mjs";
2
+ import { n as CheckoutController } from "./shop-commerce-B3PyRHaN.mjs";
3
3
  import "react";
4
4
  import { jsx } from "react/jsx-runtime";
5
5
  //#region ../blocks/src/system/runtime/nodes/checkout.client.tsx
@@ -1,4 +1,5 @@
1
1
  "use client";
2
+ import { ki as canonicalUrl } from "./display-DDNmyb0z.mjs";
2
3
  //#region ../blocks/src/system/runtime/shared/utils/checkoutUrls.ts
3
4
  /**
4
5
  * Build return URLs for Stripe checkout redirect.
@@ -10,8 +11,8 @@
10
11
  * @param anchorId - Block anchor ID for the return URL hash fragment.
11
12
  * @returns Object with success and cancel URLs
12
13
  */
13
- function buildCheckoutReturnUrls(paramName, anchorId, returnParams = {}) {
14
- const currentUrl = new URL(window.location.href);
14
+ function buildCheckoutReturnUrls(paramName, anchorId, returnParams = {}, navigation) {
15
+ const currentUrl = new URL(canonicalUrl(window.location.href, navigation));
15
16
  const hash = `#${anchorId}`;
16
17
  const successParams = new URLSearchParams(currentUrl.search);
17
18
  successParams.set(paramName, "success");
@@ -1,8 +1,8 @@
1
1
  "use client";
2
- import { $a as parseSiteId } from "./wizardSteps-CFulHWnT.mjs";
3
- import { C as resolveSiteCustomBlocks, D as prefetchBlockDataWithFailures, E as requireSdkTheme, K as encodePublicProductCategorySelector, O as materializeEntriesMedia, S as siteLocationRenderContext, g as collectMediaAssetSidecar, h as buildSiteRenderSupport, m as buildRenderablePageOutline, q as isSupportedLoaderEndpoint, t as Page, v as projectRenderablePageOutline } from "./Page-D_M2Vxz3.mjs";
2
+ import { Ro as parseSiteId } from "./display-DDNmyb0z.mjs";
3
+ import { C as resolveSiteCustomBlocks, D as prefetchBlockDataWithFailures, E as requireSdkTheme, K as encodePublicProductCategorySelector, O as materializeEntriesMedia, S as siteLocationRenderContext, g as collectMediaAssetSidecar, h as buildSiteRenderSupport, m as buildRenderablePageOutline, q as isSupportedLoaderEndpoint, t as Page, v as projectRenderablePageOutline } from "./Page-Bu5TJU3L.mjs";
4
4
  import { t as BEFORE_BOOKING_QUESTIONS_ROUTE } from "./bookingQuestions-BHq83mzS.mjs";
5
- import { t as restoreRuntimeResponse } from "./runtimeResponse-Dg4XFsuM.mjs";
5
+ import { t as restoreRuntimeResponse } from "./runtimeResponse-BGU8sMZY.mjs";
6
6
  import { useEffect, useState } from "react";
7
7
  import { z } from "zod";
8
8
  const PUBLIC_CONTENT_FRESHNESS_SECONDS = 3600;
@@ -1405,6 +1405,30 @@ const APPOINTMENT_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
1405
1405
  "server:internal_error"
1406
1406
  ]
1407
1407
  },
1408
+ refundAppointment: {
1409
+ path: "/sites/{siteId}/bookings/appointments/{appointmentId}/refund",
1410
+ method: "POST",
1411
+ auth: "user",
1412
+ responseKind: "json",
1413
+ errors: [
1414
+ "validation:invalid_input",
1415
+ "resource:not_found",
1416
+ "auth:forbidden",
1417
+ "resource:conflict",
1418
+ "server:internal_error"
1419
+ ]
1420
+ },
1421
+ listAppointmentRefunds: {
1422
+ path: "/sites/{siteId}/bookings/appointments/{appointmentId}/refunds",
1423
+ method: "GET",
1424
+ auth: "user",
1425
+ responseKind: "json",
1426
+ errors: [
1427
+ "resource:not_found",
1428
+ "auth:forbidden",
1429
+ "server:internal_error"
1430
+ ]
1431
+ },
1408
1432
  setAppointmentNoShow: {
1409
1433
  path: "/sites/{siteId}/bookings/appointments/{appointmentId}/no-show",
1410
1434
  method: "POST",
@@ -2509,6 +2533,14 @@ const SITE_API_KEY_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
2509
2533
  //#endregion
2510
2534
  //#region ../api/src/siteManagementEndpointDefinitions.ts
2511
2535
  const SITE_MANAGEMENT_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
2536
+ switchDemoView: {
2537
+ path: "/sites/{siteId}/demo/view",
2538
+ method: "POST",
2539
+ auth: "user",
2540
+ responseKind: "json",
2541
+ demoMutation: DEMO_MUTATION_ALLOWED,
2542
+ errors: []
2543
+ },
2512
2544
  createSite: {
2513
2545
  path: "/sites/manage",
2514
2546
  method: "POST",
@@ -3561,6 +3593,18 @@ const PAGE_SURFACE_EDITOR_ENDPOINT_DEFINITIONS = {
3561
3593
  * person when nothing is attached to them.
3562
3594
  */
3563
3595
  const BOOKING_PEOPLE_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
3596
+ getPersonBookingsPage: {
3597
+ path: "/sites/{siteId}/bookings/people/{personId}/bookings",
3598
+ method: "GET",
3599
+ tags: ["site-{siteId}", "customers-{siteId}"],
3600
+ auth: "user",
3601
+ responseKind: "json",
3602
+ errors: [
3603
+ "auth:forbidden",
3604
+ "resource:not_found",
3605
+ "server:internal_error"
3606
+ ]
3607
+ },
3564
3608
  previewPersonRemoval: {
3565
3609
  path: "/sites/{siteId}/bookings/people/{personId}/removal-preview",
3566
3610
  method: "GET",
@@ -5019,6 +5063,21 @@ const API_ENDPOINTS$1 = {
5019
5063
  errors: ["resource:not_found", "server:internal_error"],
5020
5064
  responseKind: "json"
5021
5065
  },
5066
+ updateBookingEmbed: {
5067
+ path: "/sites/{siteId}/settings/embed",
5068
+ method: "POST",
5069
+ tags: [TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings],
5070
+ auth: "user",
5071
+ demoMutation: DEMO_MUTATION_ALLOWED,
5072
+ errors: [
5073
+ "auth:forbidden",
5074
+ "validation:invalid_input",
5075
+ "resource:not_found",
5076
+ "resource:conflict",
5077
+ "server:internal_error"
5078
+ ],
5079
+ responseKind: "json"
5080
+ },
5022
5081
  updateFooterCredit: {
5023
5082
  path: "/sites/{siteId}/settings/footer-credit",
5024
5083
  method: "POST",
@@ -7357,6 +7416,30 @@ const API_ENDPOINTS$1 = {
7357
7416
  auth: "user",
7358
7417
  responseKind: "json"
7359
7418
  },
7419
+ archiveVenue: {
7420
+ path: "/sites/{siteId}/bookings/venues/{venueId}/archive",
7421
+ method: "POST",
7422
+ tags: [
7423
+ "site-{siteId}",
7424
+ "venues-{siteId}",
7425
+ "venue-{venueId}"
7426
+ ],
7427
+ auth: "user",
7428
+ responseKind: "json",
7429
+ errors: ["resource:not_found"]
7430
+ },
7431
+ restoreVenue: {
7432
+ path: "/sites/{siteId}/bookings/venues/{venueId}/restore",
7433
+ method: "POST",
7434
+ tags: [
7435
+ "site-{siteId}",
7436
+ "venues-{siteId}",
7437
+ "venue-{venueId}"
7438
+ ],
7439
+ auth: "user",
7440
+ responseKind: "json",
7441
+ errors: ["resource:not_found"]
7442
+ },
7360
7443
  createVenue: {
7361
7444
  path: "/sites/{siteId}/bookings/venues",
7362
7445
  method: "POST",
@@ -10286,7 +10369,7 @@ var SimpleCache = class {
10286
10369
  //#endregion
10287
10370
  //#region src/request-options.ts
10288
10371
  /** Every API client the SDK creates sends its version as `x-sdk-version`. */
10289
- const sdkRequestOptions = { sdkVersion: "0.168.0" };
10372
+ const sdkRequestOptions = { sdkVersion: "0.169.1" };
10290
10373
  //#endregion
10291
10374
  //#region src/client/error.ts
10292
10375
  let _Symbol$for;
@@ -1,10 +1,10 @@
1
1
  "use client";
2
- import { Qt as toNonNegativeCents, U as beforeBookingQuestionsPresentationSchema, Xt as parsePositiveCents, d as calendarWindowPageSchema, i as EVENT_BOOKING_ARRIVAL_QUERY, n as blockSiteTermsSchema, rt as normalizeCurrencyCode } from "./noop-ByFRHYQ2.mjs";
2
+ import { G as beforeBookingQuestionsPresentationSchema, an as toNonNegativeCents, at as normalizeCurrencyCode, i as EVENT_BOOKING_ARRIVAL_QUERY, n as blockSiteTermsSchema, p as calendarWindowPageSchema, rn as parsePositiveCents, s as publicPassProductCollectionSchema } from "./noop-B_f7RqLD.mjs";
3
3
  import { t as BEFORE_BOOKING_QUESTIONS_ROUTE } from "./bookingQuestions-BHq83mzS.mjs";
4
4
  import { n as submissionProof } from "./protection-C0PoH1lT.mjs";
5
5
  import { createContext, useContext, useMemo } from "react";
6
- import { z } from "zod";
7
6
  import { jsx } from "react/jsx-runtime";
7
+ import { z } from "zod";
8
8
  //#region ../commerce/src/purchase/confirmationPaymentSchema.ts
9
9
  const settledBalanceSchema = z.strictObject({ kind: z.literal("settled") });
10
10
  const dueBalanceSchema = z.strictObject({
@@ -531,6 +531,11 @@ const WHOLE_SERIES = { waitlistClaimResolve: {
531
531
  authScope: "portal"
532
532
  } };
533
533
  const SHOP = {
534
+ listPublicPasses: {
535
+ path: "/public/sites/{siteId}/bookings/products/passes",
536
+ method: "GET",
537
+ authScope: "public"
538
+ },
534
539
  listProducts: {
535
540
  path: "/public/sites/{siteId}/products",
536
541
  method: "GET",
@@ -1101,6 +1106,14 @@ function createBlockApi(config) {
1101
1106
  async submitBookingWithPackage(data) {
1102
1107
  return request(BOOKINGS.createAppointmentWithPackage, { body: data });
1103
1108
  },
1109
+ async listPublicPasses(params) {
1110
+ const path = buildPath(SHOP.listPublicPasses.path, { siteId: requireSiteId() });
1111
+ const result = await request(SHOP.listPublicPasses, {
1112
+ path,
1113
+ query: params
1114
+ });
1115
+ return publicPassProductCollectionSchema.parse(result);
1116
+ },
1104
1117
  async getEligibleAppointmentPackages(params) {
1105
1118
  return request(BOOKINGS.getEligibleAppointmentPackages, { query: {
1106
1119
  serviceId: params.serviceId,
@@ -1669,5 +1682,14 @@ function useBlockApi() {
1669
1682
  if (!client) throw new Error("useBlockApi must be used within a BlockApiProvider. Make sure your component is wrapped with <BlockApiProvider>.");
1670
1683
  return client;
1671
1684
  }
1685
+ /**
1686
+ * Hook to optionally access the Block API Client
1687
+ *
1688
+ * Returns null if not within a BlockApiProvider.
1689
+ * Useful for components that can work with or without the API client.
1690
+ */
1691
+ function useBlockApiOptional() {
1692
+ return useContext(BlockApiContext);
1693
+ }
1672
1694
  //#endregion
1673
- export { createBlockApi as i, useBlockApi as n, BlockApiError as r, BlockApiProvider as t };
1695
+ export { createBlockApi as a, BlockApiError as i, useBlockApi as n, useBlockApiOptional as r, BlockApiProvider as t };
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { createContext, createElement, forwardRef, useContext } from "react";
3
- //#region ../../node_modules/.pnpm/lucide-react@1.21.0_react@19.2.7/node_modules/lucide-react/dist/esm/shared/src/utils/mergeClasses.mjs
3
+ //#region ../../node_modules/.pnpm/lucide-react@1.21.0_react@19.3.1/node_modules/lucide-react/dist/esm/shared/src/utils/mergeClasses.mjs
4
4
  /**
5
5
  * @license lucide-react v1.21.0 - ISC
6
6
  *
@@ -11,7 +11,7 @@ const mergeClasses = (...classes) => classes.filter((className, index, array) =>
11
11
  return Boolean(className) && className.trim() !== "" && array.indexOf(className) === index;
12
12
  }).join(" ").trim();
13
13
  //#endregion
14
- //#region ../../node_modules/.pnpm/lucide-react@1.21.0_react@19.2.7/node_modules/lucide-react/dist/esm/shared/src/utils/toKebabCase.mjs
14
+ //#region ../../node_modules/.pnpm/lucide-react@1.21.0_react@19.3.1/node_modules/lucide-react/dist/esm/shared/src/utils/toKebabCase.mjs
15
15
  /**
16
16
  * @license lucide-react v1.21.0 - ISC
17
17
  *
@@ -20,7 +20,7 @@ const mergeClasses = (...classes) => classes.filter((className, index, array) =>
20
20
  */
21
21
  const toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
22
22
  //#endregion
23
- //#region ../../node_modules/.pnpm/lucide-react@1.21.0_react@19.2.7/node_modules/lucide-react/dist/esm/shared/src/utils/toCamelCase.mjs
23
+ //#region ../../node_modules/.pnpm/lucide-react@1.21.0_react@19.3.1/node_modules/lucide-react/dist/esm/shared/src/utils/toCamelCase.mjs
24
24
  /**
25
25
  * @license lucide-react v1.21.0 - ISC
26
26
  *
@@ -29,7 +29,7 @@ const toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").to
29
29
  */
30
30
  const toCamelCase = (string) => string.replace(/^([A-Z])|[\s-_]+(\w)/g, (match, p1, p2) => p2 ? p2.toUpperCase() : p1.toLowerCase());
31
31
  //#endregion
32
- //#region ../../node_modules/.pnpm/lucide-react@1.21.0_react@19.2.7/node_modules/lucide-react/dist/esm/shared/src/utils/toPascalCase.mjs
32
+ //#region ../../node_modules/.pnpm/lucide-react@1.21.0_react@19.3.1/node_modules/lucide-react/dist/esm/shared/src/utils/toPascalCase.mjs
33
33
  /**
34
34
  * @license lucide-react v1.21.0 - ISC
35
35
  *
@@ -41,7 +41,7 @@ const toPascalCase = (string) => {
41
41
  return camelCase.charAt(0).toUpperCase() + camelCase.slice(1);
42
42
  };
43
43
  //#endregion
44
- //#region ../../node_modules/.pnpm/lucide-react@1.21.0_react@19.2.7/node_modules/lucide-react/dist/esm/defaultAttributes.mjs
44
+ //#region ../../node_modules/.pnpm/lucide-react@1.21.0_react@19.3.1/node_modules/lucide-react/dist/esm/defaultAttributes.mjs
45
45
  /**
46
46
  * @license lucide-react v1.21.0 - ISC
47
47
  *
@@ -60,7 +60,7 @@ var defaultAttributes = {
60
60
  strokeLinejoin: "round"
61
61
  };
62
62
  //#endregion
63
- //#region ../../node_modules/.pnpm/lucide-react@1.21.0_react@19.2.7/node_modules/lucide-react/dist/esm/shared/src/utils/hasA11yProp.mjs
63
+ //#region ../../node_modules/.pnpm/lucide-react@1.21.0_react@19.3.1/node_modules/lucide-react/dist/esm/shared/src/utils/hasA11yProp.mjs
64
64
  /**
65
65
  * @license lucide-react v1.21.0 - ISC
66
66
  *
@@ -72,7 +72,7 @@ const hasA11yProp = (props) => {
72
72
  return false;
73
73
  };
74
74
  //#endregion
75
- //#region ../../node_modules/.pnpm/lucide-react@1.21.0_react@19.2.7/node_modules/lucide-react/dist/esm/context.mjs
75
+ //#region ../../node_modules/.pnpm/lucide-react@1.21.0_react@19.3.1/node_modules/lucide-react/dist/esm/context.mjs
76
76
  /**
77
77
  * @license lucide-react v1.21.0 - ISC
78
78
  *
@@ -82,7 +82,7 @@ const hasA11yProp = (props) => {
82
82
  const LucideContext = createContext({});
83
83
  const useLucideContext = () => useContext(LucideContext);
84
84
  //#endregion
85
- //#region ../../node_modules/.pnpm/lucide-react@1.21.0_react@19.2.7/node_modules/lucide-react/dist/esm/Icon.mjs
85
+ //#region ../../node_modules/.pnpm/lucide-react@1.21.0_react@19.3.1/node_modules/lucide-react/dist/esm/Icon.mjs
86
86
  /**
87
87
  * @license lucide-react v1.21.0 - ISC
88
88
  *
@@ -105,7 +105,7 @@ const Icon = forwardRef(({ color, size, strokeWidth, absoluteStrokeWidth, classN
105
105
  }, [...iconNode.map(([tag, attrs]) => createElement(tag, attrs)), ...Array.isArray(children) ? children : [children]]);
106
106
  });
107
107
  //#endregion
108
- //#region ../../node_modules/.pnpm/lucide-react@1.21.0_react@19.2.7/node_modules/lucide-react/dist/esm/createLucideIcon.mjs
108
+ //#region ../../node_modules/.pnpm/lucide-react@1.21.0_react@19.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.mjs
109
109
  /**
110
110
  * @license lucide-react v1.21.0 - ISC
111
111
  *