@riverbankcms/sdk 0.176.0 → 0.178.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 (205) hide show
  1. package/README.md +12 -4
  2. package/dist/_dts/{BlocksIslandsHydrator-DvoTk7Py.d.ts → BlocksIslandsHydrator-CrKsXtpD.d.ts} +1 -1
  3. package/dist/_dts/{Page-D-l374tU.d.ts → Page-C9i27wZA.d.ts} +7 -7
  4. package/dist/_dts/{SdkPreviewMode-22DdQAj5.d.ts → SdkPreviewMode-DzGSR3jh.d.ts} +2 -2
  5. package/dist/_dts/{client-D4p0J1lK.d.ts → client-BnYN6XsH.d.ts} +31 -7
  6. package/dist/_dts/{content-types-0WWR6dC4.d.ts → content-types-CXj6lp3d.d.ts} +4 -8
  7. package/dist/_dts/{contracts-f_ZG_SwY.d.ts → contracts-BZLwkTwL.d.ts} +3 -3
  8. package/dist/_dts/{footerPageOutline-DSeZvOaj.d.ts → footerPageOutline-D_XbQW_o.d.ts} +6 -6
  9. package/dist/_dts/{generatePageMetadata-BlitPA2D.d.ts → generatePageMetadata-ByEWwe9j.d.ts} +2 -2
  10. package/dist/_dts/{index-ZKEDvLuN.d.ts → index-0HFgCnGz.d.ts} +1 -1
  11. package/dist/_dts/{index-tcPtGdag.d.ts → index-BE9dWIsr.d.ts} +3 -3
  12. package/dist/_dts/{index-D-ai8IQd.d.ts → index-CKDRr54L.d.ts} +4 -4
  13. package/dist/_dts/{index-CoLcwjqJ.d.ts → index-D9-N1d9v.d.ts} +1 -1
  14. package/dist/_dts/{index-CKkkCgb6.d.ts → index-DCa-8TEY.d.ts} +1 -1
  15. package/dist/_dts/{index-DDsfmM4d.d.ts → index-cTpvQg_Q.d.ts} +2 -2
  16. package/dist/_dts/{index-EJMo-KSo.d.ts → index-nnEdgc3Z.d.ts} +2 -15
  17. package/dist/_dts/{loadContent-Ci932ORy.d.ts → loadContent-DYkVV6w4.d.ts} +7 -7
  18. package/dist/_dts/{request-B8jVdvgI.d.ts → request-B20VRWHH.d.ts} +55384 -55036
  19. package/dist/_dts/{resolveBlockData-DrSMuD76.d.ts → resolveBlockData-C_aK5GIS.d.ts} +5 -5
  20. package/dist/_dts/{resolvePageContent-Be4iL6-F.d.ts → resolvePageContent-YT6ndha1.d.ts} +2 -2
  21. package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
  22. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  23. package/dist/_dts/sdk/src/client.d.ts +7 -7
  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/data/dataLoaderContext.d.ts +2 -2
  28. package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
  29. package/dist/_dts/sdk/src/data/types.d.ts +2 -2
  30. package/dist/_dts/sdk/src/gifting/client.d.ts +1 -2
  31. package/dist/_dts/sdk/src/index.d.ts +8 -8
  32. package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
  33. package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
  34. package/dist/_dts/sdk/src/navigation/index.d.ts +3 -3
  35. package/dist/_dts/sdk/src/next/index.d.ts +24 -12
  36. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  37. package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
  38. package/dist/_dts/sdk/src/portal/client.d.ts +56 -4
  39. package/dist/_dts/sdk/src/portal/index.d.ts +95 -13
  40. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  41. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  42. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  43. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  44. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  45. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
  46. package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
  47. package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
  48. package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
  49. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  50. package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
  51. package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
  52. package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
  53. package/dist/_dts/sdk/src/server.d.ts +5 -5
  54. package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
  55. package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
  56. package/dist/_dts/{types-lwSgCWZ4.d.ts → types-CMZ5mkpv.d.ts} +11 -3
  57. package/dist/_dts/{types-BXMX4z2j.d.ts → types-CYcd15BQ.d.ts} +7 -7
  58. package/dist/_dts/{types-DXY64Xh4.d.ts → types-rm2M4LGx.d.ts} +4 -4
  59. package/dist/_dts/{validation-C5xp--Fu.d.ts → validation-BSxnRhyy.d.ts} +4 -6
  60. package/dist/client/{BlocksIslandsHydrator-CeYQQQs7.mjs → BlocksIslandsHydrator-D1n09bu-.mjs} +17 -17
  61. package/dist/client/{BookingMailingListNote-CDDWrY_W.mjs → BookingMailingListNote-DSD4gS96.mjs} +6 -6
  62. package/dist/client/{BookingPanelArrangement-BShQSial.mjs → BookingPanelArrangement--EkA1ZQd.mjs} +1 -1
  63. package/dist/client/{BookingQuestionFields-MbvIo2jS.mjs → BookingQuestionFields-B57oGPcj.mjs} +2 -2
  64. package/dist/client/{CalendarNavigationChevron-C6CSVfEB.mjs → CalendarNavigationChevron-qXvsFYOg.mjs} +7 -7
  65. package/dist/client/{DemoBookingPortalAccess-C9Ggcfx3.mjs → DemoBookingPortalAccess-Olvrwi3Z.mjs} +3 -3
  66. package/dist/client/{EventCalendar.client-BSMuSqg0.mjs → EventCalendar.client-DwFNFb-0.mjs} +10 -10
  67. package/dist/client/{EventCombined.client-BTrmSyUB.mjs → EventCombined.client-Ffu-aVOb.mjs} +9 -9
  68. package/dist/client/{EventItem-B0WjGXsH.mjs → EventItem-b8tVkNHA.mjs} +4 -4
  69. package/dist/client/{EventListWeekNavigation-8Ij7vuxY.mjs → EventListWeekNavigation-BxnJW_Gf.mjs} +1 -1
  70. package/dist/client/{EventListing.client-CWk2NEwd.mjs → EventListing.client-ViCnrNg4.mjs} +3 -3
  71. package/dist/client/{EventListing.view-BEH4UbSL.mjs → EventListing.view-CdjiepMf.mjs} +7 -7
  72. package/dist/client/{EventRegistrationPayment-B2EikR3f.mjs → EventRegistrationPayment-BVd70XkH.mjs} +262 -24
  73. package/dist/client/{LocationMapActions-myIQIvQL.mjs → LocationMapActions-CiMtl1Ha.mjs} +1 -1
  74. package/dist/client/{MapDrawingSvg-BfsVyPvB.mjs → MapDrawingSvg-BCZa3dpf.mjs} +1 -1
  75. package/dist/client/{Page-F3lhDvw1.mjs → Page-DqETUt-U.mjs} +22 -13
  76. package/dist/client/{SiteTermsAgreementField-BYACYP0T.mjs → SiteTermsAgreementField-DkFnbzf_.mjs} +2 -2
  77. package/dist/client/{StepIndicator-Bb7rPtSq.mjs → StepIndicator-JO2PS03n.mjs} +79 -32
  78. package/dist/client/{accordion-BfsOiweL.mjs → accordion-XgNxl0Wg.mjs} +1 -1
  79. package/dist/client/{booking-form.client-B8ohIj13.mjs → booking-form.client-ljJoDwuI.mjs} +13 -13
  80. package/dist/client/{bookingForm-CXsck2oH.mjs → bookingForm-DtEHwY4W.mjs} +4 -4
  81. package/dist/client/bookings.mjs +5 -5
  82. package/dist/client/{boxStyleClassNames-B_hcuT06.mjs → boxStyleClassNames-BHoMAcun.mjs} +2 -2
  83. package/dist/client/{carousel-Cz5Ddbsx.mjs → carousel-B3UhbFu7.mjs} +1 -1
  84. package/dist/client/{cart-CTC2oS3p.mjs → cart-DzOJfYOR.mjs} +3 -3
  85. package/dist/client/{cart.client-c1YkTC-Q.mjs → cart.client-DBG77v-5.mjs} +1 -1
  86. package/dist/client/{checkout-BeW1ufaH.mjs → checkout-LmePoEgM.mjs} +3 -3
  87. package/dist/client/{checkout.client-BeU32khQ.mjs → checkout.client-DmgZuLBT.mjs} +1 -1
  88. package/dist/client/{checkoutUrls-DVfSUSKp.mjs → checkoutUrls-CMZI8o_V.mjs} +1 -1
  89. package/dist/client/client.mjs +93 -12
  90. package/dist/client/{context-R9p5c8IH.mjs → context-CJIz4FdL.mjs} +1 -1
  91. package/dist/client/{course-CUFVJEAc.mjs → course-DBEU9IA9.mjs} +11 -4
  92. package/dist/client/{dateFormatting-CF6FWCoo.mjs → dateFormatting-UoXqBh10.mjs} +1 -1
  93. package/dist/client/{demoPortalMagicLink-tZxIm3RL.mjs → demoPortalMagicLink-6CgFZNvu.mjs} +5 -4
  94. package/dist/client/{display-4HYOb-AK.mjs → display-D1oVR5Eh.mjs} +180 -15
  95. package/dist/client/{enhanceHeaderSection-DEYDI54E.mjs → enhanceHeaderSection-DaMo6len.mjs} +3 -3
  96. package/dist/client/{event-details.client-BwjBJP-f.mjs → event-details.client-BwASwKIq.mjs} +1 -1
  97. package/dist/client/{event-registration.client-DWvSODTI.mjs → event-registration.client-b6APrFQe.mjs} +118 -180
  98. package/dist/client/{eventCalendar-C9Pn9eeZ.mjs → eventCalendar-DJYz7yZf.mjs} +4 -4
  99. package/dist/client/{eventCombined-Bdhk0fp0.mjs → eventCombined-j9VCVgMW.mjs} +4 -4
  100. package/dist/client/{eventDetails-C2LfNW_o.mjs → eventDetails-BzGOVDI-.mjs} +2 -2
  101. package/dist/client/{eventListing-B-bJOQUk.mjs → eventListing-DWgpGuFM.mjs} +4 -4
  102. package/dist/client/{eventRegistration-CbdmUiDT.mjs → eventRegistration-DCinRot3.mjs} +4 -4
  103. package/dist/client/{form-BbUUt784.mjs → form-BBBtRwvy.mjs} +3 -3
  104. package/dist/client/{form.client-BVlz-9_t.mjs → form.client-CZeRQLGF.mjs} +4 -4
  105. package/dist/client/{form.parts-TB4UIrML.mjs → form.parts-DhGGv4_L.mjs} +1 -1
  106. package/dist/client/{formatDate-TDHhFjFN.mjs → formatDate-DVFVDcDW.mjs} +1 -1
  107. package/dist/client/gifting/client.mjs +6 -5
  108. package/dist/client/{gifting-CbNSrp7C.mjs → gifting-Di9-SpwW.mjs} +4 -4
  109. package/dist/client/{gifting.client-B__bGhFc.mjs → gifting.client-CjT5PrAZ.mjs} +4 -4
  110. package/dist/client/{gifting.parts-CTA1sDW6.mjs → gifting.parts-ffP6mjMd.mjs} +2 -2
  111. package/dist/client/{headerSection-5Wn9nUW_.mjs → headerSection-jjAvtSZk.mjs} +2 -2
  112. package/dist/client/{lookSurfaces-BwiNdgMU.mjs → lookSurfaces-C2VzJfyG.mjs} +1 -1
  113. package/dist/client/{newsletter-form.client-B17WYHxZ.mjs → newsletter-form.client-D45frHoa.mjs} +5 -5
  114. package/dist/client/{newsletter-form.parts-DN9wD1ZG.mjs → newsletter-form.parts-CHdg82ct.mjs} +1 -1
  115. package/dist/client/{newsletterForm-DLMlxInp.mjs → newsletterForm-tS465_vl.mjs} +3 -3
  116. package/dist/client/{noop-CaQxI-Js.mjs → noop-D11X-B6n.mjs} +123 -91
  117. package/dist/client/portal/client.mjs +384 -38
  118. package/dist/client/{product-detail.client-Di_anRGR.mjs → product-detail.client-DIWSeW7P.mjs} +1 -1
  119. package/dist/client/{product-list.client-Duhl6rtL.mjs → product-list.client-BRf14h_e.mjs} +1 -1
  120. package/dist/client/{productDetail-BgKmCwA8.mjs → productDetail-gxF5whea.mjs} +3 -3
  121. package/dist/client/{productList-C_wMKsYS.mjs → productList-B9t0XJrN.mjs} +3 -3
  122. package/dist/client/{propsDecoder-y3LvxaiG.mjs → propsDecoder-Db8wAmgr.mjs} +4 -4
  123. package/dist/client/{registry.server-CIWYKz1V.mjs → registry.server-Bn0gE0uP.mjs} +27 -27
  124. package/dist/client/rendering/client.mjs +23 -23
  125. package/dist/client/rendering/islands.mjs +1 -1
  126. package/dist/client/rendering.mjs +7 -7
  127. package/dist/client/{richText-coerce-DkPBFb_a.mjs → richText-coerce-COnKrLO7.mjs} +1 -1
  128. package/dist/client/{routeIslandApiConfig-BgO0rZce.mjs → routeIslandApiConfig-Bok1Oy50.mjs} +1 -1
  129. package/dist/client/{shop-CFbWlv_W.mjs → shop-D1oTPDxm.mjs} +3 -3
  130. package/dist/client/{shop-commerce-C-I29eaA.mjs → shop-commerce-DyMZLC0a.mjs} +12 -12
  131. package/dist/client/{shop-commerce-store-DGcc7twO.mjs → shop-commerce-store-FODNS63D.mjs} +1 -1
  132. package/dist/client/{shop-discount-apply.state-DOm7vx0X.mjs → shop-discount-apply.state-C4xcmFzZ.mjs} +2 -2
  133. package/dist/client/{shop.client-GHTWUKD6.mjs → shop.client-CRgRulfI.mjs} +12 -12
  134. package/dist/client/{shop.interactive-CxDJ8P2r.mjs → shop.interactive-D7wky1GL.mjs} +6 -33
  135. package/dist/client/{shopShared-Be9QJJpT.mjs → shopShared-Bd_hy9ZO.mjs} +2 -2
  136. package/dist/client/src-DqMbCjI1.mjs +3 -0
  137. package/dist/client/{src-xrjaKaCj.mjs → src-uwCpbHXG.mjs} +2 -1
  138. package/dist/client/{timetableModel--R0zVzZO.mjs → timetableModel-UlWfP1gh.mjs} +9 -9
  139. package/dist/client/{useAvailableSlots-BGu_2F50.mjs → useAvailableSlots-D-qoooLy.mjs} +2 -2
  140. package/dist/client/{useDiscountCodeUi-I_mXI9Yd.mjs → useDiscountCodeUi-B9DODAkj.mjs} +1 -1
  141. package/dist/client/{useEventPagination-DxIJ--JZ.mjs → useEventPagination-CQH2e9sQ.mjs} +7 -7
  142. package/dist/client/{view-BbzH5MQb.mjs → view-DNX59QwM.mjs} +10 -9
  143. package/dist/client/{view-3foOzGWR.mjs → view-bGU1ws-m.mjs} +3 -3
  144. package/dist/preview-next/client/{LocationPickerEnvironment-8iKKoYZr.mjs → LocationPickerEnvironment-BHAT81Wx.mjs} +1 -1
  145. package/dist/preview-next/client/{MapLibreEditMap-AIUPN1Zx.mjs → MapLibreEditMap-B52hkdIZ.mjs} +2 -2
  146. package/dist/preview-next/client/{PageSectionToolbar-0xyUPWUB.mjs → PageSectionToolbar-D-Le7O3o.mjs} +52 -8
  147. package/dist/preview-next/client/{PreviewEditorSidebar-D8vUzXtI.mjs → PreviewEditorSidebar-DNy5j_ce.mjs} +34 -39
  148. package/dist/preview-next/client/{PreviewEditorUI-CRjS4gAu.mjs → PreviewEditorUI-CzJvgbqt.mjs} +10 -10
  149. package/dist/preview-next/client/{PreviewShell-BvdBdeH_.mjs → PreviewShell-xhJ6ca1i.mjs} +9 -8
  150. package/dist/preview-next/client/{SdkPreviewModeRuntime-DWTyKbFj.mjs → SdkPreviewModeRuntime-BmYO1TdT.mjs} +16 -7
  151. package/dist/preview-next/client/{lucide-react-Dfgl3Vtq.mjs → lucide-react-McYZeSMb.mjs} +1 -1
  152. package/dist/preview-next/client/{previewAssistantSlot-BqY2TTcZ.mjs → previewAssistantSlot-BN93X9o1.mjs} +1211 -600
  153. package/dist/preview-next/client/{previewChromeRoot-BuRYe2iL.mjs → previewChromeRoot-C51RQseo.mjs} +1 -1
  154. package/dist/preview-next/client/runtime.mjs +3 -3
  155. package/dist/preview-next/client/{sdk-runtime-BnK5kH9f.mjs → sdk-runtime-oeGquJM-.mjs} +2 -2
  156. package/dist/preview-next/client/{siteStyleAccess-DbKozRSn.mjs → siteStyleAccess-BGTAcPud.mjs} +27 -17
  157. package/dist/preview-next/client/src-EO5QoRlU.mjs +3 -0
  158. package/dist/preview-next/client/{src-DzXUmsyK.mjs → src-lX6heoDA.mjs} +2 -1
  159. package/dist/preview-next/client/{useAutosaveStatus-D9s6dyMW.mjs → useAutosaveStatus-BMGXjGZq.mjs} +3 -30
  160. package/dist/preview-next/client/{useOpenBlockForSetup-Ce4WCxpT.mjs → useOpenBlockForSetup-CTDoR_gQ.mjs} +2 -2
  161. package/dist/preview-next/container-responsive.css +3 -0
  162. package/dist/preview-next/editor-chrome.css +4 -2
  163. package/dist/preview-next/keepAlive.mjs +1 -1
  164. package/dist/preview-next/middleware.mjs +1 -1
  165. package/dist/preview-next/{route-contract-BYezcMx5.mjs → route-contract-BtdzkSUg.mjs} +71 -4
  166. package/dist/server/{Block.shared-Cn7gg13_.mjs → Block.shared-Bp3OlOjj.mjs} +5 -5
  167. package/dist/server/{bindings-VGgS6UvF.mjs → bindings-DrbJuftt.mjs} +3 -3
  168. package/dist/server/{client-Bvag5OtW.mjs → client-Bf06n9oj.mjs} +90 -9
  169. package/dist/server/config-validation.mjs +1 -1
  170. package/dist/server/config.mjs +2 -2
  171. package/dist/server/constants-Cj7hfbrA.mjs +41 -0
  172. package/dist/server/data/resolveBlockData.mjs +1 -1
  173. package/dist/server/index.mjs +2 -2
  174. package/dist/server/{loadContent-CxASA3PE.mjs → loadContent-eaTY7RPg.mjs} +4 -4
  175. package/dist/server/{loadPage-CQgde5DN.mjs → loadPage-5iZefzDd.mjs} +2 -2
  176. package/dist/server/{navigation-iC_hXjJI.mjs → navigation-BcNfYYuu.mjs} +1 -1
  177. package/dist/server/navigation.mjs +1 -1
  178. package/dist/server/next/revalidate.mjs +15 -8
  179. package/dist/server/next.mjs +56 -13
  180. package/dist/server/{overrideResolution-BqVLO4gX.mjs → overrideResolution-CUHtm7tW.mjs} +1 -1
  181. package/dist/server/page-converter.mjs +1 -1
  182. package/dist/server/{pageRenderPlan-CfSnAkCO.mjs → pageRenderPlan-GmPXForc.mjs} +13 -6
  183. package/dist/server/{pageRuntimeSupport-uz4gzBOo.mjs → pageRuntimeSupport-Dd8LFzfa.mjs} +1 -1
  184. package/dist/server/{pageShared-D23o5QgC.mjs → pageShared-tz-GVWft.mjs} +96 -39
  185. package/dist/server/portal-B4JVkdjc.mjs +783 -0
  186. package/dist/server/portal.mjs +3 -3
  187. package/dist/server/{prebuild-BuoXWT9y.mjs → prebuild-JmsuYCIH.mjs} +1 -1
  188. package/dist/server/prebuild.mjs +1 -1
  189. package/dist/server/{prefetchBlockData-CCiYV8_s.mjs → prefetchBlockData-Ce9DDwON.mjs} +2 -2
  190. package/dist/server/{registry-CXRXsFSx.mjs → registry-D12XF_h1.mjs} +466 -311
  191. package/dist/server/rendering/components/pageShared.mjs +1 -1
  192. package/dist/server/rendering/helpers/loadPage.mjs +1 -1
  193. package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
  194. package/dist/server/rendering/server.mjs +3 -3
  195. package/dist/server/rendering.mjs +7 -7
  196. package/dist/server/{resolveBlockData-yfe8WLEA.mjs → resolveBlockData-D9yZIN3V.mjs} +1 -1
  197. package/dist/server/server.mjs +3 -3
  198. package/dist/server/{validation-CozQ7wE0.mjs → validation-CLq5cw6M.mjs} +3 -5
  199. package/dist/server/{version-CgCWRFEY.mjs → version-oPbhAx8E.mjs} +1 -1
  200. package/dist/styles/index.css +27 -1
  201. package/package.json +1 -1
  202. package/dist/client/src-BozhJ43Z.mjs +0 -3
  203. package/dist/preview-next/client/src-LUhVXBEQ.mjs +0 -3
  204. package/dist/server/constants-hl17xz6x.mjs +0 -22
  205. package/dist/server/portal-BjVHMAUC.mjs +0 -371
