@riverbankcms/sdk 0.161.0 → 0.163.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/dist/_dts/{BlocksIslandsHydrator-Bx4kLiTA.d.ts → BlocksIslandsHydrator-DYPGA_qh.d.ts} +1 -1
- package/dist/_dts/{Page-Dm7_P13o.d.ts → Page-zwnvFBPu.d.ts} +8 -8
- package/dist/_dts/{SdkPreviewMode-D7HdWWwF.d.ts → SdkPreviewMode-DukuJzGr.d.ts} +58 -91
- package/dist/_dts/{client-Ep0jI9eE.d.ts → client-Chh3bnXC.d.ts} +11 -3
- package/dist/_dts/{content-types-BgAzCrBc.d.ts → content-types-Bbzqw9J2.d.ts} +2 -2
- package/dist/_dts/{contracts-DUiOnj9e.d.ts → contracts-GJ1kGBsi.d.ts} +13 -4
- package/dist/_dts/{footerPageOutline-B-uXamTG.d.ts → footerPageOutline-BNMKhyvo.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-BDkZYEcS.d.ts → generatePageMetadata-Ce0m1P3B.d.ts} +2 -2
- package/dist/_dts/{index-DvKQA6AZ.d.ts → index-C3mJvn27.d.ts} +4 -4
- package/dist/_dts/{schema-BHu0PYWl.d.ts → index-CaL0nKkl.d.ts} +4166 -3355
- package/dist/_dts/{index-KPrWM0KF.d.ts → index-CdSNXLOx.d.ts} +1 -1
- package/dist/_dts/{types-BR1Yboa9.d.ts → index-CyQhZuhM.d.ts} +3347 -1692
- package/dist/_dts/{index-BVkP8f70.d.ts → index-D2y4Iy-d.d.ts} +13 -2
- package/dist/_dts/{index-CSsfq6KG.d.ts → index-DRxgeK8L.d.ts} +11 -6
- package/dist/_dts/{index-CF6Cjs7b.d.ts → index-FstkyqQB.d.ts} +2 -2
- package/dist/_dts/{index-D_8uz4OP.d.ts → index-G2p-HOrK.d.ts} +3 -3
- package/dist/_dts/{index-ylivB7Jj.d.ts → index-rhMSu0oY.d.ts} +2 -2
- package/dist/_dts/{loadContent-DTjKOO-T.d.ts → loadContent-DiLZoInK.d.ts} +10 -7
- package/dist/_dts/{resolvePageContent-C1vA5c5w.d.ts → resolvePageContent-CWUnipv8.d.ts} +2 -2
- package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
- package/dist/_dts/sdk/src/client/types.d.ts +2 -2
- package/dist/_dts/sdk/src/client.d.ts +6 -6
- package/dist/_dts/sdk/src/config/index.d.ts +6 -6
- package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
- package/dist/_dts/sdk/src/index.d.ts +8 -8
- package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
- package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
- package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
- package/dist/_dts/sdk/src/next/index.d.ts +7 -7
- package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
- package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
- package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
- package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/index.d.ts +13 -7
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
- package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
- package/dist/_dts/sdk/src/server.d.ts +5 -5
- package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
- package/dist/_dts/{types-D02ngcUH.d.ts → types-BmtrA45p.d.ts} +2 -2
- package/dist/_dts/{types-ZGUiHpDE.d.ts → types-CalL7aKP.d.ts} +7 -7
- package/dist/_dts/{types-CJXTCF_F.d.ts → types-DFOqkClJ.d.ts} +3 -3
- package/dist/_dts/{validation-BaV565gb.d.ts → validation-G8MRoIhq.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-DTExCJsb.mjs → BlocksIslandsHydrator-DLCXwe30.mjs} +20 -19
- package/dist/client/{BookingMailingListNote-BDpxmn1p.mjs → BookingMailingListNote-BV5-50F0.mjs} +1 -1
- package/dist/client/{CalendarNavigationChevron-PeCiL82X.mjs → CalendarNavigationChevron-CVLAHdZG.mjs} +6 -6
- package/dist/client/{CheckboxChoice-DWexRLf6.mjs → CheckboxChoice-Dtgp3OU8.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-3zmIqakW.mjs → DemoBookingPortalAccess-B3caCnTT.mjs} +26 -10
- package/dist/client/{DemoPortalSignInLink-GHi-8BW5.mjs → DemoPortalSignInLink-Ct8JMKW0.mjs} +1 -1
- package/dist/client/{EventCalendar.client-BxQLY5cX.mjs → EventCalendar.client-ffa6920T.mjs} +16 -17
- package/dist/client/{EventCombined.client-B5bmQ03b.mjs → EventCombined.client-zm0W2G79.mjs} +8 -8
- package/dist/client/{EventEmbeddedCheckoutStep-CgMZ9TeU.mjs → EventEmbeddedCheckoutStep-CPPE2rWS.mjs} +1 -1
- package/dist/client/{EventItem-BEx-qiDE.mjs → EventItem-CND3mfra.mjs} +91 -15
- package/dist/client/{EventListWeekNavigation-CyH5tA6Y.mjs → EventListWeekNavigation-D8QdxL_f.mjs} +1 -1
- package/dist/client/{EventListing.client-D3uySdGP.mjs → EventListing.client-CaoRZUI9.mjs} +3 -3
- package/dist/client/{EventListing.view-9RFrBejr.mjs → EventListing.view-BfnOmxYD.mjs} +14 -70
- package/dist/client/{EventRegistrationPayment-CG2tQx8K.mjs → EventRegistrationPayment-Dfu3RSL2.mjs} +10 -10
- package/dist/client/LocationMapActions-wlyxASdT.mjs +62 -0
- package/dist/client/{LocationMapActions-Wsr83Q7q.mjs → MapDrawingSvg-B9oKSitp.mjs} +2 -70
- package/dist/client/{Page-Bf2nPACI.mjs → Page-BEF9HrAy.mjs} +2333 -492
- package/dist/client/{StepIndicator-CZweb1vs.mjs → StepIndicator-Bjx4faaw.mjs} +2 -2
- package/dist/client/{TabBarFragment-Bkgz67gt.mjs → TabBarFragment-Cu7k_VSl.mjs} +1 -1
- package/dist/client/{ThemedButton-CnyL3s1A.mjs → ThemedButton-DclwabI7.mjs} +1 -1
- package/dist/client/{accordion-TcimLLRQ.mjs → accordion-lzM2nSZB.mjs} +1 -1
- package/dist/client/{booking-form.client-q-RpJ4aF.mjs → booking-form.client-Bll4QwBi.mjs} +137 -60
- package/dist/client/{bookingForm-DjGfk3Wj.mjs → bookingForm-Cq5fQ-vo.mjs} +4 -4
- package/dist/client/bookings.mjs +5 -5
- package/dist/client/{carousel-CGAk6j0m.mjs → carousel-CxerQwIx.mjs} +2 -2
- package/dist/client/{carousel.client-ArlGmYWV.mjs → carousel.client-CVUXq8Mb.mjs} +1 -1
- package/dist/client/{cart-D_h3rAZ2.mjs → cart-X-m0isoI.mjs} +3 -3
- package/dist/client/{cart.client-DHOxZbJ7.mjs → cart.client-CJbzWIl0.mjs} +1 -1
- package/dist/client/{checkout-tC-3CzuM.mjs → checkout-Gd0O_fGH.mjs} +3 -3
- package/dist/client/{checkout.client-DsBb2Pkm.mjs → checkout.client-Baee6Jsm.mjs} +1 -1
- package/dist/client/client.mjs +34 -69
- package/dist/client/{context-9ZfMb6GA.mjs → context-Bg0SFWcM.mjs} +28 -1
- package/dist/client/{cta-D-ZqL7-e.mjs → cta-HffyM4MA.mjs} +1 -1
- package/dist/client/{dateFormatting-BCwLqYpW.mjs → dateFormatting-CV45BH5M.mjs} +39 -2
- package/dist/client/{demoPortalMagicLink-BxkSS9fx.mjs → demoPortalMagicLink-CDWheSjI.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-xg6to91E.mjs → enhanceHeaderSection-BqVDXL0D.mjs} +3 -3
- package/dist/client/{event-details.client-C670TgRd.mjs → event-details.client-SFtS9OkF.mjs} +2 -1
- package/dist/client/{event-registration.client-C6GApWTB.mjs → event-registration.client-CguNVIFY.mjs} +13 -13
- package/dist/client/{eventCalendar-CWc0dg9i.mjs → eventCalendar-DSGG35jd.mjs} +4 -4
- package/dist/client/{eventCombined-D4DbOrvQ.mjs → eventCombined-Oe-PiChx.mjs} +4 -4
- package/dist/client/{eventDetails-C2DfmbC0.mjs → eventDetails-BhcTT6P3.mjs} +2 -2
- package/dist/client/{eventListing-C_yXmHyz.mjs → eventListing-BS0kBEgI.mjs} +4 -4
- package/dist/client/{eventRegistration-DJuaCB-O.mjs → eventRegistration-B82SHv7j.mjs} +4 -4
- package/dist/client/{form-QZhtdFHA.mjs → form-DAIUrVXb.mjs} +3 -3
- package/dist/client/{form.client-CgvPACwG.mjs → form.client-BoAkhoh_.mjs} +4 -4
- package/dist/client/{form.parts-2uI0-5N-.mjs → form.parts-1VnasOK8.mjs} +3 -3
- package/dist/client/{formatDate-Danr0Nk4.mjs → formatDate-BKil_Psb.mjs} +1 -1
- package/dist/client/gifting/client.mjs +3 -3
- package/dist/client/{headerSection-DJdlLdvZ.mjs → headerSection-CyuHk8Ei.mjs} +2 -2
- package/dist/client/mediaAssets-CGJE1Omu.mjs +43 -0
- package/dist/client/mediaContext-DIkX2S-X.mjs +136 -0
- package/dist/client/{newsletter-form.client-Cbepz2KU.mjs → newsletter-form.client-CCdyHx0B.mjs} +5 -5
- package/dist/client/{newsletter-form.parts-DN8oMCQ0.mjs → newsletter-form.parts-Dl8AjsXW.mjs} +2 -2
- package/dist/client/{newsletterForm-wjLtW-wq.mjs → newsletterForm-qFWLZJui.mjs} +3 -3
- package/dist/client/{noop-B7H6gCbj.mjs → noop-4XFGzJpT.mjs} +19 -3
- package/dist/client/portal/client.mjs +1116 -85
- package/dist/client/{product-detail.client-CYTR165c.mjs → product-detail.client-Tq4S99ce.mjs} +1 -1
- package/dist/client/{product-list.client-B4vTvag8.mjs → product-list.client-CuL5jB1w.mjs} +1 -1
- package/dist/client/{productDetail-k8LEMSWn.mjs → productDetail-BRqgcotZ.mjs} +3 -3
- package/dist/client/{productList-DEo8Bqoe.mjs → productList-EK9Um-oh.mjs} +3 -3
- package/dist/client/{propsDecoder-G0j0HXBO.mjs → propsDecoder-VD4arFq1.mjs} +4 -3
- package/dist/client/{registry.server-BTmSXE3D.mjs → registry.server-qYbsatxH.mjs} +272 -68
- package/dist/client/rendering/client.mjs +26 -26
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +22 -19
- package/dist/client/{richText-coerce-B19taoH6.mjs → richText-coerce-CW8CFk8v.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-Chu5BHra.mjs → routeIslandApiConfig-CnZ_1ol2.mjs} +1 -1
- package/dist/client/{schema-C-m8XHuW.mjs → schema-BFwQDvJL.mjs} +4561 -3948
- package/dist/client/{shop-RGWa43H7.mjs → shop-CTUaT57E.mjs} +3 -3
- package/dist/client/{shop-commerce-TJYCBO_H.mjs → shop-commerce-BWwbsm_-.mjs} +11 -11
- package/dist/client/{shop-commerce-store-CjCcUB_o.mjs → shop-commerce-store-15UII0y3.mjs} +1 -1
- package/dist/client/{shop.client-tsKfZw1W.mjs → shop.client-UWgdmJBm.mjs} +12 -12
- package/dist/client/{shop.interactive-CVqLAU53.mjs → shop.interactive-Cf_kASpd.mjs} +76 -51
- package/dist/client/{shopShared-C3lHMz_R.mjs → shopShared-Bi8d584P.mjs} +2 -2
- package/dist/{server/effectiveNavLinkStyle-CGvGr3yD.mjs → client/site-styles-dy54AUdz.mjs} +2781 -331
- package/dist/client/{timetableModel-V2ifvGGy.mjs → timetableModel-Bi8ruFgB.mjs} +10 -9
- package/dist/client/{useAvailableSlots-D1X69-pN.mjs → useAvailableSlots-DiLbDqM3.mjs} +8 -11
- package/dist/client/{useBookingNowIso-Ch30jino.mjs → useBookingNowIso-CWIiqPd0.mjs} +1 -1
- package/dist/client/{useDiscountApply-Bwzr1RjV.mjs → useDiscountApply-ChtszhF9.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-BimJbFC7.mjs → useDiscountCodeUi-B0Z7n2tZ.mjs} +1 -1
- package/dist/client/{useEventPagination-CLAS0upd.mjs → useEventPagination-DRrATQHQ.mjs} +6 -6
- package/dist/client/{view-Dj_FZHmg.mjs → view-OvsxzgxP.mjs} +64 -55
- package/dist/client/{view-BUh4LnLS.mjs → view-yUIfWX3S.mjs} +4 -4
- package/dist/client/{wizardSteps-BkZc-hKH.mjs → wizardSteps-kbONzKUv.mjs} +59 -53
- package/dist/preview-next/before-render.mjs +3 -3
- package/dist/preview-next/chrome.css +1 -1
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-CwerMfzn.mjs → EventEmbeddedCheckoutStep-DzoFjIqB.mjs} +1 -1
- package/dist/preview-next/client/{PreviewEditorSidebar-Dvq-RW9-.mjs → PreviewEditorSidebar-BhgPyyUW.mjs} +170 -1046
- package/dist/preview-next/client/{PreviewEditorUI-BdFjS39R.mjs → PreviewEditorUI-lndKKBtB.mjs} +157 -313
- package/dist/preview-next/client/{SdkPreviewModeRuntime-BEfHln1E.mjs → SdkPreviewModeRuntime-Bk7On_EM.mjs} +351 -1386
- package/dist/preview-next/client/{SdkPreviewModeRuntime-CjkGh1IG.mjs → SdkPreviewModeRuntime-DCDDXDlt.mjs} +1 -1
- package/dist/preview-next/client/{ThemedButton-b14Bv03E.mjs → ThemedButton-nUnE3iMv.mjs} +1010 -398
- package/dist/preview-next/client/{SiteChromeCustomizeContext-CDbxk_qZ.mjs → previewAuthStore-DHtSQIBE.mjs} +159416 -162308
- package/dist/preview-next/client/{previewChromeSurface-Dd1_mNIg.mjs → previewChromeSurface-CxQ6dZ8D.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-B-CXyGVb.mjs → sdk-runtime-DSZv7Vfm.mjs} +1 -1
- package/dist/preview-next/client/siteStyleAccess-Chq5KKKh.mjs +14162 -0
- package/dist/preview-next/client/{spinner-CGxS8Ns-.mjs → spinner-CjxE3uws.mjs} +1 -1
- package/dist/preview-next/edit-map.css +37 -0
- package/dist/preview-next/keepAlive.mjs +2 -2
- package/dist/preview-next/maplibre-gl.css +1 -0
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{refresh-contract-CvmNqZ1Q.mjs → refresh-contract-uQ6BXgLJ.mjs} +5 -0
- package/dist/preview-next/{route-contract-hLg-yjQN.mjs → route-contract-CxCstfkP.mjs} +403 -200
- package/dist/preview-next/upload-structure.css +18 -0
- package/dist/server/{Block.shared-CeTd2saO.mjs → Block.shared-Dz9k8vCX.mjs} +16 -16
- package/dist/server/{bindings-C5YpKuKt.mjs → bindings-S-gCHhj5.mjs} +2 -2
- package/dist/server/{client-Cv26lZQ4.mjs → client-C2Q56xqV.mjs} +34 -69
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/{client/mediaContext-jPeJ2PmJ.mjs → server/effectiveNavLinkStyle-DLzJPcDL.mjs} +1977 -1210
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-C8a0b-cC.mjs → loadContent-D7ItMsEl.mjs} +7 -4
- package/dist/server/loadPage-D2qvYV5g.mjs +2 -0
- package/dist/server/{loadPage-BW7dklu3.mjs → loadPage-DaPiPYUL.mjs} +2 -2
- package/dist/server/next.mjs +9 -9
- package/dist/server/{overrideResolution-tIuqmJB3.mjs → overrideResolution-anoB3Kbn.mjs} +1 -1
- package/dist/server/{overrides-D1fiPOKF.mjs → overrides-W1Cc6srh.mjs} +434 -241
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{prebuild--fO0E2tr.mjs → prebuild-BF9yNfCS.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-CqJnokWJ.mjs → prefetchBlockData-Cn9k3DW6.mjs} +36 -11
- package/dist/server/{publicProducts-CvvZ4JIe.mjs → publicProducts-BVcJ6TG7.mjs} +656 -166
- package/dist/server/{registry-BVfCqaCq.mjs → registry-4ZF3bUuJ.mjs} +401 -74
- package/dist/server/rendering/server.mjs +4 -4
- package/dist/server/rendering.mjs +8 -8
- package/dist/server/{resolveBlockData-DPNvhXEz.mjs → resolveBlockData-BKQ1Fc0M.mjs} +1 -1
- package/dist/server/routing.mjs +1 -1
- package/dist/server/{schema-CD4peO7m.mjs → schema-DgrigZq9.mjs} +7748 -7135
- package/dist/server/server.mjs +3 -3
- package/dist/server/{site-styles-H-EvTJiW.mjs → site-styles-CxE9F3hj.mjs} +99 -117
- package/dist/server/{siteChromeOverlayClearance-DNC2k1U0.mjs → siteChromeOverlayClearance-OhS6f830.mjs} +161 -105
- package/dist/server/{src-ILxc6pid.mjs → src-C44_fMy5.mjs} +1190 -147
- package/dist/server/theme-bridge.mjs +1 -1
- package/dist/server/theme.mjs +1 -1
- package/dist/server/{themeAdmission-BNHIXiUj.mjs → themeAdmission-CVc04B9m.mjs} +36 -29
- package/dist/server/{validation-B1ieVemg.mjs → validation-BrbY0nxR.mjs} +2 -2
- package/dist/server/{version-BQK44wFg.mjs → version-BBSk8uM6.mjs} +1 -1
- package/dist/styles/index.css +1034 -113
- package/package.json +1 -1
- package/dist/_dts/index-BQDBQvdu.d.ts +0 -13
- package/dist/client/mediaAssets-BvjcAZpS.mjs +0 -16
- package/dist/preview-next/client/siteStyleAccess-Kqk0j0dE.mjs +0 -5812
- package/dist/server/loadPage--DXBwI8V.mjs +0 -2
|
@@ -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-VD4arFq1.mjs";
|
|
3
|
+
import { t as ShopClient } from "./shop.client-UWgdmJBm.mjs";
|
|
4
|
+
import { t as mountShopBlockIsland } from "./shopShared-Bi8d584P.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,19 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { i as ThemedButtonLink, r as ThemedButton } from "./ThemedButton-
|
|
2
|
+
import { i as ThemedButtonLink, r as ThemedButton } from "./ThemedButton-DclwabI7.mjs";
|
|
3
3
|
import { a as clearWorkflowFeedback, o as reportWorkflowError, t as assertNever } from "./src-VIsPY-kw.mjs";
|
|
4
|
-
import { Kt as RichText } from "./wizardSteps-
|
|
5
|
-
import { d as DiscountCodeDisclosure, i as SiteTermsChangedNotice, n as DemoBookingPortalAccess, o as useSiteTermsAgreement, r as SiteTermsAgreementField } from "./DemoBookingPortalAccess-
|
|
6
|
-
import { O as buildProductCartItem, b as buildProductDetailDisplay, j as productItemKey, k as deriveCommerceCheckoutState, u as getShopDisplayForItems, x as formatCommercePrice, y as buildProductCardDisplay } from "./shop.interactive-
|
|
4
|
+
import { Kt as RichText } from "./wizardSteps-kbONzKUv.mjs";
|
|
5
|
+
import { d as DiscountCodeDisclosure, i as SiteTermsChangedNotice, n as DemoBookingPortalAccess, o as useSiteTermsAgreement, r as SiteTermsAgreementField } from "./DemoBookingPortalAccess-B3caCnTT.mjs";
|
|
6
|
+
import { O as buildProductCartItem, b as buildProductDetailDisplay, j as productItemKey, k as deriveCommerceCheckoutState, u as getShopDisplayForItems, x as formatCommercePrice, y as buildProductCardDisplay } from "./shop.interactive-Cf_kASpd.mjs";
|
|
7
7
|
import { t as buildCheckoutReturnUrls } from "./checkoutUrls-CYj06rX1.mjs";
|
|
8
8
|
import { t as resolveDedicatedCheckoutPath } from "./checkoutRoute-DKlZRNZD.mjs";
|
|
9
|
-
import { a as initialDiscountApplyState, c as checkoutFormForDiscountUiState, d as planUnifiedCheckoutRequest, f as ShopAddFeedback, i as getDiscountApplyFeedback, l as planCartDiscountAvailabilityRequests, m as consumeSearchParam, n as discountApplyReducer, o as isDiscountApplyInFlight, p as useTransientShopAddFeedback, r as getAppliedDiscountCode, s as aggregateCartDiscountUiState, t as useDiscountApply } from "./useDiscountApply-
|
|
9
|
+
import { a as initialDiscountApplyState, c as checkoutFormForDiscountUiState, d as planUnifiedCheckoutRequest, f as ShopAddFeedback, i as getDiscountApplyFeedback, l as planCartDiscountAvailabilityRequests, m as consumeSearchParam, n as discountApplyReducer, o as isDiscountApplyInFlight, p as useTransientShopAddFeedback, r as getAppliedDiscountCode, s as aggregateCartDiscountUiState, t as useDiscountApply } from "./useDiscountApply-ChtszhF9.mjs";
|
|
10
10
|
import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
|
|
11
|
-
import { t as coerceRichTextDoc } from "./richText-coerce-
|
|
12
|
-
import { c as ProductDetailView, f as VariantSelectView, l as ProductGalleryFrameView, n as CheckoutShellView, s as ProductCardView, t as CartShellView, u as ProductListSectionView } from "./view-
|
|
13
|
-
import { n as useBlockApi } from "./context-
|
|
14
|
-
import { a as storeDemoBookingCheckoutReturn, i as readDemoBookingCheckoutReturnEmail } from "./demoPortalMagicLink-
|
|
15
|
-
import { t as CarouselNodeClient } from "./carousel.client-
|
|
16
|
-
import { n as useCommerceCart } from "./shop-commerce-store-
|
|
11
|
+
import { t as coerceRichTextDoc } from "./richText-coerce-CW8CFk8v.mjs";
|
|
12
|
+
import { c as ProductDetailView, f as VariantSelectView, l as ProductGalleryFrameView, n as CheckoutShellView, s as ProductCardView, t as CartShellView, u as ProductListSectionView } from "./view-yUIfWX3S.mjs";
|
|
13
|
+
import { n as useBlockApi } from "./context-Bg0SFWcM.mjs";
|
|
14
|
+
import { a as storeDemoBookingCheckoutReturn, i as readDemoBookingCheckoutReturnEmail } from "./demoPortalMagicLink-CDWheSjI.mjs";
|
|
15
|
+
import { t as CarouselNodeClient } from "./carousel.client-CVUXq8Mb.mjs";
|
|
16
|
+
import { n as useCommerceCart } from "./shop-commerce-store-15UII0y3.mjs";
|
|
17
17
|
import * as React$1 from "react";
|
|
18
18
|
import { useEffect, useState } from "react";
|
|
19
19
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { A as parseStoredCommerceCartState, D as buildPassCartItem, E as EMPTY_COMMERCE_CART_STATE, M as reduceCommerceCart } from "./shop.interactive-
|
|
2
|
+
import { A as parseStoredCommerceCartState, D as buildPassCartItem, E as EMPTY_COMMERCE_CART_STATE, M as reduceCommerceCart } from "./shop.interactive-Cf_kASpd.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;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { r as ThemedButton } from "./ThemedButton-
|
|
2
|
+
import { r as ThemedButton } from "./ThemedButton-DclwabI7.mjs";
|
|
3
3
|
import { c as assertNever$1, t as assertNever } from "./src-VIsPY-kw.mjs";
|
|
4
|
-
import { Wn as getShopSuccessCopy } from "./wizardSteps-
|
|
5
|
-
import { d as DiscountCodeDisclosure, i as SiteTermsChangedNotice, o as useSiteTermsAgreement, r as SiteTermsAgreementField, t as BookingConfirmation } from "./DemoBookingPortalAccess-
|
|
6
|
-
import { S as formatInterval, _ as shopProductPresentation, x as formatCommercePrice } from "./shop.interactive-
|
|
4
|
+
import { Wn as getShopSuccessCopy } from "./wizardSteps-kbONzKUv.mjs";
|
|
5
|
+
import { d as DiscountCodeDisclosure, i as SiteTermsChangedNotice, o as useSiteTermsAgreement, r as SiteTermsAgreementField, t as BookingConfirmation } from "./DemoBookingPortalAccess-B3caCnTT.mjs";
|
|
6
|
+
import { S as formatInterval, _ as shopProductPresentation, x as formatCommercePrice } from "./shop.interactive-Cf_kASpd.mjs";
|
|
7
7
|
import { t as scrollToBlock } from "./scrollToBlock-DrgKE0qZ.mjs";
|
|
8
8
|
import { t as createBodyThemePortalRoot } from "./themePortalRoot-DeP49PT8.mjs";
|
|
9
|
-
import { a as initialDiscountApplyState, f as ShopAddFeedback, h as consumeSearchParams, i as getDiscountApplyFeedback, n as discountApplyReducer, o as isDiscountApplyInFlight, p as useTransientShopAddFeedback, r as getAppliedDiscountCode, t as useDiscountApply, u as planDirectShopCheckoutRequest } from "./useDiscountApply-
|
|
9
|
+
import { a as initialDiscountApplyState, f as ShopAddFeedback, h as consumeSearchParams, i as getDiscountApplyFeedback, n as discountApplyReducer, o as isDiscountApplyInFlight, p as useTransientShopAddFeedback, r as getAppliedDiscountCode, t as useDiscountApply, u as planDirectShopCheckoutRequest } from "./useDiscountApply-ChtszhF9.mjs";
|
|
10
10
|
import { t as CheckIcon } from "./CheckIcon-CVcKteXH.mjs";
|
|
11
11
|
import { t as CrossIcon } from "./CrossIcon-CpG9VRyW.mjs";
|
|
12
12
|
import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
|
|
13
|
-
import { n as TerminalPanel, r as StateIcon, t as useDiscountCodeUi } from "./useDiscountCodeUi-
|
|
13
|
+
import { n as TerminalPanel, r as StateIcon, t as useDiscountCodeUi } from "./useDiscountCodeUi-B0Z7n2tZ.mjs";
|
|
14
14
|
import { t as ModalShell } from "./ModalShell-B_fHWK71.mjs";
|
|
15
|
-
import { a as PassPurchaseUnavailable, d as ShopPurchaseAction, i as PassCardView, o as PassesMembershipsSectionView, r as MembershipCardView } from "./view-
|
|
16
|
-
import { n as useBlockApi } from "./context-
|
|
17
|
-
import { a as storeDemoBookingCheckoutReturn, i as readDemoBookingCheckoutReturnEmail } from "./demoPortalMagicLink-
|
|
18
|
-
import { t as CarouselNodeClient } from "./carousel.client-
|
|
19
|
-
import { r as formatEntitlementEnd } from "./dateFormatting-
|
|
20
|
-
import { t as addPassToCommerceCart } from "./shop-commerce-store-
|
|
15
|
+
import { a as PassPurchaseUnavailable, d as ShopPurchaseAction, i as PassCardView, o as PassesMembershipsSectionView, r as MembershipCardView } from "./view-yUIfWX3S.mjs";
|
|
16
|
+
import { n as useBlockApi } from "./context-Bg0SFWcM.mjs";
|
|
17
|
+
import { a as storeDemoBookingCheckoutReturn, i as readDemoBookingCheckoutReturnEmail } from "./demoPortalMagicLink-CDWheSjI.mjs";
|
|
18
|
+
import { t as CarouselNodeClient } from "./carousel.client-CVUXq8Mb.mjs";
|
|
19
|
+
import { r as formatEntitlementEnd } from "./dateFormatting-CV45BH5M.mjs";
|
|
20
|
+
import { t as addPassToCommerceCart } from "./shop-commerce-store-15UII0y3.mjs";
|
|
21
21
|
import React, { useCallback, useEffect, useRef, useState } from "react";
|
|
22
22
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
23
23
|
//#region ../blocks/src/system/runtime/shared/components/ActionRow.tsx
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { d as formatDateKey, l as buildCalendarViewport } from "./src-1PJxc8KO.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import { C as clsx, U as formatCurrencyAmount, g as ExternalLinkIcon, i as ThemedButtonLink, n as ThemedAuthoredButton } from "./ThemedButton-
|
|
3
|
+
import { Jt as toNonEmptyReadonlyArray, Mr as err, Nr as ok, V as cardRoleSchema, gr as parseContentVersionId, kt as assertNever, yr as parseEventSeriesId } from "./schema-BFwQDvJL.mjs";
|
|
4
|
+
import { C as clsx, U as formatCurrencyAmount, g as ExternalLinkIcon, i as ThemedButtonLink, n as ThemedAuthoredButton } from "./ThemedButton-DclwabI7.mjs";
|
|
5
5
|
import { c as assertNever$1 } from "./src-VIsPY-kw.mjs";
|
|
6
|
-
import { $r as formatBookingPriceDisplay, Ar as defineProgressiveBlockRuntime, Bt as registrationDisplaySchema, Cr as createInteractiveIslandCodec, Dr as resolveEventRegistrationScopedEvents, Fr as lookListPresentationSchemaShape, Gr as parseMailingListRuntimeContext, H as findPreSelectedEvent, Ht as shownVenue, It as toRegistrationEvents, Jt as MediaPlaceholder, Kt as RichText, Lt as toWholeSeriesRegistrationEvent, Mr as listItemPresentation, Nn as groupPublicEventsByRun, Or as createZodCodec, Pr as listLookSlot, Qr as parseNewsletterListId, Qt as renderVideo, Rt as toWholeSeriesRegistrationEvents, Sr as buildInteractiveIslandProps, Tn as formatRemainingPlaces, Tr as eventRegistrationPageSurfaceSubjectSchema, Tt as withOccurrenceTitle, Ut as browserReadAuthoritySchema, Vr as nextLiveRunSessionStartMs, Vt as resolveRegistrationDisplay, W as resolveEventRequiresPayment, Wr as resolveWholeSeriesRunLifecycle, Xr as parseMailchimpAudienceId, Xt as mediaImageHostProps, Yr as parseBrevoListId, Yt as computeMediaTransformStyle, Zr as parseMailchimpInterestId, Zt as renderAudio, _t as formatRegistrationSchedule, c as registrationStepLabelContext, cn as eventDateOptions, cr as columnOptionSchema, dr as eventCalendarDisplayModeSchema, ei as formatEventPricing, fr as eventLayoutSchema, gr as weekStartSchema, hr as registrationButtonVariantSchema, jn as selectEventCapacitySource, jr as isDecodeSuccess, kr as defineClientOwnedBlockRuntime, lr as eventButtonVariantSchema, mr as previewStageSchema, n as getEventSelectionMode, nn as resolveMediaNodeResponsiveImage, o as registrationRoute, on as eventCalendarWeekStart, or as bookingNowSchema, p as isRegistrationLocked, pn as formatEventCompactDateRail, pr as filterAutoShowSchema, pt as formatBookingWhen, qr as DEFAULT_MAILING_LIST_SUCCESS_MESSAGE, qt as ImagePresets, ri as publicEventPricingDisplay, s as registrationStepLabel, sn as eventDateLocale, sr as calendarTabViewsSchema, t as REGISTRATION_STEP_LABELS, ur as eventCalendarDefaultViewSchema, vr as blockButtonRoleSchema, wr as defineInteractiveIslandMetaKeys, xn as resolveRuntimeEventDestination, xr as resolveDateRuntimeContext, zt as placesLeftLabel } from "./wizardSteps-
|
|
7
|
-
import { A as eventScheduleScopeValues,
|
|
8
|
-
import {
|
|
6
|
+
import { $r as formatBookingPriceDisplay, Ar as defineProgressiveBlockRuntime, Bt as registrationDisplaySchema, Cr as createInteractiveIslandCodec, Dr as resolveEventRegistrationScopedEvents, Fr as lookListPresentationSchemaShape, Gr as parseMailingListRuntimeContext, H as findPreSelectedEvent, Ht as shownVenue, It as toRegistrationEvents, Jt as MediaPlaceholder, Kt as RichText, Lt as toWholeSeriesRegistrationEvent, Mr as listItemPresentation, Nn as groupPublicEventsByRun, Or as createZodCodec, Pr as listLookSlot, Qr as parseNewsletterListId, Qt as renderVideo, Rt as toWholeSeriesRegistrationEvents, Sr as buildInteractiveIslandProps, Tn as formatRemainingPlaces, Tr as eventRegistrationPageSurfaceSubjectSchema, Tt as withOccurrenceTitle, Ut as browserReadAuthoritySchema, Vr as nextLiveRunSessionStartMs, Vt as resolveRegistrationDisplay, W as resolveEventRequiresPayment, Wr as resolveWholeSeriesRunLifecycle, Xr as parseMailchimpAudienceId, Xt as mediaImageHostProps, Yr as parseBrevoListId, Yt as computeMediaTransformStyle, Zr as parseMailchimpInterestId, Zt as renderAudio, _t as formatRegistrationSchedule, c as registrationStepLabelContext, cn as eventDateOptions, cr as columnOptionSchema, dr as eventCalendarDisplayModeSchema, ei as formatEventPricing, fr as eventLayoutSchema, gr as weekStartSchema, hr as registrationButtonVariantSchema, jn as selectEventCapacitySource, jr as isDecodeSuccess, kr as defineClientOwnedBlockRuntime, lr as eventButtonVariantSchema, mr as previewStageSchema, n as getEventSelectionMode, nn as resolveMediaNodeResponsiveImage, o as registrationRoute, on as eventCalendarWeekStart, or as bookingNowSchema, p as isRegistrationLocked, pn as formatEventCompactDateRail, pr as filterAutoShowSchema, pt as formatBookingWhen, qr as DEFAULT_MAILING_LIST_SUCCESS_MESSAGE, qt as ImagePresets, ri as publicEventPricingDisplay, s as registrationStepLabel, sn as eventDateLocale, sr as calendarTabViewsSchema, t as REGISTRATION_STEP_LABELS, ur as eventCalendarDefaultViewSchema, vr as blockButtonRoleSchema, wr as defineInteractiveIslandMetaKeys, xn as resolveRuntimeEventDestination, xr as resolveDateRuntimeContext, zt as placesLeftLabel } from "./wizardSteps-kbONzKUv.mjs";
|
|
7
|
+
import { A as eventScheduleScopeValues, At as resolveBookingTimeZoneId, B as normalizeIdList, C as eventCalendarVariantMeaning, D as isEventCalendarListLayout, F as normalizeEventStaffMemberId, H as publicEventDestinationSchema, L as normalizeEventSurfacePresetsCsv, N as normalizeEventCategoryIdsCsv, Nt as toUtcIsoDateTimeString, Ot as parseUtcIsoDateTimeString, P as normalizeEventScheduleScope, R as normalizeEventSurfaceScope, Tt as getLocalScheduleDate, U as publicEventLoaderQuerySchemaShape, W as publicEventSchema, _t as inferSiteDateLocale, bt as buildBookingUtcDateWindow, dt as formatDateRange, j as eventSurfaceScopeValues, k as resolveEventCalendarReadPlan, kt as resolveBookingBusinessTimeZone, mt as formatTime, n as blockSiteTermsSchema, p as calendarWindowPageSchema, w as eventListArrangementValues, y as eventCalendarListGroupingDecision, z as normalizeEventVenueId } from "./noop-4XFGzJpT.mjs";
|
|
8
|
+
import { h as resolveModeArrangement } from "./site-styles-dy54AUdz.mjs";
|
|
9
|
+
import { n as getCurrentResolveImageUrlContext } from "./mediaContext-DIkX2S-X.mjs";
|
|
9
10
|
import { n as getCreditProductCreditUnit, t as deriveCreditProductLabels } from "./creditProducts-BOWi1QLp.mjs";
|
|
10
11
|
import "react";
|
|
11
12
|
import { z } from "zod";
|
|
@@ -301,10 +302,14 @@ function assessCustomTargeting(catalog, targeting) {
|
|
|
301
302
|
}
|
|
302
303
|
}
|
|
303
304
|
}
|
|
305
|
+
/** Shared choice availability decision for both runtime catalogues and captured document facts. */
|
|
306
|
+
function missingMailingListTargetingChoiceIds(targeting, choices) {
|
|
307
|
+
const available = new Set(choices.map((choice) => choice.id));
|
|
308
|
+
return mailingListTargetingChoiceIds(targeting).filter((id) => !available.has(id));
|
|
309
|
+
}
|
|
304
310
|
function assessMatchedChoices(matched, choices) {
|
|
305
311
|
const selected = new Set(mailingListTargetingChoiceIds(matched.targeting));
|
|
306
|
-
const
|
|
307
|
-
const missingIds = [...selected].filter((id) => !available.has(id));
|
|
312
|
+
const missingIds = missingMailingListTargetingChoiceIds(matched.targeting, choices);
|
|
308
313
|
const value = {
|
|
309
314
|
mode: "custom",
|
|
310
315
|
...matched,
|
|
@@ -827,17 +832,7 @@ function resolveCardListSchedule(item, mode) {
|
|
|
827
832
|
}
|
|
828
833
|
/** Each part owns optional-content collapse once, for calendar and catalogue items. */
|
|
829
834
|
const partRenderers = {
|
|
830
|
-
title:
|
|
831
|
-
...listLookSlot(presentation, "item-title"),
|
|
832
|
-
children: item.titleLink || item.href ? /* @__PURE__ */ jsx("a", {
|
|
833
|
-
...item.titleLink,
|
|
834
|
-
href: item.titleLink?.href ?? item.href ?? void 0,
|
|
835
|
-
children: /* @__PURE__ */ jsx(LinkedLabel, {
|
|
836
|
-
label: item.title,
|
|
837
|
-
newTabHint: item.newTabHint
|
|
838
|
-
})
|
|
839
|
-
}) : item.title
|
|
840
|
-
}),
|
|
835
|
+
title: CardListTitle,
|
|
841
836
|
text: ({ item, presentation }) => item.textDocument ? /* @__PURE__ */ jsx(RichText, {
|
|
842
837
|
doc: item.textDocument,
|
|
843
838
|
...listLookSlot(presentation, "item-text"),
|
|
@@ -846,14 +841,7 @@ const partRenderers = {
|
|
|
846
841
|
...listLookSlot(presentation, "item-text"),
|
|
847
842
|
children: item.text
|
|
848
843
|
}) : null,
|
|
849
|
-
media:
|
|
850
|
-
...listLookSlot(presentation, "item-media"),
|
|
851
|
-
children: /* @__PURE__ */ jsx(MediaNodeServer, {
|
|
852
|
-
value: item.media,
|
|
853
|
-
size: ImagePresets.card,
|
|
854
|
-
...listLookSlot(presentation, "photo")
|
|
855
|
-
})
|
|
856
|
-
}) : null,
|
|
844
|
+
media: CardListMedia,
|
|
857
845
|
facts: ({ item, presentation }) => item.facts?.length ? /* @__PURE__ */ jsx("dl", {
|
|
858
846
|
...listLookSlot(presentation, "facts"),
|
|
859
847
|
children: item.facts.map(({ label, value }) => /* @__PURE__ */ jsxs("div", {
|
|
@@ -892,14 +880,23 @@ const partRenderers = {
|
|
|
892
880
|
...listLookSlot(presentation, "dates"),
|
|
893
881
|
children: item.dates.map((date, index) => /* @__PURE__ */ jsxs("li", {
|
|
894
882
|
...listLookSlot(presentation, "date"),
|
|
895
|
-
children: [
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
883
|
+
children: [
|
|
884
|
+
/* @__PURE__ */ jsx("time", {
|
|
885
|
+
dateTime: date.startsAt,
|
|
886
|
+
children: date.label
|
|
887
|
+
}),
|
|
888
|
+
date.places ? /* @__PURE__ */ jsx("span", {
|
|
889
|
+
...listLookSlot(presentation, "date-places"),
|
|
890
|
+
"data-availability": date.places.status,
|
|
891
|
+
children: date.places.label
|
|
892
|
+
}) : null,
|
|
893
|
+
date.booking ? /* @__PURE__ */ jsx(ThemedButtonLink, {
|
|
894
|
+
...date.booking,
|
|
895
|
+
variant: presentation.buttonVariant ?? "primary",
|
|
896
|
+
size: "sm",
|
|
897
|
+
extraClassName: "rb-card-list-date-booking"
|
|
898
|
+
}) : null
|
|
899
|
+
]
|
|
903
900
|
}, `${date.startsAt}-${index}`))
|
|
904
901
|
}) : null,
|
|
905
902
|
availability: ({ item, presentation }) => item.availability ? /* @__PURE__ */ jsx("p", {
|
|
@@ -932,6 +929,41 @@ const partRenderers = {
|
|
|
932
929
|
children: props.actionNode
|
|
933
930
|
})
|
|
934
931
|
};
|
|
932
|
+
/** Title and photo share the same destination and external-link behavior. */
|
|
933
|
+
function cardListItemLink(item) {
|
|
934
|
+
return item.titleLink ?? (item.href ? { href: item.href } : null);
|
|
935
|
+
}
|
|
936
|
+
function CardListTitle({ item, presentation, Title = "h3" }) {
|
|
937
|
+
const link = cardListItemLink(item);
|
|
938
|
+
return /* @__PURE__ */ jsx(Title, {
|
|
939
|
+
...listLookSlot(presentation, "item-title"),
|
|
940
|
+
children: link ? /* @__PURE__ */ jsx("a", {
|
|
941
|
+
...link,
|
|
942
|
+
children: /* @__PURE__ */ jsx(LinkedLabel, {
|
|
943
|
+
label: item.title,
|
|
944
|
+
newTabHint: item.newTabHint
|
|
945
|
+
})
|
|
946
|
+
}) : item.title
|
|
947
|
+
});
|
|
948
|
+
}
|
|
949
|
+
function CardListMedia({ item, presentation }) {
|
|
950
|
+
if (!item.media) return null;
|
|
951
|
+
const link = cardListItemLink(item);
|
|
952
|
+
const photo = /* @__PURE__ */ jsx(MediaNodeServer, {
|
|
953
|
+
value: item.media,
|
|
954
|
+
size: ImagePresets.card,
|
|
955
|
+
...listLookSlot(presentation, "photo")
|
|
956
|
+
});
|
|
957
|
+
return /* @__PURE__ */ jsx("div", {
|
|
958
|
+
...listLookSlot(presentation, "item-media"),
|
|
959
|
+
children: link ? /* @__PURE__ */ jsx("a", {
|
|
960
|
+
...link,
|
|
961
|
+
className: "rb-block rb-h-full",
|
|
962
|
+
"aria-label": `${item.title}${item.newTabHint ? " (opens in a new tab)" : ""}`,
|
|
963
|
+
children: photo
|
|
964
|
+
}) : photo
|
|
965
|
+
});
|
|
966
|
+
}
|
|
935
967
|
function CardListContentPart({ part, ...props }) {
|
|
936
968
|
return partRenderers[part](props);
|
|
937
969
|
}
|
|
@@ -1274,7 +1306,7 @@ function buildEventCollectionListDisplay(source) {
|
|
|
1274
1306
|
events: Array.isArray(source.events) ? [...source.events] : [],
|
|
1275
1307
|
listLayout: source.listLayout ?? "stack",
|
|
1276
1308
|
listColumns: source.listColumns ?? "3",
|
|
1277
|
-
eventsPerPage: source.lookSlots !== void 0 && source.listLayout === "compact" ? 3 :
|
|
1309
|
+
eventsPerPage: resolveEventCalendarListPageSize({ eventsPerPage: source.eventsPerPage ?? (source.lookSlots !== void 0 && source.listLayout === "compact" ? "3" : void 0) }),
|
|
1278
1310
|
paginationAction,
|
|
1279
1311
|
sectionAction: paginationAction.kind === "seeAllLink" ? {
|
|
1280
1312
|
href: paginationAction.href,
|
|
@@ -2670,14 +2702,6 @@ function resolveAutoCtaPath(source, routes) {
|
|
|
2670
2702
|
}
|
|
2671
2703
|
return routeByNormalizedPath.get("/offerings") ?? null;
|
|
2672
2704
|
}
|
|
2673
|
-
function resolveOfferingsPreviewRunPath(run, routes) {
|
|
2674
|
-
const routeIds = [run.eventSeriesId, run.eventOfferingId];
|
|
2675
|
-
for (const entityId of routeIds) {
|
|
2676
|
-
const path = normalizeRoutePath((routes ?? []).find((candidate) => candidate.entityId === entityId)?.path);
|
|
2677
|
-
if (path) return path;
|
|
2678
|
-
}
|
|
2679
|
-
return null;
|
|
2680
|
-
}
|
|
2681
2705
|
function preferredPathsForSource(source) {
|
|
2682
2706
|
switch (source.kind) {
|
|
2683
2707
|
case "eventPreset": switch (source.preset) {
|
|
@@ -4492,7 +4516,7 @@ const shopBlockRuntime = defineProgressiveBlockRuntime({
|
|
|
4492
4516
|
buildRender: (source) => {
|
|
4493
4517
|
const passPurchaseMode = source.passPurchaseMode ?? "add_to_cart";
|
|
4494
4518
|
const subscribeButtonText = source.subscribeButtonText ?? "Subscribe";
|
|
4495
|
-
const products =
|
|
4519
|
+
const products = decideShopDisplayedCatalogue(source);
|
|
4496
4520
|
const dateContext = source.dateContext ?? resolveDateRuntimeContext(void 0);
|
|
4497
4521
|
return {
|
|
4498
4522
|
display: buildPassesMembershipsDisplay({
|
|
@@ -4765,16 +4789,17 @@ function shopCardListPresentation(source) {
|
|
|
4765
4789
|
[key]: source[key]
|
|
4766
4790
|
}), {});
|
|
4767
4791
|
}
|
|
4768
|
-
function
|
|
4792
|
+
function decideShopDisplayedCatalogue(source) {
|
|
4793
|
+
const passes = source.showPasses === false ? [] : source.passes ?? [];
|
|
4794
|
+
const memberships = source.showMemberships === false ? [] : source.memberships ?? [];
|
|
4769
4795
|
return {
|
|
4770
|
-
passes
|
|
4771
|
-
memberships
|
|
4796
|
+
passes,
|
|
4797
|
+
memberships,
|
|
4798
|
+
featured: [...passes, ...memberships].some(({ id }) => id === source.featured) ? source.featured ?? null : null
|
|
4772
4799
|
};
|
|
4773
4800
|
}
|
|
4774
4801
|
function shopFeaturedProduct(source, products) {
|
|
4775
|
-
|
|
4776
|
-
const visible = [...products.passes, ...products.memberships].some(({ id }) => id === selectedId);
|
|
4777
|
-
return source.lookSlots && source.itemRoles?.featured && selectedId && visible ? { featured: selectedId } : {};
|
|
4802
|
+
return source.lookSlots && source.itemRoles?.featured && products.featured !== null ? { featured: products.featured } : {};
|
|
4778
4803
|
}
|
|
4779
4804
|
/** Server and hydrated cards share the same decided role and featured marker. */
|
|
4780
4805
|
function shopProductPresentation(hydration, productId, index, count) {
|
|
@@ -4786,4 +4811,4 @@ function shopProductPresentation(hydration, productId, index, count) {
|
|
|
4786
4811
|
};
|
|
4787
4812
|
}
|
|
4788
4813
|
//#endregion
|
|
4789
|
-
export { OFFERINGS_PREVIEW_DEFAULT_BUTTON_TEXT as $,
|
|
4814
|
+
export { OFFERINGS_PREVIEW_DEFAULT_BUTTON_TEXT as $, headerChromeRuntimeContractSchema as $t, parseStoredCommerceCartState as A, buildEventListingInteractiveIslandProps as At, giftingBlockRuntime as B, CardListContentPart as Bt, membershipCardListContent as C, buildEventCalendarInteractiveIslandProps as Ct, buildPassCartItem as D, eventCalendarInteractiveIslandPropsCodec as Dt, EMPTY_COMMERCE_CART_STATE as E, eventCalendarBlockRuntime as Et, buildNewsletterFormInteractiveIslandProps as F, normalizeCsvIds as Ft, formInteractiveIslandPropsCodec as G, getCardOrientation as Gt, publicGiftingOffersResponseSchema as H, resolveCardListSchedule as Ht, newsletterBlockSubmissionMessage as I, normalizeCsvString as It, displayButtonText as J, buildEventListWeek as Jt, buildEventRegistrationDisplayFromScopedEvents as K, getContainerClass as Kt, newsletterFormBlockRuntime as L, normalizeOptionalId as Lt, reduceCommerceCart as M, eventListingInteractiveIslandPropsCodec as Mt, publicProductsResponseSchema as N, buildEventRuntimeFilters as Nt, buildProductCartItem as O, projectRecurringSchedule as Ot, NEWSLETTER_SIGNUPS_PAUSED_MESSAGE as P, getEventRuntimeFiltersKey as Pt, OFFERINGS_PREVIEW_AUTHORABLE_SOURCE_KEYS as Q, resolveEventSelection as Qt, newsletterFormInteractiveIslandPropsCodec as R, catalogueEventCardProps as Rt, formatInterval as S, eventCombinedInteractiveIslandPropsCodec as St, passCardListContent as T, buildEventCalendarListingRender as Tt, buildFormInteractiveIslandProps as U, selectCardListPresentation as Ut, giftingInteractiveIslandPropsCodec as V, CardListLeadDate as Vt, formBlockRuntime as W, MediaNodeServer as Wt, eventRegistrationInteractiveIslandPropsCodec as X, formatEventPriceAmount as Xt, eventRegistrationBlockRuntime as Y, formatEventPrice as Yt, offeringNounForEvent as Z, formatEventPriceDisplay as Zt, shopProductPresentation as _, formatBookingSchedulePresentation as _t, buildShopInteractiveIslandProps as a, splitSiteChromePlacementClasses as an, normalizeOfferingsPreviewContentForWrite as at, buildProductDetailDisplay as b, buildEventCombinedListingDisplay as bt, checkoutBlockRuntime as c, buildMailingListSignupBlockSourceRef as cn, resolveOfferingsPreviewGroupCta as ct, productDetailBlockRuntime as d, parseMailingListVisitorSelection as dn, DEFAULT_BOOKING_BUTTON_TEXT as dt, isHeaderScrollRuntimeEnabled as en, OFFERINGS_PREVIEW_DEFAULT_EMPTY_MESSAGE as et, productDetailInteractiveIslandPropsCodec as f, DEFAULT_MAILING_LIST_TARGETING as fn, bookingBarPlacement as ft, shopInteractiveIslandPropsCodec as g, bookingPanelHeading as gt, shopBlockRuntime as h, bookingEntryProgress as ht, buildProductListInteractiveIslandProps as i, planSiteChromePlacement as in, isOfferingsPreviewSourceKey as it, productItemKey as j, eventListingBlockRuntime as jt, deriveCommerceCheckoutState as k, recurringScheduleProjectionSchema as kt, checkoutInteractiveIslandPropsCodec as l, assessMailingListTargeting as ln, resolveOfferingsPreviewGroups as lt, productListInteractiveIslandPropsCodec as m, bookingEntry as mt, buildCheckoutInteractiveIslandProps as n, staticHeaderChromeRuntime as nn, OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS as nt, cartBlockRuntime as o, publicMembershipProductCollectionSchema as on, normalizeOfferingsPreviewItemLimit as ot, productListBlockRuntime as p, sameMailingListPlacementTargeting as pn, bookingCardEntry as pt, buildEventRegistrationInteractiveIslandProps as q, Grid as qt, buildProductDetailInteractiveIslandProps as r, parseHeaderPositioning as rn, buildOfferingsPreviewListing as rt, cartInteractiveIslandPropsCodec as s, publicPassProductCollectionSchema as sn, offeringsListingFor as st, buildCartInteractiveIslandProps as t, resolveHeaderChromeRuntimeContract as tn, OFFERINGS_PREVIEW_DEFAULT_FAILED_MESSAGE as tt, getShopDisplayForItems as u, parseMailingListPlacementTargeting as un, resolveOfferingsRenderInput as ut, buildCartDisplay as v, occurrenceContextSchema as vt, membershipClassesLabel as w, buildEventCalendarListingDisplay as wt, formatCommercePrice as x, eventCombinedBlockRuntime as xt, buildProductCardDisplay as y, buildEventCombinedInteractiveIslandProps as yt, buildGiftingInteractiveIslandProps as z, listingEventCardProps as zt };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as BlockApiProvider } from "./context-
|
|
2
|
+
import { t as BlockApiProvider } from "./context-Bg0SFWcM.mjs";
|
|
3
3
|
import { t as mountReactIsland } from "./reactMount-BGJVsHRb.mjs";
|
|
4
|
-
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-
|
|
4
|
+
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-CnZ_1ol2.mjs";
|
|
5
5
|
import "react";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
//#region src/rendering/islands/enhancers/shopShared.tsx
|