@riverbankcms/sdk 0.178.0 → 0.179.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/README.md +15 -8
- package/dist/_dts/{BlocksIslandsHydrator-CrKsXtpD.d.ts → BlocksIslandsHydrator-DKwgs95u.d.ts} +1 -1
- package/dist/_dts/{Page-C9i27wZA.d.ts → Page-lWenra5i.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-DzGSR3jh.d.ts → SdkPreviewMode-BRxhRw4I.d.ts} +2 -2
- package/dist/_dts/{client-BnYN6XsH.d.ts → client-qWn7xAwJ.d.ts} +47 -17
- package/dist/_dts/{content-types-CXj6lp3d.d.ts → content-types-DL6GIvTm.d.ts} +2 -2
- package/dist/_dts/{contracts-BZLwkTwL.d.ts → contracts-CzWyAiJj.d.ts} +6 -116
- package/dist/_dts/{generatePageMetadata-ByEWwe9j.d.ts → generatePageMetadata-CBKd0cJ4.d.ts} +2 -2
- package/dist/_dts/{index-DCa-8TEY.d.ts → index-7CDBZGb-.d.ts} +1 -1
- package/dist/_dts/{index-CKDRr54L.d.ts → index-BU9uAkHB.d.ts} +4 -4
- package/dist/_dts/{index-D9-N1d9v.d.ts → index-BYnG_vF5.d.ts} +1 -1
- package/dist/_dts/{index-nnEdgc3Z.d.ts → index-CZgJrhzT.d.ts} +4 -2
- package/dist/_dts/{index-cTpvQg_Q.d.ts → index-CaCum9mM.d.ts} +2 -2
- package/dist/_dts/{index-0HFgCnGz.d.ts → index-DCiSHd-C.d.ts} +1 -1
- package/dist/_dts/{index-BE9dWIsr.d.ts → index-DVSipdrT.d.ts} +3 -3
- package/dist/_dts/{loadContent-DYkVV6w4.d.ts → loadContent-CPKbFQyq.d.ts} +15 -13
- package/dist/_dts/{request-B20VRWHH.d.ts → request-BjKBCS7t.d.ts} +1201 -335
- package/dist/_dts/{resolveBlockData-C_aK5GIS.d.ts → resolveBlockData-DupbMCup.d.ts} +8 -5
- package/dist/_dts/resolvePageContent-BqNyCHi8.d.ts +61 -0
- package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
- package/dist/_dts/sdk/src/client/types.d.ts +3 -3
- 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 +7 -2
- package/dist/_dts/sdk/src/gifting/client.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 +3 -3
- package/dist/_dts/sdk/src/next/index.d.ts +16 -8
- 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 +7 -7
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +3 -3
- package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
- package/dist/_dts/sdk/src/routing/index.d.ts +19 -6
- 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 +1 -1
- package/dist/_dts/serviceBookingOutline-YcsIjvn1.d.ts +582 -0
- package/dist/_dts/{types-rm2M4LGx.d.ts → types-B7e6Lmo5.d.ts} +3 -3
- package/dist/_dts/{types-CYcd15BQ.d.ts → types-BOxSq-Bq.d.ts} +8 -7
- package/dist/_dts/{types-CMZ5mkpv.d.ts → types-CT-KOxl_.d.ts} +5 -39
- package/dist/_dts/{validation-BSxnRhyy.d.ts → validation-Dz6qccue.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-D1n09bu-.mjs → BlocksIslandsHydrator-1XifJg6V.mjs} +17 -18
- package/dist/client/{BookingMailingListNote-DSD4gS96.mjs → BookingMailingListNote-BsbEgagJ.mjs} +7 -7
- package/dist/client/{BookingQuestionFields-B57oGPcj.mjs → BookingQuestionFields-C8IbeLHj.mjs} +4 -4
- package/dist/client/{CalendarNavigationChevron-qXvsFYOg.mjs → CalendarNavigationChevron-Bbqij1XQ.mjs} +42 -9
- package/dist/client/{CheckboxChoice-b-PJLEXe.mjs → CheckboxChoice-BZPLCgTU.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-Olvrwi3Z.mjs → DemoBookingPortalAccess-uA9H8LIL.mjs} +4 -4
- package/dist/client/{EventCalendar.client-DwFNFb-0.mjs → EventCalendar.client-yoSI77ov.mjs} +10 -10
- package/dist/client/{EventCombined.client-Ffu-aVOb.mjs → EventCombined.client-HeCNlliq.mjs} +10 -10
- package/dist/client/{EventEmbeddedCheckoutStep-B18VbNS_.mjs → EventEmbeddedCheckoutStep-BDnicDM6.mjs} +1 -1
- package/dist/client/{EventItem-b8tVkNHA.mjs → EventItem-Duhk1vnF.mjs} +247 -7
- package/dist/client/{EventListWeekNavigation-BxnJW_Gf.mjs → EventListWeekNavigation-BiutEqPK.mjs} +1 -1
- package/dist/client/{EventListing.client-ViCnrNg4.mjs → EventListing.client-B5ln77jG.mjs} +3 -3
- package/dist/client/{EventListing.view-CdjiepMf.mjs → EventListing.view-hUDhNtMv.mjs} +203 -9
- package/dist/client/{EventRegistrationPayment-BVd70XkH.mjs → EventRegistrationPayment-DqtX1vB2.mjs} +189 -111
- package/dist/client/{Page-DqETUt-U.mjs → Page-ChJ2TGVk.mjs} +24314 -20226
- package/dist/client/{ProtectedSubmitButton-C-ql101B.mjs → ProtectedSubmitButton-De6AzhE6.mjs} +1 -1
- package/dist/client/{SiteTermsAgreementField-DkFnbzf_.mjs → SiteTermsAgreementField-CDBU31xW.mjs} +3 -3
- package/dist/client/{StepIndicator-JO2PS03n.mjs → StepIndicator-2Dl9zon2.mjs} +6 -6
- package/dist/client/{BookingPanelArrangement--EkA1ZQd.mjs → StepIndicator-JQA-VuEH.mjs} +12 -12
- package/dist/client/{TabBarFragment-BqfRLojo.mjs → TabBarFragment-DlKQRhP4.mjs} +1 -1
- package/dist/client/{ThemedButton-DuaYtnvG.mjs → ThemedButton-CnSa7o-I.mjs} +66 -66
- package/dist/client/{accessibleSurfaces-DN8it_Cx.mjs → accessibleSurfaces-Wl8-_OVJ.mjs} +1 -1
- package/dist/client/{accordion-XgNxl0Wg.mjs → accordion-B6SqU49k.mjs} +1 -1
- package/dist/client/{booking-form.client-ljJoDwuI.mjs → booking-form.client-DrEOjQ3N.mjs} +15 -15
- package/dist/client/{bookingForm-DtEHwY4W.mjs → bookingForm-drZBwEZW.mjs} +4 -4
- package/dist/client/bookings.mjs +5 -5
- package/dist/client/{boxStyleClassNames-BHoMAcun.mjs → boxStyleClassNames-DEh45w16.mjs} +19 -19
- package/dist/client/{carousel-B3UhbFu7.mjs → carousel-C-YJliD-.mjs} +2 -2
- package/dist/client/{carousel.client-h65clfUO.mjs → carousel.client-DMtGYTTM.mjs} +1 -1
- package/dist/client/{cart-DzOJfYOR.mjs → cart-acGFWK9R.mjs} +3 -3
- package/dist/client/{cart.client-DBG77v-5.mjs → cart.client-BzlOGP2j.mjs} +1 -1
- package/dist/client/{checkout-LmePoEgM.mjs → checkout-SEontwhy.mjs} +3 -3
- package/dist/client/{checkout.client-DmgZuLBT.mjs → checkout.client-C0Qvh-d4.mjs} +1 -1
- package/dist/client/{checkoutUrls-CMZI8o_V.mjs → checkoutUrls-yUKeq1N9.mjs} +1 -1
- package/dist/client/client.mjs +414 -319
- package/dist/client/{context-CJIz4FdL.mjs → context-DTrwaQtg.mjs} +2 -1
- package/dist/client/{dateFormatting-UoXqBh10.mjs → dateFormatting-Cg8E1r9l.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-6CgFZNvu.mjs → demoPortalMagicLink-D0kOJYOX.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-DaMo6len.mjs → enhanceHeaderSection-DyrpZ7ks.mjs} +4 -4
- package/dist/client/{event-registration.client-b6APrFQe.mjs → event-registration.client-RLZQWi2V.mjs} +13 -13
- package/dist/client/{eventCalendar-DJYz7yZf.mjs → eventCalendar-CphYnImh.mjs} +4 -4
- package/dist/client/{eventCombined-j9VCVgMW.mjs → eventCombined-BvqjASB_.mjs} +4 -4
- package/dist/client/{eventListing-DWgpGuFM.mjs → eventListing-BaNAoC_M.mjs} +4 -4
- package/dist/client/{eventRegistration-DCinRot3.mjs → eventRegistration-COMHoRl6.mjs} +4 -4
- package/dist/client/events-9LPvwbWp.mjs +28 -0
- package/dist/client/{form-BBBtRwvy.mjs → form-DyH2juYT.mjs} +3 -3
- package/dist/client/{form.client-CZeRQLGF.mjs → form.client-DBwzkB0M.mjs} +5 -5
- package/dist/client/{form.parts-DhGGv4_L.mjs → form.parts-CY4kX3mh.mjs} +3 -3
- package/dist/client/{formatDate-DVFVDcDW.mjs → formatDate-CTEN7gxW.mjs} +1 -1
- package/dist/client/gifting/client.mjs +6 -6
- package/dist/client/{gifting-Di9-SpwW.mjs → gifting-CIx4V378.mjs} +4 -4
- package/dist/client/{gifting.client-CjT5PrAZ.mjs → gifting.client-BEVPpzJM.mjs} +5 -5
- package/dist/client/{gifting.parts-ffP6mjMd.mjs → gifting.parts-VnORjnZK.mjs} +2 -2
- package/dist/client/{headerSection-jjAvtSZk.mjs → headerSection-DGcJfRS8.mjs} +2 -2
- package/dist/client/{lookSurfaces-C2VzJfyG.mjs → lookSurfaces-IqT_SVnX.mjs} +167 -85
- package/dist/client/{newsletter-form.client-D45frHoa.mjs → newsletter-form.client-BvEDkjiD.mjs} +6 -6
- package/dist/client/{shop.interactive-D7wky1GL.mjs → newsletter-form.interactive-DCO1lErD.mjs} +3975 -3975
- package/dist/client/{newsletter-form.parts-CHdg82ct.mjs → newsletter-form.parts-BIy4IUT3.mjs} +2 -2
- package/dist/client/{newsletterForm-tS465_vl.mjs → newsletterForm-CoTXDNFS.mjs} +3 -3
- package/dist/client/portal/client.mjs +9 -9
- package/dist/client/{product-detail.client-DIWSeW7P.mjs → product-detail.client-YHQ2aKX1.mjs} +1 -1
- package/dist/client/{product-list.client-BRf14h_e.mjs → product-list.client-DxoZw1vF.mjs} +1 -1
- package/dist/client/{productDetail-gxF5whea.mjs → productDetail-DjuFvkey.mjs} +3 -3
- package/dist/client/{productList-B9t0XJrN.mjs → productList-DE9GEFoZ.mjs} +3 -3
- package/dist/client/{propsDecoder-Db8wAmgr.mjs → propsDecoder-Cyag_HOs.mjs} +2 -48
- package/dist/client/{registry.server-Bn0gE0uP.mjs → registry.server-BPwV-0Pp.mjs} +10420 -9108
- package/dist/client/rendering/client.mjs +41 -27
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +23 -2836
- package/dist/client/{richText-coerce-COnKrLO7.mjs → richText-coerce-NrRqDeOg.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-Bok1Oy50.mjs → routeIslandApiConfig-BWq5gKFK.mjs} +1 -1
- package/dist/client/runtimeResponse-D2j2-mOk.mjs +3 -0
- package/dist/client/{runtimeResponse-9v8q2NBc.mjs → runtimeResponse-DtWSfWSZ.mjs} +1 -1
- package/dist/client/{shop-D1oTPDxm.mjs → shop-C3wM0Hr4.mjs} +3 -3
- package/dist/client/{shop-commerce-DyMZLC0a.mjs → shop-commerce-34YvcpbX.mjs} +14 -14
- package/dist/client/{shop-commerce-store-FODNS63D.mjs → shop-commerce-store-B7xHksOs.mjs} +1 -1
- package/dist/client/{shop-discount-apply.state-C4xcmFzZ.mjs → shop-discount-apply.state-BiBnozfO.mjs} +2 -2
- package/dist/client/{shop.client-CRgRulfI.mjs → shop.client-C0v88nLd.mjs} +14 -14
- package/dist/client/{shopShared-Bd_hy9ZO.mjs → shopShared-Ct-BRNez.mjs} +2 -2
- package/dist/client/spam-protection.mjs +1 -1
- package/dist/client/{noop-D11X-B6n.mjs → src-CCtanNlD.mjs} +317 -342
- package/dist/client/{timetableModel-UlWfP1gh.mjs → timetableModel-lhE29TNT.mjs} +65 -11
- package/dist/client/{types-DjWUR_O6.mjs → types-BEaKfam_.mjs} +65 -65
- package/dist/client/{useAvailableSlots-D-qoooLy.mjs → useAvailableSlots-BelJviOT.mjs} +2 -2
- package/dist/client/useDiscountCodeUi-rQRE1-Ho.mjs +196 -0
- package/dist/client/{useEventPagination-CQH2e9sQ.mjs → useEventPagination-C4rS2Xxl.mjs} +8 -8
- package/dist/client/{view-bGU1ws-m.mjs → view-LJVHVqsy.mjs} +4 -4
- package/dist/client/{display-D1oVR5Eh.mjs → wizardSteps-CNDsxeJH.mjs} +8935 -8913
- package/dist/preview-next/before-render.mjs +4 -3
- package/dist/preview-next/client/{PageSectionToolbar-D-Le7O3o.mjs → PageSectionToolbar-C4TtBPN-.mjs} +3 -3
- package/dist/preview-next/client/{PreviewEditorSidebar-DNy5j_ce.mjs → PreviewEditorSidebar-D6fkE59-.mjs} +5 -5
- package/dist/preview-next/client/{PreviewEditorUI-CzJvgbqt.mjs → PreviewEditorUI-amcDlj0O.mjs} +4 -4
- package/dist/preview-next/client/{PreviewShell-xhJ6ca1i.mjs → PreviewShell-DeQjx4zk.mjs} +5 -5
- package/dist/preview-next/client/{SdkPreviewModeRuntime-BmYO1TdT.mjs → SdkPreviewModeRuntime-Cx0SXnoX.mjs} +5 -5
- package/dist/preview-next/client/{previewAssistantSlot-BN93X9o1.mjs → previewAssistantSlot-aqpU34WI.mjs} +627 -498
- package/dist/preview-next/client/{previewChromeRoot-C51RQseo.mjs → previewChromeRoot-D3Gy_Rs0.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-oeGquJM-.mjs → sdk-runtime-Dzx_RrN7.mjs} +2 -2
- package/dist/preview-next/client/{siteStyleAccess-BGTAcPud.mjs → siteStyleAccess-LHedw83e.mjs} +1 -1
- package/dist/preview-next/client/{useAutosaveStatus-BMGXjGZq.mjs → useAutosaveStatus-DpSd9aVk.mjs} +1 -1
- package/dist/preview-next/client/{useOpenBlockForSetup-CTDoR_gQ.mjs → useOpenBlockForSetup-BGZn5AT1.mjs} +1 -1
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-BtdzkSUg.mjs → route-contract-DnL-FgSV.mjs} +28 -10
- package/dist/server/{Block.shared-Bp3OlOjj.mjs → Block.shared-BEbq6EwO.mjs} +4 -4
- package/dist/server/{bindings-DrbJuftt.mjs → bindings-Bly0dRs7.mjs} +36 -5
- package/dist/server/{client-Bf06n9oj.mjs → client-CGJ2ztYp.mjs} +1449 -1600
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/contentTypeResolver-B9vy8BrF.mjs +19 -0
- package/dist/server/data/dataLoaderContext.mjs +1 -1
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/{dataLoaderContext-B3fXA54R.mjs → dataLoaderContext-lMRTfG5Z.mjs} +1 -0
- package/dist/server/error-f4g44bKx.mjs +387 -0
- package/dist/server/index.mjs +3 -2
- package/dist/server/loadContent-BkK1w3QQ.mjs +692 -0
- package/dist/server/{loadPage-5iZefzDd.mjs → loadPage-DTLe0FEs.mjs} +22 -4
- package/dist/server/next.mjs +54 -94
- package/dist/server/{overrideResolution-CUHtm7tW.mjs → overrideResolution-Uy9Zp2Ks.mjs} +1 -1
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{pageRenderPlan-GmPXForc.mjs → pageRenderPlan-JzxBnqfV.mjs} +7 -2
- package/dist/server/{pageRuntimeSupport-Dd8LFzfa.mjs → pageRuntimeSupport-DyNSd2Yj.mjs} +50 -2
- package/dist/server/{pageShared-tz-GVWft.mjs → pageShared-DU4ETFPS.mjs} +8 -50
- package/dist/server/{prebuild-JmsuYCIH.mjs → prebuild-8jNtDXmS.mjs} +5 -4
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-Ce9DDwON.mjs → prefetchBlockData-xeMG42aw.mjs} +3 -2
- package/dist/server/{registry-D12XF_h1.mjs → registry-DH1VrsCl.mjs} +122 -19
- 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 +5 -4
- package/dist/server/rendering.mjs +9 -8
- package/dist/server/{resolveBlockData-D9yZIN3V.mjs → resolveBlockData-BN8tweTx.mjs} +24 -5
- package/dist/server/resolvePageContent-DnM16_f9.mjs +89 -0
- package/dist/server/routing.mjs +271 -57
- package/dist/server/server.mjs +3 -3
- package/dist/server/{loadContent-eaTY7RPg.mjs → servicePageContent-B-FezJmH.mjs} +709 -453
- package/dist/server/{validation-CLq5cw6M.mjs → validation-3jOzYdPL.mjs} +3 -3
- package/dist/server/{version-oPbhAx8E.mjs → version-8t0o6_jd.mjs} +1 -1
- package/package.json +1 -1
- package/dist/_dts/footerPageOutline-D_XbQW_o.d.ts +0 -256
- package/dist/_dts/resolvePageContent-YT6ndha1.d.ts +0 -162
- package/dist/client/LocationMapActions-CiMtl1Ha.mjs +0 -62
- package/dist/client/MapDrawingSvg-BCZa3dpf.mjs +0 -200
- package/dist/client/course-DBEU9IA9.mjs +0 -244
- package/dist/client/duration-Q6_QNgiv.mjs +0 -37
- package/dist/client/event-details.client-BwASwKIq.mjs +0 -53
- package/dist/client/eventDetails-BzGOVDI-.mjs +0 -13
- package/dist/client/runtimeResponse-CVkM0dHy.mjs +0 -3
- package/dist/client/useDiscountCodeUi-B9DODAkj.mjs +0 -237
- package/dist/client/view-DNX59QwM.mjs +0 -1372
- package/dist/server/resolvePageContent-CAELMBEJ.mjs +0 -438
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { d as siteBlockRenderContext, i as collectMediaAssetSidecar, n as buildRenderablePageOutline, o as projectRenderablePageOutline, r as buildSiteRenderSupport } from "./pageRuntimeSupport-
|
|
1
|
+
import { d as siteBlockRenderContext, i as collectMediaAssetSidecar, n as buildRenderablePageOutline, o as projectRenderablePageOutline, r as buildSiteRenderSupport } from "./pageRuntimeSupport-DyNSd2Yj.mjs";
|
|
2
2
|
import { r as requireSdkTheme } from "./themeAdmission-DGSAlFUK.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { a as loadContentFromContentResponseWithDeps, n as isPageContent } from "./loadContent-BkK1w3QQ.mjs";
|
|
4
|
+
import { r as normalizeDataLoaderSearchParams } from "./dataLoaderContext-lMRTfG5Z.mjs";
|
|
5
|
+
import { n as DEFAULT_RESOLVE_BLOCK_DATA_DEPS, o as resolveBlockDataWithDeps, r as createBlockDataLoadPolicy } from "./resolveBlockData-BN8tweTx.mjs";
|
|
5
6
|
//#region src/rendering/helpers/loadPage.ts
|
|
6
7
|
/**
|
|
7
8
|
* Server-side helper to fetch all data needed for <Page> component.
|
|
@@ -65,7 +66,7 @@ async function loadPage(params) {
|
|
|
65
66
|
}
|
|
66
67
|
async function loadPageWithDeps(deps, params) {
|
|
67
68
|
const { client, siteId, path, pageId, preview = false, dataLoaderOverrides, searchParams, forceSite } = params;
|
|
68
|
-
const [site,
|
|
69
|
+
const [site, pageRead] = await Promise.all([client.getSite({
|
|
69
70
|
id: siteId,
|
|
70
71
|
currentPath: path,
|
|
71
72
|
...forceSite ? { force: true } : {}
|
|
@@ -74,6 +75,23 @@ async function loadPageWithDeps(deps, params) {
|
|
|
74
75
|
path,
|
|
75
76
|
preview
|
|
76
77
|
})]);
|
|
78
|
+
if (pageRead.result.kind !== "cms") {
|
|
79
|
+
const content = await loadContentFromContentResponseWithDeps(deps, {
|
|
80
|
+
client,
|
|
81
|
+
siteId,
|
|
82
|
+
site,
|
|
83
|
+
contentResponse: pageRead,
|
|
84
|
+
preview,
|
|
85
|
+
dataLoaderOverrides,
|
|
86
|
+
searchParams
|
|
87
|
+
});
|
|
88
|
+
if (!isPageContent(content)) throw new Error("Expected a selected system page");
|
|
89
|
+
return {
|
|
90
|
+
...content,
|
|
91
|
+
theme: requireSdkTheme(content.theme, siteId)
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
const pageResponse = pageRead.result.content;
|
|
77
95
|
const pageData = requirePageRecord(pageResponse);
|
|
78
96
|
const support = buildSiteRenderSupport(site, collectMediaAssetSidecar(pageResponse.mediaAssets));
|
|
79
97
|
const previewStage = preview ? "preview" : "published";
|
package/dist/server/next.mjs
CHANGED
|
@@ -1,24 +1,47 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as defaultLayoutThemeRuntime, l as ThemeScope, n as toPageHydrationBootstrapConfig, r as defaultCatchAllThemeRuntime } from "./pageShared-
|
|
3
|
-
import {
|
|
4
|
-
import { i as loadContent, n as isPageContent, r as isPageSurfaceContent, t as isEntryContent } from "./loadContent-eaTY7RPg.mjs";
|
|
1
|
+
import { Ks as inferSiteDateLocale, ec as toUtcIsoDateTimeString, tc as resolveBookingBusinessTimeZone } from "./registry-DH1VrsCl.mjs";
|
|
2
|
+
import { i as defaultLayoutThemeRuntime, l as ThemeScope, n as toPageHydrationBootstrapConfig, r as defaultCatchAllThemeRuntime } from "./pageShared-DU4ETFPS.mjs";
|
|
3
|
+
import { g as createBearerAPIClient, h as sdkRequestOptions, n as installFrameworkCache, r as CircuitOpenError, t as createRiverbankClient$1 } from "./client-CGJ2ztYp.mjs";
|
|
5
4
|
import { n as MissingSdkThemeError, r as requireSdkTheme, t as MISSING_SDK_THEME_ERROR_CODE } from "./themeAdmission-DGSAlFUK.mjs";
|
|
6
|
-
import {
|
|
5
|
+
import { c as unwrapResponse, i as ApiRequestError, t as RiverbankApiError } from "./error-f4g44bKx.mjs";
|
|
6
|
+
import { i as loadContent, n as isPageContent, r as isPageSurfaceContent, t as isEntryContent } from "./loadContent-BkK1w3QQ.mjs";
|
|
7
|
+
import { a as pageReadMissReason, c as toEntrySubrouteContext, i as contentNotFound, n as contentFound, s as resolvePageContent, t as RiverbankContentLoadError } from "./resolvePageContent-DnM16_f9.mjs";
|
|
8
|
+
import { r as normalizeDataLoaderSearchParams } from "./dataLoaderContext-lMRTfG5Z.mjs";
|
|
7
9
|
import { l as isPreviewMode, o as normalizeSdkRenderingMode, s as themeRuntimeForRendering } from "./overrides-CD4d-1w7.mjs";
|
|
8
10
|
import { c as PORTAL_ENTRY_COOKIE } from "./constants-Cj7hfbrA.mjs";
|
|
11
|
+
import { t as SDK_VERSION } from "./version-8t0o6_jd.mjs";
|
|
9
12
|
import { n as generatePreviewMetadata, r as applyPageSurfaceIndexing, t as generatePageMetadata } from "./generatePageMetadata-DB_lbrZ7.mjs";
|
|
10
13
|
import { c as parsePortalEntryArrival, f as previewPortalEntryToken, l as planPortalEntryPage, s as decodePortalEntryCookieValue, t as getPortalToken, u as portalEntryFingerprint } from "./portal-B4JVkdjc.mjs";
|
|
11
|
-
import {
|
|
12
|
-
import { t as SDK_VERSION } from "./version-oPbhAx8E.mjs";
|
|
14
|
+
import { t as toRoutingInfo } from "./contentTypeResolver-B9vy8BrF.mjs";
|
|
13
15
|
import { t as appendSearchToRedirectDestination } from "./redirect-destination-Bee5ZEon.mjs";
|
|
14
|
-
import { i as Page, r as resolveBlockOverridesForPage } from "./overrideResolution-
|
|
16
|
+
import { i as Page, r as resolveBlockOverridesForPage } from "./overrideResolution-Uy9Zp2Ks.mjs";
|
|
15
17
|
import { cache } from "react";
|
|
16
18
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
17
19
|
import { BlocksIslandsHydrator } from "#sdk-rendering-client";
|
|
20
|
+
import { revalidateTag, unstable_cache } from "next/cache";
|
|
18
21
|
import { notFound, permanentRedirect, redirect } from "next/navigation";
|
|
19
22
|
import { cookies } from "next/headers";
|
|
20
23
|
import { CustomerPortal, PortalAccessState, PortalDigitalProductView, PortalEntryContent, PortalTicketView } from "#sdk-portal-client";
|
|
21
24
|
import { RedeemGiftCardRouteClient } from "#sdk-gifting-client";
|
|
25
|
+
//#region src/next/cacheAdapter.ts
|
|
26
|
+
/** Explicit server-only Next effects; no runtime module discovery or silent fallback. */
|
|
27
|
+
const nextCacheAdapter = {
|
|
28
|
+
cache: (read, keys, policy) => unstable_cache(read, keys, policy),
|
|
29
|
+
invalidateTag: (tag) => revalidateTag(tag, "max")
|
|
30
|
+
};
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region src/next/client.ts
|
|
33
|
+
/** Canonical Next server constructor: framework caching is installed by default. */
|
|
34
|
+
function createRiverbankClient(config) {
|
|
35
|
+
return createRiverbankClient$1({
|
|
36
|
+
...config,
|
|
37
|
+
frameworkCache: config.frameworkCache ?? nextCacheAdapter
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
/** Existing root/server clients retain their state when a Next rendering entry claims them. */
|
|
41
|
+
function prepareNextClient(client) {
|
|
42
|
+
return installFrameworkCache(client, nextCacheAdapter);
|
|
43
|
+
}
|
|
44
|
+
//#endregion
|
|
22
45
|
//#region src/next/requestReadMemo.ts
|
|
23
46
|
/**
|
|
24
47
|
* Metadata and the page both load the same content in one render. Next's fetch dedupe skips
|
|
@@ -44,50 +67,6 @@ function createRequestReadMemo() {
|
|
|
44
67
|
});
|
|
45
68
|
}
|
|
46
69
|
//#endregion
|
|
47
|
-
//#region src/next/resolveEventPageSubroute.ts
|
|
48
|
-
async function resolveEventPageSubroute(input) {
|
|
49
|
-
if (!isSupportedKind(input.kind) || !isPageSurfaceContent(input.content)) return null;
|
|
50
|
-
const { subject } = input.content.pageSurface;
|
|
51
|
-
if (subject.kind === "appointmentService") return null;
|
|
52
|
-
const subjectRef = subject.kind === "eventOffering" ? {
|
|
53
|
-
kind: subject.kind,
|
|
54
|
-
eventOfferingId: subject.eventOfferingId
|
|
55
|
-
} : subject;
|
|
56
|
-
try {
|
|
57
|
-
if (input.kind === "event-run") {
|
|
58
|
-
const { run } = await input.client.resolveEventRun({
|
|
59
|
-
siteId: input.siteId,
|
|
60
|
-
subject: subjectRef,
|
|
61
|
-
segment: input.segment
|
|
62
|
-
});
|
|
63
|
-
return run ? {
|
|
64
|
-
kind: "event-run",
|
|
65
|
-
run
|
|
66
|
-
} : null;
|
|
67
|
-
}
|
|
68
|
-
const { occurrence } = await input.client.resolveEventOccurrence({
|
|
69
|
-
siteId: input.siteId,
|
|
70
|
-
subject: subjectRef,
|
|
71
|
-
segment: input.segment
|
|
72
|
-
});
|
|
73
|
-
return occurrence ? {
|
|
74
|
-
kind: "event-occurrence",
|
|
75
|
-
occurrence
|
|
76
|
-
} : null;
|
|
77
|
-
} catch (error) {
|
|
78
|
-
console.warn("[createCatchAllPage] Failed to resolve Event subroute", {
|
|
79
|
-
siteId: input.siteId,
|
|
80
|
-
surfaceId: input.content.pageSurface.id,
|
|
81
|
-
segment: input.segment,
|
|
82
|
-
error: error instanceof Error ? error.message : String(error)
|
|
83
|
-
});
|
|
84
|
-
return null;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
function isSupportedKind(kind) {
|
|
88
|
-
return kind == null || kind === "event-occurrence" || kind === "event-run";
|
|
89
|
-
}
|
|
90
|
-
//#endregion
|
|
91
70
|
//#region src/next/resolveTheme.ts
|
|
92
71
|
function getFirstQueryParamValue(value) {
|
|
93
72
|
if (typeof value === "string") return value;
|
|
@@ -246,29 +225,6 @@ const RESERVED_STATIC_PATH_PATTERNS = [
|
|
|
246
225
|
function isReservedStaticPath(path) {
|
|
247
226
|
return RESERVED_STATIC_PATH_PATTERNS.some((pattern) => pattern.test(path));
|
|
248
227
|
}
|
|
249
|
-
function toOccurrenceContextFromEntrySubroute(entrySubrouteData) {
|
|
250
|
-
if (!entrySubrouteData || entrySubrouteData.kind !== "event-occurrence") return null;
|
|
251
|
-
return {
|
|
252
|
-
id: entrySubrouteData.occurrence.id,
|
|
253
|
-
seriesId: entrySubrouteData.occurrence.seriesId,
|
|
254
|
-
startsAt: entrySubrouteData.occurrence.startsAt,
|
|
255
|
-
endsAt: entrySubrouteData.occurrence.endsAt,
|
|
256
|
-
timeZone: entrySubrouteData.occurrence.timeZone,
|
|
257
|
-
capacityOverride: entrySubrouteData.occurrence.capacityOverride,
|
|
258
|
-
overrides: entrySubrouteData.occurrence.overridesJson
|
|
259
|
-
};
|
|
260
|
-
}
|
|
261
|
-
function toEntrySubrouteContext(entrySubrouteData) {
|
|
262
|
-
if (entrySubrouteData?.kind === "event-run") return {
|
|
263
|
-
kind: "event-run",
|
|
264
|
-
run: entrySubrouteData.run
|
|
265
|
-
};
|
|
266
|
-
const occurrence = toOccurrenceContextFromEntrySubroute(entrySubrouteData);
|
|
267
|
-
return occurrence ? {
|
|
268
|
-
kind: "event-occurrence",
|
|
269
|
-
occurrence
|
|
270
|
-
} : null;
|
|
271
|
-
}
|
|
272
228
|
//#endregion
|
|
273
229
|
//#region src/next/content-load-failure.ts
|
|
274
230
|
const SdkContentLoadError = RiverbankContentLoadError;
|
|
@@ -443,6 +399,7 @@ async function renderSdkContent(input) {
|
|
|
443
399
|
if (isPageContent(input.content)) return {
|
|
444
400
|
kind: "rendered",
|
|
445
401
|
node: await render(input.content.page, {
|
|
402
|
+
...input.content.dataContext,
|
|
446
403
|
previewStage,
|
|
447
404
|
now
|
|
448
405
|
})
|
|
@@ -581,7 +538,6 @@ async function renderContentLoadFailure(runtime, error) {
|
|
|
581
538
|
async function resolveContentForPath(runtime, args) {
|
|
582
539
|
return resolvePageContent({
|
|
583
540
|
path: args.path,
|
|
584
|
-
contentTypes: runtime.contentTypes,
|
|
585
541
|
loadContent: async (contentPath) => {
|
|
586
542
|
try {
|
|
587
543
|
return contentFound(await loadContent({
|
|
@@ -597,18 +553,9 @@ async function resolveContentForPath(runtime, args) {
|
|
|
597
553
|
} catch (error) {
|
|
598
554
|
const sdkError = await toSdkContentLoadError(runtime, error, contentPath);
|
|
599
555
|
if (sdkError) throw sdkError;
|
|
600
|
-
return contentNotFound();
|
|
556
|
+
return contentNotFound(pageReadMissReason(error instanceof RiverbankApiError ? error.tag : void 0));
|
|
601
557
|
}
|
|
602
|
-
}
|
|
603
|
-
resolveSubroute: ({ content, kind, segment }) => resolveEventPageSubroute({
|
|
604
|
-
siteId: runtime.options.config.siteId,
|
|
605
|
-
client: args.client,
|
|
606
|
-
content,
|
|
607
|
-
kind,
|
|
608
|
-
segment
|
|
609
|
-
}),
|
|
610
|
-
getContentTypeKey: (content) => isPageSurfaceContent(content) ? content.pageSurface.contentSource.contentTypeKey : isEntryContent(content) ? content.entry.type ?? null : null,
|
|
611
|
-
shouldAttemptSubroute: defaultShouldAttemptEntrySubroute
|
|
558
|
+
}
|
|
612
559
|
});
|
|
613
560
|
}
|
|
614
561
|
async function redirectIfConfigured(runtime, args) {
|
|
@@ -706,7 +653,7 @@ async function renderResolvedCatchAllPage(runtime, input) {
|
|
|
706
653
|
async function renderCatchAllPage(runtime, props) {
|
|
707
654
|
const { path, searchParams } = await readCatchAllRequest(runtime, props);
|
|
708
655
|
if (isReservedStaticPath(path)) return notFound();
|
|
709
|
-
const client = runtime.withRequestReadMemo(runtime.options.getClient());
|
|
656
|
+
const client = runtime.withRequestReadMemo(prepareNextClient(runtime.options.getClient()));
|
|
710
657
|
const apiBaseUrl = client.getBaseUrl();
|
|
711
658
|
const portalToken = runtime.enablePortal ? getPortalToken(await cookies()) : null;
|
|
712
659
|
let resolution;
|
|
@@ -726,7 +673,7 @@ async function renderCatchAllPage(runtime, props) {
|
|
|
726
673
|
if (!resolution.found) {
|
|
727
674
|
if (resolution.reason === "load-failed") throwUpstreamContentError(path, resolution);
|
|
728
675
|
console.debug("[createCatchAllPage] Resolution failed:", path, resolution.reason);
|
|
729
|
-
await redirectIfConfigured(runtime, {
|
|
676
|
+
if (resolution.reason === "not-found") await redirectIfConfigured(runtime, {
|
|
730
677
|
path,
|
|
731
678
|
client,
|
|
732
679
|
searchParams
|
|
@@ -736,7 +683,7 @@ async function renderCatchAllPage(runtime, props) {
|
|
|
736
683
|
return renderResolvedCatchAllPage(runtime, {
|
|
737
684
|
apiBaseUrl,
|
|
738
685
|
content: resolution.content,
|
|
739
|
-
entrySubrouteContext: toEntrySubrouteContext(resolution.
|
|
686
|
+
entrySubrouteContext: toEntrySubrouteContext(resolution.content.pageRead.result.kind === "cms" ? resolution.content.pageRead.result.eventSubroute : null),
|
|
740
687
|
path,
|
|
741
688
|
portalToken,
|
|
742
689
|
searchParams
|
|
@@ -754,6 +701,11 @@ function metadataPage(content, preview) {
|
|
|
754
701
|
};
|
|
755
702
|
return { name: "Page" };
|
|
756
703
|
}
|
|
704
|
+
function metadataSurfaceIndexing(content) {
|
|
705
|
+
if (isPageSurfaceContent(content)) return { surfaceIndexing: content.pageSurface.subject };
|
|
706
|
+
const destination = content.pageRead.result;
|
|
707
|
+
return destination.kind === "system_service" && destination.indexability === "noindex" ? { surfaceIndexing: { noindex: true } } : {};
|
|
708
|
+
}
|
|
757
709
|
async function resolveCatchAllMetadata(runtime, input) {
|
|
758
710
|
if (runtime.options.customMetadata) return runtime.options.customMetadata({
|
|
759
711
|
content: input.content,
|
|
@@ -770,9 +722,9 @@ async function resolveCatchAllMetadata(runtime, input) {
|
|
|
770
722
|
return generator({
|
|
771
723
|
page: metadataPage(input.content, runtime.preview),
|
|
772
724
|
site: input.content.site,
|
|
773
|
-
path: input.path,
|
|
725
|
+
path: input.content.pageRead.result.kind === "cms" ? input.path : input.content.pageRead.result.canonicalPath,
|
|
774
726
|
siteUrl: resolvedUrl,
|
|
775
|
-
...
|
|
727
|
+
...metadataSurfaceIndexing(input.content),
|
|
776
728
|
...titleMode ? { titleMode } : {}
|
|
777
729
|
});
|
|
778
730
|
}
|
|
@@ -782,7 +734,7 @@ async function generateCatchAllMetadata(runtime, props) {
|
|
|
782
734
|
try {
|
|
783
735
|
const resolution = await resolveContentForPath(runtime, {
|
|
784
736
|
path,
|
|
785
|
-
client: runtime.withRequestReadMemo(runtime.options.getClient()),
|
|
737
|
+
client: runtime.withRequestReadMemo(prepareNextClient(runtime.options.getClient())),
|
|
786
738
|
purpose: {
|
|
787
739
|
kind: "metadata",
|
|
788
740
|
searchParams
|
|
@@ -1352,6 +1304,14 @@ function createRedeemPage(options) {
|
|
|
1352
1304
|
* Provides opinionated factories for common Next.js patterns, reducing
|
|
1353
1305
|
* boilerplate while maintaining full customizability through escape hatches.
|
|
1354
1306
|
*
|
|
1307
|
+
* Construct Next server clients with framework caching installed by default:
|
|
1308
|
+
* ```ts
|
|
1309
|
+
* import { createRiverbankClient } from '@riverbankcms/sdk/next';
|
|
1310
|
+
* const client = createRiverbankClient({
|
|
1311
|
+
* apiKey, baseUrl,
|
|
1312
|
+
* });
|
|
1313
|
+
* ```
|
|
1314
|
+
*
|
|
1355
1315
|
* @example Basic catch-all page
|
|
1356
1316
|
* ```tsx
|
|
1357
1317
|
* // src/app/[[...slug]]/page.tsx
|
|
@@ -1411,4 +1371,4 @@ function getISRConfig() {
|
|
|
1411
1371
|
};
|
|
1412
1372
|
}
|
|
1413
1373
|
//#endregion
|
|
1414
|
-
export { ISR_REVALIDATE_SECONDS, InvalidCatchAllRenderingOptionsError, MISSING_SDK_THEME_ERROR_CODE, MissingSdkThemeError, RiverbankContentLoadError, SdkContentLoadError, classifyContentLoadError, createCatchAllPage, createGenerateStaticParams, createPortalContinuePage, createPortalDigitalProductFilePage, createPortalDigitalProductPage, createPortalPage, createPortalTicketPage, createRedeemPage, createRobots, createSitemap, generateAllStaticParams, getISRConfig, isSdkContentLoadError, normalizeStaticRoutePath, pathToSlugArray, renderPortalDigitalProductFilePage, renderPortalDigitalProductPage, renderPortalEntryContent, renderPortalTicketPage, routesToStaticParams, toContentLoadFailureLogFields, validateStaticParamsEnv };
|
|
1374
|
+
export { ISR_REVALIDATE_SECONDS, InvalidCatchAllRenderingOptionsError, MISSING_SDK_THEME_ERROR_CODE, MissingSdkThemeError, RiverbankContentLoadError, SdkContentLoadError, classifyContentLoadError, createCatchAllPage, createGenerateStaticParams, createPortalContinuePage, createPortalDigitalProductFilePage, createPortalDigitalProductPage, createPortalPage, createPortalTicketPage, createRedeemPage, createRiverbankClient, createRobots, createSitemap, generateAllStaticParams, getISRConfig, isSdkContentLoadError, nextCacheAdapter, normalizeStaticRoutePath, pathToSlugArray, renderPortalDigitalProductFilePage, renderPortalDigitalProductPage, renderPortalEntryContent, renderPortalTicketPage, routesToStaticParams, toContentLoadFailureLogFields, validateStaticParamsEnv };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as PageContent } from "./pageShared-
|
|
1
|
+
import { t as PageContent } from "./pageShared-DU4ETFPS.mjs";
|
|
2
2
|
import { t as allOutlineBlocks } from "./pageRegions-BaeEF2MU.mjs";
|
|
3
3
|
import { i as lazyBlockOverrideSymbol } from "./overrides-CD4d-1w7.mjs";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as listBlockDescriptors, pi as parseBackgroundContent } from "./registry-DH1VrsCl.mjs";
|
|
2
2
|
import { i as createRichTextDoc } from "./richTextSchema-QLaQrbII.mjs";
|
|
3
3
|
import { t as getFlattenedRepeaterFields } from "./repeaterFields-MIz7r1ez.mjs";
|
|
4
4
|
import { r as createDebugWriter } from "./debug-DXUyrE0T.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Dt as parseThemeColorToken, G as hexToRgb, J as oklchToHexGamut, K as oklabToOklch, P as getTextColorForBackground, R as contrastRatio, X as rgbToHex, Z as srgbToOklab, q as oklabToSrgb } from "./resolveButtonColourStates--6yJp9Tq.mjs";
|
|
2
|
-
import { $ as resolveCardListSchedule,
|
|
2
|
+
import { $ as resolveCardListSchedule, At as groupOfferingRunsByCourse, Ba as styleSectionBackgroundForColour, Bn as isBookableEvent, Bo as resolveSectionBackground, Br as formatEventDepositNote, Bt as ThemedButtonLink, Ci as lookCarouselRegionTransform, Cn as groupEventsByDate, Co as sectionShapeForGround, Di as asPartialObject, Ei as lookSkinSlotTransform, Er as listLookSlot, Fs as resolveWholeSeriesBookingPhase, Ga as resolvePublishedLook, Gn as getEventAvailabilityStatus, Gr as BACKGROUND_POSITION_PRESET_VALUES, Gs as formatDateTimeRange, Ha as readStoredMode, Hn as formatEventRemainingPlaces, Ir as classPricesCopySchema, Jt as weekColumnDays, Kn as isEventFull, Kr as getAnchorClasses, Lo as applyLookPhotoTreatment, Lr as classPricesDataSchema, Ma as arrangementAppearancePresets, Mr as heroMorePhotoCount, Ns as nextLiveRunSessionStartMs, Oa as heroPhotoPaintsGround, Oi as createTransformRegistry, Oo as boundaryRuntimeMetricsForDecorativeTransition, Ps as orderedLiveRunSessions, Qs as parseBookingLocalDate, Ro as deriveSectionGround, Rr as resolveClassPriceItems, Sa as resolveLookSurfacePresentation, Sn as formatTime, Ti as lookQuoteLimitTransform, To as sectionShapeHook, Ua as resolveEffectiveArrangement, Un as formatTotalCapacity, Uo as stripStaleTransitionStyleGroup, Ur as formatEventPriceDisplay, Us as formatDate, Va as arrangementManifestFromVariants, Vn as canJoinEventWaitlistOnAnyMode, Vo as sectionSurfaceBase, Vr as formatEventPrice, Wa as resolveModeArrangement, Wn as getEventAvailability, Wo as themeV2CompilerOwnedFieldNames, Wr as formatEventStartingPrice, Ws as formatDateRange, Wt as buildEventListWeek, X as CardListContentPart, Xt as formatBookingSchedulePresentation, Ya as deriveSiteStyleBlockPolicy, Ys as compareLocalScheduleDates, Yt as resolveRuntimeEventDestination, Z as CardListLeadDate, Zs as getLocalScheduleDate, _i as resolveSurfaceForegroundStyles, aa as eventReadinessLoaderKey, at as computeMediaTransformStyle, bi as isSemanticSpacing, bn as formatEventTimeRange, co as getGradientPreset, cr as mediaTransforms, cs as formatDateKey, da as eventScopeQuery, dn as eventLocalDateKey, dr as layoutTransforms, dt as systemCustomizeFacetDefinitionsForBlock, ea as augmentManifest, ec as toUtcIsoDateTimeString, et as selectCardListPresentation, fa as eventScopeQueryKeys, ga as resolveEventCalendarReadPlan, gc as arrangementSlotNames, gi as resolveSectionSurfaceForeground, gn as formatEventDateParts, ha as eventCalendarListGroupingDecision, hc as parseGradientPresetId, hi as parseRuntimeBackgroundContent, hn as formatEventCompactDateRail, ht as EventQuickFacts, ia as blockChecksForEvents, ic as formatBookingPriceDisplay, la as eventDiscoveryFilterKeys, lc as resolveExactOrFreePriceDisplay, li as boxStylesTransforms, ln as eventCalendarWeekStart, lr as headerRuntimeTransforms, ma as resolveCalendarReadProfile, mi as parseBackgroundOverlay, mr as formattingTransforms, ms as isToday, nn as formatEventLocation, nr as contentTransforms, oa as eventReadinessQuery, on as closedRunCopy, or as readRuntimeNow, pa as resolveEventScope, pi as parseBackgroundContent, pr as uiTransforms, qt as groupEventsByWeek, rt as ImagePresets, sa as eventReadinessQueryKeys, so as gradientToCss, t as getBlockDefinition, ta as isObjectRecord, tc as resolveBookingBusinessTimeZone, tt as MediaNodeServer, ua as eventScopeLoaderParam, uc as resolvePricingOptionsPriceDisplay, un as eventDateOptions, ur as chromeLogoTransforms, ut as resolveArrangementKnobs, vi as resolveBackgroundColorValue, wi as lookLeadSlotTransform, wn as resolveEventTimeZone, wo as sectionShapeFromContent, wr as listItemPresentation, xa as lookPresentationOnPalette, xn as formatEventWeekdayTime, yn as formatEventRunDates, z as combinedLookSchema, zi as ClockIcon, zn as hasEventBookingClosedEarly, zo as parseCanonicalRuntimeBackground, zr as formatCoursePrice } from "./registry-DH1VrsCl.mjs";
|
|
3
3
|
import { A as resolveOnColorForThemeToken, G as resolveConcreteColorHex, M as resolveTokenOrCssColorValue, k as isCssColorLiteral, n as parseSurfaceTree } from "./accessibleSurfaces-CM3QANtw.mjs";
|
|
4
4
|
import { D as asSiteStyleId, O as makeBoundaryId, S as asDesignBlockId, T as asLayoutVariantKey } from "./customCss-BZ8YSrQg.mjs";
|
|
5
5
|
import { o as runtimeMediaSchema } from "./media-luf7RF22.mjs";
|
|
@@ -3351,6 +3351,11 @@ function describePublicRefundPolicy(refunds) {
|
|
|
3351
3351
|
case "cutoff": return `Cancel up to ${formatCutoff(refunds.cutoffHours)} before it starts for a full refund ${refundDestination}.`;
|
|
3352
3352
|
}
|
|
3353
3353
|
}
|
|
3354
|
+
/**
|
|
3355
|
+
* A free booking has nothing to refund. A refund cutoff only decides what comes back,
|
|
3356
|
+
* so people can still cancel right up to the start.
|
|
3357
|
+
*/
|
|
3358
|
+
const PUBLIC_FREE_CANCELLATION = "You can cancel any time before it starts.";
|
|
3354
3359
|
function formatCutoff(cutoffHours) {
|
|
3355
3360
|
const hours = Math.max(0, Math.round(cutoffHours));
|
|
3356
3361
|
if (hours % 24 === 0) {
|
|
@@ -4742,4 +4747,4 @@ function plannedSlotParents(entry, look) {
|
|
|
4742
4747
|
return arrangementSlotParentsForManifest(entry.definition.manifest, look.look.target, arrangement, look.look.structure.eventRows);
|
|
4743
4748
|
}
|
|
4744
4749
|
//#endregion
|
|
4745
|
-
export {
|
|
4750
|
+
export { formatEventDuration as $, OfferingCourseCards as A, EventItem as B, resolvePageRouteTarget as C, EVENT_REGISTRATION_ANCHOR_ID as D, EventHeader as E, createEditorPresentationPageReader as F, eventDisplayTitleText as G, CalendarIcon as H, createPresentationPageReader as I, buildMonthDay as J, formatCourseDatesAfter as K, EmptyState as L, offeringDatesBySeries as M, deriveEventScheduleSummary as N, MonthLookView as O, derivePreviewRunSchedule as P, formatEventTeacherLine as Q, CardListCollection as R, resolveEntryRouteTarget as S, lookPartShown as T, MapPinIcon as U, eventCategoryBadge as V, eventDisplayTitle as W, formatEventQuickDate as X, resolveMonthSelectedDay as Y, selectQuickDateEvents as Z, publicAppointmentLocationSchema as _, joinSlotKey as a, arrangementContentFacts as at, describePublicRefundPolicy as b, createCustomBlockRegistry as c, buildThemeTokens as ct, resolveLinkedEntryInlineFieldEligibility as d, resolveEventCardBooking as et, builtinTransformDefinitions as f, formatAppointmentPrice as g, formatAppointmentLocation as h, composePageJoins as i, selectBlockContent as it, eventCardListContent as j, EventListingFrameView as k, buildLinkedContentEditTarget as l, defaultThemeTokens as lt, formatAppointmentDuration as m, createPageRenderPlanReader as n, resolveEventLinkProps as nt, renderedJoinLayout as o, lookFillPartsFromContent as ot, defaultTransforms as p, formatCourseSessions as q, planArrangementContent as r, parseStoredVariant as rt, retargetJoinsAcrossOmissions as s, resolveRuntimeSection as st, buildPageRenderPlan as t, resolveEventCta as tt, coerceLinkedContentEntriesPayload as u, publicAppointmentPricingSchema as v, resolveRouteTarget as w, resolveAuthoredLinkHref as x, PUBLIC_FREE_CANCELLATION as y, CardListItems as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { As as isRecord$1, Cs as linkSchema, Ji as parseInlineTextFromUnknown, Jo as DEFAULT_MEDIA_FIELD_KINDS, Ki as inlineTextToPlainText, Ni as parseBlockIconValue, Qi as parseFieldDefinitions, Xi as normalizeSelectSource, Yi as plainTextToInlineText, ec as toUtcIsoDateTimeString, es as isAcceptedRepeaterGridSpan, f as sanitizeNewsletterSignupPublicContent, fc as parseContentVersionId, is as resolveRepeaterGridSpanFieldId, ns as resolveRepeaterGridColumnFieldId, rs as resolveRepeaterGridRowFieldId, t as getBlockDefinition, tc as resolveBookingBusinessTimeZone, ts as parseRepeaterGridInteger } from "./registry-DH1VrsCl.mjs";
|
|
2
2
|
import { c as runtimeBoxBackgroundSchema, s as boxBackgroundSchema } from "./schema-BpsqaSSU.mjs";
|
|
3
3
|
import { f as PUBLIC_FILE_FIELD_KINDS, h as mediaIdentifierSchema, i as mediaSchema, o as runtimeMediaSchema } from "./media-luf7RF22.mjs";
|
|
4
4
|
import { c as publicLocationSchema, i as locationValueSchema, s as projectPublicLocation, u as trimmedStringOrNull } from "./mapLocation-BM5WX7FY.mjs";
|
|
@@ -1585,10 +1585,42 @@ function nestedUnknownManifestFieldPaths(plan, value, path) {
|
|
|
1585
1585
|
return unknownManifestFieldPaths((isPlainRecord(item) ? plan.repeatedItemVariants?.find((entry) => entry.typeId === item._type) : void 0)?.fields ?? plan.repeatedItemPlan ?? [], item, [...path, index], plan.repeatedItemVariants ? "_type" : void 0);
|
|
1586
1586
|
});
|
|
1587
1587
|
}
|
|
1588
|
+
/**
|
|
1589
|
+
* Reports declared media fields carrying environment-specific keys.
|
|
1590
|
+
*
|
|
1591
|
+
* Split out of stored admission for callers that must prove portability of
|
|
1592
|
+
* content whose *shape* is legitimately incomplete — a template block's stored
|
|
1593
|
+
* defaults, for instance, where required values only arrive through entry
|
|
1594
|
+
* bindings. Returns the offending paths, empty when the content is portable.
|
|
1595
|
+
*/
|
|
1596
|
+
function findNonPortableManifestMediaPaths(contract, content) {
|
|
1597
|
+
return contract[compiledManifestContentContract].findNonPortableMediaPaths(content);
|
|
1598
|
+
}
|
|
1588
1599
|
/** Presentation recovery preserves authored payloads and does not admit them for a write. */
|
|
1589
1600
|
function projectStoredManifestContentForRendering(contract, content) {
|
|
1590
1601
|
return projectLayoutGridPlansForRendering(contract[compiledManifestContentContract].plans, content);
|
|
1591
1602
|
}
|
|
1603
|
+
/** Public reads alone may project invalid grid geometry. All other stored-shape and portability checks remain strict. */
|
|
1604
|
+
function admitStoredManifestContentForRendering(contract, content) {
|
|
1605
|
+
const state = contract[compiledManifestContentContract];
|
|
1606
|
+
const paths = state.findNonPortableMediaPaths(content);
|
|
1607
|
+
if (paths.length > 0) return {
|
|
1608
|
+
ok: false,
|
|
1609
|
+
error: {
|
|
1610
|
+
kind: "non_portable_media",
|
|
1611
|
+
paths
|
|
1612
|
+
}
|
|
1613
|
+
};
|
|
1614
|
+
const projected = projectStoredManifestContentForRendering(contract, content);
|
|
1615
|
+
const parsed = z.safeParse(state.renderSourceSchema, projected);
|
|
1616
|
+
return parsed.success ? {
|
|
1617
|
+
ok: true,
|
|
1618
|
+
value: projected
|
|
1619
|
+
} : {
|
|
1620
|
+
ok: false,
|
|
1621
|
+
error: zodAdmissionError(parsed.error)
|
|
1622
|
+
};
|
|
1623
|
+
}
|
|
1592
1624
|
/** Validates raw editor state without granting a stored-content proof. */
|
|
1593
1625
|
function validateManifestDraft(contract, data) {
|
|
1594
1626
|
const parsed = z.safeParse(contract[compiledManifestContentContract].draftSchema, data);
|
|
@@ -1606,6 +1638,22 @@ function validateManifestDraft(contract, data) {
|
|
|
1606
1638
|
};
|
|
1607
1639
|
}
|
|
1608
1640
|
/**
|
|
1641
|
+
* Applies a pure runtime projection to admitted stored content and validates
|
|
1642
|
+
* the resulting render shape before granting the renderable proof.
|
|
1643
|
+
*/
|
|
1644
|
+
function deriveRenderableManifestContent(contract, stored, project) {
|
|
1645
|
+
const state = contract[compiledManifestContentContract];
|
|
1646
|
+
const projected = projectLayoutGridPlansForRendering(state.plans, project(stored));
|
|
1647
|
+
const parsed = z.safeParse(state.renderSchema, projected);
|
|
1648
|
+
return parsed.success ? {
|
|
1649
|
+
ok: true,
|
|
1650
|
+
value: parsed.data
|
|
1651
|
+
} : {
|
|
1652
|
+
ok: false,
|
|
1653
|
+
error: zodAdmissionError(parsed.error)
|
|
1654
|
+
};
|
|
1655
|
+
}
|
|
1656
|
+
/**
|
|
1609
1657
|
* Re-admits renderable content after a transport boundary has erased its
|
|
1610
1658
|
* compile-time proof. Unlike write admission, this never canonicalizes or
|
|
1611
1659
|
* grants a stored proof, so hydrated media cannot flow back to persistence.
|
|
@@ -1923,4 +1971,4 @@ function sanitizeNullableSdkRuntimeBlockContent(blockKind, content) {
|
|
|
1923
1971
|
return content ? sanitizeSdkRuntimeBlockContent(blockKind, content) : null;
|
|
1924
1972
|
}
|
|
1925
1973
|
//#endregion
|
|
1926
|
-
export {
|
|
1974
|
+
export { MQ_MD_UP as A, projectRepeaterGridLayout as C, resolveRepeaterGridAcceptedSpans as D, normalizeRepeaterGridSpan as E, MQ_SM_UP as M, MQ_TABLET_ONLY as N, MQ_LG_UP as O, readPublishedBlockPlacement as P, fieldPlanToZod as S, flowRepeaterGridItems as T, findNonPortableManifestMediaPaths as _, invalidRenderableBlock as a, admitLayoutGridForPlan as b, readSdkPreviewPublishedPlacement as c, siteBlockRenderContext as d, resolveSiteCustomBlocks as f, deriveRenderableManifestContent as g, compileManifestContentContract as h, collectMediaAssetSidecar as i, MQ_SM_DOWN as j, MQ_MD_DOWN as k, resolveSdkBlockManifest as l, admitTransportedRenderableManifestContent as m, buildRenderablePageOutline as n, projectRenderablePageOutline as o, admitStoredManifestContentForRendering as p, buildSiteRenderSupport as r, readInvalidBlockAdmission as s, buildPageOutline as t, sanitizeSdkRuntimeBlockContent as u, registeredManifestContentContract as v, projectRepeaterGridLayoutForRendering as w, deriveFieldValidationPlan as x, validateManifestDraft as y };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { Dt as parseThemeColorToken, Et as parseColorTokenParts, G as hexToRgb, R as contrastRatio, a as formatButtonColourContractError, at as surfaceForegroundValue, c as DEFAULT_BUTTON_SIZES, ct as surfaceInkStyle, d as generateShadowValue$1, et as SURFACE_INK_CSS_VARS, f as DEFAULT_VARIANT_ALIAS_ID, ft as cssVarValue, g as createStandardButtonSurfacePolicy, gt as textColorValue, h as buttonSizeNameSchema, ht as textColorStyle, i as BUTTON_CONTRAST_POLICY, j as expandPalette, mt as rgbColorValue, n as compileButtonColourStates, nt as surfaceForegroundDeclarations, pt as mergeStyles, r as resolveSolidButtonColour, rt as surfaceForegroundInputFromResolved, s as BORDER_WIDTH_MAP, st as surfaceInkDeclarations, u as FONT_SIZE_MAP, ut as backgroundColorStyle, v as unsafeAsOpaqueButtonColourToken } from "./resolveButtonColourStates--6yJp9Tq.mjs";
|
|
2
|
-
import { $ as
|
|
3
|
-
import { $
|
|
2
|
+
import { $ as formatEventDuration, A as OfferingCourseCards, B as EventItem, C as resolvePageRouteTarget, D as EVENT_REGISTRATION_ANCHOR_ID, E as EventHeader, F as createEditorPresentationPageReader, G as eventDisplayTitleText, H as CalendarIcon, I as createPresentationPageReader, J as buildMonthDay, K as formatCourseDatesAfter, L as EmptyState, M as offeringDatesBySeries, N as deriveEventScheduleSummary, O as MonthLookView, P as derivePreviewRunSchedule, Q as formatEventTeacherLine, R as CardListCollection, S as resolveEntryRouteTarget, T as lookPartShown, U as MapPinIcon, V as eventCategoryBadge, W as eventDisplayTitle, X as formatEventQuickDate, Y as resolveMonthSelectedDay, Z as selectQuickDateEvents, _ as publicAppointmentLocationSchema, a as joinSlotKey, ct as buildThemeTokens, d as resolveLinkedEntryInlineFieldEligibility, et as resolveEventCardBooking, g as formatAppointmentPrice, h as formatAppointmentLocation, i as composePageJoins, j as eventCardListContent, k as EventListingFrameView, l as buildLinkedContentEditTarget, lt as defaultThemeTokens, m as formatAppointmentDuration, n as createPageRenderPlanReader, nt as resolveEventLinkProps, o as renderedJoinLayout, p as defaultTransforms, q as formatCourseSessions, rt as parseStoredVariant, s as retargetJoinsAcrossOmissions, tt as resolveEventCta, v as publicAppointmentPricingSchema, w as resolveRouteTarget, z as CardListItems } from "./pageRenderPlan-JzxBnqfV.mjs";
|
|
3
|
+
import { $i as PUBLIC_DOWNLOAD_MEDIA_TYPES, $n as composeHeaderSectionWrapperClassName, $r as singleButtonFragment, $s as parseLocalScheduleTime, $t as eventOnlinePlace, A as membershipClassesLabel, Aa as headerRootIsTransparent, Ai as el, An as isOrdinaryPublicEvent, Ar as Grid, At as groupOfferingRunsByCourse, B as eventListingBlockDefinition, Bi as FileArchiveIcon, Bn as isBookableEvent, Br as formatEventDepositNote, Bs as sameMailingListPlacementTargeting, Bt as ThemedButtonLink, C as buildCartInteractiveIslandProps, Ca as selectItemSurfacePresentation, Cn as groupEventsByDate, Cr as defineProgressiveBlockRuntime, Ct as normalizeEventRegistrationPageSurfaceSubject, D as buildShopInteractiveIslandProps, Da as readOpeningToneProjection, Dn as hasCancelledRegistrationDate, Dr as lookListPresentationSchemaShape, Ds as loadedReadinessFact, E as buildProductListInteractiveIslandProps, Ea as effectiveHeaderNavLinkStyle, En as cancelledDateCopy, Er as listLookSlot, Es as hiddenFromVisitors, F as offeringsCatalogueShape, Fi as ArrowDownIcon, Fn as planWholeSeriesRunSelection, Fo as anglePolygonCss, Fs as resolveWholeSeriesBookingPhase, Ft as resolveOfferingsPreviewGroupCta, G as eventCollectionDisplaySchemaShape, Gi as PlusIcon, Gn as getEventAvailabilityStatus, Gt as eventListWeekDays, H as buildEventCollectionDisplay, Hi as FileSpreadsheetIcon, Hn as formatEventRemainingPlaces, Hr as formatEventPriceAmount, Hs as EVENT_ADDRESS_AFTER_BOOKING_LABEL, Ht as getIconComponent, I as eventCalendarBlockDefinition, Ii as ChevronDownIcon, Io as transitionCatalogueEntries, Is as buildMailingListSignupBlockSourceRef, It as resolveOfferingsPreviewGroups, J as catalogueEventCardProps, Ji as parseInlineTextFromUnknown, Jn as FEATURE_CARD_ICON_TREATMENTS, Jr as headingFragment, Js as toScheduledBookingDateTime, K as eventCollectionHydrationSchema, Ki as inlineTextToPlainText, Kn as isEventFull, Kt as eventWeekGroupingContext, L as buildEventCalendarInteractiveIslandProps, Li as CircleMinusIcon, Ln as resolveSelectionBookingClosedDetail, Ls as parseMailingListRuntimeContext, Lt as resolveOfferingsRenderInput, M as offeringsPreviewBlockDefinition, Mi as buildGeneratedBlockIconRenderAssetLookupFromUnknown, Mn as planOrdinarySeriesSelection, Ms as CANCELLED_SESSION_STATUS, Mt as offeringRunLifecycle, N as publicRouteCandidatesSchema, Na as arrangementLookHooks, Ni as parseBlockIconValue, Nn as planWholeSeriesParentBooking, Nt as offeringsListingFor, O as shopProductPresentation, On as eventOccurrenceContext, Oo as boundaryRuntimeMetricsForDecorativeTransition, Or as resolvedItemSurfaceProps, Os as pageTemplateFromEntry, Ot as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, P as buildOfferingsCatalogueListing, Pi as resolveBlockIconRenderValue, Pn as planWholeSeriesParentSelection, Ps as orderedLiveRunSessions, Pt as readOfferingsGrouping, Q as cardListPresentationSchemaShape, Qi as parseFieldDefinitions, Qr as blogFeaturedPostFragment, Qt as browserReadAuthoritySchema, R as buildEventCalendarListingDisplay, Ri as CirclePlusIcon, Rn as selectionRepresentativeEvent, Rt as ThemedAuthoredButton, S as shopBlockDefinition, Si as defineFragment, Sn as formatTime, Sr as defineClientOwnedBlockRuntime, St as previewStageSchema, T as buildProductDetailInteractiveIslandProps, Ta as authoredHeaderLinkForeground, Tn as bookingPageKindSchema, Tr as listLookControl, Ts as admitReadinessFacts, U as buildEventCollectionHydration, Ua as resolveEffectiveArrangement, Ui as FileTextIcon, Un as formatTotalCapacity, Us as formatDate$1, Ut as SpinnerNode, V as buildEventListingInteractiveIslandProps, Va as arrangementManifestFromVariants, Vi as FileAudioIcon, Vr as formatEventPrice, Vt as ThemedDownloadLink, W as buildEventCollectionListingDisplay, Wi as MinusIcon, Wt as buildEventListWeek, X as CardListContentPart, Xn as shouldReserveFeatureCardIconZone, Xr as faqAccordionFragment, Xs as getBookingLocalDateKey, Y as listingEventCardProps, Yn as resolveFeatureCardGeneratedIconSizePx, Yr as cardFragment, Yt as resolveRuntimeEventDestination, Zr as faqHeadingFragment, Zt as bookingPresentation, _ as buildGiftingInteractiveIslandProps, _a as parseThemeButtonVariantId, _c as TokenResolver, _n as formatEventHourLabel, _o as generateInteractiveChildInheritanceCSS, _r as buildFormInteractiveIslandProps, _s as blockBookingPaymentTermsSchema, _t as getContainerClass, a as LOCATION_MAP_LOADER_KEYS, aa as eventReadinessLoaderKey, ac as isPublicEventPricingOptionDisplayable, ai as heroCtaRowFragment, an as closedDatesCopy, ar as teamMemberCardBiography, as as getLocalDateKey, b as productDetailBlockDefinition, ba as resolveHeaderRootForeground, bn as formatEventTimeRange, br as defineInteractiveIslandMetaKeys, bs as beforeBookingQuestionsPresentationSchema, bt as resolveEventRegistrationEventSource, c as normalizeLocationMapSource, ca as eventReadinessResultSchema, cc as publicEventPricingType, ci as heroCopyFragment, cn as buildCalendarViewport, cs as formatDateKey, d as newsletterSignupBlockDefinition, dc as formatCurrencyAmount, di as normalizeBoxStylesBorder, do as generateFooterCss, ds as getWeekCalendarDayTuple, ec as toUtcIsoDateTimeString, ei as formEmbedFragment, en as eventPlaceName, er as markEditableSurfaceForwarding, fi as resolveCardRoleForBoxStyles, fn as formatCalendarTitle, fo as buildTextContrastShadow, fr as staticHeaderChromeRuntime, fs as getWeekCalendarDays, ft as buildResolveImageUrlContext, g as giftingBlockDefinition, gn as formatEventDateParts, go as resolveEffectPaint, gr as formBlockDefinition, gs as publicEventsArraySchema, gt as getCardOrientation, h as newsletterBlockSubmissionMessage, hn as formatEventCompactDateRail, ho as resolveEffectApplications, ht as EventQuickFacts, ic as formatBookingPriceDisplay, ii as ctaCopyFragment, in as pageNavigationSchema, ir as teamMemberBiography, it as MediaPlaceholder, j as passCardListContent, ja as headerRootPaint, ji as when, jn as planDropInPanel, jr as clsx, jt as normalizeOfferingsPreviewItemLimit, k as membershipCardListContent, ka as headerNeedsPhotoShade, ki as runTransforms, kn as getPublicEventCanonicalPath, kr as itemRole, ks as unavailableReadinessFact, kt as buildOfferingsPreviewListing, l as parseLocationMapLoaderResult, lc as resolveExactOrFreePriceDisplay, lo as resolveCardRole, ls as getDayOfWeek, lt as resolvePublicMediaUrl, m as buildNewsletterFormInteractiveIslandProps, mn as formatEventClockLabel, mo as generateEffectsCSS, ms as isToday, mt as setContextResolveImageUrlContext, na as isRecord$4, nc as toBookingTimeZone, ni as testimonialsCarouselFragment, nn as formatEventLocation, nt as RichText, o as describeUnresolvedLocationMapLocation, oc as publicEventPricingCurrency, oi as ctaRowFragment, on as closedRunCopy, or as readRuntimeNow, os as getLocalMinuteOfDay, p as NEWSLETTER_SIGNUPS_PAUSED_MESSAGE, pn as formatDate, po as generateNavLinkCSS, ps as isSameCalendarDay, pt as getCurrentResolveImageUrlContext, q as eventCollectionSourceSchemaShape, qi as isInlineTextEmpty, qn as groupPublicEventsByRun, qo as bindingSchema, qr as richTextFragment, qs as formatBookingCompactEnglishTime, r as normalizeBlockContent, ra as chosenString, ri as testimonialsHeadingFragment, rn as blockSiteTermsSchema, ro as requireCuratedSiteStyle, rr as parseTeamMemberSpecialties, rt as ImagePresets, s as normalizeLocationMapProps, sc as publicEventPricingDisplay, si as isBlockButtonRole, sn as closedDateCopy, sr as resolveDateRuntimeContext, ss as addDays, t as getBlockDefinition, ta as isObjectRecord, tc as resolveBookingBusinessTimeZone, ti as formCopyFragment, tn as eventVenuePlace, tr as splitPositioningClasses, tt as MediaNodeServer, u as resolveLocationMapLocation, ui as boxStyleClassNames, un as eventDateOptions, uo as generateDefaultCardSystem, us as getOrderedDayNames, v as checkoutBlockDefinition, va as themeButtonSelector, vi as resolveBackgroundColorValue, vn as formatEventNextDateFact, vr as buildInteractiveIslandProps, vs as blockBookingConsentSchema, vt as eventRegistrationBlockDefinition, w as buildCheckoutInteractiveIslandProps, wn as resolveEventTimeZone, wr as listItemPresentation, wt as resolveEventRegistrationScopedEvents, x as productListBlockDefinition, xi as bodyCopyFragment, xr as createZodCodec, xs as sanitizeHref, xt as bookingNowSchema, y as cartBlockDefinition, ya as AFFORDANCE_SUPPRESS_CLASS, yi as ctaButton, yr as createInteractiveIslandCodec, ys as bookingConsentCarrierSchema, yt as buildEventRegistrationInteractiveIslandProps, zi as ClockIcon, zr as formatCoursePrice, zs as parseMailingListPlacementTargeting, zt as ThemedButton } from "./registry-DH1VrsCl.mjs";
|
|
4
4
|
import { B as HOVER_TEXT_THRESHOLD, C as materializeRuntimeButtonAppearance, F as resolveSurfaceForeground, G as resolveConcreteColorHex, H as contrastThresholdByPolicy, K as resolveOpaqueSurfaceHex, L as surfaceInkPublication, N as freezeOwnedThemeValue, O as mapButtonVisualAppearances, P as ownedThemeSnapshot, S as buttonTypographyDeclarations, U as inkReference, V as certifyPaint, b as buttonShadow, f as compositeHex, g as actionVariableFallback, n as parseSurfaceTree, o as resolveSurface, s as serializeSurfaceTree, v as buttonBorder, w as paddingDeclarations, x as buttonStateAppearanceDeclarations, y as buttonRadius } from "./accessibleSurfaces-CM3QANtw.mjs";
|
|
5
5
|
import { b as siteChromeBackgroundOverrideOwner, m as surfaceCardRoleValues, s as boxBackgroundSchema } from "./schema-BpsqaSSU.mjs";
|
|
6
6
|
import { l as renderableMediaAssetSchema, o as runtimeMediaSchema } from "./media-luf7RF22.mjs";
|
|
7
7
|
import { a as normalizeLocationAddressText, c as publicLocationSchema, d as mapDrawingSchema } from "./mapLocation-BM5WX7FY.mjs";
|
|
8
8
|
import { t as assertNever$1 } from "./assert-never-ku-PUn9U.mjs";
|
|
9
|
-
import { A as
|
|
9
|
+
import { A as MQ_MD_UP, M as MQ_SM_UP, N as MQ_TABLET_ONLY, O as MQ_LG_UP, c as readSdkPreviewPublishedPlacement, h as compileManifestContentContract, j as MQ_SM_DOWN, k as MQ_MD_DOWN, y as validateManifestDraft } from "./pageRuntimeSupport-DyNSd2Yj.mjs";
|
|
10
10
|
import { n as RichTextDocSchema } from "./richTextSchema-QLaQrbII.mjs";
|
|
11
11
|
import { M as opaqueSurfaceDeclarations, T as testimonialsCompositionTreatmentValues, j as opaqueSurfaceContextFromTheme, v as featureCardCompositionTreatmentValues, x as offeringsPreviewCompositionTreatmentValues, y as introCompositionTreatmentValues } from "./lookMediaFrame-CaH018pK.mjs";
|
|
12
|
-
import {
|
|
12
|
+
import { l as mergeHeaderNavTypographyPreference, u as readHeaderNavFontSizePreference } from "./bindings-Bly0dRs7.mjs";
|
|
13
13
|
import { A as generateShadowCssVars, C as INPUT_ERROR_BORDER_COLOR_VAR, D as RESOLVED_BUTTON_DISABLED_DECLARATIONS, E as generateOpaquePanelCss, M as cardBorderDeclarations, N as cardDecorationPseudoRules, O as resolvedButtonColourDeclarations, S as INPUT_EDGE_COLOR_VAR, T as generateCheckableCss, _ as getResponsiveScopeSpec, a as prefixSelector, b as INPUT_GROUP_SELECTOR, c as parseCustomCssRules, d as THEME_RADIUS_CSS_VARS, f as generateTypographyCss, g as THEME_RESPONSIVE_CONTAINER_NAME, h as DEFAULT_THEME_RESPONSIVE_MODE, i as escapeStyleContent, j as renderCssDeclarations, k as resolvedButtonFocusDeclarations, l as generateAllBlockVarsCss, m as generateStatusCss, n as compileBlockCustomCssRules, o as toKebabCase, p as generateProgressCss, r as compileCustomCssRules, s as parseBlockCustomCssRules, t as ThemeScopeCore, u as generateBlockCustomVarsCss, v as INPUT_GROUP_ERROR_SELECTOR, w as inputEdgeColorValue, x as generateInputGroupCss, y as INPUT_GROUP_FOCUS_SELECTOR } from "./ThemeScopeCore-DFEM1a85.mjs";
|
|
14
14
|
import { t as parseThemeForPersistence } from "./parseThemeForPersistence-DOsfofCy.mjs";
|
|
15
15
|
import { n as mapOutlineBlocks } from "./pageRegions-BaeEF2MU.mjs";
|
|
@@ -8818,40 +8818,8 @@ function withLookParts(props, arrangement) {
|
|
|
8818
8818
|
}
|
|
8819
8819
|
//#endregion
|
|
8820
8820
|
//#region ../blocks/src/system/runtime/nodes/event-details.server.tsx
|
|
8821
|
-
function eventDetailsIslandValue({ props, presentation, scopedEvents, subject }) {
|
|
8822
|
-
return {
|
|
8823
|
-
...props.arrangement ? {
|
|
8824
|
-
arrangement: props.arrangement,
|
|
8825
|
-
entryTitle: props.entryTitle,
|
|
8826
|
-
actionSize: props.actionSize,
|
|
8827
|
-
lookSlots: props.lookSlots,
|
|
8828
|
-
surfacePresentation: props.surfacePresentation,
|
|
8829
|
-
panelHeading: props.panelHeading
|
|
8830
|
-
} : {},
|
|
8831
|
-
quickFacts: props.quickFacts,
|
|
8832
|
-
occurrenceContext: props.occurrenceContext ?? null,
|
|
8833
|
-
subject,
|
|
8834
|
-
events: scopedEvents,
|
|
8835
|
-
venueDrawing: props.venueDrawing ?? null,
|
|
8836
|
-
showVenue: presentation.showVenue,
|
|
8837
|
-
showMap: presentation.showMap,
|
|
8838
|
-
showOtherDates: presentation.showOtherDates,
|
|
8839
|
-
otherDatesLimit: props.otherDatesLimit,
|
|
8840
|
-
showCost: presentation.showCost,
|
|
8841
|
-
showTitle: presentation.showTitle,
|
|
8842
|
-
showDescription: presentation.showDescription,
|
|
8843
|
-
showCapacity: presentation.showCapacity,
|
|
8844
|
-
showAcceptedPasses: presentation.showAcceptedPasses,
|
|
8845
|
-
showAcceptedMemberships: presentation.showAcceptedMemberships,
|
|
8846
|
-
sitePasses: props.sitePasses,
|
|
8847
|
-
siteMemberships: props.siteMemberships,
|
|
8848
|
-
autoApplyDiscount: presentation.autoApplyDiscount,
|
|
8849
|
-
className: props.className,
|
|
8850
|
-
now: props.now
|
|
8851
|
-
};
|
|
8852
|
-
}
|
|
8853
8821
|
function EventDetailsSSR(props) {
|
|
8854
|
-
const {
|
|
8822
|
+
const { occurrenceContext = null, subject, events = null, className, children } = props;
|
|
8855
8823
|
const normalizedSubject = normalizeEventRegistrationPageSurfaceSubject(subject);
|
|
8856
8824
|
const scopedEvents = events === null ? null : resolveEventRegistrationScopedEvents(events, {
|
|
8857
8825
|
occurrenceContext,
|
|
@@ -8863,19 +8831,9 @@ function EventDetailsSSR(props) {
|
|
|
8863
8831
|
occurrenceContext,
|
|
8864
8832
|
subject: normalizedSubject
|
|
8865
8833
|
});
|
|
8866
|
-
return /* @__PURE__ */ jsxs(
|
|
8867
|
-
|
|
8868
|
-
|
|
8869
|
-
attributes: {
|
|
8870
|
-
className: `event-details ${className ?? ""}`.trim(),
|
|
8871
|
-
"data-block": "event-details"
|
|
8872
|
-
},
|
|
8873
|
-
value: eventDetailsIslandValue({
|
|
8874
|
-
props,
|
|
8875
|
-
presentation,
|
|
8876
|
-
scopedEvents,
|
|
8877
|
-
subject: normalizedSubject
|
|
8878
|
-
}),
|
|
8834
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
8835
|
+
className: `event-details ${className ?? ""}`.trim(),
|
|
8836
|
+
"data-block": "event-details",
|
|
8879
8837
|
children: [/* @__PURE__ */ jsx(EventDetailsView, {
|
|
8880
8838
|
...presentation,
|
|
8881
8839
|
mapClassName: "venue-map event-details-map"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as SDK_VERSION } from "./version-
|
|
1
|
+
import { t as SDK_VERSION } from "./version-8t0o6_jd.mjs";
|
|
2
2
|
import * as crypto$1 from "crypto";
|
|
3
3
|
import * as path from "path";
|
|
4
4
|
import * as fs from "fs";
|
|
@@ -122,10 +122,11 @@ async function prebuildPages(client, siteId, routes, outputDir, onProgress) {
|
|
|
122
122
|
totalSize += writeJsonFile(filePath, cacheFile);
|
|
123
123
|
files.push(`pages/${filename}`);
|
|
124
124
|
pathMappings[pagePath] = `pages/${filename}`;
|
|
125
|
-
|
|
125
|
+
const authored = pageData.result.kind === "cms" ? pageData.result.content : pageData.result.authored;
|
|
126
|
+
if (authored && "page" in authored) pageIndex.push({
|
|
126
127
|
path: pagePath,
|
|
127
|
-
pageId:
|
|
128
|
-
title:
|
|
128
|
+
pageId: authored.page.routeId || "",
|
|
129
|
+
title: authored.page.name || "Untitled"
|
|
129
130
|
});
|
|
130
131
|
} catch (error) {
|
|
131
132
|
console.warn(`[Prebuild] Failed to fetch page ${pagePath}:`, error.message);
|
package/dist/server/prebuild.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as prebuildCache } from "./prebuild-
|
|
1
|
+
import { t as prebuildCache } from "./prebuild-8jNtDXmS.mjs";
|
|
2
2
|
export { prebuildCache };
|