@riverbankcms/sdk 0.169.1 → 0.171.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 +37 -0
- package/dist/_dts/{BlocksIslandsHydrator-DEhlJEwj.d.ts → BlocksIslandsHydrator-xuFmD41p.d.ts} +1 -1
- package/dist/_dts/{Page-BhCfStX1.d.ts → Page-4fzXy8H9.d.ts} +13 -11
- package/dist/_dts/{SdkPreviewMode-DSYdsdmJ.d.ts → SdkPreviewMode-BlHgMsc8.d.ts} +4 -3
- package/dist/_dts/{client-BZMn4Y99.d.ts → client-BPoU758C.d.ts} +32 -1
- package/dist/_dts/{content-types-EMK-E_r9.d.ts → content-types-TnkhoSls.d.ts} +3 -3
- package/dist/_dts/{contracts-DjYsGY3B.d.ts → contracts-7wrMA79U.d.ts} +5 -3
- package/dist/_dts/{footerPageOutline-BtYUi-m0.d.ts → footerPageOutline-DaOsPQ_Q.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-D_fNTi5r.d.ts → generatePageMetadata-D9aDEzKK.d.ts} +2 -2
- package/dist/_dts/{index-NaRauKDR.d.ts → index-585vn6qb.d.ts} +72 -36
- package/dist/_dts/{index-BR0i0c3G.d.ts → index-CZKSUcDs.d.ts} +4 -4
- package/dist/_dts/{index-BV-qVnt7.d.ts → index-Cbw0IiY7.d.ts} +2 -2
- package/dist/_dts/{index-DgEwZ5WQ.d.ts → index-ChNbrcgD.d.ts} +1 -1
- package/dist/_dts/{index-QIbYMeI7.d.ts → index-DDKJfaLY.d.ts} +2 -2
- package/dist/_dts/{index-BzguBJzR.d.ts → index-DNCDENic.d.ts} +1 -1
- package/dist/_dts/{index-BYYhTQ_b.d.ts → index-W9R3Bnf2.d.ts} +3 -3
- package/dist/_dts/{loadContent-BmGH6NKl.d.ts → loadContent-DPyNAJym.d.ts} +7 -7
- package/dist/_dts/{request-DssgRQSm.d.ts → request-jXTRN1Y4.d.ts} +45927 -42247
- package/dist/_dts/{resolveBlockData-5BqNxwL8.d.ts → resolveBlockData-BbvE-gsZ.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-DIuwuFA7.d.ts → resolvePageContent-BBgih00D.d.ts} +2 -2
- package/dist/_dts/{runtime-BY8DQBbT.d.ts → runtime-BEoNgYbd.d.ts} +2 -2
- package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
- package/dist/_dts/sdk/src/client/types.d.ts +2 -2
- package/dist/_dts/sdk/src/client.d.ts +7 -7
- package/dist/_dts/sdk/src/config/index.d.ts +6 -6
- package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
- package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
- package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
- package/dist/_dts/sdk/src/data/types.d.ts +2 -2
- package/dist/_dts/sdk/src/index.d.ts +8 -8
- package/dist/_dts/sdk/src/manifest/index.d.ts +7 -7
- 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 +4 -4
- package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
- package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
- package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +3 -2
- package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
- package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
- package/dist/_dts/sdk/src/server.d.ts +5 -5
- package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
- package/dist/_dts/sdk/src/theme/index.d.ts +4740 -3
- package/dist/_dts/{types-cObpvZGF.d.ts → types-BXuVxDYo.d.ts} +2 -2
- package/dist/_dts/{types-DrAWDtqR.d.ts → types-DEAKoDNi.d.ts} +3 -3
- package/dist/_dts/{types-Z388-GR1.d.ts → types-kWvBwYK6.d.ts} +7 -7
- package/dist/_dts/{validation-hLr8zVrc.d.ts → validation-BAO0_ntM.d.ts} +17 -17
- package/dist/client/{BlocksIslandsHydrator-CN2GyuuA.mjs → BlocksIslandsHydrator-DfMsMIej.mjs} +17 -17
- package/dist/client/{BookingMailingListNote-Br1VyHkP.mjs → BookingMailingListNote-aaSicywS.mjs} +7 -7
- package/dist/client/{StepIndicator-BK0GEDoP.mjs → BookingPanelArrangement-OgftZ9QC.mjs} +16 -4
- package/dist/client/{BookingQuestionFields-LLGCWjvU.mjs → BookingQuestionFields-BlaCItmH.mjs} +5 -5
- package/dist/client/{CalendarNavigationChevron-DSnSBNeq.mjs → CalendarNavigationChevron-iMWrY6Hz.mjs} +7 -7
- package/dist/client/{CheckboxChoice-W_uiRgDK.mjs → CheckboxChoice-B65wFjqx.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-Cilv5zdS.mjs → DemoBookingPortalAccess-BCumOTLY.mjs} +7 -7
- package/dist/client/{EventCalendar.client-ucgdMS35.mjs → EventCalendar.client-kh7mkYnW.mjs} +9 -9
- package/dist/client/{EventCombined.client-BEdfJGpx.mjs → EventCombined.client-DXD5i0Ar.mjs} +8 -8
- package/dist/client/{EventEmbeddedCheckoutStep-Cf-HRHtb.mjs → EventEmbeddedCheckoutStep-DKKRCuta.mjs} +1 -1
- package/dist/client/{EventItem-OpLehMpT.mjs → EventItem-BnwcoFQN.mjs} +13 -9
- package/dist/client/{EventListWeekNavigation-DTsVU6gc.mjs → EventListWeekNavigation-DuG6z02f.mjs} +2 -1
- package/dist/client/{EventListing.client-8MFGI9BA.mjs → EventListing.client-18yfHrcr.mjs} +3 -3
- package/dist/client/{EventListing.view-BCvRqU86.mjs → EventListing.view-BM7rTVSL.mjs} +42 -397
- package/dist/client/{EventRegistrationPayment-CqH3hE-k.mjs → EventRegistrationPayment-D5J3DR0x.mjs} +13 -13
- package/dist/client/{LocationMapActions-BFp2uQQQ.mjs → LocationMapActions-QahdLtdE.mjs} +2 -2
- package/dist/client/{MapDrawingSvg-DDWfmgpA.mjs → MapDrawingSvg-Dy6UMuIw.mjs} +1 -1
- package/dist/client/Page-DH2sm4Cf.mjs +30247 -0
- package/dist/client/{ProtectedSubmitButton-C3H26pN9.mjs → ProtectedSubmitButton-AOUzjDK9.mjs} +1 -1
- package/dist/client/StepIndicator-CsRlU46Y.mjs +894 -0
- package/dist/client/{TabBarFragment-DkVKtK5a.mjs → TabBarFragment-CsAufYwT.mjs} +1 -1
- package/dist/client/{ThemedButton-BdnEwA38.mjs → ThemedButton-BMDHwnM6.mjs} +1 -1
- package/dist/client/{accessibleSurfaces-_7jkuinl.mjs → accessibleSurfaces-Bbn1-jJ8.mjs} +52 -2
- package/dist/client/{accordion-DMItWylU.mjs → accordion-DT4MD3Np.mjs} +1 -1
- package/dist/client/{booking-form.client-wd71DG19.mjs → booking-form.client-DdqNQNCa.mjs} +79 -42
- package/dist/client/{bookingForm-Cyr2qeS1.mjs → bookingForm-CLN396HU.mjs} +4 -4
- package/dist/client/bookings.mjs +6 -6
- package/dist/client/boxStyleClassNames-iLF_3KX9.mjs +369 -0
- package/dist/client/{carousel-B5-Hzzif.mjs → carousel-DFLomCGm.mjs} +2 -2
- package/dist/client/{carousel.client-eSSr1oYA.mjs → carousel.client-YF4mUK5t.mjs} +1 -1
- package/dist/client/{cart-B-M5l__W.mjs → cart-BozMM5NK.mjs} +3 -3
- package/dist/client/{cart.client-COAP4CEy.mjs → cart.client-CqOOxPbW.mjs} +1 -1
- package/dist/client/{checkout-ZHc8GfaG.mjs → checkout-CTWF5nbB.mjs} +3 -3
- package/dist/client/{checkout.client-DRralR3e.mjs → checkout.client-CpqxN8e0.mjs} +1 -1
- package/dist/client/{checkoutUrls-CY8qywXl.mjs → checkoutUrls-Ccg6yfjq.mjs} +1 -1
- package/dist/client/client.mjs +640 -226
- package/dist/client/{context-Xhf81Q-c.mjs → context-Dzjv2CpA.mjs} +10 -1
- package/dist/client/{creditProducts-CMOmhWm2.mjs → creditProducts-BTRX4edc.mjs} +54 -23
- package/dist/client/{cta-CfuyGqXL.mjs → cta-pzQkBLgS.mjs} +2 -2
- package/dist/client/{dateFormatting-Bv6kjUW3.mjs → dateFormatting-BfurxGwg.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-DQtwf_s2.mjs → demoPortalMagicLink-D0dcPsRE.mjs} +1 -1
- package/dist/client/{display-DDNmyb0z.mjs → display-Cl6mgSJa.mjs} +3186 -81
- package/dist/client/{enhanceHeaderSection-D7gRy-pL.mjs → enhanceHeaderSection-CJCl0HJC.mjs} +4 -4
- package/dist/client/{event-details.client-DZZaoCUc.mjs → event-details.client-Pn9Kxh3I.mjs} +3 -2
- package/dist/client/{event-registration.client-CLBdHUfd.mjs → event-registration.client-BAmBdWXE.mjs} +48 -34
- package/dist/client/{eventCalendar-BY3AfYkK.mjs → eventCalendar-C5Bh2L8L.mjs} +4 -4
- package/dist/client/{eventCombined-86P2vQCb.mjs → eventCombined-dELKxxIe.mjs} +4 -4
- package/dist/client/{eventDetails-DIJYMzVg.mjs → eventDetails-Do9D_fJ_.mjs} +2 -2
- package/dist/client/{eventListing-8jS0qGGC.mjs → eventListing-B2HTUWLq.mjs} +4 -4
- package/dist/client/{eventRegistration-DyseP_sY.mjs → eventRegistration-ByOJnqGc.mjs} +4 -4
- package/dist/client/form-DX70QG-J.mjs +27 -0
- package/dist/client/{form.client-D3_RF29v.mjs → form.client-CJoqBrS6.mjs} +5 -5
- package/dist/client/{form.parts-DWLf_3PF.mjs → form.parts-DTof9pL3.mjs} +3 -3
- package/dist/client/formSnapshot-Cy4abc0T.mjs +73 -0
- package/dist/client/{formatDate-BGlhrmhF.mjs → formatDate-Cjouxh4Y.mjs} +1 -1
- package/dist/client/gifting/client.mjs +3 -3
- package/dist/client/{headerSection-CyNGt23J.mjs → headerSection-CJuPX_1K.mjs} +2 -2
- package/dist/client/{newsletter-form.client-IfLup4o0.mjs → newsletter-form.client-CqzNjOft.mjs} +6 -6
- package/dist/client/{newsletter-form.parts-DDD-LRyW.mjs → newsletter-form.parts-DjJsFms2.mjs} +2 -2
- package/dist/client/{newsletterForm-o5wFBVHv.mjs → newsletterForm-D1MHoPbh.mjs} +5 -26
- package/dist/client/{noop-B_f7RqLD.mjs → noop-poI1m2yW.mjs} +69 -2
- package/dist/client/portal/client.mjs +294 -48
- package/dist/client/{product-detail.client-5hNA8aKU.mjs → product-detail.client-DOQ7El1d.mjs} +1 -1
- package/dist/client/{product-list.client-c-777ohj.mjs → product-list.client-CmxOZbzL.mjs} +1 -1
- package/dist/client/{productDetail-hXttfQhE.mjs → productDetail-BN3zv5sa.mjs} +3 -3
- package/dist/client/{productList-BPsYP_jA.mjs → productList-GN_Id4bF.mjs} +3 -3
- package/dist/client/{propsDecoder-Dc8j5i79.mjs → propsDecoder-BdmzM3D5.mjs} +8 -4
- package/dist/client/{registry.server-CMrdUGGv.mjs → registry.server-BOyra8CA.mjs} +1032 -925
- package/dist/client/rendering/client.mjs +57 -32
- package/dist/client/rendering/islandDelivery.flight.mjs +43 -10
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +1956 -191
- package/dist/client/{richText-coerce-BTurYEao.mjs → richText-coerce-CtoGLZ_e.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-DFjRKvzM.mjs → routeIslandApiConfig-DnaJ8PQc.mjs} +1 -1
- package/dist/client/{runtimeResponse-D2LT--Gj.mjs → runtimeResponse-B1-cyLXt.mjs} +1 -1
- package/dist/client/{runtimeResponse-BGU8sMZY.mjs → runtimeResponse-BN8PoIVp.mjs} +1 -1
- package/dist/client/{shop-Ds47onRS.mjs → shop-LjBLDBqF.mjs} +3 -3
- package/dist/client/{shop-commerce-B3PyRHaN.mjs → shop-commerce-B8aZTdRJ.mjs} +13 -13
- package/dist/client/{shop-commerce-store-D9CHihQv.mjs → shop-commerce-store-C1FtHYl7.mjs} +1 -1
- package/dist/client/{shop.client-RljK0qPB.mjs → shop.client-D0qZ3KZp.mjs} +13 -13
- package/dist/client/{shop.interactive-BH0xDlMF.mjs → shop.interactive-DAKyWK1B.mjs} +89 -19
- package/dist/client/{shopShared-BEfD0e4m.mjs → shopShared-CztcSe9i.mjs} +2 -2
- package/dist/client/spam-protection.mjs +1 -1
- package/dist/client/{timetableModel-BG7Ejxdr.mjs → timetableModel-D1jDTbms.mjs} +11 -11
- package/dist/client/{types-5fOsPIpL.mjs → types-B0hJldSt.mjs} +2 -0
- package/dist/client/{useAvailableSlots-GP8tnAVW.mjs → useAvailableSlots-ByHedoBi.mjs} +4 -8
- package/dist/client/{useDiscountApply-Cq07nTyG.mjs → useDiscountApply-CHGYDxdM.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-CD82QX5i.mjs → useDiscountCodeUi-Dew9UAEy.mjs} +1 -1
- package/dist/client/{useEventPagination-spj7sGQP.mjs → useEventPagination-BpC7-ksE.mjs} +7 -7
- package/dist/client/{view-oToSpu1N.mjs → view-BxeiAL3c.mjs} +121 -28
- package/dist/client/{view-aAP2WbCR.mjs → view-ShYH3WXh.mjs} +3 -3
- package/dist/preview-next/before-render.mjs +33 -13
- package/dist/preview-next/chrome.css +4 -0
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-8-qtHjpb.mjs → EventEmbeddedCheckoutStep-CKe4cjZ4.mjs} +1 -1
- package/dist/preview-next/client/{LocationPickerEnvironment-CwxRbAs2.mjs → LocationPickerEnvironment-lW2aLGWd.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-CKjYUp_E.mjs → MapLibreEditMap-C9InQJpd.mjs} +2 -2
- package/dist/preview-next/client/{ArrangementLookControls-CoWdilcI.mjs → PageSectionToolbar-DsSqwrMS.mjs} +397 -23
- package/dist/preview-next/client/{PreviewEditorSidebar-BNCrO6PQ.mjs → PreviewEditorSidebar-BEEWzXnU.mjs} +3266 -3215
- package/dist/preview-next/client/{PreviewEditorUI-inVZkLCd.mjs → PreviewEditorUI-C86Out4V.mjs} +6 -39
- package/dist/preview-next/client/{PreviewShell-CFQlAHTe.mjs → PreviewShell-CBWYjBvQ.mjs} +50 -41
- package/dist/preview-next/client/{SdkPreviewModeRuntime-Dgl7ktO4.mjs → SdkPreviewModeRuntime-o-mVqWLx.mjs} +88 -394
- package/dist/preview-next/client/{SiteChromeCustomizeButton-DgDYHwkG.mjs → SiteChromeCustomizeButton-H_ciMNHA.mjs} +1249 -22697
- package/dist/preview-next/client/{ThemedButton-BQU45t-E.mjs → ThemedButton-CKYjeU_M.mjs} +2 -0
- package/dist/preview-next/client/{lucide-react-DbC1o6_9.mjs → lucide-react-DygTyy7K.mjs} +1 -1
- package/dist/preview-next/client/{previewAssistantSlot-DRDu7Ndv.mjs → previewAssistantSlot-CuOcsG_N.mjs} +3481 -2113
- package/dist/preview-next/client/{previewChromeSurface-K6Q5uEMC.mjs → previewChromeRoot-DPeV7KaP.mjs} +52 -14
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-AGypzhcO.mjs → sdk-runtime-zTTFZ4MM.mjs} +2 -2
- package/dist/preview-next/client/{useAutosaveStatus-B2mn_l6c.mjs → useAutosaveStatus-DNA1Q4L1.mjs} +2 -2
- package/dist/preview-next/client/{useBlockCustomizeControls-CBXHo6ph.mjs → useOpenBlockForSetup-BdnMlHC6.mjs} +40 -21
- package/dist/preview-next/container-responsive.css +3093 -0
- package/dist/preview-next/editor-base.css +90 -178
- package/dist/preview-next/editor-chrome.css +25 -8
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-jc2Bug-h.mjs → route-contract-CtSgU8UZ.mjs} +547 -196
- package/dist/server/{Block.shared-BHgQjX16.mjs → Block.shared-ifgaBglp.mjs} +4 -4
- package/dist/server/ThemeScopeCore-DGDOH6OU.mjs +1983 -0
- package/dist/server/{accessibleSurfaces-D0q5tLSW.mjs → accessibleSurfaces-BuPNCWAK.mjs} +52 -2
- package/dist/server/bindings-CiYpie1M.mjs +1802 -0
- package/dist/server/{block-kinds-CdI7NvAW.mjs → block-kinds-DkzOr19P.mjs} +2 -0
- package/dist/server/{client-C-asG6Cf.mjs → client-ngWuFsmN.mjs} +638 -224
- package/dist/server/config-template-validation.mjs +30 -4
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +3 -34
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/index.mjs +3 -3
- package/dist/server/loadContent-DeLQeJAZ.mjs +2310 -0
- package/dist/server/{loadPage-XgtQR90Z.mjs → loadPage-D4J747FQ.mjs} +2 -2
- package/dist/server/manifest.mjs +1 -1
- package/dist/server/next.mjs +8 -6
- package/dist/server/{opaqueSurface-Yltv_u7r.mjs → opaqueSurface-ukEz1BaM.mjs} +2 -2
- package/dist/server/{overrideResolution-Z5pwH-kz.mjs → overrideResolution-DSuVkpqm.mjs} +3 -2
- package/dist/server/page-converter.mjs +3 -3
- package/dist/server/pageRegions-BaeEF2MU.mjs +30 -0
- package/dist/server/{pageRenderPlan-DQAo35og.mjs → pageRenderPlan-DFv3h4Ib.mjs} +309 -289
- package/dist/server/{pageRuntimeSupport-g-K-FCHa.mjs → pageRuntimeSupport-yHaRNWMj.mjs} +48 -35
- package/dist/server/{pageShared-7mPhqqXX.mjs → pageShared-CAZD0LcY.mjs} +875 -328
- package/dist/server/parseThemeForPersistence-Dl7LIBJq.mjs +52 -0
- package/dist/server/{prebuild-C0m4KOT9.mjs → prebuild-BKOCND3b.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-DcLKHfHG.mjs → prefetchBlockData-GIoExi8A.mjs} +4 -3
- package/dist/server/{registry-7_0_lUrh.mjs → registry-BogXzcOD.mjs} +4015 -2009
- package/dist/server/rendering/components/pageShared.mjs +1 -1
- package/dist/server/rendering/helpers/loadPage.mjs +1 -1
- package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
- package/dist/server/rendering/server.mjs +3 -3
- package/dist/server/rendering.mjs +7 -7
- package/dist/server/{resolveBlockData-q3WnpvyZ.mjs → resolveBlockData-CT4YSBve.mjs} +4 -3
- package/dist/server/{resolveButtonColourStates-Cn6j8Ee0.mjs → resolveButtonColourStates-DVISOQD9.mjs} +2 -0
- package/dist/server/rich-text-CRcONdyM.mjs +33 -0
- package/dist/server/{richTextSchema-DQ2NBP0n.mjs → richTextSchema-QLaQrbII.mjs} +31 -2
- package/dist/server/{parseThemeForPersistence-BebSeE17.mjs → schema-C92Q8y0-.mjs} +463 -53
- package/dist/server/server.mjs +3 -3
- package/dist/server/theme-bridge.mjs +2 -2
- package/dist/server/theme.mjs +2 -1
- package/dist/server/{three-pass-converter-CQWdnfjV.mjs → three-pass-converter-Bsfdy_ZV.mjs} +11 -8
- package/dist/server/{validation-CSMS6XmP.mjs → validation-vSBCWU3w.mjs} +9 -9
- package/dist/server/{version-DWeqmTXc.mjs → version-Cw5vFmUY.mjs} +1 -1
- package/dist/styles/index.css +521 -59
- package/package.json +1 -1
- package/dist/client/Page-Bu5TJU3L.mjs +0 -52239
- package/dist/client/StepIndicator-CR7_0yu4.mjs +0 -432
- package/dist/client/form-RTqunrpz.mjs +0 -85
- package/dist/preview-next/client/useOpenBlockForSetup-BpZnBznt.mjs +0 -28
- package/dist/server/ThemeScopeCore-Ck0dhZA6.mjs +0 -24236
- package/dist/server/bindings-CAbTvrCZ.mjs +0 -257
- package/dist/server/headerVariant-8O5MvxIU.mjs +0 -464
- package/dist/server/loadContent-DKerbSnI.mjs +0 -578
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { t as buildCartDisplay } from "./display-
|
|
4
|
-
import { i as ThemedButtonLink, r as ThemedButton } from "./ThemedButton-
|
|
2
|
+
import { ln as staticHeaderChromeRuntime } from "./shop.interactive-DAKyWK1B.mjs";
|
|
3
|
+
import { t as buildCartDisplay } from "./display-Cl6mgSJa.mjs";
|
|
4
|
+
import { i as ThemedButtonLink, r as ThemedButton } from "./ThemedButton-BMDHwnM6.mjs";
|
|
5
5
|
import { n as NAV_DROPDOWN_SHIFT_PROPERTY } from "./navDropdownSizing-CUjDrcIt.mjs";
|
|
6
6
|
import { t as resolveDedicatedCheckoutPath } from "./checkoutRoute-DKlZRNZD.mjs";
|
|
7
7
|
import { t as ModalShell } from "./ModalShell-B_fHWK71.mjs";
|
|
8
|
-
import { n as useCommerceCart } from "./shop-commerce-store-
|
|
8
|
+
import { n as useCommerceCart } from "./shop-commerce-store-C1FtHYl7.mjs";
|
|
9
9
|
import * as React$1 from "react";
|
|
10
10
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
11
11
|
import { createPortal } from "react-dom";
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { n as resolveEventDetailsPresentation, t as EventDetailsView } from "./view-
|
|
2
|
+
import { n as resolveEventDetailsPresentation, t as EventDetailsView } from "./view-BxeiAL3c.mjs";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
//#region ../blocks/src/system/runtime/nodes/event-details.client.tsx
|
|
6
6
|
function toEventDetailsClientProps(props) {
|
|
7
7
|
return {
|
|
8
8
|
arrangement: props.arrangement,
|
|
9
|
+
quickFacts: props.quickFacts,
|
|
9
10
|
entryTitle: props.entryTitle,
|
|
10
11
|
actionSize: props.actionSize,
|
|
11
12
|
lookSlots: props.lookSlots,
|
|
@@ -29,7 +30,7 @@ function toEventDetailsClientProps(props) {
|
|
|
29
30
|
siteMemberships: props.siteMemberships ? { memberships: [...props.siteMemberships.memberships] } : props.siteMemberships,
|
|
30
31
|
autoApplyDiscount: props.autoApplyDiscount ?? null,
|
|
31
32
|
className: props.className,
|
|
32
|
-
|
|
33
|
+
now: props.now
|
|
33
34
|
};
|
|
34
35
|
}
|
|
35
36
|
function EventDetailsClient(props) {
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { $ as
|
|
3
|
-
import { $n as canJoinEventWaitlistOnAnyMode,
|
|
4
|
-
import {
|
|
5
|
-
import { c as NavigationHandOffPanel, f as DiscountCodeDisclosure, i as SiteTermsChangedNotice, r as SiteTermsAgreementField, s as eventSiteTermsSurface, t as BookingConfirmation } from "./DemoBookingPortalAccess-
|
|
6
|
-
import { n as useBlockApi } from "./context-
|
|
7
|
-
import { a as getWaitlistClaimEntryIdFromUrl, i as eventRegistrationCheckoutReturnRequest, o as getWaitlistClaimTokenFromUrl, r as useEventRegistrationWizard, t as EventPaymentMount } from "./EventRegistrationPayment-
|
|
8
|
-
import { l as SpinnerNode, r as ThemedButton } from "./ThemedButton-
|
|
2
|
+
import { $ as bookingCardEntry, L as offeringNounForEvent, M as buildEventRegistrationInteractiveIslandProps, N as displayButtonText, Q as bookingBarPlacement, Qt as formatEventPriceDisplay, Z as DEFAULT_BOOKING_BUTTON_TEXT, et as bookingEntry, j as buildEventRegistrationDisplayFromScopedEvents, nt as bookingPanelHeading, rt as courseTitleOf, tt as bookingEntryProgress } from "./shop.interactive-DAKyWK1B.mjs";
|
|
3
|
+
import { $n as canJoinEventWaitlistOnAnyMode, At as resolveFinishedPresentation, B as placeCountCeiling, Bi as resolveEventRegistrationScopedEvents, C as panelShouldOpen, D as registrationStepLabel, Ft as formatDate, G as resolveRegistrationAvailabilityBlocker, Ht as getTicketTypeAvailabilityLabel, It as formatEventDateTime, Kt as withOccurrenceTitle, L as shouldPromptForLogin, Lt as formatPassCreditUsageLabel, Mr as formatPrice, Mt as areEntitlementsDisabledForTicketCount, O as registrationStepLabelContext, Pt as formatBookingWhen, Qn as canJoinEventWaitlist, R as fullyBookedLabel, Rt as formatRegistrationSchedule, S as getEventSelectionMode, Ss as publicEventPricingType, Ut as getVisibleTicketTypes, Wt as occurrenceTitleOverride, X as isEventRegistrationAvailable, Xt as getTicketSelectionTotal, Yt as getTicketLineQuantity, Z as normalizeEventRegistrationMaxTickets, Zt as getTicketTypeLineMax, _n as bookingPresentation, _r as getRegistrationSuccessCopy, ar as getRemainingPlaces, cr as selectMostOpenCapacitySource, en as setTicketLineQuantity, jr as formatCentsAsCurrencyInput, jt as ENTITLEMENT_SINGLE_TICKET_TOOLTIP, k as areEventRegistrationPaymentSelectionsEqual, kt as confirmationPaymentRows, lr as groupPublicEventsByRun, or as isEventFull, ot as paymentChoiceDetails, q as settledRemainingPlaces, qt as canRequestTicketOption, rr as getEventAvailability, sr as selectEventCapacitySource, st as paymentChoicePrice, vn as placesLeftLabel, xn as shownVenue, xs as publicEventPricingStrategy, ys as publicEventPricingCurrency, zt as formatTime } from "./display-Cl6mgSJa.mjs";
|
|
4
|
+
import { S as formatCreditProductUnits, p as assertNever } from "./creditProducts-BTRX4edc.mjs";
|
|
5
|
+
import { c as NavigationHandOffPanel, f as DiscountCodeDisclosure, i as SiteTermsChangedNotice, r as SiteTermsAgreementField, s as eventSiteTermsSurface, t as BookingConfirmation } from "./DemoBookingPortalAccess-BCumOTLY.mjs";
|
|
6
|
+
import { n as useBlockApi } from "./context-Dzjv2CpA.mjs";
|
|
7
|
+
import { a as getWaitlistClaimEntryIdFromUrl, i as eventRegistrationCheckoutReturnRequest, o as getWaitlistClaimTokenFromUrl, r as useEventRegistrationWizard, t as EventPaymentMount } from "./EventRegistrationPayment-D5J3DR0x.mjs";
|
|
8
|
+
import { l as SpinnerNode, r as ThemedButton } from "./ThemedButton-BMDHwnM6.mjs";
|
|
9
|
+
import { a as planEventBookingPanel, c as EventBookingPanelView, i as RegistrationClosedState, n as BookingEntryBar, o as registrationSourceForPanel, r as BookingEntryCard, s as resolveBookingPanelSelection, t as StepIndicator } from "./StepIndicator-CsRlU46Y.mjs";
|
|
9
10
|
import { t as createBodyThemePortalRoot } from "./themePortalRoot-DeP49PT8.mjs";
|
|
10
|
-
import { t as CheckboxChoice } from "./CheckboxChoice-
|
|
11
|
+
import { t as CheckboxChoice } from "./CheckboxChoice-B65wFjqx.mjs";
|
|
11
12
|
import { t as CrossIcon } from "./CrossIcon-CpG9VRyW.mjs";
|
|
12
13
|
import { n as getFieldValidationControlProps, t as FieldValidationMessage } from "./FieldValidationMessage-CsqxShw4.mjs";
|
|
13
14
|
import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
|
|
14
|
-
import { i as useBookingNowIso } from "./BookingQuestionFields-
|
|
15
|
-
import { n as TerminalPanel, r as StateIcon } from "./useDiscountCodeUi-
|
|
15
|
+
import { i as useBookingNowIso } from "./BookingQuestionFields-BlaCItmH.mjs";
|
|
16
|
+
import { n as TerminalPanel, r as StateIcon } from "./useDiscountCodeUi-Dew9UAEy.mjs";
|
|
16
17
|
import { t as ModalShell } from "./ModalShell-B_fHWK71.mjs";
|
|
17
|
-
import { i as BookingConsentAgreement, l as PaymentChoiceRows, n as BookingQuestionSections, r as MagicLinkForm, t as BookingMailingListNote } from "./BookingMailingListNote-
|
|
18
|
+
import { i as BookingConsentAgreement, l as PaymentChoiceRows, n as BookingQuestionSections, r as MagicLinkForm, t as BookingMailingListNote } from "./BookingMailingListNote-aaSicywS.mjs";
|
|
18
19
|
import { t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-4o4_hl34.mjs";
|
|
19
|
-
import { i as RegistrationClosedState, n as BookingEntryBar, r as BookingEntryCard, t as StepIndicator } from "./StepIndicator-CR7_0yu4.mjs";
|
|
20
20
|
import { t as createLucideIcon } from "./createLucideIcon-BrXgHVKN.mjs";
|
|
21
21
|
import React, { useCallback, useEffect, useId, useLayoutEffect, useRef, useState } from "react";
|
|
22
22
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -528,12 +528,12 @@ function getSelectedPassCreditsRemaining(wizard) {
|
|
|
528
528
|
function resolveEntitlementSummaryCopy(method, passCreditsRemaining) {
|
|
529
529
|
switch (method) {
|
|
530
530
|
case "pass": return {
|
|
531
|
-
productPrice: "
|
|
531
|
+
productPrice: formatCreditProductUnits("event_pass", 1),
|
|
532
532
|
pricingNote: formatPassCreditUsageLabel(passCreditsRemaining)
|
|
533
533
|
};
|
|
534
534
|
case "pass_bundle": return {
|
|
535
535
|
productPrice: null,
|
|
536
|
-
pricingNote:
|
|
536
|
+
pricingNote: formatPassCreditUsageLabel(null)
|
|
537
537
|
};
|
|
538
538
|
case "membership": return {
|
|
539
539
|
productPrice: "Included",
|
|
@@ -601,11 +601,15 @@ function DeclinedPassRow(props) {
|
|
|
601
601
|
children: /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("div", {
|
|
602
602
|
className: "er-summary-bar-product-name",
|
|
603
603
|
children: props.passName
|
|
604
|
-
}), /* @__PURE__ */
|
|
604
|
+
}), /* @__PURE__ */ jsxs("button", {
|
|
605
605
|
type: "button",
|
|
606
606
|
className: "er-summary-bar-pass-escape",
|
|
607
607
|
onClick: props.onUsePass,
|
|
608
|
-
children:
|
|
608
|
+
children: [
|
|
609
|
+
"Use ",
|
|
610
|
+
formatCreditProductUnits("event_pass", 1),
|
|
611
|
+
" from your pass instead"
|
|
612
|
+
]
|
|
609
613
|
})] })
|
|
610
614
|
});
|
|
611
615
|
}
|
|
@@ -1383,7 +1387,7 @@ function TicketCounter(props) {
|
|
|
1383
1387
|
onClick: () => onTicketsChange(stepNumber(ticketsCount, -1, { min: minAllowed })),
|
|
1384
1388
|
disabled: ticketsCount <= minAllowed,
|
|
1385
1389
|
className: "er-counter-btn",
|
|
1386
|
-
children: "
|
|
1390
|
+
children: "−"
|
|
1387
1391
|
}),
|
|
1388
1392
|
/* @__PURE__ */ jsx("span", {
|
|
1389
1393
|
className: "er-counter-value",
|
|
@@ -1415,7 +1419,7 @@ function TicketCounterLimit(props) {
|
|
|
1415
1419
|
}
|
|
1416
1420
|
function BookingUnitSessionHint(props) {
|
|
1417
1421
|
const count = props.bookingUnit.includedSessionCount;
|
|
1418
|
-
return props.bookingUnit.kind === "place" && count ? /* @__PURE__ */ jsxs("p", {
|
|
1422
|
+
return props.bookingUnit.kind === "place" && count && count > 1 ? /* @__PURE__ */ jsxs("p", {
|
|
1419
1423
|
className: "er-text er-text--muted",
|
|
1420
1424
|
children: [
|
|
1421
1425
|
"Every place includes all ",
|
|
@@ -1439,10 +1443,6 @@ function BookingQuantityPrompt(props) {
|
|
|
1439
1443
|
]
|
|
1440
1444
|
});
|
|
1441
1445
|
}
|
|
1442
|
-
function formatCurrencyInputAmount(amount) {
|
|
1443
|
-
const major = amount / 100;
|
|
1444
|
-
return Number.isInteger(major) ? String(major) : major.toFixed(2);
|
|
1445
|
-
}
|
|
1446
1446
|
function SlidingScaleAmountField(props) {
|
|
1447
1447
|
const minLabel = formatPrice(props.slidingScale.minAmount, props.currency);
|
|
1448
1448
|
const maxLabel = formatPrice(props.slidingScale.maxAmount, props.currency);
|
|
@@ -1458,8 +1458,8 @@ function SlidingScaleAmountField(props) {
|
|
|
1458
1458
|
/* @__PURE__ */ jsx("input", {
|
|
1459
1459
|
id: "er-sliding-amount",
|
|
1460
1460
|
type: "number",
|
|
1461
|
-
min:
|
|
1462
|
-
max:
|
|
1461
|
+
min: formatCentsAsCurrencyInput(props.slidingScale.minAmount),
|
|
1462
|
+
max: formatCentsAsCurrencyInput(props.slidingScale.maxAmount),
|
|
1463
1463
|
step: "0.01",
|
|
1464
1464
|
inputMode: "decimal",
|
|
1465
1465
|
className: "form-input",
|
|
@@ -2397,8 +2397,8 @@ function ownedPassChoices(eligibility) {
|
|
|
2397
2397
|
productName: pass.passName
|
|
2398
2398
|
},
|
|
2399
2399
|
label: pass.passName,
|
|
2400
|
-
details: [`${
|
|
2401
|
-
price: "1
|
|
2400
|
+
details: [`${formatCreditProductUnits("event_pass", pass.creditsRemaining)} left`],
|
|
2401
|
+
price: formatCreditProductUnits("event_pass", 1)
|
|
2402
2402
|
}));
|
|
2403
2403
|
}
|
|
2404
2404
|
function ownedMembershipChoices(eligibility) {
|
|
@@ -3714,6 +3714,18 @@ function waitForRetry(milliseconds, signal) {
|
|
|
3714
3714
|
}
|
|
3715
3715
|
//#endregion
|
|
3716
3716
|
//#region ../blocks/src/system/runtime/nodes/event-registration.client.tsx
|
|
3717
|
+
/** Editor rendering uses the same panel as SSR; closed panels retain a recovery-only island. */
|
|
3718
|
+
function EventRegistrationBlockClient(props) {
|
|
3719
|
+
const selection = resolveBookingPanelSelection(props);
|
|
3720
|
+
if (!selection) return /* @__PURE__ */ jsx(EventRegistrationIslandClient, { ...props });
|
|
3721
|
+
const panel = planEventBookingPanel(selection, new Date(props.now));
|
|
3722
|
+
const registration = registrationSourceForPanel(props, panel);
|
|
3723
|
+
return /* @__PURE__ */ jsx(EventBookingPanelView, {
|
|
3724
|
+
panel,
|
|
3725
|
+
pageKind: props.pageKind ?? "fullPage",
|
|
3726
|
+
children: registration ? /* @__PURE__ */ jsx(EventRegistrationIslandClient, { ...buildEventRegistrationInteractiveIslandProps(registration) }) : null
|
|
3727
|
+
});
|
|
3728
|
+
}
|
|
3717
3729
|
function toEventRegistrationClientProps(props, display) {
|
|
3718
3730
|
return {
|
|
3719
3731
|
...props.render.hydration,
|
|
@@ -3764,7 +3776,7 @@ const EventRegistrationIslandClient = (props) => {
|
|
|
3764
3776
|
const recoveryRequest = useEventRegistrationRecoveryRequest();
|
|
3765
3777
|
const display = props.render.display;
|
|
3766
3778
|
const surface = registrationAdmissionSurface({
|
|
3767
|
-
availability: display.state === "registration-closed" ? "closed" : "open",
|
|
3779
|
+
availability: props.render.hydration.admission === "recoveryOnly" ? "empty" : display.state === "registration-closed" ? "closed" : "open",
|
|
3768
3780
|
recoveryRequested: recoveryRequest !== "none"
|
|
3769
3781
|
});
|
|
3770
3782
|
switch (surface) {
|
|
@@ -3797,7 +3809,10 @@ function RecoverableEventRegistrationClient({ props, display, recoveryRequest })
|
|
|
3797
3809
|
default: return assertNever(recoveryRequest);
|
|
3798
3810
|
}
|
|
3799
3811
|
switch (recovery.kind) {
|
|
3800
|
-
case "loading": return /* @__PURE__ */ jsx(LoadingEventRegistrationSource, {
|
|
3812
|
+
case "loading": return /* @__PURE__ */ jsx(LoadingEventRegistrationSource, {
|
|
3813
|
+
display,
|
|
3814
|
+
pageKind: props.render.hydration.pageKind
|
|
3815
|
+
});
|
|
3801
3816
|
case "exhausted": return /* @__PURE__ */ jsx(UnavailableEventRegistrationSource, {
|
|
3802
3817
|
retry: recovery.retry,
|
|
3803
3818
|
buttonVariant: props.render.hydration.buttonVariant
|
|
@@ -3810,21 +3825,20 @@ function RecoverableEventRegistrationClient({ props, display, recoveryRequest })
|
|
|
3810
3825
|
default: return assertNever(recovery);
|
|
3811
3826
|
}
|
|
3812
3827
|
}
|
|
3813
|
-
function LoadingEventRegistrationSource({ display }) {
|
|
3828
|
+
function LoadingEventRegistrationSource({ display, pageKind }) {
|
|
3814
3829
|
return /* @__PURE__ */ jsxs("div", {
|
|
3815
3830
|
id: EVENT_REGISTRATION_ANCHOR_ID,
|
|
3816
3831
|
className: "rb-reg-surface er-container er-registration-shell",
|
|
3817
3832
|
"aria-busy": "true",
|
|
3818
3833
|
role: "status",
|
|
3819
3834
|
children: [
|
|
3820
|
-
/* @__PURE__ */ jsx("p", {
|
|
3835
|
+
bookingPresentation(pageKind).showShellHeading ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("p", {
|
|
3821
3836
|
className: "er-registration-shell__eyebrow",
|
|
3822
3837
|
children: "Registration"
|
|
3823
|
-
}),
|
|
3824
|
-
/* @__PURE__ */ jsx("h3", {
|
|
3838
|
+
}), /* @__PURE__ */ jsx("h3", {
|
|
3825
3839
|
className: "er-title er-registration-shell__title",
|
|
3826
3840
|
children: display.state === "generic-shell" ? display.titleText : "Event registration"
|
|
3827
|
-
}),
|
|
3841
|
+
})] }) : null,
|
|
3828
3842
|
/* @__PURE__ */ jsx("p", {
|
|
3829
3843
|
className: "er-text er-text--muted",
|
|
3830
3844
|
children: "Loading event dates…"
|
|
@@ -3872,4 +3886,4 @@ function RecoveredEventRegistrationClient({ props, display, events: recoveredEve
|
|
|
3872
3886
|
});
|
|
3873
3887
|
}
|
|
3874
3888
|
//#endregion
|
|
3875
|
-
export { EventRegistrationIslandClient as t };
|
|
3889
|
+
export { EventRegistrationIslandClient as n, EventRegistrationBlockClient as t };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as BlockApiProvider } from "./context-
|
|
3
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
4
|
-
import { t as EventCalendarClient } from "./EventCalendar.client-
|
|
2
|
+
import { t as BlockApiProvider } from "./context-Dzjv2CpA.mjs";
|
|
3
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-BdmzM3D5.mjs";
|
|
4
|
+
import { t as EventCalendarClient } from "./EventCalendar.client-kh7mkYnW.mjs";
|
|
5
5
|
import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
|
|
6
|
-
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-
|
|
6
|
+
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-DnaJ8PQc.mjs";
|
|
7
7
|
import "react";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
9
9
|
//#region src/rendering/islands/enhancers/eventCalendar.tsx
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as BlockApiProvider } from "./context-
|
|
3
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
4
|
-
import { n as EventCombinedIslandClient } from "./EventCombined.client-
|
|
2
|
+
import { t as BlockApiProvider } from "./context-Dzjv2CpA.mjs";
|
|
3
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-BdmzM3D5.mjs";
|
|
4
|
+
import { n as EventCombinedIslandClient } from "./EventCombined.client-DXD5i0Ar.mjs";
|
|
5
5
|
import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
|
|
6
|
-
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-
|
|
6
|
+
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-DnaJ8PQc.mjs";
|
|
7
7
|
import "react";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
9
9
|
//#region src/rendering/islands/enhancers/eventCombined.tsx
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
3
|
-
import { t as EventDetailsIslandClient } from "./event-details.client-
|
|
2
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-BdmzM3D5.mjs";
|
|
3
|
+
import { t as EventDetailsIslandClient } from "./event-details.client-Pn9Kxh3I.mjs";
|
|
4
4
|
import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
|
|
5
5
|
import "react";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as BlockApiProvider } from "./context-
|
|
3
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
4
|
-
import { t as EventListingClient } from "./EventListing.client-
|
|
2
|
+
import { t as BlockApiProvider } from "./context-Dzjv2CpA.mjs";
|
|
3
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-BdmzM3D5.mjs";
|
|
4
|
+
import { t as EventListingClient } from "./EventListing.client-18yfHrcr.mjs";
|
|
5
5
|
import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
|
|
6
|
-
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-
|
|
6
|
+
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-DnaJ8PQc.mjs";
|
|
7
7
|
import "react";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
9
9
|
//#region src/rendering/islands/enhancers/eventListing.tsx
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { t as BlockApiProvider } from "./context-
|
|
4
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
2
|
+
import { n as EventRegistrationIslandClient } from "./event-registration.client-BAmBdWXE.mjs";
|
|
3
|
+
import { t as BlockApiProvider } from "./context-Dzjv2CpA.mjs";
|
|
4
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-BdmzM3D5.mjs";
|
|
5
5
|
import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
|
|
6
|
-
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-
|
|
6
|
+
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-DnaJ8PQc.mjs";
|
|
7
7
|
import "react";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
9
9
|
//#region src/rendering/islands/enhancers/eventRegistration.tsx
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { t as BlockApiProvider } from "./context-Dzjv2CpA.mjs";
|
|
3
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-BdmzM3D5.mjs";
|
|
4
|
+
import { t as FormNodeClient } from "./form.client-CJoqBrS6.mjs";
|
|
5
|
+
import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
|
|
6
|
+
import { n as snapshotForm, t as restoreForm } from "./formSnapshot-Cy4abc0T.mjs";
|
|
7
|
+
import "react";
|
|
8
|
+
import { jsx } from "react/jsx-runtime";
|
|
9
|
+
//#region src/rendering/islands/enhancers/form.tsx
|
|
10
|
+
const decode = defineIslandPropsDecoder("form");
|
|
11
|
+
const enhance = (root, props) => {
|
|
12
|
+
const { siteId, apiBaseUrl } = props;
|
|
13
|
+
if (!siteId) throw new Error("[sdk:islands] form requires siteId");
|
|
14
|
+
if (!apiBaseUrl) throw new Error("[sdk:islands] form requires apiBaseUrl");
|
|
15
|
+
const apiConfig = {
|
|
16
|
+
baseUrl: apiBaseUrl,
|
|
17
|
+
auth: { type: "none" },
|
|
18
|
+
siteId
|
|
19
|
+
};
|
|
20
|
+
const fallbackForm = root.querySelector("form");
|
|
21
|
+
return mountReactIsland(root, /* @__PURE__ */ jsx(BlockApiProvider, {
|
|
22
|
+
config: apiConfig,
|
|
23
|
+
children: /* @__PURE__ */ jsx(FormNodeClient, { ...props })
|
|
24
|
+
}), { handover: (mount) => restoreForm(mount.querySelector("form"), snapshotForm(fallbackForm)) });
|
|
25
|
+
};
|
|
26
|
+
//#endregion
|
|
27
|
+
export { decode, enhance };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { n as useBlockApi } from "./context-
|
|
5
|
-
import { S as clsx } from "./ThemedButton-
|
|
2
|
+
import { qi as listLookSlot } from "./display-Cl6mgSJa.mjs";
|
|
3
|
+
import { h as ok, m as err, p as assertNever } from "./creditProducts-BTRX4edc.mjs";
|
|
4
|
+
import { n as useBlockApi } from "./context-Dzjv2CpA.mjs";
|
|
5
|
+
import { S as clsx } from "./ThemedButton-BMDHwnM6.mjs";
|
|
6
6
|
import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
|
|
7
|
-
import { n as FormSubmitAction, t as FormFieldGroups } from "./form.parts-
|
|
7
|
+
import { n as FormSubmitAction, t as FormFieldGroups } from "./form.parts-DTof9pL3.mjs";
|
|
8
8
|
import { t as SpamProtectionWidget } from "./SpamProtectionWidget-CCF6YLUX.mjs";
|
|
9
9
|
import { t as useAltchaProtection } from "./altchaProtection-DjIV9A5n.mjs";
|
|
10
10
|
import { useReducer, useRef } from "react";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { t as CheckboxChoice } from "./CheckboxChoice-
|
|
4
|
-
import { t as ProtectedSubmitButton } from "./ProtectedSubmitButton-
|
|
2
|
+
import { Ki as listLookControl, qi as listLookSlot } from "./display-Cl6mgSJa.mjs";
|
|
3
|
+
import { t as CheckboxChoice } from "./CheckboxChoice-B65wFjqx.mjs";
|
|
4
|
+
import { t as ProtectedSubmitButton } from "./ProtectedSubmitButton-AOUzjDK9.mjs";
|
|
5
5
|
import "react";
|
|
6
6
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
//#region ../blocks/src/system/runtime/nodes/form.fields.tsx
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
//#region src/rendering/islands/enhancers/formSnapshot.ts
|
|
3
|
+
const SKIPPED_INPUT_TYPES = /* @__PURE__ */ new Set([
|
|
4
|
+
"hidden",
|
|
5
|
+
"file",
|
|
6
|
+
"submit",
|
|
7
|
+
"button",
|
|
8
|
+
"reset",
|
|
9
|
+
"image"
|
|
10
|
+
]);
|
|
11
|
+
function isVisitorControl(el) {
|
|
12
|
+
if (el instanceof HTMLInputElement) return el.name !== "" && !SKIPPED_INPUT_TYPES.has(el.type);
|
|
13
|
+
return (el instanceof HTMLTextAreaElement || el instanceof HTMLSelectElement) && el.name !== "";
|
|
14
|
+
}
|
|
15
|
+
function isCheckable(control) {
|
|
16
|
+
return control instanceof HTMLInputElement && (control.type === "checkbox" || control.type === "radio");
|
|
17
|
+
}
|
|
18
|
+
function namedControls(form) {
|
|
19
|
+
const positions = /* @__PURE__ */ new Map();
|
|
20
|
+
return Array.from(form.elements).filter(isVisitorControl).map((control) => {
|
|
21
|
+
if (isCheckable(control)) return {
|
|
22
|
+
key: `${control.name}\u0000checked\u0000${control.value}`,
|
|
23
|
+
control
|
|
24
|
+
};
|
|
25
|
+
const position = positions.get(control.name) ?? 0;
|
|
26
|
+
positions.set(control.name, position + 1);
|
|
27
|
+
return {
|
|
28
|
+
key: `${control.name}\u0000value\u0000${position}`,
|
|
29
|
+
control
|
|
30
|
+
};
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
function snapshotControl(control) {
|
|
34
|
+
if (control instanceof HTMLSelectElement && control.multiple) return {
|
|
35
|
+
kind: "selected",
|
|
36
|
+
values: Array.from(control.selectedOptions, (o) => o.value)
|
|
37
|
+
};
|
|
38
|
+
if (isCheckable(control)) return {
|
|
39
|
+
kind: "checked",
|
|
40
|
+
checked: control.checked
|
|
41
|
+
};
|
|
42
|
+
return {
|
|
43
|
+
kind: "value",
|
|
44
|
+
value: control.value
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
function snapshotForm(form) {
|
|
48
|
+
if (!form) return /* @__PURE__ */ new Map();
|
|
49
|
+
return new Map(namedControls(form).map(({ key, control }) => [key, snapshotControl(control)]));
|
|
50
|
+
}
|
|
51
|
+
function restoreForm(form, snapshot) {
|
|
52
|
+
if (!form || snapshot.size === 0) return;
|
|
53
|
+
for (const { key, control } of namedControls(form)) {
|
|
54
|
+
const saved = snapshot.get(key);
|
|
55
|
+
if (!saved) continue;
|
|
56
|
+
switch (saved.kind) {
|
|
57
|
+
case "selected": {
|
|
58
|
+
if (!(control instanceof HTMLSelectElement) || !control.multiple) break;
|
|
59
|
+
const selected = new Set(saved.values);
|
|
60
|
+
for (const option of Array.from(control.options)) option.selected = selected.has(option.value);
|
|
61
|
+
break;
|
|
62
|
+
}
|
|
63
|
+
case "checked":
|
|
64
|
+
if (control instanceof HTMLInputElement) control.checked = saved.checked;
|
|
65
|
+
break;
|
|
66
|
+
case "value":
|
|
67
|
+
control.value = saved.value;
|
|
68
|
+
break;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
//#endregion
|
|
73
|
+
export { snapshotForm as n, restoreForm as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { Ft as formatDate$1, Lt as formatDateTime, Qt as parseBookingLocalDate, rn as parseUtcIsoDateTimeString } from "./noop-poI1m2yW.mjs";
|
|
3
3
|
//#region ../blocks/src/bindings/formatDate.ts
|
|
4
4
|
/** Admit stored civil dates or offset-aware instants before core projection. */
|
|
5
5
|
function formatDate(value, context, options) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use client";
|
|
3
|
-
import {
|
|
4
|
-
import { i as BlockApiError, n as useBlockApi, t as BlockApiProvider } from "../context-
|
|
5
|
-
import { i as ThemedButtonLink, r as ThemedButton } from "../ThemedButton-
|
|
3
|
+
import { Ft as formatDate, in as toUtcIsoDateTimeString, t as logger, tn as resolveBookingTimeZoneId, un as formatGiftCardAmountLabel } from "../noop-poI1m2yW.mjs";
|
|
4
|
+
import { i as BlockApiError, n as useBlockApi, t as BlockApiProvider } from "../context-Dzjv2CpA.mjs";
|
|
5
|
+
import { i as ThemedButtonLink, r as ThemedButton } from "../ThemedButton-BMDHwnM6.mjs";
|
|
6
6
|
import { t as CheckIcon } from "../CheckIcon-CVcKteXH.mjs";
|
|
7
7
|
import React from "react";
|
|
8
8
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
3
|
-
import { t as mountHeaderChromeRuntime } from "./enhanceHeaderSection-
|
|
2
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-BdmzM3D5.mjs";
|
|
3
|
+
import { t as mountHeaderChromeRuntime } from "./enhanceHeaderSection-CJCl0HJC.mjs";
|
|
4
4
|
//#region src/rendering/islands/enhancers/headerSection.ts
|
|
5
5
|
const decode = defineIslandPropsDecoder("headerSection");
|
|
6
6
|
const enhance = (root, props) => {
|
package/dist/client/{newsletter-form.client-IfLup4o0.mjs → newsletter-form.client-CqzNjOft.mjs}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { i as BlockApiError, n as useBlockApi } from "./context-
|
|
6
|
-
import { S as clsx } from "./ThemedButton-
|
|
2
|
+
import { gn as parseMailingListVisitorSelection, x as newsletterBlockSubmissionMessage, y as NEWSLETTER_SIGNUPS_PAUSED_MESSAGE } from "./shop.interactive-DAKyWK1B.mjs";
|
|
3
|
+
import { qi as listLookSlot } from "./display-Cl6mgSJa.mjs";
|
|
4
|
+
import { N as assertNever$1, p as assertNever } from "./creditProducts-BTRX4edc.mjs";
|
|
5
|
+
import { i as BlockApiError, n as useBlockApi } from "./context-Dzjv2CpA.mjs";
|
|
6
|
+
import { S as clsx } from "./ThemedButton-BMDHwnM6.mjs";
|
|
7
7
|
import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
|
|
8
|
-
import { a as partitionNewsletterFields, i as TOPIC_CHOICE_FIELD_ID, n as NewsletterSubmitRow, r as NewsletterTopicChips, t as NewsletterExtraField } from "./newsletter-form.parts-
|
|
8
|
+
import { a as partitionNewsletterFields, i as TOPIC_CHOICE_FIELD_ID, n as NewsletterSubmitRow, r as NewsletterTopicChips, t as NewsletterExtraField } from "./newsletter-form.parts-DjJsFms2.mjs";
|
|
9
9
|
import { t as MAILING_LIST_CONFIRMATION_MESSAGE } from "./mailingListSignupCopy-CX4sDozG.mjs";
|
|
10
10
|
import { t as SpamProtectionWidget } from "./SpamProtectionWidget-CCF6YLUX.mjs";
|
|
11
11
|
import { t as useAltchaProtection } from "./altchaProtection-DjIV9A5n.mjs";
|
package/dist/client/{newsletter-form.parts-DDD-LRyW.mjs → newsletter-form.parts-DjJsFms2.mjs}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { qi as listLookSlot } from "./display-Cl6mgSJa.mjs";
|
|
3
3
|
import { n as getFieldValidationControlProps, t as FieldValidationMessage } from "./FieldValidationMessage-CsqxShw4.mjs";
|
|
4
|
-
import { t as ProtectedSubmitButton } from "./ProtectedSubmitButton-
|
|
4
|
+
import { t as ProtectedSubmitButton } from "./ProtectedSubmitButton-AOUzjDK9.mjs";
|
|
5
5
|
import "react";
|
|
6
6
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
//#region ../blocks/src/system/runtime/nodes/newsletter-form.parts.tsx
|
|
@@ -1,34 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as BlockApiProvider } from "./context-
|
|
3
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
4
|
-
import { t as NewsletterFormClient } from "./newsletter-form.client-
|
|
2
|
+
import { t as BlockApiProvider } from "./context-Dzjv2CpA.mjs";
|
|
3
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-BdmzM3D5.mjs";
|
|
4
|
+
import { t as NewsletterFormClient } from "./newsletter-form.client-CqzNjOft.mjs";
|
|
5
5
|
import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
|
|
6
|
+
import { n as snapshotForm, t as restoreForm } from "./formSnapshot-Cy4abc0T.mjs";
|
|
6
7
|
import "react";
|
|
7
8
|
import { jsx } from "react/jsx-runtime";
|
|
8
9
|
//#region src/rendering/islands/enhancers/newsletterForm.tsx
|
|
9
10
|
const decode = defineIslandPropsDecoder("newsletter-form");
|
|
10
|
-
function snapshotFormValues(form) {
|
|
11
|
-
if (!form) return [];
|
|
12
|
-
const snapshots = [];
|
|
13
|
-
const elements = Array.from(form.elements);
|
|
14
|
-
for (const el of elements) {
|
|
15
|
-
if (!(el instanceof HTMLInputElement || el instanceof HTMLTextAreaElement)) continue;
|
|
16
|
-
const name = el.name;
|
|
17
|
-
if (!name) continue;
|
|
18
|
-
snapshots.push({
|
|
19
|
-
name,
|
|
20
|
-
value: el.value
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
return snapshots;
|
|
24
|
-
}
|
|
25
|
-
function applySnapshots(form, snapshots) {
|
|
26
|
-
if (!form) return;
|
|
27
|
-
for (const snapshot of snapshots) {
|
|
28
|
-
const el = form.elements.namedItem(snapshot.name);
|
|
29
|
-
if (el instanceof HTMLInputElement || el instanceof HTMLTextAreaElement) el.value = snapshot.value;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
11
|
const enhance = (root, props) => {
|
|
33
12
|
const { siteId, apiBaseUrl } = props;
|
|
34
13
|
if (!siteId) throw new Error("[sdk:islands] newsletter-form requires siteId");
|
|
@@ -42,7 +21,7 @@ const enhance = (root, props) => {
|
|
|
42
21
|
return mountReactIsland(root, /* @__PURE__ */ jsx(BlockApiProvider, {
|
|
43
22
|
config: apiConfig,
|
|
44
23
|
children: /* @__PURE__ */ jsx(NewsletterFormClient, { ...props })
|
|
45
|
-
}), { handover: (mount) =>
|
|
24
|
+
}), { handover: (mount) => restoreForm(mount.querySelector("form"), snapshotForm(fallbackForm)) });
|
|
46
25
|
};
|
|
47
26
|
//#endregion
|
|
48
27
|
export { decode, enhance };
|