@@ -1,18 +1,18 @@
1
1
  "use client";
2
2
  "use client";
3
- import { bn as formatCurrencyAmount, n as assertNever, t as logger, vn as parsePositiveMoneyInputToCents } from "../noop-CaQxI-Js.mjs";
3
+ import { Sn as formatCurrencyAmount, bn as parsePositiveMoneyInputToCents, n as assertNever, t as logger } from "../noop-D11X-B6n.mjs";
4
4
  import { D as unsafeAsAppointmentResourceId, T as assertNever$1, c as initialBookingQuestionValues, f as unansweredRequiredBookingQuestions, g as formatCreditProductUnits, i as UNANSWERED_QUESTION_MESSAGE, m as formatCreditProductBalance, n as getCreditProductTypeLabel, r as UNANSWERED_QUESTIONS_SUMMARY, t as deriveCreditProductLabels, y as formatOrderInstalmentStatusLabel$1 } from "../creditProducts-BQ1t1erI.mjs";
5
5
  import { t as generateUuidV4 } from "../uuid-BETKW8rS.mjs";
6
- import { n as useAvailableDates, s as clientPersonPhrases, t as useAvailableSlots } from "../useAvailableSlots-BGu_2F50.mjs";
7
- import { a as createBlockApi, i as BlockApiError, n as useBlockApi, t as BlockApiProvider } from "../context-R9p5c8IH.mjs";
6
+ import { n as useAvailableDates, s as clientPersonPhrases, t as useAvailableSlots } from "../useAvailableSlots-D-qoooLy.mjs";
7
+ import { a as createBlockApi, i as BlockApiError, n as useBlockApi, t as BlockApiProvider } from "../context-CJIz4FdL.mjs";
8
8
  import { S as clsx, i as ThemedButtonLink, l as SpinnerNode, o as ThemedFileChooser, r as ThemedButton, t as ThemedActionsButton } from "../ThemedButton-DuaYtnvG.mjs";
