@riverbankcms/sdk 0.172.0 → 0.173.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_dts/{BlocksIslandsHydrator-DtrzTJ77.d.ts → BlocksIslandsHydrator-O50mTMCY.d.ts} +1 -1
- package/dist/_dts/{Page-DViYbakk.d.ts → Page-Bk99sJwV.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-D-5OeDbT.d.ts → SdkPreviewMode-DzAue6Kj.d.ts} +2 -2
- package/dist/_dts/{client-DZBOzd3U.d.ts → client-ZlNEIvlU.d.ts} +1002 -139
- package/dist/_dts/{content-types-DS3DrYn_.d.ts → content-types-DBXPNc0h.d.ts} +2 -2
- package/dist/_dts/{contracts-C3QGPCUf.d.ts → contracts-D9bhu0bb.d.ts} +4 -3
- package/dist/_dts/{footerPageOutline-D9Q7VIul.d.ts → footerPageOutline-Bfap3soN.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-R7NeFT1u.d.ts → generatePageMetadata-DwCdg31h.d.ts} +2 -2
- package/dist/_dts/{index-CpOkfBt1.d.ts → index-BnatulTs.d.ts} +3 -3
- package/dist/_dts/{index-Dns7OHyl.d.ts → index-C611wjIL.d.ts} +1 -1
- package/dist/_dts/{index-Da4UMgbs.d.ts → index-CJzs-yIJ.d.ts} +2 -2
- package/dist/_dts/{index-MuMYjetm.d.ts → index-DW3eeNph.d.ts} +4 -4
- package/dist/_dts/{index-DkFV_1Bc.d.ts → index-Dq_AboWN.d.ts} +1 -1
- package/dist/_dts/{index-C0zjLMAW.d.ts → index-DutLU2d2.d.ts} +1 -1
- package/dist/_dts/{index-BnMavhoh.d.ts → index-KXh8FQ2s.d.ts} +2 -2
- package/dist/_dts/{loadContent-DJmXHzfi.d.ts → loadContent-Bde2y870.d.ts} +7 -7
- package/dist/_dts/{request-wQ28JWbr.d.ts → request-Bysk4QPI.d.ts} +1842 -262
- package/dist/_dts/{resolveBlockData-C-IP53u9.d.ts → resolveBlockData-ChbNvpSF.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-Cc4zqaEC.d.ts → resolvePageContent-CGa6QMgc.d.ts} +2 -2
- package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
- package/dist/_dts/sdk/src/client/types.d.ts +2 -2
- package/dist/_dts/sdk/src/client.d.ts +7 -7
- package/dist/_dts/sdk/src/config/index.d.ts +6 -6
- package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
- package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
- package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
- package/dist/_dts/sdk/src/data/types.d.ts +2 -2
- package/dist/_dts/sdk/src/index.d.ts +8 -8
- package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
- package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
- package/dist/_dts/sdk/src/navigation/index.d.ts +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 +1 -1
- package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
- package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
- package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
- package/dist/_dts/sdk/src/server.d.ts +5 -5
- package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
- package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
- package/dist/_dts/{types-DrinAfeW.d.ts → types-BoEk9ZON.d.ts} +3 -3
- package/dist/_dts/{types-CpjyP5I4.d.ts → types-BwitGNTl.d.ts} +7 -7
- package/dist/_dts/{types-ZuZoGsZV.d.ts → types-kpp8XyXv.d.ts} +2 -2
- package/dist/_dts/{validation-CIZ_fP5l.d.ts → validation-ChftKX-o.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-UFmQB1BE.mjs → BlocksIslandsHydrator-BnUeSE3d.mjs} +17 -17
- package/dist/client/{BookingMailingListNote-VjRYhx1c.mjs → BookingMailingListNote-LHQMODqB.mjs} +13 -7
- package/dist/client/{BookingPanelArrangement-DpqnRo-t.mjs → BookingPanelArrangement-Be704P85.mjs} +1 -1
- package/dist/client/{BookingQuestionFields-CzOT8ZWo.mjs → BookingQuestionFields-BewbU_cV.mjs} +2 -2
- package/dist/client/{CalendarNavigationChevron-CNckKZct.mjs → CalendarNavigationChevron-BMZp3RS3.mjs} +41 -34
- package/dist/client/{DemoBookingPortalAccess-CmZLVXOy.mjs → DemoBookingPortalAccess-CARUWQ_E.mjs} +21 -21
- package/dist/client/{EventCalendar.client-BU-SxLCn.mjs → EventCalendar.client-CaI6upCX.mjs} +11 -10
- package/dist/client/{EventCombined.client-f28VltfY.mjs → EventCombined.client-CoRUaYHY.mjs} +10 -9
- package/dist/client/{EventItem-sKBofjiW.mjs → EventItem-Doe4KodB.mjs} +25 -16
- package/dist/client/{EventListWeekNavigation-IAcax47T.mjs → EventListWeekNavigation-CXWLKDfa.mjs} +1 -1
- package/dist/client/{EventListing.client-BEtnRvZr.mjs → EventListing.client-DvJ5tGTx.mjs} +3 -3
- package/dist/client/{EventListing.view-BZ4l_rmT.mjs → EventListing.view-BmfyK7S5.mjs} +37 -14
- package/dist/client/{EventRegistrationPayment-BWb295cD.mjs → EventRegistrationPayment-DwMlJB2V.mjs} +846 -145
- package/dist/client/{LocationMapActions-Hsj2HC_1.mjs → LocationMapActions-CdRPU6gp.mjs} +1 -1
- package/dist/client/{MapDrawingSvg-C7E7Lyfa.mjs → MapDrawingSvg-DCLtxOnt.mjs} +1 -1
- package/dist/client/{Page-Ds1s3DuC.mjs → Page-D46Dmr7b.mjs} +548 -44
- package/dist/client/{StepIndicator-CSCyAaKY.mjs → StepIndicator-CrSZCZn1.mjs} +82 -11
- package/dist/client/{accessibleSurfaces-OsAseM7H.mjs → accessibleSurfaces-D4DhWo9j.mjs} +1 -20
- package/dist/client/{accordion-DgwFZJSx.mjs → accordion-P8xcfKxq.mjs} +1 -1
- package/dist/client/bookability-SargNwlO.mjs +17 -0
- package/dist/client/{booking-form.client-CKY9oksp.mjs → booking-form.client-BM2s-NqR.mjs} +11 -11
- package/dist/client/{bookingForm-CsHhcdSF.mjs → bookingForm-JnaZPZge.mjs} +4 -4
- package/dist/client/bookings.mjs +5 -5
- package/dist/client/{boxStyleClassNames-B1Z_TGAe.mjs → boxStyleClassNames-Cahps5kR.mjs} +1 -1
- package/dist/client/{carousel-0sw2Kc3a.mjs → carousel-CQQ_m0KA.mjs} +1 -1
- package/dist/client/{cart-CPfvMDGJ.mjs → cart-0Q4fjw_K.mjs} +3 -3
- package/dist/client/{cart.client-BJBPUTmg.mjs → cart.client-BI0IaHX3.mjs} +1 -1
- package/dist/client/{checkout-DU4JFjGT.mjs → checkout-1J-3ftxF.mjs} +3 -3
- package/dist/client/{checkout.client-BbNCO4xa.mjs → checkout.client-DOGYDlDk.mjs} +1 -1
- package/dist/client/{checkoutUrls-BQ3OlWlM.mjs → checkoutUrls-CwHqcqzP.mjs} +1 -1
- package/dist/client/client.mjs +52 -4
- package/dist/client/{context-xNC1Cyjw.mjs → context-D0KCgbOq.mjs} +81 -14
- package/dist/client/{cta-CNVQHLKs.mjs → course-CmOuoZHN.mjs} +76 -2
- package/dist/client/{dateFormatting-B6ea-egy.mjs → dateFormatting-Dmfaczzq.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-BhjGxhX3.mjs → demoPortalMagicLink-CL7KGRta.mjs} +1 -1
- package/dist/client/{display-B5DfNb6A.mjs → display-lL-YRApN.mjs} +2462 -426
- package/dist/client/{enhanceHeaderSection-BFcHLuqk.mjs → enhanceHeaderSection-B-eLGs2C.mjs} +3 -3
- package/dist/client/{event-details.client-WHT5GLn2.mjs → event-details.client-DH1-Jxsh.mjs} +1 -1
- package/dist/client/{event-registration.client-CmnRKELC.mjs → event-registration.client-GuuElczW.mjs} +1314 -552
- package/dist/client/{eventCalendar-2NbdCyov.mjs → eventCalendar-BiCINPkV.mjs} +4 -4
- package/dist/client/{eventCombined-D1lH1n2T.mjs → eventCombined-BtzmH6FW.mjs} +4 -4
- package/dist/client/{eventDetails-BHvnF2Tw.mjs → eventDetails-BJpAD10-.mjs} +2 -2
- package/dist/client/{eventListing-EhSDk4UL.mjs → eventListing-jLB8iRqp.mjs} +4 -4
- package/dist/client/{eventRegistration-z_0jN_KS.mjs → eventRegistration-WhtpDEbq.mjs} +4 -4
- package/dist/client/{form-BfChzSkS.mjs → form-DO6qKH3M.mjs} +3 -3
- package/dist/client/{form.client-D1zehtPk.mjs → form.client-D12ljYiX.mjs} +3 -3
- package/dist/client/{form.parts-rMDlUQIv.mjs → form.parts-C8QHaQOI.mjs} +1 -1
- package/dist/client/{formatDate-ymSVT9Y5.mjs → formatDate-BnhfIpCa.mjs} +1 -1
- package/dist/client/gifting/client.mjs +2 -2
- package/dist/client/{headerSection-BX9bQ84k.mjs → headerSection-BtFWtoUm.mjs} +2 -2
- package/dist/client/{newsletter-form.client-DMbuJCtJ.mjs → newsletter-form.client-oHrqM_Ao.mjs} +4 -4
- package/dist/client/{newsletter-form.parts-BxrVsoI0.mjs → newsletter-form.parts-D5U-FuVy.mjs} +1 -1
- package/dist/client/{newsletterForm-B_I3FJFS.mjs → newsletterForm-CBYbFxSx.mjs} +3 -3
- package/dist/client/{noop-CamIX2yK.mjs → noop-CN0o0yjH.mjs} +115 -12
- package/dist/client/portal/client.mjs +7 -7
- package/dist/client/{product-detail.client-qxuiYCof.mjs → product-detail.client-d_sNCapC.mjs} +1 -1
- package/dist/client/{product-list.client-CDL-jihv.mjs → product-list.client-DkSpw6WQ.mjs} +1 -1
- package/dist/client/{productDetail-B97m0uZy.mjs → productDetail-DaqM-LgL.mjs} +3 -3
- package/dist/client/{productList-DE4vSSG_.mjs → productList-CMx4-XlG.mjs} +3 -3
- package/dist/client/{propsDecoder-BTde6Syh.mjs → propsDecoder-BZbUKstC.mjs} +3 -3
- package/dist/client/{registry.server-Cn8XjRte.mjs → registry.server-Cdot3dMk.mjs} +85 -57
- package/dist/client/rendering/client.mjs +25 -25
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +24 -55
- package/dist/client/{richText-coerce-Bcl3vTb4.mjs → richText-coerce-ByApwB4q.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-BjRoLoMD.mjs → routeIslandApiConfig-DTET8f__.mjs} +1 -1
- package/dist/client/{runtimeResponse-B-lrAGhX.mjs → runtimeResponse-IkOwKZD0.mjs} +1 -1
- package/dist/client/runtimeResponse-Wd6kwhE_.mjs +3 -0
- package/dist/client/{shop-BC4H0oYT.mjs → shop-Cy6xXDM7.mjs} +3 -3
- package/dist/client/{shop-commerce-BsY7a71m.mjs → shop-commerce-oDR76k1q.mjs} +11 -10
- package/dist/client/{shop-commerce-store-BZ5j90HD.mjs → shop-commerce-store-DjoUpL3a.mjs} +1 -1
- package/dist/client/shop-discount-apply.state-WsGb9DD8.mjs +166 -0
- package/dist/client/{shop.client-WgGVGelc.mjs → shop.client-Brha4BSM.mjs} +11 -10
- package/dist/client/{shop.interactive-Bb67gPLL.mjs → shop.interactive-CXhYl0DW.mjs} +35 -12
- package/dist/client/{shopShared-BE6TEk2A.mjs → shopShared-JCa_SRhP.mjs} +2 -2
- package/dist/client/stable-json-D0XAEIXc.mjs +22 -0
- package/dist/client/{timetableModel-Bbz_ECL5.mjs → timetableModel-CZeJwMxP.mjs} +10 -10
- package/dist/client/{useAvailableSlots-CdP14E_b.mjs → useAvailableSlots-DfbSkWop.mjs} +17 -6
- package/dist/client/{useDiscountApply-DvOSso2l.mjs → useDiscountApply-Dq-wjb1d.mjs} +4 -167
- package/dist/client/{useDiscountCodeUi-B4fRd2jy.mjs → useDiscountCodeUi-Cyy0meCH.mjs} +1 -1
- package/dist/client/{useEventPagination-M3jC8lgP.mjs → useEventPagination-CCAGQHsD.mjs} +5 -5
- package/dist/client/{view-B0TFnP4y.mjs → view-D6yebI4r.mjs} +51 -31
- package/dist/client/{view-DNNNbnNj.mjs → view-Sw075FOY.mjs} +2 -2
- package/dist/preview-next/client/{PageSectionToolbar-D59tHj_L.mjs → PageSectionToolbar-DG2rXUmo.mjs} +26 -19
- package/dist/preview-next/client/{PreviewEditorSidebar-CjOIZlUk.mjs → PreviewEditorSidebar-BDY5vdHU.mjs} +27 -360
- package/dist/preview-next/client/{PreviewEditorUI--kS9Cwsc.mjs → PreviewEditorUI-CqZCfOaz.mjs} +4 -4
- package/dist/preview-next/client/{PreviewShell-Bi8-rclb.mjs → PreviewShell-Bv2HZ7JY.mjs} +7 -7
- package/dist/preview-next/client/{SdkPreviewModeRuntime-CWTUw-3L.mjs → SdkPreviewModeRuntime-BMTcR-MW.mjs} +5 -55
- package/dist/preview-next/client/{SiteChromeCustomizeButton-CrgS3I8d.mjs → SiteChromeCustomizeButton-D1MGyN_Z.mjs} +2668 -799
- package/dist/preview-next/client/{previewAssistantSlot-Caofnr1Z.mjs → previewAssistantSlot-La6MerV_.mjs} +3540 -684
- package/dist/preview-next/client/{previewChromeRoot-CbAI_jSH.mjs → previewChromeRoot-BcOQqJIP.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-DY65_hLk.mjs → sdk-runtime-BkckHox4.mjs} +2 -2
- package/dist/preview-next/client/{useAutosaveStatus-CakNU3lp.mjs → useAutosaveStatus-CPAHgGqI.mjs} +1 -1
- package/dist/preview-next/client/{useOpenBlockForSetup-CCEMkosU.mjs → useOpenBlockForSetup-BDkuSZxQ.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-DsKDQoVW.mjs → route-contract-CPV30ABr.mjs} +48 -0
- package/dist/server/{Block.shared-D7Qy9F4a.mjs → Block.shared-BaMMstO1.mjs} +5 -5
- package/dist/server/{bindings-Bp6OnR3n.mjs → bindings-Dge4sqel.mjs} +4 -4
- package/dist/server/{client-dROAfMRa.mjs → client-VVIQjC4r.mjs} +51 -3
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/{identity-20XHqyuO.mjs → identity-DQD_8lNO.mjs} +1 -1
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-zOIrtqz-.mjs → loadContent-BIJb3WAK.mjs} +5 -6
- package/dist/server/{loadPage-vwFiq1Rk.mjs → loadPage-DjTU19y7.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 +6 -6
- package/dist/server/{overrideResolution-DjboggbB.mjs → overrideResolution-1Ru3NMQj.mjs} +1 -1
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{pageRenderPlan-BR4t1rOw.mjs → pageRenderPlan-CytPhrI9.mjs} +143 -27
- package/dist/server/{pageRuntimeSupport-BKo6XVK-.mjs → pageRuntimeSupport-DWspU5EZ.mjs} +3 -3
- package/dist/server/{pageShared-BJjptSGp.mjs → pageShared-Bhx8bVe1.mjs} +166 -67
- package/dist/server/{parseThemeForPersistence-B18KDEue.mjs → parseThemeForPersistence-CtgRtvo3.mjs} +1 -1
- package/dist/server/{prebuild-CntSkZQI.mjs → prebuild-BjvFb0CA.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-BM9Ds0OQ.mjs → prefetchBlockData-Db3stNpp.mjs} +3 -3
- package/dist/server/{registry-wYH0LH5f.mjs → registry-BMCfcev6.mjs} +809 -191
- package/dist/server/rendering/components/pageShared.mjs +1 -1
- package/dist/server/rendering/helpers/loadPage.mjs +1 -1
- package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
- package/dist/server/rendering/server.mjs +3 -3
- package/dist/server/rendering.mjs +8 -8
- package/dist/server/{resolveBlockData-Bu_p4HxZ.mjs → resolveBlockData--yUbI-Ll.mjs} +1 -1
- package/dist/server/{responseMedia-t6gs0cB7.mjs → responseMedia-DpBC1hTM.mjs} +1 -1
- package/dist/server/{schema-BFOqYIMQ.mjs → schema-D5Vfmqzw.mjs} +394 -1
- package/dist/server/server.mjs +3 -3
- package/dist/server/theme.mjs +2 -2
- package/dist/server/{validation-DAQdPDku.mjs → validation-EgTtnTcY.mjs} +4 -4
- package/dist/server/{version-DAB0O3yx.mjs → version-LjgU0Cq1.mjs} +1 -1
- package/dist/styles/index.css +174 -0
- package/package.json +1 -1
- package/dist/client/runtimeResponse-CPcA8xSm.mjs +0 -3
- package/dist/server/rich-text-CRcONdyM.mjs +0 -33
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { n as parseSurfaceTree } from "./accessibleSurfaces-
|
|
2
|
+
import { n as parseSurfaceTree } from "./accessibleSurfaces-D4DhWo9j.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,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-BZbUKstC.mjs";
|
|
3
|
+
import { t as ShopClient } from "./shop.client-Brha4BSM.mjs";
|
|
4
|
+
import { t as mountShopBlockIsland } from "./shopShared-JCa_SRhP.mjs";
|
|
5
5
|
//#region src/rendering/islands/enhancers/shop.tsx
|
|
6
6
|
const decode = defineIslandPropsDecoder("shop");
|
|
7
7
|
const enhance = (root, props) => {
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { u as getShopDisplayForItems } from "./shop.interactive-
|
|
3
|
-
import {
|
|
2
|
+
import { u as getShopDisplayForItems } from "./shop.interactive-CXhYl0DW.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-lL-YRApN.mjs";
|
|
4
4
|
import { _ as clearWorkflowFeedback, p as assertNever, v as reportWorkflowError } from "./creditProducts-BTRX4edc.mjs";
|
|
5
|
-
import {
|
|
6
|
-
import { n as useBlockApi } from "./context-
|
|
5
|
+
import { i as SiteTermsChangedNotice, l as DiscountCodeDisclosure, n as DemoBookingPortalAccess, o as useSiteTermsAgreement, r as SiteTermsAgreementField } from "./DemoBookingPortalAccess-CARUWQ_E.mjs";
|
|
6
|
+
import { n as useBlockApi } from "./context-D0KCgbOq.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-CwHqcqzP.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-WsGb9DD8.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-ByApwB4q.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-Sw075FOY.mjs";
|
|
14
|
+
import { a as storeDemoBookingCheckoutReturn, i as readDemoBookingCheckoutReturnEmail } from "./demoPortalMagicLink-CL7KGRta.mjs";
|
|
15
|
+
import { c as planUnifiedCheckoutRequest, i as checkoutFormForDiscountUiState, n as useDiscountApply, o as planCartDiscountAvailabilityRequests, r as aggregateCartDiscountUiState } from "./useDiscountApply-Dq-wjb1d.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-DjoUpL3a.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-lL-YRApN.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-BTRX4edc.mjs";
|
|
3
|
+
import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
|
|
4
|
+
import { a as normalizeManualDiscountCode } from "./useDiscountApply-Dq-wjb1d.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,23 +1,24 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { _ as shopProductPresentation } from "./shop.interactive-
|
|
3
|
-
import { c as formatInterval,
|
|
2
|
+
import { _ as shopProductPresentation } from "./shop.interactive-CXhYl0DW.mjs";
|
|
3
|
+
import { c as formatInterval, hi as getShopSuccessCopy, s as formatCommercePrice } from "./display-lL-YRApN.mjs";
|
|
4
4
|
import { N as assertNever$1, p as assertNever } from "./creditProducts-BTRX4edc.mjs";
|
|
5
|
-
import {
|
|
6
|
-
import { n as useBlockApi } from "./context-
|
|
5
|
+
import { i as SiteTermsChangedNotice, l as DiscountCodeDisclosure, o as useSiteTermsAgreement, r as SiteTermsAgreementField, t as BookingConfirmation } from "./DemoBookingPortalAccess-CARUWQ_E.mjs";
|
|
6
|
+
import { n as useBlockApi } from "./context-D0KCgbOq.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-WsGb9DD8.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-Cyy0meCH.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-Sw075FOY.mjs";
|
|
17
|
+
import { a as storeDemoBookingCheckoutReturn, i as readDemoBookingCheckoutReturnEmail } from "./demoPortalMagicLink-CL7KGRta.mjs";
|
|
18
|
+
import { n as useDiscountApply, s as planDirectShopCheckoutRequest } from "./useDiscountApply-Dq-wjb1d.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-Dmfaczzq.mjs";
|
|
21
|
+
import { t as addPassToCommerceCart } from "./shop-commerce-store-DjoUpL3a.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
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { d as parseUuidBrand, f as err, p as ok } from "./renderableMediaAssetAdmission-BlfqYLJW.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { Ba as defineProgressiveBlockRuntime, Ca as browserReadAuthoritySchema, Cc as formatBookingPriceDisplay, Cr as renderAudio, Cs as toNonEmptyReadonlyArray, Ct as toRegistrationEvents, D as registrationStepLabel, Dc as publicEventPricingDisplay, E as registrationRoute, Fa as eventRegistrationPageSurfaceSubjectSchema, Ga as lookListPresentationSchemaShape, Ha as listItemPresentation, Jr as resolveRuntimeEventDestination, La as resolveEventRegistrationScopedEvents, Ma as buildInteractiveIslandProps, Mr as eventDateLocale, N as isRegistrationLocked, Na as createInteractiveIslandCodec, Nn as formatRegistrationSchedule, Nr as eventDateOptions, O as registrationStepLabelContext, Or as resolveMediaNodeResponsiveImage, Pa as defineInteractiveIslandMetaKeys, Pc as parseEventSeriesId, Pr as eventLocalDateKey, Qr as formatRemainingPlaces, Ra as createZodCodec, Rr as formatEventCompactDateRail, S as getEventSelectionMode, Sa as resolveDateRuntimeContext, Sc as EVENT_PRESET_VOCABULARY, Sr as mediaImageHostProps, Tt as toWholeSeriesRegistrationEvents, Va as isDecodeSuccess, Vn as withOccurrenceTitle, Vs as cardRoleSchema, Wa as listLookSlot, _a as weekStartSchema, _c as parseBrevoListId, _r as shownVenue, a as buildProductDetailDisplay, b as resolveSelectedProduct, bc as parseNewsletterListId, br as MediaPlaceholder, ca as calendarTabViewsSchema, da as eventCalendarDefaultViewSchema, dc as resolveWholeSeriesBookingPhase, ds as assertNever, dt as resolveEventRequiresPayment, fa as eventCalendarDisplayModeSchema, fc as resolveWholeSeriesRunLifecycle, g as deriveCommerceCheckoutState, ga as registrationButtonVariantSchema, gc as DEFAULT_MAILING_LIST_SUCCESS_MESSAGE, gr as resolveRegistrationDisplay, ha as previewStageSchema, hc as DEFAULT_MAILING_LIST_PRIVACY_NOTE, hr as registrationDisplaySchema, ii as selectEventCapacitySource, ja as bookingPageKindSchema, jr as eventCalendarWeekStart, ka as pageNavigationSchema, kn as formatBookingWhen, la as columnOptionSchema, lc as nextLiveRunSessionStartMs, lo as resolveModeArrangement, lt as findPreSelectedEvent, ma as filterAutoShowSchema, mr as placesLeftLabel, n as buildCheckoutDisplay, ni as getRemainingPlaces, o as buildProductListDisplay, oi as groupPublicEventsByRun, pa as eventLayoutSchema, pc as parseMailingListRuntimeContext, pr as bookingPresentation, r as buildPassesMembershipsDisplay, sa as bookingNowSchema, t as buildCartDisplay, ua as eventButtonVariantSchema, vc as parseMailchimpAudienceId, vr as RichText, wc as formatEventPricing, wr as renderVideo, wt as toWholeSeriesRegistrationEvent, x as REGISTRATION_STEP_LABELS, xr as computeMediaTransformStyle, ya as blockButtonRoleSchema, yc as parseMailchimpInterestId, yr as ImagePresets, za as defineClientOwnedBlockRuntime } from "./display-lL-YRApN.mjs";
|
|
4
|
+
import { Gt as inferSiteDateLocale, Ht as formatTime, L as publicEventDestinationSchema, Rt as formatDate, S as isEventCalendarListLayout, St as publicEventLoaderQuerySchemaShape, Yt as buildBookingUtcDateWindow, bt as eventSurfacePresetValues, en as getLocalScheduleDate, ft as publicMembershipProductSchema, g as eventCalendarListGroupingDecision, gt as purchasablePublicPassProductSchema, ht as purchasablePublicMembershipProductSchema, in as resolveBookingTimeZoneId, mt as publicProductSchema, n as blockSiteTermsSchema, on as parseUtcIsoDateTimeString, p as calendarWindowPageSchema, pt as publicPassProductSchema, rn as resolveBookingBusinessTimeZone, sn as toUtcIsoDateTimeString, tn as parseBookingLocalDate, v as eventCalendarVariantMeaning, w as resolveEventCalendarReadPlan, xt as eventSurfaceScopeValues, y as eventListArrangementValues, yt as eventScheduleScopeValues, z as publicEventSchema, zt as formatDateRange } from "./noop-CN0o0yjH.mjs";
|
|
5
5
|
import { N as assertNever$2, p as assertNever$1 } from "./creditProducts-BTRX4edc.mjs";
|
|
6
6
|
import { d as formatDateKey, h as getWeekCalendarDayTuple, l as buildCalendarViewport, r as groupItemsByDate, s as addDays } from "./src-xrjaKaCj.mjs";
|
|
7
7
|
import { S as clsx, h as ExternalLinkIcon, i as ThemedButtonLink, n as ThemedAuthoredButton } from "./ThemedButton-DuaYtnvG.mjs";
|
|
@@ -520,7 +520,7 @@ function normalizeEventStaffMemberId(value) {
|
|
|
520
520
|
//#region ../blocks/src/system/runtime/nodes/events/domain/pricing.ts
|
|
521
521
|
/**
|
|
522
522
|
* Format event price for display.
|
|
523
|
-
* @returns "Free", "£25", "£12–£25", "Free / £12–£25", "
|
|
523
|
+
* @returns "Free", "£25", "£12–£25", "Free / £12–£25", "£220 for the course", etc.
|
|
524
524
|
*
|
|
525
525
|
* Events render compact amounts (no trailing ".00"); the actual ADT→string
|
|
526
526
|
* mapping lives in `formatBookingPriceDisplay` in @riverbankcms/core so all
|
|
@@ -528,8 +528,16 @@ function normalizeEventStaffMemberId(value) {
|
|
|
528
528
|
*/
|
|
529
529
|
function formatEventPrice(event) {
|
|
530
530
|
const label = formatEventPricing(event.pricing, { decimals: "auto" });
|
|
531
|
-
|
|
532
|
-
|
|
531
|
+
return event.bookingScope === "whole_series" ? formatCoursePrice(event.pricing) : label;
|
|
532
|
+
}
|
|
533
|
+
/**
|
|
534
|
+
* A course's price, said for the whole course: one booking covers every
|
|
535
|
+
* session, so "£72 for the course" rather than a bare "£72" next to one
|
|
536
|
+
* session's length.
|
|
537
|
+
*/
|
|
538
|
+
function formatCoursePrice(pricing) {
|
|
539
|
+
const label = formatEventPricing(pricing, { decimals: "auto" });
|
|
540
|
+
return publicEventPricingDisplay(pricing).kind === "free" ? label : `${label} for the course`;
|
|
533
541
|
}
|
|
534
542
|
/**
|
|
535
543
|
* Format an event's price directly from its pricing value (without the full
|
|
@@ -959,9 +967,16 @@ function selectCardListPresentation(source) {
|
|
|
959
967
|
[key]: source[key]
|
|
960
968
|
}), {});
|
|
961
969
|
}
|
|
962
|
-
/**
|
|
970
|
+
/**
|
|
971
|
+
* Date rows that carry places own availability; a course's rows don't, since
|
|
972
|
+
* its places belong to the whole course. A missing batch still uses the summary.
|
|
973
|
+
*/
|
|
963
974
|
function resolveCardListSchedule(item, mode) {
|
|
964
|
-
|
|
975
|
+
if (mode !== "next-dates" || !item.dates?.length) return {
|
|
976
|
+
part: "schedule",
|
|
977
|
+
item
|
|
978
|
+
};
|
|
979
|
+
return item.dates.some((date) => date.places) ? {
|
|
965
980
|
part: "dates",
|
|
966
981
|
item: {
|
|
967
982
|
...item,
|
|
@@ -969,7 +984,7 @@ function resolveCardListSchedule(item, mode) {
|
|
|
969
984
|
availability: null
|
|
970
985
|
}
|
|
971
986
|
} : {
|
|
972
|
-
part: "
|
|
987
|
+
part: "dates",
|
|
973
988
|
item
|
|
974
989
|
};
|
|
975
990
|
}
|
|
@@ -1019,9 +1034,9 @@ const partRenderers = {
|
|
|
1019
1034
|
...listLookSlot(presentation, "schedule"),
|
|
1020
1035
|
children: item.schedule
|
|
1021
1036
|
}) : null,
|
|
1022
|
-
dates: ({ item, presentation }) => item.dates?.length ? /* @__PURE__ */
|
|
1037
|
+
dates: ({ item, presentation }) => item.dates?.length ? /* @__PURE__ */ jsxs("ul", {
|
|
1023
1038
|
...listLookSlot(presentation, "dates"),
|
|
1024
|
-
children: item.dates.map((date, index) => /* @__PURE__ */ jsxs("li", {
|
|
1039
|
+
children: [item.dates.map((date, index) => /* @__PURE__ */ jsxs("li", {
|
|
1025
1040
|
...listLookSlot(presentation, "date"),
|
|
1026
1041
|
children: [
|
|
1027
1042
|
/* @__PURE__ */ jsx("time", {
|
|
@@ -1040,7 +1055,10 @@ const partRenderers = {
|
|
|
1040
1055
|
extraClassName: "rb-card-list-date-booking"
|
|
1041
1056
|
}) : null
|
|
1042
1057
|
]
|
|
1043
|
-
}, `${date.startsAt}-${index}`))
|
|
1058
|
+
}, `${date.startsAt}-${index}`)), item.datesMore ? /* @__PURE__ */ jsx("li", {
|
|
1059
|
+
"data-dates-more": true,
|
|
1060
|
+
children: item.datesMore
|
|
1061
|
+
}) : null]
|
|
1044
1062
|
}) : null,
|
|
1045
1063
|
availability: ({ item, presentation }) => item.availability ? /* @__PURE__ */ jsx("p", {
|
|
1046
1064
|
...listLookSlot(presentation, "availability"),
|
|
@@ -1095,6 +1113,11 @@ function CardListTitle({ item, presentation, Title = "h3" }) {
|
|
|
1095
1113
|
})
|
|
1096
1114
|
}) : item.title
|
|
1097
1115
|
}),
|
|
1116
|
+
item.subtitle ? /* @__PURE__ */ jsx("p", {
|
|
1117
|
+
className: "rb-card-list-subtitle rb-caption",
|
|
1118
|
+
"data-card-subtitle": true,
|
|
1119
|
+
children: item.subtitle
|
|
1120
|
+
}) : null,
|
|
1098
1121
|
/* @__PURE__ */ jsx(EventQuickFacts, {
|
|
1099
1122
|
facts: item.quickFacts,
|
|
1100
1123
|
context: "card"
|
|
@@ -4846,4 +4869,4 @@ function shopProductPresentation(hydration, productId, index, count) {
|
|
|
4846
4869
|
};
|
|
4847
4870
|
}
|
|
4848
4871
|
//#endregion
|
|
4849
|
-
export { DEFAULT_BOOKING_BUTTON_TEXT as $, groupEventsByWeek as $t, formInteractiveIslandPropsCodec as A, toEventPaginationLoadError as At, OFFERINGS_PREVIEW_DEFAULT_EMPTY_MESSAGE as B, CardListLeadDate as Bt, newsletterFormInteractiveIslandPropsCodec as C,
|
|
4872
|
+
export { DEFAULT_BOOKING_BUTTON_TEXT as $, groupEventsByWeek as $t, formInteractiveIslandPropsCodec as A, toEventPaginationLoadError as At, OFFERINGS_PREVIEW_DEFAULT_EMPTY_MESSAGE as B, CardListLeadDate as Bt, newsletterFormInteractiveIslandPropsCodec as C, parseMailingListVisitorSelection as Cn, eventListingInteractiveIslandPropsCodec as Ct, publicGiftingOffersResponseSchema as D, unsafeAsContentEntryId as Dn, getEventIdentity as Dt, giftingInteractiveIslandPropsCodec as E, parseContentVersionId as En, eventPaginationLoadReducer as Et, eventRegistrationInteractiveIslandPropsCodec as F, normalizeCsvString as Ft, isOfferingsPreviewSourceKey as G, EventQuickFacts as Gt, OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS as H, resolveCardListSchedule as Ht, resolveEventRegistrationEventSource as I, normalizeOptionalId as It, offeringRunLifecycle as J, getContainerClass as Jt, normalizeOfferingsPreviewContentForWrite as K, quickFactSlots as Kt, offeringNounForEvent as L, catalogueEventCardProps as Lt, buildEventRegistrationInteractiveIslandProps as M, buildEventRuntimeFilters as Mt, displayButtonText as N, getEventRuntimeFiltersKey as Nt, buildFormInteractiveIslandProps as O, getEventPaginationView as Ot, eventRegistrationBlockRuntime as P, normalizeCsvIds as Pt, resolveOfferingsRenderInput as Q, eventWeekGroupingContext as Qt, OFFERINGS_PREVIEW_AUTHORABLE_SOURCE_KEYS as R, listingEventCardProps as Rt, newsletterFormBlockRuntime as S, parseMailingListPlacementTargeting as Sn, eventListingBlockRuntime as St, giftingBlockRuntime as T, sameMailingListPlacementTargeting as Tn, eventPageOperationQuery as Tt, buildOfferingsPreviewListing as U, selectCardListPresentation as Ut, OFFERINGS_PREVIEW_DEFAULT_FAILED_MESSAGE as V, cardListPresentationSchemaShape as Vt, groupOfferingRunsByCourse as W, MediaNodeServer as Wt, resolveOfferingsPreviewGroupCta as X, buildEventListWeek as Xt, offeringsListingFor as Y, Grid as Yt, resolveOfferingsPreviewGroups as Z, eventListWeekDays as Zt, shopProductPresentation as _, parseHeaderPositioning as _n, eventCalendarInteractiveIslandPropsCodec as _t, buildShopInteractiveIslandProps as a, formatEventStartingPrice as an, courseTitleOf as at, buildNewsletterFormInteractiveIslandProps as b, buildMailingListSignupBlockSourceRef as bn, combinedLookSchema as bt, checkoutBlockRuntime as c, normalizeEventStaffMemberId as cn, closedRunCopy as ct, productDetailBlockRuntime as d, normalizeEventVenueId as dn, eventCombinedBlockRuntime as dt, weekColumnDays as en, bookingBarPlacement as et, productDetailInteractiveIslandPropsCodec as f, resolveEventSelection as fn, eventCombinedInteractiveIslandPropsCodec as ft, shopInteractiveIslandPropsCodec as g, staticHeaderChromeRuntime as gn, eventCalendarBlockRuntime as gt, shopBlockRuntime as h, resolveHeaderChromeRuntimeContract as hn, buildEventCalendarListingRender as ht, buildProductListInteractiveIslandProps as i, formatEventPriceDisplay as in, bookingPanelHeading as it, buildEventRegistrationDisplayFromScopedEvents as j, toError as jt, formBlockRuntime as k, planEventPageOperation as kt, checkoutInteractiveIslandPropsCodec as l, normalizeEventSurfacePresets as ln, buildEventCombinedInteractiveIslandProps as lt, productListInteractiveIslandPropsCodec as m, isHeaderScrollRuntimeEnabled as mn, buildEventCalendarListingDisplay as mt, buildCheckoutInteractiveIslandProps as n, formatEventPrice as nn, bookingEntry as nt, cartBlockRuntime as o, normalizeEventCategoryIds as on, formatBookingSchedulePresentation as ot, productListBlockRuntime as p, headerChromeRuntimeContractSchema as pn, buildEventCalendarInteractiveIslandProps as pt, normalizeOfferingsPreviewItemLimit as q, getCardOrientation as qt, buildProductDetailInteractiveIslandProps as r, formatEventPriceAmount as rn, bookingEntryProgress as rt, cartInteractiveIslandPropsCodec as s, normalizeEventScheduleScope as sn, occurrenceContextSchema as st, buildCartInteractiveIslandProps as t, formatCoursePrice as tn, bookingCardEntry as tt, getShopDisplayForItems as u, normalizeEventSurfaceScope as un, buildEventCombinedListingDisplay as ut, publicProductsResponseSchema as v, planSiteChromePlacement as vn, projectRecurringSchedule as vt, buildGiftingInteractiveIslandProps as w, DEFAULT_MAILING_LIST_TARGETING as wn, createInitialEventPaginationLoadState as wt, newsletterBlockSubmissionMessage as x, assessMailingListTargeting as xn, buildEventListingInteractiveIslandProps as xt, NEWSLETTER_SIGNUPS_PAUSED_MESSAGE as y, splitSiteChromePlacementClasses as yn, recurringScheduleProjectionSchema as yt, OFFERINGS_PREVIEW_DEFAULT_BUTTON_TEXT as z, CardListContentPart as zt };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as BlockApiProvider } from "./context-
|
|
2
|
+
import { t as BlockApiProvider } from "./context-D0KCgbOq.mjs";
|
|
3
3
|
import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
|
|
4
|
-
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-
|
|
4
|
+
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-DTET8f__.mjs";
|
|
5
5
|
import "react";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
//#region src/rendering/islands/enhancers/shopShared.tsx
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
//#region ../core/src/stable-json.ts
|
|
3
|
+
function stableJsonStringify(value) {
|
|
4
|
+
return JSON.stringify(sortStableJsonValue(value));
|
|
5
|
+
}
|
|
6
|
+
function sortStableJsonValue(value) {
|
|
7
|
+
if (value === null) return null;
|
|
8
|
+
if (typeof value === "string" || typeof value === "boolean") return value;
|
|
9
|
+
if (typeof value === "number") {
|
|
10
|
+
if (!Number.isFinite(value)) throw new TypeError("Stable JSON only supports finite numbers");
|
|
11
|
+
return value;
|
|
12
|
+
}
|
|
13
|
+
if (Array.isArray(value)) return value.map(sortStableJsonValue);
|
|
14
|
+
if (typeof value === "object") {
|
|
15
|
+
const prototype = Object.getPrototypeOf(value);
|
|
16
|
+
if (prototype !== Object.prototype && prototype !== null) throw new TypeError("Stable JSON only supports plain objects");
|
|
17
|
+
return Object.fromEntries(Object.entries(value).sort(([left], [right]) => left < right ? -1 : left > right ? 1 : 0).map(([key, child]) => [key, sortStableJsonValue(child)]));
|
|
18
|
+
}
|
|
19
|
+
throw new TypeError(`Stable JSON does not support ${typeof value}`);
|
|
20
|
+
}
|
|
21
|
+
//#endregion
|
|
22
|
+
export { stableJsonStringify as t };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { Kr as groupEventsByDate, Lr as formatEventClockLabel, Nr as eventDateOptions, Sa as resolveDateRuntimeContext, Ur as formatEventTimeRange, Zr as formatEventRemainingPlaces, qr as resolveEventTimeZone, ri as isEventFull, ti as getEventAvailabilityStatus, vr as RichText } from "./display-lL-YRApN.mjs";
|
|
3
|
+
import { Jt as toScheduledBookingDateTime, Rt as formatDate, nn as parseLocalScheduleTime, qt as formatBookingCompactEnglishTime } from "./noop-CN0o0yjH.mjs";
|
|
4
4
|
import { N as assertNever } from "./creditProducts-BTRX4edc.mjs";
|
|
5
|
-
import { t as LocationMapActions } from "./LocationMapActions-
|
|
6
|
-
import { J as textColorStyle } from "./accessibleSurfaces-OsAseM7H.mjs";
|
|
5
|
+
import { t as LocationMapActions } from "./LocationMapActions-CdRPU6gp.mjs";
|
|
7
6
|
import { d as formatDateKey, f as getDayOfWeek, i as buildTimetableModel$1, v as isToday } from "./src-xrjaKaCj.mjs";
|
|
7
|
+
import { J as textColorStyle } from "./accessibleSurfaces-D4DhWo9j.mjs";
|
|
8
8
|
import { C as parseThemeButtonVariantId, S as clsx, i as ThemedButtonLink, n as ThemedAuthoredButton, r as ThemedButton } from "./ThemedButton-DuaYtnvG.mjs";
|
|
9
|
-
import {
|
|
10
|
-
import { r as readableMapDrawing, t as AdmittedMapDrawingSvg } from "./MapDrawingSvg-
|
|
11
|
-
import { l as formatEventTeacherLine } from "./EventItem-
|
|
12
|
-
import { t as CalendarNavigationChevron } from "./CalendarNavigationChevron-
|
|
13
|
-
import { t as coerceRichTextDoc } from "./richText-coerce-
|
|
9
|
+
import { c as resolveEventLinkProps, n as eventDisplayTitleText } from "./course-CmOuoZHN.mjs";
|
|
10
|
+
import { r as readableMapDrawing, t as AdmittedMapDrawingSvg } from "./MapDrawingSvg-DCLtxOnt.mjs";
|
|
11
|
+
import { l as formatEventTeacherLine } from "./EventItem-Doe4KodB.mjs";
|
|
12
|
+
import { t as CalendarNavigationChevron } from "./CalendarNavigationChevron-BMZp3RS3.mjs";
|
|
13
|
+
import { t as coerceRichTextDoc } from "./richText-coerce-ByApwB4q.mjs";
|
|
14
14
|
import "react";
|
|
15
15
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
16
16
|
import { z } from "zod";
|
|
@@ -698,7 +698,7 @@ const WeekBoardCard = ({ event, showCapacity, calendarTimeZone }) => {
|
|
|
698
698
|
children: [
|
|
699
699
|
/* @__PURE__ */ jsx("span", {
|
|
700
700
|
className: "event-week-board-card-title",
|
|
701
|
-
children: event
|
|
701
|
+
children: eventDisplayTitleText(event)
|
|
702
702
|
}),
|
|
703
703
|
/* @__PURE__ */ jsx("span", {
|
|
704
704
|
className: "event-week-board-card-time",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { Ht as formatTime$1, Qt as formatLocalScheduleDate, Rt as formatDate$1, Xt as addLocalScheduleDays, en as getLocalScheduleDate, in as resolveBookingTimeZoneId, on as parseUtcIsoDateTimeString, tn as parseBookingLocalDate } from "./noop-CN0o0yjH.mjs";
|
|
3
3
|
import { F as unsafeAsAppointmentResourceId, p as assertNever } from "./creditProducts-BTRX4edc.mjs";
|
|
4
|
-
import { n as useBlockApi } from "./context-
|
|
4
|
+
import { n as useBlockApi } from "./context-D0KCgbOq.mjs";
|
|
5
5
|
import { useCallback, useEffect, useReducer, useRef } from "react";
|
|
6
6
|
//#region ../blocks/src/utils/date-formatting.ts
|
|
7
7
|
/**
|
|
@@ -153,10 +153,8 @@ function getAvailableDatesError(state) {
|
|
|
153
153
|
return state.tag === "error" ? state.message : null;
|
|
154
154
|
}
|
|
155
155
|
function mergeAvailableDates(previous, action) {
|
|
156
|
-
const availableDates = action.append ? new Set(previous.availableDates) : /* @__PURE__ */ new Set();
|
|
157
|
-
for (const date of action.dates) availableDates.add(date);
|
|
158
156
|
return {
|
|
159
|
-
availableDates,
|
|
157
|
+
availableDates: /* @__PURE__ */ new Set([...action.append ? previous.availableDates : [], ...action.dates]),
|
|
160
158
|
hasMore: action.hasMore,
|
|
161
159
|
loadedRange: {
|
|
162
160
|
start: action.append && previous.loadedRange ? previous.loadedRange.start : action.startDate,
|
|
@@ -204,6 +202,19 @@ function availableDatesReducer(state, action) {
|
|
|
204
202
|
*/
|
|
205
203
|
const AVAILABILITY_REFRESH_INTERVAL_MS$1 = 3e4;
|
|
206
204
|
const AVAILABILITY_REFRESH_JITTER_MS$1 = 5e3;
|
|
205
|
+
async function readAvailableDatesRange(api, query) {
|
|
206
|
+
const page = await api.getAvailableDates(query);
|
|
207
|
+
if (!page.nextStartDate || page.nextStartDate > query.endDate || page.nextStartDate <= query.startDate) return page;
|
|
208
|
+
const rest = await readAvailableDatesRange(api, {
|
|
209
|
+
...query,
|
|
210
|
+
startDate: page.nextStartDate
|
|
211
|
+
});
|
|
212
|
+
return {
|
|
213
|
+
...rest,
|
|
214
|
+
startDate: page.startDate,
|
|
215
|
+
dates: [...page.dates, ...rest.dates]
|
|
216
|
+
};
|
|
217
|
+
}
|
|
207
218
|
/**
|
|
208
219
|
* Fetches dates with availability for a service
|
|
209
220
|
*
|
|
@@ -238,7 +249,7 @@ function useAvailableDates({ serviceId, resourceId, timezone, initialDays = 30 }
|
|
|
238
249
|
if (mode === "refresh") dispatch({ type: "refresh-started" });
|
|
239
250
|
else dispatch({ type: "load-started" });
|
|
240
251
|
try {
|
|
241
|
-
const data = await api
|
|
252
|
+
const data = await readAvailableDatesRange(api, {
|
|
242
253
|
serviceId,
|
|
243
254
|
startDate,
|
|
244
255
|
endDate,
|