@riverbankcms/sdk 0.171.1 → 0.172.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.
- package/dist/_dts/{BlocksIslandsHydrator-D-6cWDDC.d.ts → BlocksIslandsHydrator-DtrzTJ77.d.ts} +1 -1
- package/dist/_dts/{Page-4jkUDm4D.d.ts → Page-DViYbakk.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-DEvzvovi.d.ts → SdkPreviewMode-D-5OeDbT.d.ts} +2 -2
- package/dist/_dts/{client-CXPH5esD.d.ts → client-DZBOzd3U.d.ts} +1 -2
- package/dist/_dts/{content-types-DsCr4-ny.d.ts → content-types-DS3DrYn_.d.ts} +3 -3
- package/dist/_dts/{contracts-BlmXM7xP.d.ts → contracts-C3QGPCUf.d.ts} +3 -3
- package/dist/_dts/{footerPageOutline-BA0DnxWU.d.ts → footerPageOutline-D9Q7VIul.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-B7IRJCFG.d.ts → generatePageMetadata-R7NeFT1u.d.ts} +2 -2
- package/dist/_dts/{index-BQPJbOkU.d.ts → index-BnMavhoh.d.ts} +2 -2
- package/dist/_dts/{index-DScYSl03.d.ts → index-C0zjLMAW.d.ts} +49 -38
- package/dist/_dts/{index-BZ8-c4iQ.d.ts → index-CpOkfBt1.d.ts} +3 -3
- package/dist/_dts/{index-C9_OTCFQ.d.ts → index-Da4UMgbs.d.ts} +2 -2
- package/dist/_dts/{index-DlABXDte.d.ts → index-DkFV_1Bc.d.ts} +1 -1
- package/dist/_dts/{index-Sua-7CF1.d.ts → index-Dns7OHyl.d.ts} +1 -1
- package/dist/_dts/{index-B3gfKNI-.d.ts → index-MuMYjetm.d.ts} +4 -4
- package/dist/_dts/{loadContent-Dx4fW3Pa.d.ts → loadContent-DJmXHzfi.d.ts} +7 -7
- package/dist/_dts/{request-DUTkELQn.d.ts → request-wQ28JWbr.d.ts} +1021 -247
- package/dist/_dts/{resolveBlockData-Cze35i_N.d.ts → resolveBlockData-C-IP53u9.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-zf6-E-C3.d.ts → resolvePageContent-Cc4zqaEC.d.ts} +2 -2
- package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
- package/dist/_dts/sdk/src/client/types.d.ts +2 -2
- package/dist/_dts/sdk/src/client.d.ts +7 -7
- package/dist/_dts/sdk/src/config/index.d.ts +6 -6
- package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
- package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
- package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
- package/dist/_dts/sdk/src/data/types.d.ts +2 -2
- package/dist/_dts/sdk/src/index.d.ts +8 -8
- package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
- package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
- package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
- package/dist/_dts/sdk/src/next/index.d.ts +7 -7
- package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
- package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
- package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
- package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
- package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
- package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
- package/dist/_dts/sdk/src/server.d.ts +5 -5
- package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
- package/dist/_dts/sdk/src/theme/index.d.ts +18 -1
- package/dist/_dts/{types-BCzfYDW2.d.ts → types-CpjyP5I4.d.ts} +7 -7
- package/dist/_dts/{types-JD-36x3P.d.ts → types-DrinAfeW.d.ts} +3 -3
- package/dist/_dts/{types-CPHk5Voq.d.ts → types-ZuZoGsZV.d.ts} +2 -2
- package/dist/_dts/{validation-0MyQlzWJ.d.ts → validation-CIZ_fP5l.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-vTHQyBQF.mjs → BlocksIslandsHydrator-UFmQB1BE.mjs} +17 -17
- package/dist/client/{BookingMailingListNote-Blge9FJo.mjs → BookingMailingListNote-VjRYhx1c.mjs} +6 -6
- package/dist/client/{BookingPanelArrangement-wm6eeuin.mjs → BookingPanelArrangement-DpqnRo-t.mjs} +1 -1
- package/dist/client/{BookingQuestionFields-BlaCItmH.mjs → BookingQuestionFields-CzOT8ZWo.mjs} +4 -4
- package/dist/client/{CalendarNavigationChevron-DRH9qFny.mjs → CalendarNavigationChevron-CNckKZct.mjs} +7 -7
- package/dist/client/{CheckboxChoice-B65wFjqx.mjs → CheckboxChoice-b-PJLEXe.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-DPGZArG9.mjs → DemoBookingPortalAccess-CmZLVXOy.mjs} +6 -6
- package/dist/client/{EventCalendar.client-FGg6yCLH.mjs → EventCalendar.client-BU-SxLCn.mjs} +9 -9
- package/dist/client/{EventCombined.client-218_Gqgp.mjs → EventCombined.client-f28VltfY.mjs} +8 -8
- package/dist/client/{EventEmbeddedCheckoutStep-DKKRCuta.mjs → EventEmbeddedCheckoutStep-B18VbNS_.mjs} +1 -1
- package/dist/client/{EventItem-DKdZSW_R.mjs → EventItem-sKBofjiW.mjs} +40 -14
- package/dist/client/{EventListWeekNavigation-DZJ5qBhg.mjs → EventListWeekNavigation-IAcax47T.mjs} +1 -1
- package/dist/client/{EventListing.client-CCdsrqHc.mjs → EventListing.client-BEtnRvZr.mjs} +3 -3
- package/dist/client/{EventListing.view-BVoHnVZA.mjs → EventListing.view-BZ4l_rmT.mjs} +189 -73
- package/dist/client/{EventRegistrationPayment-BVxHCnxs.mjs → EventRegistrationPayment-BWb295cD.mjs} +9 -9
- package/dist/client/{LocationMapActions-QahdLtdE.mjs → LocationMapActions-Hsj2HC_1.mjs} +2 -2
- package/dist/client/{MapDrawingSvg-Dy6UMuIw.mjs → MapDrawingSvg-C7E7Lyfa.mjs} +1 -1
- package/dist/client/{Page-CT4HaEMr.mjs → Page-Ds1s3DuC.mjs} +1426 -486
- package/dist/client/{ProtectedSubmitButton-AOUzjDK9.mjs → ProtectedSubmitButton-C-ql101B.mjs} +1 -1
- package/dist/client/{StepIndicator-DRJy4eU3.mjs → StepIndicator-CSCyAaKY.mjs} +6 -6
- package/dist/client/{TabBarFragment-CsAufYwT.mjs → TabBarFragment-BqfRLojo.mjs} +1 -1
- package/dist/client/{ThemedButton-BMDHwnM6.mjs → ThemedButton-DuaYtnvG.mjs} +1 -1
- package/dist/client/{accessibleSurfaces-BnyVRqdU.mjs → accessibleSurfaces-OsAseM7H.mjs} +36 -18
- package/dist/client/{accordion-BOApxi9U.mjs → accordion-DgwFZJSx.mjs} +1 -1
- package/dist/client/{booking-form.client-DDf8Lmo5.mjs → booking-form.client-CKY9oksp.mjs} +33 -29
- package/dist/client/{bookingForm-DWrgG-Xx.mjs → bookingForm-CsHhcdSF.mjs} +4 -4
- package/dist/client/bookings.mjs +5 -5
- package/dist/client/{boxStyleClassNames-7MVCNWgc.mjs → boxStyleClassNames-B1Z_TGAe.mjs} +1 -1
- package/dist/client/{carousel-DeI76SEP.mjs → carousel-0sw2Kc3a.mjs} +2 -2
- package/dist/client/{carousel.client-YF4mUK5t.mjs → carousel.client-h65clfUO.mjs} +1 -1
- package/dist/client/{cart-D_uxULCO.mjs → cart-CPfvMDGJ.mjs} +3 -3
- package/dist/client/{cart.client-BxSMse88.mjs → cart.client-BJBPUTmg.mjs} +1 -1
- package/dist/client/{checkout-DIbh4g5e.mjs → checkout-DU4JFjGT.mjs} +3 -3
- package/dist/client/{checkout.client-x4Lkw8-E.mjs → checkout.client-BbNCO4xa.mjs} +1 -1
- package/dist/client/{checkoutUrls-DqN3L-kl.mjs → checkoutUrls-BQ3OlWlM.mjs} +1 -1
- package/dist/client/client.mjs +135 -4
- package/dist/client/{context-Dzjv2CpA.mjs → context-xNC1Cyjw.mjs} +14 -1
- package/dist/client/{cta-CP9l112u.mjs → cta-CNVQHLKs.mjs} +53 -11
- package/dist/client/{dateFormatting-BfurxGwg.mjs → dateFormatting-B6ea-egy.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-D0dcPsRE.mjs → demoPortalMagicLink-BhjGxhX3.mjs} +1 -1
- package/dist/client/{display-ChgDe9Da.mjs → display-B5DfNb6A.mjs} +1869 -333
- package/dist/client/{enhanceHeaderSection-BEjg_h_6.mjs → enhanceHeaderSection-BFcHLuqk.mjs} +139 -16
- package/dist/client/{event-details.client-COmbQ3mc.mjs → event-details.client-WHT5GLn2.mjs} +1 -1
- package/dist/client/{event-registration.client-BvQG3qEY.mjs → event-registration.client-CmnRKELC.mjs} +11 -11
- package/dist/client/{eventCalendar-DiitbUpV.mjs → eventCalendar-2NbdCyov.mjs} +4 -4
- package/dist/client/{eventCombined-Da9Z8KDq.mjs → eventCombined-D1lH1n2T.mjs} +4 -4
- package/dist/client/{eventDetails-Cf-kg7d6.mjs → eventDetails-BHvnF2Tw.mjs} +2 -2
- package/dist/client/{eventListing-xwXgVp7a.mjs → eventListing-EhSDk4UL.mjs} +4 -4
- package/dist/client/{eventRegistration-hlFYlgTA.mjs → eventRegistration-z_0jN_KS.mjs} +4 -4
- package/dist/client/{form-ERv_X_oZ.mjs → form-BfChzSkS.mjs} +3 -3
- package/dist/client/{form.client-Cz24FYNj.mjs → form.client-D1zehtPk.mjs} +4 -4
- package/dist/client/{form.parts-DeaH4kIe.mjs → form.parts-rMDlUQIv.mjs} +3 -3
- package/dist/client/{formatDate-Cjouxh4Y.mjs → formatDate-ymSVT9Y5.mjs} +1 -1
- package/dist/client/gifting/client.mjs +3 -3
- package/dist/client/{headerSection-CJvt0ZP4.mjs → headerSection-BX9bQ84k.mjs} +2 -2
- package/dist/client/{newsletter-form.client-WuGDEzdD.mjs → newsletter-form.client-DMbuJCtJ.mjs} +5 -5
- package/dist/client/{newsletter-form.parts-DhnW6tdB.mjs → newsletter-form.parts-BxrVsoI0.mjs} +2 -2
- package/dist/client/{newsletterForm-DxG7NV8U.mjs → newsletterForm-B_I3FJFS.mjs} +3 -3
- package/dist/client/{noop-poI1m2yW.mjs → noop-CamIX2yK.mjs} +17 -1
- package/dist/client/portal/client.mjs +231 -117
- package/dist/client/{product-detail.client-DsSfbmdV.mjs → product-detail.client-qxuiYCof.mjs} +1 -1
- package/dist/client/{product-list.client-Byzow88i.mjs → product-list.client-CDL-jihv.mjs} +1 -1
- package/dist/client/{productDetail-iXkmQpxG.mjs → productDetail-B97m0uZy.mjs} +3 -3
- package/dist/client/{productList-HoFGQXFl.mjs → productList-DE4vSSG_.mjs} +3 -3
- package/dist/client/{propsDecoder-CH2-LJME.mjs → propsDecoder-BTde6Syh.mjs} +3 -3
- package/dist/client/{registry.server-ed20Q7bV.mjs → registry.server-Cn8XjRte.mjs} +1458 -1178
- package/dist/client/rendering/client.mjs +27 -27
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +22 -16
- package/dist/client/{richText-coerce-CtoGLZ_e.mjs → richText-coerce-Bcl3vTb4.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-CBUO-xuz.mjs → routeIslandApiConfig-BjRoLoMD.mjs} +1 -1
- package/dist/client/{runtimeResponse-3brbt2Jq.mjs → runtimeResponse-B-lrAGhX.mjs} +1 -1
- package/dist/client/runtimeResponse-CPcA8xSm.mjs +3 -0
- package/dist/client/{shop-DXyeSNgi.mjs → shop-BC4H0oYT.mjs} +3 -3
- package/dist/client/{shop-commerce--klkHNzu.mjs → shop-commerce-BsY7a71m.mjs} +12 -12
- package/dist/client/{shop-commerce-store-BdpIWdc4.mjs → shop-commerce-store-BZ5j90HD.mjs} +1 -1
- package/dist/client/{shop.client-Sv7QVDmj.mjs → shop.client-WgGVGelc.mjs} +12 -12
- package/dist/client/{shop.interactive-C0IjiWOs.mjs → shop.interactive-Bb67gPLL.mjs} +187 -81
- package/dist/client/{shopShared-Jt4TzcAG.mjs → shopShared-BE6TEk2A.mjs} +2 -2
- package/dist/client/spam-protection.mjs +1 -1
- package/dist/client/{timetableModel-BxbnEJCi.mjs → timetableModel-Bbz_ECL5.mjs} +10 -10
- package/dist/client/{types-B0hJldSt.mjs → types-DjWUR_O6.mjs} +8 -2
- package/dist/client/{useAvailableSlots-ByHedoBi.mjs → useAvailableSlots-CdP14E_b.mjs} +2 -2
- package/dist/client/{useDiscountApply-dToQs9oY.mjs → useDiscountApply-DvOSso2l.mjs} +1 -1
- package/dist/client/{useDiscountCodeUi-C_aa_H69.mjs → useDiscountCodeUi-B4fRd2jy.mjs} +1 -1
- package/dist/client/{useEventPagination--MFZBoJt.mjs → useEventPagination-M3jC8lgP.mjs} +6 -6
- package/dist/client/{view-DhEwiTJG.mjs → view-B0TFnP4y.mjs} +198 -60
- package/dist/client/{view-C_brMDU2.mjs → view-DNNNbnNj.mjs} +3 -3
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-CKe4cjZ4.mjs → EventEmbeddedCheckoutStep-aRJjq4x8.mjs} +1 -1
- package/dist/preview-next/client/{LocationPickerEnvironment-OwAxA2C0.mjs → LocationPickerEnvironment-D4F_5rnr.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-CaUOTCSh.mjs → MapLibreEditMap-BKMNxSEJ.mjs} +2 -2
- package/dist/preview-next/client/{PageSectionToolbar-Dfi8Y3AI.mjs → PageSectionToolbar-D59tHj_L.mjs} +25 -20
- package/dist/preview-next/client/{PreviewEditorSidebar-DJlX4sXP.mjs → PreviewEditorSidebar-CjOIZlUk.mjs} +100 -70
- package/dist/preview-next/client/{PreviewEditorUI-FVAibBlC.mjs → PreviewEditorUI--kS9Cwsc.mjs} +5 -5
- package/dist/preview-next/client/PreviewLayoutContext-Dy0LwcHc.mjs +26 -0
- package/dist/preview-next/client/PreviewQueryProvider-BgIucg_5.mjs +21 -0
- package/dist/preview-next/client/{PreviewShell-9eAon7Z8.mjs → PreviewShell-Bi8-rclb.mjs} +311 -62
- package/dist/preview-next/client/{SdkPreviewModeRuntime-Byf-KW1x.mjs → SdkPreviewModeRuntime-CWTUw-3L.mjs} +301 -125
- package/dist/preview-next/client/{SiteChromeCustomizeButton-eU-zMftO.mjs → SiteChromeCustomizeButton-CrgS3I8d.mjs} +584 -286
- package/dist/preview-next/client/{ThemedButton-CKYjeU_M.mjs → ThemedButton-CVYz7h68.mjs} +8 -2
- package/dist/preview-next/client/{lucide-react-X0DjcFij.mjs → lucide-react-BCNn8dEQ.mjs} +1 -1
- package/dist/preview-next/client/{previewAssistantSlot-3FZrzbK8.mjs → previewAssistantSlot-Caofnr1Z.mjs} +7190 -4065
- package/dist/preview-next/client/{previewChromeRoot-C4gyNQXE.mjs → previewChromeRoot-CbAI_jSH.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +5 -4
- package/dist/preview-next/client/sdk-runtime-DY65_hLk.mjs +6 -0
- package/dist/preview-next/client/{useAutosaveStatus-OIMkhbkP.mjs → useAutosaveStatus-CakNU3lp.mjs} +2 -2
- package/dist/preview-next/client/{useOpenBlockForSetup-BNG9P9sM.mjs → useOpenBlockForSetup-CCEMkosU.mjs} +20 -8
- package/dist/preview-next/container-responsive.css +215 -4
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-BLY4ycq6.mjs → route-contract-DsKDQoVW.mjs} +131 -0
- package/dist/server/{Block.shared-BC3jPIP4.mjs → Block.shared-D7Qy9F4a.mjs} +4 -4
- package/dist/server/{ThemeScopeCore-B7Ey6AWT.mjs → ThemeScopeCore-D1NTXZdX.mjs} +14 -9
- package/dist/server/{accessibleSurfaces-BxsHs-jf.mjs → accessibleSurfaces-Dbd2__Le.mjs} +12 -11
- package/dist/server/{bindings-xQ9v3zrn.mjs → bindings-Bp6OnR3n.mjs} +109 -20
- package/dist/server/{block-kinds-DkzOr19P.mjs → block-kinds-BCY9z3oB.mjs} +1 -0
- package/dist/server/{client-DCwLR0kQ.mjs → client-dROAfMRa.mjs} +133 -2
- package/dist/server/config-template-validation.mjs +3 -0
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-C4I3ltU_.mjs → loadContent-zOIrtqz-.mjs} +19 -14
- package/dist/server/{loadPage-COvxWN0r.mjs → loadPage-vwFiq1Rk.mjs} +2 -2
- package/dist/server/next.mjs +6 -6
- package/dist/server/{opaqueSurface-QiUjZmEV.mjs → opaqueSurface-COEKXVwk.mjs} +2 -2
- package/dist/server/{overrideResolution-BqQg6Iws.mjs → overrideResolution-DjboggbB.mjs} +1 -1
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{pageRenderPlan-CVCGTj5S.mjs → pageRenderPlan-BR4t1rOw.mjs} +954 -337
- package/dist/server/{pageRuntimeSupport-C7Be9suN.mjs → pageRuntimeSupport-BKo6XVK-.mjs} +3 -2
- package/dist/server/{pageShared-H_bSBPLd.mjs → pageShared-BJjptSGp.mjs} +1039 -853
- package/dist/server/{parseThemeForPersistence-Bk0o95m6.mjs → parseThemeForPersistence-B18KDEue.mjs} +2 -2
- package/dist/server/{prebuild-HQNOeCs9.mjs → prebuild-CntSkZQI.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-CbRsnhta.mjs → prefetchBlockData-BM9Ds0OQ.mjs} +2 -2
- package/dist/server/{registry-CaeRTf4E.mjs → registry-wYH0LH5f.mjs} +7257 -4959
- package/dist/server/rendering/components/pageShared.mjs +1 -1
- package/dist/server/rendering/helpers/loadPage.mjs +1 -1
- package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
- package/dist/server/rendering/server.mjs +3 -3
- package/dist/server/rendering.mjs +7 -7
- package/dist/server/{resolveBlockData-CUMjWbXQ.mjs → resolveBlockData-Bu_p4HxZ.mjs} +2 -2
- package/dist/server/{resolveButtonColourStates-euZnRMIu.mjs → resolveButtonColourStates-CCPUY9Xh.mjs} +32 -9
- package/dist/server/{schema-CxBsE9Dv.mjs → schema-BFOqYIMQ.mjs} +2 -1
- package/dist/server/server.mjs +3 -3
- package/dist/server/theme-bridge.mjs +2 -2
- package/dist/server/theme.mjs +2 -2
- package/dist/server/{validation-CvmhnkDr.mjs → validation-DAQdPDku.mjs} +4 -4
- package/dist/server/{version-Clp2evCf.mjs → version-DAB0O3yx.mjs} +1 -1
- package/dist/styles/index.css +1260 -15
- package/package.json +1 -1
- package/dist/client/runtimeResponse-CTarP5K6.mjs +0 -3
- package/dist/preview-next/client/PreviewQueryProvider-BC0V7iAR.mjs +0 -43
- package/dist/preview-next/client/sdk-runtime-DtyRbz4E.mjs +0 -5
package/dist/client/client.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { A as
|
|
2
|
+
import { js as parseSiteId } from "./display-B5DfNb6A.mjs";
|
|
3
|
+
import { A as prefetchBlockDataWithFailures, E as resolveSiteCustomBlocks, T as siteLocationRenderContext, _ as buildRenderablePageOutline, ct as isSupportedLoaderEndpoint, j as materializeEntriesMedia, k as requireSdkTheme, rt as encodePublicProductCategorySelector, t as Page, v as buildSiteRenderSupport, x as projectRenderablePageOutline, y as collectMediaAssetSidecar } from "./Page-Ds1s3DuC.mjs";
|
|
4
4
|
import { t as BEFORE_BOOKING_QUESTIONS_ROUTE } from "./bookingQuestions-BHq83mzS.mjs";
|
|
5
|
-
import { t as restoreRuntimeResponse } from "./runtimeResponse-
|
|
5
|
+
import { t as restoreRuntimeResponse } from "./runtimeResponse-B-lrAGhX.mjs";
|
|
6
6
|
import { useEffect, useState } from "react";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
const PUBLIC_CONTENT_FRESHNESS_SECONDS = 3600;
|
|
@@ -888,6 +888,7 @@ z.object({
|
|
|
888
888
|
startsAt: z.iso.datetime({ offset: true }),
|
|
889
889
|
endsAt: z.iso.datetime({ offset: true }),
|
|
890
890
|
reason: z.string().nullable(),
|
|
891
|
+
deferredAppointmentIds: z.array(z.string().uuid()).max(200).optional(),
|
|
891
892
|
selections: z.array(z.object({
|
|
892
893
|
arrangementId: z.string().uuid(),
|
|
893
894
|
appointmentId: z.string().uuid(),
|
|
@@ -1263,6 +1264,39 @@ const APPOINTMENT_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
|
1263
1264
|
"server:internal_error"
|
|
1264
1265
|
]
|
|
1265
1266
|
},
|
|
1267
|
+
resolveTeamMemberProfileEditorOwner: {
|
|
1268
|
+
path: "/sites/{siteId}/bookings/profile-editor/{entryId}/owner",
|
|
1269
|
+
method: "GET",
|
|
1270
|
+
auth: "user",
|
|
1271
|
+
responseKind: "json",
|
|
1272
|
+
errors: [
|
|
1273
|
+
"auth:forbidden",
|
|
1274
|
+
"resource:not_found",
|
|
1275
|
+
"server:internal_error"
|
|
1276
|
+
]
|
|
1277
|
+
},
|
|
1278
|
+
getTeamMemberProfileContent: {
|
|
1279
|
+
path: "/sites/{siteId}/bookings/resources/{resourceId}/profile/{entryId}",
|
|
1280
|
+
method: "GET",
|
|
1281
|
+
auth: "user",
|
|
1282
|
+
responseKind: "json",
|
|
1283
|
+
errors: [
|
|
1284
|
+
"auth:forbidden",
|
|
1285
|
+
"resource:not_found",
|
|
1286
|
+
"server:internal_error"
|
|
1287
|
+
]
|
|
1288
|
+
},
|
|
1289
|
+
listTeamMemberProfileContentSlots: {
|
|
1290
|
+
path: "/sites/{siteId}/bookings/resources/{resourceId}/profile/{entryId}/slots",
|
|
1291
|
+
method: "GET",
|
|
1292
|
+
auth: "user",
|
|
1293
|
+
responseKind: "json",
|
|
1294
|
+
errors: [
|
|
1295
|
+
"auth:forbidden",
|
|
1296
|
+
"resource:not_found",
|
|
1297
|
+
"server:internal_error"
|
|
1298
|
+
]
|
|
1299
|
+
},
|
|
1266
1300
|
updateTeamMemberProfilePolicy: {
|
|
1267
1301
|
path: "/sites/{siteId}/bookings/resources/profile-policy",
|
|
1268
1302
|
method: "PUT",
|
|
@@ -3033,6 +3067,18 @@ const EVENT_MANAGEMENT_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
|
3033
3067
|
"server:internal_error"
|
|
3034
3068
|
]
|
|
3035
3069
|
},
|
|
3070
|
+
previewWholeSeriesRunCancellation: {
|
|
3071
|
+
path: "/sites/{siteId}/bookings/events/{eventId}/runs/{runId}/cancellation",
|
|
3072
|
+
method: "GET",
|
|
3073
|
+
tags: ["site-{siteId}", "event-series-{siteId}"],
|
|
3074
|
+
auth: "user",
|
|
3075
|
+
responseKind: "json",
|
|
3076
|
+
errors: [
|
|
3077
|
+
"auth:forbidden",
|
|
3078
|
+
"resource:not_found",
|
|
3079
|
+
"server:internal_error"
|
|
3080
|
+
]
|
|
3081
|
+
},
|
|
3036
3082
|
cancelWholeSeriesRun: {
|
|
3037
3083
|
path: "/sites/{siteId}/bookings/events/{eventId}/runs/{runId}/cancellation",
|
|
3038
3084
|
method: "POST",
|
|
@@ -3558,6 +3604,20 @@ const BILLING_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
|
3558
3604
|
responseKind: "json",
|
|
3559
3605
|
errors: []
|
|
3560
3606
|
},
|
|
3607
|
+
previewPlanChange: {
|
|
3608
|
+
path: "/billing/plan/preview",
|
|
3609
|
+
method: "POST",
|
|
3610
|
+
tags: ["billing"],
|
|
3611
|
+
auth: "user",
|
|
3612
|
+
responseKind: "json",
|
|
3613
|
+
errors: [
|
|
3614
|
+
"validation:invalid_input",
|
|
3615
|
+
"auth:unauthenticated",
|
|
3616
|
+
"resource:conflict",
|
|
3617
|
+
"server:internal_error",
|
|
3618
|
+
"external:service_error"
|
|
3619
|
+
]
|
|
3620
|
+
},
|
|
3561
3621
|
changePlan: {
|
|
3562
3622
|
path: "/billing/plan/change",
|
|
3563
3623
|
method: "POST",
|
|
@@ -7999,6 +8059,70 @@ const API_ENDPOINTS$1 = {
|
|
|
7999
8059
|
"server:internal_error"
|
|
8000
8060
|
]
|
|
8001
8061
|
},
|
|
8062
|
+
endCustomerMembershipNow: {
|
|
8063
|
+
path: "/sites/{siteId}/bookings/customer-memberships/{customerMembershipId}/end",
|
|
8064
|
+
method: "POST",
|
|
8065
|
+
tags: [
|
|
8066
|
+
"site-{siteId}",
|
|
8067
|
+
"bookings",
|
|
8068
|
+
"customer-membership-{customerMembershipId}"
|
|
8069
|
+
],
|
|
8070
|
+
auth: "user",
|
|
8071
|
+
responseKind: "json",
|
|
8072
|
+
errors: [
|
|
8073
|
+
"validation:invalid_input",
|
|
8074
|
+
"resource:not_found",
|
|
8075
|
+
"server:internal_error"
|
|
8076
|
+
]
|
|
8077
|
+
},
|
|
8078
|
+
resumeCustomerMembership: {
|
|
8079
|
+
path: "/sites/{siteId}/bookings/customer-memberships/{customerMembershipId}/resume",
|
|
8080
|
+
method: "POST",
|
|
8081
|
+
tags: [
|
|
8082
|
+
"site-{siteId}",
|
|
8083
|
+
"bookings",
|
|
8084
|
+
"customer-membership-{customerMembershipId}"
|
|
8085
|
+
],
|
|
8086
|
+
auth: "user",
|
|
8087
|
+
responseKind: "json",
|
|
8088
|
+
errors: [
|
|
8089
|
+
"validation:invalid_input",
|
|
8090
|
+
"resource:not_found",
|
|
8091
|
+
"server:internal_error"
|
|
8092
|
+
]
|
|
8093
|
+
},
|
|
8094
|
+
finishCustomerMembershipChange: {
|
|
8095
|
+
path: "/sites/{siteId}/bookings/customer-memberships/{customerMembershipId}/finish",
|
|
8096
|
+
method: "POST",
|
|
8097
|
+
tags: [
|
|
8098
|
+
"site-{siteId}",
|
|
8099
|
+
"bookings",
|
|
8100
|
+
"customer-membership-{customerMembershipId}"
|
|
8101
|
+
],
|
|
8102
|
+
auth: "user",
|
|
8103
|
+
responseKind: "json",
|
|
8104
|
+
errors: [
|
|
8105
|
+
"validation:invalid_input",
|
|
8106
|
+
"resource:not_found",
|
|
8107
|
+
"server:internal_error"
|
|
8108
|
+
]
|
|
8109
|
+
},
|
|
8110
|
+
correctCustomerMembershipDates: {
|
|
8111
|
+
path: "/sites/{siteId}/bookings/customer-memberships/{customerMembershipId}",
|
|
8112
|
+
method: "PATCH",
|
|
8113
|
+
tags: [
|
|
8114
|
+
"site-{siteId}",
|
|
8115
|
+
"bookings",
|
|
8116
|
+
"customer-membership-{customerMembershipId}"
|
|
8117
|
+
],
|
|
8118
|
+
auth: "user",
|
|
8119
|
+
responseKind: "json",
|
|
8120
|
+
errors: [
|
|
8121
|
+
"validation:invalid_input",
|
|
8122
|
+
"resource:not_found",
|
|
8123
|
+
"server:internal_error"
|
|
8124
|
+
]
|
|
8125
|
+
},
|
|
8002
8126
|
refundCustomerMembershipPayment: {
|
|
8003
8127
|
path: "/sites/{siteId}/bookings/customer-memberships/{customerMembershipId}/refund",
|
|
8004
8128
|
method: "POST",
|
|
@@ -9418,6 +9542,13 @@ const API_ENDPOINTS$1 = {
|
|
|
9418
9542
|
auth: "public",
|
|
9419
9543
|
responseKind: "json"
|
|
9420
9544
|
},
|
|
9545
|
+
portalResumeMembership: {
|
|
9546
|
+
path: "/portal/memberships/{customerMembershipId}/resume",
|
|
9547
|
+
method: "POST",
|
|
9548
|
+
auth: "public",
|
|
9549
|
+
responseKind: "json",
|
|
9550
|
+
errors: []
|
|
9551
|
+
},
|
|
9421
9552
|
portalSendMagicLink: {
|
|
9422
9553
|
path: "/portal/auth/send-magic-link",
|
|
9423
9554
|
method: "POST",
|
|
@@ -10796,7 +10927,7 @@ var SimpleCache = class {
|
|
|
10796
10927
|
//#endregion
|
|
10797
10928
|
//#region src/request-options.ts
|
|
10798
10929
|
/** Every API client the SDK creates sends its version as `x-sdk-version`. */
|
|
10799
|
-
const sdkRequestOptions = { sdkVersion: "0.
|
|
10930
|
+
const sdkRequestOptions = { sdkVersion: "0.172.0" };
|
|
10800
10931
|
//#endregion
|
|
10801
10932
|
//#region src/client/error.ts
|
|
10802
10933
|
let _Symbol$for;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { K as beforeBookingQuestionsPresentationSchema, ct as normalizeCurrencyCode, i as EVENT_BOOKING_ARRIVAL_QUERY, ln as toNonNegativeCents, n as blockSiteTermsSchema, p as calendarWindowPageSchema, s as publicPassProductCollectionSchema, sn as parsePositiveCents } from "./noop-CamIX2yK.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";
|
|
@@ -817,6 +817,12 @@ const PORTAL = {
|
|
|
817
817
|
authScope: "portal",
|
|
818
818
|
skipPreviewStage: true
|
|
819
819
|
},
|
|
820
|
+
resumeMembership: {
|
|
821
|
+
path: "/portal/memberships/{customerMembershipId}/resume",
|
|
822
|
+
method: "POST",
|
|
823
|
+
authScope: "portal",
|
|
824
|
+
skipPreviewStage: true
|
|
825
|
+
},
|
|
820
826
|
sendMagicLink: {
|
|
821
827
|
path: "/portal/auth/send-magic-link",
|
|
822
828
|
method: "POST",
|
|
@@ -1572,6 +1578,13 @@ function createBlockApi(config) {
|
|
|
1572
1578
|
body: {}
|
|
1573
1579
|
})).result;
|
|
1574
1580
|
},
|
|
1581
|
+
async resumeMembership(customerMembershipId) {
|
|
1582
|
+
const path = buildPath(PORTAL.resumeMembership.path, { customerMembershipId });
|
|
1583
|
+
return (await request(PORTAL.resumeMembership, {
|
|
1584
|
+
path,
|
|
1585
|
+
body: {}
|
|
1586
|
+
})).result;
|
|
1587
|
+
},
|
|
1575
1588
|
async listEventRescheduleDates(registrationId, query) {
|
|
1576
1589
|
const path = buildPath(PORTAL.listEventRescheduleDates.path, { registrationId });
|
|
1577
1590
|
return request(PORTAL.listEventRescheduleDates, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { Qn as resolveRuntimeEventDestination, ar as getEventAvailabilityStatus, er as canJoinEventWaitlistOnAnyMode, sr as isEventFull, tr as formatEventRemainingPlaces, us as resolveWholeSeriesBookingPhase } from "./display-B5DfNb6A.mjs";
|
|
3
3
|
import { N as assertNever } from "./creditProducts-BTRX4edc.mjs";
|
|
4
4
|
//#region ../blocks/src/system/runtime/nodes/events/domain/cta.ts
|
|
5
5
|
/**
|
|
@@ -82,16 +82,34 @@ function destinationCta(event, buttonText) {
|
|
|
82
82
|
* so the card offers that destination and leaves capacity with the individual date rows.
|
|
83
83
|
* Whole-series bookings still have one shared capacity, as do ordinary occurrence cards.
|
|
84
84
|
*/
|
|
85
|
-
function resolveEventCardBooking(event, scope, buttonText) {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
85
|
+
function resolveEventCardBooking(event, scope, buttonText, options) {
|
|
86
|
+
const closedCta = event.bookingAvailability.kind === "closed" ? resolveEventCta(event, buttonText) : renderClockClosedCta(event, options.now);
|
|
87
|
+
if (scope === "series" && event.bookingScope === "single_occurrence") {
|
|
88
|
+
const closed = seriesBookingClosed(event);
|
|
89
|
+
return {
|
|
90
|
+
cta: closed ? resolveEventCta(event, buttonText) : withoutPage(destinationCta(event, buttonText)),
|
|
91
|
+
availability: null,
|
|
92
|
+
closed
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
return closedCta ? {
|
|
96
|
+
cta: closedCta,
|
|
97
|
+
availability: null,
|
|
98
|
+
closed: true
|
|
99
|
+
} : {
|
|
100
|
+
cta: withoutPage(resolveEventCta(event, buttonText)),
|
|
101
|
+
availability: occurrenceCardAvailability(event, options.count),
|
|
102
|
+
closed: false
|
|
93
103
|
};
|
|
94
104
|
}
|
|
105
|
+
/** A native card with no page yet can't invite booking: there is nowhere to send the visitor. */
|
|
106
|
+
function withoutPage(cta) {
|
|
107
|
+
return !cta.external && !cta.hidden && cta.href === "" ? {
|
|
108
|
+
...cta,
|
|
109
|
+
label: "Details coming soon",
|
|
110
|
+
hidden: true
|
|
111
|
+
} : cta;
|
|
112
|
+
}
|
|
95
113
|
/** Only a series-wide closure closes its card; a cancelled or started date says nothing about later dates. */
|
|
96
114
|
function seriesBookingClosed(event) {
|
|
97
115
|
if (event.bookingAvailability.kind !== "closed") return false;
|
|
@@ -109,13 +127,37 @@ function seriesBookingClosed(event) {
|
|
|
109
127
|
default: return assertNever(event.bookingAvailability.reason);
|
|
110
128
|
}
|
|
111
129
|
}
|
|
112
|
-
function occurrenceCardAvailability(event) {
|
|
113
|
-
const label = formatEventRemainingPlaces(event, {
|
|
130
|
+
function occurrenceCardAvailability(event, count) {
|
|
131
|
+
const label = formatEventRemainingPlaces(event, {
|
|
132
|
+
full: "Sold out",
|
|
133
|
+
count
|
|
134
|
+
});
|
|
114
135
|
const availability = getEventAvailabilityStatus(event);
|
|
115
136
|
return label ? {
|
|
116
137
|
label,
|
|
117
138
|
status: availability.isFull ? "full" : availability.status === "filling" ? "low" : "available"
|
|
118
139
|
} : null;
|
|
119
140
|
}
|
|
141
|
+
/** Preserve projected closure reasons; only an open native run needs its clock rechecked. */
|
|
142
|
+
function renderClockClosedCta(event, now) {
|
|
143
|
+
if (!now || event.bookingScope !== "whole_series" || event.destination.kind !== "native") return null;
|
|
144
|
+
const phase = resolveWholeSeriesBookingPhase(event.run, now);
|
|
145
|
+
if (phase.kind === "open") return null;
|
|
146
|
+
return {
|
|
147
|
+
label: (() => {
|
|
148
|
+
switch (phase.reason) {
|
|
149
|
+
case "cancelled": return "Cancelled";
|
|
150
|
+
case "completed": return "Completed";
|
|
151
|
+
case "in-progress":
|
|
152
|
+
case "enrolment-closed":
|
|
153
|
+
case "no-sessions": return "Registration closed";
|
|
154
|
+
default: return assertNever(phase.reason);
|
|
155
|
+
}
|
|
156
|
+
})(),
|
|
157
|
+
href: resolveEventHref(event),
|
|
158
|
+
external: false,
|
|
159
|
+
hidden: phase.reason !== "enrolment-closed"
|
|
160
|
+
};
|
|
161
|
+
}
|
|
120
162
|
//#endregion
|
|
121
163
|
export { resolveEventCta as n, resolveEventLinkProps as r, resolveEventCardBooking as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { Bt as formatTime, It as formatDate$1, Rt as formatDateTime$1, Wt as resolveBookingDisplayContext, an as toUtcIsoDateTimeString, in as parseUtcIsoDateTimeString, nn as resolveBookingTimeZoneId, zt as formatDateTimeRange } from "./noop-CamIX2yK.mjs";
|
|
3
3
|
//#region ../blocks/src/portal/dateFormatting.ts
|
|
4
4
|
/** Optional API timestamps enter the display model here; invalid values never render a Date. */
|
|
5
5
|
function readInstant(value) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { i as BlockApiError } from "./context-
|
|
2
|
+
import { i as BlockApiError } from "./context-xNC1Cyjw.mjs";
|
|
3
3
|
//#region ../blocks/src/system/runtime/shared/utils/demoBookingPassStorage.ts
|
|
4
4
|
const STORAGE_KEY = "riverbank:demo-booking-passes:v1";
|
|
5
5
|
const CHECKOUT_RETURN_EMAIL_KEY = "riverbank:demo-booking-checkout-email:v1";
|