9
9
  import { t as resolveDedicatedBookingHref } from "../bookingRoute-D6DlxYx6.mjs";
10
- import { a as DemoPortalSignInLink, i as useBookingNowIso, r as parseBookingSubmissionFailure, t as BookingQuestionFields } from "../BookingQuestionFields-MbvIo2jS.mjs";
10
+ import { a as DemoPortalSignInLink, i as useBookingNowIso, r as parseBookingSubmissionFailure, t as BookingQuestionFields } from "../BookingQuestionFields-B57oGPcj.mjs";
11
11
  import { t as ModalShell } from "../ModalShell-B_fHWK71.mjs";
12
12
  import { t as TabBarFragment } from "../TabBarFragment-BqfRLojo.mjs";
13
- import { t as formatDate } from "../formatDate-TDHhFjFN.mjs";
14
- import { n as buildPortalCallbackUrl, r as requestDemoPortalMagicLink } from "../demoPortalMagicLink-tZxIm3RL.mjs";
15
- import { a as formatPortalSessionDay, c as isPast, i as formatPortalSession, l as portalSessionDisplay, n as formatDateTime, o as formatPortalSessionTime, r as formatEntitlementEnd, s as formatPortalSessionWithWeekday, t as formatDate$1 } from "../dateFormatting-CF6FWCoo.mjs";
13
+ import { t as formatDate } from "../formatDate-DVFVDcDW.mjs";
14
+ import { i as requestDemoPortalMagicLink, n as PORTAL_CALLBACK_PATH, r as buildPortalCallbackUrl } from "../demoPortalMagicLink-6CgFZNvu.mjs";
15
+ import { a as formatPortalSessionDay, c as isPast, i as formatPortalSession, l as portalSessionDisplay, n as formatDateTime, o as formatPortalSessionTime, r as formatEntitlementEnd, s as formatPortalSessionWithWeekday, t as formatDate$1 } from "../dateFormatting-UoXqBh10.mjs";
16
16
  import * as React$1 from "react";
