@riverbankcms/sdk 0.184.0 → 0.185.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_dts/{BlocksIslandsHydrator-DjBTJYiF.d.ts → BlocksIslandsHydrator-Bu0O7l4p.d.ts} +1 -1
- package/dist/_dts/{Page-BpXEM2ET.d.ts → Page-DYoL0IWL.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-Bb3h7KRE.d.ts → SdkPreviewMode-DgFAiR8r.d.ts} +2 -2
- package/dist/_dts/{client-DgTRRtl_.d.ts → client-BKdjJ7A0.d.ts} +23 -4
- package/dist/_dts/{content-types-DZQJp_ak.d.ts → content-types-6K7zlJuF.d.ts} +2 -2
- package/dist/_dts/{contracts-Ww1fmd-c.d.ts → contracts-CUR8ccnX.d.ts} +3 -3
- package/dist/_dts/{generatePageMetadata-BGc7dju6.d.ts → generatePageMetadata-CveWSMew.d.ts} +2 -2
- package/dist/_dts/{index-Cni4jykw.d.ts → index-6WypKfbu.d.ts} +4 -4
- package/dist/_dts/{index-ukS-Ffem.d.ts → index-BMwrFX_K.d.ts} +1 -1
- package/dist/_dts/{index-W9-7djG3.d.ts → index-Bp5lk6I8.d.ts} +1 -1
- package/dist/_dts/{index-Cc85KVLW.d.ts → index-DTKn1H8g.d.ts} +1 -1
- package/dist/_dts/{index-DxxTQ_0V.d.ts → index-DX-Xe54X.d.ts} +2 -2
- package/dist/_dts/{index-BECaUNYs.d.ts → index-SD1fTP_7.d.ts} +2 -2
- package/dist/_dts/{loadContent-BlSWTlbD.d.ts → loadContent-BN8GtRsL.d.ts} +7 -7
- package/dist/_dts/{request-CZz2BoXJ.d.ts → request-BwYvMqLf.d.ts} +459 -109
- package/dist/_dts/{resolveBlockData-D12HXnS3.d.ts → resolveBlockData-CYy0VlSK.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-BteMsSGP.d.ts → resolvePageContent-BwUDLi_W.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 +1 -1
- package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
- package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
- package/dist/_dts/sdk/src/routing/index.d.ts +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 +1 -1
- package/dist/_dts/{serviceBookingOutline-aTlOvO3U.d.ts → serviceBookingOutline-CMNev0gz.d.ts} +10 -7
- package/dist/_dts/{types-CCcQlRBi.d.ts → types-BBazdRQf.d.ts} +3 -3
- package/dist/_dts/{types-Du4aMnWC.d.ts → types-BwngWRQ8.d.ts} +7 -7
- package/dist/_dts/{types-Bi7R07RX.d.ts → types-C9_amrul.d.ts} +2 -2
- package/dist/_dts/{validation-CjCWVmwe.d.ts → validation-B58kUTuV.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-CFLWxjxR.mjs → BlocksIslandsHydrator-CooOPhs3.mjs} +17 -17
- package/dist/client/{BookingMailingListNote-C4LcfwyA.mjs → BookingMailingListNote-D_khdttF.mjs} +59 -60
- package/dist/client/{BookingQuestionFields-DdcmoHqQ.mjs → BookingQuestionFields-Bia1E7Cj.mjs} +48 -35
- package/dist/client/{CalendarAction-DYGewmvh.mjs → CalendarAction-C-AbMmct.mjs} +1 -1
- package/dist/client/{CalendarNavigationChevron-ZfrUiiiI.mjs → CalendarNavigationChevron-oaHxRbUO.mjs} +6 -6
- package/dist/client/{DemoBookingPortalAccess-pzkGVkgG.mjs → DemoBookingPortalAccess-M2xKYQjX.mjs} +4 -4
- package/dist/client/{EventCalendar.client-Ct1B3xI4.mjs → EventCalendar.client-By7e9nyF.mjs} +10 -10
- package/dist/client/{EventCombined.client-DgfNtcgW.mjs → EventCombined.client-BdRZXB14.mjs} +9 -9
- package/dist/client/EventEmbeddedCheckoutStep-CJoxbx2Y.mjs +147 -0
- package/dist/client/{EventItem-KGKkK19N.mjs → EventItem-CDMa9zOX.mjs} +4 -4
- package/dist/client/{EventListWeekNavigation-Ba9ezxuC.mjs → EventListWeekNavigation-B8WKaCrN.mjs} +1 -1
- package/dist/client/{EventListing.client-xFKRDLwC.mjs → EventListing.client-BEGiiFnO.mjs} +3 -3
- package/dist/client/{EventListing.view-Dy36vWHi.mjs → EventListing.view-B6LOK-z4.mjs} +5 -5
- package/dist/client/{EventRegistrationPayment-Dth9L00x.mjs → EventRegistrationPayment-CARdr15t.mjs} +44 -35
- package/dist/client/{Page-DB5KODiu.mjs → Page-uP7AKSyp.mjs} +37 -30
- package/dist/client/SiteChoiceGroup-BZ5I0Vhy.mjs +96 -0
- package/dist/client/{SiteTermsAgreementField-BDVP_HeK.mjs → SiteTermsAgreementField-BDqRo2C5.mjs} +2 -2
- package/dist/client/{StepIndicator-CLgDVzCs.mjs → StepIndicator-BWrXAKvs.mjs} +1 -1
- package/dist/client/{StepIndicator-DRyZ8igu.mjs → StepIndicator-Cb3NMw-Y.mjs} +29 -17
- package/dist/client/{accessibleSurfaces-CqroimVQ.mjs → accessibleSurfaces-q-dDOwsW.mjs} +5 -3
- package/dist/client/{accordion-BQYRP5xV.mjs → accordion-BYW2YSUN.mjs} +1 -1
- package/dist/client/{booking-form.client-B7ckDuOC.mjs → booking-form.client-DAlWWWjV.mjs} +108 -70
- package/dist/client/{bookingCalendar--aWnqFDn.mjs → bookingCalendar-9nFa_do4.mjs} +6 -2
- package/dist/client/{bookingForm-BeD4650p.mjs → bookingForm-DtVk9p5l.mjs} +4 -4
- package/dist/client/bookings.mjs +5 -5
- package/dist/client/{boxStyleClassNames-CA7FirMH.mjs → boxStyleClassNames-CaSq3-r-.mjs} +2 -2
- package/dist/client/{EventEmbeddedCheckoutStep-CjoaG1zy.mjs → browserStripe-Dh-LcDoW.mjs} +36 -142
- package/dist/client/{carousel-DJ9Aa1m3.mjs → carousel-msur7fxW.mjs} +1 -1
- package/dist/client/{cart-DdCenbTy.mjs → cart-Bx-JuY2n.mjs} +3 -3
- package/dist/client/{cart.client-BQm06qNw.mjs → cart.client-hB_9MimN.mjs} +1 -1
- package/dist/client/{checkout-45wPQULN.mjs → checkout-BVWZn5Qu.mjs} +3 -3
- package/dist/client/{checkout.client-bSv4cc5z.mjs → checkout.client-Bt_GtHW9.mjs} +1 -1
- package/dist/client/{checkoutUrls-CwlaMl3W.mjs → checkoutUrls-CP-rQOZV.mjs} +1 -1
- package/dist/client/client.mjs +43 -18
- package/dist/client/{constants-DXV4KR7l.mjs → constants-yA1RJGXD.mjs} +1 -1
- package/dist/client/{context-lCPfX-xe.mjs → context-CG77Keax.mjs} +30 -3
- package/dist/client/{dateFormatting-HvfmS_cH.mjs → dateFormatting-DIRIgfYr.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-Ce3Gyin_.mjs → demoPortalMagicLink-CgzNiOQ0.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-CGcDE9aE.mjs → enhanceHeaderSection-DgzZNM2M.mjs} +3 -3
- package/dist/client/{event-registration.client-DlPfn4YG.mjs → event-registration.client-Ckb4aDE9.mjs} +79 -58
- package/dist/client/{eventCalendar-CioAdryV.mjs → eventCalendar-lqqQSzBQ.mjs} +4 -4
- package/dist/client/{eventCombined-Dwt0G6ez.mjs → eventCombined-BIMyHrd-.mjs} +4 -4
- package/dist/client/{eventListing-B3H9ifOC.mjs → eventListing-CBYxfvNf.mjs} +4 -4
- package/dist/client/{eventRegistration-Do7cAhXb.mjs → eventRegistration-BhAqvkCb.mjs} +4 -4
- package/dist/client/{form-CsqzgC6v.mjs → form-CkOfk-Eb.mjs} +3 -3
- package/dist/client/{form.client-DVDB7hY6.mjs → form.client-Whi43oio.mjs} +4 -4
- package/dist/client/{form.parts-1q2rzSYt.mjs → form.parts-BgsWo2Me.mjs} +1 -1
- package/dist/client/gifting/client.mjs +7 -7
- package/dist/client/{gifting-BrXQGX-k.mjs → gifting-XtNpLcFI.mjs} +4 -4
- package/dist/client/{gifting.client--zAjnY5N.mjs → gifting.client-CraWj4I4.mjs} +173 -71
- package/dist/client/{gifting.interactive-CrwHpUJG.mjs → gifting.interactive-DiPDObN0.mjs} +3 -2
- package/dist/client/{gifting.parts-CcKdDaQq.mjs → gifting.parts-_mgGOcbA.mjs} +12 -43
- package/dist/client/{headerSection-DlcDH4bi.mjs → headerSection-CPIN3VSU.mjs} +2 -2
- package/dist/client/{islands-dMh0Oxli.mjs → islands-C95FyxUF.mjs} +11 -9
- package/dist/client/{newsletter-form.client-BxA1PsdS.mjs → newsletter-form.client-BgVJdKVe.mjs} +6 -6
- package/dist/client/{newsletter-form.interactive-D0iRg7p2.mjs → newsletter-form.interactive-DpcfRbI_.mjs} +35 -15
- package/dist/client/{newsletter-form.parts-Dmuklz0r.mjs → newsletter-form.parts-poPgHrUh.mjs} +1 -1
- package/dist/client/{newsletterForm-CBzvgIfg.mjs → newsletterForm-Dt6wFjTe.mjs} +3 -3
- package/dist/client/portal/client.mjs +978 -72
- package/dist/client/{portalOrders-tCxS04g0.mjs → portalOrders-CAfjTyV9.mjs} +1 -1
- package/dist/client/{portalRoutes-DiGibcZI.mjs → portalRoutes-D3Ttfv5x.mjs} +48 -13
- package/dist/client/presentation-CudSUZ6Q.mjs +169 -0
- package/dist/client/{product-detail.client-D9MP8hvH.mjs → product-detail.client-BrBNT7Mq.mjs} +1 -1
- package/dist/client/{product-list.client-wCz1qcUY.mjs → product-list.client-CftTl7n6.mjs} +1 -1
- package/dist/client/{productDetail-D9-fCY6c.mjs → productDetail-b1tpt585.mjs} +3 -3
- package/dist/client/{productList-PJyxXSac.mjs → productList-DRT5sabi.mjs} +3 -3
- package/dist/client/{propsDecoder-B8lrKGPw.mjs → propsDecoder-Co1VXFaW.mjs} +4 -4
- package/dist/client/{registry.server-CI63JVHW.mjs → registry.server-0UDNY7dO.mjs} +185 -224
- package/dist/client/rendering/client.mjs +23 -23
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +5 -5
- package/dist/client/{richText-coerce-Jt9hDHdh.mjs → richText-coerce-BFDEPZZA.mjs} +2 -2
- package/dist/client/{routeIslandApiConfig-ZSPcJWx1.mjs → routeIslandApiConfig-DtqRutuX.mjs} +1 -1
- package/dist/client/{runtimeResponse-_iW9oEYc.mjs → runtimeResponse-DBVXbcuz.mjs} +1 -1
- package/dist/client/runtimeResponse-LQnQdtNI.mjs +3 -0
- package/dist/client/{shop-CbdJlWOw.mjs → shop-DL3CYR7i.mjs} +3 -3
- package/dist/client/{shop-commerce-BqLbzUUn.mjs → shop-commerce-CDth2_qq.mjs} +13 -13
- package/dist/client/{shop-commerce-store-BT0-zRqN.mjs → shop-commerce-store-CE0aaSHJ.mjs} +1 -1
- package/dist/client/{shop-discount-apply.state-Cws0lnSb.mjs → shop-discount-apply.state-p4aXtVsF.mjs} +2 -2
- package/dist/client/{shop.client-0cNErhJT.mjs → shop.client-BI2iw6Z3.mjs} +56 -21
- package/dist/client/{shopShared-COuQ2MhQ.mjs → shopShared-BNWzgWAC.mjs} +2 -2
- package/dist/client/{src-Do_s2lqH.mjs → src-CJf3u16T.mjs} +1 -1
- package/dist/{preview-next/client/src-lX6heoDA.mjs → client/src-CMuv8vSO.mjs} +5 -1
- package/dist/client/src-CXOxpNtj.mjs +3 -0
- package/dist/client/{timetableModel-DqI6U1BS.mjs → timetableModel-DZzGD6rS.mjs} +8 -8
- package/dist/client/{useAutomaticDiscountPreview-CeVUVzGf.mjs → useAutomaticDiscountPreview-CJDylOUe.mjs} +1 -1
- package/dist/client/{useAvailableSlots-B0mjVhZr.mjs → useAvailableSlots-nD6nuvSW.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-B_hfgdAP.mjs → useDiscountCodeUi-DMtTHqex.mjs} +1 -1
- package/dist/client/{useEventPagination-Ct4A6iR1.mjs → useEventPagination-CM-DCokc.mjs} +7 -7
- package/dist/client/{view-Cj151w4m.mjs → view-CHOhliHv.mjs} +3 -3
- package/dist/client/{wizardSteps-B3gsXNnb.mjs → wizardSteps-BbroaNkT.mjs} +68 -22
- package/dist/preview-next/client/{PageSectionToolbar-Dv4CW0AQ.mjs → PageSectionToolbar-CR99z8BL.mjs} +3 -3
- package/dist/preview-next/client/{PreviewEditorSidebar-B7WW58uE.mjs → PreviewEditorSidebar-BaKS6H8F.mjs} +6 -6
- package/dist/preview-next/client/{PreviewEditorUI-BnJ1ughv.mjs → PreviewEditorUI-D6IG119o.mjs} +4 -4
- package/dist/preview-next/client/{PreviewShell-C7qWzAe4.mjs → PreviewShell-CKjkFOZS.mjs} +5 -5
- package/dist/preview-next/client/{SdkPreviewModeRuntime-CYi4UHtG.mjs → SdkPreviewModeRuntime-BexDQWGj.mjs} +4 -4
- package/dist/preview-next/client/{previewAssistantSlot-DrUoRNu9.mjs → previewAssistantSlot-DcEwU9l_.mjs} +977 -505
- package/dist/preview-next/client/{previewChromeRoot-CEYp90mM.mjs → previewChromeRoot-VqseF0yf.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-DnO2_c0A.mjs → sdk-runtime-DcoVpKUf.mjs} +2 -2
- package/dist/preview-next/client/{siteStyleAccess-B3PwHw2z.mjs → siteStyleAccess-BL1fZnUD.mjs} +1 -1
- package/dist/{client/src-uwCpbHXG.mjs → preview-next/client/src-B5x3r4cg.mjs} +5 -1
- package/dist/preview-next/client/src-CrT7h--V.mjs +3 -0
- package/dist/preview-next/client/{useAutosaveStatus-DrdQ4ier.mjs → useAutosaveStatus-CdFnzKac.mjs} +2 -2
- package/dist/preview-next/client/{useOpenBlockForSetup-kuGRKaRL.mjs → useOpenBlockForSetup-B62h7dhR.mjs} +1 -1
- package/dist/preview-next/container-responsive.css +8 -0
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-CwrXkLT3.mjs → route-contract-CQfEvfbg.mjs} +38 -13
- package/dist/server/{Block.shared-C5ucphCJ.mjs → Block.shared-CbGnxkWX.mjs} +5 -5
- package/dist/server/{ThemeScopeCore-DvbqYXdK.mjs → ThemeScopeCore-BjxlpVaV.mjs} +5 -5
- package/dist/server/{accessibleSurfaces-CAcf1lHT.mjs → accessibleSurfaces-CZ7pLuJ7.mjs} +2 -2
- package/dist/server/{accordions-DjcsqjCK.mjs → accordions-C_C52VkS.mjs} +1 -1
- package/dist/server/{bindings-CFw4M-gZ.mjs → bindings-D-n66Oqc.mjs} +5 -5
- package/dist/server/{client-D0XCgITW.mjs → client-BGGlrkft.mjs} +41 -16
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/{constants-BZduY8jG.mjs → constants-TkO9Uxma.mjs} +45 -10
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-C-qyB8Tq.mjs → loadContent-8H1hHdXo.mjs} +4 -4
- package/dist/server/{loadPage-BpKKmi8E.mjs → loadPage-BZyqF_g3.mjs} +3 -3
- package/dist/server/{lookMediaFrame-EFws7tAj.mjs → lookMediaFrame-Dw6R9B0L.mjs} +13 -11
- package/dist/server/manifest.mjs +2 -2
- package/dist/server/{navigation-DYkuiNXa.mjs → navigation-9TOyY5Zf.mjs} +1 -1
- package/dist/server/navigation.mjs +1 -1
- package/dist/server/next.mjs +9 -9
- package/dist/server/{overrideResolution-DmZn4xUE.mjs → overrideResolution-CuduOS6V.mjs} +1 -1
- package/dist/server/page-converter.mjs +3 -3
- package/dist/server/{pageRenderPlan-DRB7cUZ0.mjs → pageRenderPlan-DmP0HVMu.mjs} +30 -8
- package/dist/server/{pageRuntimeSupport-Uv1xDieJ.mjs → pageRuntimeSupport-BQ1dWs1V.mjs} +3 -3
- package/dist/server/{pageShared-BdQF875z.mjs → pageShared-ALu7y5Dq.mjs} +272 -165
- package/dist/server/{parseThemeForPersistence-CwcWZL7u.mjs → parseThemeForPersistence-D_8I28BB.mjs} +3 -3
- package/dist/server/{portal-BQ8qiQnk.mjs → portal-P4oHSRho.mjs} +2 -1
- package/dist/server/portal.mjs +2 -2
- package/dist/server/{prebuild-B51QZVNe.mjs → prebuild-BLL6RhjS.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-CppDAfJW.mjs → prefetchBlockData-aR5W1dVF.mjs} +3 -3
- package/dist/server/{registry-Bf4W8Qa7.mjs → registry-DD_s7l3Y.mjs} +82 -33
- 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-DMHAZooQ.mjs → resolveBlockData-DnQ2N0lI.mjs} +2 -2
- package/dist/server/{resolveButtonColourStates-BMtAAPzp.mjs → resolveButtonColourStates-ChlP4NJ9.mjs} +1 -1
- package/dist/server/{responseMedia-DKYfR518.mjs → responseMedia-D6F1tvIm.mjs} +1 -1
- package/dist/server/{schema-DGaihVwp.mjs → schema-ClDfFtz2.mjs} +3 -3
- package/dist/server/server.mjs +3 -3
- package/dist/server/{servicePageContent-CRvmreX7.mjs → servicePageContent-CsUerbJ1.mjs} +14 -12
- package/dist/server/theme-bridge.mjs +3 -3
- package/dist/server/theme.mjs +2 -2
- package/dist/server/{three-pass-converter-mcy2E1Yd.mjs → three-pass-converter-CLJrZb7s.mjs} +1 -1
- package/dist/server/{titleSourceSchema-B2qFOUwZ.mjs → titleSourceSchema-DA_iErtG.mjs} +2 -2
- package/dist/server/{types-C_S0pWbR.mjs → types-CcKy8_tj.mjs} +5 -3
- package/dist/server/{validation-CUtNT_EZ.mjs → validation-BbImAsVs.mjs} +5 -5
- package/dist/server/{version-DebJQ4zn.mjs → version-BY48jPoe.mjs} +1 -1
- package/dist/styles/index.css +192 -134
- package/package.json +1 -1
- package/dist/client/appointment-service-categories-Cl2pqw-z.mjs +0 -70
- package/dist/client/runtimeResponse-DlPBWBd9.mjs +0 -3
- package/dist/client/src-DqMbCjI1.mjs +0 -3
- package/dist/preview-next/client/src-EO5QoRlU.mjs +0 -3
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { C as resolveEventRegistrationEventSource, M as
|
|
3
|
-
import { Cn as toUtcIsoDateTimeString, nn as formatDate } from "./src-
|
|
4
|
-
import {
|
|
5
|
-
import { h as assertNever } from "./bookingCalendar
|
|
6
|
-
import { r as boxStyleClassNames } from "./boxStyleClassNames-
|
|
2
|
+
import { C as resolveEventRegistrationEventSource, M as cancelledRegistrationCopy, N as cancelledRunsCopy } from "./newsletter-form.interactive-DpcfRbI_.mjs";
|
|
3
|
+
import { Cn as toUtcIsoDateTimeString, nn as formatDate } from "./src-CJf3u16T.mjs";
|
|
4
|
+
import { Ai as planWholeSeriesRunSelection, Ci as getPublicEventCanonicalPath, Co as isInBookingCutOffWindow, Di as planOrdinarySeriesSelection, Ei as planDropInPanel, Ho as eventDateOptions, Mi as resolveSelectionBookingClosedDetail, Ni as selectionRepresentativeEvent, Oi as planWholeSeriesParentBooking, Si as eventOccurrenceContext, Ti as isOrdinaryPublicEvent, _i as cutOffDateCopy, fi as closedDateListCopy, gi as closedDateCopy, hi as bookElsewhereDateCopy, ic as resolveWholeSeriesBookingPhase, ki as planWholeSeriesParentSelection, mi as closedRunCopy, pi as closedDatesCopy, rc as orderedLiveRunSessions, uo as bookingPresentation, xi as resolveEventRegistrationScopedEvents, yi as normalizeEventRegistrationPageSurfaceSubject } from "./wizardSteps-BbroaNkT.mjs";
|
|
5
|
+
import { h as assertNever } from "./bookingCalendar-9nFa_do4.mjs";
|
|
6
|
+
import { r as boxStyleClassNames } from "./boxStyleClassNames-CaSq3-r-.mjs";
|
|
7
7
|
import { n as ThemedButton, r as ThemedButtonLink } from "./ThemedButton-C4rCsPCt.mjs";
|
|
8
|
-
import { t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-
|
|
9
|
-
import { n as BookingPanelArrangement, t as StepIndicator$1 } from "./StepIndicator-
|
|
8
|
+
import { t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-yA1RJGXD.mjs";
|
|
9
|
+
import { n as BookingPanelArrangement, t as StepIndicator$1 } from "./StepIndicator-BWrXAKvs.mjs";
|
|
10
10
|
import React from "react";
|
|
11
11
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
12
12
|
//#region ../blocks/src/system/blocks/events/shared/bookedElsewhere.ts
|
|
@@ -162,10 +162,10 @@ function EventBookingPanelBody({ panel }) {
|
|
|
162
162
|
className: "event-booking-panel__cancelled",
|
|
163
163
|
children: [/* @__PURE__ */ jsx("h2", {
|
|
164
164
|
className: "card-title rb-mb-3",
|
|
165
|
-
children:
|
|
165
|
+
children: panel.copy.titleText
|
|
166
166
|
}), /* @__PURE__ */ jsx("p", {
|
|
167
167
|
className: "status-muted rb-text-base rb-leading-relaxed",
|
|
168
|
-
children:
|
|
168
|
+
children: panel.copy.bodyText
|
|
169
169
|
})]
|
|
170
170
|
});
|
|
171
171
|
case "bookElsewhere": return /* @__PURE__ */ jsx("div", {
|
|
@@ -415,9 +415,11 @@ function selectOccurrenceForPanel(events, occurrenceId) {
|
|
|
415
415
|
} : null;
|
|
416
416
|
}
|
|
417
417
|
function planEventBookingPanel({ selection, subject, pageEvents }, now) {
|
|
418
|
-
|
|
418
|
+
const cancelled = cancelledDateSelectionCopy(selection);
|
|
419
|
+
if (cancelled) return {
|
|
419
420
|
kind: "cancelled",
|
|
420
|
-
registration: null
|
|
421
|
+
registration: null,
|
|
422
|
+
copy: cancelled
|
|
421
423
|
};
|
|
422
424
|
const elsewhere = planBookElsewherePanel(selection, now);
|
|
423
425
|
if (elsewhere) return elsewhere;
|
|
@@ -451,12 +453,22 @@ function planEventBookingPanel({ selection, subject, pageEvents }, now) {
|
|
|
451
453
|
registration
|
|
452
454
|
};
|
|
453
455
|
}
|
|
454
|
-
case "wholeSeriesParentUnavailable": return
|
|
455
|
-
...nonBookingPanel ?? { kind: "unavailable" },
|
|
456
|
-
registration: parentRegistrationTarget(selection, subject)
|
|
457
|
-
};
|
|
456
|
+
case "wholeSeriesParentUnavailable": return unavailableParentPanel(selection, parentRegistrationTarget(selection, subject), nonBookingPanel);
|
|
458
457
|
}
|
|
459
458
|
}
|
|
459
|
+
/** A course with nothing to book: cancelled when every run is, otherwise why it can't be booked. */
|
|
460
|
+
function unavailableParentPanel(selection, registration, nonBookingPanel) {
|
|
461
|
+
const cancelledRuns = cancelledRunsCopy(selection.admittedRuns.map((run) => run.representative));
|
|
462
|
+
if (cancelledRuns) return {
|
|
463
|
+
kind: "cancelled",
|
|
464
|
+
copy: cancelledRuns,
|
|
465
|
+
registration
|
|
466
|
+
};
|
|
467
|
+
return {
|
|
468
|
+
...nonBookingPanel ?? { kind: "unavailable" },
|
|
469
|
+
registration
|
|
470
|
+
};
|
|
471
|
+
}
|
|
460
472
|
/**
|
|
461
473
|
* A date past its cut-off, however old the page's data is. A list of dates only
|
|
462
474
|
* closes when every date has: until then the closed ones just leave the list.
|
|
@@ -572,8 +584,8 @@ function parentRegistrationTarget(selection, subject) {
|
|
|
572
584
|
};
|
|
573
585
|
}
|
|
574
586
|
/** Cancelled dates have no new-booking or recovery form, including old direct links. */
|
|
575
|
-
function
|
|
576
|
-
return selection.kind === "occurrence"
|
|
587
|
+
function cancelledDateSelectionCopy(selection) {
|
|
588
|
+
return selection.kind === "occurrence" ? cancelledRegistrationCopy([selection.event]) : null;
|
|
577
589
|
}
|
|
578
590
|
//#endregion
|
|
579
591
|
//#region ../blocks/src/system/runtime/nodes/event-registration/RegistrationClosedState.tsx
|
|
@@ -744,13 +744,14 @@ function requireSurfaceColorValue(role, value) {
|
|
|
744
744
|
function completeSurfaceForegrounds(input) {
|
|
745
745
|
const text = requireSurfaceColorValue("text", input.text);
|
|
746
746
|
const link = input.link === void 0 ? text : requireSurfaceColorValue("link", input.link);
|
|
747
|
+
const supporting = input.supporting === void 0 ? text : requireSurfaceColorValue("supporting", input.supporting);
|
|
747
748
|
return {
|
|
748
749
|
text,
|
|
749
750
|
heading: input.heading === void 0 ? text : requireSurfaceColorValue("heading", input.heading),
|
|
750
751
|
link,
|
|
751
752
|
linkHover: input.linkHover === void 0 ? link : requireSurfaceColorValue("linkHover", input.linkHover),
|
|
752
|
-
muted: input.muted === void 0 ?
|
|
753
|
-
supporting
|
|
753
|
+
muted: input.muted === void 0 ? supporting : requireSurfaceColorValue("muted", input.muted),
|
|
754
|
+
supporting
|
|
754
755
|
};
|
|
755
756
|
}
|
|
756
757
|
function surfaceForegroundValue(role, outsideProviderFallback = DEFAULT_ROLE_FALLBACKS[role]) {
|
|
@@ -816,7 +817,7 @@ function surfaceForegroundStyle(input) {
|
|
|
816
817
|
[SURFACE_FOREGROUND_CSS_VARS.link]: foregrounds.link,
|
|
817
818
|
[SURFACE_FOREGROUND_CSS_VARS.linkHover]: foregrounds.linkHover,
|
|
818
819
|
[SURFACE_FOREGROUND_CSS_VARS.supporting]: foregrounds.supporting,
|
|
819
|
-
|
|
820
|
+
[SURFACE_FOREGROUND_CSS_VARS.muted]: foregrounds.muted,
|
|
820
821
|
"--rb-surface-link-hover-decoration": hoverDecoration(input)
|
|
821
822
|
};
|
|
822
823
|
}
|
|
@@ -835,6 +836,7 @@ function surfaceForegroundInputFromResolved(foreground, color) {
|
|
|
835
836
|
link: value(roles.link),
|
|
836
837
|
linkHover: value(roles.linkHover),
|
|
837
838
|
supporting: value(roles.supporting),
|
|
839
|
+
muted: value(roles.muted),
|
|
838
840
|
hoverDecoration: foreground.hoverDecoration
|
|
839
841
|
};
|
|
840
842
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
2
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-Co1VXFaW.mjs";
|
|
3
3
|
//#region src/rendering/islands/enhancers/accordion.ts
|
|
4
4
|
const decode = defineIslandPropsDecoder("accordion");
|
|
5
5
|
function parseDefaultValues(value) {
|
|
@@ -1,27 +1,28 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { An as formatCurrencyAmount, Cn as toUtcIsoDateTimeString, D as isBookingRequirementConsentFieldId, Fn as unsafeAsAppointmentResourceId, In as unsafeAsAppointmentServiceId, Sn as parseUtcIsoDateTimeString, Tn as resolveBookingTimeZoneId, Zt as hasText, a as clearWorkflowFeedback, an as formatDateTimeRange, cn as formatTime, dn as inferSiteDateLocale, fn as resolveBookingDisplayContext, i as okWith, n as err, nn as formatDate, o as reportWorkflowError, s as reportWorkflowSuccess, t as assertNever, un as formatTimeZoneCityLabel, wn as resolveBookingBusinessTimeZone } from "./src-
|
|
3
|
-
import { $i as
|
|
4
|
-
import {
|
|
5
|
-
import { c as checkBookingQuestionsAnswered, h as assertNever$1 } from "./bookingCalendar
|
|
6
|
-
import { i as useSiteTermsAgreement, n as SiteTermsChangedNotice, t as SiteTermsAgreementField } from "./SiteTermsAgreementField-
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { i as BlockApiError, n as useBlockApi, t as BlockApiProvider } from "./context-
|
|
10
|
-
import { c as logger } from "./islands-
|
|
2
|
+
import { An as formatCurrencyAmount, Cn as toUtcIsoDateTimeString, D as isBookingRequirementConsentFieldId, Fn as unsafeAsAppointmentResourceId, In as unsafeAsAppointmentServiceId, Mn as parseAppointmentId, Sn as parseUtcIsoDateTimeString, Tn as resolveBookingTimeZoneId, Zt as hasText, a as clearWorkflowFeedback, an as formatDateTimeRange, cn as formatTime, dn as inferSiteDateLocale, fn as resolveBookingDisplayContext, i as okWith, n as err, nn as formatDate, o as reportWorkflowError, s as reportWorkflowSuccess, t as assertNever, un as formatTimeZoneCityLabel, wn as resolveBookingBusinessTimeZone } from "./src-CJf3u16T.mjs";
|
|
3
|
+
import { $i as resolveBookingSiteId, $s as formatCreditProductPayment, Aa as applyBookingPaymentAdmission, Ba as resolveBookingPaymentMode, Bi as getBookingRedirectStateFromLocation, Ca as toBookingQuestionsAnswerDraft, Ea as formatCentsAsCurrencyInput, Fa as reconcileBookingPackagePurchase, Fr as createSignInReturnDraftStore, Gi as isSameOpenCheckout, Ha as toBookingPurchasablePackages, Ia as resolveBookingPackagePaymentSelection, Ii as buildBookingFormInteractiveIslandProps, Ji as parseBookingCurrencyInputToCents, Ki as normalizeBookingFormConfig, La as resolveBookingPackageSources, Li as readOverrideServiceCategories, Ma as bookingPackagePurchaseId, Na as bookingPackageRequestKey, Ns as readRuntimeNow, Oa as BOOKING_FORM_DATA_RESERVED_KEYS, Pa as bookingRequiresResourceSelection, Ps as resolveDateRuntimeContext, Qi as resolveBookingSelectedService, Qr as formatCommercePrice, Qs as formatCreditProductBalance, Ra as resolveBookingPaymentAvailability, Ri as deriveBookingFormViewState, Sa as restoreBookingQuestionsAnswers, Ta as toBookingQuestionsTabDraft, Ua as getBookingServiceSlidingScale, Va as resolveBookingPurchasablePackages, Vi as getBookingSuccessCopy, Wi as isBookingServiceSlidingAmountInRange, Xi as resolveAppointmentCheckoutVerificationState, Xs as repriceBookingCollectionOptions, Yi as prepareBookingSubmission, Zi as resolveBookingPaymentStep, _a as bookingQuestionsTabDraftSchema, _t as createBookingBrowserDraftStore, aa as projectSelectedAppointmentConsentIntoForm, ba as isBookingQuestionsOwner, ca as applyAppointmentBookingQuestionsEvent, cc as resolveBookingSignupOffer, ct as onlineBookingUnavailableMessage, da as isAppointmentBookingQuestionsEvent, dt as buildReviewedBookingPaymentViewModel, ea as resolveDefaultBookingServiceId, ec as formatCreditProductUnits, ei as formatValidity, fa as needsAppointmentQuestionsRefresh, ft as paymentChoiceDetails, ga as bookingQuestionsOwnerSchema, ha as bookingQuestionsOwnerOf, hr as isEmailAddress, ia as toSelectedCollectionOptionKind, ja as bookingHasPackagePaymentChoices, kc as unsafeAsSiteId, la as appointmentQuestionsRefusal, ma as bookingQuestionsAnswerDraftSchema, na as selectedBookingCollectionOptionKind, oa as resolveSelectedAppointmentConsent, oo as leavePage, pa as resolveSelectedAppointmentQuestions, pt as paymentChoicePrice, qi as normalizeBookingServices, ra as snapshotBookingShownTerms, sa as EMPTY_APPOINTMENT_BOOKING_QUESTIONS, ta as resolveLowestBookingPaymentStep, ua as deriveAppointmentBookingQuestions, uo as bookingPresentation, ut as buildBookingPaymentSelectionViewModel, va as decideBookingQuestionsRestoration, za as resolveBookingPaymentChoice, zi as formatBookingSubmissionPreparationError } from "./wizardSteps-BbroaNkT.mjs";
|
|
4
|
+
import { m as unsafeAsPassId, p as unsafeAsCustomerPassId } from "./portalRoutes-D3Ttfv5x.mjs";
|
|
5
|
+
import { c as checkBookingQuestionsAnswered, h as assertNever$1 } from "./bookingCalendar-9nFa_do4.mjs";
|
|
6
|
+
import { i as useSiteTermsAgreement, n as SiteTermsChangedNotice, t as SiteTermsAgreementField } from "./SiteTermsAgreementField-BDqRo2C5.mjs";
|
|
7
|
+
import { o as layoutServicesByCategory, r as formatAppointmentPrice } from "./presentation-CudSUZ6Q.mjs";
|
|
8
|
+
import { c as clientPersonPhrases, i as OptionalMark, o as isFieldsetQuestion, r as BookingQuestionFrame } from "./BookingQuestionFields-Bia1E7Cj.mjs";
|
|
9
|
+
import { i as BlockApiError, n as useBlockApi, t as BlockApiProvider } from "./context-CG77Keax.mjs";
|
|
10
|
+
import { c as logger } from "./islands-C95FyxUF.mjs";
|
|
11
11
|
import { D as SpinnerNode, n as ThemedButton } from "./ThemedButton-C4rCsPCt.mjs";
|
|
12
|
-
import { n as BookingPanelArrangement, t as StepIndicator } from "./StepIndicator-
|
|
13
|
-
import { i as discountEmailProblem, m as DiscountCodeDisclosure, p as NavigationHandOffPanel, r as DISCOUNT_APPLY_MESSAGES, t as BookingConfirmation } from "./DemoBookingPortalAccess-
|
|
14
|
-
import { t as buildCheckoutReturnUrls } from "./checkoutUrls-
|
|
12
|
+
import { n as BookingPanelArrangement, t as StepIndicator } from "./StepIndicator-BWrXAKvs.mjs";
|
|
13
|
+
import { i as discountEmailProblem, m as DiscountCodeDisclosure, p as NavigationHandOffPanel, r as DISCOUNT_APPLY_MESSAGES, t as BookingConfirmation } from "./DemoBookingPortalAccess-M2xKYQjX.mjs";
|
|
14
|
+
import { t as buildCheckoutReturnUrls } from "./checkoutUrls-CP-rQOZV.mjs";
|
|
15
15
|
import { t as scrollToBlock } from "./scrollToBlock-DrgKE0qZ.mjs";
|
|
16
16
|
import { t as CheckboxChoice } from "./CheckboxChoice-CTMIII37.mjs";
|
|
17
17
|
import { t as CheckIcon } from "./CheckIcon-CVcKteXH.mjs";
|
|
18
18
|
import { n as getFieldValidationControlProps, t as FieldValidationMessage } from "./FieldValidationMessage-CsqxShw4.mjs";
|
|
19
19
|
import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
|
|
20
|
-
import { c as
|
|
21
|
-
import { n as TerminalPanel, r as StateIcon, t as useDiscountCodeUi } from "./useDiscountCodeUi-
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
20
|
+
import { a as SignInNotice, c as usePolling, d as portalSessionIdentity, f as useSignInReturn, i as BookingQuestionSections, l as parseBookingSubmissionFailure, m as PaymentChoiceRows, n as BookingNextStep, p as useBookingQuestionsRefresh, r as OrganiserContactLine, s as BookingConsentAgreement, t as BookingMailingListNote, u as useBookingNowIso } from "./BookingMailingListNote-D_khdttF.mjs";
|
|
21
|
+
import { n as TerminalPanel, r as StateIcon, t as useDiscountCodeUi } from "./useDiscountCodeUi-DMtTHqex.mjs";
|
|
22
|
+
import { n as SiteChoiceOptions } from "./SiteChoiceGroup-BZ5I0Vhy.mjs";
|
|
23
|
+
import { a as formatTime$1, i as formatDatePillParts, n as useAvailableDates, o as getRuntimeTimeZone, r as formatDate$1, t as useAvailableSlots } from "./useAvailableSlots-nD6nuvSW.mjs";
|
|
24
|
+
import { c as storeDemoBookingPassIfAvailable } from "./demoPortalMagicLink-CgzNiOQ0.mjs";
|
|
25
|
+
import { i as getDiscountApplyFeedback } from "./shop-discount-apply.state-p4aXtVsF.mjs";
|
|
25
26
|
import React, { useCallback, useEffect, useLayoutEffect, useMemo, useReducer, useRef, useState } from "react";
|
|
26
27
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
27
28
|
import { z } from "zod";
|
|
@@ -405,6 +406,10 @@ function summariseBookingHeldPackages(source, packages, heldWithTeamMembers) {
|
|
|
405
406
|
}
|
|
406
407
|
//#endregion
|
|
407
408
|
//#region ../blocks/src/system/runtime/nodes/booking-form.payment-confirmation.ts
|
|
409
|
+
/** Whether pressing the button goes on to a card payment. */
|
|
410
|
+
function confirmationLeadsToPayment(summary) {
|
|
411
|
+
return summary !== null && summary.kind !== "pay_directly";
|
|
412
|
+
}
|
|
408
413
|
function resolveBookingPaymentConfirmationSummary(input) {
|
|
409
414
|
const service = input.service;
|
|
410
415
|
if (!service || !service.durationMinutes || !Number.isFinite(input.priceAmount) || input.priceAmount <= 0) return null;
|
|
@@ -422,15 +427,30 @@ function resolveBookingPaymentConfirmationSummary(input) {
|
|
|
422
427
|
};
|
|
423
428
|
case "held_package": return null;
|
|
424
429
|
case "per_session":
|
|
425
|
-
case "unselected": return
|
|
430
|
+
case "unselected": return perSessionConfirmationSummary({
|
|
426
431
|
...base,
|
|
427
|
-
kind: "per_session",
|
|
428
432
|
priceCurrency: service.priceCurrency ?? service.pricing?.currency ?? "USD"
|
|
429
|
-
}
|
|
433
|
+
}, input.paymentResolution, input.businessName);
|
|
430
434
|
}
|
|
431
435
|
}
|
|
432
|
-
|
|
433
|
-
|
|
436
|
+
/** A single session: paid by card here, or straight to the business. */
|
|
437
|
+
function perSessionConfirmationSummary(base, payment, businessName) {
|
|
438
|
+
switch (perSessionConfirmationKind(payment)) {
|
|
439
|
+
case "per_session": return {
|
|
440
|
+
...base,
|
|
441
|
+
kind: "per_session"
|
|
442
|
+
};
|
|
443
|
+
case "pay_directly": return {
|
|
444
|
+
...base,
|
|
445
|
+
kind: "pay_directly",
|
|
446
|
+
payee: businessName?.trim() || null
|
|
447
|
+
};
|
|
448
|
+
case null: return null;
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
function perSessionConfirmationKind(payment) {
|
|
452
|
+
if (payment.kind !== "ready" || payment.choice.kind !== "selected") return null;
|
|
453
|
+
return payment.choice.option.kind === "deferred_manual" ? "pay_directly" : "per_session";
|
|
434
454
|
}
|
|
435
455
|
/** The discounted amount actually shown is the submission's ceiling, using the existing term snapshot. */
|
|
436
456
|
function discountedBookingShownTerms(payment, totalCents, currency) {
|
|
@@ -2947,7 +2967,8 @@ function useHeadlessBookingFlow(options) {
|
|
|
2947
2967
|
service: selectedService,
|
|
2948
2968
|
priceAmount: discountedPriceAmount(manualDiscount.discount, paymentPriceAmount),
|
|
2949
2969
|
choice: paymentChoice,
|
|
2950
|
-
paymentResolution
|
|
2970
|
+
paymentResolution,
|
|
2971
|
+
businessName: options.siteName
|
|
2951
2972
|
});
|
|
2952
2973
|
const availabilityDisplay = resolveBookingFormDateDisplay({
|
|
2953
2974
|
viewerTimeZone,
|
|
@@ -3507,6 +3528,20 @@ function BookingPaymentConfirmationText({ booking, summary }) {
|
|
|
3507
3528
|
const dateTime = formatBookingConfirmationDateTime(booking);
|
|
3508
3529
|
const price = formatCurrencyAmount(summary.priceAmount, summary.priceCurrency, { decimals: "auto" });
|
|
3509
3530
|
const when = dateTime ? ` · ${dateTime}` : "";
|
|
3531
|
+
if (summary.kind === "pay_directly") return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsxs("p", {
|
|
3532
|
+
className: "ab-text rb-on-surface--muted",
|
|
3533
|
+
children: [
|
|
3534
|
+
summary.serviceTitle,
|
|
3535
|
+
" · ",
|
|
3536
|
+
summary.durationMinutes,
|
|
3537
|
+
" min · ",
|
|
3538
|
+
price,
|
|
3539
|
+
when
|
|
3540
|
+
]
|
|
3541
|
+
}), /* @__PURE__ */ jsx("p", {
|
|
3542
|
+
className: "ab-text",
|
|
3543
|
+
children: payDirectlyLine(price, summary.payee)
|
|
3544
|
+
})] });
|
|
3510
3545
|
if (summary.kind === "buy_package") return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsxs("p", {
|
|
3511
3546
|
className: "ab-text rb-on-surface--muted",
|
|
3512
3547
|
children: [
|
|
@@ -3537,6 +3572,10 @@ function BookingPaymentConfirmationText({ booking, summary }) {
|
|
|
3537
3572
|
]
|
|
3538
3573
|
});
|
|
3539
3574
|
}
|
|
3575
|
+
/** Nothing is taken online, so say so before the client confirms, and who they'll pay. */
|
|
3576
|
+
function payDirectlyLine(price, payee) {
|
|
3577
|
+
return `You’ll pay ${price} to ${payee ?? "the business"} directly. Nothing is taken online.`;
|
|
3578
|
+
}
|
|
3540
3579
|
function BookingFormSubmitActions({ booking, onSubmit }) {
|
|
3541
3580
|
const currentStepIndex = booking.currentStep?.visibleIndex ?? 0;
|
|
3542
3581
|
const isFirstStep = currentStepIndex === 0;
|
|
@@ -3616,7 +3655,7 @@ function BookingOfferReview({ review, booking }) {
|
|
|
3616
3655
|
});
|
|
3617
3656
|
}
|
|
3618
3657
|
function bookingPrimaryActionLabel(booking, isLastStep, summary) {
|
|
3619
|
-
return isLastStep ? lastStepActionLabel(booking, summary) : resolvePrimaryActionLabel(false,
|
|
3658
|
+
return isLastStep ? lastStepActionLabel(booking, summary) : resolvePrimaryActionLabel(false, confirmationLeadsToPayment(summary));
|
|
3620
3659
|
}
|
|
3621
3660
|
function lastStepActionLabel(booking, summary) {
|
|
3622
3661
|
if (booking.services.selected?.requiresApproval) return "Send request";
|
|
@@ -3624,7 +3663,7 @@ function lastStepActionLabel(booking, summary) {
|
|
|
3624
3663
|
if (summary?.kind === "buy_package") return resolvePrimaryActionLabel(true, true);
|
|
3625
3664
|
const discount = booking.discount.preview?.discount;
|
|
3626
3665
|
if (discount) return discountedActionLabel(booking, discount);
|
|
3627
|
-
return resolvePrimaryActionLabel(true,
|
|
3666
|
+
return resolvePrimaryActionLabel(true, confirmationLeadsToPayment(summary));
|
|
3628
3667
|
}
|
|
3629
3668
|
function discountedActionLabel(booking, discount) {
|
|
3630
3669
|
if (discount.totalAfterDiscountCents === 0) return "Confirm booking";
|
|
@@ -3868,17 +3907,14 @@ function DefaultBookingQuestions({ booking }) {
|
|
|
3868
3907
|
disabled: booking.status.tag === "submitting"
|
|
3869
3908
|
});
|
|
3870
3909
|
}
|
|
3871
|
-
/** Radios and multi-choice checkboxes answer one question with several controls, so they're a named group. */
|
|
3872
|
-
function isChoiceGroupField(field) {
|
|
3873
|
-
return field.type === "radio" || field.type === "checkbox" && (field.options?.length ?? 0) > 1;
|
|
3874
|
-
}
|
|
3875
3910
|
function DefaultDynamicField({ booking, field }) {
|
|
3876
3911
|
const error = field.error;
|
|
3877
3912
|
const errorId = error ? field.errorId ?? `${field.inputId}-error` : `${field.inputId}-error`;
|
|
3878
3913
|
const describedBy = [field.helpTextId, error ? errorId : null].filter(Boolean).join(" ") || void 0;
|
|
3879
|
-
return /* @__PURE__ */ jsxs(
|
|
3880
|
-
field,
|
|
3914
|
+
return /* @__PURE__ */ jsxs(BookingQuestionFrame, {
|
|
3915
|
+
field: field.field,
|
|
3881
3916
|
describedBy,
|
|
3917
|
+
required: field.required,
|
|
3882
3918
|
children: [
|
|
3883
3919
|
/* @__PURE__ */ jsx(DynamicFieldLabel, { field }),
|
|
3884
3920
|
field.helpText ? /* @__PURE__ */ jsx("p", {
|
|
@@ -3903,22 +3939,6 @@ function DefaultDynamicField({ booking, field }) {
|
|
|
3903
3939
|
]
|
|
3904
3940
|
});
|
|
3905
3941
|
}
|
|
3906
|
-
/** A choice group is a fieldset whose legend is the question, as in the shared question fields. */
|
|
3907
|
-
function DynamicFieldFrame({ children, describedBy, field }) {
|
|
3908
|
-
if (!isChoiceGroupField(field.field)) return /* @__PURE__ */ jsx("div", {
|
|
3909
|
-
className: "rb-space-y-2",
|
|
3910
|
-
children
|
|
3911
|
-
});
|
|
3912
|
-
return /* @__PURE__ */ jsx("fieldset", {
|
|
3913
|
-
className: "rb-space-y-2 rb-border-0 rb-p-0 rb-m-0 rb-min-w-0",
|
|
3914
|
-
"aria-describedby": describedBy,
|
|
3915
|
-
...field.field.type === "radio" ? {
|
|
3916
|
-
role: "radiogroup",
|
|
3917
|
-
...field.required ? { "aria-required": true } : {}
|
|
3918
|
-
} : {},
|
|
3919
|
-
children
|
|
3920
|
-
});
|
|
3921
|
-
}
|
|
3922
3942
|
/** Optional fields say so and required ones carry no mark, matching the question fields beside them. */
|
|
3923
3943
|
function DynamicFieldLabel({ field }) {
|
|
3924
3944
|
if (field.field.type === "booking_requirement_consent") return /* @__PURE__ */ jsx(BookingConsentAgreement, {
|
|
@@ -3928,7 +3948,7 @@ function DynamicFieldLabel({ field }) {
|
|
|
3928
3948
|
requiredMark: "none"
|
|
3929
3949
|
});
|
|
3930
3950
|
const text = /* @__PURE__ */ jsxs(Fragment, { children: [field.label, field.required ? null : /* @__PURE__ */ jsx(OptionalMark, {})] });
|
|
3931
|
-
return
|
|
3951
|
+
return isFieldsetQuestion(field.field) ? /* @__PURE__ */ jsx("legend", {
|
|
3932
3952
|
id: field.labelId,
|
|
3933
3953
|
className: "form-label rb-p-0",
|
|
3934
3954
|
children: text
|
|
@@ -4032,26 +4052,17 @@ function SelectInput({ control }) {
|
|
|
4032
4052
|
});
|
|
4033
4053
|
}
|
|
4034
4054
|
function RadioInput({ control }) {
|
|
4035
|
-
const { field,
|
|
4036
|
-
return /* @__PURE__ */ jsx(
|
|
4037
|
-
|
|
4038
|
-
|
|
4039
|
-
|
|
4040
|
-
|
|
4041
|
-
|
|
4042
|
-
|
|
4043
|
-
|
|
4044
|
-
|
|
4045
|
-
|
|
4046
|
-
onBlur,
|
|
4047
|
-
required: field.required,
|
|
4048
|
-
...control.validation,
|
|
4049
|
-
className: "form-radio"
|
|
4050
|
-
}), /* @__PURE__ */ jsx("span", {
|
|
4051
|
-
className: "form-check-label",
|
|
4052
|
-
children: option.label
|
|
4053
|
-
})]
|
|
4054
|
-
}, option.value))
|
|
4055
|
+
const { field, onChange, onBlur } = control.props;
|
|
4056
|
+
return /* @__PURE__ */ jsx(SiteChoiceOptions, {
|
|
4057
|
+
size: "row",
|
|
4058
|
+
name: field.id,
|
|
4059
|
+
options: fieldOptions(control),
|
|
4060
|
+
value: control.text,
|
|
4061
|
+
required: field.required,
|
|
4062
|
+
invalid: control.validation["aria-invalid"] === "true",
|
|
4063
|
+
describedBy: control.validation["aria-describedby"],
|
|
4064
|
+
onChange,
|
|
4065
|
+
onBlur
|
|
4055
4066
|
});
|
|
4056
4067
|
}
|
|
4057
4068
|
function CheckboxGroupInput({ control }) {
|
|
@@ -4378,9 +4389,25 @@ function DefaultResourceChoices({ allowAnyResource, booking, resources, selected
|
|
|
4378
4389
|
]
|
|
4379
4390
|
});
|
|
4380
4391
|
}
|
|
4392
|
+
/** The listing's own price label; a tiered service carries no tiers here, so its session price stands in. */
|
|
4393
|
+
function selectedServicePrice(service) {
|
|
4394
|
+
return formatAppointmentPrice({
|
|
4395
|
+
pricing: service.pricing && service.pricing.pricingStrategy !== "tiered" ? {
|
|
4396
|
+
...service.pricing,
|
|
4397
|
+
singlePriceAmount: service.pricing.singlePriceAmount ?? null,
|
|
4398
|
+
slidingMinAmount: service.pricing.slidingMinAmount ?? null,
|
|
4399
|
+
slidingMaxAmount: service.pricing.slidingMaxAmount ?? null,
|
|
4400
|
+
options: []
|
|
4401
|
+
} : void 0,
|
|
4402
|
+
priceAmount: service.priceAmount ?? null,
|
|
4403
|
+
priceCurrency: service.priceCurrency ?? null,
|
|
4404
|
+
onlinePaymentMode: service.onlinePaymentMode
|
|
4405
|
+
});
|
|
4406
|
+
}
|
|
4381
4407
|
function BookingSelectedServiceSummary({ services }) {
|
|
4382
4408
|
const service = services.items.length === 1 ? services.items[0] : void 0;
|
|
4383
4409
|
if (!service) return null;
|
|
4410
|
+
const price = selectedServicePrice(service);
|
|
4384
4411
|
return /* @__PURE__ */ jsxs("div", {
|
|
4385
4412
|
className: "rb-reg-summary",
|
|
4386
4413
|
children: [
|
|
@@ -4400,6 +4427,10 @@ function BookingSelectedServiceSummary({ services }) {
|
|
|
4400
4427
|
service.durationMinutes,
|
|
4401
4428
|
" minutes"
|
|
4402
4429
|
]
|
|
4430
|
+
}) : null,
|
|
4431
|
+
price ? /* @__PURE__ */ jsxs("p", {
|
|
4432
|
+
className: "ab-text rb-on-surface--muted",
|
|
4433
|
+
children: ["Price: ", price]
|
|
4403
4434
|
}) : null
|
|
4404
4435
|
]
|
|
4405
4436
|
});
|
|
@@ -4738,18 +4769,25 @@ const SuccessMessage = ({ copy, resourceName, appointment, dateContext, classNam
|
|
|
4738
4769
|
},
|
|
4739
4770
|
noteClassName: "ab-text"
|
|
4740
4771
|
}),
|
|
4741
|
-
secondaryBody: /* @__PURE__ */ jsx(AppointmentDetails, {
|
|
4772
|
+
secondaryBody: /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(AppointmentDetails, {
|
|
4742
4773
|
appointment,
|
|
4743
4774
|
dateContext,
|
|
4744
4775
|
resourceName,
|
|
4745
4776
|
person
|
|
4746
|
-
}),
|
|
4777
|
+
}), demoEmailSuppressed ? null : /* @__PURE__ */ jsx(BookingNextStep, { target: appointmentNextStep(appointment) })] }),
|
|
4747
4778
|
className: ["ab-center", className ?? ""].join(" ").trim(),
|
|
4748
4779
|
titleClassName: "ab-terminal-title",
|
|
4749
4780
|
role: "alert",
|
|
4750
4781
|
live: "polite"
|
|
4751
4782
|
});
|
|
4752
4783
|
};
|
|
4784
|
+
function appointmentNextStep(appointment) {
|
|
4785
|
+
const id = appointment ? parseAppointmentId(appointment.id) : null;
|
|
4786
|
+
return id?.ok ? {
|
|
4787
|
+
kind: "appointment",
|
|
4788
|
+
appointmentId: id.value
|
|
4789
|
+
} : { kind: "bookings" };
|
|
4790
|
+
}
|
|
4753
4791
|
function AppointmentDetails({ appointment, dateContext, resourceName, person }) {
|
|
4754
4792
|
if (!appointment) return resourceName ? /* @__PURE__ */ jsx("p", {
|
|
4755
4793
|
className: "ab-text rb-on-surface--muted",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { n as calendarLinks } from "./src-
|
|
2
|
+
import { n as calendarLinks, r as customerBookingCalendarUid } from "./src-CMuv8vSO.mjs";
|
|
3
3
|
//#region ../core/src/assert-never.ts
|
|
4
4
|
function assertNever(value, message = "Unexpected variant") {
|
|
5
5
|
throw new Error(`${message}: ${String(value)}`);
|
|
@@ -136,7 +136,11 @@ function bookingCalendar(event, outcome) {
|
|
|
136
136
|
}];
|
|
137
137
|
const bookingId = identity.scope === "occurrence" ? identity.attendeeId : identity.registrationId;
|
|
138
138
|
const entries = sessions.map((session) => ({
|
|
139
|
-
uid:
|
|
139
|
+
uid: customerBookingCalendarUid({
|
|
140
|
+
kind: "event",
|
|
141
|
+
bookingId,
|
|
142
|
+
occurrenceId: session.occurrenceId
|
|
143
|
+
}),
|
|
140
144
|
sequence: 0,
|
|
141
145
|
title: event.title,
|
|
142
146
|
startsAt: new Date(session.startsAt),
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as BookingFormClient } from "./booking-form.client-
|
|
3
|
-
import { t as BlockApiProvider } from "./context-
|
|
4
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
2
|
+
import { t as BookingFormClient } from "./booking-form.client-DAlWWWjV.mjs";
|
|
3
|
+
import { t as BlockApiProvider } from "./context-CG77Keax.mjs";
|
|
4
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-Co1VXFaW.mjs";
|
|
5
5
|
import { t as resolveFormPortalToken } from "./portalSession-0XhXyTxT.mjs";
|
|
6
6
|
import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
|
|
7
|
-
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-
|
|
7
|
+
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-DtqRutuX.mjs";
|
|
8
8
|
import "react";
|
|
9
9
|
import { jsx } from "react/jsx-runtime";
|
|
10
10
|
//#region src/rendering/islands/enhancers/bookingForm.tsx
|
package/dist/client/bookings.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { S as publicEventSchema, t as assertNever } from "./src-
|
|
3
|
-
import {
|
|
4
|
-
import { a as useHeadlessBookingFlow, i as HeadlessBookingProvider$1, o as createBookingBlockApiConfig, r as HeadlessBookingPaymentSelectionStep$1, s as getAppointmentBookingOverrideInput, t as BookingFormClient$1 } from "./booking-form.client-
|
|
5
|
-
import { n as EventRegistrationPayment, r as useEventRegistrationWizard } from "./EventRegistrationPayment-
|
|
6
|
-
import { n as useBlockApi, t as BlockApiProvider } from "./context-
|
|
2
|
+
import { S as publicEventSchema, t as assertNever } from "./src-CJf3u16T.mjs";
|
|
3
|
+
import { Er as getSingleSelectedPricingOptionId, Ki as normalizeBookingFormConfig, Ns as readRuntimeNow, Ur as resolveRegistrationDisplay, at as resolveHeadlessEventRegistrationView, bt as entryChoosesEvent, et as deriveEventRegistrationSteps, it as resolveHeadlessEventRegistrationStatus, ka as BOOKING_FORM_DATA_RESERVED_KEY_VALUES, no as createHostedBlockApiConfig, nt as normalizeEventRegistrationMaxTickets, ot as toHeadlessPaymentSelection, qi as normalizeBookingServices, rt as resolveEventRegistrationSubmitPlan, st as toInternalPaymentSelection, xo as resolveRuntimeEventDestination, yi as normalizeEventRegistrationPageSurfaceSubject } from "./wizardSteps-BbroaNkT.mjs";
|
|
4
|
+
import { a as useHeadlessBookingFlow, i as HeadlessBookingProvider$1, o as createBookingBlockApiConfig, r as HeadlessBookingPaymentSelectionStep$1, s as getAppointmentBookingOverrideInput, t as BookingFormClient$1 } from "./booking-form.client-DAlWWWjV.mjs";
|
|
5
|
+
import { n as EventRegistrationPayment, r as useEventRegistrationWizard } from "./EventRegistrationPayment-CARdr15t.mjs";
|
|
6
|
+
import { n as useBlockApi, t as BlockApiProvider } from "./context-CG77Keax.mjs";
|
|
7
7
|
import * as React$1 from "react";
|
|
8
8
|
import React, { useCallback, useEffect, useMemo, useReducer } from "react";
|
|
9
9
|
//#region ../blocks/src/system/runtime/nodes/event-registration/event-registration.headless.override.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { An as boxlessCardVariantValue, Dn as boxBackgroundSchema, En as boxBackgroundOverlaySchema, Mn as cardVariantRoleValues, Nn as itemRoleValues, On as runtimeBoxBackgroundSchema, Pn as openCardRoleValue } from "./islands-
|
|
2
|
+
import { Cs as asPartialObject } from "./wizardSteps-BbroaNkT.mjs";
|
|
3
|
+
import { An as boxlessCardVariantValue, Dn as boxBackgroundSchema, En as boxBackgroundOverlaySchema, Mn as cardVariantRoleValues, Nn as itemRoleValues, On as runtimeBoxBackgroundSchema, Pn as openCardRoleValue } from "./islands-C95FyxUF.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
z.enum(itemRoleValues);
|
|
6
6
|
z.enum(cardVariantRoleValues);
|