@riverbankcms/sdk 0.161.0 → 0.163.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/CHANGELOG.md +9 -0
- package/dist/_dts/{BlocksIslandsHydrator-Bx4kLiTA.d.ts → BlocksIslandsHydrator-DYPGA_qh.d.ts} +1 -1
- package/dist/_dts/{Page-Dm7_P13o.d.ts → Page-zwnvFBPu.d.ts} +8 -8
- package/dist/_dts/{SdkPreviewMode-D7HdWWwF.d.ts → SdkPreviewMode-DukuJzGr.d.ts} +58 -91
- package/dist/_dts/{client-Ep0jI9eE.d.ts → client-Chh3bnXC.d.ts} +11 -3
- package/dist/_dts/{content-types-BgAzCrBc.d.ts → content-types-Bbzqw9J2.d.ts} +2 -2
- package/dist/_dts/{contracts-DUiOnj9e.d.ts → contracts-GJ1kGBsi.d.ts} +13 -4
- package/dist/_dts/{footerPageOutline-B-uXamTG.d.ts → footerPageOutline-BNMKhyvo.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-BDkZYEcS.d.ts → generatePageMetadata-Ce0m1P3B.d.ts} +2 -2
- package/dist/_dts/{index-DvKQA6AZ.d.ts → index-C3mJvn27.d.ts} +4 -4
- package/dist/_dts/{schema-BHu0PYWl.d.ts → index-CaL0nKkl.d.ts} +4166 -3355
- package/dist/_dts/{index-KPrWM0KF.d.ts → index-CdSNXLOx.d.ts} +1 -1
- package/dist/_dts/{types-BR1Yboa9.d.ts → index-CyQhZuhM.d.ts} +3347 -1692
- package/dist/_dts/{index-BVkP8f70.d.ts → index-D2y4Iy-d.d.ts} +13 -2
- package/dist/_dts/{index-CSsfq6KG.d.ts → index-DRxgeK8L.d.ts} +11 -6
- package/dist/_dts/{index-CF6Cjs7b.d.ts → index-FstkyqQB.d.ts} +2 -2
- package/dist/_dts/{index-D_8uz4OP.d.ts → index-G2p-HOrK.d.ts} +3 -3
- package/dist/_dts/{index-ylivB7Jj.d.ts → index-rhMSu0oY.d.ts} +2 -2
- package/dist/_dts/{loadContent-DTjKOO-T.d.ts → loadContent-DiLZoInK.d.ts} +10 -7
- package/dist/_dts/{resolvePageContent-C1vA5c5w.d.ts → resolvePageContent-CWUnipv8.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 +6 -6
- 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/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/index.d.ts +13 -7
- 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/routing/index.d.ts +5 -5
- package/dist/_dts/sdk/src/server.d.ts +5 -5
- package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
- package/dist/_dts/{types-D02ngcUH.d.ts → types-BmtrA45p.d.ts} +2 -2
- package/dist/_dts/{types-ZGUiHpDE.d.ts → types-CalL7aKP.d.ts} +7 -7
- package/dist/_dts/{types-CJXTCF_F.d.ts → types-DFOqkClJ.d.ts} +3 -3
- package/dist/_dts/{validation-BaV565gb.d.ts → validation-G8MRoIhq.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-DTExCJsb.mjs → BlocksIslandsHydrator-DLCXwe30.mjs} +20 -19
- package/dist/client/{BookingMailingListNote-BDpxmn1p.mjs → BookingMailingListNote-BV5-50F0.mjs} +1 -1
- package/dist/client/{CalendarNavigationChevron-PeCiL82X.mjs → CalendarNavigationChevron-CVLAHdZG.mjs} +6 -6
- package/dist/client/{CheckboxChoice-DWexRLf6.mjs → CheckboxChoice-Dtgp3OU8.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-3zmIqakW.mjs → DemoBookingPortalAccess-B3caCnTT.mjs} +26 -10
- package/dist/client/{DemoPortalSignInLink-GHi-8BW5.mjs → DemoPortalSignInLink-Ct8JMKW0.mjs} +1 -1
- package/dist/client/{EventCalendar.client-BxQLY5cX.mjs → EventCalendar.client-ffa6920T.mjs} +16 -17
- package/dist/client/{EventCombined.client-B5bmQ03b.mjs → EventCombined.client-zm0W2G79.mjs} +8 -8
- package/dist/client/{EventEmbeddedCheckoutStep-CgMZ9TeU.mjs → EventEmbeddedCheckoutStep-CPPE2rWS.mjs} +1 -1
- package/dist/client/{EventItem-BEx-qiDE.mjs → EventItem-CND3mfra.mjs} +91 -15
- package/dist/client/{EventListWeekNavigation-CyH5tA6Y.mjs → EventListWeekNavigation-D8QdxL_f.mjs} +1 -1
- package/dist/client/{EventListing.client-D3uySdGP.mjs → EventListing.client-CaoRZUI9.mjs} +3 -3
- package/dist/client/{EventListing.view-9RFrBejr.mjs → EventListing.view-BfnOmxYD.mjs} +14 -70
- package/dist/client/{EventRegistrationPayment-CG2tQx8K.mjs → EventRegistrationPayment-Dfu3RSL2.mjs} +10 -10
- package/dist/client/LocationMapActions-wlyxASdT.mjs +62 -0
- package/dist/client/{LocationMapActions-Wsr83Q7q.mjs → MapDrawingSvg-B9oKSitp.mjs} +2 -70
- package/dist/client/{Page-Bf2nPACI.mjs → Page-BEF9HrAy.mjs} +2333 -492
- package/dist/client/{StepIndicator-CZweb1vs.mjs → StepIndicator-Bjx4faaw.mjs} +2 -2
- package/dist/client/{TabBarFragment-Bkgz67gt.mjs → TabBarFragment-Cu7k_VSl.mjs} +1 -1
- package/dist/client/{ThemedButton-CnyL3s1A.mjs → ThemedButton-DclwabI7.mjs} +1 -1
- package/dist/client/{accordion-TcimLLRQ.mjs → accordion-lzM2nSZB.mjs} +1 -1
- package/dist/client/{booking-form.client-q-RpJ4aF.mjs → booking-form.client-Bll4QwBi.mjs} +137 -60
- package/dist/client/{bookingForm-DjGfk3Wj.mjs → bookingForm-Cq5fQ-vo.mjs} +4 -4
- package/dist/client/bookings.mjs +5 -5
- package/dist/client/{carousel-CGAk6j0m.mjs → carousel-CxerQwIx.mjs} +2 -2
- package/dist/client/{carousel.client-ArlGmYWV.mjs → carousel.client-CVUXq8Mb.mjs} +1 -1
- package/dist/client/{cart-D_h3rAZ2.mjs → cart-X-m0isoI.mjs} +3 -3
- package/dist/client/{cart.client-DHOxZbJ7.mjs → cart.client-CJbzWIl0.mjs} +1 -1
- package/dist/client/{checkout-tC-3CzuM.mjs → checkout-Gd0O_fGH.mjs} +3 -3
- package/dist/client/{checkout.client-DsBb2Pkm.mjs → checkout.client-Baee6Jsm.mjs} +1 -1
- package/dist/client/client.mjs +34 -69
- package/dist/client/{context-9ZfMb6GA.mjs → context-Bg0SFWcM.mjs} +28 -1
- package/dist/client/{cta-D-ZqL7-e.mjs → cta-HffyM4MA.mjs} +1 -1
- package/dist/client/{dateFormatting-BCwLqYpW.mjs → dateFormatting-CV45BH5M.mjs} +39 -2
- package/dist/client/{demoPortalMagicLink-BxkSS9fx.mjs → demoPortalMagicLink-CDWheSjI.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-xg6to91E.mjs → enhanceHeaderSection-BqVDXL0D.mjs} +3 -3
- package/dist/client/{event-details.client-C670TgRd.mjs → event-details.client-SFtS9OkF.mjs} +2 -1
- package/dist/client/{event-registration.client-C6GApWTB.mjs → event-registration.client-CguNVIFY.mjs} +13 -13
- package/dist/client/{eventCalendar-CWc0dg9i.mjs → eventCalendar-DSGG35jd.mjs} +4 -4
- package/dist/client/{eventCombined-D4DbOrvQ.mjs → eventCombined-Oe-PiChx.mjs} +4 -4
- package/dist/client/{eventDetails-C2DfmbC0.mjs → eventDetails-BhcTT6P3.mjs} +2 -2
- package/dist/client/{eventListing-C_yXmHyz.mjs → eventListing-BS0kBEgI.mjs} +4 -4
- package/dist/client/{eventRegistration-DJuaCB-O.mjs → eventRegistration-B82SHv7j.mjs} +4 -4
- package/dist/client/{form-QZhtdFHA.mjs → form-DAIUrVXb.mjs} +3 -3
- package/dist/client/{form.client-CgvPACwG.mjs → form.client-BoAkhoh_.mjs} +4 -4
- package/dist/client/{form.parts-2uI0-5N-.mjs → form.parts-1VnasOK8.mjs} +3 -3
- package/dist/client/{formatDate-Danr0Nk4.mjs → formatDate-BKil_Psb.mjs} +1 -1
- package/dist/client/gifting/client.mjs +3 -3
- package/dist/client/{headerSection-DJdlLdvZ.mjs → headerSection-CyuHk8Ei.mjs} +2 -2
- package/dist/client/mediaAssets-CGJE1Omu.mjs +43 -0
- package/dist/client/mediaContext-DIkX2S-X.mjs +136 -0
- package/dist/client/{newsletter-form.client-Cbepz2KU.mjs → newsletter-form.client-CCdyHx0B.mjs} +5 -5
- package/dist/client/{newsletter-form.parts-DN8oMCQ0.mjs → newsletter-form.parts-Dl8AjsXW.mjs} +2 -2
- package/dist/client/{newsletterForm-wjLtW-wq.mjs → newsletterForm-qFWLZJui.mjs} +3 -3
- package/dist/client/{noop-B7H6gCbj.mjs → noop-4XFGzJpT.mjs} +19 -3
- package/dist/client/portal/client.mjs +1116 -85
- package/dist/client/{product-detail.client-CYTR165c.mjs → product-detail.client-Tq4S99ce.mjs} +1 -1
- package/dist/client/{product-list.client-B4vTvag8.mjs → product-list.client-CuL5jB1w.mjs} +1 -1
- package/dist/client/{productDetail-k8LEMSWn.mjs → productDetail-BRqgcotZ.mjs} +3 -3
- package/dist/client/{productList-DEo8Bqoe.mjs → productList-EK9Um-oh.mjs} +3 -3
- package/dist/client/{propsDecoder-G0j0HXBO.mjs → propsDecoder-VD4arFq1.mjs} +4 -3
- package/dist/client/{registry.server-BTmSXE3D.mjs → registry.server-qYbsatxH.mjs} +272 -68
- package/dist/client/rendering/client.mjs +26 -26
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +22 -19
- package/dist/client/{richText-coerce-B19taoH6.mjs → richText-coerce-CW8CFk8v.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-Chu5BHra.mjs → routeIslandApiConfig-CnZ_1ol2.mjs} +1 -1
- package/dist/client/{schema-C-m8XHuW.mjs → schema-BFwQDvJL.mjs} +4561 -3948
- package/dist/client/{shop-RGWa43H7.mjs → shop-CTUaT57E.mjs} +3 -3
- package/dist/client/{shop-commerce-TJYCBO_H.mjs → shop-commerce-BWwbsm_-.mjs} +11 -11
- package/dist/client/{shop-commerce-store-CjCcUB_o.mjs → shop-commerce-store-15UII0y3.mjs} +1 -1
- package/dist/client/{shop.client-tsKfZw1W.mjs → shop.client-UWgdmJBm.mjs} +12 -12
- package/dist/client/{shop.interactive-CVqLAU53.mjs → shop.interactive-Cf_kASpd.mjs} +76 -51
- package/dist/client/{shopShared-C3lHMz_R.mjs → shopShared-Bi8d584P.mjs} +2 -2
- package/dist/{server/effectiveNavLinkStyle-CGvGr3yD.mjs → client/site-styles-dy54AUdz.mjs} +2781 -331
- package/dist/client/{timetableModel-V2ifvGGy.mjs → timetableModel-Bi8ruFgB.mjs} +10 -9
- package/dist/client/{useAvailableSlots-D1X69-pN.mjs → useAvailableSlots-DiLbDqM3.mjs} +8 -11
- package/dist/client/{useBookingNowIso-Ch30jino.mjs → useBookingNowIso-CWIiqPd0.mjs} +1 -1
- package/dist/client/{useDiscountApply-Bwzr1RjV.mjs → useDiscountApply-ChtszhF9.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-BimJbFC7.mjs → useDiscountCodeUi-B0Z7n2tZ.mjs} +1 -1
- package/dist/client/{useEventPagination-CLAS0upd.mjs → useEventPagination-DRrATQHQ.mjs} +6 -6
- package/dist/client/{view-Dj_FZHmg.mjs → view-OvsxzgxP.mjs} +64 -55
- package/dist/client/{view-BUh4LnLS.mjs → view-yUIfWX3S.mjs} +4 -4
- package/dist/client/{wizardSteps-BkZc-hKH.mjs → wizardSteps-kbONzKUv.mjs} +59 -53
- package/dist/preview-next/before-render.mjs +3 -3
- package/dist/preview-next/chrome.css +1 -1
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-CwerMfzn.mjs → EventEmbeddedCheckoutStep-DzoFjIqB.mjs} +1 -1
- package/dist/preview-next/client/{PreviewEditorSidebar-Dvq-RW9-.mjs → PreviewEditorSidebar-BhgPyyUW.mjs} +170 -1046
- package/dist/preview-next/client/{PreviewEditorUI-BdFjS39R.mjs → PreviewEditorUI-lndKKBtB.mjs} +157 -313
- package/dist/preview-next/client/{SdkPreviewModeRuntime-BEfHln1E.mjs → SdkPreviewModeRuntime-Bk7On_EM.mjs} +351 -1386
- package/dist/preview-next/client/{SdkPreviewModeRuntime-CjkGh1IG.mjs → SdkPreviewModeRuntime-DCDDXDlt.mjs} +1 -1
- package/dist/preview-next/client/{ThemedButton-b14Bv03E.mjs → ThemedButton-nUnE3iMv.mjs} +1010 -398
- package/dist/preview-next/client/{SiteChromeCustomizeContext-CDbxk_qZ.mjs → previewAuthStore-DHtSQIBE.mjs} +159416 -162308
- package/dist/preview-next/client/{previewChromeSurface-Dd1_mNIg.mjs → previewChromeSurface-CxQ6dZ8D.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-B-CXyGVb.mjs → sdk-runtime-DSZv7Vfm.mjs} +1 -1
- package/dist/preview-next/client/siteStyleAccess-Chq5KKKh.mjs +14162 -0
- package/dist/preview-next/client/{spinner-CGxS8Ns-.mjs → spinner-CjxE3uws.mjs} +1 -1
- package/dist/preview-next/edit-map.css +37 -0
- package/dist/preview-next/keepAlive.mjs +2 -2
- package/dist/preview-next/maplibre-gl.css +1 -0
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{refresh-contract-CvmNqZ1Q.mjs → refresh-contract-uQ6BXgLJ.mjs} +5 -0
- package/dist/preview-next/{route-contract-hLg-yjQN.mjs → route-contract-CxCstfkP.mjs} +403 -200
- package/dist/preview-next/upload-structure.css +18 -0
- package/dist/server/{Block.shared-CeTd2saO.mjs → Block.shared-Dz9k8vCX.mjs} +16 -16
- package/dist/server/{bindings-C5YpKuKt.mjs → bindings-S-gCHhj5.mjs} +2 -2
- package/dist/server/{client-Cv26lZQ4.mjs → client-C2Q56xqV.mjs} +34 -69
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/{client/mediaContext-jPeJ2PmJ.mjs → server/effectiveNavLinkStyle-DLzJPcDL.mjs} +1977 -1210
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-C8a0b-cC.mjs → loadContent-D7ItMsEl.mjs} +7 -4
- package/dist/server/loadPage-D2qvYV5g.mjs +2 -0
- package/dist/server/{loadPage-BW7dklu3.mjs → loadPage-DaPiPYUL.mjs} +2 -2
- package/dist/server/next.mjs +9 -9
- package/dist/server/{overrideResolution-tIuqmJB3.mjs → overrideResolution-anoB3Kbn.mjs} +1 -1
- package/dist/server/{overrides-D1fiPOKF.mjs → overrides-W1Cc6srh.mjs} +434 -241
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{prebuild--fO0E2tr.mjs → prebuild-BF9yNfCS.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-CqJnokWJ.mjs → prefetchBlockData-Cn9k3DW6.mjs} +36 -11
- package/dist/server/{publicProducts-CvvZ4JIe.mjs → publicProducts-BVcJ6TG7.mjs} +656 -166
- package/dist/server/{registry-BVfCqaCq.mjs → registry-4ZF3bUuJ.mjs} +401 -74
- package/dist/server/rendering/server.mjs +4 -4
- package/dist/server/rendering.mjs +8 -8
- package/dist/server/{resolveBlockData-DPNvhXEz.mjs → resolveBlockData-BKQ1Fc0M.mjs} +1 -1
- package/dist/server/routing.mjs +1 -1
- package/dist/server/{schema-CD4peO7m.mjs → schema-DgrigZq9.mjs} +7748 -7135
- package/dist/server/server.mjs +3 -3
- package/dist/server/{site-styles-H-EvTJiW.mjs → site-styles-CxE9F3hj.mjs} +99 -117
- package/dist/server/{siteChromeOverlayClearance-DNC2k1U0.mjs → siteChromeOverlayClearance-OhS6f830.mjs} +161 -105
- package/dist/server/{src-ILxc6pid.mjs → src-C44_fMy5.mjs} +1190 -147
- package/dist/server/theme-bridge.mjs +1 -1
- package/dist/server/theme.mjs +1 -1
- package/dist/server/{themeAdmission-BNHIXiUj.mjs → themeAdmission-CVc04B9m.mjs} +36 -29
- package/dist/server/{validation-B1ieVemg.mjs → validation-BrbY0nxR.mjs} +2 -2
- package/dist/server/{version-BQK44wFg.mjs → version-BBSk8uM6.mjs} +1 -1
- package/dist/styles/index.css +1034 -113
- package/package.json +1 -1
- package/dist/_dts/index-BQDBQvdu.d.ts +0 -13
- package/dist/client/mediaAssets-BvjcAZpS.mjs +0 -16
- package/dist/preview-next/client/siteStyleAccess-Kqk0j0dE.mjs +0 -5812
- package/dist/server/loadPage--DXBwI8V.mjs +0 -2
package/dist/client/client.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { $ as
|
|
2
|
+
import { $ as unwrapResponse, C as siteLocationRenderContext, D as requireSdkTheme, G as createBearerAPIClient, J as isSupportedLoaderEndpoint, K as createInternalAPIClient, O as prefetchBlockDataWithFailures, Q as isApiError, U as encodePublicProductCategorySelector, W as ApiRequestError, Z as ApiEnvelopeError, _ as collectMediaAssetSidecar, et as PUBLIC_READ_ENDPOINT_DEFINITIONS, g as buildSiteRenderSupport, h as buildRenderablePageOutline, it as publicReadFreshnessSeconds, nt as getPublicReadCachePolicy, q as setSdkVersion, rt as isPublicReadEndpoint, t as Page, tt as TAG_TEMPLATES, w as resolveSiteCustomBlocks, y as projectRenderablePageOutline } from "./Page-BEF9HrAy.mjs";
|
|
3
3
|
import { useEffect, useState } from "react";
|
|
4
4
|
//#region src/rendering/hooks/usePage.ts
|
|
5
5
|
/**
|
|
@@ -524,7 +524,7 @@ var SimpleCache = class {
|
|
|
524
524
|
* 1. This constant
|
|
525
525
|
* 2. The "version" field in package.json
|
|
526
526
|
*/
|
|
527
|
-
const SDK_VERSION = "0.
|
|
527
|
+
const SDK_VERSION = "0.163.0";
|
|
528
528
|
//#endregion
|
|
529
529
|
//#region src/client/error.ts
|
|
530
530
|
let _Symbol$for;
|
|
@@ -736,23 +736,14 @@ const PUBLIC_ENDPOINT_NAMES = [
|
|
|
736
736
|
"getPublicSitemapRoutes"
|
|
737
737
|
];
|
|
738
738
|
const API_ENDPOINTS = Object.freeze({
|
|
739
|
-
getSite:
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
tags: [
|
|
744
|
-
"riverbank:site",
|
|
745
|
-
"riverbank:site:id:{id}",
|
|
746
|
-
"riverbank:site:slug:{slug}",
|
|
747
|
-
"riverbank:site:domain:{domain}"
|
|
748
|
-
],
|
|
749
|
-
auth: "public",
|
|
750
|
-
responseKind: "json"
|
|
751
|
-
},
|
|
739
|
+
getSite: publicSiteReadDefinition(PUBLIC_READ_ENDPOINT_DEFINITIONS.getSite),
|
|
740
|
+
getRoutableContent: publicSiteReadDefinition(PUBLIC_READ_ENDPOINT_DEFINITIONS.getRoutableContent),
|
|
741
|
+
getPublicRoutableContent: publicSiteReadDefinition(PUBLIC_READ_ENDPOINT_DEFINITIONS.getPublicRoutableContent),
|
|
742
|
+
getPublicSitemapRoutes: publicSiteReadDefinition(PUBLIC_READ_ENDPOINT_DEFINITIONS.getPublicSitemapRoutes),
|
|
752
743
|
getContentByPath: {
|
|
753
744
|
path: "/sites/{siteId}/pages",
|
|
754
745
|
method: "GET",
|
|
755
|
-
tags: [
|
|
746
|
+
tags: [TAG_TEMPLATES.siteRoutableContent],
|
|
756
747
|
auth: "public",
|
|
757
748
|
responseKind: "json"
|
|
758
749
|
},
|
|
@@ -760,9 +751,9 @@ const API_ENDPOINTS = Object.freeze({
|
|
|
760
751
|
path: "/sites/{siteId}/route-outcome",
|
|
761
752
|
method: "GET",
|
|
762
753
|
tags: [
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
754
|
+
TAG_TEMPLATES.siteRoutableContent,
|
|
755
|
+
TAG_TEMPLATES.siteRedirects,
|
|
756
|
+
TAG_TEMPLATES.siteRouteOutcomes
|
|
766
757
|
],
|
|
767
758
|
auth: "public",
|
|
768
759
|
responseKind: "json"
|
|
@@ -771,9 +762,9 @@ const API_ENDPOINTS = Object.freeze({
|
|
|
771
762
|
path: "/sites/{siteId}/route-decision",
|
|
772
763
|
method: "GET",
|
|
773
764
|
tags: [
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
765
|
+
TAG_TEMPLATES.siteRoutableContent,
|
|
766
|
+
TAG_TEMPLATES.siteRedirects,
|
|
767
|
+
TAG_TEMPLATES.siteRouteOutcomes
|
|
777
768
|
],
|
|
778
769
|
auth: "public",
|
|
779
770
|
responseKind: "json"
|
|
@@ -798,7 +789,7 @@ const API_ENDPOINTS = Object.freeze({
|
|
|
798
789
|
path: "/public/forms/{formId}",
|
|
799
790
|
method: "GET",
|
|
800
791
|
revalidate: publicReadFreshnessSeconds("getPublicFormById"),
|
|
801
|
-
tags: [
|
|
792
|
+
tags: [TAG_TEMPLATES.formById],
|
|
802
793
|
auth: "public",
|
|
803
794
|
responseKind: "json"
|
|
804
795
|
},
|
|
@@ -806,7 +797,7 @@ const API_ENDPOINTS = Object.freeze({
|
|
|
806
797
|
path: "/public/sites/{siteId}/forms",
|
|
807
798
|
method: "GET",
|
|
808
799
|
revalidate: 60,
|
|
809
|
-
tags: [
|
|
800
|
+
tags: [TAG_TEMPLATES.siteForms],
|
|
810
801
|
auth: "public",
|
|
811
802
|
responseKind: "json"
|
|
812
803
|
},
|
|
@@ -814,7 +805,7 @@ const API_ENDPOINTS = Object.freeze({
|
|
|
814
805
|
path: "/public/bookings/services",
|
|
815
806
|
method: "GET",
|
|
816
807
|
revalidate: publicReadFreshnessSeconds("getPublicBookingServices"),
|
|
817
|
-
tags: [
|
|
808
|
+
tags: [TAG_TEMPLATES.publicBookingServices],
|
|
818
809
|
auth: "public",
|
|
819
810
|
responseKind: "json"
|
|
820
811
|
},
|
|
@@ -822,7 +813,7 @@ const API_ENDPOINTS = Object.freeze({
|
|
|
822
813
|
path: "/public/bookings/weekly-slot-availability",
|
|
823
814
|
method: "GET",
|
|
824
815
|
revalidate: publicReadFreshnessSeconds("getPublicWeeklySlotAvailability"),
|
|
825
|
-
tags: [
|
|
816
|
+
tags: [TAG_TEMPLATES.publicBookingAvailability, TAG_TEMPLATES.publicBookingServices],
|
|
826
817
|
auth: "public",
|
|
827
818
|
responseKind: "json"
|
|
828
819
|
},
|
|
@@ -836,7 +827,7 @@ const API_ENDPOINTS = Object.freeze({
|
|
|
836
827
|
path: "/public/sites/{siteId}/events",
|
|
837
828
|
method: "GET",
|
|
838
829
|
revalidate: publicReadFreshnessSeconds("listPublicEvents"),
|
|
839
|
-
tags: [
|
|
830
|
+
tags: [TAG_TEMPLATES.publicEvents],
|
|
840
831
|
auth: "public",
|
|
841
832
|
responseKind: "json"
|
|
842
833
|
},
|
|
@@ -850,7 +841,7 @@ const API_ENDPOINTS = Object.freeze({
|
|
|
850
841
|
path: "/public/sites/{siteId}/team-members",
|
|
851
842
|
method: "GET",
|
|
852
843
|
revalidate: publicReadFreshnessSeconds("listPublicTeamMembers"),
|
|
853
|
-
tags: [
|
|
844
|
+
tags: [TAG_TEMPLATES.publicTeamMembers],
|
|
854
845
|
auth: "public",
|
|
855
846
|
responseKind: "json"
|
|
856
847
|
},
|
|
@@ -858,7 +849,7 @@ const API_ENDPOINTS = Object.freeze({
|
|
|
858
849
|
path: "/public/sites/{siteId}/products",
|
|
859
850
|
method: "GET",
|
|
860
851
|
revalidate: publicReadFreshnessSeconds("listPublicProducts"),
|
|
861
|
-
tags: [
|
|
852
|
+
tags: [TAG_TEMPLATES.publicProducts],
|
|
862
853
|
auth: "public",
|
|
863
854
|
responseKind: "json"
|
|
864
855
|
},
|
|
@@ -866,7 +857,7 @@ const API_ENDPOINTS = Object.freeze({
|
|
|
866
857
|
path: "/public/sites/{siteId}/bookings/products/passes",
|
|
867
858
|
method: "GET",
|
|
868
859
|
revalidate: publicReadFreshnessSeconds("listPublicPasses"),
|
|
869
|
-
tags: [
|
|
860
|
+
tags: [TAG_TEMPLATES.publicPasses],
|
|
870
861
|
auth: "public",
|
|
871
862
|
responseKind: "json"
|
|
872
863
|
},
|
|
@@ -874,7 +865,7 @@ const API_ENDPOINTS = Object.freeze({
|
|
|
874
865
|
path: "/public/sites/{siteId}/bookings/products/memberships",
|
|
875
866
|
method: "GET",
|
|
876
867
|
revalidate: publicReadFreshnessSeconds("listPublicMemberships"),
|
|
877
|
-
tags: [
|
|
868
|
+
tags: [TAG_TEMPLATES.publicMemberships],
|
|
878
869
|
auth: "public",
|
|
879
870
|
responseKind: "json"
|
|
880
871
|
},
|
|
@@ -882,48 +873,22 @@ const API_ENDPOINTS = Object.freeze({
|
|
|
882
873
|
path: "/public/sites/{siteId}/events/subroutes/resolve",
|
|
883
874
|
method: "GET",
|
|
884
875
|
revalidate: 60,
|
|
885
|
-
tags: [
|
|
886
|
-
auth: "public",
|
|
887
|
-
responseKind: "json"
|
|
888
|
-
},
|
|
889
|
-
checkRedirect: {
|
|
890
|
-
path: "/public/content/redirect",
|
|
891
|
-
method: "GET",
|
|
892
|
-
revalidate: 86400,
|
|
893
|
-
tags: ["redirect"],
|
|
894
|
-
auth: "public",
|
|
895
|
-
responseKind: "json"
|
|
896
|
-
},
|
|
897
|
-
getRoutableContent: {
|
|
898
|
-
path: "/sites/{siteId}/routable-content",
|
|
899
|
-
method: "GET",
|
|
900
|
-
revalidate: 60,
|
|
901
|
-
tags: ["riverbank:site:{siteId}:routable-content"],
|
|
902
|
-
auth: "user",
|
|
903
|
-
responseKind: "json"
|
|
904
|
-
},
|
|
905
|
-
getPublicRoutableContent: {
|
|
906
|
-
path: "/public/sites/{siteId}/routable-content",
|
|
907
|
-
method: "GET",
|
|
908
|
-
revalidate: 60,
|
|
909
|
-
tags: ["riverbank:site:{siteId}:routable-content"],
|
|
876
|
+
tags: [TAG_TEMPLATES.publicEvents, "event-subroute"],
|
|
910
877
|
auth: "public",
|
|
911
878
|
responseKind: "json"
|
|
912
879
|
},
|
|
913
|
-
|
|
914
|
-
path: "/public/sites/{siteId}/sitemap",
|
|
915
|
-
method: "GET",
|
|
916
|
-
revalidate: 60,
|
|
917
|
-
tags: [
|
|
918
|
-
"riverbank:site:{siteId}:routable-content",
|
|
919
|
-
"riverbank:site:{siteId}:settings",
|
|
920
|
-
"riverbank:site:{siteId}:public-events",
|
|
921
|
-
"riverbank:site:{siteId}:public-booking-services"
|
|
922
|
-
],
|
|
923
|
-
auth: "public",
|
|
924
|
-
responseKind: "json"
|
|
925
|
-
}
|
|
880
|
+
checkRedirect: publicSiteReadDefinition(PUBLIC_READ_ENDPOINT_DEFINITIONS.checkRedirect)
|
|
926
881
|
});
|
|
882
|
+
function publicSiteReadDefinition(definition) {
|
|
883
|
+
return {
|
|
884
|
+
path: definition.path,
|
|
885
|
+
method: definition.method,
|
|
886
|
+
revalidate: definition.revalidate,
|
|
887
|
+
tags: definition.tags,
|
|
888
|
+
auth: definition.auth,
|
|
889
|
+
responseKind: definition.responseKind
|
|
890
|
+
};
|
|
891
|
+
}
|
|
927
892
|
//#endregion
|
|
928
893
|
//#region src/client/runtimeCacheKeys.ts
|
|
929
894
|
function toNonEmptyString(value) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { a as eventCheckoutReturnResponseSchema, i as eventCheckoutResponseSchema, n as blockSiteTermsSchema, o as eventRegisterResponseSchema, p as calendarWindowPageSchema } from "./noop-
|
|
2
|
+
import { a as eventCheckoutReturnResponseSchema, i as eventCheckoutResponseSchema, n as blockSiteTermsSchema, o as eventRegisterResponseSchema, p as calendarWindowPageSchema } from "./noop-4XFGzJpT.mjs";
|
|
3
3
|
import { createContext, useContext, useMemo } from "react";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -498,6 +498,18 @@ const PORTAL = {
|
|
|
498
498
|
authScope: "portal",
|
|
499
499
|
skipPreviewStage: true
|
|
500
500
|
},
|
|
501
|
+
listEventRescheduleDates: {
|
|
502
|
+
path: "/portal/events/{registrationId}/reschedule-dates",
|
|
503
|
+
method: "GET",
|
|
504
|
+
authScope: "portal",
|
|
505
|
+
skipPreviewStage: true
|
|
506
|
+
},
|
|
507
|
+
rescheduleEventRegistration: {
|
|
508
|
+
path: "/portal/events/{registrationId}/reschedule",
|
|
509
|
+
method: "POST",
|
|
510
|
+
authScope: "portal",
|
|
511
|
+
skipPreviewStage: true
|
|
512
|
+
},
|
|
501
513
|
transferEventRegistration: {
|
|
502
514
|
path: "/portal/events/{registrationId}/transfer",
|
|
503
515
|
method: "POST",
|
|
@@ -1237,6 +1249,21 @@ function createBlockApi(config) {
|
|
|
1237
1249
|
body: {}
|
|
1238
1250
|
})).result;
|
|
1239
1251
|
},
|
|
1252
|
+
async listEventRescheduleDates(registrationId, query) {
|
|
1253
|
+
const path = buildPath(PORTAL.listEventRescheduleDates.path, { registrationId });
|
|
1254
|
+
return request(PORTAL.listEventRescheduleDates, {
|
|
1255
|
+
path,
|
|
1256
|
+
query: { ...query },
|
|
1257
|
+
skipDedup: true
|
|
1258
|
+
});
|
|
1259
|
+
},
|
|
1260
|
+
async rescheduleEventRegistration(registrationId, data) {
|
|
1261
|
+
const path = buildPath(PORTAL.rescheduleEventRegistration.path, { registrationId });
|
|
1262
|
+
return (await request(PORTAL.rescheduleEventRegistration, {
|
|
1263
|
+
path,
|
|
1264
|
+
body: data
|
|
1265
|
+
})).result;
|
|
1266
|
+
},
|
|
1240
1267
|
async getEventGuests(registrationId) {
|
|
1241
1268
|
const path = buildPath(PORTAL.getEventGuests.path, { registrationId });
|
|
1242
1269
|
return (await request(PORTAL.getEventGuests, { path })).guests;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { c as assertNever } from "./src-VIsPY-kw.mjs";
|
|
3
|
-
import { An as isEventFull, Cn as canJoinEventWaitlistOnAnyMode, xn as resolveRuntimeEventDestination } from "./wizardSteps-
|
|
3
|
+
import { An as isEventFull, Cn as canJoinEventWaitlistOnAnyMode, xn as resolveRuntimeEventDestination } from "./wizardSteps-kbONzKUv.mjs";
|
|
4
4
|
//#region ../blocks/src/system/runtime/nodes/events/domain/cta.ts
|
|
5
5
|
/**
|
|
6
6
|
* Booking call-to-action resolution for events: where an event links to and
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { At as resolveBookingTimeZoneId, Nt as toUtcIsoDateTimeString, Ot as parseUtcIsoDateTimeString, ft as formatDateTime$1, mt as formatTime, pt as formatDateTimeRange, ut as formatDate$1, vt as resolveBookingDisplayContext } from "./noop-4XFGzJpT.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) {
|
|
@@ -57,5 +57,42 @@ function isPast(value, now) {
|
|
|
57
57
|
const instant = readInstant(value);
|
|
58
58
|
return instant !== null && Date.parse(instant) < Date.parse(now);
|
|
59
59
|
}
|
|
60
|
+
/**
|
|
61
|
+
* Inside a change flow, dates carry their weekday and drop the year:
|
|
62
|
+
* "Thu 22 Oct, 6:30pm–7:30pm", "Thu 22 Oct", "6:30pm".
|
|
63
|
+
*/
|
|
64
|
+
function formatPortalSessionWithWeekday(start, end, facts, site) {
|
|
65
|
+
const { context, zone } = portalSessionDisplay(facts, site);
|
|
66
|
+
const startsAt = readInstant(start);
|
|
67
|
+
const endsAt = readInstant(end);
|
|
68
|
+
if (!startsAt) return "—";
|
|
69
|
+
const options = {
|
|
70
|
+
date: "short",
|
|
71
|
+
weekday: "short",
|
|
72
|
+
year: "omit",
|
|
73
|
+
zone
|
|
74
|
+
};
|
|
75
|
+
return endsAt && Date.parse(endsAt) >= Date.parse(startsAt) ? formatDateTimeRange({
|
|
76
|
+
start: startsAt,
|
|
77
|
+
end: endsAt
|
|
78
|
+
}, context, options) : formatDateTime$1(startsAt, context, options);
|
|
79
|
+
}
|
|
80
|
+
function formatPortalSessionDay(start, facts, site) {
|
|
81
|
+
const { context } = portalSessionDisplay(facts, site);
|
|
82
|
+
const startsAt = readInstant(start);
|
|
83
|
+
return startsAt ? formatDate$1({
|
|
84
|
+
kind: "instant",
|
|
85
|
+
value: startsAt
|
|
86
|
+
}, context, {
|
|
87
|
+
date: "short",
|
|
88
|
+
weekday: "short",
|
|
89
|
+
year: "omit"
|
|
90
|
+
}) : "—";
|
|
91
|
+
}
|
|
92
|
+
function formatPortalSessionTime(start, facts, site) {
|
|
93
|
+
const { context, zone } = portalSessionDisplay(facts, site);
|
|
94
|
+
const startsAt = readInstant(start);
|
|
95
|
+
return startsAt ? formatTime(startsAt, context, { zone }) : "—";
|
|
96
|
+
}
|
|
60
97
|
//#endregion
|
|
61
|
-
export {
|
|
98
|
+
export { formatPortalSessionDay as a, isPast as c, formatPortalSession as i, portalSessionDisplay as l, formatDateTime as n, formatPortalSessionTime as o, formatEntitlementEnd as r, formatPortalSessionWithWeekday as s, formatDate as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { r as BlockApiError } from "./context-
|
|
2
|
+
import { r as BlockApiError } from "./context-Bg0SFWcM.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";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { i as ThemedButtonLink, r as ThemedButton } from "./ThemedButton-
|
|
3
|
-
import {
|
|
2
|
+
import { i as ThemedButtonLink, r as ThemedButton } from "./ThemedButton-DclwabI7.mjs";
|
|
3
|
+
import { nn as staticHeaderChromeRuntime, v as buildCartDisplay } from "./shop.interactive-Cf_kASpd.mjs";
|
|
4
4
|
import { t as resolveDedicatedCheckoutPath } from "./checkoutRoute-DKlZRNZD.mjs";
|
|
5
5
|
import { t as ModalShell } from "./ModalShell-B_fHWK71.mjs";
|
|
6
6
|
import { n as NAV_DROPDOWN_SHIFT_PROPERTY } from "./navDropdownSizing-CUjDrcIt.mjs";
|
|
7
|
-
import { n as useCommerceCart } from "./shop-commerce-store-
|
|
7
|
+
import { n as useCommerceCart } from "./shop-commerce-store-15UII0y3.mjs";
|
|
8
8
|
import * as React$1 from "react";
|
|
9
9
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
import { createPortal } from "react-dom";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { a as resolveEventDetailsPresentation, t as EventDetailsView } from "./view-
|
|
2
|
+
import { a as resolveEventDetailsPresentation, t as EventDetailsView } from "./view-OvsxzgxP.mjs";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
//#region ../blocks/src/system/runtime/nodes/event-details.client.tsx
|
|
@@ -14,6 +14,7 @@ function toEventDetailsClientProps(props) {
|
|
|
14
14
|
occurrenceContext: props.occurrenceContext,
|
|
15
15
|
subject: props.subject,
|
|
16
16
|
events: props.events ? [...props.events] : props.events,
|
|
17
|
+
venueDrawing: props.venueDrawing,
|
|
17
18
|
showVenue: props.showVenue,
|
|
18
19
|
showMap: props.showMap,
|
|
19
20
|
showOtherDates: props.showOtherDates,
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { r as ThemedButton, u as SpinnerNode } from "./ThemedButton-
|
|
2
|
+
import { r as ThemedButton, u as SpinnerNode } from "./ThemedButton-DclwabI7.mjs";
|
|
3
3
|
import { t as assertNever } from "./src-VIsPY-kw.mjs";
|
|
4
|
-
import { A as isEventRegistrationAvailable, An as isEventFull, At as getTicketSelectionTotal, B as paymentChoiceDetails, Cn as canJoinEventWaitlistOnAnyMode, Ct as occurrenceTitleOverride, D as settledRemainingPlaces, Dn as getEventAvailability, Dr as resolveEventRegistrationScopedEvents, Dt as canRequestTicketOption, Et as formatPrice, Ht as shownVenue, Mn as selectMostOpenCapacitySource, Nn as groupPublicEventsByRun, Pt as setTicketLineQuantity, Sn as canJoinEventWaitlist, St as getVisibleTicketTypes, T as resolveRegistrationAvailabilityBlocker, Tt as withOccurrenceTitle, Un as getRegistrationSuccessCopy, V as paymentChoicePrice, _ as shouldPromptForLogin, _t as formatRegistrationSchedule, ai as publicEventPricingType, b as placeCountCeiling, c as registrationStepLabelContext, ct as confirmationPaymentRows, dt as areEntitlementsDisabledForTicketCount, gt as formatPassCreditUsageLabel, ht as formatEventDateTime, ii as publicEventPricingStrategy, j as normalizeEventRegistrationMaxTickets, jn as selectEventCapacitySource, jt as getTicketTypeLineMax, kn as getRemainingPlaces, kt as getTicketLineQuantity, l as areEventRegistrationPaymentSelectionsEqual, lt as resolveFinishedPresentation, mt as formatDate, n as getEventSelectionMode, ni as publicEventPricingCurrency, pt as formatBookingWhen, r as panelShouldOpen, s as registrationStepLabel, ut as ENTITLEMENT_SINGLE_TICKET_TOOLTIP, v as fullyBookedLabel, vt as formatTime, xt as getTicketTypeAvailabilityLabel, zt as placesLeftLabel } from "./wizardSteps-
|
|
5
|
-
import { d as DiscountCodeDisclosure, i as SiteTermsChangedNotice, r as SiteTermsAgreementField, s as eventSiteTermsSurface, t as BookingConfirmation } from "./DemoBookingPortalAccess-
|
|
6
|
-
import { J as displayButtonText, K as buildEventRegistrationDisplayFromScopedEvents,
|
|
7
|
-
import { a as getWaitlistClaimEntryIdFromUrl, i as eventRegistrationCheckoutReturnRequest, o as getWaitlistClaimTokenFromUrl, r as useEventRegistrationWizard, t as EventPaymentMount } from "./EventRegistrationPayment-
|
|
4
|
+
import { A as isEventRegistrationAvailable, An as isEventFull, At as getTicketSelectionTotal, B as paymentChoiceDetails, Cn as canJoinEventWaitlistOnAnyMode, Ct as occurrenceTitleOverride, D as settledRemainingPlaces, Dn as getEventAvailability, Dr as resolveEventRegistrationScopedEvents, Dt as canRequestTicketOption, Et as formatPrice, Ht as shownVenue, Mn as selectMostOpenCapacitySource, Nn as groupPublicEventsByRun, Pt as setTicketLineQuantity, Sn as canJoinEventWaitlist, St as getVisibleTicketTypes, T as resolveRegistrationAvailabilityBlocker, Tt as withOccurrenceTitle, Un as getRegistrationSuccessCopy, V as paymentChoicePrice, _ as shouldPromptForLogin, _t as formatRegistrationSchedule, ai as publicEventPricingType, b as placeCountCeiling, c as registrationStepLabelContext, ct as confirmationPaymentRows, dt as areEntitlementsDisabledForTicketCount, gt as formatPassCreditUsageLabel, ht as formatEventDateTime, ii as publicEventPricingStrategy, j as normalizeEventRegistrationMaxTickets, jn as selectEventCapacitySource, jt as getTicketTypeLineMax, kn as getRemainingPlaces, kt as getTicketLineQuantity, l as areEventRegistrationPaymentSelectionsEqual, lt as resolveFinishedPresentation, mt as formatDate, n as getEventSelectionMode, ni as publicEventPricingCurrency, pt as formatBookingWhen, r as panelShouldOpen, s as registrationStepLabel, ut as ENTITLEMENT_SINGLE_TICKET_TOOLTIP, v as fullyBookedLabel, vt as formatTime, xt as getTicketTypeAvailabilityLabel, zt as placesLeftLabel } from "./wizardSteps-kbONzKUv.mjs";
|
|
5
|
+
import { d as DiscountCodeDisclosure, i as SiteTermsChangedNotice, r as SiteTermsAgreementField, s as eventSiteTermsSurface, t as BookingConfirmation } from "./DemoBookingPortalAccess-B3caCnTT.mjs";
|
|
6
|
+
import { J as displayButtonText, K as buildEventRegistrationDisplayFromScopedEvents, Z as offeringNounForEvent, Zt as formatEventPriceDisplay, dt as DEFAULT_BOOKING_BUTTON_TEXT, ft as bookingBarPlacement, gt as bookingPanelHeading, ht as bookingEntryProgress, mt as bookingEntry, pt as bookingCardEntry } from "./shop.interactive-Cf_kASpd.mjs";
|
|
7
|
+
import { a as getWaitlistClaimEntryIdFromUrl, i as eventRegistrationCheckoutReturnRequest, o as getWaitlistClaimTokenFromUrl, r as useEventRegistrationWizard, t as EventPaymentMount } from "./EventRegistrationPayment-Dfu3RSL2.mjs";
|
|
8
8
|
import { t as createBodyThemePortalRoot } from "./themePortalRoot-DeP49PT8.mjs";
|
|
9
|
-
import { t as CheckboxChoice } from "./CheckboxChoice-
|
|
9
|
+
import { t as CheckboxChoice } from "./CheckboxChoice-Dtgp3OU8.mjs";
|
|
10
10
|
import { t as CrossIcon } from "./CrossIcon-CpG9VRyW.mjs";
|
|
11
11
|
import { n as getFieldValidationControlProps, t as FieldValidationMessage } from "./FieldValidationMessage-CsqxShw4.mjs";
|
|
12
12
|
import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
|
|
13
|
-
import { t as DemoPortalSignInLink } from "./DemoPortalSignInLink-
|
|
14
|
-
import { n as TerminalPanel, r as StateIcon } from "./useDiscountCodeUi-
|
|
13
|
+
import { t as DemoPortalSignInLink } from "./DemoPortalSignInLink-Ct8JMKW0.mjs";
|
|
14
|
+
import { n as TerminalPanel, r as StateIcon } from "./useDiscountCodeUi-B0Z7n2tZ.mjs";
|
|
15
15
|
import { t as ModalShell } from "./ModalShell-B_fHWK71.mjs";
|
|
16
|
-
import { i as PaymentChoiceRows, n as BookingConsentAgreement, t as BookingMailingListNote } from "./BookingMailingListNote-
|
|
16
|
+
import { i as PaymentChoiceRows, n as BookingConsentAgreement, t as BookingMailingListNote } from "./BookingMailingListNote-BV5-50F0.mjs";
|
|
17
17
|
import { t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-4o4_hl34.mjs";
|
|
18
|
-
import { i as RegistrationClosedState, n as BookingEntryBar, r as BookingEntryCard, t as StepIndicator } from "./StepIndicator-
|
|
19
|
-
import { n as useBlockApi, r as BlockApiError } from "./context-
|
|
18
|
+
import { i as RegistrationClosedState, n as BookingEntryBar, r as BookingEntryCard, t as StepIndicator } from "./StepIndicator-Bjx4faaw.mjs";
|
|
19
|
+
import { n as useBlockApi, r as BlockApiError } from "./context-Bg0SFWcM.mjs";
|
|
20
20
|
import { i as AltchaWidget, r as isSpamProtectionEnabled, t as getChallengeUrl } from "./src-BNZzXgWu.mjs";
|
|
21
|
-
import { t as useBookingNowIso } from "./useBookingNowIso-
|
|
22
|
-
import { n as buildPortalCallbackUrl, r as requestDemoPortalMagicLink } from "./demoPortalMagicLink-
|
|
21
|
+
import { t as useBookingNowIso } from "./useBookingNowIso-CWIiqPd0.mjs";
|
|
22
|
+
import { n as buildPortalCallbackUrl, r as requestDemoPortalMagicLink } from "./demoPortalMagicLink-CDWheSjI.mjs";
|
|
23
23
|
import { t as createLucideIcon } from "./createLucideIcon-CIbxe9em.mjs";
|
|
24
24
|
import React, { useCallback, useEffect, useId, useLayoutEffect, useReducer, useRef, useState } from "react";
|
|
25
25
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
3
|
-
import { t as BlockApiProvider } from "./context-
|
|
4
|
-
import { t as EventCalendarClient } from "./EventCalendar.client-
|
|
2
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-VD4arFq1.mjs";
|
|
3
|
+
import { t as BlockApiProvider } from "./context-Bg0SFWcM.mjs";
|
|
4
|
+
import { t as EventCalendarClient } from "./EventCalendar.client-ffa6920T.mjs";
|
|
5
5
|
import { t as mountReactIsland } from "./reactMount-BGJVsHRb.mjs";
|
|
6
|
-
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-
|
|
6
|
+
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-CnZ_1ol2.mjs";
|
|
7
7
|
import "react";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
9
9
|
//#region src/rendering/islands/enhancers/eventCalendar.tsx
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
3
|
-
import { t as BlockApiProvider } from "./context-
|
|
4
|
-
import { n as EventCombinedIslandClient } from "./EventCombined.client-
|
|
2
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-VD4arFq1.mjs";
|
|
3
|
+
import { t as BlockApiProvider } from "./context-Bg0SFWcM.mjs";
|
|
4
|
+
import { n as EventCombinedIslandClient } from "./EventCombined.client-zm0W2G79.mjs";
|
|
5
5
|
import { t as mountReactIsland } from "./reactMount-BGJVsHRb.mjs";
|
|
6
|
-
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-
|
|
6
|
+
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-CnZ_1ol2.mjs";
|
|
7
7
|
import "react";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
9
9
|
//#region src/rendering/islands/enhancers/eventCombined.tsx
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
3
|
-
import { t as EventDetailsIslandClient } from "./event-details.client-
|
|
2
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-VD4arFq1.mjs";
|
|
3
|
+
import { t as EventDetailsIslandClient } from "./event-details.client-SFtS9OkF.mjs";
|
|
4
4
|
import { t as mountReactIsland } from "./reactMount-BGJVsHRb.mjs";
|
|
5
5
|
import "react";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
3
|
-
import { t as BlockApiProvider } from "./context-
|
|
4
|
-
import { t as EventListingClient } from "./EventListing.client-
|
|
2
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-VD4arFq1.mjs";
|
|
3
|
+
import { t as BlockApiProvider } from "./context-Bg0SFWcM.mjs";
|
|
4
|
+
import { t as EventListingClient } from "./EventListing.client-CaoRZUI9.mjs";
|
|
5
5
|
import { t as mountReactIsland } from "./reactMount-BGJVsHRb.mjs";
|
|
6
|
-
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-
|
|
6
|
+
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-CnZ_1ol2.mjs";
|
|
7
7
|
import "react";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
9
9
|
//#region src/rendering/islands/enhancers/eventListing.tsx
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
3
|
-
import { t as EventRegistrationIslandClient } from "./event-registration.client-
|
|
4
|
-
import { t as BlockApiProvider } from "./context-
|
|
2
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-VD4arFq1.mjs";
|
|
3
|
+
import { t as EventRegistrationIslandClient } from "./event-registration.client-CguNVIFY.mjs";
|
|
4
|
+
import { t as BlockApiProvider } from "./context-Bg0SFWcM.mjs";
|
|
5
5
|
import { t as mountReactIsland } from "./reactMount-BGJVsHRb.mjs";
|
|
6
|
-
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-
|
|
6
|
+
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-CnZ_1ol2.mjs";
|
|
7
7
|
import "react";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
9
9
|
//#region src/rendering/islands/enhancers/eventRegistration.tsx
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
3
|
-
import { t as BlockApiProvider } from "./context-
|
|
4
|
-
import { t as FormNodeClient } from "./form.client-
|
|
2
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-VD4arFq1.mjs";
|
|
3
|
+
import { t as BlockApiProvider } from "./context-Bg0SFWcM.mjs";
|
|
4
|
+
import { t as FormNodeClient } from "./form.client-BoAkhoh_.mjs";
|
|
5
5
|
import { t as mountReactIsland } from "./reactMount-BGJVsHRb.mjs";
|
|
6
6
|
import "react";
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { C as clsx } from "./ThemedButton-
|
|
2
|
+
import { C as clsx } from "./ThemedButton-DclwabI7.mjs";
|
|
3
3
|
import { n as err, r as ok, t as assertNever } from "./src-VIsPY-kw.mjs";
|
|
4
|
-
import { Pr as listLookSlot } from "./wizardSteps-
|
|
4
|
+
import { Pr as listLookSlot } from "./wizardSteps-kbONzKUv.mjs";
|
|
5
5
|
import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
|
|
6
|
-
import { n as FormSubmitAction, t as FormFieldGroups } from "./form.parts-
|
|
7
|
-
import { n as useBlockApi } from "./context-
|
|
6
|
+
import { n as FormSubmitAction, t as FormFieldGroups } from "./form.parts-1VnasOK8.mjs";
|
|
7
|
+
import { n as useBlockApi } from "./context-Bg0SFWcM.mjs";
|
|
8
8
|
import { i as AltchaWidget, r as isSpamProtectionEnabled, t as getChallengeUrl } from "./src-BNZzXgWu.mjs";
|
|
9
9
|
import { useReducer, useRef, useState } from "react";
|
|
10
10
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { r as ThemedButton } from "./ThemedButton-
|
|
3
|
-
import { Nr as listLookControl, Pr as listLookSlot } from "./wizardSteps-
|
|
4
|
-
import { t as CheckboxChoice } from "./CheckboxChoice-
|
|
2
|
+
import { r as ThemedButton } from "./ThemedButton-DclwabI7.mjs";
|
|
3
|
+
import { Nr as listLookControl, Pr as listLookSlot } from "./wizardSteps-kbONzKUv.mjs";
|
|
4
|
+
import { t as CheckboxChoice } from "./CheckboxChoice-Dtgp3OU8.mjs";
|
|
5
5
|
import "react";
|
|
6
6
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
//#region ../blocks/src/system/runtime/nodes/form.fields.tsx
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { Et as parseUtcIsoDateTimeString,
|
|
2
|
+
import { Et as parseBookingLocalDate, Ot as parseUtcIsoDateTimeString, ft as formatDateTime, ut as formatDate$1 } from "./noop-4XFGzJpT.mjs";
|
|
3
3
|
//#region ../blocks/src/bindings/formatDate.ts
|
|
4
4
|
/** Admit stored civil dates or offset-aware instants before core projection. */
|
|
5
5
|
function formatDate(value, context, options) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use client";
|
|
3
|
-
import { W as formatGiftCardAmountLabel, i as ThemedButtonLink, r as ThemedButton } from "../ThemedButton-
|
|
4
|
-
import {
|
|
3
|
+
import { W as formatGiftCardAmountLabel, i as ThemedButtonLink, r as ThemedButton } from "../ThemedButton-DclwabI7.mjs";
|
|
4
|
+
import { At as resolveBookingTimeZoneId, Nt as toUtcIsoDateTimeString, t as logger, ut as formatDate } from "../noop-4XFGzJpT.mjs";
|
|
5
5
|
import { t as CheckIcon } from "../CheckIcon-CVcKteXH.mjs";
|
|
6
|
-
import { n as useBlockApi, r as BlockApiError, t as BlockApiProvider } from "../context-
|
|
6
|
+
import { n as useBlockApi, r as BlockApiError, t as BlockApiProvider } from "../context-Bg0SFWcM.mjs";
|
|
7
7
|
import React from "react";
|
|
8
8
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
import { useRouter } from "next/navigation.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
3
|
-
import { t as mountHeaderChromeRuntime } from "./enhanceHeaderSection-
|
|
2
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-VD4arFq1.mjs";
|
|
3
|
+
import { t as mountHeaderChromeRuntime } from "./enhanceHeaderSection-BqVDXL0D.mjs";
|
|
4
4
|
//#region src/rendering/islands/enhancers/headerSection.ts
|
|
5
5
|
const decode = defineIslandPropsDecoder("headerSection");
|
|
6
6
|
const enhance = (root, props) => {
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { lr as renderableMediaAssetSchema } from "./schema-BFwQDvJL.mjs";
|
|
3
|
+
//#region src/rendering/mediaAssets.ts
|
|
4
|
+
function toBlocksMediaAssets(assets) {
|
|
5
|
+
if (!assets) return void 0;
|
|
6
|
+
return assets.map((asset) => renderableMediaAssetSchema.parse(asset));
|
|
7
|
+
}
|
|
8
|
+
function toBlocksImageResolveContextInput(context) {
|
|
9
|
+
if (!context) return void 0;
|
|
10
|
+
return {
|
|
11
|
+
...context,
|
|
12
|
+
mediaAssets: toBlocksMediaAssets(context.mediaAssets)
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
/** Admit loader sidecars once before sharing them with page and image rendering. */
|
|
16
|
+
function collectLoaderMediaAssets(resolvedData) {
|
|
17
|
+
return Object.values(resolvedData ?? {}).flatMap((block) => Object.values(block).flatMap((loader) => {
|
|
18
|
+
if (!loader || typeof loader !== "object" || !("mediaAssets" in loader) || !Array.isArray(loader.mediaAssets)) return [];
|
|
19
|
+
return renderableMediaAssetSchema.array().parse(loader.mediaAssets);
|
|
20
|
+
}));
|
|
21
|
+
}
|
|
22
|
+
function mergeMediaAssets(preferred, fallback) {
|
|
23
|
+
if (!fallback?.length) return preferred;
|
|
24
|
+
return [...new Map([...fallback, ...preferred ?? []].map((asset) => [asset.id, asset])).values()];
|
|
25
|
+
}
|
|
26
|
+
/** Page and image rendering share the same admitted loader assets and precedence. */
|
|
27
|
+
function resolveBlocksPageMediaContext(dataContext) {
|
|
28
|
+
const loaderAssets = collectLoaderMediaAssets(dataContext.resolvedData);
|
|
29
|
+
const mediaAssets = mergeMediaAssets(toBlocksMediaAssets(dataContext.mediaAssets), loaderAssets);
|
|
30
|
+
const explicitImageContext = toBlocksImageResolveContextInput(dataContext.imageResolveContext);
|
|
31
|
+
const imageAssets = mergeMediaAssets(explicitImageContext?.mediaAssets, mediaAssets);
|
|
32
|
+
return {
|
|
33
|
+
mediaAssets,
|
|
34
|
+
imageResolveContext: explicitImageContext || dataContext.siteId || dataContext.supabaseUrl || imageAssets?.length ? {
|
|
35
|
+
siteId: dataContext.siteId,
|
|
36
|
+
supabaseUrl: dataContext.supabaseUrl,
|
|
37
|
+
...explicitImageContext,
|
|
38
|
+
mediaAssets: imageAssets
|
|
39
|
+
} : void 0
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
//#endregion
|
|
43
|
+
export { toBlocksImageResolveContextInput as n, toBlocksMediaAssets as r, resolveBlocksPageMediaContext as t };
|