@riverbankcms/sdk 0.148.0 → 0.150.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/EventEmbeddedCheckoutStep-D00Kc8Zj.mjs +285 -0
- package/dist/{PreviewEditorSidebar-DvEPG3Z2.mjs → PreviewEditorSidebar-7ZhmmnBB.mjs} +103 -66
- package/dist/{PreviewEditorUI-D6eb6fkx.mjs → PreviewEditorUI-BIJucTRd.mjs} +3 -6
- package/dist/{PreviewQueryProvider-5znTyJuz.mjs → PreviewQueryProvider-C0mndwHB.mjs} +3 -3
- package/dist/{SdkPreviewModeRuntime-DJ6utQ_R.mjs → SdkPreviewModeRuntime-tj45gmCX.mjs} +96 -67
- package/dist/{SiteChromeCustomizeContext-CFJYh6vo.mjs → SiteChromeCustomizeContext-BFOt0ss-.mjs} +4804 -4161
- package/dist/_dts/ai/src/contracts/proposals.d.ts +660 -0
- package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +510 -0
- package/dist/_dts/api/src/billing.d.ts +2 -2
- package/dist/_dts/api/src/bookingConfig.d.ts +33 -48
- package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +2 -6
- package/dist/_dts/api/src/bookingOperations.d.ts +5 -7
- package/dist/_dts/api/src/bookingRecords.d.ts +15 -11
- package/dist/_dts/api/src/bookingRefundOutcomes.d.ts +5 -5
- package/dist/_dts/api/src/clientErrorReporting.d.ts +11 -0
- package/dist/_dts/api/src/commercePortalEndpoints.d.ts +0 -2
- package/dist/_dts/api/src/common/cancellation.d.ts +23 -0
- package/dist/_dts/api/src/contentRuntime.d.ts +5 -1
- package/dist/_dts/api/src/customerMembershipOutcomes.d.ts +1 -1
- package/dist/_dts/api/src/endpoints.d.ts +2 -10
- package/dist/_dts/api/src/eventManagementContracts.d.ts +4 -7
- package/dist/_dts/api/src/footerCompositionContracts.d.ts +9 -0
- package/dist/_dts/api/src/footerSettings.d.ts +3 -3
- package/dist/_dts/api/src/index.d.ts +4 -4
- package/dist/_dts/api/src/navigation/bookingPortalLink.d.ts +13 -0
- package/dist/_dts/api/src/navigation.d.ts +1 -0
- package/dist/_dts/api/src/publicAppointmentBookingContracts.d.ts +2 -2
- package/dist/_dts/api/src/publicExperience/commerceEndpoints.d.ts +2 -29
- package/dist/_dts/api/src/publicExperience/eventEndpoints.d.ts +9 -173
- package/dist/_dts/api/src/request.d.ts +1 -1
- package/dist/_dts/api/src/sdk-event-upsert.d.ts +1 -1
- package/dist/_dts/api/src/sdkPullEventContracts.d.ts +1 -1
- package/dist/_dts/api/src/sdkThemeWire.d.ts +12 -0
- package/dist/_dts/api/src/siteManagementEndpoints.d.ts +3 -3
- package/dist/_dts/api/src/siteOperations.d.ts +6 -2
- package/dist/_dts/api/src/siteSettings.d.ts +2 -0
- package/dist/_dts/blocks/src/client/site-chrome.d.ts +1 -1
- package/dist/_dts/blocks/src/client.d.ts +2 -1
- package/dist/_dts/blocks/src/contracts/index.d.ts +1 -1
- package/dist/_dts/blocks/src/contracts/non-block-islands.d.ts +2 -2
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +38 -10
- package/dist/_dts/blocks/src/portal/types.d.ts +9 -6
- package/dist/_dts/blocks/src/rendering/server.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +24 -24
- package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/shared/bookingPaymentTerms.d.ts +84 -160
- package/dist/_dts/blocks/src/system/blocks/shop.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/shop.shared.d.ts +31 -4
- package/dist/_dts/blocks/src/system/blocks/site-footer-runtime.d.ts +30 -3
- package/dist/_dts/blocks/src/system/designCapabilities.d.ts +10 -1
- package/dist/_dts/blocks/src/system/runtime/api/index.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/api/types/appointments.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/api/types/core.d.ts +3 -1
- package/dist/_dts/blocks/src/system/runtime/api/types/events.d.ts +38 -18
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +48 -6
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +24 -3
- package/dist/_dts/blocks/src/system/runtime/hooks/useBookingNowIso.d.ts +8 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessEventRegistrationFlow.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.server.d.ts +6 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.state.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/commerce/shared/display.d.ts +9 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details/presentation.d.ts +14 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventEmbeddedCheckoutStep.d.ts +13 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationPayment.d.ts +15 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationWizardActions.d.ts +0 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/FullyBookedStep.d.ts +6 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/PaymentBlockingPanel.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/PaymentSelectionStep.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.contract.d.ts +15 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.planning.d.ts +4 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/eventPaymentOptions.d.ts +3 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/paymentLocation.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/paymentResponse.d.ts +72 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationCompletion.d.ts +66 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationErrorRecovery.d.ts +1 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationStateMachine.d.ts +13 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/sessionStorage.d.ts +11 -52
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/types.d.ts +19 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationStripeReturn.d.ts +7 -42
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationSubmit.d.ts +7 -8
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +94 -24
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useGuestRegistrationRecovery.d.ts +30 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/usePaymentStatusRecovery.d.ts +24 -12
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useRegistrationAdmission.d.ts +18 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/wizardSteps.d.ts +6 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +24 -24
- package/dist/_dts/blocks/src/system/runtime/nodes/shop.interactive.d.ts +41 -6
- package/dist/_dts/blocks/src/system/runtime/shared/bookingPaymentOptions.d.ts +7 -2
- package/dist/_dts/blocks/src/system/runtime/shared/stripe/browserStripe.d.ts +8 -0
- package/dist/_dts/blocks/src/system/transforms/registry/eventCalendar.d.ts +8 -0
- package/dist/_dts/commerce/src/purchase/bookingPaymentSelection.d.ts +54 -0
- package/dist/_dts/commerce/src/purchase/checkoutCommitPlan.d.ts +58 -13
- package/dist/_dts/commerce/src/purchase/checkoutCopy.d.ts +10 -0
- package/dist/_dts/commerce/src/purchase/checkoutErrorCodes.d.ts +1 -1
- package/dist/_dts/commerce/src/purchase/checkoutPaymentPlanPlanning.d.ts +16 -21
- package/dist/_dts/commerce/src/purchase/checkoutPaymentTerms.d.ts +23 -40
- package/dist/_dts/commerce/src/purchase/checkoutPresentation.d.ts +49 -0
- package/dist/_dts/commerce/src/purchase/checkoutSessionMetadata.d.ts +6 -6
- package/dist/_dts/commerce/src/purchase/checkoutStripeFinalizationPlanning.d.ts +5 -1
- package/dist/_dts/commerce/src/purchase/checkoutStripeSessionPlanning.d.ts +5 -4
- package/dist/_dts/commerce/src/purchase/event-registration-errors.d.ts +9 -0
- package/dist/_dts/commerce/src/purchase/index.d.ts +3 -3
- package/dist/_dts/commerce/src/purchase/membershipOrderItemMetadata.d.ts +4 -0
- package/dist/_dts/commerce/src/purchase/oneTimeCheckoutPlanning.d.ts +9 -4
- package/dist/_dts/commerce/src/purchase/orderInstalmentClosure.d.ts +13 -1
- package/dist/_dts/commerce/src/purchase/orderInstalmentLifecycle.d.ts +5 -0
- package/dist/_dts/commerce/src/purchase/orderItemMetadata.d.ts +4 -1
- package/dist/_dts/commerce/src/purchase/orderTypes.d.ts +7 -1
- package/dist/_dts/commerce/src/purchase/refundRailSplit.d.ts +1 -1
- package/dist/_dts/commerce/src/purchase/stateTransitions.d.ts +2 -2
- package/dist/_dts/commerce/src/purchase/stripeCheckoutReturnUrl.d.ts +9 -2
- package/dist/_dts/commerce/src/purchase/stripeMinimumCharge.d.ts +6 -0
- package/dist/_dts/commerce/src/purchase/types.d.ts +7 -7
- package/dist/_dts/content-editor/src/FooterComposerOverview.d.ts +3 -2
- package/dist/_dts/content-editor/src/controller/editLeaseHandover.d.ts +30 -0
- package/dist/_dts/content-editor/src/footerPreviewRuntime.d.ts +6 -1
- package/dist/_dts/content-editor/src/lib/browserStorage.d.ts +5 -0
- package/dist/_dts/content-editor/src/useFooterComposerState.d.ts +7 -0
- package/dist/_dts/core/src/booking-flexible-balance.d.ts +2 -2
- package/dist/_dts/core/src/booking-instalment-deposit.d.ts +20 -0
- package/dist/_dts/core/src/booking-live-payment-terms.d.ts +72 -0
- package/dist/_dts/core/src/booking-payment-options.d.ts +24 -0
- package/dist/_dts/core/src/booking-payment-schemas.d.ts +522 -0
- package/dist/_dts/core/src/branded.d.ts +3 -0
- package/dist/_dts/core/src/edit-lease.d.ts +5 -0
- package/dist/_dts/core/src/index.d.ts +4 -0
- package/dist/_dts/core/src/patch/index.d.ts +30 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +326 -36
- package/dist/_dts/media-editor/src/MediaPickerDialog.d.ts +3 -1
- package/dist/_dts/media-editor/src/MediaPickerMiniDialog.d.ts +10 -0
- package/dist/_dts/media-editor/src/index.d.ts +2 -0
- package/dist/_dts/preview-next/src/client/preview/PreviewEntryControllerProvider.d.ts +0 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/previewAuthStore.d.ts +7 -0
- package/dist/_dts/preview-next/src/constants.d.ts +4 -0
- package/dist/_dts/preview-next/src/keepAlive.d.ts +1 -0
- package/dist/_dts/sdk/src/bookings/index.d.ts +2 -1
- package/dist/_dts/sdk/src/bookings/types.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/islands/types.d.ts +2 -12
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/theme-core/src/blocks/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/blocks/opaquePanels.d.ts +147 -0
- package/dist/_dts/theme-core/src/boxBackgroundSchema.d.ts +22 -0
- package/dist/_dts/theme-core/src/buttons/buttonSurfaceContext.d.ts +22 -0
- package/dist/_dts/theme-core/src/cards/roles.d.ts +12 -0
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +198 -0
- package/dist/_dts/theme-core/src/palette/utils/index.d.ts +2 -0
- package/dist/_dts/theme-core/src/palette/utils/scrimContrast.d.ts +22 -0
- package/dist/_dts/theme-core/src/runtime/bridgeColourTokens.d.ts +10 -0
- package/dist/_dts/theme-core/src/schema.d.ts +330 -0
- package/dist/_dts/theme-core/src/site-styles/appearancePresetCatalog.d.ts +0 -51
- package/dist/_dts/theme-core/src/site-styles/blockAppearancePresets.d.ts +0 -51
- package/dist/_dts/theme-core/src/site-styles/lookResolution.d.ts +11 -0
- package/dist/_dts/theme-core/src/site-styles/pageDesignEditorCapabilities.d.ts +7 -1
- package/dist/_dts/theme-core/src/site-styles/pageDesignEditorModel.d.ts +7 -1
- package/dist/_dts/theme-core/src/site-styles/pageDesignIntent.d.ts +0 -5
- package/dist/_dts/theme-core/src/site-styles/previewRuntimeCapabilities.d.ts +12 -6
- package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +7 -4
- package/dist/_dts/theme-core/src/site-styles/sectionSurfaceBackgrounds.d.ts +65 -0
- package/dist/_dts/theme-core/src/site-styles/types.d.ts +17 -0
- package/dist/_dts/theme-core/src/surfaces/opaqueSurface.d.ts +43 -0
- package/dist/_dts/ui/src/color-picker.d.ts +1 -1
- package/dist/_dts/ui/src/palette/useHexDraft.d.ts +7 -0
- package/dist/client/{BookingMailingListNote-CzRt2dF_.mjs → BookingMailingListNote-CYHOufsI.mjs} +33 -124
- package/dist/client/{CheckboxChoice-B33MqoUo.mjs → CheckboxChoice-M-3HycLw.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-mxqwap3f.mjs → DemoBookingPortalAccess-Cvr9O_ca.mjs} +2 -2
- package/dist/client/{EventCombined.client-CDb11igO.mjs → EventCombined.client-m5UZIobP.mjs} +7 -7
- package/dist/client/EventEmbeddedCheckoutStep-DL6zFAkA.mjs +289 -0
- package/dist/client/{EventListing.client-EgYhzKPa.mjs → EventListing.client-DeMfCM04.mjs} +2 -2
- package/dist/client/{LeafletStaticMap-gtmtaA2b.mjs → LeafletStaticMap-CvZ3gOdD.mjs} +1 -1
- package/dist/client/{checkoutUrls-CXhko2Rv.mjs → RichText-BtfNvQV6.mjs} +2 -29
- package/dist/client/{TerminalPanel-DvNUP5ot.mjs → TerminalPanel-CUCNEwlH.mjs} +2 -18
- package/dist/client/{ThemedButton-C7CeUJjW.mjs → ThemedButton-C7WhXuRl.mjs} +2 -2
- package/dist/client/{accordion-kjvt49rA.mjs → accordion-cQm5mjqs.mjs} +1 -1
- package/dist/client/{bookingForm-pbRZordh.mjs → bookingForm-BVPJE5RQ.mjs} +15 -11
- package/dist/client/bookings.mjs +2860 -1222
- package/dist/client/{carousel-f4Zbmicv.mjs → carousel-3vgnY7LC.mjs} +2 -2
- package/dist/client/{carousel.client-A2lG-9od.mjs → carousel.client-CISsdZvg.mjs} +1 -1
- package/dist/client/{cart-DO20An50.mjs → cart-BGK4oOjm.mjs} +3 -3
- package/dist/client/{checkout-Du5amDR_.mjs → checkout-GsBLUNJD.mjs} +3 -3
- package/dist/client/checkoutUrls-ChxwaNtO.mjs +28 -0
- package/dist/client/client.mjs +3324 -2053
- package/dist/client/{colorStyles-j5U9v5JA.mjs → colorStyles-D-32xHZh.mjs} +2 -30
- package/dist/client/{context-eW97E945.mjs → context-D_8s12Fp.mjs} +1 -1
- package/dist/client/{dates-jPCirRea.mjs → dates-DeJQbQ9T.mjs} +2 -2
- package/dist/client/{eventCalendar-C2M-iE4j.mjs → eventCalendar-cmucD4NR.mjs} +10 -10
- package/dist/client/{eventCombined-W6ns3LHg.mjs → eventCombined-ku3E9FTl.mjs} +4 -4
- package/dist/client/{eventDetails-CR-GT0f0.mjs → eventDetails-CyKZ61sF.mjs} +5 -5
- package/dist/client/{eventListing-BK8AfYZz.mjs → eventListing-B7yxGIhX.mjs} +4 -4
- package/dist/client/{eventRegistration-BJSd4KUu.mjs → eventRegistration-BoXfSFgZ.mjs} +1455 -1184
- package/dist/client/{form-BvpfbQaT.mjs → form-CNQOWhJo.mjs} +5 -5
- package/dist/client/{headerSection-I5sUQ8x-.mjs → headerSection-DahaBJGQ.mjs} +3 -3
- package/dist/client/hooks.mjs +283 -193
- package/dist/client/{locationMap-BLvwf9_f.mjs → locationMap-BoDjqYlW.mjs} +4 -4
- package/dist/client/{media-Cl38iOMI.mjs → media-BFY0y2rb.mjs} +2 -1
- package/dist/client/{newsletterForm-DrQ2weE8.mjs → newsletterForm-DtzXDklw.mjs} +4 -4
- package/dist/client/{pricing-BES87mrR.mjs → pricing-DXEh2Lhh.mjs} +1 -1
- package/dist/client/{productDetail-Url9jcc5.mjs → productDetail-D7cPa-00.mjs} +3 -3
- package/dist/client/{productList-DE7ngEZJ.mjs → productList-D1XMap66.mjs} +3 -3
- package/dist/client/{propsDecoder-D1OtGXDV.mjs → propsDecoder-DiIeBopB.mjs} +913 -322
- package/dist/client/rendering/client.mjs +3913 -2260
- package/dist/client/rendering/islands.mjs +19 -19
- package/dist/client/rendering.mjs +3302 -2013
- package/dist/client/result-DRW7JWXz.mjs +30 -0
- package/dist/client/{routeIslandApiConfig-BG9Y-SHg.mjs → routeIslandApiConfig-wzR4lKAY.mjs} +1 -1
- package/dist/client/scrollToBlock-C86BYkyV.mjs +17 -0
- package/dist/client/{shop-CJkuySJ3.mjs → shop-CYT5P-S5.mjs} +13 -14
- package/dist/client/{shop-commerce-store-Bxm75Pg6.mjs → shop-commerce-store-wKhsJQxI.mjs} +1 -1
- package/dist/client/{shop-commerce-4rKj5n9h.mjs → shop-commerce-ypBu_dx4.mjs} +9 -9
- package/dist/client/{shopShared-DpoQDWfz.mjs → shopShared-DFGhYrf2.mjs} +52 -6
- package/dist/client/{useEventFilters-D8HliSqR.mjs → useEventFilters-blSbN5o7.mjs} +8 -8
- package/dist/preview-next/before-render.mjs +15 -22
- package/dist/preview-next/client/runtime.mjs +4 -4
- package/dist/preview-next/constants.mjs +5 -1
- package/dist/preview-next/index.mjs +5 -1
- package/dist/preview-next/keepAlive.mjs +149 -82
- package/dist/preview-next/middleware.mjs +15 -22
- package/dist/{previewAuthStore-BXXF3hhW.mjs → previewAuthStore-BBmV7UsW.mjs} +49 -29
- package/dist/{sdk-runtime-C2a05WjL.mjs → sdk-runtime-2p8uQk1V.mjs} +2 -2
- package/dist/{separator-CuNhBAhS.mjs → separator-Cvvzk0Oo.mjs} +1 -1
- package/dist/server/components.mjs +4041 -3704
- package/dist/server/config-validation.mjs +345 -255
- package/dist/server/config.mjs +345 -255
- package/dist/server/data.mjs +283 -193
- package/dist/server/index.mjs +20 -27
- package/dist/server/next.mjs +788 -469
- package/dist/server/page-converter.mjs +245 -121
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +4018 -3690
- package/dist/server/rendering.mjs +4044 -3707
- package/dist/server/routing.mjs +314 -190
- package/dist/server/server.mjs +290 -218
- package/dist/server/theme-bridge.mjs +1122 -310
- package/dist/server/theme.mjs +126 -116
- package/dist/spinner-CDo6AkDz.mjs +658 -0
- package/dist/styles/index.css +75 -212
- package/package.json +1 -1
- package/dist/_dts/api/src/bookingPaymentTermSchemas.d.ts +0 -123
- package/dist/_dts/billing/src/checkout/platform.d.ts +0 -77
- package/dist/_dts/billing/src/config/env.d.ts +0 -29
- package/dist/_dts/billing/src/stripe/client.d.ts +0 -29
- package/dist/_dts/blocks/src/system/runtime/hooks/usePaymentVerification.d.ts +0 -63
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventCheckoutHandoffRestore.d.ts +0 -9
- package/dist/_dts/commerce/src/purchase/checkoutPaymentTermPlanning.d.ts +0 -10
- package/dist/_dts/commerce/src/purchase/checkoutValidatedItemPlanning.d.ts +0 -55
- package/dist/_dts/commerce/src/purchase/orderInstalmentPayoff.d.ts +0 -24
- package/dist/client/urlParams-D71VXFGx.mjs +0 -47
package/dist/server/routing.mjs
CHANGED
|
@@ -956,6 +956,25 @@ var init_booking_refunds = __esmMin((() => {}));
|
|
|
956
956
|
//#region ../core/src/booking-instalments.ts
|
|
957
957
|
var init_booking_instalments = __esmMin((() => {}));
|
|
958
958
|
//#endregion
|
|
959
|
+
//#region ../core/src/booking-instalment-deposit.ts
|
|
960
|
+
var init_booking_instalment_deposit = __esmMin((() => {}));
|
|
961
|
+
//#endregion
|
|
962
|
+
//#region ../core/src/booking-live-payment-terms.ts
|
|
963
|
+
var init_booking_live_payment_terms = __esmMin((() => {}));
|
|
964
|
+
//#endregion
|
|
965
|
+
//#region ../core/src/booking-payment-options.ts
|
|
966
|
+
/** Automatic instalments and a flexible balance cannot share one booking offer. */
|
|
967
|
+
function validateBookingPaymentOptionKinds(kinds) {
|
|
968
|
+
if (kinds.length === 0) return err$1("no_options");
|
|
969
|
+
const uniqueKinds = new Set(kinds);
|
|
970
|
+
if (uniqueKinds.size !== kinds.length) return err$1("duplicate_kind");
|
|
971
|
+
if (uniqueKinds.has("instalment_plan") && uniqueKinds.has("flexible_balance")) return err$1("incompatible_collection_options");
|
|
972
|
+
return ok$1(void 0);
|
|
973
|
+
}
|
|
974
|
+
var init_booking_payment_options = __esmMin((() => {
|
|
975
|
+
init_result();
|
|
976
|
+
}));
|
|
977
|
+
//#endregion
|
|
959
978
|
//#region ../core/src/booking-time-zone.ts
|
|
960
979
|
function isValidBookingTimeZone(timeZone) {
|
|
961
980
|
const normalized = timeZone.trim();
|
|
@@ -2166,6 +2185,9 @@ var init_event_preset_vocabulary = __esmMin((() => {}));
|
|
|
2166
2185
|
//#region ../core/src/event-catalogue.ts
|
|
2167
2186
|
var init_event_catalogue = __esmMin((() => {}));
|
|
2168
2187
|
//#endregion
|
|
2188
|
+
//#region ../core/src/patch/index.ts
|
|
2189
|
+
var init_patch = __esmMin((() => {}));
|
|
2190
|
+
//#endregion
|
|
2169
2191
|
//#region ../core/src/index.ts
|
|
2170
2192
|
var init_src$4 = __esmMin((() => {
|
|
2171
2193
|
init_branded();
|
|
@@ -2188,6 +2210,9 @@ var init_src$4 = __esmMin((() => {
|
|
|
2188
2210
|
init_booking_flexible_balance();
|
|
2189
2211
|
init_booking_refunds();
|
|
2190
2212
|
init_booking_instalments();
|
|
2213
|
+
init_booking_instalment_deposit();
|
|
2214
|
+
init_booking_live_payment_terms();
|
|
2215
|
+
init_booking_payment_options();
|
|
2191
2216
|
init_booking_date_time();
|
|
2192
2217
|
init_booking_consent();
|
|
2193
2218
|
init_appointment_service_categories();
|
|
@@ -2248,6 +2273,7 @@ var init_src$4 = __esmMin((() => {
|
|
|
2248
2273
|
init_navigation_portal_labels();
|
|
2249
2274
|
init_event_preset_vocabulary();
|
|
2250
2275
|
init_event_catalogue();
|
|
2276
|
+
init_patch();
|
|
2251
2277
|
}));
|
|
2252
2278
|
//#endregion
|
|
2253
2279
|
//#region ../media-core/src/types.ts
|
|
@@ -5167,6 +5193,15 @@ function fallbackBackground(fallbackToken, palette) {
|
|
|
5167
5193
|
reason: "unresolvable-colour"
|
|
5168
5194
|
};
|
|
5169
5195
|
}
|
|
5196
|
+
/** Every role's contextual styles against one proven solid surface. */
|
|
5197
|
+
function knownSurfaceButtonContextStyles(input) {
|
|
5198
|
+
return Object.fromEntries(VARIANT_ROLES.flatMap((role) => Object.entries(contextualButtonSurfaceStyles(resolveContextualButtonRole({
|
|
5199
|
+
role,
|
|
5200
|
+
buttonSystem: input.buttonSystem,
|
|
5201
|
+
palette: input.palette,
|
|
5202
|
+
surface: input.surface
|
|
5203
|
+
})))));
|
|
5204
|
+
}
|
|
5170
5205
|
function resolveContextualButtonRole(input) {
|
|
5171
5206
|
const requested = findVariant(input.buttonSystem, input.role);
|
|
5172
5207
|
if (!requested) return {
|
|
@@ -7487,12 +7522,20 @@ var init_roles = __esmMin((() => {
|
|
|
7487
7522
|
init_types$12();
|
|
7488
7523
|
}));
|
|
7489
7524
|
//#endregion
|
|
7525
|
+
//#region ../theme-core/src/surfaces/opaqueSurface.ts
|
|
7526
|
+
var init_opaqueSurface = __esmMin((() => {
|
|
7527
|
+
init_buttonSurfaceContext();
|
|
7528
|
+
init_colorStyles();
|
|
7529
|
+
init_themeColorTokens();
|
|
7530
|
+
init_resolveSurfaceForeground();
|
|
7531
|
+
}));
|
|
7532
|
+
//#endregion
|
|
7490
7533
|
//#region ../theme-core/src/cards/generateCardCss.ts
|
|
7491
7534
|
var init_generateCardCss = __esmMin((() => {
|
|
7492
7535
|
init_resolver$2();
|
|
7493
7536
|
init_roles();
|
|
7494
7537
|
init_types$12();
|
|
7495
|
-
|
|
7538
|
+
init_opaqueSurface();
|
|
7496
7539
|
}));
|
|
7497
7540
|
//#endregion
|
|
7498
7541
|
//#region ../theme-core/src/cards/core.ts
|
|
@@ -8195,6 +8238,7 @@ function defineBlockDesignCapability(capability) {
|
|
|
8195
8238
|
...capability,
|
|
8196
8239
|
kind: "designed",
|
|
8197
8240
|
looks: capability.looks ?? "not-applicable",
|
|
8241
|
+
sectionBackgroundPaints: admittedSectionBackgroundPaints(capability.sectionBackgroundPaints),
|
|
8198
8242
|
sectionHeights: capability.sectionHeights ?? ["default"],
|
|
8199
8243
|
imageSurfaceTreatments: capability.imageSurfaceTreatments ?? ["none"],
|
|
8200
8244
|
imageSurfaceMotions: capability.imageSurfaceMotions ?? ["static"],
|
|
@@ -8207,8 +8251,17 @@ function defineBlockDesignCapability(capability) {
|
|
|
8207
8251
|
...capability.accordionIconSets ? { accordionIconSets: capability.accordionIconSets } : {}
|
|
8208
8252
|
};
|
|
8209
8253
|
}
|
|
8210
|
-
|
|
8254
|
+
/** Absent means the block admits every section background paint. */
|
|
8255
|
+
function admittedSectionBackgroundPaints(paints) {
|
|
8256
|
+
return paints ?? sectionBackgroundPaintValues;
|
|
8257
|
+
}
|
|
8258
|
+
var sectionBackgroundPaintValues, plainFrame, tileTreatmentValues, eventListTreatmentValues, testimonialsCompositionTreatmentValues, offeringsPreviewCompositionTreatmentValues, eyebrowTreatmentValues, visibleHeadingDecorationFamilyValues, headingDecorationOverrideValues, headingDecorationColorTokenValues, noHeadingDecoration, accordionIconSetValues, accordionIconColorTokenValues, accordionIconMotionValues;
|
|
8211
8259
|
var init_types$7 = __esmMin((() => {
|
|
8260
|
+
sectionBackgroundPaintValues = [
|
|
8261
|
+
"color",
|
|
8262
|
+
"gradient",
|
|
8263
|
+
"image"
|
|
8264
|
+
];
|
|
8212
8265
|
plainFrame = { kind: "plain" };
|
|
8213
8266
|
tileTreatmentValues = [
|
|
8214
8267
|
"default",
|
|
@@ -8531,12 +8584,22 @@ var init_boxBackgroundSchema = __esmMin((() => {
|
|
|
8531
8584
|
boxBackgroundSchema = z.discriminatedUnion("type", [
|
|
8532
8585
|
commonSchema.extend({
|
|
8533
8586
|
type: z.literal("color"),
|
|
8534
|
-
color: tokenOrCssColorValueSchema.nullable().optional()
|
|
8587
|
+
color: tokenOrCssColorValueSchema.nullable().optional(),
|
|
8588
|
+
/**
|
|
8589
|
+
* Compiler-owned. The scrim a site-style colour surface lays over media
|
|
8590
|
+
* that replaces it (a Look's band meeting an authored photo), sized so the
|
|
8591
|
+
* surface's foreground stays legible over any pixel. A colour background
|
|
8592
|
+
* never draws it itself; `resolveSectionBackground` moves it onto the
|
|
8593
|
+
* merged media background as its overlay.
|
|
8594
|
+
*/
|
|
8595
|
+
mediaScrim: boxBackgroundOverlaySchema.nullable().optional()
|
|
8535
8596
|
}),
|
|
8536
8597
|
commonSchema.extend({
|
|
8537
8598
|
type: z.literal("gradient"),
|
|
8538
8599
|
gradient: z.string().nullable().optional(),
|
|
8539
|
-
gradientPresetId: z.string().min(1).nullable().optional()
|
|
8600
|
+
gradientPresetId: z.string().min(1).nullable().optional(),
|
|
8601
|
+
/** Compiler-owned; see the colour branch. */
|
|
8602
|
+
mediaScrim: boxBackgroundOverlaySchema.nullable().optional()
|
|
8540
8603
|
}),
|
|
8541
8604
|
mediaPresentationSchema.extend({
|
|
8542
8605
|
type: z.literal("image"),
|
|
@@ -9376,70 +9439,122 @@ var init_richTextSchema = __esmMin((() => {
|
|
|
9376
9439
|
}).strict();
|
|
9377
9440
|
}));
|
|
9378
9441
|
//#endregion
|
|
9379
|
-
//#region ../
|
|
9380
|
-
|
|
9381
|
-
|
|
9382
|
-
|
|
9383
|
-
bookingInstalmentPlanSchema$1 = z.union([
|
|
9384
|
-
z.object({
|
|
9442
|
+
//#region ../core/src/booking-payment-schemas.ts
|
|
9443
|
+
function createInstalmentPlanSchema(object) {
|
|
9444
|
+
return z.discriminatedUnion("kind", [
|
|
9445
|
+
object({
|
|
9385
9446
|
kind: z.literal("deposit_plus_one_remainder"),
|
|
9386
|
-
depositAmountCents:
|
|
9387
|
-
depositRefundability:
|
|
9388
|
-
remainderDueCount:
|
|
9389
|
-
intervalUnit:
|
|
9390
|
-
"day",
|
|
9391
|
-
"week",
|
|
9392
|
-
"month"
|
|
9393
|
-
])
|
|
9447
|
+
depositAmountCents: nonNegativeIntegerSchema,
|
|
9448
|
+
depositRefundability: depositRefundPolicySchema,
|
|
9449
|
+
remainderDueCount: positiveIntegerSchema,
|
|
9450
|
+
intervalUnit: intervalUnitSchema
|
|
9394
9451
|
}),
|
|
9395
|
-
|
|
9452
|
+
object({
|
|
9396
9453
|
kind: z.literal("deposit_plus_scheduled_instalments"),
|
|
9397
|
-
depositAmountCents:
|
|
9398
|
-
depositRefundability:
|
|
9399
|
-
instalmentCount:
|
|
9400
|
-
intervalCount:
|
|
9401
|
-
intervalUnit:
|
|
9402
|
-
"day",
|
|
9403
|
-
"week",
|
|
9404
|
-
"month"
|
|
9405
|
-
])
|
|
9454
|
+
depositAmountCents: nonNegativeIntegerSchema,
|
|
9455
|
+
depositRefundability: depositRefundPolicySchema,
|
|
9456
|
+
instalmentCount: positiveIntegerSchema,
|
|
9457
|
+
intervalCount: positiveIntegerSchema,
|
|
9458
|
+
intervalUnit: intervalUnitSchema
|
|
9406
9459
|
}),
|
|
9407
|
-
|
|
9460
|
+
object({
|
|
9408
9461
|
kind: z.literal("equal_scheduled_instalments"),
|
|
9409
|
-
instalmentCount:
|
|
9410
|
-
intervalCount:
|
|
9411
|
-
intervalUnit:
|
|
9412
|
-
"day",
|
|
9413
|
-
"week",
|
|
9414
|
-
"month"
|
|
9415
|
-
])
|
|
9462
|
+
instalmentCount: positiveIntegerSchema,
|
|
9463
|
+
intervalCount: positiveIntegerSchema,
|
|
9464
|
+
intervalUnit: intervalUnitSchema
|
|
9416
9465
|
})
|
|
9417
9466
|
]);
|
|
9418
|
-
|
|
9467
|
+
}
|
|
9468
|
+
function createFlexibleBalanceSchemas(object) {
|
|
9469
|
+
const dueDateRule = z.discriminatedUnion("kind", [object({
|
|
9419
9470
|
kind: z.literal("relative_to_start_date"),
|
|
9420
|
-
daysBeforeStart:
|
|
9421
|
-
}),
|
|
9471
|
+
daysBeforeStart: positiveIntegerSchema
|
|
9472
|
+
}), object({
|
|
9422
9473
|
kind: z.literal("fixed_calendar_date"),
|
|
9423
9474
|
dueAt: z.string().datetime()
|
|
9424
9475
|
})]);
|
|
9425
|
-
|
|
9426
|
-
|
|
9427
|
-
|
|
9428
|
-
|
|
9429
|
-
|
|
9430
|
-
|
|
9431
|
-
|
|
9432
|
-
|
|
9433
|
-
|
|
9476
|
+
return {
|
|
9477
|
+
dueDateRule,
|
|
9478
|
+
config: object({
|
|
9479
|
+
upfrontAmountCents: nonNegativeIntegerSchema,
|
|
9480
|
+
dueDateRule,
|
|
9481
|
+
depositRefundability: depositRefundPolicySchema
|
|
9482
|
+
})
|
|
9483
|
+
};
|
|
9484
|
+
}
|
|
9485
|
+
function buildBookingPaymentOptionSchemas(object) {
|
|
9486
|
+
const instalmentPlan = createInstalmentPlanSchema(object);
|
|
9487
|
+
const flexibleBalance = createFlexibleBalanceSchemas(object);
|
|
9488
|
+
const paymentCollectionOption = z.discriminatedUnion("kind", [
|
|
9489
|
+
object({ kind: z.literal("upfront") }),
|
|
9490
|
+
object({ kind: z.literal("deferred_manual") }),
|
|
9491
|
+
object({
|
|
9434
9492
|
kind: z.literal("instalment_plan"),
|
|
9435
|
-
plan:
|
|
9493
|
+
plan: instalmentPlan
|
|
9436
9494
|
}),
|
|
9437
|
-
|
|
9495
|
+
object({
|
|
9438
9496
|
kind: z.literal("flexible_balance"),
|
|
9439
|
-
config:
|
|
9497
|
+
config: flexibleBalance.config
|
|
9440
9498
|
})
|
|
9441
9499
|
]);
|
|
9442
|
-
|
|
9500
|
+
const paymentTerms = object({ allowedOptions: z.array(paymentCollectionOption) }).superRefine(({ allowedOptions }, ctx) => {
|
|
9501
|
+
const result = validateBookingPaymentOptionKinds(allowedOptions.map(({ kind }) => kind));
|
|
9502
|
+
if (!result.ok) ctx.addIssue({
|
|
9503
|
+
code: "custom",
|
|
9504
|
+
path: ["allowedOptions"],
|
|
9505
|
+
message: paymentOptionKindsMessages[result.error]
|
|
9506
|
+
});
|
|
9507
|
+
});
|
|
9508
|
+
const paymentOptionsChoice = z.discriminatedUnion("source", [z.strictObject({ source: z.literal("default") }), z.strictObject({
|
|
9509
|
+
source: z.literal("custom"),
|
|
9510
|
+
paymentTerms
|
|
9511
|
+
})]);
|
|
9512
|
+
return {
|
|
9513
|
+
depositRefundPolicy: depositRefundPolicySchema,
|
|
9514
|
+
instalmentPlan,
|
|
9515
|
+
flexibleBalanceDueDateRule: flexibleBalance.dueDateRule,
|
|
9516
|
+
flexibleBalanceConfig: flexibleBalance.config,
|
|
9517
|
+
paymentCollectionOption,
|
|
9518
|
+
paymentTerms,
|
|
9519
|
+
paymentOptionsChoice
|
|
9520
|
+
};
|
|
9521
|
+
}
|
|
9522
|
+
function createBookingPaymentOptionSchemas(mode) {
|
|
9523
|
+
return mode === "strict" ? buildBookingPaymentOptionSchemas(strictObject) : buildBookingPaymentOptionSchemas(stripObject);
|
|
9524
|
+
}
|
|
9525
|
+
var stripObject, strictObject, depositRefundPolicySchema, intervalUnitSchema, nonNegativeIntegerSchema, positiveIntegerSchema, paymentOptionKindsMessages, bookingPaymentOptionSchemas, bookingPaymentTermsSchema;
|
|
9526
|
+
var init_booking_payment_schemas = __esmMin((() => {
|
|
9527
|
+
init_booking_payment_options();
|
|
9528
|
+
stripObject = (shape) => z.object(shape);
|
|
9529
|
+
strictObject = (shape) => z.strictObject(shape);
|
|
9530
|
+
depositRefundPolicySchema = z.enum(["refundable", "non_refundable"]);
|
|
9531
|
+
intervalUnitSchema = z.enum([
|
|
9532
|
+
"day",
|
|
9533
|
+
"week",
|
|
9534
|
+
"month"
|
|
9535
|
+
]);
|
|
9536
|
+
nonNegativeIntegerSchema = z.number().int().nonnegative();
|
|
9537
|
+
positiveIntegerSchema = z.number().int().positive();
|
|
9538
|
+
paymentOptionKindsMessages = {
|
|
9539
|
+
no_options: "Choose at least one way for customers to pay.",
|
|
9540
|
+
duplicate_kind: "Choose each payment option only once.",
|
|
9541
|
+
incompatible_collection_options: "Offer instalments or a deposit with the rest paid later, but not both."
|
|
9542
|
+
};
|
|
9543
|
+
bookingPaymentOptionSchemas = createBookingPaymentOptionSchemas("strip");
|
|
9544
|
+
bookingPaymentOptionSchemas.depositRefundPolicy;
|
|
9545
|
+
bookingPaymentOptionSchemas.instalmentPlan;
|
|
9546
|
+
bookingPaymentOptionSchemas.flexibleBalanceDueDateRule;
|
|
9547
|
+
bookingPaymentOptionSchemas.flexibleBalanceConfig;
|
|
9548
|
+
bookingPaymentOptionSchemas.paymentCollectionOption;
|
|
9549
|
+
bookingPaymentTermsSchema = bookingPaymentOptionSchemas.paymentTerms;
|
|
9550
|
+
bookingPaymentOptionSchemas.paymentOptionsChoice;
|
|
9551
|
+
}));
|
|
9552
|
+
//#endregion
|
|
9553
|
+
//#region ../blocks/src/system/blocks/shared/bookingPaymentTerms.ts
|
|
9554
|
+
var blockBookingPaymentTermsSchema;
|
|
9555
|
+
var init_bookingPaymentTerms = __esmMin((() => {
|
|
9556
|
+
init_booking_payment_schemas();
|
|
9557
|
+
blockBookingPaymentTermsSchema = bookingPaymentTermsSchema;
|
|
9443
9558
|
})), blockBookingConsentSchema, bookingRequirementConsentFieldSchema;
|
|
9444
9559
|
var init_bookingConsent = __esmMin((() => {
|
|
9445
9560
|
init_richTextSchema();
|
|
@@ -12745,7 +12860,8 @@ var init_clientErrorReporting = __esmMin((() => {
|
|
|
12745
12860
|
stack: 8e3,
|
|
12746
12861
|
digest: 128,
|
|
12747
12862
|
componentStack: 8e3,
|
|
12748
|
-
sourceLocation: 1024
|
|
12863
|
+
sourceLocation: 1024,
|
|
12864
|
+
navigationAgeMs: 6e4
|
|
12749
12865
|
};
|
|
12750
12866
|
clientErrorEventSchema = z.enum([
|
|
12751
12867
|
"dashboard:route-error",
|
|
@@ -12762,7 +12878,17 @@ var init_clientErrorReporting = __esmMin((() => {
|
|
|
12762
12878
|
stack: z.string().max(CLIENT_ERROR_REPORT_LIMITS.stack).nullable(),
|
|
12763
12879
|
digest: z.string().max(CLIENT_ERROR_REPORT_LIMITS.digest).nullable(),
|
|
12764
12880
|
componentStack: z.string().max(CLIENT_ERROR_REPORT_LIMITS.componentStack).nullable(),
|
|
12765
|
-
sourceLocation: z.string().max(CLIENT_ERROR_REPORT_LIMITS.sourceLocation).nullable()
|
|
12881
|
+
sourceLocation: z.string().max(CLIENT_ERROR_REPORT_LIMITS.sourceLocation).nullable(),
|
|
12882
|
+
navigation: z.object({
|
|
12883
|
+
fromPathname: z.string().regex(/^\/[^?#]*$/).max(CLIENT_ERROR_REPORT_LIMITS.pathname),
|
|
12884
|
+
toPathname: z.string().regex(/^\/[^?#]*$/).max(CLIENT_ERROR_REPORT_LIMITS.pathname),
|
|
12885
|
+
type: z.enum([
|
|
12886
|
+
"push",
|
|
12887
|
+
"replace",
|
|
12888
|
+
"traverse"
|
|
12889
|
+
]),
|
|
12890
|
+
ageMs: z.number().int().min(0).max(CLIENT_ERROR_REPORT_LIMITS.navigationAgeMs)
|
|
12891
|
+
}).strict().nullable().optional()
|
|
12766
12892
|
}).strict();
|
|
12767
12893
|
}));
|
|
12768
12894
|
var init_endpoints = __esmMin((() => {
|
|
@@ -13206,6 +13332,9 @@ var init_suggestRecipes = __esmMin((() => {
|
|
|
13206
13332
|
//#region ../theme-core/src/palette/utils/legibility.ts
|
|
13207
13333
|
var init_legibility = __esmMin((() => {}));
|
|
13208
13334
|
//#endregion
|
|
13335
|
+
//#region ../theme-core/src/palette/utils/scrimContrast.ts
|
|
13336
|
+
var init_scrimContrast = __esmMin((() => {}));
|
|
13337
|
+
//#endregion
|
|
13209
13338
|
//#region ../theme-core/src/palette/utils/index.ts
|
|
13210
13339
|
var init_utils$3 = __esmMin((() => {
|
|
13211
13340
|
init_colorConversion();
|
|
@@ -13217,6 +13346,8 @@ var init_utils$3 = __esmMin((() => {
|
|
|
13217
13346
|
init_textColor();
|
|
13218
13347
|
init_legibility();
|
|
13219
13348
|
init_onColor();
|
|
13349
|
+
init_opaqueSurfaceColor();
|
|
13350
|
+
init_scrimContrast();
|
|
13220
13351
|
}));
|
|
13221
13352
|
//#endregion
|
|
13222
13353
|
//#region ../theme-core/src/palette/utils/paletteAccess.ts
|
|
@@ -16150,16 +16281,6 @@ var init_blockAppearancePresets = __esmMin((() => {
|
|
|
16150
16281
|
treatment: "framed-programme"
|
|
16151
16282
|
}
|
|
16152
16283
|
}
|
|
16153
|
-
}), defineBlockAppearancePreset({
|
|
16154
|
-
id: "feature-cards-soft-panels",
|
|
16155
|
-
target: "feature-cards",
|
|
16156
|
-
label: "Soft tinted panels",
|
|
16157
|
-
blockKinds: ["block.feature-cards"],
|
|
16158
|
-
design: {
|
|
16159
|
-
sectionSurface: "base",
|
|
16160
|
-
contentFrame: plainFrame,
|
|
16161
|
-
cardRole: "alternative"
|
|
16162
|
-
}
|
|
16163
16284
|
}), defineBlockAppearancePreset({
|
|
16164
16285
|
id: "feature-cards-editorial-diptych",
|
|
16165
16286
|
target: "feature-cards",
|
|
@@ -16171,27 +16292,6 @@ var init_blockAppearancePresets = __esmMin((() => {
|
|
|
16171
16292
|
contentFrame: plainFrame,
|
|
16172
16293
|
cardRole: "default"
|
|
16173
16294
|
}
|
|
16174
|
-
}), defineBlockAppearancePreset({
|
|
16175
|
-
id: "feature-cards-editorial-pathways",
|
|
16176
|
-
target: "feature-cards",
|
|
16177
|
-
label: "Editorial pathways",
|
|
16178
|
-
blockKinds: ["block.feature-cards"],
|
|
16179
|
-
constraints: { layoutVariantKeys: ["editorial-pathways"] },
|
|
16180
|
-
design: {
|
|
16181
|
-
sectionSurface: "base",
|
|
16182
|
-
contentFrame: plainFrame,
|
|
16183
|
-
cardRole: "default"
|
|
16184
|
-
}
|
|
16185
|
-
}), defineBlockAppearancePreset({
|
|
16186
|
-
id: "feature-cards-photo-tiles",
|
|
16187
|
-
target: "feature-cards",
|
|
16188
|
-
label: "Photo tiles",
|
|
16189
|
-
blockKinds: ["block.feature-cards"],
|
|
16190
|
-
design: {
|
|
16191
|
-
sectionSurface: "base",
|
|
16192
|
-
contentFrame: plainFrame,
|
|
16193
|
-
cardRole: "default"
|
|
16194
|
-
}
|
|
16195
16295
|
}), defineBlockAppearancePreset({
|
|
16196
16296
|
id: "events-lined-panel",
|
|
16197
16297
|
target: "events",
|
|
@@ -16280,16 +16380,6 @@ var init_blockAppearancePresets = __esmMin((() => {
|
|
|
16280
16380
|
contentFrame: panelFrame("raised"),
|
|
16281
16381
|
cardRole: "default"
|
|
16282
16382
|
}
|
|
16283
|
-
}), defineBlockAppearancePreset({
|
|
16284
|
-
id: "testimonials-default-cards",
|
|
16285
|
-
target: "testimonials",
|
|
16286
|
-
label: "Default cards",
|
|
16287
|
-
blockKinds: ["block.testimonials"],
|
|
16288
|
-
design: {
|
|
16289
|
-
sectionSurface: "base",
|
|
16290
|
-
contentFrame: plainFrame,
|
|
16291
|
-
cardRole: "default"
|
|
16292
|
-
}
|
|
16293
16383
|
}), defineBlockAppearancePreset({
|
|
16294
16384
|
id: "testimonials-statement-cards",
|
|
16295
16385
|
target: "testimonials",
|
|
@@ -18647,10 +18737,12 @@ var init_pageFlowPresets = __esmMin((() => {
|
|
|
18647
18737
|
//#region ../theme-core/src/site-styles/lookResolution.ts
|
|
18648
18738
|
var init_lookResolution = __esmMin((() => {
|
|
18649
18739
|
init_appearancePresets();
|
|
18740
|
+
init_roles();
|
|
18650
18741
|
}));
|
|
18651
18742
|
var init_siteStyleBlockPolicies = __esmMin((() => {
|
|
18652
18743
|
init_lookResolution();
|
|
18653
18744
|
init_appearancePresets();
|
|
18745
|
+
init_curatedSiteStyles();
|
|
18654
18746
|
init_pageDesignIntent();
|
|
18655
18747
|
init_types$7();
|
|
18656
18748
|
asPageFlowPresetId("generated-default");
|
|
@@ -18669,6 +18761,12 @@ var init_joinTreatment = __esmMin((() => {
|
|
|
18669
18761
|
init_siteStyleBlockPolicies();
|
|
18670
18762
|
}));
|
|
18671
18763
|
//#endregion
|
|
18764
|
+
//#region ../theme-core/src/site-styles/sectionSurfaceBackgrounds.ts
|
|
18765
|
+
var init_sectionSurfaceBackgrounds = __esmMin((() => {
|
|
18766
|
+
init_resolveSurfaceForeground();
|
|
18767
|
+
init_gradients();
|
|
18768
|
+
}));
|
|
18769
|
+
//#endregion
|
|
18672
18770
|
//#region ../theme-core/src/site-styles/runtimeCompiler.ts
|
|
18673
18771
|
function defineSectionForegroundRuntimeTokens(input) {
|
|
18674
18772
|
return {
|
|
@@ -18704,8 +18802,8 @@ var init_runtimeCompiler = __esmMin((() => {
|
|
|
18704
18802
|
init_designState();
|
|
18705
18803
|
init_joinTreatment();
|
|
18706
18804
|
init_rawStyleFields();
|
|
18805
|
+
init_sectionSurfaceBackgrounds();
|
|
18707
18806
|
init_tokens();
|
|
18708
|
-
init_gradients();
|
|
18709
18807
|
defaultDesignRuntimeRules = defineDesignRuntimeRules({
|
|
18710
18808
|
sectionSurfaces: {
|
|
18711
18809
|
base: {},
|
|
@@ -19804,9 +19902,7 @@ var init_curatedSiteStyles = __esmMin((() => {
|
|
|
19804
19902
|
recommendedAppearancePresetIds: [
|
|
19805
19903
|
"hero-split-editorial",
|
|
19806
19904
|
"intro-portrait-bio",
|
|
19807
|
-
"feature-cards-
|
|
19808
|
-
"feature-cards-editorial-columns",
|
|
19809
|
-
"feature-cards-photo-tiles",
|
|
19905
|
+
"feature-cards-bold-colors",
|
|
19810
19906
|
"testimonials-non-carded",
|
|
19811
19907
|
"faq-contained-help",
|
|
19812
19908
|
"contact-form-panel"
|
|
@@ -20450,8 +20546,7 @@ var init_curatedSiteStyles = __esmMin((() => {
|
|
|
20450
20546
|
"intro-portrait-bio",
|
|
20451
20547
|
"feature-cards-editorial-columns",
|
|
20452
20548
|
"feature-cards-editorial-diptych",
|
|
20453
|
-
"feature-cards-
|
|
20454
|
-
"feature-cards-soft-panels",
|
|
20549
|
+
"feature-cards-bold-colors",
|
|
20455
20550
|
"events-lined-panel",
|
|
20456
20551
|
"testimonials-non-carded",
|
|
20457
20552
|
"faq-base-accordion",
|
|
@@ -21315,6 +21410,11 @@ var init_shadow = __esmMin((() => {
|
|
|
21315
21410
|
init_colorStyles();
|
|
21316
21411
|
}));
|
|
21317
21412
|
//#endregion
|
|
21413
|
+
//#region ../theme-core/src/blocks/opaquePanels.ts
|
|
21414
|
+
var init_opaquePanels = __esmMin((() => {
|
|
21415
|
+
init_opaqueSurface();
|
|
21416
|
+
}));
|
|
21417
|
+
//#endregion
|
|
21318
21418
|
//#region ../theme-core/src/accordions/generateAccordionCss.ts
|
|
21319
21419
|
var init_generateAccordionCss = __esmMin((() => {
|
|
21320
21420
|
init_types$11();
|
|
@@ -21503,7 +21603,7 @@ ${`:where([data-theme-scope="${themeId}"]) :where([data-block="event-registratio
|
|
|
21503
21603
|
--er-step-inactive: rgb(var(--tb-mutedText));
|
|
21504
21604
|
--er-step-completed: rgb(var(--tb-success));
|
|
21505
21605
|
--er-step-text: rgb(255 255 255);
|
|
21506
|
-
--er-step-text-active: rgb(var(--tb-
|
|
21606
|
+
--er-step-text-active: rgb(var(--tb-onPrimary, 255 255 255));
|
|
21507
21607
|
--er-step-connector: rgba(var(--tb-border), 0.5);
|
|
21508
21608
|
|
|
21509
21609
|
/* Step title */
|
|
@@ -21547,7 +21647,7 @@ ${`:where([data-theme-scope="${themeId}"]) :where([data-block="event-registratio
|
|
|
21547
21647
|
|
|
21548
21648
|
/* Checkmark indicator */
|
|
21549
21649
|
--er-check-bg: rgb(var(--tb-primary));
|
|
21550
|
-
--er-check-text: rgb(var(--tb-
|
|
21650
|
+
--er-check-text: rgb(var(--tb-onPrimary, 255 255 255));
|
|
21551
21651
|
|
|
21552
21652
|
/* Order summary */
|
|
21553
21653
|
--er-summary-bg: rgba(var(--tb-primary), 0.1);
|
|
@@ -21767,7 +21867,7 @@ ${`:where([data-theme-scope="${themeId}"]) :where([data-block="appointment-booki
|
|
|
21767
21867
|
--rb-reg-step-completed: rgb(var(--tb-success));
|
|
21768
21868
|
--rb-reg-step-inactive: rgb(var(--tb-mutedText));
|
|
21769
21869
|
--rb-reg-step-text: rgb(255 255 255);
|
|
21770
|
-
--rb-reg-step-text-active: rgb(var(--tb-
|
|
21870
|
+
--rb-reg-step-text-active: rgb(var(--tb-onPrimary, 255 255 255));
|
|
21771
21871
|
--rb-reg-step-connector: rgba(var(--tb-border), 0.5);
|
|
21772
21872
|
--rb-reg-summary-bg: var(--ab-muted-bg);
|
|
21773
21873
|
--rb-reg-summary-border: var(--ab-card-border);
|
|
@@ -22043,6 +22143,7 @@ var init_vars = __esmMin((() => {
|
|
|
22043
22143
|
//#region ../theme-core/src/blocks/index.ts
|
|
22044
22144
|
var init_blocks$2 = __esmMin((() => {
|
|
22045
22145
|
init_registry$6();
|
|
22146
|
+
init_opaquePanels();
|
|
22046
22147
|
init_vars();
|
|
22047
22148
|
}));
|
|
22048
22149
|
//#endregion
|
|
@@ -22092,6 +22193,8 @@ var init_buildThemeRuntime = __esmMin((() => {
|
|
|
22092
22193
|
init_shadow();
|
|
22093
22194
|
init_generateButtonCss();
|
|
22094
22195
|
init_generateCardCss();
|
|
22196
|
+
init_opaquePanels();
|
|
22197
|
+
init_opaqueSurface();
|
|
22095
22198
|
init_generateAccordionCss();
|
|
22096
22199
|
init_defaults();
|
|
22097
22200
|
init_generateInputCss();
|
|
@@ -22147,6 +22250,7 @@ var init_core$1 = __esmMin((() => {
|
|
|
22147
22250
|
init_checkable();
|
|
22148
22251
|
}));
|
|
22149
22252
|
var init_buildThemeRuntimeFromBridge = __esmMin((() => {
|
|
22253
|
+
init_opaquePanels();
|
|
22150
22254
|
init_shadow();
|
|
22151
22255
|
init_customCss();
|
|
22152
22256
|
init_core$2();
|
|
@@ -25452,6 +25556,34 @@ function withLookCapability(declaration) {
|
|
|
25452
25556
|
}
|
|
25453
25557
|
};
|
|
25454
25558
|
}
|
|
25559
|
+
/**
|
|
25560
|
+
* The section background paints a block's own `_sectionStyles.background`
|
|
25561
|
+
* field admits, read from its manifest so the design capability cannot drift
|
|
25562
|
+
* from what render admission accepts. A block without the field admits none.
|
|
25563
|
+
*/
|
|
25564
|
+
function sectionBackgroundPaintsOfFields(fields) {
|
|
25565
|
+
const sectionStyles = fields.find((field) => field.id === "_sectionStyles");
|
|
25566
|
+
if (!sectionStyles || sectionStyles.type !== "modal") return [];
|
|
25567
|
+
const background = sectionStyles.schema.fields.find((field) => field.id === "background");
|
|
25568
|
+
if (!background || background.type !== "tabGroup") return [];
|
|
25569
|
+
const tabIds = new Set(background.tabs.map((tab) => tab.id));
|
|
25570
|
+
return [
|
|
25571
|
+
"color",
|
|
25572
|
+
"gradient",
|
|
25573
|
+
"image"
|
|
25574
|
+
].filter((paint) => tabIds.has(paint));
|
|
25575
|
+
}
|
|
25576
|
+
/** Pins a designed capability's section background paints to the block's manifest. */
|
|
25577
|
+
function withManifestSectionBackgroundPaints(declaration, fields) {
|
|
25578
|
+
if (declaration.kind !== "capability") return declaration;
|
|
25579
|
+
return {
|
|
25580
|
+
kind: "capability",
|
|
25581
|
+
capability: {
|
|
25582
|
+
...declaration.capability,
|
|
25583
|
+
sectionBackgroundPaints: sectionBackgroundPaintsOfFields(fields)
|
|
25584
|
+
}
|
|
25585
|
+
};
|
|
25586
|
+
}
|
|
25455
25587
|
function declareNoBlockDesignCapability(reason) {
|
|
25456
25588
|
return {
|
|
25457
25589
|
kind: "none",
|
|
@@ -27338,15 +27470,11 @@ function resolveContextualButtonStyles(background, foreground, context, options)
|
|
|
27338
27470
|
if (!paletteCache.has(palette)) paletteCache.set(palette, surfaceCache);
|
|
27339
27471
|
const cached = surfaceCache.get(cacheKey);
|
|
27340
27472
|
if (cached) return cached;
|
|
27341
|
-
const styles =
|
|
27342
|
-
|
|
27343
|
-
|
|
27344
|
-
|
|
27345
|
-
|
|
27346
|
-
surface: surface.surface
|
|
27347
|
-
});
|
|
27348
|
-
return Object.entries(contextualButtonSurfaceStyles(resolution));
|
|
27349
|
-
}));
|
|
27473
|
+
const styles = knownSurfaceButtonContextStyles({
|
|
27474
|
+
surface: surface.surface,
|
|
27475
|
+
palette,
|
|
27476
|
+
buttonSystem
|
|
27477
|
+
});
|
|
27350
27478
|
surfaceCache.set(cacheKey, styles);
|
|
27351
27479
|
return styles;
|
|
27352
27480
|
}
|
|
@@ -34348,7 +34476,7 @@ var init_site_footer_nav_groups_layout = __esmMin((() => {
|
|
|
34348
34476
|
}));
|
|
34349
34477
|
//#endregion
|
|
34350
34478
|
//#region ../blocks/src/system/blocks/site-footer.ts
|
|
34351
|
-
var footerStandardContactBindings, footerMailingListBindings, footerSpamProtectionBinding, brandLogo, navigation, legalNavigation, address, contact, hours, socials, authoredCopy, footerEngagement, footerGroup, footerMainRegion, footerEngagementRegion, footerBottomRegion, footerLayout, siteFooterManifest, siteFooterBlockDefinition;
|
|
34479
|
+
var footerStandardContactBindings, footerMailingListBindings, footerSpamProtectionBinding, brandLogo, navigation, legalNavigation, address, contact, hours, socials, authoredCopy, footerEngagement, platformAttribution, footerGroup, footerMainRegion, footerEngagementRegion, footerBottomRegion, footerLayout, siteFooterManifest, siteFooterBlockDefinition;
|
|
34352
34480
|
var init_site_footer = __esmMin((() => {
|
|
34353
34481
|
init_fragments$1();
|
|
34354
34482
|
init_builder$1();
|
|
@@ -34466,6 +34594,20 @@ var init_site_footer = __esmMin((() => {
|
|
|
34466
34594
|
...footerSpamProtectionBinding
|
|
34467
34595
|
}), [], when("module.engagement.kind", { equals: "mailing-list" }))
|
|
34468
34596
|
], when("module.kind", { equals: "engagement" }));
|
|
34597
|
+
platformAttribution = el$1("div", {
|
|
34598
|
+
className: "rb-caption",
|
|
34599
|
+
"data-site-attribution": "macadamia"
|
|
34600
|
+
}, [
|
|
34601
|
+
text({ as: "span" }, bind$1("module.lead")),
|
|
34602
|
+
text({
|
|
34603
|
+
as: "span",
|
|
34604
|
+
value: " "
|
|
34605
|
+
}),
|
|
34606
|
+
link({
|
|
34607
|
+
href: { $bind: { from: "module.link.href" } },
|
|
34608
|
+
className: "footer-nav-link rb-caption transition-theme-standard"
|
|
34609
|
+
}, [text({ as: "span" }, bind$1("module.link.label"))])
|
|
34610
|
+
], when("module.kind", { equals: "attribution" }));
|
|
34469
34611
|
footerGroup = stack({
|
|
34470
34612
|
gap: "md",
|
|
34471
34613
|
align: "stretch",
|
|
@@ -34495,6 +34637,7 @@ var init_site_footer = __esmMin((() => {
|
|
|
34495
34637
|
hours,
|
|
34496
34638
|
socials,
|
|
34497
34639
|
footerEngagement,
|
|
34640
|
+
platformAttribution,
|
|
34498
34641
|
stack({ className: "rb-w-full" }, [authoredCopy], when("module.kind", { equals: "supporting-text" })),
|
|
34499
34642
|
stack({ className: "rb-w-full rb-lg-col-span-3" }, [authoredCopy], when("module.kind", { equals: "legal" }))
|
|
34500
34643
|
], repeat("group.modules", "module"))], repeat("region.groups", "group"));
|
|
@@ -36642,7 +36785,7 @@ var init_shared$2 = __esmMin((() => {
|
|
|
36642
36785
|
}));
|
|
36643
36786
|
//#endregion
|
|
36644
36787
|
//#region ../blocks/src/system/blocks/shop.shared.ts
|
|
36645
|
-
var publicPassProductFields, purchasablePublicPassProductSchema, publicPassProductSchema, publicPassProductCollectionSchema, publicMembershipProductSchema, publicMembershipProductCollectionSchema;
|
|
36788
|
+
var publicPassProductFields, purchasablePublicPassProductSchema, publicPassProductSchema, publicPassProductCollectionSchema, publicMembershipProductFields, purchasablePublicMembershipProductSchema, publicMembershipProductSchema, publicMembershipProductCollectionSchema;
|
|
36646
36789
|
var init_shop_shared = __esmMin((() => {
|
|
36647
36790
|
publicPassProductFields = {
|
|
36648
36791
|
id: z.string(),
|
|
@@ -36667,7 +36810,7 @@ var init_shop_shared = __esmMin((() => {
|
|
|
36667
36810
|
unavailabilityReason: z.literal("online_payments_unavailable")
|
|
36668
36811
|
})]);
|
|
36669
36812
|
publicPassProductCollectionSchema = z.object({ passes: z.array(publicPassProductSchema) });
|
|
36670
|
-
|
|
36813
|
+
publicMembershipProductFields = {
|
|
36671
36814
|
id: z.string(),
|
|
36672
36815
|
name: z.string(),
|
|
36673
36816
|
description: z.string().nullable(),
|
|
@@ -36676,7 +36819,16 @@ var init_shop_shared = __esmMin((() => {
|
|
|
36676
36819
|
billingInterval: z.enum(["month", "year"]),
|
|
36677
36820
|
eligibleCategoryIds: z.array(z.string()),
|
|
36678
36821
|
eligibleCategoryNames: z.array(z.string())
|
|
36822
|
+
};
|
|
36823
|
+
purchasablePublicMembershipProductSchema = z.object({
|
|
36824
|
+
...publicMembershipProductFields,
|
|
36825
|
+
purchaseAvailability: z.literal("purchasable")
|
|
36679
36826
|
});
|
|
36827
|
+
publicMembershipProductSchema = z.discriminatedUnion("purchaseAvailability", [purchasablePublicMembershipProductSchema, z.object({
|
|
36828
|
+
...publicMembershipProductFields,
|
|
36829
|
+
purchaseAvailability: z.literal("display_only"),
|
|
36830
|
+
unavailabilityReason: z.literal("online_payments_unavailable")
|
|
36831
|
+
})]);
|
|
36680
36832
|
publicMembershipProductCollectionSchema = z.object({ memberships: z.array(publicMembershipProductSchema) });
|
|
36681
36833
|
}));
|
|
36682
36834
|
//#endregion
|
|
@@ -36863,14 +37015,18 @@ var init_contract_schemas = __esmMin((() => {
|
|
|
36863
37015
|
* @param needsPaymentStep - Whether user must complete payment method selection
|
|
36864
37016
|
* @returns Array of wizard steps to display
|
|
36865
37017
|
*/
|
|
36866
|
-
function getWizardStepsForContext(hasPreSelectedContext, needsPaymentStep) {
|
|
37018
|
+
function getWizardStepsForContext(hasPreSelectedContext, needsPaymentStep, paymentActive = false) {
|
|
36867
37019
|
const baseSteps = hasPreSelectedContext ? ["select-tickets", "enter-details"] : [
|
|
36868
37020
|
"select-event",
|
|
36869
37021
|
"select-tickets",
|
|
36870
37022
|
"enter-details"
|
|
36871
37023
|
];
|
|
36872
37024
|
if (!needsPaymentStep) return baseSteps;
|
|
36873
|
-
return [
|
|
37025
|
+
return paymentActive ? [
|
|
37026
|
+
...baseSteps,
|
|
37027
|
+
"select-payment",
|
|
37028
|
+
"payment"
|
|
37029
|
+
] : [...baseSteps, "select-payment"];
|
|
36874
37030
|
}
|
|
36875
37031
|
var init_wizardSteps = __esmMin((() => {}));
|
|
36876
37032
|
//#endregion
|
|
@@ -37057,12 +37213,13 @@ function shellLabelForRegistrationStep(step, events) {
|
|
|
37057
37213
|
switch (step) {
|
|
37058
37214
|
case "select-event": return isDateSelection(events) ? "Date" : "Event";
|
|
37059
37215
|
case "select-tickets": return "Tickets";
|
|
37216
|
+
case "fully-booked":
|
|
37060
37217
|
case "enter-details": return "Details";
|
|
37061
|
-
case "select-payment": return "Payment";
|
|
37218
|
+
case "select-payment": return "Payment options";
|
|
37219
|
+
case "payment": return "Payment";
|
|
37062
37220
|
case "error":
|
|
37063
37221
|
case "success":
|
|
37064
37222
|
case "submitting":
|
|
37065
|
-
case "redirecting":
|
|
37066
37223
|
case "verifying-payment":
|
|
37067
37224
|
case "verifying-timeout":
|
|
37068
37225
|
case "payment-status":
|
|
@@ -37074,7 +37231,7 @@ function isDateSelection(events) {
|
|
|
37074
37231
|
return Boolean(events.length > 1 && firstSeriesId && events.every((event) => event.seriesId === firstSeriesId));
|
|
37075
37232
|
}
|
|
37076
37233
|
function buildEventRegistrationShellBodyText(stepLabels) {
|
|
37077
|
-
if (stepLabels.includes("Payment")) return "Preparing tickets, details, and payment options.";
|
|
37234
|
+
if (stepLabels.includes("Payment options")) return "Preparing tickets, details, and payment options.";
|
|
37078
37235
|
if (stepLabels[0] === "Tickets") return "Preparing tickets and booking details.";
|
|
37079
37236
|
return "Preparing dates, tickets, and booking details.";
|
|
37080
37237
|
}
|
|
@@ -37115,6 +37272,7 @@ var init_event_registration_interactive = __esmMin((() => {
|
|
|
37115
37272
|
"Date",
|
|
37116
37273
|
"Tickets",
|
|
37117
37274
|
"Details",
|
|
37275
|
+
"Payment options",
|
|
37118
37276
|
"Payment"
|
|
37119
37277
|
];
|
|
37120
37278
|
eventRegistrationPublicEventSchema = z.preprocess(normalizeEventRegistrationEventInput, publicEventSchema);
|
|
@@ -39153,7 +39311,8 @@ var init_event_calendar = __esmMin((() => {
|
|
|
39153
39311
|
fallback: false
|
|
39154
39312
|
} },
|
|
39155
39313
|
banded: { $bind: {
|
|
39156
|
-
from: "content
|
|
39314
|
+
from: "content",
|
|
39315
|
+
transforms: [{ id: "events.calendarBanded" }],
|
|
39157
39316
|
fallback: false
|
|
39158
39317
|
} }
|
|
39159
39318
|
}))]
|
|
@@ -42759,7 +42918,7 @@ function buildPassesMembershipsDisplay(options) {
|
|
|
42759
42918
|
product: pass
|
|
42760
42919
|
} : {
|
|
42761
42920
|
kind: "unavailable",
|
|
42762
|
-
label: "Online purchasing
|
|
42921
|
+
label: "Online purchasing is unavailable."
|
|
42763
42922
|
}
|
|
42764
42923
|
};
|
|
42765
42924
|
});
|
|
@@ -42769,7 +42928,14 @@ function buildPassesMembershipsDisplay(options) {
|
|
|
42769
42928
|
description: options.showDescriptions ? membership.description : null,
|
|
42770
42929
|
priceLabel: formatCommercePrice(membership.price, membership.currency),
|
|
42771
42930
|
intervalLabel: formatInterval(membership.billingInterval),
|
|
42772
|
-
|
|
42931
|
+
action: membership.purchaseAvailability === "purchasable" ? {
|
|
42932
|
+
kind: "purchase",
|
|
42933
|
+
label: options.membershipActionLabel,
|
|
42934
|
+
product: membership
|
|
42935
|
+
} : {
|
|
42936
|
+
kind: "unavailable",
|
|
42937
|
+
label: "Online purchasing is unavailable."
|
|
42938
|
+
}
|
|
42773
42939
|
}));
|
|
42774
42940
|
return {
|
|
42775
42941
|
kind: "passes-memberships",
|
|
@@ -43017,7 +43183,14 @@ var init_shop_interactive = __esmMin((() => {
|
|
|
43017
43183
|
description: z.string().nullable(),
|
|
43018
43184
|
priceLabel: z.string(),
|
|
43019
43185
|
intervalLabel: z.string(),
|
|
43020
|
-
|
|
43186
|
+
action: z.discriminatedUnion("kind", [z.object({
|
|
43187
|
+
kind: z.literal("purchase"),
|
|
43188
|
+
label: z.string(),
|
|
43189
|
+
product: purchasablePublicMembershipProductSchema
|
|
43190
|
+
}), z.object({
|
|
43191
|
+
kind: z.literal("unavailable"),
|
|
43192
|
+
label: z.string()
|
|
43193
|
+
})])
|
|
43021
43194
|
});
|
|
43022
43195
|
passesMembershipsDisplaySchema = z.object({
|
|
43023
43196
|
kind: z.literal("passes-memberships"),
|
|
@@ -45669,7 +45842,7 @@ function withDesignCapability(blockKind, definition, designCapability, designMet
|
|
|
45669
45842
|
if (definition.manifest.name !== blockKind) throw new Error(`System block kind mismatch: expected ${blockKind}, received ${definition.manifest.name}.`);
|
|
45670
45843
|
return {
|
|
45671
45844
|
...definition,
|
|
45672
|
-
designCapability,
|
|
45845
|
+
designCapability: withManifestSectionBackgroundPaints(designCapability, definition.manifest.fields),
|
|
45673
45846
|
designMetadata,
|
|
45674
45847
|
manifest: {
|
|
45675
45848
|
...definition.manifest,
|
|
@@ -46915,10 +47088,11 @@ var init_links = __esmMin((() => {
|
|
|
46915
47088
|
}));
|
|
46916
47089
|
//#endregion
|
|
46917
47090
|
//#region ../blocks/src/system/transforms/registry/eventCalendar.ts
|
|
46918
|
-
var selectionParamSchema, eventCalendarSelectionParam, readJobSchema, eventCalendarReadProfile, eventCalendarReadEnabled;
|
|
47091
|
+
var selectionParamSchema, eventCalendarSelectionParam, readJobSchema, eventCalendarReadProfile, eventCalendarReadEnabled, eventCalendarBanded;
|
|
46919
47092
|
var init_eventCalendar = __esmMin((() => {
|
|
46920
47093
|
init_events$1();
|
|
46921
47094
|
init_core();
|
|
47095
|
+
init_backgroundContent();
|
|
46922
47096
|
init_calendarWindow();
|
|
46923
47097
|
init_eventSelection();
|
|
46924
47098
|
selectionParamSchema = z.object({ key: z.enum([
|
|
@@ -46961,6 +47135,16 @@ var init_eventCalendar = __esmMin((() => {
|
|
|
46961
47135
|
return plan.jobs === "both" || plan.jobs === options.job;
|
|
46962
47136
|
}
|
|
46963
47137
|
};
|
|
47138
|
+
eventCalendarBanded = {
|
|
47139
|
+
id: "events.calendarBanded",
|
|
47140
|
+
kind: "formatter",
|
|
47141
|
+
summary: "Paint the week-board band only on a section with no background of its own",
|
|
47142
|
+
run(value) {
|
|
47143
|
+
const content = asPartialObject(value) ?? {};
|
|
47144
|
+
const sectionStyles = asPartialObject(content._sectionStyles);
|
|
47145
|
+
return content.banded === true && parseBackgroundContent(sectionStyles?.background) === null;
|
|
47146
|
+
}
|
|
47147
|
+
};
|
|
46964
47148
|
}));
|
|
46965
47149
|
//#endregion
|
|
46966
47150
|
//#region ../blocks/src/system/transforms/registry/index.ts
|
|
@@ -46983,6 +47167,7 @@ var init_registry$2 = __esmMin((() => {
|
|
|
46983
47167
|
eventCalendarSelectionParam,
|
|
46984
47168
|
eventCalendarReadEnabled,
|
|
46985
47169
|
eventCalendarReadProfile,
|
|
47170
|
+
eventCalendarBanded,
|
|
46986
47171
|
...formattingTransforms,
|
|
46987
47172
|
...layoutTransforms,
|
|
46988
47173
|
...chromeLogoTransforms,
|
|
@@ -48367,6 +48552,7 @@ var init_customerMembershipOutcomes = __esmMin((() => {
|
|
|
48367
48552
|
"refund_failed"
|
|
48368
48553
|
];
|
|
48369
48554
|
CANONICAL_ADMIN_REFUND_FAILURE_CODES = [
|
|
48555
|
+
"refund_blocked_by_live_payment_terms",
|
|
48370
48556
|
...CANONICAL_REFUND_PLANNER_ERROR_CODES,
|
|
48371
48557
|
"payment_intent_not_found",
|
|
48372
48558
|
"stripe_error",
|
|
@@ -48383,6 +48569,7 @@ var init_customerMembershipOutcomes = __esmMin((() => {
|
|
|
48383
48569
|
var init_bookingRefundOutcomes = __esmMin((() => {
|
|
48384
48570
|
init_customerMembershipOutcomes();
|
|
48385
48571
|
STANDARD_LINE_ITEM_REFUND_INVALID_CODES = [
|
|
48572
|
+
"refund_blocked_by_live_payment_terms",
|
|
48386
48573
|
"missing_amount",
|
|
48387
48574
|
"invalid_amount",
|
|
48388
48575
|
"amount_exceeds_remaining",
|
|
@@ -48941,68 +49128,6 @@ var init_event_visibility = __esmMin((() => {
|
|
|
48941
49128
|
EVENT_VISIBILITY_VALUES = ["public", "unlisted"];
|
|
48942
49129
|
EVENT_VISIBILITY_ERROR_MESSAGE = "visibility must be 'public' or 'unlisted'";
|
|
48943
49130
|
z.enum(EVENT_VISIBILITY_VALUES, { error: EVENT_VISIBILITY_ERROR_MESSAGE });
|
|
48944
|
-
})), bookingDepositRefundPolicySchema, bookingInstalmentPlanSchema, bookingFlexibleBalanceDueDateRuleSchema, bookingFlexibleBalanceConfigSchema;
|
|
48945
|
-
var init_bookingPaymentTermSchemas = __esmMin((() => {
|
|
48946
|
-
bookingDepositRefundPolicySchema = z.enum(["refundable", "non_refundable"]);
|
|
48947
|
-
bookingInstalmentPlanSchema = z.discriminatedUnion("kind", [
|
|
48948
|
-
z.object({
|
|
48949
|
-
kind: z.literal("deposit_plus_one_remainder"),
|
|
48950
|
-
depositAmountCents: z.number().int().nonnegative(),
|
|
48951
|
-
depositRefundability: bookingDepositRefundPolicySchema,
|
|
48952
|
-
remainderDueCount: z.number().int().positive(),
|
|
48953
|
-
intervalUnit: z.enum([
|
|
48954
|
-
"day",
|
|
48955
|
-
"week",
|
|
48956
|
-
"month"
|
|
48957
|
-
])
|
|
48958
|
-
}),
|
|
48959
|
-
z.object({
|
|
48960
|
-
kind: z.literal("deposit_plus_scheduled_instalments"),
|
|
48961
|
-
depositAmountCents: z.number().int().nonnegative(),
|
|
48962
|
-
depositRefundability: bookingDepositRefundPolicySchema,
|
|
48963
|
-
instalmentCount: z.number().int().positive(),
|
|
48964
|
-
intervalCount: z.number().int().positive(),
|
|
48965
|
-
intervalUnit: z.enum([
|
|
48966
|
-
"day",
|
|
48967
|
-
"week",
|
|
48968
|
-
"month"
|
|
48969
|
-
])
|
|
48970
|
-
}),
|
|
48971
|
-
z.object({
|
|
48972
|
-
kind: z.literal("equal_scheduled_instalments"),
|
|
48973
|
-
instalmentCount: z.number().int().positive(),
|
|
48974
|
-
intervalCount: z.number().int().positive(),
|
|
48975
|
-
intervalUnit: z.enum([
|
|
48976
|
-
"day",
|
|
48977
|
-
"week",
|
|
48978
|
-
"month"
|
|
48979
|
-
])
|
|
48980
|
-
})
|
|
48981
|
-
]);
|
|
48982
|
-
bookingFlexibleBalanceDueDateRuleSchema = z.discriminatedUnion("kind", [z.object({
|
|
48983
|
-
kind: z.literal("relative_to_start_date"),
|
|
48984
|
-
daysBeforeStart: z.number().int().positive()
|
|
48985
|
-
}), z.object({
|
|
48986
|
-
kind: z.literal("fixed_calendar_date"),
|
|
48987
|
-
dueAt: z.string().datetime()
|
|
48988
|
-
})]);
|
|
48989
|
-
bookingFlexibleBalanceConfigSchema = z.object({
|
|
48990
|
-
upfrontAmountCents: z.number().int().nonnegative(),
|
|
48991
|
-
dueDateRule: bookingFlexibleBalanceDueDateRuleSchema,
|
|
48992
|
-
depositRefundability: bookingDepositRefundPolicySchema
|
|
48993
|
-
});
|
|
48994
|
-
z.discriminatedUnion("kind", [
|
|
48995
|
-
z.object({ kind: z.literal("upfront") }),
|
|
48996
|
-
z.object({ kind: z.literal("deferred_manual") }),
|
|
48997
|
-
z.object({
|
|
48998
|
-
kind: z.literal("instalment_plan"),
|
|
48999
|
-
plan: bookingInstalmentPlanSchema
|
|
49000
|
-
}),
|
|
49001
|
-
z.object({
|
|
49002
|
-
kind: z.literal("flexible_balance"),
|
|
49003
|
-
config: bookingFlexibleBalanceConfigSchema
|
|
49004
|
-
})
|
|
49005
|
-
]);
|
|
49006
49131
|
}));
|
|
49007
49132
|
//#endregion
|
|
49008
49133
|
//#region ../api/src/emailSettings.ts
|
|
@@ -49246,7 +49371,6 @@ var init_src = __esmMin((() => {
|
|
|
49246
49371
|
init_routes();
|
|
49247
49372
|
init_appointmentServiceContracts();
|
|
49248
49373
|
init_event_visibility();
|
|
49249
|
-
init_bookingPaymentTermSchemas();
|
|
49250
49374
|
init_bookingRecords();
|
|
49251
49375
|
init_bookingPeople();
|
|
49252
49376
|
init_emailSettings();
|