@riverbankcms/sdk 0.164.0 → 0.166.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-CubPwupc.d.ts → BlocksIslandsHydrator-CPvN6RBW.d.ts} +1 -1
- package/dist/_dts/{Page-CDzsagB2.d.ts → Page-rW0xgQCA.d.ts} +18 -256
- package/dist/_dts/{SdkPreviewMode-CPRQbRCI.d.ts → SdkPreviewMode-BWZh2WCk.d.ts} +107 -72
- package/dist/_dts/{client-CbeYTSry.d.ts → client-D4BXQEZc.d.ts} +5 -1
- package/dist/_dts/{content-types--uYRIcIF.d.ts → content-types-MUzta0l9.d.ts} +3 -3
- package/dist/_dts/{contracts-DJQYAOsv.d.ts → contracts-Cl9Xh1DO.d.ts} +4 -4
- package/dist/_dts/{footerPageOutline-CKkhBwgJ.d.ts → footerPageOutline-4BgLKehl.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata--qd7NCIA.d.ts → generatePageMetadata-BsmJ0qKh.d.ts} +2 -2
- package/dist/_dts/{index-wegfy7lf.d.ts → index--qflsCiy.d.ts} +4 -3
- package/dist/_dts/{index-CjdIn9-_.d.ts → index-BgJ2aU5c.d.ts} +2 -2
- package/dist/_dts/{index-BZE-1azr.d.ts → index-Bmboeb49.d.ts} +2 -2
- package/dist/_dts/{index-BpEbwDM7.d.ts → index-DdcwPqQN.d.ts} +4 -4
- package/dist/_dts/{index-DriYVLfT.d.ts → index-ahxQCUc7.d.ts} +2 -2
- package/dist/_dts/{index-DYQFmf--.d.ts → index-kQ5xkM6X.d.ts} +1 -1
- package/dist/_dts/{index-JS8WYgD3.d.ts → index-mMMvLLAJ.d.ts} +2996 -3079
- package/dist/_dts/{index-D_pQO-AS.d.ts → index-wbBZ0awa.d.ts} +49398 -48202
- package/dist/_dts/{loadContent-DUi94Qfk.d.ts → loadContent-BG5IAV-V.d.ts} +9 -6
- package/dist/_dts/resolveBlockData-Cmcle_zV.d.ts +136 -0
- package/dist/_dts/{resolvePageContent-JDE0ry6T.d.ts → resolvePageContent-BRJUTFoH.d.ts} +3 -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 +9 -6
- package/dist/_dts/sdk/src/config/index.d.ts +6 -6
- package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
- package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +20 -0
- package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +2 -0
- package/dist/_dts/sdk/src/data/types.d.ts +54 -0
- package/dist/_dts/sdk/src/index.d.ts +8 -8
- package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
- package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
- package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
- package/dist/_dts/sdk/src/next/index.d.ts +9 -8
- package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
- package/dist/_dts/sdk/src/page-converter/index.d.ts +36 -48
- 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 +2 -0
- package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +3 -0
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +257 -0
- package/dist/_dts/sdk/src/rendering/index.d.ts +8 -7
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +3 -3
- package/dist/_dts/{themeAdmission-D_qtGYAT.d.ts → sdk/src/rendering/themeAdmission.d.ts} +3 -1
- package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
- package/dist/_dts/sdk/src/server.d.ts +7 -5
- package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
- package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
- package/dist/_dts/{types-DiciZDrk.d.ts → types-BX3Y-EW3.d.ts} +3 -3
- package/dist/_dts/{types-DubJnBnI.d.ts → types-DF54stxv.d.ts} +8 -7
- package/dist/_dts/{types-W40f2olO.d.ts → types-DuiHLiPo.d.ts} +2 -2
- package/dist/_dts/{validation-BF4_zNkR.d.ts → validation-Bxi0f81D.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-64hFxF02.mjs → BlocksIslandsHydrator-DwiRGtgh.mjs} +31 -24
- package/dist/client/{BookingMailingListNote-CSQyFm9J.mjs → BookingMailingListNote-DOWOZYlK.mjs} +2 -2
- package/dist/client/{CalendarNavigationChevron-Bvkx8Z7Y.mjs → CalendarNavigationChevron-5a0x0vcC.mjs} +7 -7
- package/dist/client/{CheckboxChoice-3PhxDxgR.mjs → CheckboxChoice-CZ-anOqV.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-pt2xXBQp.mjs → DemoBookingPortalAccess-B2qLkPRB.mjs} +6 -6
- package/dist/client/{DemoPortalSignInLink-Qw780EfW.mjs → DemoPortalSignInLink-B9YrzZt2.mjs} +1 -1
- package/dist/client/{EventCalendar.client-DWoboRW5.mjs → EventCalendar.client-BhADnDCg.mjs} +17 -10
- package/dist/client/{EventCombined.client-C98ucpcP.mjs → EventCombined.client-jik34zTb.mjs} +8 -8
- package/dist/client/{EventEmbeddedCheckoutStep-DHRlFfkp.mjs → EventEmbeddedCheckoutStep-D_14yqAU.mjs} +27 -2
- package/dist/client/{EventItem-hrSyTApW.mjs → EventItem-CMKrtkT7.mjs} +33 -12
- package/dist/client/{EventListWeekNavigation-C3t7H13W.mjs → EventListWeekNavigation-AGHjxy6C.mjs} +1 -1
- package/dist/client/{EventListing.client-Cp11sBX_.mjs → EventListing.client-DZeDM0Qt.mjs} +3 -3
- package/dist/client/{EventListing.view-Dd5QHIAf.mjs → EventListing.view-3BBRdNVa.mjs} +70 -15
- package/dist/client/{EventRegistrationPayment-ByT88VHR.mjs → EventRegistrationPayment-CpNcpga4.mjs} +108 -11
- package/dist/client/{LocationMapActions-BsepG5Vv.mjs → LocationMapActions-D5-H9ooQ.mjs} +2 -2
- package/dist/client/{MapDrawingSvg-R4JMT4yd.mjs → MapDrawingSvg-C30geMl-.mjs} +1 -1
- package/dist/client/{Page-Dub71o3c.mjs → Page-DNDZLRlB.mjs} +3388 -11530
- package/dist/client/{ProtectedSubmitButton-DGbgGvdh.mjs → ProtectedSubmitButton-8DuDw2ag.mjs} +1 -1
- package/dist/client/{SpamProtectionWidget-CRsKTQV-.mjs → SpamProtectionWidget-CCF6YLUX.mjs} +5 -3
- package/dist/client/{StepIndicator-Bp7MyutT.mjs → StepIndicator-Bin7YR0A.mjs} +3 -3
- package/dist/client/{TabBarFragment-C4WJyybx.mjs → TabBarFragment-_IAthZVM.mjs} +1 -1
- package/dist/client/{ThemedButton-BGVwNwE-.mjs → ThemedButton-8jUc02mZ.mjs} +64 -2
- package/dist/client/{accordion-vCG_JC5t.mjs → accordion-uVqNowRX.mjs} +1 -1
- package/dist/client/{altchaProtection-BWchRM3v.mjs → altchaProtection-DjIV9A5n.mjs} +1 -1
- package/dist/client/{booking-form.client-CHTbcZJM.mjs → booking-form.client-w-PvyWBv.mjs} +19 -14
- package/dist/client/{bookingForm-BxbUbzUr.mjs → bookingForm-DNMojb6A.mjs} +4 -4
- package/dist/client/bookings.mjs +6 -6
- package/dist/client/{carousel-FM1mkkL0.mjs → carousel-C8kxI3Dm.mjs} +2 -2
- package/dist/client/{carousel.client-ChoLiWwD.mjs → carousel.client-BO7sCEpH.mjs} +1 -1
- package/dist/client/{cart-BDFhbh9j.mjs → cart-DCxjE3Is.mjs} +3 -3
- package/dist/client/{cart.client-x3HOke6T.mjs → cart.client-Ceeng8fB.mjs} +1 -1
- package/dist/client/{checkout-BibhwnTd.mjs → checkout-B0EKbeVv.mjs} +3 -3
- package/dist/client/{checkout.client-CE4jUi0G.mjs → checkout.client-DtPj3fYk.mjs} +1 -1
- package/dist/client/client.mjs +9465 -15
- package/dist/client/{context-BNAM7NsW.mjs → context-n6IZigd3.mjs} +8 -6
- package/dist/client/cta-CDeAwYoN.mjs +121 -0
- package/dist/client/{dateFormatting-QwBSo0hK.mjs → dateFormatting-BWPzdeZE.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-NwKJk6gn.mjs → demoPortalMagicLink-BdXu0fj-.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-D4zqEBDl.mjs → enhanceHeaderSection-VHfv8M6-.mjs} +3 -3
- package/dist/client/{event-details.client-jFyFjOIC.mjs → event-details.client-Cfr1_Cj4.mjs} +2 -2
- package/dist/client/{event-registration.client-BK_jVv3R.mjs → event-registration.client-BhygihpQ.mjs} +43 -17
- package/dist/client/{eventCalendar-DSkzejQh.mjs → eventCalendar-B4XCL9u6.mjs} +4 -4
- package/dist/client/{eventCombined-BG-BEaYh.mjs → eventCombined-DVjz4wdf.mjs} +4 -4
- package/dist/client/{eventDetails-BhIwXAKe.mjs → eventDetails-B0DA1Nw1.mjs} +2 -2
- package/dist/client/{eventListing-DQtyO1Xj.mjs → eventListing-2-xjn2nz.mjs} +4 -4
- package/dist/client/{eventRegistration-DRTz8X0M.mjs → eventRegistration-ng4iGo9O.mjs} +4 -4
- package/dist/client/{form-GXqjObPC.mjs → form-BeNQiZ2V.mjs} +3 -3
- package/dist/client/{form.client-CoKNba2e.mjs → form.client-BFdCKlp7.mjs} +7 -7
- package/dist/client/{form.parts-magB_epJ.mjs → form.parts-C7gLK3jh.mjs} +3 -3
- package/dist/client/{formatDate-BiloOyjS.mjs → formatDate-CWfelfMt.mjs} +1 -1
- package/dist/client/gifting/client.mjs +4 -5
- package/dist/client/{headerSection-BMQCPHT3.mjs → headerSection-CalNAShx.mjs} +2 -2
- package/dist/client/{mediaAssets-BX-vWwQc.mjs → mediaAssets-DpPauppt.mjs} +1 -1
- package/dist/client/{mediaContext-CdqGYlWl.mjs → mediaContext-BLo4NtjP.mjs} +25 -19
- package/dist/client/{newsletter-form.client-8orCez1z.mjs → newsletter-form.client-Dq7GHGXU.mjs} +9 -9
- package/dist/client/{newsletter-form.parts-D8NgHY_F.mjs → newsletter-form.parts-BSMDYQiS.mjs} +2 -2
- package/dist/client/{newsletterForm-BhBNsS3n.mjs → newsletterForm-snzZ4L6i.mjs} +3 -3
- package/dist/client/{noop-C2vZse15.mjs → noop-D-RG9eR3.mjs} +399 -169
- package/dist/client/portal/client.mjs +13 -14
- package/dist/client/{product-detail.client-CQ0k0fbH.mjs → product-detail.client-Gu0INDb7.mjs} +1 -1
- package/dist/client/{product-list.client-Xlr1P0x9.mjs → product-list.client-BmH40fNf.mjs} +1 -1
- package/dist/client/{productDetail-BsCao6X4.mjs → productDetail-DsPUmJ0z.mjs} +3 -3
- package/dist/client/{productList-Cc-PmbEe.mjs → productList-DjGrjOwD.mjs} +3 -3
- package/dist/client/{propsDecoder-DikkDJ9x.mjs → propsDecoder-kTVPMnfD.mjs} +4 -4
- package/dist/client/{registry.server-BpLZo3bC.mjs → registry.server-CKK_RXZo.mjs} +350 -424
- package/dist/client/rendering/client.mjs +29 -28
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +70 -8
- package/dist/client/{richText-coerce-WuMYrBm3.mjs → richText-coerce-BcjTX-7h.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-DNx6b07x.mjs → routeIslandApiConfig-CaXesATK.mjs} +1 -1
- package/dist/client/{shop-DyXtB5TD.mjs → shop-DLufMauE.mjs} +3 -3
- package/dist/client/{shop-commerce-xjWH7-Ym.mjs → shop-commerce-BxYYXLNK.mjs} +12 -12
- package/dist/client/{shop-commerce-store-CbBsS1kD.mjs → shop-commerce-store-Dp3Nl5YK.mjs} +1 -1
- package/dist/client/{shop.client-QOKqQPgK.mjs → shop.client-CBy9_alG.mjs} +13 -13
- package/dist/client/{shop.interactive-BQdm441g.mjs → shop.interactive-BM0NRsFQ.mjs} +265 -24
- package/dist/client/{shopShared-CyW6MU48.mjs → shopShared-lS23OQE-.mjs} +2 -2
- package/dist/client/site-styles-D8jEPGxA.mjs +3 -0
- package/dist/{preview-next/client/ThemedButton-g7NPrsGp.mjs → client/site-styles-DELkUk9s.mjs} +25654 -17259
- package/dist/client/spam-protection.mjs +2 -2
- package/dist/client/src-DjnxOjXG.mjs +217 -0
- package/dist/client/surfaceTransportMarker-BXepAVF6.mjs +152 -0
- package/dist/client/{timetableModel-BgdkhRuA.mjs → timetableModel-DzRWikCU.mjs} +157 -139
- package/dist/client/types-sF-IrGQr.mjs +633 -0
- package/dist/client/{useAvailableSlots-wmdo6uZ8.mjs → useAvailableSlots-C3LphWDX.mjs} +8 -5
- package/dist/client/{useBookingNowIso-CUExAee1.mjs → useBookingNowIso-Da-f9iHw.mjs} +1 -1
- package/dist/client/{useDiscountApply-BRM-OoTN.mjs → useDiscountApply-SLoWhcen.mjs} +3 -3
- package/dist/client/{useDiscountCodeUi-BEIvL31G.mjs → useDiscountCodeUi-D6a2BJij.mjs} +1 -1
- package/dist/client/{useEventPagination-Dk3g64we.mjs → useEventPagination-Ccr4TZlm.mjs} +12 -159
- package/dist/client/{view-BnaOmrap.mjs → view-8w4GA8rf.mjs} +4 -4
- package/dist/client/{view-vhKGFfC3.mjs → view-DAVEoe8A.mjs} +310 -247
- package/dist/client/{wizardSteps-xqU4q63H.mjs → wizardSteps-DNpajrAH.mjs} +495 -173
- package/dist/preview-next/before-render.mjs +4 -141
- package/dist/preview-next/client/ArrangementLookControls-DY5TzhEa.mjs +31197 -0
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-43wIAWr4.mjs → EventEmbeddedCheckoutStep-C_h1cMYm.mjs} +33 -4
- package/dist/preview-next/client/{LocationPickerEnvironment-QtSG2Bl-.mjs → LocationPickerEnvironment-D56RD3e_.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-B-rohNcG.mjs → MapLibreEditMap-DFnyCckr.mjs} +2 -2
- package/dist/preview-next/client/PreviewEditorSidebar-DdnhmdFO.mjs +37049 -0
- package/dist/preview-next/client/PreviewEditorUI-C7ZmYE33.mjs +1189 -0
- package/dist/preview-next/client/PreviewShell-DnO38NaL.mjs +4707 -0
- package/dist/preview-next/client/SdkPreviewModeRuntime-D2OtoRMB.mjs +4258 -0
- package/dist/preview-next/client/SiteChromeCustomizeButton-eIu2RejJ.mjs +71144 -0
- package/dist/preview-next/client/ThemedButton-C0dgGJ5k.mjs +2006 -0
- package/dist/preview-next/client/{lucide-react-CA9cpo0P.mjs → lucide-react-CPBCf6QT.mjs} +15 -2
- package/dist/preview-next/client/previewAssistantSlot-Bp1AlAxx.mjs +110560 -0
- package/dist/preview-next/client/previewChromeSurface-D2cREDJ5.mjs +190 -0
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/sdk-runtime-DK0PUhLL.mjs +5 -0
- package/dist/preview-next/client/useAutosaveStatus--Pw8vnef.mjs +138 -0
- package/dist/preview-next/client/useBlockCustomizeControls-C1Rl73N4.mjs +2724 -0
- package/dist/preview-next/client/useOpenBlockForSetup-CL3842FM.mjs +28 -0
- package/dist/preview-next/keepAlive.mjs +27 -4
- package/dist/preview-next/middleware.mjs +2 -2
- package/dist/preview-next/{route-contract-D5tHZEz5.mjs → route-contract-Bq7SUX3K.mjs} +143 -126
- package/dist/preview-next/{session-P1R_ajT7.mjs → session-DU6zpYUQ.mjs} +1 -1
- package/dist/preview-next/session.mjs +1 -1
- package/dist/server/{Block.shared-Iy7g11iP.mjs → Block.shared-wXr7Iwhs.mjs} +7 -4
- package/dist/server/{src-cbbK3Bho.mjs → ThemeScopeCore-BI2mld9R.mjs} +1153 -2523
- package/dist/server/accessibleSurfaces-CuN8U_iU.mjs +2102 -0
- package/dist/server/{bindings-BVJGgUT0.mjs → bindings-DjdUq9FR.mjs} +2 -3
- package/dist/server/{publicProducts-D3Fc5TKk.mjs → client-07UeMDzA.mjs} +2492 -357
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +33 -2
- package/dist/server/data/dataLoaderContext.mjs +2 -0
- package/dist/server/data/resolveBlockData.mjs +2 -0
- package/dist/server/data/types.mjs +1 -0
- package/dist/server/dataLoaderContext-B3fXA54R.mjs +47 -0
- package/dist/server/identity-Bn9OQiT1.mjs +6 -0
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-BuintpdO.mjs → loadContent-ClpaSlBb.mjs} +6 -5
- package/dist/server/{loadPage-Dk4wea8M.mjs → loadPage-BwtVqpaA.mjs} +4 -2
- package/dist/server/manifest.mjs +1 -1
- package/dist/server/media-DnlczCMA.mjs +231 -0
- package/dist/server/mode-Cv_TG9gP.mjs +63 -0
- package/dist/server/next/middleware.mjs +1 -1
- package/dist/server/next/revalidate.mjs +1 -1
- package/dist/server/next.mjs +13 -13
- package/dist/server/opaqueSurface-3YSDPtDe.mjs +54 -0
- package/dist/server/{overrideResolution-BDiQWM7D.mjs → overrideResolution-Du_w3LY4.mjs} +2 -1
- package/dist/server/overrides-CD4d-1w7.mjs +177 -0
- package/dist/server/page-converter.mjs +243 -91
- package/dist/server/pageRenderPlan-BShULdc2.mjs +4055 -0
- package/dist/server/{themeAdmission-BdY8lP-K.mjs → pageRuntimeSupport-C4Dh5-mB.mjs} +13 -28
- package/dist/server/{overrides-DVemf-GV.mjs → pageShared-HdKFBpaX.mjs} +3594 -1726
- package/dist/server/parseThemeForPersistence-CJMrEkze.mjs +52 -0
- package/dist/server/{prebuild-DubLNgRH.mjs → prebuild-Cl-bkaMA.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/prefetchBlockData-C4yUmz-r.mjs +786 -0
- package/dist/server/publicProducts-W9hDRwjz.mjs +64 -0
- package/dist/server/{registry-zjd1P2Dl.mjs → registry-TFPJdGQi.mjs} +20901 -792
- package/dist/server/rendering/components/pageShared.mjs +2 -0
- package/dist/server/rendering/helpers/loadPage.mjs +2 -0
- package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +2 -0
- package/dist/server/rendering/server.mjs +5 -4
- package/dist/server/rendering/themeAdmission.mjs +2 -0
- package/dist/server/rendering.mjs +11 -10
- package/dist/server/repeaterFields-MIz7r1ez.mjs +9 -0
- package/dist/server/{resolveBlockData-CZJ--nH6.mjs → resolveBlockData-OHlOXlOE.mjs} +6 -48
- package/dist/server/resolveButtonColourStates-lry2ORwX.mjs +2672 -0
- package/dist/server/{richTextSchema-YYc85FX4.mjs → richTextSchema-Euhuj-7V.mjs} +26 -1
- package/dist/server/routing.mjs +1 -1
- package/dist/server/schema-C2PqHrMo.mjs +2523 -0
- package/dist/server/server.mjs +3 -3
- package/dist/server/theme-bridge.mjs +1031 -1
- package/dist/server/theme.mjs +2 -1
- package/dist/server/themeAdmission-DGSAlFUK.mjs +18 -0
- package/dist/server/{three-pass-converter-Chnb1XD-.mjs → three-pass-converter-_j2UE2tR.mjs} +1 -1
- package/dist/server/validation-CDd6m8Ry.mjs +140 -0
- package/dist/server/{validation-CGH-Xs4E.mjs → validation-DIBFZeMB.mjs} +419 -3
- package/dist/server/{version-DoOG6F13.mjs → version-DZWZM1H6.mjs} +1 -1
- package/dist/styles/index.css +924 -10
- package/package.json +39 -1
- package/dist/_dts/previewCompiler-BVVgDSdq.d.ts +0 -1
- package/dist/client/cta-ChiN1Vgg.mjs +0 -80
- package/dist/client/purchase-BMsWpx8y.mjs +0 -894
- package/dist/client/schema-DMUkBtIO.mjs +0 -15915
- package/dist/client/site-styles-BLHYJ8S7.mjs +0 -12339
- package/dist/client/src-VIsPY-kw.mjs +0 -62
- package/dist/preview-next/client/PreviewEditorSidebar-C3AQVxQt.mjs +0 -5441
- package/dist/preview-next/client/PreviewEditorUI-C-1zDCR_.mjs +0 -756
- package/dist/preview-next/client/SdkPreviewModeRuntime-B47yHFL0.mjs +0 -9130
- package/dist/preview-next/client/SdkPreviewModeRuntime-C6Rhm2NQ.mjs +0 -3
- package/dist/preview-next/client/previewAuthStore-By_zfrS5.mjs +0 -212195
- package/dist/preview-next/client/previewChromeSurface-Cjwxv90x.mjs +0 -85
- package/dist/preview-next/client/result-BjJUoxUF.mjs +0 -16
- package/dist/preview-next/client/sdk-runtime-BG2HYvQj.mjs +0 -4
- package/dist/preview-next/client/siteStyleAccess-BiSyYyyr.mjs +0 -14178
- package/dist/preview-next/client/spinner-DnWpeDp2.mjs +0 -67
- package/dist/preview-next/refresh-contract-uQ6BXgLJ.mjs +0 -25
- package/dist/server/bindings-Dgt_0goJ.mjs +0 -17
- package/dist/server/client-CiKaE8ms.mjs +0 -2330
- package/dist/server/effectiveNavLinkStyle-EDSdd_oK.mjs +0 -11574
- package/dist/server/loadPage-BwjncpJf.mjs +0 -2
- package/dist/server/prefetchBlockData-Bnbwoe5n.mjs +0 -4156
- package/dist/server/schema-BlTWmTSl.mjs +0 -16142
- package/dist/server/site-styles-yHytcXIB.mjs +0 -768
- package/dist/server/siteChromeOverlayClearance-D0uCNZ7E.mjs +0 -802
|
@@ -1,15 +1,24 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { c as parseCanonicalMediaIdentifier, d as unsafeAsStorageBucketName, f as unsafeAsStoragePath, h as ok$1, m as err, o as resolveManagedMediaReference, p as parseUuidBrand, u as unsafeAsMediaAssetId } from "./surfaceTransportMarker-BXepAVF6.mjs";
|
|
3
|
+
import { At as resolveBookingBusinessTimeZone, C as eventCalendarListLayoutValues, Dt as getLocalScheduleDate, Et as getBookingLocalDateKey, Ft as validateBookingPaymentOptionKinds, Lt as toNonNegativeCents, Mt as toBookingTimeZone, Nt as parseUtcIsoDateTimeString, Pt as toUtcIsoDateTimeString, Rt as formatCurrencyAmount, X as toBookingRequirementConsentField, Z as blockBookingPaymentTermsSchema, dt as formatDate$2, ft as formatDateRange, gt as formatTimeRange, ht as formatTime$2, jt as resolveBookingTimeZoneId, kt as parseLocalScheduleTime, mt as formatDateTimeRange, n as blockSiteTermsSchema, pt as formatDateTime, q as blockBookingConsentSchema, s as normalizeCurrencyCode, v as eventCalendarDefaultViewValues, vt as inferSiteDateLocale, wt as compareLocalScheduleDates, xt as toScheduledBookingDateTime, y as eventCalendarDisplayModeValues, yt as resolveBookingDisplayContext } from "./noop-D-RG9eR3.mjs";
|
|
4
|
+
import { c as addIntervalPreservingMonthAnchor, d as getBookingInstalmentDepositRefundability, f as getBookingInstalmentPlanIntervalCount, g as resolveFlexibleBalanceInitialPaymentCents, h as resolveFlexibleBalanceDueAt, l as clampConfiguredAmount, m as splitAmountWithRemainderInFirst, p as omitZeroAmountFutureRows, t as assertNever$2, v as assertNever$1 } from "./src-DjnxOjXG.mjs";
|
|
5
|
+
import { Ei as textColorStyle, Ta as runtimeMediaSchema, ai as parseResolvedSurface, d as arrangementSlotNames, ki as opaqueSurfaceDeclarations, r as selectItemSurfacePresentation, wi as mergeStyles, xi as backgroundColorStyle, ya as PUBLIC_BUTTON_ROLES } from "./site-styles-DELkUk9s.mjs";
|
|
2
6
|
import { l as buildCalendarViewport$1, n as calendarLinks, r as groupItemsByDate } from "./src-1PJxc8KO.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { c as assertNever, t as assertNever$1 } from "./src-VIsPY-kw.mjs";
|
|
6
|
-
import { At as resolveBookingTimeZoneId, Dt as parseLocalScheduleTime, K as blockBookingConsentSchema, Mt as toScheduledBookingDateTime, Nt as toUtcIsoDateTimeString, Ot as parseUtcIsoDateTimeString, S as eventCalendarListLayoutValues, Tt as getLocalScheduleDate, X as blockBookingPaymentTermsSchema, Y as toBookingRequirementConsentField, _ as eventCalendarDefaultViewValues, _t as inferSiteDateLocale, dt as formatDateRange, ft as formatDateTime, ht as formatTimeRange, jt as toBookingTimeZone, kt as resolveBookingBusinessTimeZone, mt as formatTime$2, n as blockSiteTermsSchema, pt as formatDateTimeRange, ut as formatDate$2, v as eventCalendarDisplayModeValues, vt as resolveBookingDisplayContext, wt as getBookingLocalDateKey, xt as compareLocalScheduleDates } from "./noop-C2vZse15.mjs";
|
|
7
|
-
import { u as arrangementSlotNames } from "./site-styles-BLHYJ8S7.mjs";
|
|
8
|
-
import { C as clsx } from "./ThemedButton-BGVwNwE-.mjs";
|
|
9
|
-
import { a as getSupabaseUrl, i as getSiteId, n as getCurrentResolveImageUrlContext, r as getMediaAssetIndex } from "./mediaContext-CdqGYlWl.mjs";
|
|
7
|
+
import { C as clsx } from "./ThemedButton-8jUc02mZ.mjs";
|
|
8
|
+
import { a as getSupabaseUrl, i as getSiteId, n as getCurrentResolveImageUrlContext, r as getMediaAssetIndex } from "./mediaContext-BLo4NtjP.mjs";
|
|
10
9
|
import React from "react";
|
|
11
10
|
import { z } from "zod";
|
|
12
11
|
import { Fragment, jsx } from "react/jsx-runtime";
|
|
12
|
+
//#region ../core/src/branded/events.ts
|
|
13
|
+
const unsafeAsEventOfferingId = (id) => id;
|
|
14
|
+
const unsafeAsEventSeriesId = (id) => id;
|
|
15
|
+
const parseEventOfferingId = (value) => parseUuidBrand(value, unsafeAsEventOfferingId);
|
|
16
|
+
const parseEventSeriesId = (value) => parseUuidBrand(value, unsafeAsEventSeriesId);
|
|
17
|
+
//#endregion
|
|
18
|
+
//#region ../core/src/branded/identity.ts
|
|
19
|
+
const unsafeAsSiteId = (id) => id;
|
|
20
|
+
const parseSiteId = (value) => parseUuidBrand(value, unsafeAsSiteId);
|
|
21
|
+
//#endregion
|
|
13
22
|
//#region ../core/src/planner.ts
|
|
14
23
|
/** Default clock for production callers that do not inject time explicitly. */
|
|
15
24
|
const systemPlanningClock = { now: () => Date.now() };
|
|
@@ -32,7 +41,7 @@ function isPublicEventPricingOptionDisplayable(option) {
|
|
|
32
41
|
case "not_on_sale_yet":
|
|
33
42
|
case "sale_ended":
|
|
34
43
|
case "attendance_mode_unavailable": return false;
|
|
35
|
-
default: return assertNever(reason);
|
|
44
|
+
default: return assertNever$1(reason);
|
|
36
45
|
}
|
|
37
46
|
}
|
|
38
47
|
function publicEventPricingDisplay(pricing) {
|
|
@@ -173,7 +182,7 @@ function canonicalEventPricingDisplay(pricing) {
|
|
|
173
182
|
currency: pricing.currency,
|
|
174
183
|
purpose: "configured"
|
|
175
184
|
});
|
|
176
|
-
default: return assertNever(pricing);
|
|
185
|
+
default: return assertNever$1(pricing);
|
|
177
186
|
}
|
|
178
187
|
}
|
|
179
188
|
/**
|
|
@@ -192,7 +201,7 @@ function formatBookingPriceDisplay(display, options = {}) {
|
|
|
192
201
|
case "mixed": return display.paidToAmount > display.paidFromAmount ? `Free / ${formatCurrencyAmount(display.paidFromAmount, display.currency, options)} - ${formatCurrencyAmount(display.paidToAmount, display.currency, options)}` : `Free / ${formatCurrencyAmount(display.paidFromAmount, display.currency, options)}`;
|
|
193
202
|
case "unavailable": return "Pricing unavailable";
|
|
194
203
|
case "external": return display.label;
|
|
195
|
-
default: return assertNever(display);
|
|
204
|
+
default: return assertNever$1(display);
|
|
196
205
|
}
|
|
197
206
|
}
|
|
198
207
|
/** Render an event's price directly from its pricing value. */
|
|
@@ -246,7 +255,7 @@ function parseEventPageSurfaceDestinationMode(value) {
|
|
|
246
255
|
return value === "cms-managed" || value === "system-managed" ? value : void 0;
|
|
247
256
|
}
|
|
248
257
|
function parseEventPageSurfaceSubject(value) {
|
|
249
|
-
if (!isRecord$
|
|
258
|
+
if (!isRecord$6(value)) return err({ kind: "notObject" });
|
|
250
259
|
const parsed = value.kind === "eventSeries" ? parseEventSeriesPageSurfaceSubject(value) : value.kind === "eventOffering" ? parseEventOfferingPageSurfaceSubject(value) : err({
|
|
251
260
|
kind: "unsupportedSubject",
|
|
252
261
|
subjectKind: value.kind
|
|
@@ -304,7 +313,7 @@ function parseEventSeriesIdList(values) {
|
|
|
304
313
|
}
|
|
305
314
|
return ok$1(parsed);
|
|
306
315
|
}
|
|
307
|
-
function isRecord$
|
|
316
|
+
function isRecord$6(value) {
|
|
308
317
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
309
318
|
}
|
|
310
319
|
//#endregion
|
|
@@ -337,46 +346,23 @@ function parsePositiveInteger(value) {
|
|
|
337
346
|
function parseNewsletterListId(value) {
|
|
338
347
|
return parseTrimmedMatchingString(typeof value === "string" ? value.toLowerCase() : value, UUID_PATTERN);
|
|
339
348
|
}
|
|
340
|
-
function parseMailchimpAccountId(value) {
|
|
341
|
-
return parseTrimmedMatchingString(value, OPAQUE_ID_PATTERN);
|
|
342
|
-
}
|
|
343
349
|
function parseMailchimpAudienceId(value) {
|
|
344
350
|
return parseTrimmedMatchingString(value, OPAQUE_ID_PATTERN);
|
|
345
351
|
}
|
|
346
352
|
function parseMailchimpInterestId(value) {
|
|
347
353
|
return parseTrimmedMatchingString(value, OPAQUE_ID_PATTERN);
|
|
348
354
|
}
|
|
349
|
-
function parseBrevoAccountId(value) {
|
|
350
|
-
return parseTrimmedMatchingString(value, OPAQUE_ID_PATTERN);
|
|
351
|
-
}
|
|
352
355
|
function parseBrevoListId(value) {
|
|
353
356
|
return parsePositiveInteger(value);
|
|
354
357
|
}
|
|
355
358
|
//#endregion
|
|
356
359
|
//#region ../core/src/mailing-list-setup.ts
|
|
357
|
-
function isRecord$6(value) {
|
|
358
|
-
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
359
|
-
}
|
|
360
360
|
const DEFAULT_MAILING_LIST_SUCCESS_MESSAGE = "Thanks — you're on the list.";
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
return accountId !== null ? ok$1({
|
|
367
|
-
provider: "brevo",
|
|
368
|
-
accountId
|
|
369
|
-
}) : err("invalid_mailing_list_provider_scope");
|
|
370
|
-
}
|
|
371
|
-
if (value.provider === "mailchimp") {
|
|
372
|
-
const accountId = parseMailchimpAccountId(value.accountId);
|
|
373
|
-
return accountId !== null ? ok$1({
|
|
374
|
-
provider: "mailchimp",
|
|
375
|
-
accountId
|
|
376
|
-
}) : err("invalid_mailing_list_provider_scope");
|
|
377
|
-
}
|
|
378
|
-
return err("invalid_mailing_list_provider_scope");
|
|
379
|
-
}
|
|
361
|
+
/**
|
|
362
|
+
* Seeded into a new setup so every signup form carries a preferences/unsubscribe
|
|
363
|
+
* reassurance out of the box. Administrators can edit or clear it.
|
|
364
|
+
*/
|
|
365
|
+
const DEFAULT_MAILING_LIST_PRIVACY_NOTE = "Change your preferences or unsubscribe at any time.";
|
|
380
366
|
z.unknown().transform((value, ctx) => {
|
|
381
367
|
const parsed = parseNewsletterAudience(value);
|
|
382
368
|
if (parsed.ok) return parsed.value;
|
|
@@ -818,18 +804,20 @@ function resolveDirectImagePathTarget(target) {
|
|
|
818
804
|
case "bucket-scoped": return target.storagePath;
|
|
819
805
|
}
|
|
820
806
|
}
|
|
807
|
+
function buildDirectImageTransformQuery(options) {
|
|
808
|
+
const resize = options.resize ?? (options.width && options.height ? void 0 : "contain");
|
|
809
|
+
const params = new URLSearchParams();
|
|
810
|
+
if (options.width) params.set("width", String(options.width));
|
|
811
|
+
if (options.height) params.set("height", String(options.height));
|
|
812
|
+
if (options.quality) params.set("quality", String(options.quality));
|
|
813
|
+
if (resize) params.set("resize", resize);
|
|
814
|
+
return params.toString();
|
|
815
|
+
}
|
|
821
816
|
function getDirectImageUrl(supabaseUrl, target, storageBucket = "media", options) {
|
|
822
817
|
const baseUrl = supabaseUrl.replace(/\/$/, "");
|
|
823
818
|
const encodedPath = encodeStoragePath(resolveDirectImagePathTarget(target));
|
|
824
819
|
const isSvg = target.storagePath.toLowerCase().endsWith(".svg");
|
|
825
|
-
if (options && !isSvg && (options.width || options.height)) {
|
|
826
|
-
const params = new URLSearchParams();
|
|
827
|
-
if (options.width) params.set("width", String(options.width));
|
|
828
|
-
if (options.height) params.set("height", String(options.height));
|
|
829
|
-
if (options.quality) params.set("quality", String(options.quality));
|
|
830
|
-
if (options.resize) params.set("resize", options.resize);
|
|
831
|
-
return `${baseUrl}/storage/v1/render/image/public/${storageBucket}/${encodedPath}?${params.toString()}`;
|
|
832
|
-
}
|
|
820
|
+
if (options && !isSvg && (options.width || options.height)) return `${baseUrl}/storage/v1/render/image/public/${storageBucket}/${encodedPath}?${buildDirectImageTransformQuery(options)}`;
|
|
833
821
|
return `${baseUrl}/storage/v1/object/public/${storageBucket}/${encodedPath}`;
|
|
834
822
|
}
|
|
835
823
|
function getDirectImageUrlForRelativePath(supabaseUrl, storagePath, siteId, storageBucket = "media", options) {
|
|
@@ -988,6 +976,59 @@ function rotateNormalizedPoint(point, rotation) {
|
|
|
988
976
|
}
|
|
989
977
|
}
|
|
990
978
|
//#endregion
|
|
979
|
+
//#region ../blocks/src/primitives/content/utils/sanitizeHref.ts
|
|
980
|
+
const SAFE_PROTOCOLS = /* @__PURE__ */ new Set([
|
|
981
|
+
"http:",
|
|
982
|
+
"https:",
|
|
983
|
+
"mailto:",
|
|
984
|
+
"tel:"
|
|
985
|
+
]);
|
|
986
|
+
const CONTROL_CHARS_PATTERN = /[\u0000-\u001F\u007F]+/g;
|
|
987
|
+
function normalizeInput(value) {
|
|
988
|
+
return value.replace(CONTROL_CHARS_PATTERN, "").trim();
|
|
989
|
+
}
|
|
990
|
+
function decodeForSchemeCheck(value) {
|
|
991
|
+
try {
|
|
992
|
+
return decodeURIComponent(value);
|
|
993
|
+
} catch {
|
|
994
|
+
return value;
|
|
995
|
+
}
|
|
996
|
+
}
|
|
997
|
+
/**
|
|
998
|
+
* Returns a safe href for rich-text anchors, or null when the value should not be rendered.
|
|
999
|
+
*
|
|
1000
|
+
* Policy:
|
|
1001
|
+
* - Allow absolute URLs with protocols: http, https, mailto, tel.
|
|
1002
|
+
* - Allow root-relative ("/path") and hash-only ("#section") links.
|
|
1003
|
+
* - Reject protocol-relative URLs ("//example.com"), bare domains ("example.com"),
|
|
1004
|
+
* backslashes, executable schemes (javascript/data/vbscript), malformed URLs, and empty values.
|
|
1005
|
+
* - Preserve percent-encoding from the original normalized input.
|
|
1006
|
+
*/
|
|
1007
|
+
function sanitizeHref(raw) {
|
|
1008
|
+
if (typeof raw !== "string") return null;
|
|
1009
|
+
const normalized = normalizeInput(raw);
|
|
1010
|
+
if (!normalized) return null;
|
|
1011
|
+
if (normalized.includes("\\") || normalized.startsWith("//")) return null;
|
|
1012
|
+
if (normalized.startsWith("/")) return normalized;
|
|
1013
|
+
if (normalized.startsWith("#")) return normalized;
|
|
1014
|
+
return sanitizeAbsoluteHref(normalized);
|
|
1015
|
+
}
|
|
1016
|
+
function sanitizeAbsoluteHref(normalized) {
|
|
1017
|
+
const schemeMatch = normalizeInput(decodeForSchemeCheck(normalized)).match(/^([a-zA-Z][a-zA-Z0-9+.-]*):/);
|
|
1018
|
+
if (!schemeMatch) return null;
|
|
1019
|
+
const rawScheme = schemeMatch[1];
|
|
1020
|
+
if (!rawScheme) return null;
|
|
1021
|
+
const protocol = `${rawScheme.toLowerCase()}:`;
|
|
1022
|
+
if (!SAFE_PROTOCOLS.has(protocol)) return null;
|
|
1023
|
+
try {
|
|
1024
|
+
const parsed = new URL(normalized);
|
|
1025
|
+
if (!SAFE_PROTOCOLS.has(parsed.protocol.toLowerCase())) return null;
|
|
1026
|
+
} catch {
|
|
1027
|
+
return null;
|
|
1028
|
+
}
|
|
1029
|
+
return normalized;
|
|
1030
|
+
}
|
|
1031
|
+
//#endregion
|
|
991
1032
|
//#region ../blocks/src/pageRenderItemRoles.ts
|
|
992
1033
|
/** Zero-based index; 1-based parity. Last > first > odd-count middle > parity.
|
|
993
1034
|
* The declared featured role takes precedence over every position.
|
|
@@ -1032,6 +1073,15 @@ const resolvedSurfaceSchema = z.unknown().transform((value, context) => {
|
|
|
1032
1073
|
return z.NEVER;
|
|
1033
1074
|
}
|
|
1034
1075
|
});
|
|
1076
|
+
const slotPresentationSchema = z.object({
|
|
1077
|
+
slots: z.record(z.string(), resolvedSurfaceSchema),
|
|
1078
|
+
states: z.record(z.string(), z.record(z.string(), resolvedSurfaceSchema))
|
|
1079
|
+
});
|
|
1080
|
+
const surfacePresentationSchema = slotPresentationSchema.extend({ items: z.object({
|
|
1081
|
+
card: slotPresentationSchema,
|
|
1082
|
+
statement: slotPresentationSchema,
|
|
1083
|
+
highlight: slotPresentationSchema
|
|
1084
|
+
}) });
|
|
1035
1085
|
const lookListPresentationSchemaShape = {
|
|
1036
1086
|
sectionAction: z.object({
|
|
1037
1087
|
label: z.string(),
|
|
@@ -1071,19 +1121,14 @@ const lookListPresentationSchemaShape = {
|
|
|
1071
1121
|
"highlight"
|
|
1072
1122
|
])).optional()
|
|
1073
1123
|
}).optional(),
|
|
1074
|
-
roleSurfaces: z.record(z.enum([
|
|
1075
|
-
"card",
|
|
1076
|
-
"statement",
|
|
1077
|
-
"highlight"
|
|
1078
|
-
]), resolvedSurfaceSchema).optional(),
|
|
1079
1124
|
panelHeading: z.string().optional(),
|
|
1080
1125
|
lookSlots: z.partialRecord(z.enum(arrangementSlotNames), z.enum(arrangementSlotNames)).optional(),
|
|
1081
|
-
|
|
1126
|
+
surfacePresentation: surfacePresentationSchema.optional()
|
|
1082
1127
|
};
|
|
1083
|
-
function listLookSlot(presentation, slot) {
|
|
1128
|
+
function listLookSlot(presentation, slot, state) {
|
|
1084
1129
|
const name = presentation.lookSlots?.[slot];
|
|
1085
1130
|
if (name === void 0) return {};
|
|
1086
|
-
const surface = presentation.
|
|
1131
|
+
const surface = (state ? presentation.surfacePresentation?.states[slot]?.[state] : void 0) ?? presentation.surfacePresentation?.slots[slot];
|
|
1087
1132
|
return {
|
|
1088
1133
|
"data-slot": name,
|
|
1089
1134
|
...surface === void 0 ? { "data-surface": "section" } : resolvedItemSurfaceProps(surface, slot)
|
|
@@ -1101,15 +1146,9 @@ function resolvedSurfaceBackground(surface, token) {
|
|
|
1101
1146
|
/** Pagination uses the displayed collection, just as declarative repeaters do. */
|
|
1102
1147
|
function listItemPresentation(presentation, index, count, featured = false) {
|
|
1103
1148
|
const role = presentation.itemRoles ? itemRole(index, count, presentation.itemRoles, featured) : void 0;
|
|
1104
|
-
|
|
1105
|
-
return surface ? {
|
|
1149
|
+
return presentation.surfacePresentation ? {
|
|
1106
1150
|
...presentation,
|
|
1107
|
-
|
|
1108
|
-
...presentation.itemSurfaces,
|
|
1109
|
-
item: surface,
|
|
1110
|
-
row: surface,
|
|
1111
|
-
"row-continued": surface
|
|
1112
|
-
}
|
|
1151
|
+
surfacePresentation: selectItemSurfacePresentation(presentation.surfacePresentation, role)
|
|
1113
1152
|
} : presentation;
|
|
1114
1153
|
}
|
|
1115
1154
|
//#endregion
|
|
@@ -1154,6 +1193,320 @@ function defineProgressiveBlockRuntime(runtime) {
|
|
|
1154
1193
|
function defineClientOwnedBlockRuntime(runtime) {
|
|
1155
1194
|
return runtime;
|
|
1156
1195
|
}
|
|
1196
|
+
//#endregion
|
|
1197
|
+
//#region ../commerce/src/utils/assertNever.ts
|
|
1198
|
+
function assertNever(value, message) {
|
|
1199
|
+
if (message) throw new Error(message);
|
|
1200
|
+
throw new Error(`Unexpected value: ${String(value)}`);
|
|
1201
|
+
}
|
|
1202
|
+
//#endregion
|
|
1203
|
+
//#region ../commerce/src/purchase/bookingInstalmentSchedule.ts
|
|
1204
|
+
function resolveBookingInitialInstalmentAmountCents(input) {
|
|
1205
|
+
const totalAmountCents = Math.max(0, input.totalAmountCents);
|
|
1206
|
+
switch (input.plan.kind) {
|
|
1207
|
+
case "deposit_plus_one_remainder":
|
|
1208
|
+
case "deposit_plus_scheduled_instalments": return clampConfiguredAmount(input.plan.depositAmountCents, totalAmountCents);
|
|
1209
|
+
case "equal_scheduled_instalments": return splitAmountWithRemainderInFirst(totalAmountCents, input.plan.instalmentCount)[0] ?? 0;
|
|
1210
|
+
default: return assertNever(input.plan);
|
|
1211
|
+
}
|
|
1212
|
+
}
|
|
1213
|
+
function buildBookingInstalmentSchedule(input) {
|
|
1214
|
+
const totalAmountCents = Math.max(0, input.totalAmountCents);
|
|
1215
|
+
switch (input.plan.kind) {
|
|
1216
|
+
case "deposit_plus_one_remainder": {
|
|
1217
|
+
const depositAmountCents = resolveBookingInitialInstalmentAmountCents(input);
|
|
1218
|
+
const remainderAmountCents = Math.max(0, totalAmountCents - depositAmountCents);
|
|
1219
|
+
return omitZeroAmountFutureRows([createScheduleRow({
|
|
1220
|
+
sequence: 1,
|
|
1221
|
+
stateAtBooking: "paid_today",
|
|
1222
|
+
dueAt: input.anchorAt,
|
|
1223
|
+
amountCents: depositAmountCents
|
|
1224
|
+
}), createScheduleRow({
|
|
1225
|
+
sequence: 2,
|
|
1226
|
+
stateAtBooking: "scheduled",
|
|
1227
|
+
dueAt: addIntervalPreservingMonthAnchor(input.anchorAt, input.plan.remainderDueCount, input.plan.intervalUnit),
|
|
1228
|
+
amountCents: remainderAmountCents
|
|
1229
|
+
})]);
|
|
1230
|
+
}
|
|
1231
|
+
case "deposit_plus_scheduled_instalments": {
|
|
1232
|
+
const plan = input.plan;
|
|
1233
|
+
const depositAmountCents = resolveBookingInitialInstalmentAmountCents(input);
|
|
1234
|
+
const instalmentAmounts = splitAmountWithRemainderInFirst(Math.max(0, totalAmountCents - depositAmountCents), plan.instalmentCount);
|
|
1235
|
+
return omitZeroAmountFutureRows([createScheduleRow({
|
|
1236
|
+
sequence: 1,
|
|
1237
|
+
stateAtBooking: "paid_today",
|
|
1238
|
+
dueAt: input.anchorAt,
|
|
1239
|
+
amountCents: depositAmountCents
|
|
1240
|
+
}), ...instalmentAmounts.map((amountCents, index) => createScheduleRow({
|
|
1241
|
+
sequence: index + 2,
|
|
1242
|
+
stateAtBooking: "scheduled",
|
|
1243
|
+
dueAt: addIntervalPreservingMonthAnchor(input.anchorAt, plan.intervalCount * (index + 1), plan.intervalUnit),
|
|
1244
|
+
amountCents
|
|
1245
|
+
}))]);
|
|
1246
|
+
}
|
|
1247
|
+
case "equal_scheduled_instalments": {
|
|
1248
|
+
const plan = input.plan;
|
|
1249
|
+
return omitZeroAmountFutureRows(splitAmountWithRemainderInFirst(totalAmountCents, plan.instalmentCount).map((amountCents, index) => createScheduleRow({
|
|
1250
|
+
sequence: index + 1,
|
|
1251
|
+
stateAtBooking: index === 0 ? "paid_today" : "scheduled",
|
|
1252
|
+
dueAt: index === 0 ? input.anchorAt : addIntervalPreservingMonthAnchor(input.anchorAt, plan.intervalCount * index, plan.intervalUnit),
|
|
1253
|
+
amountCents
|
|
1254
|
+
})));
|
|
1255
|
+
}
|
|
1256
|
+
default: return assertNever(input.plan);
|
|
1257
|
+
}
|
|
1258
|
+
}
|
|
1259
|
+
function createScheduleRow(input) {
|
|
1260
|
+
return {
|
|
1261
|
+
id: `payment-${input.sequence}`,
|
|
1262
|
+
sequence: input.sequence,
|
|
1263
|
+
stateAtBooking: input.stateAtBooking,
|
|
1264
|
+
dueAt: input.dueAt,
|
|
1265
|
+
amountCents: input.amountCents
|
|
1266
|
+
};
|
|
1267
|
+
}
|
|
1268
|
+
/** Resolve real rows first: zero future payments do not extend the deadline. */
|
|
1269
|
+
function canInstalmentPlanCompleteBefore(input) {
|
|
1270
|
+
const deadline = Date.parse(input.deadline);
|
|
1271
|
+
if (!Number.isFinite(Date.parse(input.now)) || !Number.isFinite(deadline)) return false;
|
|
1272
|
+
return input.schedule.every((row) => Date.parse(row.dueAt) < deadline);
|
|
1273
|
+
}
|
|
1274
|
+
/** Later obligations are identified by their state, never their position. */
|
|
1275
|
+
function getBookingLaterInstalments(schedule) {
|
|
1276
|
+
return schedule.filter((row) => row.stateAtBooking === "scheduled");
|
|
1277
|
+
}
|
|
1278
|
+
//#endregion
|
|
1279
|
+
//#region ../commerce/src/purchase/bookingPaymentSelection.ts
|
|
1280
|
+
/** Identity is decided against the authoritative quote, before display repricing. */
|
|
1281
|
+
function resolveAvailableBookingCollectionOptions(input) {
|
|
1282
|
+
const deadline = input.instalmentCollectionDeadlineAt === void 0 ? input.bookingStartAt : input.instalmentCollectionDeadlineAt;
|
|
1283
|
+
const configured = input.paymentTerms.allowedOptions;
|
|
1284
|
+
if (!validateBookingPaymentOptionKinds(configured.map((option) => option.kind)).ok) return [];
|
|
1285
|
+
const available = configured.filter((option) => option.kind !== "instalment_plan" || Number.isFinite(Date.parse(input.now))).map((option) => resolveBookingCollectionOptionFacts({
|
|
1286
|
+
option,
|
|
1287
|
+
totalCents: input.totalCents,
|
|
1288
|
+
anchorAt: input.now,
|
|
1289
|
+
bookingStartAt: input.bookingStartAt
|
|
1290
|
+
})).filter((option) => option.kind !== "instalment_plan" || deadline !== null && canInstalmentPlanCompleteBefore({
|
|
1291
|
+
now: input.now,
|
|
1292
|
+
deadline,
|
|
1293
|
+
schedule: option.schedule
|
|
1294
|
+
}));
|
|
1295
|
+
const upfront = resolveBookingCollectionOptionFacts({
|
|
1296
|
+
option: { kind: "upfront" },
|
|
1297
|
+
totalCents: input.totalCents,
|
|
1298
|
+
anchorAt: input.now,
|
|
1299
|
+
bookingStartAt: input.bookingStartAt
|
|
1300
|
+
});
|
|
1301
|
+
const collapsed = available.map((option) => isBookingCollectionEquivalentToUpfront(option) ? upfront : option);
|
|
1302
|
+
const unique = collapsed.filter((option, index) => collapsed.findIndex((other) => other.kind === option.kind) === index);
|
|
1303
|
+
return unique.length > 0 ? unique : [upfront];
|
|
1304
|
+
}
|
|
1305
|
+
function isBookingCollectionEquivalentToUpfront(option) {
|
|
1306
|
+
switch (option.kind) {
|
|
1307
|
+
case "upfront": return true;
|
|
1308
|
+
case "deferred_manual": return false;
|
|
1309
|
+
case "flexible_balance": return option.config.depositRefundability === "refundable" && option.dueNowCents === option.totalCents;
|
|
1310
|
+
case "instalment_plan": return option.depositRefundability !== "non_refundable" && option.schedule.length === 1;
|
|
1311
|
+
default: return assertNever(option);
|
|
1312
|
+
}
|
|
1313
|
+
}
|
|
1314
|
+
function resolveBookingCollectionOptionFacts(input) {
|
|
1315
|
+
const money = {
|
|
1316
|
+
totalCents: input.totalCents,
|
|
1317
|
+
anchorAt: input.anchorAt,
|
|
1318
|
+
bookingStartAt: input.bookingStartAt
|
|
1319
|
+
};
|
|
1320
|
+
switch (input.option.kind) {
|
|
1321
|
+
case "upfront": return {
|
|
1322
|
+
...money,
|
|
1323
|
+
kind: "upfront",
|
|
1324
|
+
dueNowCents: input.totalCents
|
|
1325
|
+
};
|
|
1326
|
+
case "deferred_manual": return {
|
|
1327
|
+
...money,
|
|
1328
|
+
kind: "deferred_manual",
|
|
1329
|
+
dueNowCents: 0
|
|
1330
|
+
};
|
|
1331
|
+
case "instalment_plan": {
|
|
1332
|
+
const schedule = buildBookingInstalmentSchedule({
|
|
1333
|
+
anchorAt: input.anchorAt,
|
|
1334
|
+
totalAmountCents: input.totalCents,
|
|
1335
|
+
plan: input.option.plan
|
|
1336
|
+
});
|
|
1337
|
+
return {
|
|
1338
|
+
...money,
|
|
1339
|
+
kind: "instalment_plan",
|
|
1340
|
+
plan: input.option.plan,
|
|
1341
|
+
schedule,
|
|
1342
|
+
dueNowCents: schedule[0]?.amountCents ?? 0,
|
|
1343
|
+
depositRefundability: getBookingInstalmentDepositRefundability(input.option.plan)
|
|
1344
|
+
};
|
|
1345
|
+
}
|
|
1346
|
+
case "flexible_balance": {
|
|
1347
|
+
const dueNowCents = resolveFlexibleBalanceInitialPaymentCents({
|
|
1348
|
+
totalAmountCents: input.totalCents,
|
|
1349
|
+
config: input.option.config
|
|
1350
|
+
});
|
|
1351
|
+
return {
|
|
1352
|
+
...money,
|
|
1353
|
+
kind: "flexible_balance",
|
|
1354
|
+
config: input.option.config,
|
|
1355
|
+
dueNowCents,
|
|
1356
|
+
remainingBalanceCents: Math.max(0, input.totalCents - dueNowCents),
|
|
1357
|
+
balanceDueAt: resolveFlexibleBalanceDueAt({
|
|
1358
|
+
bookingStartAt: input.bookingStartAt ?? input.anchorAt,
|
|
1359
|
+
dueDateRule: input.option.config.dueDateRule
|
|
1360
|
+
})
|
|
1361
|
+
};
|
|
1362
|
+
}
|
|
1363
|
+
default: return assertNever(input.option);
|
|
1364
|
+
}
|
|
1365
|
+
}
|
|
1366
|
+
/** Discounts change preview money, never an already admitted collection identity. */
|
|
1367
|
+
function repriceBookingCollectionOptions(input) {
|
|
1368
|
+
return input.options.map((option) => option.totalCents === input.totalCents ? option : resolveBookingCollectionOptionFacts({
|
|
1369
|
+
option,
|
|
1370
|
+
totalCents: input.totalCents,
|
|
1371
|
+
anchorAt: option.anchorAt,
|
|
1372
|
+
bookingStartAt: option.bookingStartAt
|
|
1373
|
+
}));
|
|
1374
|
+
}
|
|
1375
|
+
//#endregion
|
|
1376
|
+
//#region ../commerce/src/purchase/checkoutPaymentFlow.ts
|
|
1377
|
+
function planCheckoutPaymentFlow(options) {
|
|
1378
|
+
const amountDueCents = toNonNegativeCents(options.amountDueCents);
|
|
1379
|
+
const discountCents = toNonNegativeCents(options.discountCents);
|
|
1380
|
+
const availableCreditCents = toNonNegativeCents(options.availableCreditCents);
|
|
1381
|
+
const minimumStripeChargeCents = toNonNegativeCents(options.minimumStripeChargeCents ?? 0);
|
|
1382
|
+
if (amountDueCents <= 0) return {
|
|
1383
|
+
kind: "bypass",
|
|
1384
|
+
bypassReason: discountCents > 0 ? "discount_free" : "free",
|
|
1385
|
+
reserveCreditCents: 0
|
|
1386
|
+
};
|
|
1387
|
+
if (!options.creditCurrencyMatches || availableCreditCents <= 0) return {
|
|
1388
|
+
kind: "stripe",
|
|
1389
|
+
reserveCreditCents: toNonNegativeCents(0)
|
|
1390
|
+
};
|
|
1391
|
+
if (availableCreditCents >= amountDueCents) return {
|
|
1392
|
+
kind: "store_credit_only",
|
|
1393
|
+
reserveCreditCents: amountDueCents
|
|
1394
|
+
};
|
|
1395
|
+
return {
|
|
1396
|
+
kind: "stripe",
|
|
1397
|
+
reserveCreditCents: planMixedPaymentCreditReservation({
|
|
1398
|
+
amountDueCents,
|
|
1399
|
+
availableCreditCents,
|
|
1400
|
+
minimumStripeChargeCents
|
|
1401
|
+
})
|
|
1402
|
+
};
|
|
1403
|
+
}
|
|
1404
|
+
function planMixedPaymentCreditReservation(input) {
|
|
1405
|
+
const chargeAfterFullCredit = input.amountDueCents - input.availableCreditCents;
|
|
1406
|
+
if (input.minimumStripeChargeCents <= 0 || chargeAfterFullCredit <= 0 || chargeAfterFullCredit >= input.minimumStripeChargeCents) return input.availableCreditCents;
|
|
1407
|
+
if (input.amountDueCents < input.minimumStripeChargeCents) return toNonNegativeCents(0);
|
|
1408
|
+
return toNonNegativeCents(input.amountDueCents - input.minimumStripeChargeCents);
|
|
1409
|
+
}
|
|
1410
|
+
/**
|
|
1411
|
+
* Apply site credit to a flexible-balance booking before card payment.
|
|
1412
|
+
*
|
|
1413
|
+
* Credit first reduces the configured payment due now. Once that payment is
|
|
1414
|
+
* covered, any remaining credit reduces the later balance. If a partial credit
|
|
1415
|
+
* application would leave a positive card charge below Stripe's minimum, less
|
|
1416
|
+
* credit is used so the configured payment can still be collected.
|
|
1417
|
+
*/
|
|
1418
|
+
function planFlexibleBalanceCreditFirst(input) {
|
|
1419
|
+
const totalCents = toNonNegativeCents(input.totalAfterDiscountCents);
|
|
1420
|
+
const configuredDueNowCents = toNonNegativeCents(Math.min(input.configuredPaymentDueNowCents, totalCents));
|
|
1421
|
+
const availableCreditCents = toNonNegativeCents(input.creditCurrencyMatches ? input.availableCreditCents : 0);
|
|
1422
|
+
const minimumStripeChargeCents = toNonNegativeCents(input.minimumStripeChargeCents ?? 0);
|
|
1423
|
+
if (availableCreditCents >= totalCents && totalCents > 0) return {
|
|
1424
|
+
kind: "credit_only",
|
|
1425
|
+
reserveCreditCents: totalCents,
|
|
1426
|
+
cardDueNowCents: toNonNegativeCents(0),
|
|
1427
|
+
laterBalanceCents: toNonNegativeCents(0)
|
|
1428
|
+
};
|
|
1429
|
+
let reserveCreditCents = toNonNegativeCents(Math.min(availableCreditCents, totalCents));
|
|
1430
|
+
if (reserveCreditCents >= configuredDueNowCents) return {
|
|
1431
|
+
kind: "flexible_balance",
|
|
1432
|
+
reserveCreditCents,
|
|
1433
|
+
cardDueNowCents: toNonNegativeCents(0),
|
|
1434
|
+
laterBalanceCents: toNonNegativeCents(totalCents - reserveCreditCents)
|
|
1435
|
+
};
|
|
1436
|
+
const plannedCardDueNowCents = toNonNegativeCents(configuredDueNowCents - reserveCreditCents);
|
|
1437
|
+
if (plannedCardDueNowCents > 0 && plannedCardDueNowCents < minimumStripeChargeCents) {
|
|
1438
|
+
if (configuredDueNowCents < minimumStripeChargeCents) return {
|
|
1439
|
+
kind: "card_below_minimum",
|
|
1440
|
+
reserveCreditCents: toNonNegativeCents(0),
|
|
1441
|
+
cardDueNowCents: configuredDueNowCents,
|
|
1442
|
+
laterBalanceCents: toNonNegativeCents(totalCents - configuredDueNowCents)
|
|
1443
|
+
};
|
|
1444
|
+
reserveCreditCents = toNonNegativeCents(configuredDueNowCents - minimumStripeChargeCents);
|
|
1445
|
+
}
|
|
1446
|
+
const cardDueNowCents = toNonNegativeCents(configuredDueNowCents - reserveCreditCents);
|
|
1447
|
+
return {
|
|
1448
|
+
kind: "flexible_balance",
|
|
1449
|
+
reserveCreditCents,
|
|
1450
|
+
cardDueNowCents,
|
|
1451
|
+
laterBalanceCents: toNonNegativeCents(totalCents - reserveCreditCents - cardDueNowCents)
|
|
1452
|
+
};
|
|
1453
|
+
}
|
|
1454
|
+
//#endregion
|
|
1455
|
+
//#region ../commerce/src/purchase/stripeMinimumCharge.ts
|
|
1456
|
+
const STRIPE_MINIMUM_CHARGE_CENTS_BY_CURRENCY = {
|
|
1457
|
+
GBP: 30,
|
|
1458
|
+
USD: 50,
|
|
1459
|
+
EUR: 50,
|
|
1460
|
+
AED: 200,
|
|
1461
|
+
AUD: 50,
|
|
1462
|
+
BGN: 100,
|
|
1463
|
+
BRL: 50,
|
|
1464
|
+
CAD: 50,
|
|
1465
|
+
CHF: 50,
|
|
1466
|
+
CZK: 1500,
|
|
1467
|
+
DKK: 250,
|
|
1468
|
+
HKD: 400,
|
|
1469
|
+
HUF: 17500,
|
|
1470
|
+
JPY: 50,
|
|
1471
|
+
MXN: 1e3,
|
|
1472
|
+
MYR: 200,
|
|
1473
|
+
NOK: 300,
|
|
1474
|
+
NZD: 50,
|
|
1475
|
+
PLN: 200,
|
|
1476
|
+
RON: 200,
|
|
1477
|
+
SEK: 300,
|
|
1478
|
+
SGD: 50,
|
|
1479
|
+
THB: 1e3
|
|
1480
|
+
};
|
|
1481
|
+
function isStripeMinimumChargeCurrency(currency) {
|
|
1482
|
+
return currency in STRIPE_MINIMUM_CHARGE_CENTS_BY_CURRENCY;
|
|
1483
|
+
}
|
|
1484
|
+
function getStripeMinimumChargeRequirement(rawCurrency) {
|
|
1485
|
+
let currency;
|
|
1486
|
+
try {
|
|
1487
|
+
currency = normalizeCurrencyCode(rawCurrency);
|
|
1488
|
+
} catch {
|
|
1489
|
+
return null;
|
|
1490
|
+
}
|
|
1491
|
+
const currencyKey = currency;
|
|
1492
|
+
if (!isStripeMinimumChargeCurrency(currencyKey)) return null;
|
|
1493
|
+
return {
|
|
1494
|
+
currency,
|
|
1495
|
+
minimumAmountCents: STRIPE_MINIMUM_CHARGE_CENTS_BY_CURRENCY[currencyKey]
|
|
1496
|
+
};
|
|
1497
|
+
}
|
|
1498
|
+
//#endregion
|
|
1499
|
+
//#region ../commerce/src/purchase/checkoutCopy.ts
|
|
1500
|
+
/**
|
|
1501
|
+
* Customer copy shared by checkout surfaces, so one approved wording reaches
|
|
1502
|
+
* every place that shows it.
|
|
1503
|
+
*/
|
|
1504
|
+
const checkoutCopy = {
|
|
1505
|
+
/** A payment is still being confirmed; checking again is safe. */
|
|
1506
|
+
checkoutStillConfirming: "We’re still confirming your payment. This can take a minute – you can check again, and you won’t be charged twice.",
|
|
1507
|
+
/** A previous attempt can't be confirmed automatically; the business needs to check it. */
|
|
1508
|
+
checkoutAssistanceRequired: "We can’t confirm your last payment attempt yet. Please don’t pay again – contact the business so they can check it."
|
|
1509
|
+
};
|
|
1157
1510
|
const unsupportedEventRegistrationPageSurfaceSubjectSchema = z.object({
|
|
1158
1511
|
kind: z.literal("unsupported"),
|
|
1159
1512
|
reason: z.enum([
|
|
@@ -1549,7 +1902,7 @@ function deriveBookingFormViewState(input) {
|
|
|
1549
1902
|
kind: "success",
|
|
1550
1903
|
resourceName: input.verificationState.resourceName
|
|
1551
1904
|
};
|
|
1552
|
-
default: return assertNever$
|
|
1905
|
+
default: return assertNever$2(input.verificationState);
|
|
1553
1906
|
}
|
|
1554
1907
|
}
|
|
1555
1908
|
function resolveBookingSiteId(siteId, form) {
|
|
@@ -1915,7 +2268,7 @@ function formatBookingSubmissionPreparationError(error) {
|
|
|
1915
2268
|
case "sliding-amount-out-of-range": return `Please choose an amount within the sliding scale for "${error.serviceTitle}".`;
|
|
1916
2269
|
case "payment-option-unsupported": return `Service "${error.serviceTitle}" has a payment option that is not supported yet.`;
|
|
1917
2270
|
case "service-missing-duration": return `Service "${error.serviceTitle}" is missing duration. Please update the service in the dashboard to include a duration (e.g., 30 minutes).`;
|
|
1918
|
-
default: return assertNever$
|
|
2271
|
+
default: return assertNever$2(error);
|
|
1919
2272
|
}
|
|
1920
2273
|
}
|
|
1921
2274
|
const DEFAULT_BOOKING_SUCCESS_COPY = {
|
|
@@ -2775,59 +3128,6 @@ function eventLocalDateKey(event) {
|
|
|
2775
3128
|
}));
|
|
2776
3129
|
}
|
|
2777
3130
|
//#endregion
|
|
2778
|
-
//#region ../blocks/src/primitives/content/utils/sanitizeHref.ts
|
|
2779
|
-
const SAFE_PROTOCOLS = /* @__PURE__ */ new Set([
|
|
2780
|
-
"http:",
|
|
2781
|
-
"https:",
|
|
2782
|
-
"mailto:",
|
|
2783
|
-
"tel:"
|
|
2784
|
-
]);
|
|
2785
|
-
const CONTROL_CHARS_PATTERN = /[\u0000-\u001F\u007F]+/g;
|
|
2786
|
-
function normalizeInput(value) {
|
|
2787
|
-
return value.replace(CONTROL_CHARS_PATTERN, "").trim();
|
|
2788
|
-
}
|
|
2789
|
-
function decodeForSchemeCheck(value) {
|
|
2790
|
-
try {
|
|
2791
|
-
return decodeURIComponent(value);
|
|
2792
|
-
} catch {
|
|
2793
|
-
return value;
|
|
2794
|
-
}
|
|
2795
|
-
}
|
|
2796
|
-
/**
|
|
2797
|
-
* Returns a safe href for rich-text anchors, or null when the value should not be rendered.
|
|
2798
|
-
*
|
|
2799
|
-
* Policy:
|
|
2800
|
-
* - Allow absolute URLs with protocols: http, https, mailto, tel.
|
|
2801
|
-
* - Allow root-relative ("/path") and hash-only ("#section") links.
|
|
2802
|
-
* - Reject protocol-relative URLs ("//example.com"), bare domains ("example.com"),
|
|
2803
|
-
* backslashes, executable schemes (javascript/data/vbscript), malformed URLs, and empty values.
|
|
2804
|
-
* - Preserve percent-encoding from the original normalized input.
|
|
2805
|
-
*/
|
|
2806
|
-
function sanitizeHref(raw) {
|
|
2807
|
-
if (typeof raw !== "string") return null;
|
|
2808
|
-
const normalized = normalizeInput(raw);
|
|
2809
|
-
if (!normalized) return null;
|
|
2810
|
-
if (normalized.includes("\\") || normalized.startsWith("//")) return null;
|
|
2811
|
-
if (normalized.startsWith("/")) return normalized;
|
|
2812
|
-
if (normalized.startsWith("#")) return normalized;
|
|
2813
|
-
return sanitizeAbsoluteHref(normalized);
|
|
2814
|
-
}
|
|
2815
|
-
function sanitizeAbsoluteHref(normalized) {
|
|
2816
|
-
const schemeMatch = normalizeInput(decodeForSchemeCheck(normalized)).match(/^([a-zA-Z][a-zA-Z0-9+.-]*):/);
|
|
2817
|
-
if (!schemeMatch) return null;
|
|
2818
|
-
const rawScheme = schemeMatch[1];
|
|
2819
|
-
if (!rawScheme) return null;
|
|
2820
|
-
const protocol = `${rawScheme.toLowerCase()}:`;
|
|
2821
|
-
if (!SAFE_PROTOCOLS.has(protocol)) return null;
|
|
2822
|
-
try {
|
|
2823
|
-
const parsed = new URL(normalized);
|
|
2824
|
-
if (!SAFE_PROTOCOLS.has(parsed.protocol.toLowerCase())) return null;
|
|
2825
|
-
} catch {
|
|
2826
|
-
return null;
|
|
2827
|
-
}
|
|
2828
|
-
return normalized;
|
|
2829
|
-
}
|
|
2830
|
-
//#endregion
|
|
2831
3131
|
//#region ../blocks/src/system/media/slotContracts.ts
|
|
2832
3132
|
const DEFAULT_MIN_SOURCE_WIDTH = 1200;
|
|
2833
3133
|
const LARGE_MIN_SOURCE_WIDTH = 1400;
|
|
@@ -3899,14 +4199,31 @@ function mediaImageHostProps(props, style) {
|
|
|
3899
4199
|
};
|
|
3900
4200
|
}
|
|
3901
4201
|
//#endregion
|
|
3902
|
-
//#region ../blocks/src/primitives/content/
|
|
4202
|
+
//#region ../blocks/src/primitives/content/richTextImageSize.ts
|
|
3903
4203
|
function parseDimension(value) {
|
|
3904
|
-
|
|
3905
|
-
|
|
3906
|
-
const parsed = Number(value);
|
|
3907
|
-
if (Number.isFinite(parsed) && parsed > 0) return Math.round(parsed);
|
|
3908
|
-
}
|
|
4204
|
+
const parsed = typeof value === "number" || typeof value === "string" ? Number(value) : NaN;
|
|
4205
|
+
return Number.isFinite(parsed) && parsed > 0 ? Math.round(parsed) : void 0;
|
|
3909
4206
|
}
|
|
4207
|
+
/** View and editor images must request the same resource to preserve browser cache reuse. */
|
|
4208
|
+
function getRichTextImageSize(attrs) {
|
|
4209
|
+
const width = parseDimension(attrs.width);
|
|
4210
|
+
const height = parseDimension(attrs.height);
|
|
4211
|
+
return {
|
|
4212
|
+
width,
|
|
4213
|
+
height,
|
|
4214
|
+
urlOptions: width ? {
|
|
4215
|
+
width,
|
|
4216
|
+
resize: "contain",
|
|
4217
|
+
quality: 85
|
|
4218
|
+
} : height ? {
|
|
4219
|
+
height,
|
|
4220
|
+
resize: "contain",
|
|
4221
|
+
quality: 85
|
|
4222
|
+
} : ImagePresets.full
|
|
4223
|
+
};
|
|
4224
|
+
}
|
|
4225
|
+
//#endregion
|
|
4226
|
+
//#region ../blocks/src/primitives/content/components/RichText.tsx
|
|
3910
4227
|
function normalizeRel(target, rel) {
|
|
3911
4228
|
const normalizedRel = rel?.trim();
|
|
3912
4229
|
if (target !== "_blank") return normalizedRel && normalizedRel.length > 0 ? normalizedRel : void 0;
|
|
@@ -3923,6 +4240,8 @@ function renderMarks(text, marks, key, context) {
|
|
|
3923
4240
|
case "strong": return /* @__PURE__ */ jsx("strong", { children: acc }, `${key}-b`);
|
|
3924
4241
|
case "italic":
|
|
3925
4242
|
case "em": return /* @__PURE__ */ jsx("em", { children: acc }, `${key}-i`);
|
|
4243
|
+
case "strike": return /* @__PURE__ */ jsx("s", { children: acc }, `${key}-s`);
|
|
4244
|
+
case "code": return /* @__PURE__ */ jsx("code", { children: acc }, `${key}-c`);
|
|
3926
4245
|
case "link": return renderLinkMark(mark, acc, key, context);
|
|
3927
4246
|
default: return acc;
|
|
3928
4247
|
}
|
|
@@ -3971,10 +4290,21 @@ function renderHeading(node, key, children, context) {
|
|
|
3971
4290
|
...level === 2 ? listLookSlot(context, "heading") : {}
|
|
3972
4291
|
}, children);
|
|
3973
4292
|
}
|
|
4293
|
+
function orderedListStart(value) {
|
|
4294
|
+
return typeof value === "number" && Number.isInteger(value) && value > 0 ? value : void 0;
|
|
4295
|
+
}
|
|
4296
|
+
function orderedListType(value) {
|
|
4297
|
+
return value === "1" || value === "a" || value === "A" || value === "i" || value === "I" ? value : void 0;
|
|
4298
|
+
}
|
|
3974
4299
|
function renderSimpleNode(node, key, children, context) {
|
|
3975
4300
|
switch (node.type) {
|
|
3976
4301
|
case "bulletList": return /* @__PURE__ */ jsx("ul", { children }, key);
|
|
3977
|
-
case "orderedList": return /* @__PURE__ */ jsx("ol", {
|
|
4302
|
+
case "orderedList": return /* @__PURE__ */ jsx("ol", {
|
|
4303
|
+
start: orderedListStart(node.attrs?.start),
|
|
4304
|
+
type: orderedListType(node.attrs?.type),
|
|
4305
|
+
children
|
|
4306
|
+
}, key);
|
|
4307
|
+
case "codeBlock": return /* @__PURE__ */ jsx("pre", { children: /* @__PURE__ */ jsx("code", { children }) }, key);
|
|
3978
4308
|
case "listItem": return /* @__PURE__ */ jsx("li", { children }, key);
|
|
3979
4309
|
case "horizontalRule": return /* @__PURE__ */ jsx("hr", {}, key);
|
|
3980
4310
|
case "hardBreak": return /* @__PURE__ */ jsx("br", {}, key);
|
|
@@ -3982,36 +4312,22 @@ function renderSimpleNode(node, key, children, context) {
|
|
|
3982
4312
|
default: return null;
|
|
3983
4313
|
}
|
|
3984
4314
|
}
|
|
3985
|
-
function
|
|
3986
|
-
if (width) return {
|
|
3987
|
-
width,
|
|
3988
|
-
resize: "contain",
|
|
3989
|
-
quality: 85
|
|
3990
|
-
};
|
|
3991
|
-
if (height) return {
|
|
3992
|
-
height,
|
|
3993
|
-
resize: "contain",
|
|
3994
|
-
quality: 85
|
|
3995
|
-
};
|
|
3996
|
-
return ImagePresets.full;
|
|
3997
|
-
}
|
|
3998
|
-
function resolveRichTextImageSource(attrs, width, height, context) {
|
|
4315
|
+
function resolveRichTextImageSource(attrs, context) {
|
|
3999
4316
|
if (attrs.identifier !== void 0 && attrs.identifier !== null) {
|
|
4000
4317
|
const parsed = parseCanonicalMediaIdentifier(attrs.identifier);
|
|
4001
4318
|
if (!parsed.ok) return void 0;
|
|
4002
4319
|
if (context?.mediaAssetIndex) return resolveImageUrlWithContext({
|
|
4003
4320
|
type: "image",
|
|
4004
4321
|
identifier: parsed.value
|
|
4005
|
-
},
|
|
4322
|
+
}, getRichTextImageSize(attrs).urlOptions, context);
|
|
4006
4323
|
return typeof attrs.src === "string" ? attrs.src.trim() || void 0 : void 0;
|
|
4007
4324
|
}
|
|
4008
4325
|
return typeof attrs.src === "string" ? attrs.src.trim() || void 0 : void 0;
|
|
4009
4326
|
}
|
|
4010
4327
|
function renderRichTextImage(node, key, context) {
|
|
4011
4328
|
const attrs = node.attrs ?? {};
|
|
4012
|
-
const width =
|
|
4013
|
-
const
|
|
4014
|
-
const src = resolveRichTextImageSource(attrs, width, height, context.imageResolveContext);
|
|
4329
|
+
const { width, height } = getRichTextImageSize(attrs);
|
|
4330
|
+
const src = resolveRichTextImageSource(attrs, context.imageResolveContext);
|
|
4015
4331
|
if (!src) return null;
|
|
4016
4332
|
return /* @__PURE__ */ jsx("img", {
|
|
4017
4333
|
src,
|
|
@@ -4109,7 +4425,7 @@ function capacityPlacesLabel(source, display, wording) {
|
|
|
4109
4425
|
case "low": return formatRemainingPlaces(source, wording);
|
|
4110
4426
|
case "unlimited": return wording.unlimited ?? null;
|
|
4111
4427
|
case "open": return wording.open ?? null;
|
|
4112
|
-
default: return assertNever(remaining);
|
|
4428
|
+
default: return assertNever$1(remaining);
|
|
4113
4429
|
}
|
|
4114
4430
|
}
|
|
4115
4431
|
function hybridPlacesLabel(event, display, wording) {
|
|
@@ -4570,18 +4886,11 @@ function transformRegistrationOptionsResponse(response) {
|
|
|
4570
4886
|
registration: response.registration,
|
|
4571
4887
|
paymentOptions: response.paymentOptions,
|
|
4572
4888
|
isFree: response.paymentOptions.some((option) => option.kind === "free"),
|
|
4573
|
-
credit: response.customer.credit
|
|
4574
|
-
summary: {
|
|
4575
|
-
currency: response.customer.credit.currency,
|
|
4576
|
-
balanceCents: response.customer.credit.availableCents,
|
|
4577
|
-
reservedCents: 0,
|
|
4578
|
-
availableCents: response.customer.credit.availableCents
|
|
4579
|
-
},
|
|
4580
|
-
transactions: []
|
|
4581
|
-
} : null,
|
|
4889
|
+
credit: customerCredit(response.customer.credit),
|
|
4582
4890
|
requiresPayment: monetaryPaymentAvailable,
|
|
4583
4891
|
pricingStrategy: response.pricing.strategy,
|
|
4584
4892
|
paymentTerms: response.pricing.paymentTerms,
|
|
4893
|
+
instalmentCollectionDeadlineAt: response.pricing.instalmentCollectionDeadlineAt,
|
|
4585
4894
|
selectedPricingOptionId: response.pricing.lines.length === 1 ? response.pricing.lines[0]?.pricingOptionId ?? null : null,
|
|
4586
4895
|
ticketLines: response.pricing.lines.map((line) => ({
|
|
4587
4896
|
pricingOptionId: line.pricingOptionId,
|
|
@@ -4605,6 +4914,18 @@ function transformRegistrationOptionsResponse(response) {
|
|
|
4605
4914
|
availableMemberships: [...response.entitlements.availableForPurchase.memberships]
|
|
4606
4915
|
};
|
|
4607
4916
|
}
|
|
4917
|
+
function customerCredit(credit) {
|
|
4918
|
+
if (!credit) return null;
|
|
4919
|
+
return {
|
|
4920
|
+
summary: {
|
|
4921
|
+
currency: credit.currency,
|
|
4922
|
+
balanceCents: credit.availableCents,
|
|
4923
|
+
reservedCents: 0,
|
|
4924
|
+
availableCents: credit.availableCents
|
|
4925
|
+
},
|
|
4926
|
+
transactions: []
|
|
4927
|
+
};
|
|
4928
|
+
}
|
|
4608
4929
|
function hasMonetaryPaymentOption(response) {
|
|
4609
4930
|
return response.paymentOptions.some((option) => option.kind === "payInFull" || option.kind === "deferredManual" || option.kind === "instalmentPlan" || option.kind === "flexibleBalance");
|
|
4610
4931
|
}
|
|
@@ -4680,7 +5001,7 @@ function confirmationPaymentRows(payment) {
|
|
|
4680
5001
|
case "none": return [];
|
|
4681
5002
|
case "settled": return payment.rows;
|
|
4682
5003
|
case "due": return [...payment.paidRows, payment.amountDueRow];
|
|
4683
|
-
default: return assertNever(payment);
|
|
5004
|
+
default: return assertNever$1(payment);
|
|
4684
5005
|
}
|
|
4685
5006
|
}
|
|
4686
5007
|
function row(label, value) {
|
|
@@ -4728,7 +5049,7 @@ function presentConfirmationPayment(payment) {
|
|
|
4728
5049
|
rows: paidRows
|
|
4729
5050
|
} : duePayment(payment.balance, payment.currency, paidRows, payment.kind === "monetary" && payment.paymentMethod === "manual" ? OFFLINE_BOOKING_PAYMENT_INSTRUCTIONS : null);
|
|
4730
5051
|
}
|
|
4731
|
-
default: return assertNever(payment);
|
|
5052
|
+
default: return assertNever$1(payment);
|
|
4732
5053
|
}
|
|
4733
5054
|
}
|
|
4734
5055
|
/** Places and payment, only when the outcome carries the booking's details. */
|
|
@@ -4747,7 +5068,7 @@ function outcomeFacts(outcome) {
|
|
|
4747
5068
|
payment: presentConfirmationPayment(outcome.payment)
|
|
4748
5069
|
};
|
|
4749
5070
|
}
|
|
4750
|
-
default: return assertNever(outcome);
|
|
5071
|
+
default: return assertNever$1(outcome);
|
|
4751
5072
|
}
|
|
4752
5073
|
}
|
|
4753
5074
|
function scheduleRows(event, when, where, display) {
|
|
@@ -4834,7 +5155,7 @@ function resolveFinishedPresentation(presentation, context) {
|
|
|
4834
5155
|
case "paymentStatus":
|
|
4835
5156
|
case "paymentFailed":
|
|
4836
5157
|
case "error": return presentation;
|
|
4837
|
-
default: return assertNever(presentation);
|
|
5158
|
+
default: return assertNever$1(presentation);
|
|
4838
5159
|
}
|
|
4839
5160
|
}
|
|
4840
5161
|
//#endregion
|
|
@@ -4966,7 +5287,7 @@ function editRegistrationDraft(draft, edit) {
|
|
|
4966
5287
|
...draft,
|
|
4967
5288
|
selectedSlidingAmountInput: updated(draft.selectedSlidingAmountInput, edit.value)
|
|
4968
5289
|
};
|
|
4969
|
-
default: return assertNever$
|
|
5290
|
+
default: return assertNever$2(edit);
|
|
4970
5291
|
}
|
|
4971
5292
|
}
|
|
4972
5293
|
/** Ready invitations own their reserved selection; identity fields remain editable. */
|
|
@@ -5022,7 +5343,7 @@ function invitationSubmission(invitation) {
|
|
|
5022
5343
|
kind: "blocked",
|
|
5023
5344
|
message: invitation.message
|
|
5024
5345
|
};
|
|
5025
|
-
default: return assertNever$
|
|
5346
|
+
default: return assertNever$2(invitation);
|
|
5026
5347
|
}
|
|
5027
5348
|
}
|
|
5028
5349
|
//#endregion
|
|
@@ -5111,7 +5432,7 @@ function findClaimEvent(subject, events) {
|
|
|
5111
5432
|
switch (subject.kind) {
|
|
5112
5433
|
case "event_occurrence": return findEventByOccurrenceId(events, subject.occurrenceId);
|
|
5113
5434
|
case "whole_series": return events.find((event) => event.registrationSubject.kind === "wholeSeries" && event.registrationSubject.eventSeriesId === subject.eventSeriesId) ?? null;
|
|
5114
|
-
default: return assertNever$
|
|
5435
|
+
default: return assertNever$2(subject);
|
|
5115
5436
|
}
|
|
5116
5437
|
}
|
|
5117
5438
|
/** Reserved quantities and amounts have one interpretation across restoration and submission. */
|
|
@@ -5130,7 +5451,7 @@ function claimedSelection(subject) {
|
|
|
5130
5451
|
ticketsCount: subject.seatCount,
|
|
5131
5452
|
slidingAmountInput: subject.selectedSlidingAmount === null ? null : formatCentsAsCurrencyInput(subject.selectedSlidingAmount)
|
|
5132
5453
|
};
|
|
5133
|
-
default: return assertNever$
|
|
5454
|
+
default: return assertNever$2(subject);
|
|
5134
5455
|
}
|
|
5135
5456
|
}
|
|
5136
5457
|
function resolveWaitlistClaimRestoration(input) {
|
|
@@ -5193,7 +5514,7 @@ function buildBookingPaymentOptionViewModel(input) {
|
|
|
5193
5514
|
...input,
|
|
5194
5515
|
option: input.option
|
|
5195
5516
|
});
|
|
5196
|
-
default: return assertNever$
|
|
5517
|
+
default: return assertNever$2(input.option);
|
|
5197
5518
|
}
|
|
5198
5519
|
}
|
|
5199
5520
|
function depositPolicy(refundability) {
|
|
@@ -5380,7 +5701,7 @@ function projectReviewedBookingCollectionMoney(facts, terms) {
|
|
|
5380
5701
|
};
|
|
5381
5702
|
case "upfront":
|
|
5382
5703
|
case "deferred_manual": return money;
|
|
5383
|
-
default: return assertNever$
|
|
5704
|
+
default: return assertNever$2(facts);
|
|
5384
5705
|
}
|
|
5385
5706
|
}
|
|
5386
5707
|
function requireReviewedLaterPaymentAmount(terms, index) {
|
|
@@ -5599,7 +5920,7 @@ function resolveHeadlessEventRegistrationStatus(wizard) {
|
|
|
5599
5920
|
case "select-tickets":
|
|
5600
5921
|
case "enter-details":
|
|
5601
5922
|
case "select-payment": return { tag: "ready" };
|
|
5602
|
-
default: return assertNever$
|
|
5923
|
+
default: return assertNever$2(wizard.flow);
|
|
5603
5924
|
}
|
|
5604
5925
|
}
|
|
5605
5926
|
function registrationSurfaceUnavailable(wizard) {
|
|
@@ -5644,7 +5965,7 @@ function resolveHeadlessEventRegistrationView(wizard) {
|
|
|
5644
5965
|
case "select-payment":
|
|
5645
5966
|
case "submitting":
|
|
5646
5967
|
case "payment": return { kind: "form" };
|
|
5647
|
-
default: return assertNever$
|
|
5968
|
+
default: return assertNever$2(wizard.flow);
|
|
5648
5969
|
}
|
|
5649
5970
|
}
|
|
5650
5971
|
function deriveEventRegistrationSteps(input) {
|
|
@@ -5954,6 +6275,7 @@ function buildEventRegistrationPaymentOptionsViewModel(input) {
|
|
|
5954
6275
|
options: resolveAvailableBookingCollectionOptions({
|
|
5955
6276
|
paymentTerms: { allowedOptions: approvedOptions },
|
|
5956
6277
|
now: input.nowIso,
|
|
6278
|
+
instalmentCollectionDeadlineAt: input.instalmentCollectionDeadlineAt,
|
|
5957
6279
|
bookingStartAt: input.startsAt ?? null,
|
|
5958
6280
|
totalCents: input.quotedSubtotalCents
|
|
5959
6281
|
}),
|
|
@@ -6280,7 +6602,7 @@ function reduceActiveRegistration(state, action) {
|
|
|
6280
6602
|
step: "select-tickets"
|
|
6281
6603
|
} : state;
|
|
6282
6604
|
case "event-replaced": return replaceRegistrationEvent(state, action);
|
|
6283
|
-
default: return assertNever$
|
|
6605
|
+
default: return assertNever$2(action);
|
|
6284
6606
|
}
|
|
6285
6607
|
}
|
|
6286
6608
|
function isRegistrationLocked(step) {
|
|
@@ -6304,7 +6626,7 @@ function updateRegistrationDraft(state, action) {
|
|
|
6304
6626
|
...state,
|
|
6305
6627
|
eligibility: action.eligibility
|
|
6306
6628
|
};
|
|
6307
|
-
default: return assertNever$
|
|
6629
|
+
default: return assertNever$2(action);
|
|
6308
6630
|
}
|
|
6309
6631
|
}
|
|
6310
6632
|
/**
|
|
@@ -6392,7 +6714,7 @@ function reduceCompletedRegistration(state, action) {
|
|
|
6392
6714
|
case "set-manual-payment-selection":
|
|
6393
6715
|
case "use-card-instead-of-pass":
|
|
6394
6716
|
case "use-pass": return state;
|
|
6395
|
-
default: return assertNever$
|
|
6717
|
+
default: return assertNever$2(action);
|
|
6396
6718
|
}
|
|
6397
6719
|
}
|
|
6398
6720
|
/** A lookup can restore only the active request, never a completed or replaced draft. */
|
|
@@ -6448,10 +6770,10 @@ function applyWaitlistClaimLookup(state, action) {
|
|
|
6448
6770
|
action: "none"
|
|
6449
6771
|
}
|
|
6450
6772
|
};
|
|
6451
|
-
default: return assertNever$
|
|
6773
|
+
default: return assertNever$2(restoration);
|
|
6452
6774
|
}
|
|
6453
6775
|
}
|
|
6454
|
-
default: return assertNever$
|
|
6776
|
+
default: return assertNever$2(lookup);
|
|
6455
6777
|
}
|
|
6456
6778
|
}
|
|
6457
6779
|
/** Completion remembers places; resetting the draft leaves this visit's outcomes intact. */
|
|
@@ -6546,7 +6868,7 @@ function registrationPresentation(state, route) {
|
|
|
6546
6868
|
layout: "whole",
|
|
6547
6869
|
screen: "paymentFailed"
|
|
6548
6870
|
};
|
|
6549
|
-
default: return assertNever$
|
|
6871
|
+
default: return assertNever$2(step);
|
|
6550
6872
|
}
|
|
6551
6873
|
}
|
|
6552
6874
|
/**
|
|
@@ -6601,4 +6923,4 @@ function registrationStepLabel(step, context) {
|
|
|
6601
6923
|
}
|
|
6602
6924
|
}
|
|
6603
6925
|
//#endregion
|
|
6604
|
-
export { getEligibilityFlowFlags as $,
|
|
6926
|
+
export { getEligibilityFlowFlags as $, selectedBookingCollectionOptionKind as $n, formatBookingPriceDisplay as $r, resolveImageSourceSetWithContext as $t, isEventRegistrationAvailable as A, selectEventCapacitySource as An, isDecodeSuccess as Ar, getTicketSelectionTotal as At, paymentChoiceDetails as B, getBookingServiceSlidingScale as Bn, CANCELLED_SESSION_STATUS as Br, registrationDisplaySchema as Bt, resolveGuestNextStepCheck as C, formatEventRemainingPlaces as Cn, defineInteractiveIslandMetaKeys as Cr, occurrenceTitleOverride as Ct, settledRemainingPlaces as D, getEventAvailabilityStatus as Dn, createZodCodec as Dr, canRequestTicketOption as Dt, resolveRegistrationTicketContinuation as E, getEventAvailability as En, resolveEventRegistrationScopedEvents as Er, formatPrice as Et, toHeadlessPaymentSelection as F, readOverrideServiceCategories as Fn, resolvedItemSurfaceProps as Fr, getRegistrationStartAt as Ft, resolveRegistrationTarget as G, normalizeBookingFormConfig as Gn, parseMailingListRuntimeContext as Gr, getBlockApiReadStage as Gt, findPreSelectedEvent as H, getRegistrationSuccessCopy as Hn, orderedLiveRunSessions as Hr, shownVenue as Ht, toInternalPaymentSelection as I, deriveBookingFormViewState as In, itemRole as Ir, toRegistrationEvents as It, beginWaitlistInvitation as J, prepareBookingSubmission as Jn, DEFAULT_MAILING_LIST_SUCCESS_MESSAGE as Jr, MediaPlaceholder as Jt, resolveRouteRequiresPayment as K, normalizeBookingServices as Kn, resolveBookingSignupOffer as Kr, RichText as Kt, calculateEventRegistrationPreviewTotal as L, formatBookingCentsAsCurrencyInput as Ln, sanitizeHref as Lr, toWholeSeriesRegistrationEvent as Lt, resolveEventRegistrationSubmitPlan as M, groupPublicEventsByRun as Mn, listLookControl as Mr, hasValidPricingOptionSelection as Mt, resolveHeadlessEventRegistrationStatus as N, bookingFormInteractiveIslandPropsCodec as Nn, listLookSlot as Nr, normalizeTicketSelectionLines as Nt, visitorHoldsOwnPlace as O, getRemainingPlaces as On, defineClientOwnedBlockRuntime as Or, getSingleSelectedPricingOptionId as Ot, resolveHeadlessEventRegistrationView as P, buildBookingFormInteractiveIslandProps as Pn, lookListPresentationSchemaShape as Pr, setTicketLineQuantity as Pt, getCurrentTicketSelection as Q, resolveDefaultBookingServiceId as Qn, parseNewsletterListId as Qr, renderVideo as Qt, buildBookingPaymentSelectionViewModel as R, formatBookingSubmissionPreparationError as Rn, parseAspectRatioValue as Rr, toWholeSeriesRegistrationEvents as Rt, planRegistrationDetailsContinuation as S, canJoinEventWaitlistOnAnyMode as Sn, createInteractiveIslandCodec as Sr, getVisibleTicketTypes as St, resolveRegistrationAvailabilityBlocker as T, formatTotalCapacity as Tn, normalizeEventRegistrationPageSurfaceSubject as Tr, withOccurrenceTitle as Tt, resolveDiscountContext as U, getShopSuccessCopy as Un, resolveWholeSeriesBookingPhase as Ur, browserReadAuthoritySchema as Ut, paymentChoicePrice as V, getBookingSuccessCopy as Vn, nextLiveRunSessionStartMs as Vr, resolveRegistrationDisplay as Vt, resolveEventRequiresPayment as W, isBookingServiceSlidingAmountInRange as Wn, resolveWholeSeriesRunLifecycle as Wr, createHostedBlockApiConfig as Wt, invitationSubmission as X, resolveBookingPaymentStep as Xn, parseMailchimpAudienceId as Xr, mediaImageHostProps as Xt, createRegistrationDraftData as Y, resolveAppointmentCheckoutVerificationState as Yn, parseBrevoListId as Yr, computeMediaTransformStyle as Yt, formatCentsAsCurrencyInput as Z, resolveBookingSiteId as Zn, parseMailchimpInterestId as Zr, renderAudio as Zt, shouldPromptForLogin as _, formatTime$1 as _n, blockButtonRoleSchema as _r, formatRegistrationSchedule as _t, registrationPresentation as a, publicEventPricingType as ai, eventCalendarWeekStart as an, bookingNowSchema as ar, resolveHeldTicketPlaces as at, placeCountCeiling as b, resolveRuntimeEventDestination as bn, resolveDateRuntimeContext as br, getPortalSubjectEmail as bt, registrationStepLabelContext as c, parseSiteId as ci, eventLocalDateKey as cn, eventButtonVariantSchema as cr, confirmationPaymentRows as ct, decideEventChoice as d, formatEventClockLabel as dn, eventLayoutSchema as dr, areEntitlementsDisabledForTicketCount as dt, formatEventPricing as ei, resolveImageUrl as en, toSelectedCollectionOptionKind as er, getRegistrationOccurrenceId as et, getDeclinedPass as f, formatEventCompactDateRail as fn, filterAutoShowSchema as fr, findSelectedTicketType as ft, decideEventRegistrationPayment as g, formatEventTimeRange as gn, BLOCK_BUTTON_ROLE_OPTIONS as gr, formatPassCreditUsageLabel as gt, buildEventRegistrationPaymentOptionsViewModel as h, formatEventNextDateFact as hn, weekStartSchema as hr, formatEventDateTime as ht, registrationPaymentRoute as i, publicEventPricingStrategy as ii, buildCalendarViewport as in, BOOKING_FORM_DATA_RESERVED_KEY_VALUES as ir, parseCurrencyInputToCents as it, normalizeEventRegistrationMaxTickets as j, selectMostOpenCapacitySource as jn, listItemPresentation as jr, getTicketTypeLineMax as jt, deriveEventRegistrationSteps as k, isEventFull as kn, defineProgressiveBlockRuntime as kr, getTicketLineQuantity as kt, areEventRegistrationPaymentSelectionsEqual as l, unsafeAsSiteId as li, formatCalendarTitle as ln, eventCalendarDefaultViewSchema as lr, resolveFinishedPresentation as lt, registrationFlowReducer as m, formatEventHourLabel as mn, registrationButtonVariantSchema as mr, formatDate as mt, getEventSelectionMode as n, publicEventPricingCurrency as ni, resolveMediaNodeResponsiveImage as nn, resolveSelectedAppointmentConsent as nr, getSlidingScaleSelectionMessage as nt, registrationRoute as o, resolveExactOrFreePriceDisplay as oi, eventDateLocale as on, calendarTabViewsSchema as or, shouldLoadRegistrationOptions as ot, isRegistrationLocked as p, formatEventDateParts as pn, previewStageSchema as pr, formatBookingWhen as pt, toRegistrationRequestSubject as q, parseBookingCurrencyInputToCents as qn, DEFAULT_MAILING_LIST_PRIVACY_NOTE as qr, ImagePresets as qt, panelShouldOpen as r, publicEventPricingDisplay as ri, resolvePublicMediaUrl as rn, BOOKING_FORM_DATA_RESERVED_KEYS as rr, getTicketSelectionRemainingPlaces as rt, registrationStepLabel as s, resolvePricingOptionsPriceDisplay as si, eventDateOptions as sn, columnOptionSchema as sr, validateFormData as st, REGISTRATION_STEP_LABELS as t, isPublicEventPricingOptionDisplayable as ti, resolveImageUrlWithContext as tn, projectSelectedAppointmentConsentIntoForm as tr, getSlidingScaleForEvent as tt, createInitialRegistrationFlowState as u, parseEventSeriesId as ui, formatDate$1 as un, eventCalendarDisplayModeSchema as ur, ENTITLEMENT_SINGLE_TICKET_TOOLTIP as ut, fullyBookedLabel as v, groupEventsByDate as vn, isBlockButtonRole as vr, formatTime as vt, resolveRegistrationAdmission as w, formatRemainingPlaces as wn, eventRegistrationPageSurfaceSubjectSchema as wr, transformRegistrationOptionsResponse as wt, planRegistrationDetailsCheck as x, canJoinEventWaitlist as xn, buildInteractiveIslandProps as xr, getTicketTypeAvailabilityLabel as xt, getTicketSelectionPurpose as y, resolveEventTimeZone as yn, readRuntimeNow as yr, getImplicitSingleTicketType as yt, buildReviewedBookingPaymentViewModel as z, getBookingRedirectStateFromLocation as zn, isRecord$3 as zr, placesLeftLabel as zt };
|