17
17
  import React, { createContext, forwardRef, useCallback, useContext, useEffect, useId, useMemo, useReducer, useRef, useState } from "react";
18
18
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -491,7 +491,6 @@ function submitPortalLogout(logoutPath) {
491
491
  }
492
492
  function resolvePortalHostPaths(paths) {
493
493
  return {
494
- callbackPath: paths.callbackPath ?? "/api/portal/callback",
495
494
  logoutPath: paths.logoutPath ?? "/api/portal/logout",
496
495
  bookPath: paths.bookPath === void 0 ? { kind: "dedicated" } : {
497
496
  kind: "host",
@@ -508,11 +507,11 @@ function usePortalInitialLocation() {
508
507
  };
509
508
  }, []);
510
509
  }
511
- async function requestPortalLogin(api, email, returnPath, callbackPath) {
510
+ async function requestPortalLogin(api, email, returnPath) {
512
511
  const normalizedEmail = email.trim().toLowerCase();
513
512
  const result = await requestDemoPortalMagicLink({
514
513
  email: normalizedEmail,
515
- redirectUrl: buildPortalCallbackUrl(window.location.origin, returnPath, callbackPath),
514
+ redirectUrl: buildPortalCallbackUrl(window.location.origin, returnPath),
516
515
  send: (request) => api.sendMagicLink(request)
517
516
  });
518
517
  switch (result.kind) {
@@ -616,7 +615,7 @@ function loginFailureMessage(error) {
616
615
  async function sendPortalLogin(props, email) {
617
616
  props.dispatch({ type: "login-started" });
618
617
  try {
619
- props.dispatch(await requestPortalLogin(props.api, email, props.returnPath, props.callbackPath));
618
+ props.dispatch(await requestPortalLogin(props.api, email, props.returnPath));
620
619
  } catch (error) {
621
620
  console.error("Login error:", error);
622
621
  props.dispatch({
@@ -5628,6 +5627,29 @@ function BeforeYouComeTaskDisplay({ task, ...props }) {
5628
5627
  });
5629
5628
  }
5630
5629
  //#endregion
5630
+ //#region ../blocks/src/customer-portal/components/bookings/PortalJoiningDetails.tsx
5631
+ /** How to join an upcoming online booking. Only reaches here for the client who holds it. */
5632
+ function PortalJoiningDetails({ details }) {
5633
+ if (!details) return null;
5634
+ return /* @__PURE__ */ jsxs("div", {
5635
+ className: "cp-joining-details",
5636
+ children: [
5637
+ /* @__PURE__ */ jsx("a", {
5638
+ className: "cp-joining-details__link",
5639
+ href: details.joinUrl,
5640
+ target: "_blank",
5641
+ rel: "noopener noreferrer",
5642
+ children: "Join online"
5643
+ }),
5644
+ details.accessCode ? /* @__PURE__ */ jsxs("span", { children: ["Access code: ", details.accessCode] }) : null,
5645
+ details.notes ? /* @__PURE__ */ jsx("span", {
5646
+ className: "cp-joining-details__notes",
5647
+ children: details.notes
5648
+ }) : null
5649
+ ]
5650
+ });
5651
+ }
5652
+ //#endregion
5631
5653
  //#region ../blocks/src/customer-portal/components/bookings/eventCancelCopy.ts
5632
5654
  const CANCEL = "This will cancel your booking.";
5633
5655
  const CARD_TIME = "It can take 5–10 working days to appear.";
@@ -6078,7 +6100,7 @@ function EventSeriesRegistrationTableRow({ enrollment, primaryDateLabel, session
6078
6100
  }
6079
6101
  function RegistrationTask({ enrollment, onRefresh }) {
6080
6102
  const api = useBlockApi();
6081
- return /* @__PURE__ */ jsx(Fragment, { children: enrollment.beforeYouCome ? /* @__PURE__ */ jsx(BeforeYouComeTaskDisplay, {
6103
+ return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(PortalJoiningDetails, { details: enrollment.joiningDetails }), enrollment.beforeYouCome ? /* @__PURE__ */ jsx(BeforeYouComeTaskDisplay, {
6082
6104
  entityId: enrollment.id,
6083
6105
  task: enrollment.beforeYouCome,
6084
6106
  session: {
@@ -6090,7 +6112,7 @@ function RegistrationTask({ enrollment, onRefresh }) {
6090
6112
  createUploadUrl: (data) => api.createPortalWholeSeriesBookingQuestionsUploadUrl(enrollment.id, data),
6091
6113
  finalizeUpload: (data) => api.finalizePortalWholeSeriesBookingQuestionsUpload(enrollment.id, data),
6092
6114
  onRefresh
6093
- }) : null });
6115
+ }) : null] });
6094
6116
  }
6095
6117
  //#endregion
6096
6118
  //#region ../blocks/src/customer-portal/components/bookings/usePortalCancelFlow.state.ts
@@ -7631,6 +7653,7 @@ function EventRow({ event, siteTitle, isPast: isEventPast = false, showActionsCo
7631
7653
  className: "cp-row-meta",
7632
7654
  children: [/* @__PURE__ */ jsx("span", { children: formatPortalSession(event.startsAt, event.endsAt, event, context) }), event.venueName && /* @__PURE__ */ jsx("span", { children: event.venueName })]
7633
7655
  }),
7656
+ /* @__PURE__ */ jsx(PortalJoiningDetails, { details: event.joiningDetails }),
7634
7657
  event.beforeYouCome ? /* @__PURE__ */ jsx(BeforeYouComeTaskDisplay, {
7635
7658
  entityId: event.id,
7636
7659
  task: event.beforeYouCome,
@@ -8644,6 +8667,11 @@ function appointmentCancelCopy(appointment, siteTitle) {
8644
8667
  buttonLabel: "Cancel",
8645
8668
  title: "Cancel appointment?",
8646
8669
  body: [cancelBody(outcome, siteTitle), outcome.kind === "refund" ? protectedDepositCancelSentence(outcome) : null].filter(Boolean).join(" "),
8670
+ terms: appointment.cancellation.termsApplyOnCancel === true ? {
8671
+ before: `${siteTitle?.trim() ? `${siteTitle.trim()}'s` : "Their"} `,
8672
+ linkLabel: "booking terms",
8673
+ href: "/terms"
8674
+ } : null,
8647
8675
  keepLabel: "Keep appointment",
8648
8676
  confirmLabel: "Confirm cancel",
8649
8677
  confirmAcceptsNoRefund: outcome.kind === "keep_credit"
@@ -8702,6 +8730,7 @@ function presentPortalAppointment(appointment, display) {
8702
8730
  buttonLabel: "Cancel request",
8703
8731
  title: `Cancel your request for ${appointment.serviceName} on ${slot.when}?`,
8704
8732
  body: display.siteTitle ? `We'll let ${display.siteTitle} know.` : "We'll let them know.",
8733
+ terms: null,
8705
8734
  keepLabel: "Keep it",
8706
8735
  confirmLabel: "Cancel request",
8707
8736
  confirmAcceptsNoRefund: false
@@ -9941,9 +9970,8 @@ async function loadOptionalPortalSectionWithFallback(label, load, buildFallback)
9941
9970
  * Provides authenticated customers access to their passes, memberships,
9942
9971
  * event registrations, appointments, and profile.
9943
9972
  */
9944
- function CustomerPortalClient({ callbackPath: suppliedCallbackPath, logoutPath: suppliedLogoutPath, bookPath: suppliedBookPath, hasInitialPortalToken = false, siteTitle, demoEmailSuppressed, privacyPolicyHref, className, showPasses = true, showMemberships = true, showEvents = true, showWholeSeries = true, showAppointments = true, showOrders = true, showCredit = true, showProfile = true, loginTitle = "Customer Portal", loginSubtitle = "Enter your email to access your account", loginButtonText = getDefaultLoginButtonText(demoEmailSuppressed), passesTabLabel, membershipsTabLabel = "Memberships", eventsTabLabel = "Bookings", appointmentsTabLabel = "Appointments", ordersTabLabel = "Orders", creditTabLabel = "Credit", profileTabLabel = "Profile", emptyPassesMessage, emptyMembershipsMessage = "You don't have any active memberships.", emptyEventsMessage = "You're not registered for any events.", emptyAppointmentsMessage = "You don't have any appointments scheduled.", emptyOrdersMessage = "You don't have any orders yet." }) {
9945
- const { callbackPath, logoutPath, bookPath } = resolvePortalHostPaths({
9946
- callbackPath: suppliedCallbackPath,
9973
+ function CustomerPortalClient({ logoutPath: suppliedLogoutPath, bookPath: suppliedBookPath, hasInitialPortalToken = false, siteTitle, demoEmailSuppressed, privacyPolicyHref, className, showPasses = true, showMemberships = true, showEvents = true, showWholeSeries = true, showAppointments = true, showOrders = true, showCredit = true, showProfile = true, loginTitle = "Customer Portal", loginSubtitle = "Enter your email to access your account", loginButtonText = getDefaultLoginButtonText(demoEmailSuppressed), passesTabLabel, membershipsTabLabel = "Memberships", eventsTabLabel = "Bookings", appointmentsTabLabel = "Appointments", ordersTabLabel = "Orders", creditTabLabel = "Credit", profileTabLabel = "Profile", emptyPassesMessage, emptyMembershipsMessage = "You don't have any active memberships.", emptyEventsMessage = "You're not registered for any events.", emptyAppointmentsMessage = "You don't have any appointments scheduled.", emptyOrdersMessage = "You don't have any orders yet." }) {
9974
+ const { logoutPath, bookPath } = resolvePortalHostPaths({
9947
9975
  logoutPath: suppliedLogoutPath,
9948
9976
  bookPath: suppliedBookPath
9949
9977
  });
@@ -10181,7 +10209,6 @@ function CustomerPortalClient({ callbackPath: suppliedCallbackPath, logoutPath:
10181
10209
  dispatch,
10182
10210
  api,
10183
10211
  returnPath,
10184
- callbackPath,
10185
10212
  demoEmailSuppressed,
10186
10213
  loginButtonText
10187
10214
  })
@@ -10888,6 +10915,17 @@ function PortalCardNote({ text }) {
10888
10915
  children: text
10889
10916
  }) : null;
10890
10917
  }
10918
+ function CancelDialogTerms({ terms }) {
10919
+ if (terms === null) return null;
10920
+ return /* @__PURE__ */ jsxs("div", { children: [
10921
+ terms.before,
10922
+ /* @__PURE__ */ jsx("a", {
10923
+ href: terms.href,
10924
+ children: terms.linkLabel
10925
+ }),
10926
+ " still apply."
10927
+ ] });
10928
+ }
10891
10929
  function AppointmentCard({ appointment, bookPath, siteTitle, isPast: isApptPast = false, onRefresh, cancelledNotice, onCancelled }) {
10892
10930
  const { context } = usePortalDateDisplay();
10893
10931
  const presentation = presentPortalAppointment(appointment, {
@@ -10916,25 +10954,29 @@ function AppointmentCard({ appointment, bookPath, siteTitle, isPast: isApptPast
10916
10954
  title: cancelCopy.title,
10917
10955
  titleId: `cp-cancel-appointment-${appointment.id}`,
10918
10956
  onClose: cancelFlow.dismissCancelFlow,
10919
- children: [/* @__PURE__ */ jsx("div", { children: cancelCopy.body }), /* @__PURE__ */ jsxs("div", {
10920
- className: "cp-modal__actions",
10921
- children: [/* @__PURE__ */ jsx(ThemedButton, {
10922
- type: "button",
10923
- disabled: cancelFlow.submitting,
10924
- onClick: cancelFlow.dismissCancelFlow,
10925
- variant: "secondary",
10926
- size: "sm",
10927
- label: cancelCopy.keepLabel
10928
- }), /* @__PURE__ */ jsx(ThemedButton, {
10929
- type: "button",
10930
- disabled: cancelFlow.submitting,
10931
- onClick: () => void cancelFlow.submitCancel(cancelCopy.confirmAcceptsNoRefund ? { confirmCancelWithoutRefund: true } : void 0),
10932
- variant: "primary",
10933
- size: "sm",
10934
- extraClassName: "cp-button--danger",
10935
- label: cancelFlow.submitting ? "Cancelling..." : cancelCopy.confirmLabel
10936
- })]
10937
- })]
10957
+ children: [
10958
+ /* @__PURE__ */ jsx("div", { children: cancelCopy.body }),
10959
+ /* @__PURE__ */ jsx(CancelDialogTerms, { terms: cancelCopy.terms }),
10960
+ /* @__PURE__ */ jsxs("div", {
10961
+ className: "cp-modal__actions",
10962
+ children: [/* @__PURE__ */ jsx(ThemedButton, {
10963
+ type: "button",
10964
+ disabled: cancelFlow.submitting,
10965
+ onClick: cancelFlow.dismissCancelFlow,
10966
+ variant: "secondary",
10967
+ size: "sm",
10968
+ label: cancelCopy.keepLabel
10969
+ }), /* @__PURE__ */ jsx(ThemedButton, {
10970
+ type: "button",
10971
+ disabled: cancelFlow.submitting,
10972
+ onClick: () => void cancelFlow.submitCancel(cancelCopy.confirmAcceptsNoRefund ? { confirmCancelWithoutRefund: true } : void 0),
10973
+ variant: "primary",
10974
+ size: "sm",
10975
+ extraClassName: "cp-button--danger",
10976
+ label: cancelFlow.submitting ? "Cancelling..." : cancelCopy.confirmLabel
10977
+ })]
10978
+ })
10979
+ ]
10938
10980
  }) : null,
10939
10981
  cancelFlow.dialog.tag === "confirmWithoutRefund" ? /* @__PURE__ */ jsxs(PortalModal, {
10940
10982
  title: "Cancel without a refund?",
@@ -10981,6 +11023,7 @@ function AppointmentCard({ appointment, bookPath, siteTitle, isPast: isApptPast
10981
11023
  children: /* @__PURE__ */ jsx("span", { children: presentation.when })
10982
11024
  }),
10983
11025
  /* @__PURE__ */ jsx(PortalCardNote, { text: presentation.hint }),
11026
+ /* @__PURE__ */ jsx(PortalJoiningDetails, { details: appointment.joiningDetails }),
10984
11027
  appointment.beforeYouCome ? /* @__PURE__ */ jsx(BeforeYouComeTaskDisplay, {
10985
11028
  entityId: appointment.id,
10986
11029
  task: appointment.beforeYouCome,
@@ -11585,11 +11628,314 @@ function PortalPageLogin(props) {
11585
11628
  dispatch,
11586
11629
  api,
11587
11630
  returnPath: props.redirectTo,
11588
- callbackPath: props.callbackPath ?? "/api/portal/callback",
11589
11631
  demoEmailSuppressed: props.demoEmailSuppressed
11590
11632
  })
11591
11633
  ]
11592
11634
  });
11593
11635
  }
11594
11636
  //#endregion
11595
- export { CustomerPortal, PortalAccessState, PortalDigitalProductView, PortalTicketView };
11637
+ //#region ../blocks/src/customer-portal/pages/EntryContent.tsx
11638
+ const STRAIGHT_THERE = "Press the button below and we'll take you straight to it. There's no password to remember.";
11639
+ const PURPOSE_COPY = {
11640
+ booking: {
11641
+ heading: "Your booking is one tap away",
11642
+ body: STRAIGHT_THERE,
11643
+ button: "See my booking"
11644
+ },
11645
+ waitlist_claim: {
11646
+ heading: "Claim your place",
11647
+ body: "Press the button below and we'll take you to the page where you can finish booking. There's no password to remember.",
11648
+ button: "Claim my place"
11649
+ },
11650
+ membership: {
11651
+ heading: "Your membership is one tap away",
11652
+ body: STRAIGHT_THERE,
11653
+ button: "See my membership"
11654
+ },
11655
+ general: {
11656
+ heading: "You're nearly there",
11657
+ body: "Press the button below and we'll take you to your account. There's no password to remember.",
11658
+ button: "Continue"
11659
+ }
11660
+ };
11661
+ function IntentField(props) {
11662
+ return /* @__PURE__ */ jsx("input", {
11663
+ type: "hidden",
11664
+ name: "intent",
11665
+ value: props.intent
11666
+ });
11667
+ }
11668
+ function SiteFields(props) {
11669
+ return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("input", {
11670
+ type: "hidden",
11671
+ name: "site_title",
11672
+ value: props.siteTitle
11673
+ }), props.contactEmail ? /* @__PURE__ */ jsx("input", {
11674
+ type: "hidden",
11675
+ name: "contact_email",
11676
+ value: props.contactEmail
11677
+ }) : null] });
11678
+ }
11679
+ function NewLinkButton(props) {
11680
+ return /* @__PURE__ */ jsxs("form", {
11681
+ method: "post",
11682
+ action: PORTAL_CALLBACK_PATH,
11683
+ children: [
11684
+ /* @__PURE__ */ jsx(IntentField, { intent: "new_link" }),
11685
+ /* @__PURE__ */ jsx("input", {
11686
+ type: "hidden",
11687
+ name: "fingerprint",
11688
+ value: props.fingerprint
11689
+ }),
11690
+ /* @__PURE__ */ jsx(SiteFields, { ...props }),
11691
+ /* @__PURE__ */ jsx(ThemedButton, {
11692
+ type: "submit",
11693
+ variant: props.variant,
11694
+ size: "md",
11695
+ label: props.label
11696
+ })
11697
+ ]
11698
+ });
11699
+ }
11700
+ function ContinueView(props) {
11701
+ const copy = PURPOSE_COPY[props.view.purpose];
11702
+ return /* @__PURE__ */ jsxs(Page, {
11703
+ ...props,
11704
+ heading: copy.heading,
11705
+ children: [
11706
+ /* @__PURE__ */ jsx("p", { children: copy.body }),
11707
+ /* @__PURE__ */ jsxs("form", {
11708
+ method: "post",
11709
+ action: PORTAL_CALLBACK_PATH,
11710
+ children: [
11711
+ /* @__PURE__ */ jsx(IntentField, { intent: "continue" }),
11712
+ /* @__PURE__ */ jsx("input", {
11713
+ type: "hidden",
11714
+ name: "fingerprint",
11715
+ value: props.view.fingerprint
11716
+ }),
11717
+ /* @__PURE__ */ jsx(SiteFields, { ...props }),
11718
+ /* @__PURE__ */ jsx(ThemedButton, {
11719
+ type: "submit",
11720
+ variant: "default",
11721
+ size: "md",
11722
+ label: copy.button
11723
+ })
11724
+ ]
11725
+ }),
11726
+ /* @__PURE__ */ jsxs("p", {
11727
+ className: "cp-page-hint",
11728
+ children: ["Signing in as ", props.view.maskedEmail]
11729
+ })
11730
+ ]
11731
+ });
11732
+ }
11733
+ function SpentLinkView(props) {
11734
+ return /* @__PURE__ */ jsxs(Page, {
11735
+ ...props,
11736
+ heading: props.view.kind === "used" ? "This link has already been used" : "This link has run out",
11737
+ children: [
11738
+ /* @__PURE__ */ jsx("p", { children: props.view.kind === "used" ? "Each link in our emails works once, to keep your account safe. We can send you a new one." : "Links in our emails stop working after a while, to keep your account safe. We can send you a new one." }),
11739
+ /* @__PURE__ */ jsx(NewLinkButton, {
11740
+ ...props,
11741
+ label: "Email me a new link",
11742
+ variant: "default",
11743
+ fingerprint: props.view.resend.fingerprint
11744
+ }),
11745
+ /* @__PURE__ */ jsxs("p", {
11746
+ className: "cp-page-hint",
11747
+ children: ["We'll send it to ", props.view.resend.maskedEmail]
11748
+ })
11749
+ ]
11750
+ });
11751
+ }
11752
+ function LinkSentView(props) {
11753
+ const { resend } = props.view;
11754
+ return /* @__PURE__ */ jsxs(Page, {
11755
+ ...props,
11756
+ heading: "Check your email",
11757
+ children: [
11758
+ /* @__PURE__ */ jsxs("p", { children: [
11759
+ "We've sent a new link to ",
11760
+ resend?.maskedEmail ?? "your email address",
11761
+ ". It should arrive in a couple of minutes."
11762
+ ] }),
11763
+ /* @__PURE__ */ jsx("p", { children: "If you can't see it, have a look in your junk or spam folder." }),
11764
+ resend ? /* @__PURE__ */ jsx(NewLinkButton, {
11765
+ ...props,
11766
+ label: "Send it again",
11767
+ variant: "secondary",
11768
+ fingerprint: resend.fingerprint
11769
+ }) : null
11770
+ ]
11771
+ });
11772
+ }
11773
+ /** Reads the same whichever limit refused, so it can't reveal whether an address has an account. */
11774
+ function LinkLimitedView(props) {
11775
+ return /* @__PURE__ */ jsxs(Page, {
11776
+ ...props,
11777
+ heading: "We couldn't send a link just now",
11778
+ children: [/* @__PURE__ */ jsx("p", { children: "Please try again in a little while." }), props.view.resend ? /* @__PURE__ */ jsx(NewLinkButton, {
11779
+ ...props,
11780
+ label: "Try again",
11781
+ variant: "default",
11782
+ fingerprint: props.view.resend.fingerprint
11783
+ }) : /* @__PURE__ */ jsx(ThemedButtonLink, {
11784
+ href: "/portal/continue",
11785
+ variant: "default",
11786
+ size: "md",
11787
+ label: "Try again"
11788
+ })]
11789
+ });
11790
+ }
11791
+ function UnknownView(props) {
11792
+ return /* @__PURE__ */ jsxs(Page, {
11793
+ ...props,
11794
+ heading: "We couldn't open this link",
11795
+ children: [/* @__PURE__ */ jsx("p", { children: "Sometimes a link gets cut short along the way. Tell us your email address and we'll send you a new one." }), /* @__PURE__ */ jsxs("form", {
11796
+ method: "post",
11797
+ action: PORTAL_CALLBACK_PATH,
11798
+ className: "cp-login__form",
11799
+ children: [
11800
+ /* @__PURE__ */ jsx(IntentField, { intent: "address" }),
11801
+ /* @__PURE__ */ jsx("input", {
11802
+ type: "hidden",
11803
+ name: "site_id",
11804
+ value: props.siteId
11805
+ }),
11806
+ /* @__PURE__ */ jsx(SiteFields, { ...props }),
11807
+ /* @__PURE__ */ jsxs("div", {
11808
+ className: "cp-field",
11809
+ children: [/* @__PURE__ */ jsx("label", {
11810
+ htmlFor: "portal-entry-email",
11811
+ className: "form-label",
11812
+ children: "Your email address"
11813
+ }), /* @__PURE__ */ jsx("input", {
11814
+ id: "portal-entry-email",
11815
+ name: "email",
11816
+ type: "email",
11817
+ autoComplete: "email",
11818
+ required: true,
11819
+ className: "form-input"
11820
+ })]
11821
+ }),
11822
+ /* @__PURE__ */ jsx(ThemedButton, {
11823
+ type: "submit",
11824
+ variant: "default",
11825
+ size: "md",
11826
+ label: "Email me a new link"
11827
+ })
11828
+ ]
11829
+ })]
11830
+ });
11831
+ }
11832
+ function FailedView(props) {
11833
+ return /* @__PURE__ */ jsxs(Page, {
11834
+ ...props,
11835
+ heading: "Sorry, that didn't work",
11836
+ children: [
11837
+ /* @__PURE__ */ jsx("p", { children: "Something went wrong on our side, and it's nothing you did. Please try again in a minute." }),
11838
+ /* @__PURE__ */ jsx(ThemedButtonLink, {
11839
+ href: props.view.retryHref,
11840
+ variant: "default",
11841
+ size: "md",
11842
+ label: "Try again"
11843
+ }),
11844
+ /* @__PURE__ */ jsx(NewLinkButton, {
11845
+ ...props,
11846
+ label: "Email me a new link",
11847
+ variant: "secondary",
11848
+ fingerprint: props.view.fingerprint
11849
+ }),
11850
+ props.view.destination ? /* @__PURE__ */ jsx("p", { children: /* @__PURE__ */ jsx("a", {
11851
+ href: props.view.destination,
11852
+ rel: "noreferrer",
11853
+ children: "Go to the page"
11854
+ }) }) : null
11855
+ ]
11856
+ });
11857
+ }
11858
+ function Page(props) {
11859
+ return /* @__PURE__ */ jsx("div", {
11860
+ "data-block": "customer-portal",
11861
+ className: "cp-page",
11862
+ children: /* @__PURE__ */ jsxs("div", {
11863
+ className: "cp-page-card cp-page-card--compact",
11864
+ children: [
11865
+ /* @__PURE__ */ jsx("h1", {
11866
+ className: "cp-page-title",
11867
+ children: props.heading
11868
+ }),
11869
+ /* @__PURE__ */ jsx("div", {
11870
+ className: "cp-page-copy cp-page-stack",
11871
+ children: props.children
11872
+ }),
11873
+ props.contactEmail ? /* @__PURE__ */ jsxs("p", {
11874
+ className: "cp-page-hint",
11875
+ children: ["Need a hand? ", /* @__PURE__ */ jsxs("a", {
11876
+ href: `mailto:${props.contactEmail}`,
11877
+ children: ["Email ", props.siteTitle]
11878
+ })]
11879
+ }) : null
11880
+ ]
11881
+ })
11882
+ });
11883
+ }
11884
+ /**
11885
+ * The pages a client sees from an emailed link. Every form is a native POST to the site's callback,
11886
+ * so these work before any script has run.
11887
+ */
11888
+ function PortalEntryContent(props) {
11889
+ const { view } = props;
11890
+ switch (view.kind) {
11891
+ case "continue": return /* @__PURE__ */ jsx(ContinueView, {
11892
+ ...props,
11893
+ view
11894
+ });
11895
+ case "used":
11896
+ case "expired": return /* @__PURE__ */ jsx(SpentLinkView, {
11897
+ ...props,
11898
+ view
11899
+ });
11900
+ case "link_sent": return /* @__PURE__ */ jsx(LinkSentView, {
11901
+ ...props,
11902
+ view
11903
+ });
11904
+ case "link_limited": return /* @__PURE__ */ jsx(LinkLimitedView, {
11905
+ ...props,
11906
+ view
11907
+ });
11908
+ case "unknown": return /* @__PURE__ */ jsx(UnknownView, { ...props });
11909
+ case "failed": return /* @__PURE__ */ jsx(FailedView, {
11910
+ ...props,
11911
+ view
11912
+ });
11913
+ case "cookies_blocked": return /* @__PURE__ */ jsxs(Page, {
11914
+ ...props,
11915
+ heading: "Please open the link from your email again",
11916
+ children: [/* @__PURE__ */ jsx("p", { children: "This page has been open for a while, or this browser isn't keeping cookies for this site. Opening the link in your email again usually sorts it out." }), /* @__PURE__ */ jsx("p", { children: "If you end up back here, try turning cookies on for this site, or open the link in a different browser." })]
11917
+ });
11918
+ case "stale": return /* @__PURE__ */ jsxs(Page, {
11919
+ ...props,
11920
+ heading: "You've opened another link",
11921
+ children: [/* @__PURE__ */ jsx("p", { children: "You've opened a different link from one of our emails in another tab, so this page won't work any more. Press the button below to carry on with the newest one." }), /* @__PURE__ */ jsx(ThemedButtonLink, {
11922
+ href: view.carryOnHref,
11923
+ variant: "default",
11924
+ size: "md",
11925
+ label: "Carry on"
11926
+ })]
11927
+ });
11928
+ case "demo_refused": return /* @__PURE__ */ jsxs(Page, {
11929
+ ...props,
11930
+ heading: "This demo doesn't send emails",
11931
+ children: [/* @__PURE__ */ jsx("p", { children: "In the demo you can only sign in with an email you've booked with in this browser. Book something first, then come back here." }), /* @__PURE__ */ jsx(ThemedButtonLink, {
11932
+ href: "/portal",
11933
+ variant: "default",
11934
+ size: "md",
11935
+ label: "Go to sign in"
11936
+ })]
11937
+ });
11938
+ }
11939
+ }
11940
+ //#endregion
11941
+ export { CustomerPortal, PortalAccessState, PortalDigitalProductView, PortalEntryContent, PortalTicketView };
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { r as ProductDetailController } from "./shop-commerce-C-I29eaA.mjs";
2
+ import { r as ProductDetailController } from "./shop-commerce-DyMZLC0a.mjs";
3
3
  import "react";
4
4
  import { jsx } from "react/jsx-runtime";
5
5
  //#region ../blocks/src/system/runtime/nodes/product-detail.client.tsx
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { i as ProductListController } from "./shop-commerce-C-I29eaA.mjs";
2
+ import { i as ProductListController } from "./shop-commerce-DyMZLC0a.mjs";
3
3
  import "react";
4
4
  import { jsx } from "react/jsx-runtime";
5
5
  //#region ../blocks/src/system/runtime/nodes/product-list.client.tsx
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { t as defineIslandPropsDecoder } from "./propsDecoder-y3LvxaiG.mjs";
3
- import { t as ProductDetailClient } from "./product-detail.client-Di_anRGR.mjs";
4
- import { t as mountShopBlockIsland } from "./shopShared-Be9QJJpT.mjs";
2
+ import { t as defineIslandPropsDecoder } from "./propsDecoder-Db8wAmgr.mjs";
3
+ import { t as ProductDetailClient } from "./product-detail.client-DIWSeW7P.mjs";
4
+ import { t as mountShopBlockIsland } from "./shopShared-Bd_hy9ZO.mjs";
5
5
  //#region src/rendering/islands/enhancers/productDetail.tsx
6
6
  const decode = defineIslandPropsDecoder("product-detail");
7
7
  const enhance = (root, props) => mountShopBlockIsland(root, props, ProductDetailClient, "product-detail");
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { t as defineIslandPropsDecoder } from "./propsDecoder-y3LvxaiG.mjs";
3
- import { t as ProductListClient } from "./product-list.client-Duhl6rtL.mjs";
4
- import { t as mountShopBlockIsland } from "./shopShared-Be9QJJpT.mjs";
2
+ import { t as defineIslandPropsDecoder } from "./propsDecoder-Db8wAmgr.mjs";
3
+ import { t as ProductListClient } from "./product-list.client-BRf14h_e.mjs";
4
+ import { t as mountShopBlockIsland } from "./shopShared-Bd_hy9ZO.mjs";
5
5
  //#region src/rendering/islands/enhancers/productList.tsx
6
6
  const decode = defineIslandPropsDecoder("product-list");
7
7
  const enhance = (root, props) => mountShopBlockIsland(root, props, ProductListClient, "product-list");
@@ -1,8 +1,8 @@
1
1
  "use client";
2
- import { A as formInteractiveIslandPropsCodec, C as newsletterFormInteractiveIslandPropsCodec, Dt as eventListingInteractiveIslandPropsCodec, E as giftingInteractiveIslandPropsCodec, F as eventRegistrationInteractiveIslandPropsCodec, f as productDetailInteractiveIslandPropsCodec, g as shopInteractiveIslandPropsCodec, gt as eventCombinedInteractiveIslandPropsCodec, l as checkoutInteractiveIslandPropsCodec, m as productListInteractiveIslandPropsCodec, s as cartInteractiveIslandPropsCodec, vn as headerChromeRuntimeContractSchema, xt as eventCalendarInteractiveIslandPropsCodec } from "./shop.interactive-CxDJ8P2r.mjs";
3
- import { So as createZodCodec, To as isDecodeSuccess, Ya as eventRegistrationPageSurfaceSubjectSchema, bi as bookingFormInteractiveIslandPropsCodec } from "./display-4HYOb-AK.mjs";
4
- import { W as eventVenueDrawingSchema, f as eventAutoApplyDiscountPreviewSchema, m as publicPassProductCollectionSchema, p as publicMembershipProductCollectionSchema, q as publicEventSchema } from "./noop-CaQxI-Js.mjs";
5
- import { i as lookListPresentationSchemaShape } from "./lookSurfaces-BwiNdgMU.mjs";
2
+ import { A as formInteractiveIslandPropsCodec, C as newsletterFormInteractiveIslandPropsCodec, E as giftingInteractiveIslandPropsCodec, Et as eventListingInteractiveIslandPropsCodec, F as eventRegistrationInteractiveIslandPropsCodec, _n as headerChromeRuntimeContractSchema, bt as eventCalendarInteractiveIslandPropsCodec, f as productDetailInteractiveIslandPropsCodec, g as shopInteractiveIslandPropsCodec, ht as eventCombinedInteractiveIslandPropsCodec, l as checkoutInteractiveIslandPropsCodec, m as productListInteractiveIslandPropsCodec, s as cartInteractiveIslandPropsCodec } from "./shop.interactive-D7wky1GL.mjs";
3
+ import { $a as eventRegistrationPageSurfaceSubjectSchema, Ao as isDecodeSuccess, Do as createZodCodec, wi as bookingFormInteractiveIslandPropsCodec } from "./display-D1oVR5Eh.mjs";
4
+ import { W as eventVenueDrawingSchema, f as eventAutoApplyDiscountPreviewSchema, m as publicPassProductCollectionSchema, p as publicMembershipProductCollectionSchema, q as publicEventSchema } from "./noop-D11X-B6n.mjs";
5
+ import { i as lookListPresentationSchemaShape } from "./lookSurfaces-C2VzJfyG.mjs";
6
6
  import { z } from "zod";
7
7
  //#region ../blocks/src/system/runtime/nodes/event-details/lookPresentation.ts
8
8
  const eventDetailsLookSchemaShape = {