@riverbankcms/sdk 0.183.0 → 0.184.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +34 -1
- package/dist/_dts/{BlocksIslandsHydrator-X1_G96iN.d.ts → BlocksIslandsHydrator-DjBTJYiF.d.ts} +1 -1
- package/dist/_dts/{Page-CEqZJZEE.d.ts → Page-BpXEM2ET.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-DQejfbXL.d.ts → SdkPreviewMode-Bb3h7KRE.d.ts} +2 -2
- package/dist/_dts/{client-B_B_amKD.d.ts → client-DgTRRtl_.d.ts} +13 -1
- package/dist/_dts/{content-types-Dhx5Ocvx.d.ts → content-types-DZQJp_ak.d.ts} +2 -2
- package/dist/_dts/{contracts-FeOnfoa1.d.ts → contracts-Ww1fmd-c.d.ts} +3 -3
- package/dist/_dts/{generatePageMetadata-m70J6tit.d.ts → generatePageMetadata-BGc7dju6.d.ts} +2 -2
- package/dist/_dts/{index-liuhlOX7.d.ts → index-BECaUNYs.d.ts} +2 -2
- package/dist/_dts/{index-BOpUh8kO.d.ts → index-Cc85KVLW.d.ts} +3 -3
- package/dist/_dts/{index-CjAkEWAp.d.ts → index-Cni4jykw.d.ts} +4 -4
- package/dist/_dts/{index-Bizdaxji.d.ts → index-DxxTQ_0V.d.ts} +2 -2
- package/dist/_dts/{index-BxCmCit0.d.ts → index-W9-7djG3.d.ts} +1 -1
- package/dist/_dts/{index-iuFrbIjt.d.ts → index-ukS-Ffem.d.ts} +1 -1
- package/dist/_dts/{loadContent-D4wrTIIw.d.ts → loadContent-BlSWTlbD.d.ts} +7 -7
- package/dist/_dts/{request-Gn0O1blj.d.ts → request-CZz2BoXJ.d.ts} +74180 -73974
- package/dist/_dts/{resolveBlockData-D5duwuqS.d.ts → resolveBlockData-D12HXnS3.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-xzJ3c9Na.d.ts → resolvePageContent-BteMsSGP.d.ts} +1 -1
- 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/gifting/client.d.ts +1 -1
- package/dist/_dts/sdk/src/index.d.ts +7 -7
- package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
- package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
- package/dist/_dts/sdk/src/navigation/index.d.ts +3 -3
- package/dist/_dts/sdk/src/next/index.d.ts +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/portal/index.d.ts +10 -2
- package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +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 +6 -6
- package/dist/_dts/sdk/src/server.d.ts +5 -5
- package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
- package/dist/_dts/sdk/src/theme/index.d.ts +36 -1
- package/dist/_dts/{serviceBookingOutline-B1gyJon_.d.ts → serviceBookingOutline-aTlOvO3U.d.ts} +15 -7
- package/dist/_dts/{types-BoITy0rA.d.ts → types-Bi7R07RX.d.ts} +6 -2
- package/dist/_dts/{types-DBNuMtSk.d.ts → types-CCcQlRBi.d.ts} +9 -10
- package/dist/_dts/{types-DHMcuoeQ.d.ts → types-Du4aMnWC.d.ts} +13 -15
- package/dist/_dts/{validation-BIPO-XlE.d.ts → validation-CjCWVmwe.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-Ct8slgRk.mjs → BlocksIslandsHydrator-CFLWxjxR.mjs} +17 -17
- package/dist/client/{BookingMailingListNote-qqTxGGS4.mjs → BookingMailingListNote-C4LcfwyA.mjs} +7 -7
- package/dist/client/{BookingQuestionFields-DCh9MUIF.mjs → BookingQuestionFields-DdcmoHqQ.mjs} +1 -1
- package/dist/client/{CalendarAction-RcdaStG7.mjs → CalendarAction-DYGewmvh.mjs} +1 -1
- package/dist/client/{CalendarNavigationChevron-D7Wt-Oaa.mjs → CalendarNavigationChevron-ZfrUiiiI.mjs} +5 -5
- package/dist/client/{CheckboxChoice-BdGxZWeg.mjs → CheckboxChoice-CTMIII37.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-HFVkoOac.mjs → DemoBookingPortalAccess-pzkGVkgG.mjs} +7 -5
- package/dist/client/{EventCalendar.client-BtkJW8bA.mjs → EventCalendar.client-Ct1B3xI4.mjs} +9 -9
- package/dist/client/{EventCombined.client-DxaGjFFS.mjs → EventCombined.client-DgfNtcgW.mjs} +8 -8
- package/dist/client/{EventEmbeddedCheckoutStep-B2c5dR49.mjs → EventEmbeddedCheckoutStep-CjoaG1zy.mjs} +1 -1
- package/dist/client/{EventItem-Fr2qi2C2.mjs → EventItem-KGKkK19N.mjs} +5 -5
- package/dist/client/{EventListWeekNavigation-BRMaq0ky.mjs → EventListWeekNavigation-Ba9ezxuC.mjs} +1 -1
- package/dist/client/{EventListing.client-BhGxfbjt.mjs → EventListing.client-xFKRDLwC.mjs} +3 -3
- package/dist/client/{EventListing.view-COuEJzbO.mjs → EventListing.view-Dy36vWHi.mjs} +84 -7
- package/dist/client/{EventRegistrationPayment-BTLYhVxD.mjs → EventRegistrationPayment-Dth9L00x.mjs} +108 -45
- package/dist/client/{Page-CgbQZP5g.mjs → Page-DB5KODiu.mjs} +1735 -501
- package/dist/client/{ProtectedSubmitButton-BG7my0Qf.mjs → ProtectedSubmitButton-CY6u5sQa.mjs} +1 -1
- package/dist/client/{SiteTermsAgreementField-DQNkfNLA.mjs → SiteTermsAgreementField-BDVP_HeK.mjs} +2 -2
- package/dist/client/{StepIndicator-DvPekKeM.mjs → StepIndicator-CLgDVzCs.mjs} +1 -1
- package/dist/client/{StepIndicator-DyXoI3ob.mjs → StepIndicator-DRyZ8igu.mjs} +6 -6
- package/dist/client/{ThemedButton-Bc9DBbVp.mjs → ThemedButton-C4rCsPCt.mjs} +11 -2
- package/dist/client/{accessibleSurfaces-wj4Rloo5.mjs → accessibleSurfaces-CqroimVQ.mjs} +745 -557
- package/dist/client/{accordion-BVXfjnh-.mjs → accordion-BQYRP5xV.mjs} +1 -1
- package/dist/client/{booking-form.client-DycPGtke.mjs → booking-form.client-B7ckDuOC.mjs} +16 -16
- package/dist/client/{bookingForm-DrWSUqL3.mjs → bookingForm-BeD4650p.mjs} +7 -6
- package/dist/client/bookings.mjs +4 -4
- package/dist/client/{boxStyleClassNames-CduDRcIk.mjs → boxStyleClassNames-CA7FirMH.mjs} +2 -2
- package/dist/client/{buttonParts-CJEtVOUy.mjs → buttonParts-C39GC0kz.mjs} +9 -2
- package/dist/client/{carousel-DyCLMP8s.mjs → carousel-DJ9Aa1m3.mjs} +2 -2
- package/dist/client/{carousel.client-DffP_Nv0.mjs → carousel.client-DKWqVHHh.mjs} +1 -1
- package/dist/client/{cart-BuEp_cj4.mjs → cart-DdCenbTy.mjs} +3 -3
- package/dist/client/{cart.client-CAO39uDG.mjs → cart.client-BQm06qNw.mjs} +1 -1
- package/dist/client/{checkout-BoxzT64s.mjs → checkout-45wPQULN.mjs} +3 -3
- package/dist/client/{checkout.client-IGUy7XOx.mjs → checkout.client-bSv4cc5z.mjs} +1 -1
- package/dist/client/{checkoutUrls-D0UsiFmm.mjs → checkoutUrls-CwlaMl3W.mjs} +1 -1
- package/dist/client/client.mjs +23 -35
- package/dist/client/{constants-C_8AxMdm.mjs → constants-DXV4KR7l.mjs} +1 -1
- package/dist/client/{context-D1L0pe__.mjs → context-lCPfX-xe.mjs} +13 -3
- package/dist/client/{demoPortalMagicLink-BunFTnIq.mjs → demoPortalMagicLink-Ce3Gyin_.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-CtLAG651.mjs → enhanceHeaderSection-CGcDE9aE.mjs} +4 -4
- package/dist/client/{event-registration.client-DiSxkBUP.mjs → event-registration.client-DlPfn4YG.mjs} +51 -28
- package/dist/client/{eventCalendar-DUnhwZ1o.mjs → eventCalendar-CioAdryV.mjs} +4 -4
- package/dist/client/{eventCombined-BvBQo0nF.mjs → eventCombined-Dwt0G6ez.mjs} +4 -4
- package/dist/client/{eventListing-aTLifOX7.mjs → eventListing-B3H9ifOC.mjs} +4 -4
- package/dist/client/{eventRegistration-DFd7pr09.mjs → eventRegistration-Do7cAhXb.mjs} +7 -6
- package/dist/client/{form-Dikmc2AO.mjs → form-CsqzgC6v.mjs} +3 -3
- package/dist/client/{form.client-zHaQK5I9.mjs → form.client-DVDB7hY6.mjs} +4 -4
- package/dist/client/{form.parts-BLl9n8TH.mjs → form.parts-1q2rzSYt.mjs} +3 -3
- package/dist/client/gifting/client.mjs +7 -7
- package/dist/client/{gifting-CufPM38H.mjs → gifting-BrXQGX-k.mjs} +4 -4
- package/dist/client/{gifting.client--N1GaSY8.mjs → gifting.client--zAjnY5N.mjs} +6 -7
- package/dist/client/{gifting.interactive-D9MK4HkV.mjs → gifting.interactive-CrwHpUJG.mjs} +59 -9
- package/dist/client/{gifting.parts-CRtiRzo-.mjs → gifting.parts-CcKdDaQq.mjs} +7 -2
- package/dist/client/{headerSection-BIaBpmk3.mjs → headerSection-DlcDH4bi.mjs} +2 -2
- package/dist/client/{islands-DJDLGQEm.mjs → islands-dMh0Oxli.mjs} +1986 -1170
- package/dist/client/{newsletter-form.client-wg_JHTxm.mjs → newsletter-form.client-BxA1PsdS.mjs} +5 -5
- package/dist/client/{newsletter-form.interactive-hzpkW9NQ.mjs → newsletter-form.interactive-D0iRg7p2.mjs} +6 -5
- package/dist/client/{newsletter-form.parts-CgzpSv9p.mjs → newsletter-form.parts-Dmuklz0r.mjs} +2 -2
- package/dist/client/{newsletterForm-CvxLiEBT.mjs → newsletterForm-CBzvgIfg.mjs} +3 -3
- package/dist/client/portal/client.mjs +27 -15
- package/dist/client/{portalRoutes-DTHlWg_F.mjs → portalRoutes-DiGibcZI.mjs} +9 -2
- package/dist/client/portalSession-0XhXyTxT.mjs +41 -0
- package/dist/client/{product-detail.client-22Q7zgjN.mjs → product-detail.client-D9MP8hvH.mjs} +1 -1
- package/dist/client/{product-list.client-DFWYvK8z.mjs → product-list.client-wCz1qcUY.mjs} +1 -1
- package/dist/client/{productDetail-DhZAwo60.mjs → productDetail-D9-fCY6c.mjs} +3 -3
- package/dist/client/{productList-BiVpbZK2.mjs → productList-PJyxXSac.mjs} +3 -3
- package/dist/client/{propsDecoder-DFYqKnLy.mjs → propsDecoder-B8lrKGPw.mjs} +4 -4
- package/dist/client/{registry.server-C3OBRg7x.mjs → registry.server-CI63JVHW.mjs} +689 -569
- package/dist/client/rendering/client.mjs +28 -27
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +4 -4
- package/dist/client/{richText-coerce-ms477Z08.mjs → richText-coerce-Jt9hDHdh.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-B6nQeqvH.mjs → routeIslandApiConfig-ZSPcJWx1.mjs} +1 -1
- package/dist/client/runtimeResponse-DlPBWBd9.mjs +3 -0
- package/dist/client/{runtimeResponse-BYqsV1Kb.mjs → runtimeResponse-_iW9oEYc.mjs} +1 -1
- package/dist/client/{shop-xt4dQ3HH.mjs → shop-CbdJlWOw.mjs} +3 -3
- package/dist/client/{shop-commerce-DVsIcPaI.mjs → shop-commerce-BqLbzUUn.mjs} +44 -26
- package/dist/client/{shop-commerce-store-7mO6KY7_.mjs → shop-commerce-store-BT0-zRqN.mjs} +1 -1
- package/dist/client/{shop-discount-apply.state-L1Vge8tG.mjs → shop-discount-apply.state-Cws0lnSb.mjs} +1 -1
- package/dist/client/{shop.client-DNJfD3VQ.mjs → shop.client-0cNErhJT.mjs} +37 -18
- package/dist/client/{shopShared-DS8t6749.mjs → shopShared-COuQ2MhQ.mjs} +2 -2
- package/dist/client/spam-protection.mjs +1 -1
- package/dist/client/{timetableModel-Dy3nNfTG.mjs → timetableModel-DqI6U1BS.mjs} +6 -6
- package/dist/client/{urlParams-C2QHo1Pa.mjs → useAutomaticDiscountPreview-CeVUVzGf.mjs} +44 -1
- package/dist/client/{useAvailableSlots-DcjtDpUu.mjs → useAvailableSlots-B0mjVhZr.mjs} +1 -1
- package/dist/client/{useDiscountCodeUi-DvdFFWOT.mjs → useDiscountCodeUi-B_hfgdAP.mjs} +6 -2
- package/dist/client/{useEventPagination-Cq-7sU5_.mjs → useEventPagination-Ct4A6iR1.mjs} +13 -15
- package/dist/client/{view-4gnPcpWJ.mjs → view-Cj151w4m.mjs} +4 -4
- package/dist/client/{wizardSteps-DDvL3iza.mjs → wizardSteps-B3gsXNnb.mjs} +212 -68
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-CLqSRUpt.mjs → EventEmbeddedCheckoutStep-CVy9oapv.mjs} +1 -1
- package/dist/preview-next/client/{LocationPickerEnvironment-CIdAg-Tm.mjs → LocationPickerEnvironment-DuRUwUrK.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-Bm85jX35.mjs → MapLibreEditMap-CdSDYBq9.mjs} +2 -2
- package/dist/preview-next/client/{PageSectionToolbar-D8srnz9R.mjs → PageSectionToolbar-Dv4CW0AQ.mjs} +582 -195
- package/dist/preview-next/client/{PreviewEditorSidebar-DVpk5cqp.mjs → PreviewEditorSidebar-B7WW58uE.mjs} +1095 -282
- package/dist/preview-next/client/{PreviewEditorUI-XoTtHSFH.mjs → PreviewEditorUI-BnJ1ughv.mjs} +65 -16
- package/dist/preview-next/client/{PreviewShell-VQHsRg2u.mjs → PreviewShell-C7qWzAe4.mjs} +39 -12
- package/dist/preview-next/client/{SdkPreviewModeRuntime-CLdF9f6o.mjs → SdkPreviewModeRuntime-CYi4UHtG.mjs} +128 -27
- package/dist/preview-next/client/{ThemedButton-ORNN4x-3.mjs → ThemedButton-CRgbU75r.mjs} +18 -2
- package/dist/preview-next/client/{lucide-react-eAi3tDAr.mjs → lucide-react-B4c6U3ZU.mjs} +1 -1
- package/dist/preview-next/client/{previewAssistantSlot-CqH91EwA.mjs → previewAssistantSlot-DrUoRNu9.mjs} +6239 -2558
- package/dist/preview-next/client/{previewChromeRoot-B3ySEu6p.mjs → previewChromeRoot-CEYp90mM.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-CdpSupcr.mjs → sdk-runtime-DnO2_c0A.mjs} +2 -2
- package/dist/preview-next/client/{siteStyleAccess-C6eOP6QW.mjs → siteStyleAccess-B3PwHw2z.mjs} +16 -10
- package/dist/preview-next/client/{useAutosaveStatus-BhPg4e-r.mjs → useAutosaveStatus-DrdQ4ier.mjs} +3 -3
- package/dist/preview-next/client/{useOpenBlockForSetup-BaWUF9D7.mjs → useOpenBlockForSetup-kuGRKaRL.mjs} +4 -3
- package/dist/preview-next/container-responsive.css +150 -3
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-Ch0X99vE.mjs → route-contract-CwrXkLT3.mjs} +16 -28
- package/dist/server/{Block.shared-B2FmczLO.mjs → Block.shared-C5ucphCJ.mjs} +5 -5
- package/dist/server/{ThemeScopeCore-DtAyv9qA.mjs → ThemeScopeCore-DvbqYXdK.mjs} +34 -8
- package/dist/server/{accessibleSurfaces-BtPqb76u.mjs → accessibleSurfaces-CAcf1lHT.mjs} +317 -148
- package/dist/server/{accordions-vzdZ2Wt1.mjs → accordions-DjcsqjCK.mjs} +1 -1
- package/dist/server/{bindings-B_9JuU66.mjs → bindings-CFw4M-gZ.mjs} +68 -247
- package/dist/server/{client-DC7cjiSw.mjs → client-D0XCgITW.mjs} +26 -34
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/{constants-d6nPNJpe.mjs → constants-BZduY8jG.mjs} +9 -2
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-hb27HYic.mjs → loadContent-C-qyB8Tq.mjs} +4 -4
- package/dist/server/{loadPage-JToD8wDD.mjs → loadPage-BpKKmi8E.mjs} +3 -3
- package/dist/server/lookMediaFrame-EFws7tAj.mjs +31835 -0
- package/dist/server/manifest.mjs +2 -2
- package/dist/server/{navigation-B2WhGofA.mjs → navigation-DYkuiNXa.mjs} +1 -1
- package/dist/server/navigation.mjs +1 -1
- package/dist/server/next.mjs +9 -9
- package/dist/server/{overrideResolution-vD5KTClL.mjs → overrideResolution-DmZn4xUE.mjs} +1 -1
- package/dist/server/page-converter.mjs +17 -4
- package/dist/server/{pageRenderPlan-CdqJ1NQZ.mjs → pageRenderPlan-DRB7cUZ0.mjs} +595 -208
- package/dist/server/{pageRuntimeSupport-CAhr4oOf.mjs → pageRuntimeSupport-Uv1xDieJ.mjs} +12 -5
- package/dist/server/{pageShared-m80Xu2pd.mjs → pageShared-BdQF875z.mjs} +596 -383
- package/dist/server/{parseThemeForPersistence-CRwOZfpa.mjs → parseThemeForPersistence-CwcWZL7u.mjs} +3 -3
- package/dist/server/{portal-B2wCQno_.mjs → portal-BQ8qiQnk.mjs} +22 -2
- package/dist/server/portal.mjs +3 -3
- package/dist/server/{prebuild-BWIkFaXq.mjs → prebuild-B51QZVNe.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-D1PHU-K9.mjs → prefetchBlockData-CppDAfJW.mjs} +3 -3
- package/dist/server/{registry-KtsOsAzY.mjs → registry-Bf4W8Qa7.mjs} +1499 -28631
- 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 +4 -4
- package/dist/server/rendering.mjs +9 -9
- package/dist/server/{resolveBlockData-sjIDJYl7.mjs → resolveBlockData-DMHAZooQ.mjs} +2 -2
- package/dist/server/{expandPalette-DxPrNOAB.mjs → resolveButtonColourStates-BMtAAPzp.mjs} +1662 -1430
- package/dist/server/{responseMedia-IfH65QAH.mjs → responseMedia-DKYfR518.mjs} +1 -1
- package/dist/server/{schema-BBEqquBM.mjs → schema-DGaihVwp.mjs} +261 -6
- package/dist/server/server.mjs +3 -3
- package/dist/server/{servicePageContent-ChEZDRwU.mjs → servicePageContent-CRvmreX7.mjs} +8 -7
- package/dist/server/theme-bridge.mjs +5 -4
- package/dist/server/theme.mjs +2 -2
- package/dist/server/{three-pass-converter-DKCIBeb1.mjs → three-pass-converter-mcy2E1Yd.mjs} +1 -1
- package/dist/server/{titleSourceSchema-DybHErxH.mjs → titleSourceSchema-B2qFOUwZ.mjs} +2 -3
- package/dist/server/{types-vyz09w64.mjs → types-C_S0pWbR.mjs} +9 -2
- package/dist/server/{validation-Cvi-1TZZ.mjs → validation-CUtNT_EZ.mjs} +5 -5
- package/dist/server/{version-B-icAIV1.mjs → version-DebJQ4zn.mjs} +1 -1
- package/dist/styles/index.css +495 -50
- package/package.json +1 -1
- package/dist/client/runtimeResponse-CUX_lldL.mjs +0 -3
- package/dist/server/customCss-rtIfEYwQ.mjs +0 -230
- package/dist/server/lookMediaFrame-CTsycLLK.mjs +0 -2756
- package/dist/server/media-gvfIw3z8.mjs +0 -216
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use client";
|
|
3
|
-
import { _n as staticHeaderChromeRuntime } from "../newsletter-form.interactive-
|
|
3
|
+
import { _n as staticHeaderChromeRuntime } from "../newsletter-form.interactive-D0iRg7p2.mjs";
|
|
4
4
|
import { r as indexRenderableMediaAssets } from "../renderableMediaAssetAdmission-BsOWd9lf.mjs";
|
|
5
|
-
import { Io as RichText, as as renderAudio, is as mediaImageHostProps, ns as MediaPlaceholder, os as renderVideo, rs as computeMediaTransformStyle, ts as ImagePresets, us as resolveMediaNodeResponsiveImage } from "../wizardSteps-
|
|
6
|
-
import { n as BookingFormNodeClient } from "../booking-form.client-
|
|
7
|
-
import { t as EventRegistrationBlockClient } from "../event-registration.client-
|
|
8
|
-
import { h as Text } from "../timetableModel-
|
|
9
|
-
import { Bt as accordionLookAttributes, Dt as EventDetailsView, Ft as markEditableSurfaceForwarding, Gn as ICON_CONFIG, Ht as resolveAccordionIconStyle, It as splitPositioningClasses, Nt as HeaderSectionFrame, Pt as composeHeaderSectionWrapperClassName, Vt as accordionIconColorStyle, jt as resolveEventDetailsPresentation, n as runtimeBackedBlockModes, r as runtimeBackedBlockServerEntries, rt as WeeklySlotAvailabilityView, t as serverComponentRegistry, vt as LocationMapSSR, zt as accordionItemPartSlots } from "../registry.server-
|
|
10
|
-
import { n as useBlockApi, t as BlockApiProvider$1 } from "../context-
|
|
11
|
-
import "../accessibleSurfaces-
|
|
12
|
-
import {
|
|
5
|
+
import { Io as RichText, as as renderAudio, is as mediaImageHostProps, ns as MediaPlaceholder, os as renderVideo, rs as computeMediaTransformStyle, ts as ImagePresets, us as resolveMediaNodeResponsiveImage } from "../wizardSteps-B3gsXNnb.mjs";
|
|
6
|
+
import { n as BookingFormNodeClient } from "../booking-form.client-B7ckDuOC.mjs";
|
|
7
|
+
import { t as EventRegistrationBlockClient } from "../event-registration.client-DlPfn4YG.mjs";
|
|
8
|
+
import { h as Text } from "../timetableModel-DqI6U1BS.mjs";
|
|
9
|
+
import { Bt as accordionLookAttributes, Dt as EventDetailsView, Ft as markEditableSurfaceForwarding, Gn as ICON_CONFIG, Ht as resolveAccordionIconStyle, It as splitPositioningClasses, Nt as HeaderSectionFrame, Pt as composeHeaderSectionWrapperClassName, Vt as accordionIconColorStyle, jt as resolveEventDetailsPresentation, n as runtimeBackedBlockModes, r as runtimeBackedBlockServerEntries, rt as WeeklySlotAvailabilityView, t as serverComponentRegistry, vt as LocationMapSSR, zt as accordionItemPartSlots } from "../registry.server-CI63JVHW.mjs";
|
|
10
|
+
import { n as useBlockApi, t as BlockApiProvider$1 } from "../context-lCPfX-xe.mjs";
|
|
11
|
+
import "../accessibleSurfaces-CqroimVQ.mjs";
|
|
12
|
+
import { O as clsx } from "../ThemedButton-C4rCsPCt.mjs";
|
|
13
13
|
import { t as CarouselSlideContent } from "../carousel.shared-BFQ3kBEw.mjs";
|
|
14
|
-
import { t as coerceRichTextDoc } from "../richText-coerce-
|
|
15
|
-
import { n as useEditorParts, t as ShopClient } from "../shop.client-
|
|
16
|
-
import { n as EventCombinedIslandClient } from "../EventCombined.client-
|
|
17
|
-
import { o as getRuntimeTimeZone } from "../useAvailableSlots-
|
|
14
|
+
import { t as coerceRichTextDoc } from "../richText-coerce-Jt9hDHdh.mjs";
|
|
15
|
+
import { n as useEditorParts, t as ShopClient } from "../shop.client-0cNErhJT.mjs";
|
|
16
|
+
import { n as EventCombinedIslandClient } from "../EventCombined.client-DgfNtcgW.mjs";
|
|
17
|
+
import { o as getRuntimeTimeZone } from "../useAvailableSlots-B0mjVhZr.mjs";
|
|
18
18
|
import { t as createLucideIcon } from "../createLucideIcon-BrXgHVKN.mjs";
|
|
19
|
-
import { t as CarouselNodeClient } from "../carousel.client-
|
|
20
|
-
import { t as ProductListClient } from "../product-list.client-
|
|
21
|
-
import { t as ProductDetailClient } from "../product-detail.client-
|
|
22
|
-
import { t as CartClient } from "../cart.client-
|
|
23
|
-
import { t as CheckoutClient } from "../checkout.client-
|
|
24
|
-
import { t as GiftingClient } from "../gifting.client--
|
|
25
|
-
import { t as mountHeaderChromeRuntime } from "../enhanceHeaderSection-
|
|
26
|
-
import { t as EventListingClient } from "../EventListing.client-
|
|
27
|
-
import { t as EventCalendarClient } from "../EventCalendar.client-
|
|
28
|
-
import { t as FormNodeClient } from "../form.client-
|
|
29
|
-
import { t as NewsletterFormClient } from "../newsletter-form.client-
|
|
30
|
-
import { t as BlocksIslandsHydrator } from "../BlocksIslandsHydrator-
|
|
19
|
+
import { t as CarouselNodeClient } from "../carousel.client-DKWqVHHh.mjs";
|
|
20
|
+
import { t as ProductListClient } from "../product-list.client-wCz1qcUY.mjs";
|
|
21
|
+
import { t as ProductDetailClient } from "../product-detail.client-D9MP8hvH.mjs";
|
|
22
|
+
import { t as CartClient } from "../cart.client-BQm06qNw.mjs";
|
|
23
|
+
import { t as CheckoutClient } from "../checkout.client-bSv4cc5z.mjs";
|
|
24
|
+
import { t as GiftingClient } from "../gifting.client--zAjnY5N.mjs";
|
|
25
|
+
import { t as mountHeaderChromeRuntime } from "../enhanceHeaderSection-CGcDE9aE.mjs";
|
|
26
|
+
import { t as EventListingClient } from "../EventListing.client-xFKRDLwC.mjs";
|
|
27
|
+
import { t as EventCalendarClient } from "../EventCalendar.client-Ct1B3xI4.mjs";
|
|
28
|
+
import { t as FormNodeClient } from "../form.client-DVDB7hY6.mjs";
|
|
29
|
+
import { t as NewsletterFormClient } from "../newsletter-form.client-BxA1PsdS.mjs";
|
|
30
|
+
import { t as BlocksIslandsHydrator } from "../BlocksIslandsHydrator-CFLWxjxR.mjs";
|
|
31
31
|
import * as React$1 from "react";
|
|
32
32
|
import React, { createContext, createElement, useContext, useEffect, useMemo, useRef } from "react";
|
|
33
33
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1183,7 +1183,7 @@ const FALLBACK_IMAGE_DATA_URL = "data:image/svg+xml;charset=utf-8," + encodeURIC
|
|
|
1183
1183
|
<circle cx="320" cy="275" r="26"/>
|
|
1184
1184
|
</g>
|
|
1185
1185
|
</svg>`);
|
|
1186
|
-
const MediaNode = ({ value, "data-slot": dataSlot, "data-surface": dataSurface, className, style, videoPlayback = "inline", loading = "lazy", fetchPriority, size = ImagePresets.full, fieldPath, blockKind, blockContent, imageResolveContext: explicitImageResolveContext }) => {
|
|
1186
|
+
const MediaNode = ({ value, "data-slot": dataSlot, "data-surface": dataSurface, "data-photo-shape": photoShape, className, style, videoPlayback = "inline", loading = "lazy", fetchPriority, size = ImagePresets.full, fieldPath, blockKind, blockContent, imageResolveContext: explicitImageResolveContext }) => {
|
|
1187
1187
|
const contextImageResolveContext = useImageResolveContextOptional();
|
|
1188
1188
|
const markPart = useEditorParts();
|
|
1189
1189
|
const imageResolveContext = mergeResolveImageUrlContexts(explicitImageResolveContext, contextImageResolveContext);
|
|
@@ -1226,7 +1226,8 @@ const MediaNode = ({ value, "data-slot": dataSlot, "data-surface": dataSurface,
|
|
|
1226
1226
|
loading,
|
|
1227
1227
|
fetchPriority,
|
|
1228
1228
|
"data-slot": dataSlot,
|
|
1229
|
-
"data-surface": dataSurface
|
|
1229
|
+
"data-surface": dataSurface,
|
|
1230
|
+
"data-photo-shape": photoShape
|
|
1230
1231
|
}, computedStyle),
|
|
1231
1232
|
src: imageUrl,
|
|
1232
1233
|
srcSet: responsive?.srcSet,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { a as mediaIdentifierSchema, i as resolveManagedMediaReference, n as renderableMediaAssetSchema, o as parseCanonicalMediaIdentifier, s as parseMediaIdentifier, t as buildRenderableMediaAssetIndex } from "./renderableMediaAssetAdmission-BsOWd9lf.mjs";
|
|
3
3
|
import { Cn as toUtcIsoDateTimeString, J as persistableMediaSchema, Y as runtimeMediaSchema, q as mediaSchema } from "./src-Do_s2lqH.mjs";
|
|
4
|
-
import { Io as RichText$2, Ms as resolveDateRuntimeContext, Ns as sanitizeHref, cs as resolveImageUrl$1, js as readRuntimeNow, ls as resolveImageUrlWithContext$1, rs as computeMediaTransformStyle, ss as resolveImageSourceSetWithContext$1 } from "./wizardSteps-
|
|
5
|
-
import { t as CUSTOMER_PORTAL_PATH } from "./portalRoutes-
|
|
6
|
-
import { $ as bookingPageDesign, B as SERVICE_BOOKING_BLOCK_IDS, C as siteBlockRenderContext, D as resolveBlockDataWithDeps, E as createBlockDataLoadPolicy, G as bookingPageSeedData, H as BOOKING_PAGE_BLOCK_IDS, I as MISSING_SDK_THEME_ERROR_CODE, J as plainTextDoc, K as buildBookingPageOutline, L as MissingSdkThemeError, N as normalizeDataLoaderSearchParams, O as SUPPORTED_LOADER_ENDPOINTS, Q as bookingHero, R as requireSdkTheme, S as projectRenderablePageOutline, T as DEFAULT_RESOLVE_BLOCK_DATA_DEPS, U as bookingDetailEvents, V as buildServiceBookingOutline, W as bookingPageFacts, X as createPublicBlockContentContractResolver, Y as buildCodeOwnedPageBlocks, Z as bookingDescription, a as solvedInksForThemeRuntime, at as makeDefaultBlockComponent, b as buildSiteRenderSupport, c as MissingBlockOverrideError, ct as deriveFieldValidationPlan, d as buildThemeRuntime, dt as getDefaultComponentRegistry, et as bookingSectionBlocks, f as parseBlocksTheme, ft as resolveAuthoredLinkHref, g as loadContent, h as isPageSurfaceContent, ht as resolveRouteHrefForStage, i as renderWithSdkThemeRuntime, it as siteHeaderManifest, k as prefetchBlockDataWithFailures, l as PageRenderer, lt as projectRepeaterGridLayout$1, m as isPageContent, mt as normalizeRenderStage, n as planLayoutThemeRuntime, nt as getBlockDefinition, o as ThemeScope, ot as renderBlock, p as isEntryContent, pt as isRouteVisibleInStage, q as bookingPageIdentity, r as renderWithOverrideOnlyRuntime, rt as siteFooterManifest, s as EditorPageRenderer, st as admitLayoutGridForPlan, t as Page, tt as planBlockDataRequests, u as toBlocksPageRendererDataContext, ut as projectRepeaterGridLayoutForRendering$1, v as loadContentFromContentResponseWithDeps, w as resolveSiteCustomBlocks, x as collectMediaAssetSidecar, y as buildRenderablePageOutline, z as parseServicePageContent } from "./Page-
|
|
7
|
-
import { q as parseFieldDefinition } from "./registry.server-
|
|
4
|
+
import { Io as RichText$2, Ms as resolveDateRuntimeContext, Ns as sanitizeHref, cs as resolveImageUrl$1, js as readRuntimeNow, ls as resolveImageUrlWithContext$1, rs as computeMediaTransformStyle, ss as resolveImageSourceSetWithContext$1 } from "./wizardSteps-B3gsXNnb.mjs";
|
|
5
|
+
import { t as CUSTOMER_PORTAL_PATH } from "./portalRoutes-DiGibcZI.mjs";
|
|
6
|
+
import { $ as bookingPageDesign, B as SERVICE_BOOKING_BLOCK_IDS, C as siteBlockRenderContext, D as resolveBlockDataWithDeps, E as createBlockDataLoadPolicy, G as bookingPageSeedData, H as BOOKING_PAGE_BLOCK_IDS, I as MISSING_SDK_THEME_ERROR_CODE, J as plainTextDoc, K as buildBookingPageOutline, L as MissingSdkThemeError, N as normalizeDataLoaderSearchParams, O as SUPPORTED_LOADER_ENDPOINTS, Q as bookingHero, R as requireSdkTheme, S as projectRenderablePageOutline, T as DEFAULT_RESOLVE_BLOCK_DATA_DEPS, U as bookingDetailEvents, V as buildServiceBookingOutline, W as bookingPageFacts, X as createPublicBlockContentContractResolver, Y as buildCodeOwnedPageBlocks, Z as bookingDescription, a as solvedInksForThemeRuntime, at as makeDefaultBlockComponent, b as buildSiteRenderSupport, c as MissingBlockOverrideError, ct as deriveFieldValidationPlan, d as buildThemeRuntime, dt as getDefaultComponentRegistry, et as bookingSectionBlocks, f as parseBlocksTheme, ft as resolveAuthoredLinkHref, g as loadContent, h as isPageSurfaceContent, ht as resolveRouteHrefForStage, i as renderWithSdkThemeRuntime, it as siteHeaderManifest, k as prefetchBlockDataWithFailures, l as PageRenderer, lt as projectRepeaterGridLayout$1, m as isPageContent, mt as normalizeRenderStage, n as planLayoutThemeRuntime, nt as getBlockDefinition, o as ThemeScope, ot as renderBlock, p as isEntryContent, pt as isRouteVisibleInStage, q as bookingPageIdentity, r as renderWithOverrideOnlyRuntime, rt as siteFooterManifest, s as EditorPageRenderer, st as admitLayoutGridForPlan, t as Page, tt as planBlockDataRequests, u as toBlocksPageRendererDataContext, ut as projectRepeaterGridLayoutForRendering$1, v as loadContentFromContentResponseWithDeps, w as resolveSiteCustomBlocks, x as collectMediaAssetSidecar, y as buildRenderablePageOutline, z as parseServicePageContent } from "./Page-DB5KODiu.mjs";
|
|
7
|
+
import { q as parseFieldDefinition } from "./registry.server-CI63JVHW.mjs";
|
|
8
8
|
import { o as setContextResolveImageUrlContext, t as buildResolveImageUrlContext } from "./mediaContext-DzvnjYXm.mjs";
|
|
9
9
|
import { n as toBlocksImageResolveContextInput, r as toBlocksMediaAssets } from "./mediaAssets-COfQolI3.mjs";
|
|
10
10
|
import "react";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { B as RichTextDocSchema } from "./src-Do_s2lqH.mjs";
|
|
3
|
-
import { c as logger } from "./islands-
|
|
3
|
+
import { c as logger } from "./islands-dMh0Oxli.mjs";
|
|
4
4
|
//#region ../blocks/src/system/runtime/nodes/richText-coerce.ts
|
|
5
5
|
function parseRichTextDoc(value) {
|
|
6
6
|
const parsed = RichTextDocSchema.safeParse(value);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { to as createHostedBlockApiConfig } from "./wizardSteps-
|
|
2
|
+
import { to as createHostedBlockApiConfig } from "./wizardSteps-B3gsXNnb.mjs";
|
|
3
3
|
//#region src/rendering/islands/enhancers/routeIslandApiConfig.ts
|
|
4
4
|
function buildRouteIslandApiConfig({ apiBaseUrl, portalToken, previewToken, siteId, stage, readAuthority }) {
|
|
5
5
|
if (readAuthority) return createHostedBlockApiConfig({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { r as parseSurfaceTree } from "./accessibleSurfaces-CqroimVQ.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 ShopClient } from "./shop.client-
|
|
3
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
4
|
-
import { t as mountShopBlockIsland } from "./shopShared-
|
|
2
|
+
import { t as ShopClient } from "./shop.client-0cNErhJT.mjs";
|
|
3
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-B8lrKGPw.mjs";
|
|
4
|
+
import { t as mountShopBlockIsland } from "./shopShared-COuQ2MhQ.mjs";
|
|
5
5
|
//#region src/rendering/islands/enhancers/shop.tsx
|
|
6
6
|
const decode = defineIslandPropsDecoder("shop");
|
|
7
7
|
const enhance = (root, props) => {
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { G as getShopDisplayForItems } from "./newsletter-form.interactive-
|
|
2
|
+
import { G as getShopDisplayForItems } from "./newsletter-form.interactive-D0iRg7p2.mjs";
|
|
3
3
|
import { a as clearWorkflowFeedback, o as reportWorkflowError, t as assertNever } from "./src-Do_s2lqH.mjs";
|
|
4
|
-
import { Io as RichText, Jr as buildProductCardDisplay, Yr as buildProductDetailDisplay, Zr as formatCommercePrice, ai as buildProductCartItem, ci as productItemKey, oi as deriveCommerceCheckoutState } from "./wizardSteps-
|
|
5
|
-
import { i as useSiteTermsAgreement, n as SiteTermsChangedNotice, t as SiteTermsAgreementField } from "./SiteTermsAgreementField-
|
|
6
|
-
import { n as useBlockApi } from "./context-
|
|
7
|
-
import { n as ThemedButton, r as ThemedButtonLink } from "./ThemedButton-
|
|
8
|
-
import { t as coerceRichTextDoc } from "./richText-coerce-
|
|
9
|
-
import { a as isDiscountCodeRefusal, c as checkoutFormForDiscountUiState, f as planUnifiedCheckoutRequest, m as DiscountCodeDisclosure, n as DemoBookingPortalAccess, o as useDiscountApply, s as aggregateCartDiscountUiState, u as planCartDiscountAvailabilityRequests } from "./DemoBookingPortalAccess-
|
|
10
|
-
import { t as buildCheckoutReturnUrls } from "./checkoutUrls-
|
|
11
|
-
import { n as resolveDedicatedCheckoutPath, t as useCommerceCart } from "./shop-commerce-store-
|
|
12
|
-
import {
|
|
4
|
+
import { Io as RichText, Jr as buildProductCardDisplay, Yr as buildProductDetailDisplay, Zr as formatCommercePrice, ai as buildProductCartItem, ci as productItemKey, oi as deriveCommerceCheckoutState } from "./wizardSteps-B3gsXNnb.mjs";
|
|
5
|
+
import { i as useSiteTermsAgreement, n as SiteTermsChangedNotice, t as SiteTermsAgreementField } from "./SiteTermsAgreementField-BDVP_HeK.mjs";
|
|
6
|
+
import { n as useBlockApi } from "./context-lCPfX-xe.mjs";
|
|
7
|
+
import { n as ThemedButton, r as ThemedButtonLink } from "./ThemedButton-C4rCsPCt.mjs";
|
|
8
|
+
import { t as coerceRichTextDoc } from "./richText-coerce-Jt9hDHdh.mjs";
|
|
9
|
+
import { a as isDiscountCodeRefusal, c as checkoutFormForDiscountUiState, f as planUnifiedCheckoutRequest, m as DiscountCodeDisclosure, n as DemoBookingPortalAccess, o as useDiscountApply, s as aggregateCartDiscountUiState, u as planCartDiscountAvailabilityRequests } from "./DemoBookingPortalAccess-pzkGVkgG.mjs";
|
|
10
|
+
import { t as buildCheckoutReturnUrls } from "./checkoutUrls-CwlaMl3W.mjs";
|
|
11
|
+
import { n as resolveDedicatedCheckoutPath, t as useCommerceCart } from "./shop-commerce-store-BT0-zRqN.mjs";
|
|
12
|
+
import { n as consumeSearchParam, t as useAutomaticDiscountPreview } from "./useAutomaticDiscountPreview-CeVUVzGf.mjs";
|
|
13
13
|
import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
|
|
14
|
-
import { c as ProductDetailView, f as VariantSelectView, l as ProductGalleryFrameView, n as CheckoutShellView, s as ProductCardView, t as CartShellView, u as ProductListSectionView } from "./view-
|
|
15
|
-
import { a as readDemoBookingCheckoutReturnEmail, o as storeDemoBookingCheckoutReturn } from "./demoPortalMagicLink-
|
|
16
|
-
import { a as initialDiscountApplyState, i as getDiscountApplyFeedback, n as discountDraftAwaitingApply, o as isDiscountApplyInFlight, r as getAppliedDiscountCode, t as discountApplyReducer } from "./shop-discount-apply.state-
|
|
17
|
-
import { t as CarouselNodeClient } from "./carousel.client-
|
|
14
|
+
import { c as ProductDetailView, f as VariantSelectView, l as ProductGalleryFrameView, n as CheckoutShellView, s as ProductCardView, t as CartShellView, u as ProductListSectionView } from "./view-Cj151w4m.mjs";
|
|
15
|
+
import { a as readDemoBookingCheckoutReturnEmail, o as storeDemoBookingCheckoutReturn } from "./demoPortalMagicLink-Ce3Gyin_.mjs";
|
|
16
|
+
import { a as initialDiscountApplyState, i as getDiscountApplyFeedback, n as discountDraftAwaitingApply, o as isDiscountApplyInFlight, r as getAppliedDiscountCode, t as discountApplyReducer } from "./shop-discount-apply.state-Cws0lnSb.mjs";
|
|
17
|
+
import { t as CarouselNodeClient } from "./carousel.client-DKWqVHHh.mjs";
|
|
18
18
|
import * as React$1 from "react";
|
|
19
19
|
import { useEffect, useState } from "react";
|
|
20
20
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -98,7 +98,7 @@ function shopCheckoutReducer(state, action) {
|
|
|
98
98
|
//#endregion
|
|
99
99
|
//#region ../blocks/src/system/runtime/nodes/shop-cart-discount-ui.ts
|
|
100
100
|
const CART_DISCOUNT_UNAVAILABLE = { type: "unavailable" };
|
|
101
|
-
function useCartDiscountUiState(api, plan) {
|
|
101
|
+
function useCartDiscountUiState(api, plan, revision = 0) {
|
|
102
102
|
const [discountUiState, setDiscountUiState] = useState(CART_DISCOUNT_UNAVAILABLE);
|
|
103
103
|
useEffect(() => {
|
|
104
104
|
let cancelled = false;
|
|
@@ -120,7 +120,11 @@ function useCartDiscountUiState(api, plan) {
|
|
|
120
120
|
return () => {
|
|
121
121
|
cancelled = true;
|
|
122
122
|
};
|
|
123
|
-
}, [
|
|
123
|
+
}, [
|
|
124
|
+
api,
|
|
125
|
+
plan,
|
|
126
|
+
revision
|
|
127
|
+
]);
|
|
124
128
|
return discountUiState;
|
|
125
129
|
}
|
|
126
130
|
//#endregion
|
|
@@ -297,10 +301,11 @@ function ShopCheckoutNoticeView(props) {
|
|
|
297
301
|
children: succeeded ? "Payment successful." : "Checkout cancelled."
|
|
298
302
|
}), succeeded && props.demoEmailSuppressed ? /* @__PURE__ */ jsx(DemoBookingPortalAccess, { email: props.email }) : null] });
|
|
299
303
|
}
|
|
300
|
-
function cartCheckoutForm(form, discountApply, uiState) {
|
|
304
|
+
function cartCheckoutForm(form, discountApply, uiState, quotedAutomaticDiscountCode) {
|
|
301
305
|
return checkoutFormForDiscountUiState({
|
|
302
306
|
...form,
|
|
303
|
-
discountCode: getAppliedDiscountCode(discountApply) ?? ""
|
|
307
|
+
discountCode: getAppliedDiscountCode(discountApply) ?? "",
|
|
308
|
+
quotedAutomaticDiscountCode
|
|
304
309
|
}, uiState);
|
|
305
310
|
}
|
|
306
311
|
function checkoutFailureMessage(error) {
|
|
@@ -355,7 +360,13 @@ function CheckoutController(props) {
|
|
|
355
360
|
const display = React$1.useMemo(() => getShopDisplayForItems(props.render, cart.items), [cart.items, props.render]);
|
|
356
361
|
const checkoutState = React$1.useMemo(() => deriveCommerceCheckoutState({ items: cart.items }), [cart.items]);
|
|
357
362
|
const discountAvailabilityPlan = React$1.useMemo(() => planCartDiscountAvailabilityRequests(checkoutState), [checkoutState]);
|
|
358
|
-
const
|
|
363
|
+
const [discountRevision, setDiscountRevision] = React$1.useState(0);
|
|
364
|
+
const discountUiState = useCartDiscountUiState(api, discountAvailabilityPlan, discountRevision);
|
|
365
|
+
const automaticPreview = useAutomaticDiscountPreview({
|
|
366
|
+
api,
|
|
367
|
+
email: state.form.email,
|
|
368
|
+
lines: discountAvailabilityPlan.ok ? discountAvailabilityPlan.value : []
|
|
369
|
+
});
|
|
359
370
|
const discountApplyFeedback = getDiscountApplyFeedback(discountApply.status, formatCommercePrice);
|
|
360
371
|
React$1.useEffect(() => {
|
|
361
372
|
if (discountUiState.type === "manual-allowed") return;
|
|
@@ -395,7 +406,7 @@ function CheckoutController(props) {
|
|
|
395
406
|
const { successUrl, cancelUrl } = buildCheckoutReturnUrls("checkout", CHECKOUT_ANCHOR_ID);
|
|
396
407
|
const command = planUnifiedCheckoutRequest({
|
|
397
408
|
checkout: checkoutState,
|
|
398
|
-
form: cartCheckoutForm(state.form, discountApply, discountUiState),
|
|
409
|
+
form: cartCheckoutForm(state.form, discountApply, discountUiState, automaticPreview.quotedAutomaticDiscountCode),
|
|
399
410
|
successUrl,
|
|
400
411
|
cancelUrl
|
|
401
412
|
});
|
|
@@ -415,11 +426,15 @@ function CheckoutController(props) {
|
|
|
415
426
|
cart.clear();
|
|
416
427
|
window.location.href = successUrl;
|
|
417
428
|
} catch (submitError) {
|
|
418
|
-
if (isDiscountCodeRefusal(submitError))
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
429
|
+
if (isDiscountCodeRefusal(submitError)) {
|
|
430
|
+
setDiscountRevision((value) => value + 1);
|
|
431
|
+
automaticPreview.refresh();
|
|
432
|
+
dispatchDiscountApply({
|
|
433
|
+
type: "applyRejected",
|
|
434
|
+
reason: "invalid_or_not_applicable",
|
|
435
|
+
message: submitError.message
|
|
436
|
+
});
|
|
437
|
+
}
|
|
423
438
|
dispatch({
|
|
424
439
|
type: "submitFailed",
|
|
425
440
|
message: checkoutFailureMessage(submitError)
|
|
@@ -492,7 +507,10 @@ function CheckoutController(props) {
|
|
|
492
507
|
isApplying: isDiscountApplyInFlight(discountApply),
|
|
493
508
|
disabled: state.submission === "submitting"
|
|
494
509
|
}) : null,
|
|
495
|
-
/* @__PURE__ */ jsx(CartDiscountNotice, { uiState: discountUiState
|
|
510
|
+
/* @__PURE__ */ jsx(CartDiscountNotice, { uiState: discountUiState.type === "auto-only" ? {
|
|
511
|
+
type: "auto-only",
|
|
512
|
+
autoAppliedDiscount: automaticPreview.discount
|
|
513
|
+
} : discountUiState }),
|
|
496
514
|
state.feedback.tag === "error" ? /* @__PURE__ */ jsx(FeedbackMessage, {
|
|
497
515
|
tone: "error",
|
|
498
516
|
className: "rb-caption status-muted",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { ii as buildPassCartItem, li as reduceCommerceCart, ri as EMPTY_COMMERCE_CART_STATE, si as parseStoredCommerceCartState } from "./wizardSteps-
|
|
2
|
+
import { ii as buildPassCartItem, li as reduceCommerceCart, ri as EMPTY_COMMERCE_CART_STATE, si as parseStoredCommerceCartState } from "./wizardSteps-B3gsXNnb.mjs";
|
|
3
3
|
import * as React$1 from "react";
|
|
4
4
|
//#region ../blocks/src/system/runtime/shared/utils/checkoutRoute.ts
|
|
5
5
|
function resolveDedicatedCheckoutTarget(pathname) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as assertNever } from "./src-Do_s2lqH.mjs";
|
|
3
|
-
import { l as normalizeManualDiscountCode } from "./DemoBookingPortalAccess-
|
|
3
|
+
import { l as normalizeManualDiscountCode } from "./DemoBookingPortalAccess-pzkGVkgG.mjs";
|
|
4
4
|
//#region ../blocks/src/system/runtime/nodes/shop-discount-apply.state.ts
|
|
5
5
|
const initialDiscountApplyState = {
|
|
6
6
|
isOpen: false,
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { Q as shopProductPresentation } from "./newsletter-form.interactive-
|
|
2
|
+
import { Q as shopProductPresentation } from "./newsletter-form.interactive-D0iRg7p2.mjs";
|
|
3
3
|
import { t as assertNever } from "./src-Do_s2lqH.mjs";
|
|
4
|
-
import { Hi as getShopSuccessCopy, Qr as formatInterval, Wr as appliedDiscountHint, Zr as formatCommercePrice } from "./wizardSteps-
|
|
4
|
+
import { Hi as getShopSuccessCopy, Qr as formatInterval, Wr as appliedDiscountHint, Zr as formatCommercePrice } from "./wizardSteps-B3gsXNnb.mjs";
|
|
5
5
|
import { h as assertNever$1 } from "./bookingCalendar--aWnqFDn.mjs";
|
|
6
|
-
import { i as useSiteTermsAgreement, n as SiteTermsChangedNotice, t as SiteTermsAgreementField } from "./SiteTermsAgreementField-
|
|
7
|
-
import { n as useBlockApi } from "./context-
|
|
8
|
-
import { n as ThemedButton } from "./ThemedButton-
|
|
9
|
-
import { a as isDiscountCodeRefusal, d as planDirectShopCheckoutRequest, m as DiscountCodeDisclosure, o as useDiscountApply, t as BookingConfirmation } from "./DemoBookingPortalAccess-
|
|
6
|
+
import { i as useSiteTermsAgreement, n as SiteTermsChangedNotice, t as SiteTermsAgreementField } from "./SiteTermsAgreementField-BDVP_HeK.mjs";
|
|
7
|
+
import { n as useBlockApi } from "./context-lCPfX-xe.mjs";
|
|
8
|
+
import { n as ThemedButton } from "./ThemedButton-C4rCsPCt.mjs";
|
|
9
|
+
import { a as isDiscountCodeRefusal, d as planDirectShopCheckoutRequest, m as DiscountCodeDisclosure, o as useDiscountApply, t as BookingConfirmation } from "./DemoBookingPortalAccess-pzkGVkgG.mjs";
|
|
10
10
|
import { t as scrollToBlock } from "./scrollToBlock-DrgKE0qZ.mjs";
|
|
11
11
|
import { t as createBodyThemePortalRoot } from "./themePortalRoot-DeP49PT8.mjs";
|
|
12
|
-
import {
|
|
12
|
+
import { r as consumeSearchParams, t as useAutomaticDiscountPreview } from "./useAutomaticDiscountPreview-CeVUVzGf.mjs";
|
|
13
13
|
import { t as CheckIcon } from "./CheckIcon-CVcKteXH.mjs";
|
|
14
14
|
import { t as CrossIcon } from "./CrossIcon-CpG9VRyW.mjs";
|
|
15
15
|
import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
|
|
16
|
-
import { n as TerminalPanel, r as StateIcon, t as useDiscountCodeUi } from "./useDiscountCodeUi-
|
|
16
|
+
import { n as TerminalPanel, r as StateIcon, t as useDiscountCodeUi } from "./useDiscountCodeUi-B_hfgdAP.mjs";
|
|
17
17
|
import { t as ModalShell } from "./ModalShell-B_fHWK71.mjs";
|
|
18
|
-
import { a as PassPurchaseUnavailable, d as ShopPurchaseAction, i as PassCardView, o as PassesMembershipsSectionView, p as noEditorParts, r as MembershipCardView } from "./view-
|
|
19
|
-
import { a as readDemoBookingCheckoutReturnEmail, o as storeDemoBookingCheckoutReturn } from "./demoPortalMagicLink-
|
|
20
|
-
import { a as initialDiscountApplyState, i as getDiscountApplyFeedback, n as discountDraftAwaitingApply, o as isDiscountApplyInFlight, r as getAppliedDiscountCode, t as discountApplyReducer } from "./shop-discount-apply.state-
|
|
21
|
-
import { t as CarouselNodeClient } from "./carousel.client-
|
|
18
|
+
import { a as PassPurchaseUnavailable, d as ShopPurchaseAction, i as PassCardView, o as PassesMembershipsSectionView, p as noEditorParts, r as MembershipCardView } from "./view-Cj151w4m.mjs";
|
|
19
|
+
import { a as readDemoBookingCheckoutReturnEmail, o as storeDemoBookingCheckoutReturn } from "./demoPortalMagicLink-Ce3Gyin_.mjs";
|
|
20
|
+
import { a as initialDiscountApplyState, i as getDiscountApplyFeedback, n as discountDraftAwaitingApply, o as isDiscountApplyInFlight, r as getAppliedDiscountCode, t as discountApplyReducer } from "./shop-discount-apply.state-Cws0lnSb.mjs";
|
|
21
|
+
import { t as CarouselNodeClient } from "./carousel.client-DKWqVHHh.mjs";
|
|
22
22
|
import { n as formatEntitlementEnd } from "./dateFormatting-HvfmS_cH.mjs";
|
|
23
23
|
import React, { createContext, useCallback, useContext, useEffect, useRef, useState } from "react";
|
|
24
24
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -207,6 +207,7 @@ function buildDirectShopCheckoutPlan(input) {
|
|
|
207
207
|
cancelUrl.searchParams.set("checkout", "cancelled");
|
|
208
208
|
const form = {
|
|
209
209
|
...input.checkout.form,
|
|
210
|
+
quotedAutomaticDiscountCode: input.quotedAutomaticDiscountCode,
|
|
210
211
|
discountCode: input.manualCodeEntryAllowed ? getAppliedDiscountCode(input.discountApply) ?? "" : ""
|
|
211
212
|
};
|
|
212
213
|
return {
|
|
@@ -236,6 +237,7 @@ async function submitDirectShopCheckout(input) {
|
|
|
236
237
|
currentUrl: window.location.href,
|
|
237
238
|
confirmDuplicate: input.confirmDuplicate,
|
|
238
239
|
discountApply: input.discountApply,
|
|
240
|
+
quotedAutomaticDiscountCode: input.quotedAutomaticDiscountCode,
|
|
239
241
|
manualCodeEntryAllowed: input.manualCodeEntryAllowed
|
|
240
242
|
});
|
|
241
243
|
if (!attempt.command.ok) {
|
|
@@ -409,6 +411,13 @@ function getCheckoutDiscountApplyLine(checkout) {
|
|
|
409
411
|
currency: checkout.item.product.currency
|
|
410
412
|
};
|
|
411
413
|
}
|
|
414
|
+
/** The buyer and exact product being quoted, including a quote with no automatic discount. */
|
|
415
|
+
function directShopAutomaticDiscountInput(checkout) {
|
|
416
|
+
return {
|
|
417
|
+
email: checkout?.form.email ?? "",
|
|
418
|
+
lines: checkout ? [getCheckoutDiscountApplyLine(checkout)] : []
|
|
419
|
+
};
|
|
420
|
+
}
|
|
412
421
|
function PassesMembershipsController({ render }) {
|
|
413
422
|
const api = useBlockApi();
|
|
414
423
|
const markPart = useEditorParts();
|
|
@@ -440,6 +449,10 @@ function PassesMembershipsController({ render }) {
|
|
|
440
449
|
}, [checkout]),
|
|
441
450
|
subtotalCents: checkout?.item.product.price
|
|
442
451
|
});
|
|
452
|
+
const automaticPreview = useAutomaticDiscountPreview({
|
|
453
|
+
api,
|
|
454
|
+
...directShopAutomaticDiscountInput(checkout)
|
|
455
|
+
});
|
|
443
456
|
const discountApplyFeedback = getDiscountApplyFeedback(discountApply.status, formatCommercePrice);
|
|
444
457
|
const handleBuyPass = useCallback((pass, teamMember) => {
|
|
445
458
|
dispatch({
|
|
@@ -520,17 +533,23 @@ function PassesMembershipsController({ render }) {
|
|
|
520
533
|
api: siteTerms.api,
|
|
521
534
|
discountApply,
|
|
522
535
|
manualCodeEntryAllowed: discountUi.manualCodeEntryAllowed,
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
536
|
+
quotedAutomaticDiscountCode: automaticPreview.quotedAutomaticDiscountCode,
|
|
537
|
+
onDiscountRefused: (message) => {
|
|
538
|
+
dispatchDiscountApply({
|
|
539
|
+
type: "applyRejected",
|
|
540
|
+
reason: "invalid_or_not_applicable",
|
|
541
|
+
message
|
|
542
|
+
});
|
|
543
|
+
discountUi.refresh();
|
|
544
|
+
automaticPreview.refresh();
|
|
545
|
+
},
|
|
528
546
|
dispatch
|
|
529
547
|
}), [
|
|
530
548
|
siteTerms.api,
|
|
531
549
|
checkout,
|
|
532
550
|
discountApply,
|
|
533
|
-
discountUi.manualCodeEntryAllowed
|
|
551
|
+
discountUi.manualCodeEntryAllowed,
|
|
552
|
+
automaticPreview.quotedAutomaticDiscountCode
|
|
534
553
|
]);
|
|
535
554
|
const applyDiscountCode = useDiscountApply({
|
|
536
555
|
api,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as BlockApiProvider } from "./context-
|
|
2
|
+
import { t as BlockApiProvider } from "./context-lCPfX-xe.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-ZSPcJWx1.mjs";
|
|
5
5
|
import "react";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
//#region src/rendering/islands/enhancers/shopShared.tsx
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use client";
|
|
3
|
-
import { t as ProtectedSubmitButton } from "./ProtectedSubmitButton-
|
|
3
|
+
import { t as ProtectedSubmitButton } from "./ProtectedSubmitButton-CY6u5sQa.mjs";
|
|
4
4
|
import { n as submissionProof } from "./protection-C0PoH1lT.mjs";
|
|
5
5
|
import { i as hasSpamProtection, n as useSpamProtection, r as getChallengeUrl, t as SpamProtectionWidget } from "./SpamProtectionWidget-CCF6YLUX.mjs";
|
|
6
6
|
export { ProtectedSubmitButton, SpamProtectionWidget, getChallengeUrl, hasSpamProtection, submissionProof, useSpamProtection };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { $t as mapDrawingSchema, Gt as normalizeLocationAddressText, mn as toScheduledBookingDateTime, nn as formatDate, pn as formatBookingCompactEnglishTime, xn as parseLocalScheduleTime } from "./src-Do_s2lqH.mjs";
|
|
3
|
-
import { $o as groupEventsByDate, Ao as isEventFull, Bo as eventDateOptions, Es as parseInlineTextFromUnknown, Io as RichText, Ms as resolveDateRuntimeContext, Oo as getEventAvailabilityStatus, Ts as isInlineTextEmpty, Wo as formatEventClockLabel, Xo as formatEventTimeRange, es as resolveEventTimeZone, mo as eventDestinationBookingLink, vo as resolveEventPageLink, wo as formatEventRemainingPlaces } from "./wizardSteps-
|
|
4
|
-
import { n as CALENDAR_LOAD_FAILURE_MESSAGE, t as CalendarNavigationChevron } from "./CalendarNavigationChevron-
|
|
3
|
+
import { $o as groupEventsByDate, Ao as isEventFull, Bo as eventDateOptions, Es as parseInlineTextFromUnknown, Io as RichText, Ms as resolveDateRuntimeContext, Oo as getEventAvailabilityStatus, Ts as isInlineTextEmpty, Wo as formatEventClockLabel, Xo as formatEventTimeRange, es as resolveEventTimeZone, mo as eventDestinationBookingLink, vo as resolveEventPageLink, wo as formatEventRemainingPlaces } from "./wizardSteps-B3gsXNnb.mjs";
|
|
4
|
+
import { n as CALENDAR_LOAD_FAILURE_MESSAGE, t as CalendarNavigationChevron } from "./CalendarNavigationChevron-ZfrUiiiI.mjs";
|
|
5
5
|
import { h as assertNever } from "./bookingCalendar--aWnqFDn.mjs";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { U as textColorStyle } from "./accessibleSurfaces-CqroimVQ.mjs";
|
|
7
|
+
import { O as clsx, k as parseThemeButtonVariantId, n as ThemedButton, r as ThemedButtonLink, t as ThemedAuthoredButton } from "./ThemedButton-C4rCsPCt.mjs";
|
|
8
8
|
import { d as formatDateKey, f as getDayOfWeek, i as buildTimetableModel$1, v as isToday } from "./src-uwCpbHXG.mjs";
|
|
9
9
|
import { t as getAtPath } from "./src-Al4ooTl_.mjs";
|
|
10
|
-
import { t as coerceRichTextDoc } from "./richText-coerce-
|
|
11
|
-
import { m as formatEventTeacherLine, u as eventDisplayTitleText } from "./EventItem-
|
|
10
|
+
import { t as coerceRichTextDoc } from "./richText-coerce-Jt9hDHdh.mjs";
|
|
11
|
+
import { m as formatEventTeacherLine, u as eventDisplayTitleText } from "./EventItem-KGKkK19N.mjs";
|
|
12
12
|
import "react";
|
|
13
13
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
14
14
|
//#region ../core/src/locationLinks.ts
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { mr as isEmailAddress } from "./wizardSteps-B3gsXNnb.mjs";
|
|
3
|
+
import { useEffect, useState } from "react";
|
|
2
4
|
//#region ../blocks/src/system/runtime/shared/utils/urlParams.ts
|
|
3
5
|
/**
|
|
4
6
|
* URL param helpers for client-side "return from redirect" flows.
|
|
@@ -45,4 +47,45 @@ function consumeSearchParams(paramNames) {
|
|
|
45
47
|
return values;
|
|
46
48
|
}
|
|
47
49
|
//#endregion
|
|
48
|
-
|
|
50
|
+
//#region ../blocks/src/system/runtime/hooks/useAutomaticDiscountPreview.ts
|
|
51
|
+
/** A shop quote belongs to the whole basket and buyer, rather than any item's availability hint. */
|
|
52
|
+
function useAutomaticDiscountPreview(input) {
|
|
53
|
+
const [revision, setRevision] = useState(0);
|
|
54
|
+
const key = JSON.stringify([
|
|
55
|
+
input.email.trim().toLowerCase(),
|
|
56
|
+
input.lines,
|
|
57
|
+
revision
|
|
58
|
+
]);
|
|
59
|
+
const [loaded, setLoaded] = useState(null);
|
|
60
|
+
useEffect(() => {
|
|
61
|
+
const lifetime = { current: true };
|
|
62
|
+
if (input.lines.length > 0 && isEmailAddress(input.email.trim())) requestAutomaticQuote(input).then((quote) => {
|
|
63
|
+
if (lifetime.current) setLoaded({
|
|
64
|
+
key,
|
|
65
|
+
quote
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
return () => {
|
|
69
|
+
lifetime.current = false;
|
|
70
|
+
};
|
|
71
|
+
}, [input.api, key]);
|
|
72
|
+
const quote = loaded?.key === key ? loaded.quote : null;
|
|
73
|
+
return {
|
|
74
|
+
discount: quote?.type === "applied" ? quote : null,
|
|
75
|
+
quotedAutomaticDiscountCode: quote?.type === "applied" ? quote.code : void 0,
|
|
76
|
+
refresh: () => setRevision((value) => value + 1)
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
async function requestAutomaticQuote(input) {
|
|
80
|
+
try {
|
|
81
|
+
const result = await input.api.applyDiscountCode({
|
|
82
|
+
customerEmail: input.email.trim(),
|
|
83
|
+
lines: input.lines
|
|
84
|
+
});
|
|
85
|
+
return result.type === "applied" || result.type === "priced" ? result : null;
|
|
86
|
+
} catch {
|
|
87
|
+
return null;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
//#endregion
|
|
91
|
+
export { consumeSearchParam as n, consumeSearchParams as r, useAutomaticDiscountPreview as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { Fn as unsafeAsAppointmentResourceId, Sn as parseUtcIsoDateTimeString, Tn as resolveBookingTimeZoneId, _n as formatLocalScheduleDate, bn as parseBookingLocalDate, cn as formatTime$1, hn as addLocalScheduleDays, nn as formatDate$1, t as assertNever, yn as getLocalScheduleDate } from "./src-Do_s2lqH.mjs";
|
|
3
|
-
import { n as useBlockApi } from "./context-
|
|
3
|
+
import { n as useBlockApi } from "./context-lCPfX-xe.mjs";
|
|
4
4
|
import { useCallback, useEffect, useReducer, useRef } from "react";
|
|
5
5
|
//#region ../blocks/src/utils/date-formatting.ts
|
|
6
6
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { _ as getAutoAppliedDiscountPreview, g as discountAvailabilityHasDiscounts, h as discountAvailabilityAllowsManualEntry } from "./DemoBookingPortalAccess-
|
|
2
|
+
import { _ as getAutoAppliedDiscountPreview, g as discountAvailabilityHasDiscounts, h as discountAvailabilityAllowsManualEntry } from "./DemoBookingPortalAccess-pzkGVkgG.mjs";
|
|
3
3
|
import { useEffect, useReducer, useState } from "react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
//#region ../blocks/src/system/runtime/shared/components/StateIcon.tsx
|
|
@@ -93,10 +93,12 @@ function discountCodeUiReducer(state, event) {
|
|
|
93
93
|
//#endregion
|
|
94
94
|
//#region ../blocks/src/system/runtime/nodes/event-registration/useDiscountCodeUi.ts
|
|
95
95
|
function useStandaloneDiscountAvailability(api, context, scopeKey, subtotalCents) {
|
|
96
|
+
const [revision, setRevision] = useState(0);
|
|
96
97
|
const key = JSON.stringify([
|
|
97
98
|
scopeKey,
|
|
98
99
|
context,
|
|
99
|
-
subtotalCents
|
|
100
|
+
subtotalCents,
|
|
101
|
+
revision
|
|
100
102
|
]);
|
|
101
103
|
const [loaded, setLoaded] = useState(null);
|
|
102
104
|
useEffect(() => {
|
|
@@ -120,6 +122,7 @@ function useStandaloneDiscountAvailability(api, context, scopeKey, subtotalCents
|
|
|
120
122
|
};
|
|
121
123
|
}, [api, key]);
|
|
122
124
|
return {
|
|
125
|
+
refresh: () => setRevision((value) => value + 1),
|
|
123
126
|
response: context && loaded?.key === key ? loaded.response : null,
|
|
124
127
|
loading: context !== null && loaded?.key !== key
|
|
125
128
|
};
|
|
@@ -177,6 +180,7 @@ function useDiscountCodeUi(options) {
|
|
|
177
180
|
]);
|
|
178
181
|
return {
|
|
179
182
|
...state,
|
|
183
|
+
refresh: standalone.refresh,
|
|
180
184
|
setDiscountUiOpen: (isOpen) => dispatch({
|
|
181
185
|
type: "discount-ui-open-changed",
|
|
182
186
|
isOpen
|