@riverbankcms/sdk 0.172.0 → 0.174.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 +6 -1
- package/dist/_dts/{BlocksIslandsHydrator-DtrzTJ77.d.ts → BlocksIslandsHydrator-GqVX3I8E.d.ts} +1 -1
- package/dist/_dts/{Page-DViYbakk.d.ts → Page-BhUH31M-.d.ts} +27 -16
- package/dist/_dts/{SdkPreviewMode-D-5OeDbT.d.ts → SdkPreviewMode-DBn2x0UL.d.ts} +14 -7
- package/dist/_dts/{client-DZBOzd3U.d.ts → client-Cr-sOeSl.d.ts} +1002 -139
- package/dist/_dts/{content-types-DS3DrYn_.d.ts → content-types-DKw1yJdN.d.ts} +2 -2
- package/dist/_dts/{contracts-C3QGPCUf.d.ts → contracts-CJ2O03nB.d.ts} +6 -4
- package/dist/_dts/{footerPageOutline-D9Q7VIul.d.ts → footerPageOutline-DoGHHKr_.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-R7NeFT1u.d.ts → generatePageMetadata-CJGu4hoa.d.ts} +2 -2
- package/dist/_dts/{index-Dns7OHyl.d.ts → index--39uLjrr.d.ts} +1 -1
- package/dist/_dts/{index-Da4UMgbs.d.ts → index-3GzargmS.d.ts} +2 -2
- package/dist/_dts/{index-DkFV_1Bc.d.ts → index-Bq-488M7.d.ts} +1 -1
- package/dist/_dts/{index-BnMavhoh.d.ts → index-DQZ5L0Gb.d.ts} +2 -2
- package/dist/_dts/{index-C0zjLMAW.d.ts → index-DYlfdT1O.d.ts} +2 -1
- package/dist/_dts/{index-CpOkfBt1.d.ts → index-DYsP4k6S.d.ts} +3 -3
- package/dist/_dts/{index-MuMYjetm.d.ts → index-DdEi2iXd.d.ts} +4 -4
- package/dist/_dts/{loadContent-DJmXHzfi.d.ts → loadContent-BVPagYmy.d.ts} +11 -11
- package/dist/_dts/{request-wQ28JWbr.d.ts → request-Be1E-H-V.d.ts} +4892 -1720
- package/dist/_dts/{resolveBlockData-C-IP53u9.d.ts → resolveBlockData-D1pL25bD.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-Cc4zqaEC.d.ts → resolvePageContent-B4sbTf96.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 +9 -9
- package/dist/_dts/sdk/src/config/index.d.ts +6 -6
- package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
- package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
- package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
- package/dist/_dts/sdk/src/data/types.d.ts +2 -2
- package/dist/_dts/sdk/src/index.d.ts +8 -8
- package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
- package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
- package/dist/_dts/sdk/src/navigation/index.d.ts +6 -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 +4 -2
- 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 +13 -8
- package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
- package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
- package/dist/_dts/sdk/src/server.d.ts +5 -5
- package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
- package/dist/_dts/sdk/src/theme/index.d.ts +36 -204
- package/dist/_dts/{types-CpjyP5I4.d.ts → types-5MeDI1w8.d.ts} +7 -7
- package/dist/_dts/{types-DrinAfeW.d.ts → types-Bm5_3VEd.d.ts} +3 -3
- package/dist/_dts/{types-ZuZoGsZV.d.ts → types-CVoCc_Ia.d.ts} +2 -2
- package/dist/_dts/{validation-CIZ_fP5l.d.ts → validation-lEtYD-Rh.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-UFmQB1BE.mjs → BlocksIslandsHydrator-DkflFLGQ.mjs} +17 -17
- package/dist/client/{BookingMailingListNote-VjRYhx1c.mjs → BookingMailingListNote-CAyoiAGD.mjs} +18 -12
- package/dist/client/{BookingPanelArrangement-DpqnRo-t.mjs → BookingPanelArrangement-C7yiJrxm.mjs} +1 -1
- package/dist/client/{BookingQuestionFields-CzOT8ZWo.mjs → BookingQuestionFields-DZMrGvBh.mjs} +3 -3
- package/dist/client/{CalendarNavigationChevron-CNckKZct.mjs → CalendarNavigationChevron-BPQU5Snc.mjs} +41 -34
- package/dist/client/{DemoBookingPortalAccess-CmZLVXOy.mjs → DemoBookingPortalAccess-BnEgvJas.mjs} +22 -22
- package/dist/client/{EventCalendar.client-BU-SxLCn.mjs → EventCalendar.client-BiWQc28-.mjs} +11 -10
- package/dist/client/{EventCombined.client-f28VltfY.mjs → EventCombined.client-B_ytWQtn.mjs} +10 -9
- package/dist/client/{EventItem-sKBofjiW.mjs → EventItem-C-mxXpX_.mjs} +25 -16
- package/dist/client/{EventListWeekNavigation-IAcax47T.mjs → EventListWeekNavigation-Bm3Ap1Rd.mjs} +1 -1
- package/dist/client/{EventListing.client-BEtnRvZr.mjs → EventListing.client-Bs_8im5_.mjs} +3 -3
- package/dist/client/{EventListing.view-BZ4l_rmT.mjs → EventListing.view-CN7BjGgC.mjs} +37 -14
- package/dist/client/{EventRegistrationPayment-BWb295cD.mjs → EventRegistrationPayment-DPkRcSdw.mjs} +848 -146
- package/dist/client/{LocationMapActions-Hsj2HC_1.mjs → LocationMapActions-BJT7MqP2.mjs} +1 -1
- package/dist/client/{MapDrawingSvg-C7E7Lyfa.mjs → MapDrawingSvg-DCIwlON6.mjs} +1 -1
- package/dist/client/{Page-Ds1s3DuC.mjs → Page--xJ23nA5.mjs} +1160 -521
- package/dist/client/{StepIndicator-CSCyAaKY.mjs → StepIndicator-D391QRNc.mjs} +85 -13
- package/dist/client/{accessibleSurfaces-OsAseM7H.mjs → accessibleSurfaces-DN8it_Cx.mjs} +36 -27
- package/dist/client/{accordion-DgwFZJSx.mjs → accordion-BQtTkDN8.mjs} +1 -1
- package/dist/client/bookability-CE637yDE.mjs +17 -0
- package/dist/client/{booking-form.client-CKY9oksp.mjs → booking-form.client-D9M7TKGV.mjs} +362 -47
- package/dist/client/{bookingForm-CsHhcdSF.mjs → bookingForm-BsOS0sl9.mjs} +4 -4
- package/dist/client/bookings.mjs +6 -6
- package/dist/client/{boxStyleClassNames-B1Z_TGAe.mjs → boxStyleClassNames-CNDLpT06.mjs} +1 -1
- package/dist/client/{carousel-0sw2Kc3a.mjs → carousel-CPsW-FPh.mjs} +1 -1
- package/dist/client/{cart-CPfvMDGJ.mjs → cart-CwElmocm.mjs} +3 -3
- package/dist/client/{cart.client-BJBPUTmg.mjs → cart.client-RpqI56w8.mjs} +1 -1
- package/dist/client/{checkout-DU4JFjGT.mjs → checkout-CfMgqY8H.mjs} +3 -3
- package/dist/client/{checkout.client-BbNCO4xa.mjs → checkout.client-BpuPyOuJ.mjs} +1 -1
- package/dist/client/{checkoutUrls-BQ3OlWlM.mjs → checkoutUrls-VeHY6WYj.mjs} +1 -1
- package/dist/client/client.mjs +206 -7
- package/dist/client/{context-xNC1Cyjw.mjs → context-CNlesLfF.mjs} +81 -14
- package/dist/client/{cta-CNVQHLKs.mjs → course-q1sA4Cj-.mjs} +77 -3
- package/dist/client/{creditProducts-BTRX4edc.mjs → creditProducts-KYMVIH3J.mjs} +2 -84
- package/dist/client/{dateFormatting-B6ea-egy.mjs → dateFormatting-B73Ll0s4.mjs} +9 -1
- package/dist/client/{demoPortalMagicLink-BhjGxhX3.mjs → demoPortalMagicLink-BVbLD4pi.mjs} +1 -1
- package/dist/client/{display-B5DfNb6A.mjs → display-D8MW2b0e.mjs} +3076 -819
- package/dist/client/{enhanceHeaderSection-BFcHLuqk.mjs → enhanceHeaderSection-BzjY6AiY.mjs} +3 -3
- package/dist/client/{event-details.client-WHT5GLn2.mjs → event-details.client-CseTWUFC.mjs} +1 -1
- package/dist/client/{event-registration.client-CmnRKELC.mjs → event-registration.client-b5TLxntR.mjs} +1315 -553
- package/dist/client/{eventCalendar-2NbdCyov.mjs → eventCalendar-C-kJNIc9.mjs} +4 -4
- package/dist/client/{eventCombined-D1lH1n2T.mjs → eventCombined-BgHJGhwE.mjs} +4 -4
- package/dist/client/{eventDetails-BHvnF2Tw.mjs → eventDetails-CAwbreD0.mjs} +2 -2
- package/dist/client/{eventListing-EhSDk4UL.mjs → eventListing-_14atrj8.mjs} +4 -4
- package/dist/client/{eventRegistration-z_0jN_KS.mjs → eventRegistration-BOqSdstJ.mjs} +4 -4
- package/dist/client/{form-BfChzSkS.mjs → form-DfAB-llc.mjs} +3 -3
- package/dist/client/{form.client-D1zehtPk.mjs → form.client-DN-I9_qC.mjs} +6 -6
- package/dist/client/{form.parts-rMDlUQIv.mjs → form.parts-t2Q1neM6.mjs} +1 -1
- package/dist/client/{formatDate-ymSVT9Y5.mjs → formatDate-Dp7POa9Y.mjs} +1 -1
- package/dist/client/gifting/client.mjs +2 -2
- package/dist/client/{headerSection-BX9bQ84k.mjs → headerSection-Dces54pb.mjs} +2 -2
- package/dist/client/{newsletter-form.client-DMbuJCtJ.mjs → newsletter-form.client-D_YFUlR2.mjs} +9 -7
- package/dist/client/{newsletter-form.parts-BxrVsoI0.mjs → newsletter-form.parts-URO5Mn_I.mjs} +1 -1
- package/dist/client/{newsletterForm-B_I3FJFS.mjs → newsletterForm-_c9fKIzS.mjs} +3 -3
- package/dist/client/{noop-CamIX2yK.mjs → noop-D5mFWXtN.mjs} +139 -12
- package/dist/client/portal/client.mjs +346 -272
- package/dist/client/{product-detail.client-qxuiYCof.mjs → product-detail.client-CVW1UIxJ.mjs} +1 -1
- package/dist/client/{product-list.client-CDL-jihv.mjs → product-list.client-CF9hO23G.mjs} +1 -1
- package/dist/client/{productDetail-B97m0uZy.mjs → productDetail-C_qbmUuP.mjs} +3 -3
- package/dist/client/{productList-DE4vSSG_.mjs → productList-Df5qDD0z.mjs} +3 -3
- package/dist/client/{propsDecoder-BTde6Syh.mjs → propsDecoder-BiEyK2ii.mjs} +3 -3
- package/dist/client/{registry.server-Cn8XjRte.mjs → registry.server-ClcfWpvM.mjs} +93 -63
- package/dist/client/rendering/client.mjs +26 -26
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +34 -61
- package/dist/client/{richText-coerce-Bcl3vTb4.mjs → richText-coerce-C32cRQ03.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-BjRoLoMD.mjs → routeIslandApiConfig-DAypPzSo.mjs} +1 -1
- package/dist/client/{runtimeResponse-B-lrAGhX.mjs → runtimeResponse-9v8q2NBc.mjs} +1 -1
- package/dist/client/runtimeResponse-CVkM0dHy.mjs +3 -0
- package/dist/client/{shop-commerce-BsY7a71m.mjs → shop-commerce-Bw4_BXQg.mjs} +12 -11
- package/dist/client/{shop-commerce-store-BZ5j90HD.mjs → shop-commerce-store-Da6Ah-_4.mjs} +1 -1
- package/dist/client/shop-discount-apply.state-DidgH7ow.mjs +166 -0
- package/dist/client/{shop-BC4H0oYT.mjs → shop-gteEpeO5.mjs} +3 -3
- package/dist/client/{shop.client-WgGVGelc.mjs → shop.client-CbbdjWWd.mjs} +13 -12
- package/dist/client/{shop.interactive-Bb67gPLL.mjs → shop.interactive-CKFORzux.mjs} +45 -29
- package/dist/client/{shopShared-BE6TEk2A.mjs → shopShared-C7QjoywZ.mjs} +2 -2
- package/dist/client/stable-json-D0XAEIXc.mjs +22 -0
- package/dist/client/{timetableModel-Bbz_ECL5.mjs → timetableModel-CtZiIj9q.mjs} +25 -15
- package/dist/client/{useAvailableSlots-CdP14E_b.mjs → useAvailableSlots-CUVRD1nx.mjs} +39 -8
- package/dist/client/{useDiscountApply-DvOSso2l.mjs → useDiscountApply-BZU5DWZQ.mjs} +4 -167
- package/dist/client/{useDiscountCodeUi-B4fRd2jy.mjs → useDiscountCodeUi-BuLgof7O.mjs} +1 -1
- package/dist/client/{useEventPagination-M3jC8lgP.mjs → useEventPagination-B4VPtSEF.mjs} +6 -6
- package/dist/client/{view-DNNNbnNj.mjs → view-CvlTplao.mjs} +2 -2
- package/dist/client/{view-B0TFnP4y.mjs → view-CxUpgcM6.mjs} +56 -34
- package/dist/preview-next/client/{LocationPickerEnvironment-D4F_5rnr.mjs → LocationPickerEnvironment-8iKKoYZr.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-BKMNxSEJ.mjs → MapLibreEditMap-AIUPN1Zx.mjs} +2 -2
- package/dist/preview-next/client/{PageSectionToolbar-D59tHj_L.mjs → PageSectionToolbar-BFbSrDbi.mjs} +80 -160
- package/dist/preview-next/client/{PreviewEditorSidebar-CjOIZlUk.mjs → PreviewEditorSidebar-BtpzqQ-i.mjs} +780 -1634
- package/dist/preview-next/client/{PreviewEditorUI--kS9Cwsc.mjs → PreviewEditorUI-z22h-CCY.mjs} +29 -26
- package/dist/preview-next/client/{PreviewShell-Bi8-rclb.mjs → PreviewShell-BW3Qpoa_.mjs} +52 -32
- package/dist/preview-next/client/{SdkPreviewModeRuntime-CWTUw-3L.mjs → SdkPreviewModeRuntime-BvVeK1hR.mjs} +47 -69
- package/dist/preview-next/client/{lucide-react-BCNn8dEQ.mjs → lucide-react-Dfgl3Vtq.mjs} +7 -1
- package/dist/preview-next/client/{previewAssistantSlot-Caofnr1Z.mjs → previewAssistantSlot-BUqAh1FL.mjs} +98429 -46667
- package/dist/preview-next/client/{previewChromeRoot-CbAI_jSH.mjs → previewChromeRoot-NCy5zHO8.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-DY65_hLk.mjs → sdk-runtime-CxmKDVGZ.mjs} +2 -2
- package/dist/preview-next/client/siteStyleAccess-B_UaDyJO.mjs +9356 -0
- package/dist/preview-next/client/{useAutosaveStatus-CakNU3lp.mjs → useAutosaveStatus-BqmWvPLY.mjs} +2 -2
- package/dist/preview-next/client/{useOpenBlockForSetup-CCEMkosU.mjs → useOpenBlockForSetup-LAllV0rU.mjs} +8 -4
- package/dist/preview-next/container-responsive.css +117 -32
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-DsKDQoVW.mjs → route-contract-DV6SeCNv.mjs} +200 -2
- package/dist/server/{Block.shared-D7Qy9F4a.mjs → Block.shared-Ch2FKAvU.mjs} +11 -6
- package/dist/server/{ThemeScopeCore-D1NTXZdX.mjs → ThemeScopeCore-DFvjDVzi.mjs} +23 -6
- package/dist/server/{accessibleSurfaces-Dbd2__Le.mjs → accessibleSurfaces-CM3QANtw.mjs} +22 -5
- package/dist/server/{bindings-Bp6OnR3n.mjs → bindings-CQg2lzZn.mjs} +6 -4
- package/dist/server/{client-dROAfMRa.mjs → client-aYRTVneD.mjs} +205 -6
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/customCss-BGB8gMVb.mjs +210 -0
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/{identity-20XHqyuO.mjs → identity-DQD_8lNO.mjs} +1 -1
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-zOIrtqz-.mjs → loadContent-Cgpfr44e.mjs} +8 -10
- package/dist/server/{loadPage-vwFiq1Rk.mjs → loadPage-RDk10NMP.mjs} +3 -3
- package/dist/server/lookMediaFrame-CQtkvlDn.mjs +2528 -0
- package/dist/server/manifest.mjs +2 -2
- package/dist/server/{media-Brn9FW5s.mjs → media-luf7RF22.mjs} +2 -2
- package/dist/server/{navigation-DAwbICEL.mjs → navigation-iC_hXjJI.mjs} +3 -1
- package/dist/server/navigation.mjs +1 -1
- package/dist/server/next.mjs +9 -8
- package/dist/server/{overrideResolution-DjboggbB.mjs → overrideResolution-VhhN94d8.mjs} +3 -4
- package/dist/server/page-converter.mjs +2 -2
- package/dist/server/{pageRenderPlan-BR4t1rOw.mjs → pageRenderPlan-CkFTsxkd.mjs} +166 -42
- package/dist/server/{pageRuntimeSupport-BKo6XVK-.mjs → pageRuntimeSupport-CpAtzNxD.mjs} +15 -7
- package/dist/server/{pageShared-BJjptSGp.mjs → pageShared-B8yLPjs0.mjs} +531 -117
- package/dist/server/{parseThemeForPersistence-B18KDEue.mjs → parseThemeForPersistence-Cwqb5pZx.mjs} +2 -2
- package/dist/server/{portal-Ce1Prfl3.mjs → portal-BjVHMAUC.mjs} +1 -1
- package/dist/server/portal.mjs +1 -1
- package/dist/server/{prebuild-CntSkZQI.mjs → prebuild-DOu6QceG.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-BM9Ds0OQ.mjs → prefetchBlockData-CfOXFKYG.mjs} +3 -3
- package/dist/server/{registry-wYH0LH5f.mjs → registry-34rkAfaU.mjs} +1409 -3314
- 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 +2 -2
- package/dist/server/rendering/server.mjs +3 -3
- package/dist/server/rendering.mjs +8 -8
- package/dist/server/{resolveBlockData-Bu_p4HxZ.mjs → resolveBlockData-D7VeoWgr.mjs} +1 -1
- package/dist/server/{resolveButtonColourStates-CCPUY9Xh.mjs → resolveButtonColourStates--6yJp9Tq.mjs} +15 -4
- package/dist/server/{responseMedia-t6gs0cB7.mjs → responseMedia-DpBC1hTM.mjs} +1 -1
- package/dist/server/{schema-BFOqYIMQ.mjs → schema-CUDHMirj.mjs} +440 -154
- package/dist/server/server.mjs +3 -3
- package/dist/server/{src-Cxucn-1P.mjs → src-DHK4JUlp.mjs} +4 -1
- package/dist/server/theme-bridge.mjs +21 -15
- package/dist/server/theme.mjs +2 -2
- package/dist/server/{three-pass-converter-Bsfdy_ZV.mjs → three-pass-converter-39SXCCnh.mjs} +1 -1
- package/dist/server/{titleSourceSchema-DwKJfMYb.mjs → titleSourceSchema-Cu-3PRvv.mjs} +0 -1
- package/dist/server/{validation-DAQdPDku.mjs → validation-CLVKoJrX.mjs} +5 -5
- package/dist/server/{version-DAB0O3yx.mjs → version-HVfdvBJ0.mjs} +1 -1
- package/dist/styles/index.css +1038 -200
- package/package.json +1 -1
- package/dist/client/runtimeResponse-CPcA8xSm.mjs +0 -3
- package/dist/preview-next/client/SiteChromeCustomizeButton-CrgS3I8d.mjs +0 -53534
- package/dist/server/customCss-QymcmOZ-.mjs +0 -97
- package/dist/server/opaqueSurface-COEKXVwk.mjs +0 -54
- package/dist/server/rich-text-CRcONdyM.mjs +0 -33
|
@@ -1,50 +1,18 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { On as unsafeAsContentEntryId } from "./shop.interactive-CKFORzux.mjs";
|
|
3
3
|
import { a as mediaIdentifierSchema, i as resolveManagedMediaReference, n as renderableMediaAssetSchema, o as parseCanonicalMediaIdentifier, s as parseMediaIdentifier, t as buildRenderableMediaAssetIndex } from "./renderableMediaAssetAdmission-BlfqYLJW.mjs";
|
|
4
|
-
import { $
|
|
5
|
-
import {
|
|
6
|
-
import { $ as flowRepeaterGridItems, A as prefetchBlockDataWithFailures, B as getBlockDefinition, C as resolveSdkBlockManifest, D as MISSING_SDK_THEME_ERROR_CODE, E as resolveSiteCustomBlocks, F as resolveAuthoredLinkHref, G as admitTransportedRenderableManifestContent, H as siteFooterManifest, I as isRouteVisibleInStage, J as admitLayoutGridForPlan, K as compileManifestContentContract, L as normalizeRenderStage, M as makeDefaultBlockComponent, N as renderBlock, O as MissingSdkThemeError, P as getDefaultComponentRegistry, Q as projectRepeaterGridLayoutForRendering$1, R as resolveRouteHrefForStage, S as readInvalidBlockAdmission, T as
|
|
7
|
-
import { Fn as resolveRepeaterGridColumnFieldId, In as resolveRepeaterGridRowFieldId, Ln as resolveRepeaterGridSpanFieldId, zt as parseFieldDefinition } from "./registry.server-
|
|
8
|
-
import { g as plainTextToInlineText, h as parseInlineTextFromUnknown, m as inlineTextToPlainText } from "./timetableModel-
|
|
9
|
-
import { l as parseBackgroundContent } from "./boxStyleClassNames-
|
|
4
|
+
import { $s as asDesignBlockId, Ca as resolveDateRuntimeContext, Cc as offeringLabelForPageSurfaceSubject, Dr as resolveImageUrlWithContext$1, Er as resolveImageUrl$1, Lc as unsafeAsEventCategoryId, Qs as asAppearancePresetId, Sa as readRuntimeNow, Tr as resolveImageSourceSetWithContext$1, _o as componentRuntimeRulesForSiteStyle, bo as requireCuratedSiteStyle, ec as asLayoutVariantKey, ic as sanitizeHref, po as buildInitialPolicyPageDesignIntent, us as appearancePresets, vo as designRuntimeRulesForSiteStyle, vr as RichText$2, wo as surfaceResolutionContextFromTheme, xr as computeMediaTransformStyle, zo as parsePageDesignIntent } from "./display-D8MW2b0e.mjs";
|
|
5
|
+
import { Dt as isRecord, Ot as EVENT_PRESET_VALUES, X as buildRichTextSchema, Z as createRichTextDoc, it as runtimeMediaSchema, ln as toUtcIsoDateTimeString, nt as mediaSchema, rt as persistableMediaSchema } from "./noop-D5mFWXtN.mjs";
|
|
6
|
+
import { $ as flowRepeaterGridItems, A as prefetchBlockDataWithFailures, B as getBlockDefinition, C as resolveSdkBlockManifest, D as MISSING_SDK_THEME_ERROR_CODE, E as resolveSiteCustomBlocks, F as resolveAuthoredLinkHref, G as admitTransportedRenderableManifestContent, H as siteFooterManifest, I as isRouteVisibleInStage, J as admitLayoutGridForPlan, K as compileManifestContentContract, L as normalizeRenderStage, M as makeDefaultBlockComponent, N as renderBlock, O as MissingSdkThemeError, P as getDefaultComponentRegistry, Q as projectRepeaterGridLayoutForRendering$1, R as resolveRouteHrefForStage, S as readInvalidBlockAdmission, T as siteBlockRenderContext, U as siteHeaderManifest, V as systemBlockDefinitions, W as blockDesignCapabilityMapFromDefinitions, X as fieldPlanToZod, Y as deriveFieldValidationPlan, Z as projectRepeaterGridLayout$1, _ as buildRenderablePageOutline, a as solvedInksForThemeRuntime, at as buildPageDesignEditorReadModel, b as invalidRenderableBlock$1, c as MissingBlockOverrideError, d as buildThemeRuntime, et as normalizeRepeaterGridSpan, f as parseBlocksTheme, g as blockDesignInputsForDefinition, h as resolveRuntimeJoinFacts, i as renderWithSdkThemeRuntime, it as parseListLook, k as requireSdkTheme, l as PageRenderer, lt as readPublishedBlockPlacement, m as isEntryBoundBlockEmpty, n as planLayoutThemeRuntime, nt as isRecord$1, o as ThemeScope, ot as applyCompiledRuntimeFieldsToContent, p as applyBindingsToContent, q as registeredManifestContentContract, r as renderWithOverrideOnlyRuntime, s as EditorPageRenderer, st as compileEditorModelRuntime, t as Page, tt as resolveRepeaterGridAcceptedSpans, u as toBlocksPageRendererDataContext, v as buildSiteRenderSupport, w as sanitizeSdkRuntimeBlockContent, x as projectRenderablePageOutline, y as collectMediaAssetSidecar, z as allOutlineBlocks } from "./Page--xJ23nA5.mjs";
|
|
7
|
+
import { Bn as isCanonicalRichTextDoc, Fn as resolveRepeaterGridColumnFieldId, In as resolveRepeaterGridRowFieldId, Ln as resolveRepeaterGridSpanFieldId, zt as parseFieldDefinition } from "./registry.server-ClcfWpvM.mjs";
|
|
8
|
+
import { g as plainTextToInlineText, h as parseInlineTextFromUnknown, m as inlineTextToPlainText } from "./timetableModel-CtZiIj9q.mjs";
|
|
9
|
+
import { l as parseBackgroundContent } from "./boxStyleClassNames-CNDLpT06.mjs";
|
|
10
10
|
import { o as setContextResolveImageUrlContext, t as buildResolveImageUrlContext } from "./mediaContext-Fusweriw.mjs";
|
|
11
11
|
import { n as toBlocksImageResolveContextInput, r as toBlocksMediaAssets } from "./mediaAssets-B99AP7ai.mjs";
|
|
12
12
|
import "react";
|
|
13
13
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
14
14
|
import { z } from "zod";
|
|
15
15
|
import { BlocksIslandsHydrator } from "#sdk-rendering-client";
|
|
16
|
-
//#region ../core/src/rich-text.ts
|
|
17
|
-
function isRecord(value) {
|
|
18
|
-
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
19
|
-
}
|
|
20
|
-
function hasOnlyKeys(value, allowed) {
|
|
21
|
-
return Object.keys(value).every((key) => allowed.has(key));
|
|
22
|
-
}
|
|
23
|
-
const rootKeys = /* @__PURE__ */ new Set(["type", "content"]);
|
|
24
|
-
const nodeKeys = /* @__PURE__ */ new Set([
|
|
25
|
-
"type",
|
|
26
|
-
"content",
|
|
27
|
-
"text",
|
|
28
|
-
"attrs",
|
|
29
|
-
"marks"
|
|
30
|
-
]);
|
|
31
|
-
const markKeys = /* @__PURE__ */ new Set(["type", "attrs"]);
|
|
32
|
-
function isDenseArrayOf(value, predicate) {
|
|
33
|
-
for (let index = 0; index < value.length; index += 1) if (!(index in value) || !predicate(value[index])) return false;
|
|
34
|
-
return true;
|
|
35
|
-
}
|
|
36
|
-
function isTipTapMark(value) {
|
|
37
|
-
return isRecord(value) && hasOnlyKeys(value, markKeys) && typeof value.type === "string" && value.type.length > 0 && (value.attrs === void 0 || isRecord(value.attrs));
|
|
38
|
-
}
|
|
39
|
-
function isTipTapNode(value) {
|
|
40
|
-
if (!isRecord(value) || !hasOnlyKeys(value, nodeKeys) || typeof value.type !== "string" || value.type.length === 0 || value.type === "doc" || value.attrs !== void 0 && !isRecord(value.attrs) || value.marks !== void 0 && (!Array.isArray(value.marks) || !isDenseArrayOf(value.marks, isTipTapMark)) || value.content !== void 0 && (!Array.isArray(value.content) || !isDenseArrayOf(value.content, isTipTapNode))) return false;
|
|
41
|
-
if (value.type === "text") return typeof value.text === "string" && value.text.length > 0 && value.content === void 0;
|
|
42
|
-
return value.text === void 0;
|
|
43
|
-
}
|
|
44
|
-
function isCanonicalRichTextDoc(value) {
|
|
45
|
-
return isRecord(value) && hasOnlyKeys(value, rootKeys) && value.type === "doc" && Array.isArray(value.content) && isDenseArrayOf(value.content, isTipTapNode);
|
|
46
|
-
}
|
|
47
|
-
//#endregion
|
|
48
16
|
//#region ../core/src/navigation-portal-labels.ts
|
|
49
17
|
/**
|
|
50
18
|
* What a customer sign-in link in a site's menu says when the site hasn't set
|
|
@@ -646,7 +614,8 @@ function buildLogo(logo, fallbackAlt) {
|
|
|
646
614
|
const result = {
|
|
647
615
|
type: "image",
|
|
648
616
|
src: logo.url,
|
|
649
|
-
alt
|
|
617
|
+
alt,
|
|
618
|
+
logoFacts: logo.logoFacts
|
|
650
619
|
};
|
|
651
620
|
if (logo.width != null) result.width = logo.width;
|
|
652
621
|
if (logo.height != null) result.height = logo.height;
|
|
@@ -895,6 +864,7 @@ async function Layout(props) {
|
|
|
895
864
|
const footerBlocksElement = footerPlan.renderFooterBlocks && footerBlocks.length > 0 ? /* @__PURE__ */ jsx(PageRenderer, {
|
|
896
865
|
theme,
|
|
897
866
|
themeTokens: builtThemeRuntime.tokens,
|
|
867
|
+
headingScope: "region",
|
|
898
868
|
page: buildFooterRenderablePageOutline(siteData, footerBlocks),
|
|
899
869
|
routeMap: routes,
|
|
900
870
|
dataContext: buildLayoutRootContext(siteData, {
|
|
@@ -915,7 +885,11 @@ async function Layout(props) {
|
|
|
915
885
|
themeConfig: blocksTheme,
|
|
916
886
|
viewModelOverrides: footerViewModelOverrides
|
|
917
887
|
}) : null;
|
|
918
|
-
footerElement = footerPlan.mode === "default+blocks" ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
888
|
+
footerElement = footerPlan.mode === "default+blocks" ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("div", {
|
|
889
|
+
"data-footer-blocks": "",
|
|
890
|
+
style: { display: "contents" },
|
|
891
|
+
children: footerBlocksElement
|
|
892
|
+
}), defaultFooterElement] }) : footerPlan.mode === "blocks" ? footerBlocksElement : footerPlan.mode === "none" ? null : defaultFooterElement;
|
|
919
893
|
} else if (typeof footer === "function") footerElement = footer(footerData);
|
|
920
894
|
return renderWithSdkThemeRuntime({
|
|
921
895
|
theme,
|
|
@@ -1757,7 +1731,7 @@ async function loadPageWithDeps(deps, params) {
|
|
|
1757
1731
|
siteName: support.site.title,
|
|
1758
1732
|
previewStage,
|
|
1759
1733
|
now: support.now,
|
|
1760
|
-
...
|
|
1734
|
+
...siteBlockRenderContext(support),
|
|
1761
1735
|
loaderFailures: prefetched.loaderFailures,
|
|
1762
1736
|
prefetchedBlockData: prefetched,
|
|
1763
1737
|
loaderSnapshot: prefetched.loaderSnapshot
|
|
@@ -2187,9 +2161,9 @@ Object.freeze({
|
|
|
2187
2161
|
*/
|
|
2188
2162
|
const SECTION_VALUES_CONTENT_KEY = "sections";
|
|
2189
2163
|
function readStoredSectionValues(content) {
|
|
2190
|
-
if (!isRecord
|
|
2164
|
+
if (!isRecord(content)) return {};
|
|
2191
2165
|
const sections = content[SECTION_VALUES_CONTENT_KEY];
|
|
2192
|
-
return isRecord
|
|
2166
|
+
return isRecord(sections) ? sections : {};
|
|
2193
2167
|
}
|
|
2194
2168
|
//#endregion
|
|
2195
2169
|
//#region ../content-model/src/page-sections/facts.ts
|
|
@@ -3037,7 +3011,7 @@ function ensureFieldValue(field, raw, ctx) {
|
|
|
3037
3011
|
return (Array.isArray(value) ? value : []).map((item) => ensureRepeaterItem(field, item, ctx));
|
|
3038
3012
|
}
|
|
3039
3013
|
function ensureRepeaterItem(field, value, ctx) {
|
|
3040
|
-
const itemData = isRecord
|
|
3014
|
+
const itemData = isRecord(value) ? value : {};
|
|
3041
3015
|
const itemType = typeof itemData._type === "string" ? itemData._type : Object.keys(field.itemTypes ?? {})[0] ?? "";
|
|
3042
3016
|
const fields = field.polymorphic ? field.itemTypes[itemType]?.fields ?? [] : getRepeaterChildFields(field);
|
|
3043
3017
|
return {
|
|
@@ -3115,7 +3089,7 @@ function pageSectionBlockKind(kind) {
|
|
|
3115
3089
|
/** Section Looks stored on the template anchor. Full pages only: booking pages always use the style's default (README decision 8). */
|
|
3116
3090
|
function pageSectionLookOverrides(blocks) {
|
|
3117
3091
|
const looks = blocks.find((block) => block.blockKind === PAGE_SECTIONS_ANCHOR_BLOCK_KIND)?.content?.looks;
|
|
3118
|
-
return isRecord$
|
|
3092
|
+
return isRecord$1(looks) ? looks : {};
|
|
3119
3093
|
}
|
|
3120
3094
|
/** Pure, shared by public pages and preview. Empty values disappear before layout. */
|
|
3121
3095
|
function compilePageSections(input, lookOverrides) {
|
|
@@ -3200,7 +3174,7 @@ function readStringProperty(value, key) {
|
|
|
3200
3174
|
return trimmed.length > 0 ? trimmed : null;
|
|
3201
3175
|
}
|
|
3202
3176
|
function readLiteralBindingString(value) {
|
|
3203
|
-
if (!isRecord$
|
|
3177
|
+
if (!isRecord$1(value)) return null;
|
|
3204
3178
|
if (value.source !== "literal") return null;
|
|
3205
3179
|
const literal = value.value;
|
|
3206
3180
|
if (typeof literal !== "string") return null;
|
|
@@ -3280,7 +3254,7 @@ function resolveRenderableSurfaceOutlineMetadata(surface, template) {
|
|
|
3280
3254
|
function buildContentEntrySubjectBindingContext(entry, id, route, dateContext, subject) {
|
|
3281
3255
|
return {
|
|
3282
3256
|
dateContext,
|
|
3283
|
-
fields: isRecord$
|
|
3257
|
+
fields: isRecord$1(entry.content) ? entry.content : {},
|
|
3284
3258
|
meta: {
|
|
3285
3259
|
...subject === void 0 ? {} : { subject },
|
|
3286
3260
|
id,
|
|
@@ -3308,8 +3282,8 @@ function buildContentEntryRouteRenderMetadata(entry, page) {
|
|
|
3308
3282
|
};
|
|
3309
3283
|
}
|
|
3310
3284
|
function materializeTemplateBlockContent(input) {
|
|
3311
|
-
const rawContent = isRecord$
|
|
3312
|
-
return applyTemplateRuntimeFields(input.block.scope === "entry" && isRecord$
|
|
3285
|
+
const rawContent = isRecord$1(input.block.content) ? { ...input.block.content } : {};
|
|
3286
|
+
return applyTemplateRuntimeFields(input.block.scope === "entry" && isRecord$1(input.block.bindings) ? applyBindingsToContent(rawContent, input.block.bindings, input.context) : rawContent, input.runtimeFields);
|
|
3313
3287
|
}
|
|
3314
3288
|
/**
|
|
3315
3289
|
* Admits materialized template content for rendering only.
|
|
@@ -3403,7 +3377,7 @@ function buildBlockFromTemplate(block, context, runtimeFields, contract) {
|
|
|
3403
3377
|
kind: block.blockKind,
|
|
3404
3378
|
purpose: "content",
|
|
3405
3379
|
publishedPlacement: null,
|
|
3406
|
-
...isRecord$
|
|
3380
|
+
...isRecord$1(block.bindings) ? { bindings: block.bindings } : {}
|
|
3407
3381
|
};
|
|
3408
3382
|
if (contract === null) return [invalidRenderableBlock(base, { kind: "manifest_unavailable" })];
|
|
3409
3383
|
const materialized = materializeTemplateBlockContent({
|
|
@@ -3411,7 +3385,7 @@ function buildBlockFromTemplate(block, context, runtimeFields, contract) {
|
|
|
3411
3385
|
context,
|
|
3412
3386
|
runtimeFields
|
|
3413
3387
|
});
|
|
3414
|
-
if (block.scope === "entry" && isRecord$
|
|
3388
|
+
if (block.scope === "entry" && isRecord$1(block.bindings) && isEntryBoundBlockEmpty(materialized, block.bindings, contract)) return [];
|
|
3415
3389
|
const admission = admitMaterializedTemplateContent(materialized, contract);
|
|
3416
3390
|
return [admission.ok ? {
|
|
3417
3391
|
...base,
|
|
@@ -3428,7 +3402,7 @@ function applyTemplateRuntimeFields(content, runtimeFields) {
|
|
|
3428
3402
|
return applyMissingImageBackgroundFallback(canonicalizeSectionBackground(runtimeFields !== null && runtimeFields !== void 0 ? applyCompiledRuntimeFieldsToContent(content, runtimeFields) : content));
|
|
3429
3403
|
}
|
|
3430
3404
|
function canonicalizeSectionBackground(content) {
|
|
3431
|
-
const sectionStyles = isRecord$
|
|
3405
|
+
const sectionStyles = isRecord$1(content._sectionStyles) ? content._sectionStyles : null;
|
|
3432
3406
|
if (sectionStyles === null || sectionStyles.background === void 0) return content;
|
|
3433
3407
|
const background = parseBackgroundContent(sectionStyles.background);
|
|
3434
3408
|
return background !== null ? {
|
|
@@ -3440,7 +3414,7 @@ function canonicalizeSectionBackground(content) {
|
|
|
3440
3414
|
} : content;
|
|
3441
3415
|
}
|
|
3442
3416
|
function applyMissingImageBackgroundFallback(content) {
|
|
3443
|
-
const sectionStyles = isRecord$
|
|
3417
|
+
const sectionStyles = isRecord$1(content._sectionStyles) ? content._sectionStyles : null;
|
|
3444
3418
|
const background = parseBackgroundContent(sectionStyles?.background);
|
|
3445
3419
|
if (sectionStyles === null || background?.type !== "image" || background.image !== null && background.image !== void 0) return content;
|
|
3446
3420
|
const fallbackColor = resolveMissingImageFallbackColor(background);
|
|
@@ -3507,12 +3481,11 @@ function isPageTitleBlock(block, runtime) {
|
|
|
3507
3481
|
return block.blockKind === "block.hero" && block.scope === "entry" && (isEntryTitleBinding(block.bindings?.headlineInline) || isEntryTitleBinding(block.bindings?.headline));
|
|
3508
3482
|
}
|
|
3509
3483
|
function isEntryTitleBinding(binding) {
|
|
3510
|
-
if (!isRecord$
|
|
3484
|
+
if (!isRecord$1(binding)) return false;
|
|
3511
3485
|
return binding.source === "meta" && binding.path === "title" || binding.source === "transform" && isEntryTitleBinding(binding.input);
|
|
3512
3486
|
}
|
|
3513
3487
|
blockDesignCapabilityMapFromDefinitions(systemBlockDefinitions);
|
|
3514
3488
|
createManifestDefaultValues(siteHeaderManifest);
|
|
3515
|
-
createManifestDefaultValues(siteFooterManifest);
|
|
3516
3489
|
//#endregion
|
|
3517
3490
|
//#region src/rendering/helpers/templateContent.ts
|
|
3518
3491
|
function createTemplateRenderTarget(source, templateId) {
|
|
@@ -3626,7 +3599,7 @@ function admitEntrySlotBlock(block, customBlocks, previewStage) {
|
|
|
3626
3599
|
...entrySlotBlockIdentity(block, previewStage),
|
|
3627
3600
|
kind: block.kind,
|
|
3628
3601
|
purpose: block.purpose,
|
|
3629
|
-
...isRecord$
|
|
3602
|
+
...isRecord$1(block.bindings) ? { bindings: block.bindings } : {}
|
|
3630
3603
|
};
|
|
3631
3604
|
const transportedAdmission = readInvalidBlockAdmission(block.admission);
|
|
3632
3605
|
if (transportedAdmission) return invalidRenderableBlock$1(base, transportedAdmission.error);
|
|
@@ -3647,7 +3620,7 @@ function admitEntrySlotBlock(block, customBlocks, previewStage) {
|
|
|
3647
3620
|
function entrySlotBlockIdentity(block, previewStage) {
|
|
3648
3621
|
return {
|
|
3649
3622
|
draftContentId: block.draftContentId ?? null,
|
|
3650
|
-
publishedPlacement: previewStage === "preview" ? readPublishedBlockPlacement(block.publishedContentId, isRecord$
|
|
3623
|
+
publishedPlacement: previewStage === "preview" ? readPublishedBlockPlacement(block.publishedContentId, isRecord$1(block.publishedContent) && isRecord$1(block.publishedContent.data) ? block.publishedContent.data : null) : null
|
|
3651
3624
|
};
|
|
3652
3625
|
}
|
|
3653
3626
|
//#endregion
|
|
@@ -3831,7 +3804,7 @@ async function loadContentFromContentResponseWithDeps(deps, params) {
|
|
|
3831
3804
|
templatePage,
|
|
3832
3805
|
resolvedData,
|
|
3833
3806
|
dataContext: {
|
|
3834
|
-
...
|
|
3807
|
+
...siteBlockRenderContext(support),
|
|
3835
3808
|
previewStage,
|
|
3836
3809
|
prefetchedBlockData,
|
|
3837
3810
|
loaderSnapshot,
|
|
@@ -3899,7 +3872,7 @@ async function loadContentFromContentResponseWithDeps(deps, params) {
|
|
|
3899
3872
|
templatePage,
|
|
3900
3873
|
resolvedData,
|
|
3901
3874
|
dataContext: {
|
|
3902
|
-
...
|
|
3875
|
+
...siteBlockRenderContext(support),
|
|
3903
3876
|
previewStage,
|
|
3904
3877
|
prefetchedBlockData,
|
|
3905
3878
|
loaderSnapshot,
|
|
@@ -3956,7 +3929,7 @@ async function loadContentFromContentResponseWithDeps(deps, params) {
|
|
|
3956
3929
|
resolvedData: prefetched.resolvedData,
|
|
3957
3930
|
dataContext: {
|
|
3958
3931
|
previewStage,
|
|
3959
|
-
...
|
|
3932
|
+
...siteBlockRenderContext(support),
|
|
3960
3933
|
prefetchedBlockData: prefetched,
|
|
3961
3934
|
loaderSnapshot: prefetched.loaderSnapshot,
|
|
3962
3935
|
loaderFailures: prefetched.loaderFailures
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { Y as RichTextDocSchema, t as logger } from "./noop-D5mFWXtN.mjs";
|
|
3
3
|
//#region ../blocks/src/system/runtime/nodes/richText-coerce.ts
|
|
4
4
|
function parseRichTextDoc(value) {
|
|
5
5
|
const parsed = RichTextDocSchema.safeParse(value);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { Ta as createHostedBlockApiConfig } from "./display-D8MW2b0e.mjs";
|
|
3
3
|
//#region src/rendering/islands/enhancers/routeIslandApiConfig.ts
|
|
4
4
|
function buildRouteIslandApiConfig({ apiBaseUrl, portalToken, previewToken, siteId, stage, readAuthority }) {
|
|
5
5
|
if (readAuthority) return createHostedBlockApiConfig({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { n as parseSurfaceTree } from "./accessibleSurfaces-
|
|
2
|
+
import { n as parseSurfaceTree } from "./accessibleSurfaces-DN8it_Cx.mjs";
|
|
3
3
|
//#region ../site-renderer/src/runtimeResponse.ts
|
|
4
4
|
/** Recreate owner-produced rendering values at a JSON boundary, never trust copied proofs. */
|
|
5
5
|
function restoreRuntimeResponse(serialized) {
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { u as getShopDisplayForItems } from "./shop.interactive-
|
|
3
|
-
import {
|
|
4
|
-
import { _ as clearWorkflowFeedback, p as assertNever, v as reportWorkflowError } from "./creditProducts-
|
|
5
|
-
import {
|
|
6
|
-
import { n as useBlockApi } from "./context-
|
|
2
|
+
import { u as getShopDisplayForItems } from "./shop.interactive-CKFORzux.mjs";
|
|
3
|
+
import { a as buildProductDetailDisplay, g as deriveCommerceCheckoutState, h as buildProductCartItem, i as buildProductCardDisplay, s as formatCommercePrice, v as productItemKey, vr as RichText } from "./display-D8MW2b0e.mjs";
|
|
4
|
+
import { _ as clearWorkflowFeedback, p as assertNever, v as reportWorkflowError } from "./creditProducts-KYMVIH3J.mjs";
|
|
5
|
+
import { i as SiteTermsChangedNotice, l as DiscountCodeDisclosure, n as DemoBookingPortalAccess, o as useSiteTermsAgreement, r as SiteTermsAgreementField } from "./DemoBookingPortalAccess-BnEgvJas.mjs";
|
|
6
|
+
import { n as useBlockApi } from "./context-CNlesLfF.mjs";
|
|
7
7
|
import { i as ThemedButtonLink, r as ThemedButton } from "./ThemedButton-DuaYtnvG.mjs";
|
|
8
|
-
import { t as buildCheckoutReturnUrls } from "./checkoutUrls-
|
|
8
|
+
import { t as buildCheckoutReturnUrls } from "./checkoutUrls-VeHY6WYj.mjs";
|
|
9
9
|
import { t as resolveDedicatedCheckoutPath } from "./checkoutRoute-DKlZRNZD.mjs";
|
|
10
|
-
import { a as
|
|
10
|
+
import { a as isDiscountApplyInFlight, c as consumeSearchParam, i as initialDiscountApplyState, n as getAppliedDiscountCode, o as ShopAddFeedback, r as getDiscountApplyFeedback, s as useTransientShopAddFeedback, t as discountApplyReducer } from "./shop-discount-apply.state-DidgH7ow.mjs";
|
|
11
11
|
import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
|
|
12
|
-
import { t as coerceRichTextDoc } from "./richText-coerce-
|
|
13
|
-
import { c as ProductDetailView, f as VariantSelectView, l as ProductGalleryFrameView, n as CheckoutShellView, s as ProductCardView, t as CartShellView, u as ProductListSectionView } from "./view-
|
|
14
|
-
import { a as storeDemoBookingCheckoutReturn, i as readDemoBookingCheckoutReturnEmail } from "./demoPortalMagicLink-
|
|
12
|
+
import { t as coerceRichTextDoc } from "./richText-coerce-C32cRQ03.mjs";
|
|
13
|
+
import { c as ProductDetailView, f as VariantSelectView, l as ProductGalleryFrameView, n as CheckoutShellView, s as ProductCardView, t as CartShellView, u as ProductListSectionView } from "./view-CvlTplao.mjs";
|
|
14
|
+
import { a as storeDemoBookingCheckoutReturn, i as readDemoBookingCheckoutReturnEmail } from "./demoPortalMagicLink-BVbLD4pi.mjs";
|
|
15
|
+
import { c as planUnifiedCheckoutRequest, i as checkoutFormForDiscountUiState, n as useDiscountApply, o as planCartDiscountAvailabilityRequests, r as aggregateCartDiscountUiState } from "./useDiscountApply-BZU5DWZQ.mjs";
|
|
15
16
|
import { t as CarouselNodeClient } from "./carousel.client-h65clfUO.mjs";
|
|
16
|
-
import { n as useCommerceCart } from "./shop-commerce-store-
|
|
17
|
+
import { n as useCommerceCart } from "./shop-commerce-store-Da6Ah-_4.mjs";
|
|
17
18
|
import * as React$1 from "react";
|
|
18
19
|
import { useEffect, useState } from "react";
|
|
19
20
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { _ as parseStoredCommerceCartState, m as buildPassCartItem, p as EMPTY_COMMERCE_CART_STATE, y as reduceCommerceCart } from "./display-
|
|
2
|
+
import { _ as parseStoredCommerceCartState, m as buildPassCartItem, p as EMPTY_COMMERCE_CART_STATE, y as reduceCommerceCart } from "./display-D8MW2b0e.mjs";
|
|
3
3
|
import * as React$1 from "react";
|
|
4
4
|
//#region ../blocks/src/system/runtime/nodes/shop-commerce-store.ts
|
|
5
5
|
const EMPTY_STATE = EMPTY_COMMERCE_CART_STATE;
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { p as assertNever } from "./creditProducts-KYMVIH3J.mjs";
|
|
3
|
+
import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
|
|
4
|
+
import { a as normalizeManualDiscountCode } from "./useDiscountApply-BZU5DWZQ.mjs";
|
|
5
|
+
import * as React$1 from "react";
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
//#region ../blocks/src/system/runtime/shared/utils/urlParams.ts
|
|
8
|
+
/**
|
|
9
|
+
* URL param helpers for client-side "return from redirect" flows.
|
|
10
|
+
*
|
|
11
|
+
* Used for flows like magic-link login or Stripe checkout return URLs where
|
|
12
|
+
* we want to:
|
|
13
|
+
* - read a query param once
|
|
14
|
+
* - remove it from the URL (so refresh doesn't re-trigger)
|
|
15
|
+
* - preserve hash fragments
|
|
16
|
+
*/
|
|
17
|
+
/**
|
|
18
|
+
* Consume a query param from the current URL's search string.
|
|
19
|
+
*
|
|
20
|
+
* Returns the param value (if present) and removes it from the URL via
|
|
21
|
+
* history.replaceState, preserving hash.
|
|
22
|
+
*/
|
|
23
|
+
function consumeSearchParam(paramName) {
|
|
24
|
+
const url = new URL(window.location.href);
|
|
25
|
+
const value = url.searchParams.get(paramName);
|
|
26
|
+
if (value === null) return null;
|
|
27
|
+
url.searchParams.delete(paramName);
|
|
28
|
+
const newUrl = url.pathname + (url.search ? url.search : "") + url.hash;
|
|
29
|
+
window.history.replaceState({}, "", newUrl);
|
|
30
|
+
return value;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Consume multiple query params from the current URL's search string.
|
|
34
|
+
*
|
|
35
|
+
* Returns a record of consumed values (missing params are null) and removes
|
|
36
|
+
* all provided params from the URL in a single replaceState call.
|
|
37
|
+
*/
|
|
38
|
+
function consumeSearchParams(paramNames) {
|
|
39
|
+
const url = new URL(window.location.href);
|
|
40
|
+
const values = Object.fromEntries(paramNames.map((name) => [name, url.searchParams.get(name)]));
|
|
41
|
+
let changed = false;
|
|
42
|
+
for (const name of paramNames) if (url.searchParams.has(name)) {
|
|
43
|
+
url.searchParams.delete(name);
|
|
44
|
+
changed = true;
|
|
45
|
+
}
|
|
46
|
+
if (changed) {
|
|
47
|
+
const newUrl = url.pathname + (url.search ? url.search : "") + url.hash;
|
|
48
|
+
window.history.replaceState({}, "", newUrl);
|
|
49
|
+
}
|
|
50
|
+
return values;
|
|
51
|
+
}
|
|
52
|
+
//#endregion
|
|
53
|
+
//#region ../blocks/src/system/runtime/nodes/shop-add-feedback.tsx
|
|
54
|
+
const DEFAULT_TIMEOUT_MS = 2500;
|
|
55
|
+
function useTransientShopAddFeedback(timeoutMs = DEFAULT_TIMEOUT_MS) {
|
|
56
|
+
const [activeKey, setActiveKey] = React$1.useState(null);
|
|
57
|
+
React$1.useEffect(() => {
|
|
58
|
+
if (!activeKey) return;
|
|
59
|
+
const timeoutId = window.setTimeout(() => {
|
|
60
|
+
setActiveKey((current) => current === activeKey ? null : current);
|
|
61
|
+
}, timeoutMs);
|
|
62
|
+
return () => window.clearTimeout(timeoutId);
|
|
63
|
+
}, [activeKey, timeoutMs]);
|
|
64
|
+
return {
|
|
65
|
+
activeKey,
|
|
66
|
+
markAdded: setActiveKey,
|
|
67
|
+
clear: () => setActiveKey(null)
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
function ShopAddFeedback(props) {
|
|
71
|
+
if (!props.active) return null;
|
|
72
|
+
return /* @__PURE__ */ jsxs(FeedbackMessage, {
|
|
73
|
+
tone: "success",
|
|
74
|
+
className: "rb-caption status-muted",
|
|
75
|
+
role: "status",
|
|
76
|
+
live: "polite",
|
|
77
|
+
children: [
|
|
78
|
+
"Added ",
|
|
79
|
+
props.itemLabel,
|
|
80
|
+
" to cart.",
|
|
81
|
+
" ",
|
|
82
|
+
/* @__PURE__ */ jsx("a", {
|
|
83
|
+
href: "#shop-cart",
|
|
84
|
+
children: "View cart"
|
|
85
|
+
}),
|
|
86
|
+
"."
|
|
87
|
+
]
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
//#endregion
|
|
91
|
+
//#region ../blocks/src/system/runtime/nodes/shop-discount-apply.state.ts
|
|
92
|
+
const initialDiscountApplyState = {
|
|
93
|
+
isOpen: false,
|
|
94
|
+
draftCode: "",
|
|
95
|
+
status: { type: "idle" }
|
|
96
|
+
};
|
|
97
|
+
function discountApplyReducer(state, action) {
|
|
98
|
+
switch (action.type) {
|
|
99
|
+
case "open": return {
|
|
100
|
+
...state,
|
|
101
|
+
isOpen: true
|
|
102
|
+
};
|
|
103
|
+
case "draftChanged": return {
|
|
104
|
+
...state,
|
|
105
|
+
draftCode: action.draftCode,
|
|
106
|
+
status: { type: "idle" }
|
|
107
|
+
};
|
|
108
|
+
case "remove": return initialDiscountApplyState;
|
|
109
|
+
case "applyStarted": return {
|
|
110
|
+
...state,
|
|
111
|
+
status: { type: "applying" }
|
|
112
|
+
};
|
|
113
|
+
case "applySucceeded": return {
|
|
114
|
+
...state,
|
|
115
|
+
isOpen: true,
|
|
116
|
+
draftCode: action.discount.code,
|
|
117
|
+
status: {
|
|
118
|
+
type: "applied",
|
|
119
|
+
discount: action.discount
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
case "applyRejected": return {
|
|
123
|
+
...state,
|
|
124
|
+
isOpen: true,
|
|
125
|
+
status: {
|
|
126
|
+
type: "rejected",
|
|
127
|
+
reason: action.reason,
|
|
128
|
+
message: action.message
|
|
129
|
+
}
|
|
130
|
+
};
|
|
131
|
+
case "resetApplied":
|
|
132
|
+
if (state.status.type !== "applied") return state;
|
|
133
|
+
return {
|
|
134
|
+
...state,
|
|
135
|
+
status: { type: "idle" }
|
|
136
|
+
};
|
|
137
|
+
default: return assertNever(action);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
function getAppliedDiscountCode(state) {
|
|
141
|
+
if (state.status.type !== "applied") return null;
|
|
142
|
+
return normalizeManualDiscountCode(state.status.discount.code);
|
|
143
|
+
}
|
|
144
|
+
function isDiscountApplyInFlight(state) {
|
|
145
|
+
return state.status.type === "applying";
|
|
146
|
+
}
|
|
147
|
+
function getDiscountApplyFeedback(status, formatPrice) {
|
|
148
|
+
switch (status.type) {
|
|
149
|
+
case "idle":
|
|
150
|
+
case "applying": return null;
|
|
151
|
+
case "applied": {
|
|
152
|
+
const savings = formatPrice(status.discount.discountCents, status.discount.currency);
|
|
153
|
+
return {
|
|
154
|
+
tone: "success",
|
|
155
|
+
message: `${status.discount.publicLabel} applied. You save ${savings}.`
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
case "rejected": return {
|
|
159
|
+
tone: "error",
|
|
160
|
+
message: status.message
|
|
161
|
+
};
|
|
162
|
+
default: return assertNever(status);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
//#endregion
|
|
166
|
+
export { isDiscountApplyInFlight as a, consumeSearchParam as c, initialDiscountApplyState as i, consumeSearchParams as l, getAppliedDiscountCode as n, ShopAddFeedback as o, getDiscountApplyFeedback as r, useTransientShopAddFeedback as s, discountApplyReducer as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
3
|
-
import { t as ShopClient } from "./shop.client-
|
|
4
|
-
import { t as mountShopBlockIsland } from "./shopShared-
|
|
2
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-BiEyK2ii.mjs";
|
|
3
|
+
import { t as ShopClient } from "./shop.client-CbbdjWWd.mjs";
|
|
4
|
+
import { t as mountShopBlockIsland } from "./shopShared-C7QjoywZ.mjs";
|
|
5
5
|
//#region src/rendering/islands/enhancers/shop.tsx
|
|
6
6
|
const decode = defineIslandPropsDecoder("shop");
|
|
7
7
|
const enhance = (root, props) => {
|
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { _ as shopProductPresentation } from "./shop.interactive-
|
|
3
|
-
import { c as formatInterval,
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { n as useBlockApi } from "./context-
|
|
2
|
+
import { _ as shopProductPresentation } from "./shop.interactive-CKFORzux.mjs";
|
|
3
|
+
import { c as formatInterval, hi as getShopSuccessCopy, s as formatCommercePrice } from "./display-D8MW2b0e.mjs";
|
|
4
|
+
import { A as assertNever$1, p as assertNever } from "./creditProducts-KYMVIH3J.mjs";
|
|
5
|
+
import { i as SiteTermsChangedNotice, l as DiscountCodeDisclosure, o as useSiteTermsAgreement, r as SiteTermsAgreementField, t as BookingConfirmation } from "./DemoBookingPortalAccess-BnEgvJas.mjs";
|
|
6
|
+
import { n as useBlockApi } from "./context-CNlesLfF.mjs";
|
|
7
7
|
import { r as ThemedButton } from "./ThemedButton-DuaYtnvG.mjs";
|
|
8
8
|
import { t as scrollToBlock } from "./scrollToBlock-DrgKE0qZ.mjs";
|
|
9
9
|
import { t as createBodyThemePortalRoot } from "./themePortalRoot-DeP49PT8.mjs";
|
|
10
|
-
import { a as
|
|
10
|
+
import { a as isDiscountApplyInFlight, i as initialDiscountApplyState, l as consumeSearchParams, n as getAppliedDiscountCode, o as ShopAddFeedback, r as getDiscountApplyFeedback, s as useTransientShopAddFeedback, t as discountApplyReducer } from "./shop-discount-apply.state-DidgH7ow.mjs";
|
|
11
11
|
import { t as CheckIcon } from "./CheckIcon-CVcKteXH.mjs";
|
|
12
12
|
import { t as CrossIcon } from "./CrossIcon-CpG9VRyW.mjs";
|
|
13
13
|
import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
|
|
14
|
-
import { n as TerminalPanel, r as StateIcon, t as useDiscountCodeUi } from "./useDiscountCodeUi-
|
|
14
|
+
import { n as TerminalPanel, r as StateIcon, t as useDiscountCodeUi } from "./useDiscountCodeUi-BuLgof7O.mjs";
|
|
15
15
|
import { t as ModalShell } from "./ModalShell-B_fHWK71.mjs";
|
|
16
|
-
import { a as PassPurchaseUnavailable, d as ShopPurchaseAction, i as PassCardView, o as PassesMembershipsSectionView, r as MembershipCardView } from "./view-
|
|
17
|
-
import { a as storeDemoBookingCheckoutReturn, i as readDemoBookingCheckoutReturnEmail } from "./demoPortalMagicLink-
|
|
16
|
+
import { a as PassPurchaseUnavailable, d as ShopPurchaseAction, i as PassCardView, o as PassesMembershipsSectionView, r as MembershipCardView } from "./view-CvlTplao.mjs";
|
|
17
|
+
import { a as storeDemoBookingCheckoutReturn, i as readDemoBookingCheckoutReturnEmail } from "./demoPortalMagicLink-BVbLD4pi.mjs";
|
|
18
|
+
import { n as useDiscountApply, s as planDirectShopCheckoutRequest } from "./useDiscountApply-BZU5DWZQ.mjs";
|
|
18
19
|
import { t as CarouselNodeClient } from "./carousel.client-h65clfUO.mjs";
|
|
19
|
-
import { r as formatEntitlementEnd } from "./dateFormatting-
|
|
20
|
-
import { t as addPassToCommerceCart } from "./shop-commerce-store-
|
|
20
|
+
import { r as formatEntitlementEnd } from "./dateFormatting-B73Ll0s4.mjs";
|
|
21
|
+
import { t as addPassToCommerceCart } from "./shop-commerce-store-Da6Ah-_4.mjs";
|
|
21
22
|
import React, { useCallback, useEffect, useRef, useState } from "react";
|
|
22
23
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
23
24
|
//#region ../blocks/src/system/runtime/shared/components/ActionRow.tsx
|
|
@@ -267,7 +268,7 @@ function PassTeamMemberChoice(props) {
|
|
|
267
268
|
/* @__PURE__ */ jsx("label", {
|
|
268
269
|
className: "rb-label",
|
|
269
270
|
htmlFor: selectId,
|
|
270
|
-
children: "
|
|
271
|
+
children: "Who would you like to see?"
|
|
271
272
|
}),
|
|
272
273
|
/* @__PURE__ */ jsxs("select", {
|
|
273
274
|
id: selectId,
|