@riverbankcms/sdk 0.154.0 → 0.155.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 +2 -0
- package/dist/{EventEmbeddedCheckoutStep-ba9npQtb.mjs → EventEmbeddedCheckoutStep-DALtAjqG.mjs} +1 -1
- package/dist/{PreviewEditorSidebar-C7FiaxlF.mjs → PreviewEditorSidebar-CbSbqmz3.mjs} +29 -20
- package/dist/{PreviewEditorUI-DFst50q1.mjs → PreviewEditorUI-CKKnAw11.mjs} +9 -17
- package/dist/{SdkPreviewModeRuntime-BUNV_YHZ.mjs → SdkPreviewModeRuntime-wLkXrWy9.mjs} +132 -56
- package/dist/{SiteChromeCustomizeContext-DEj7qppF.mjs → SiteChromeCustomizeContext-BQ8vvKb-.mjs} +6324 -3566
- package/dist/{ThemedButton-C8kzu0hY.mjs → ThemedButton-Bi0rgijy.mjs} +83 -5
- package/dist/_dts/ai/src/contracts/proposals.d.ts +42213 -16421
- package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +3322 -258
- package/dist/_dts/api/src/bookingConfig.d.ts +4 -12
- package/dist/_dts/api/src/bookingManagementEventEndpointTypes.d.ts +2 -2
- package/dist/_dts/api/src/bookingOperations.d.ts +4 -0
- package/dist/_dts/api/src/bookingPeople.d.ts +1 -1
- package/dist/_dts/api/src/bookingRecords.d.ts +1 -0
- package/dist/_dts/api/src/bookings.d.ts +8 -1
- package/dist/_dts/api/src/commercePortalEndpoints.d.ts +1 -1
- package/dist/_dts/api/src/common/envelope.d.ts +2 -2
- package/dist/_dts/api/src/contentRuntime.d.ts +4 -3
- package/dist/_dts/api/src/endpoints.d.ts +1 -1
- package/dist/_dts/api/src/eventManagementContracts.d.ts +20 -11
- package/dist/_dts/api/src/eventManagementEndpointDefinitions.d.ts +1 -1
- package/dist/_dts/api/src/index.d.ts +5 -2
- package/dist/_dts/api/src/privacyPolicy.d.ts +20 -2
- package/dist/_dts/api/src/public/types.d.ts +1 -0
- package/dist/_dts/api/src/publicAppointmentBookingContracts.d.ts +1 -0
- package/dist/_dts/api/src/publicBookingService.d.ts +1 -0
- package/dist/_dts/api/src/publicExperience/commerceEndpoints.d.ts +4 -0
- package/dist/_dts/api/src/sdk-event-management.d.ts +1 -0
- package/dist/_dts/api/src/sdk-event-upsert.d.ts +22 -7
- package/dist/_dts/api/src/sdkContracts.d.ts +2 -0
- package/dist/_dts/api/src/sdkManagedEventContracts.d.ts +5 -3
- package/dist/_dts/api/src/sdkPullEventContracts.d.ts +15 -4
- package/dist/_dts/api/src/sdkThemeWire.d.ts +10 -0
- package/dist/_dts/api/src/siteManagementEndpoints.d.ts +2 -2
- package/dist/_dts/api/src/siteTerms.d.ts +100 -0
- package/dist/_dts/api/src/types.d.ts +2 -1
- package/dist/_dts/api/src/webhooks.d.ts +9 -9
- package/dist/_dts/block-form/src/client/index.d.ts +2 -1
- package/dist/_dts/block-form/src/widgets/DateField/DateField.d.ts +3 -1
- package/dist/_dts/block-form/src/widgets/DateField/datePickerPopover.d.ts +3 -1
- package/dist/_dts/block-form/src/widgets/DateTimeField/DateTimeField.d.ts +3 -1
- package/dist/_dts/blocks/src/client/carousel.d.ts +1 -0
- package/dist/_dts/blocks/src/contracts/non-block-islands.d.ts +12 -33
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +22 -22
- package/dist/_dts/blocks/src/index.d.ts +2 -2
- package/dist/_dts/blocks/src/pageRenderAdmission.d.ts +1 -0
- package/dist/_dts/blocks/src/pageRenderPlan.d.ts +8 -1
- package/dist/_dts/blocks/src/pageRendererContracts.d.ts +1 -0
- package/dist/_dts/blocks/src/rendering/server.d.ts +1 -0
- package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +9 -5
- package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +1 -0
- package/dist/_dts/blocks/src/system/blocks/offerings-preview/catalogue.d.ts +7 -1
- package/dist/_dts/blocks/src/system/blocks/offerings-preview/index.d.ts +14 -0
- package/dist/_dts/blocks/src/system/blocks/offerings-preview/itemData.d.ts +12 -0
- package/dist/_dts/blocks/src/system/blocks/offerings-preview/model.d.ts +56 -6
- package/dist/_dts/blocks/src/system/blocks/offerings-preview/photoCount.d.ts +3 -12
- package/dist/_dts/blocks/src/system/blocks/shared/siteTerms.d.ts +17 -0
- package/dist/_dts/blocks/src/system/customize/facets.d.ts +44 -0
- package/dist/_dts/blocks/src/system/manifest/fieldValidation/index.d.ts +2 -1
- package/dist/_dts/blocks/src/system/manifest/validation.d.ts +3 -1
- package/dist/_dts/blocks/src/system/node/fragments/backgroundLayer.d.ts +6 -0
- package/dist/_dts/blocks/src/system/node/fragments/lookSlot.d.ts +22 -3
- package/dist/_dts/blocks/src/system/node/fragments/styledSection.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/api/client.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/api/endpoints.d.ts +7 -0
- package/dist/_dts/blocks/src/system/runtime/api/types/events.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/api/types/portal.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/api/types/shop.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +33 -0
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +12 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useBookingFlowController.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useBookingSubmission.d.ts +3 -2
- package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessBookingFlow.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessEventRegistrationFlow.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useSiteTermsAgreement.d.ts +17 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useSiteTermsAgreement.state.d.ts +42 -0
- package/dist/_dts/blocks/src/system/runtime/lookSurfaces.d.ts +6 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/appointment-services.d.ts +6 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.headless.state.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.interactive.d.ts +15 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.state.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-runtime-sources.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/carousel.client.d.ts +5 -30
- package/dist/_dts/blocks/src/system/runtime/nodes/carousel.server.d.ts +3 -12
- package/dist/_dts/blocks/src/system/runtime/nodes/carousel.shared.d.ts +71 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details/lookPresentation.d.ts +6 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details/presentation.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/AttendeeDetailsStep.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/CalendarAction.d.ts +5 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/SuccessStep.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/bookingCalendar.d.ts +16 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.contract.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/finishedBooking.d.ts +8 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationStateMachine.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/types.d.ts +3 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +42 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +5 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/CardListItem.d.ts +26 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/EventItem.d.ts +17 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCardListContent.d.ts +9 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +20 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/gifting.interactive.d.ts +8 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/offerings-preview-catalogue.d.ts +5 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/offerings-preview-content.d.ts +4 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/offerings-preview.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/shop.interactive.d.ts +14 -0
- package/dist/_dts/blocks/src/system/runtime/shared/components/CheckboxChoice.d.ts +3 -1
- package/dist/_dts/blocks/src/system/runtime/shared/components/SiteTermsAgreementField.d.ts +13 -0
- package/dist/_dts/blocks/src/system/runtime/shared/siteTermsAgreement.d.ts +81 -0
- package/dist/_dts/blocks/src/system/runtime/shared/siteTermsCheckoutApi.d.ts +14 -0
- package/dist/_dts/blocks/src/system/transforms/registry/boxStyles.d.ts +2 -0
- package/dist/_dts/blocks/src/system/transforms/typed.d.ts +2 -0
- package/dist/_dts/blocks/src/system/types/link.d.ts +2 -0
- package/dist/_dts/calendar/src/icsRenderer.d.ts +23 -0
- package/dist/_dts/calendar/src/index.d.ts +2 -0
- package/dist/_dts/commerce/src/purchase/checkoutErrorCodes.d.ts +1 -1
- package/dist/_dts/commerce/src/purchase/types.d.ts +5 -0
- package/dist/_dts/content-editor/src/controller/EntryControllerProvider.d.ts +3 -1
- package/dist/_dts/content-editor/src/controller/publicationDate.d.ts +5 -0
- package/dist/_dts/content-model/src/content-types/entryValidation.d.ts +6 -5
- package/dist/_dts/content-model/src/content-types/schema.d.ts +4 -0
- package/dist/_dts/content-model/src/contentManifest.d.ts +10 -2
- package/dist/_dts/content-model/src/definitions/shared.d.ts +2 -0
- package/dist/_dts/core/src/booking-date-time.d.ts +5 -0
- package/dist/_dts/core/src/booking-refunds.d.ts +43 -2
- package/dist/_dts/core/src/branded.d.ts +6 -0
- package/dist/_dts/core/src/date-display.d.ts +7 -2
- package/dist/_dts/core/src/index.d.ts +3 -2
- package/dist/_dts/core/src/site-terms.d.ts +94 -0
- package/dist/_dts/core/src/whole-series-run-schedule.d.ts +2 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +306 -0
- package/dist/_dts/db/src/schemas/forms.d.ts +16 -16
- package/dist/_dts/editor/src/chrome/EditorChrome.d.ts +2 -2
- package/dist/_dts/editor/src/chrome/EditorStatusBar.d.ts +3 -2
- package/dist/_dts/editor/src/chrome/statusBarPresentation.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/widgets/link/LinkContentList.d.ts +2 -1
- package/dist/_dts/editor-blocks/src/widgets/link/LinkPicker.d.ts +3 -0
- package/dist/_dts/editor-blocks/src/widgets/link/LinkPickerDialog.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/link/LinkWidget.d.ts +3 -0
- package/dist/_dts/editor-blocks/src/widgets/link/draft.d.ts +6 -1
- package/dist/_dts/editor-blocks/src/widgets/link/index.d.ts +1 -0
- package/dist/_dts/preview-next/src/client/blocks/arrangementControlsModel.d.ts +8 -1
- package/dist/_dts/preview-next/src/client/blocks/previewCustomizeControlPlan.d.ts +4 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewEntryControllerProvider.d.ts +3 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +2 -0
- package/dist/_dts/preview-next/src/client/sdk/SdkPreviewMode.d.ts +2 -0
- package/dist/_dts/sdk/src/config/typed-entry-links.test-d.d.ts +1 -0
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +3 -2
- package/dist/_dts/sdk/src/rendering/blocks-page-renderer.d.ts +1 -0
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +3 -1
- package/dist/_dts/sdk/src/rendering/helpers/loadContent.d.ts +7 -4
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +3 -1
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/theme-core/src/ThemeFontLoader.d.ts +1 -0
- package/dist/_dts/theme-core/src/buttons/styles/recipes/quietArrow.d.ts +12 -8
- package/dist/_dts/theme-core/src/buttons/styles/registry.d.ts +12 -8
- package/dist/_dts/theme-core/src/buttons/styles/selection.d.ts +12 -0
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/header/containerSchema.d.ts +1 -0
- package/dist/_dts/theme-core/src/header/generateHeaderCss.d.ts +3 -0
- package/dist/_dts/theme-core/src/inputs/checkable.d.ts +6 -0
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +15 -0
- package/dist/_dts/theme-core/src/schema.d.ts +21 -0
- package/dist/_dts/theme-core/src/site-styles/accessibleSurfaces.d.ts +2 -0
- package/dist/_dts/theme-core/src/site-styles/appearancePresetTypes.d.ts +3 -2
- package/dist/_dts/theme-core/src/site-styles/backgroundAppearance.d.ts +2 -2
- package/dist/_dts/theme-core/src/site-styles/curatedSiteStyles.d.ts +56 -1
- package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +4 -2
- package/dist/_dts/theme-core/src/site-styles/headerOpeningForeground.d.ts +4 -0
- package/dist/_dts/theme-core/src/site-styles/headerStyleRecipe.d.ts +13 -1
- package/dist/_dts/theme-core/src/site-styles/lookResolution.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/runtimeBackgroundResolution.d.ts +5 -0
- package/dist/_dts/theme-core/src/site-styles/siteStyleTypography.d.ts +46 -0
- package/dist/_dts/theme-core/src/status/generateStatusCss.d.ts +4 -1
- package/dist/_dts/theme-core/src/surfaces/resolveSurfaceForeground.d.ts +2 -0
- package/dist/_dts/theme-core/src/typography/schema.d.ts +9 -0
- package/dist/_dts/ui/src/calendar.d.ts +6 -1
- package/dist/_dts/ui/src/index.d.ts +1 -1
- package/dist/client/{BookingMailingListNote-CNoSqFtf.mjs → BookingMailingListNote-CiW1dsz7.mjs} +3 -3
- package/dist/client/{CardListItem-BkTkqBkh.mjs → CardListItem-DVYTlYpS.mjs} +70 -13
- package/dist/client/CheckboxChoice-CUnPrBlC.mjs +44 -0
- package/dist/client/DemoBookingPortalAccess-DEsn5F2C.mjs +770 -0
- package/dist/client/{EventCombined.client-BgeYMjHJ.mjs → EventCombined.client-BdctbwnV.mjs} +5 -5
- package/dist/client/{EventEmbeddedCheckoutStep-BTc_lTkM.mjs → EventEmbeddedCheckoutStep-DAhQs6Jb.mjs} +2 -5
- package/dist/client/{EventListing.client-ChRs9Hl2.mjs → EventListing.client-BviZXfAE.mjs} +2 -2
- package/dist/client/{mailingListSignupCopy-DZSHZrm6.mjs → FieldValidationMessage-AYanWFb-.mjs} +1 -14
- package/dist/client/{LeafletStaticMap-C_dNQgd0.mjs → LeafletStaticMap-BLTECfjU.mjs} +1 -1
- package/dist/client/{RichText-BI9bzbjo.mjs → RichText-D3oE1_pw.mjs} +4 -4
- package/dist/client/ThemedButton-Ckj0Rfr_.mjs +1256 -0
- package/dist/client/{accordion-6Yz8Wd83.mjs → accordion-yBx6d4O2.mjs} +1 -1
- package/dist/client/{bookingForm-i_pKIGiY.mjs → bookingForm-CPDEsQci.mjs} +64 -35
- package/dist/client/bookings.mjs +6572 -3274
- package/dist/client/carousel-DCqjwd2s.mjs +71 -0
- package/dist/client/{carousel.client-BUgjPbb6.mjs → carousel.client-Bx7XMF8-.mjs} +114 -39
- package/dist/client/{cart-D8OBHuF4.mjs → cart-DWJXrQxs.mjs} +3 -3
- package/dist/client/{checkout-F3-9IGLU.mjs → checkout-CH4ypSLS.mjs} +3 -3
- package/dist/client/client.mjs +7379 -2504
- package/dist/client/{context-Dg4ZrxDD.mjs → context-BOs0m_iw.mjs} +16 -12
- package/dist/client/{eventCalendar-BUc7YIBM.mjs → eventCalendar-CRylMllc.mjs} +8 -319
- package/dist/client/{eventCombined-BwfShk2a.mjs → eventCombined-DohTS3kp.mjs} +4 -4
- package/dist/client/{eventDetails-BMOVC3go.mjs → eventDetails-qf-u9zcF.mjs} +108 -36
- package/dist/client/{eventListing-BwE9PM-t.mjs → eventListing-Cg__X2vy.mjs} +4 -4
- package/dist/client/{eventRegistration-CCWPYDc7.mjs → eventRegistration-CybWxswy.mjs} +215 -237
- package/dist/client/{form-CXFr0Gd5.mjs → form-C-SGk6nq.mjs} +4 -4
- package/dist/client/{headerSection-BX8qw8kH.mjs → headerSection-BdzPaHqo.mjs} +3 -3
- package/dist/client/hooks.mjs +1283 -213
- package/dist/client/{locationMap-B3La71m0.mjs → locationMap-CEwIKmMb.mjs} +3 -3
- package/dist/client/mailingListSignupCopy-DS-_ePzG.mjs +14 -0
- package/dist/client/{media-B1Cbv721.mjs → media-V_ShXXru.mjs} +3 -3
- package/dist/client/{mediaContext-CwbbimYB.mjs → mediaContext-D-0tNVxE.mjs} +1 -1
- package/dist/client/{newsletterForm-DnGyR0x7.mjs → newsletterForm-CmwTltoS.mjs} +5 -4
- package/dist/client/{productDetail-BVgTqvkb.mjs → productDetail-DjIzUwg3.mjs} +3 -3
- package/dist/client/{productList-CcO7kUQw.mjs → productList-D6JGFnMF.mjs} +3 -3
- package/dist/client/{propsDecoder-B1OeWavE.mjs → propsDecoder-BRKz13eg.mjs} +5110 -2504
- package/dist/client/{renderableMediaAssetAdmission-CHkXYDC_.mjs → renderableMediaAssetAdmission-Cd3JSw2H.mjs} +3 -1
- package/dist/client/rendering/client.mjs +6176 -2738
- package/dist/client/rendering/islands.mjs +19 -19
- package/dist/client/rendering.mjs +7656 -2726
- package/dist/client/{routeIslandApiConfig-Dl4vglJm.mjs → routeIslandApiConfig-slAAILQ5.mjs} +1 -1
- package/dist/client/{shop-P72nX5Fs.mjs → shop-C45K96_0.mjs} +178 -157
- package/dist/client/{shop-commerce-Bt7uraDx.mjs → shop-commerce-oGBiKT5d.mjs} +23 -10
- package/dist/client/{shop-commerce-store-C1-mxSye.mjs → shop-commerce-store-H_HFPFZ8.mjs} +1 -1
- package/dist/client/{shopShared-Db-cRGu3.mjs → shopShared-D54T_LAV.mjs} +5 -5
- package/dist/client/{useDiscountCodeUi-jvAiUoUX.mjs → useDiscountCodeUi-Dm2EUa03.mjs} +1 -1
- package/dist/client/{useEventPagination-BdWpCniq.mjs → useEventPagination-0l_A8CxG.mjs} +62 -24
- package/dist/preview-next/before-render.mjs +1 -0
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/keepAlive.mjs +1 -0
- package/dist/preview-next/middleware.mjs +1 -0
- package/dist/{sdk-runtime-DLhjF2Nw.mjs → sdk-runtime-CjTM32Ah.mjs} +1 -1
- package/dist/server/components.mjs +4514 -1408
- package/dist/server/config-validation.mjs +1181 -179
- package/dist/server/config.mjs +1147 -177
- package/dist/server/data.mjs +1204 -180
- package/dist/server/date-time.mjs +18 -7
- package/dist/server/index.mjs +4 -1
- package/dist/server/next.mjs +4533 -1429
- package/dist/server/page-converter.mjs +1054 -173
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +3775 -1015
- package/dist/server/rendering.mjs +4540 -1425
- package/dist/server/routing.mjs +1321 -247
- package/dist/server/server.mjs +1296 -215
- package/dist/server/theme-bridge.mjs +1864 -73
- package/dist/server/theme.mjs +74 -3
- package/dist/{spinner-MTooKfck.mjs → spinner-KVVZh8jd.mjs} +1 -1
- package/dist/src-BgmWy3P1.mjs +1667 -0
- package/dist/styles/index.css +942 -1
- package/package.json +1 -1
- package/dist/client/CheckboxChoice-CHJpsty4.mjs +0 -24
- package/dist/client/DemoBookingPortalAccess-C7KQKFNt.mjs +0 -344
- package/dist/client/ThemedButton-wl3Z3wkH.mjs +0 -411
- package/dist/client/carousel-DNqd_PjC.mjs +0 -38
package/dist/server/server.mjs
CHANGED
|
@@ -1767,6 +1767,7 @@ const unsafeAsEventOfferingId = (id) => id;
|
|
|
1767
1767
|
const unsafeAsEventSeriesId = (id) => id;
|
|
1768
1768
|
const unsafeAsMediaAssetId = (id) => id;
|
|
1769
1769
|
const unsafeAsUserId = (id) => id;
|
|
1770
|
+
const unsafeAsSiteTermsVersionId = (id) => id;
|
|
1770
1771
|
const unsafeAsContentVersionId = (id) => id;
|
|
1771
1772
|
const parseSiteId = (value) => parseUuidBrand(value, unsafeAsSiteId);
|
|
1772
1773
|
const parseApiKeyId = (value) => parseUuidBrand(value, unsafeAsApiKeyId);
|
|
@@ -1774,6 +1775,7 @@ const parseEventOfferingId = (value) => parseUuidBrand(value, unsafeAsEventOffer
|
|
|
1774
1775
|
const parseUserId = (value) => parseUuidBrand(value, unsafeAsUserId);
|
|
1775
1776
|
const parseMediaAssetId = (value) => parseUuidBrand(value, unsafeAsMediaAssetId);
|
|
1776
1777
|
const parseContentVersionId = (value) => parseUuidBrand(value, unsafeAsContentVersionId);
|
|
1778
|
+
const parseSiteTermsVersionId = (value) => parseUuidBrand(value, unsafeAsSiteTermsVersionId);
|
|
1777
1779
|
const parseEventSeriesId = (value) => parseUuidBrand(value, unsafeAsEventSeriesId);
|
|
1778
1780
|
//#endregion
|
|
1779
1781
|
//#region ../core/src/assert-never.ts
|
|
@@ -2046,7 +2048,7 @@ function parseEventPageSurfaceDestinationMode(value) {
|
|
|
2046
2048
|
return value === "cms-managed" || value === "system-managed" ? value : void 0;
|
|
2047
2049
|
}
|
|
2048
2050
|
function parseEventPageSurfaceSubject(value) {
|
|
2049
|
-
if (!isRecord$
|
|
2051
|
+
if (!isRecord$19(value)) return err$1({ kind: "notObject" });
|
|
2050
2052
|
switch (value.kind) {
|
|
2051
2053
|
case "eventSeries": {
|
|
2052
2054
|
const eventSeriesId = parseEventSeriesId(value.eventSeriesId);
|
|
@@ -2101,7 +2103,7 @@ function parseEventSeriesIdList(values) {
|
|
|
2101
2103
|
}
|
|
2102
2104
|
return ok$1(parsed);
|
|
2103
2105
|
}
|
|
2104
|
-
function isRecord$
|
|
2106
|
+
function isRecord$19(value) {
|
|
2105
2107
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
2106
2108
|
}
|
|
2107
2109
|
//#endregion
|
|
@@ -2119,14 +2121,23 @@ function validateBookingPaymentOptionKinds(kinds) {
|
|
|
2119
2121
|
/** Shared Intl engine, internal to core's date presentation owners. */
|
|
2120
2122
|
const FORMATTER_CACHE_LIMIT = 100;
|
|
2121
2123
|
const dateTimeFormatterCache = /* @__PURE__ */ new Map();
|
|
2124
|
+
/** Intl's boolean clock option can select h11/h24 on other ICU builds. */
|
|
2125
|
+
function resolveClockCycle(format) {
|
|
2126
|
+
const { hour12, ...explicitFormat } = format;
|
|
2127
|
+
return hour12 === void 0 ? explicitFormat : {
|
|
2128
|
+
...explicitFormat,
|
|
2129
|
+
hourCycle: hour12 ? "h12" : "h23"
|
|
2130
|
+
};
|
|
2131
|
+
}
|
|
2122
2132
|
function getDateTimeFormatter(locale, timeZone, format) {
|
|
2123
|
-
const
|
|
2133
|
+
const explicitFormat = resolveClockCycle(format);
|
|
2134
|
+
const key = `${locale}\u0000${timeZone}\u0000${JSON.stringify(Object.entries(explicitFormat).sort(([left], [right]) => left.localeCompare(right)))}`;
|
|
2124
2135
|
const cached = dateTimeFormatterCache.get(key);
|
|
2125
2136
|
if (cached !== void 0) return cached;
|
|
2126
2137
|
if (typeof locale !== "string" || Intl.DateTimeFormat.supportedLocalesOf([locale]).length === 0) throw new RangeError("An explicit supported locale is required");
|
|
2127
2138
|
if (typeof timeZone !== "string" || timeZone.length === 0) throw new RangeError("An explicit time zone is required");
|
|
2128
2139
|
const formatter = new Intl.DateTimeFormat(locale, {
|
|
2129
|
-
...
|
|
2140
|
+
...explicitFormat,
|
|
2130
2141
|
timeZone
|
|
2131
2142
|
});
|
|
2132
2143
|
if (dateTimeFormatterCache.size >= FORMATTER_CACHE_LIMIT) dateTimeFormatterCache.clear();
|
|
@@ -2196,7 +2207,7 @@ function getZonedDateTimeParts(date, timeZone) {
|
|
|
2196
2207
|
hour: "2-digit",
|
|
2197
2208
|
minute: "2-digit",
|
|
2198
2209
|
second: "2-digit",
|
|
2199
|
-
|
|
2210
|
+
hourCycle: "h23"
|
|
2200
2211
|
});
|
|
2201
2212
|
const read = (type) => Number(parts.get(type) ?? "");
|
|
2202
2213
|
return {
|
|
@@ -2221,6 +2232,11 @@ function resolveBookingTimeZoneId(...candidates) {
|
|
|
2221
2232
|
}
|
|
2222
2233
|
return FALLBACK_TIMEZONE;
|
|
2223
2234
|
}
|
|
2235
|
+
/** Canonical business-zone admission, shared by server and public wire boundaries. */
|
|
2236
|
+
const DEFAULT_BOOKING_BUSINESS_TIME_ZONE = "Europe/London";
|
|
2237
|
+
function resolveBookingBusinessTimeZone(value) {
|
|
2238
|
+
return resolveBookingTimeZoneId(value, DEFAULT_BOOKING_BUSINESS_TIME_ZONE);
|
|
2239
|
+
}
|
|
2224
2240
|
function parseUtcIsoDateTimeString(value) {
|
|
2225
2241
|
const normalized = value.trim();
|
|
2226
2242
|
const hasUtcSuffix = normalized.endsWith("Z");
|
|
@@ -2291,7 +2307,7 @@ function formatBookingDate(input, format = {
|
|
|
2291
2307
|
function formatBookingTime(input, format = {
|
|
2292
2308
|
hour: "numeric",
|
|
2293
2309
|
minute: "2-digit",
|
|
2294
|
-
|
|
2310
|
+
hourCycle: "h12"
|
|
2295
2311
|
}) {
|
|
2296
2312
|
return formatBookingInstant(input.startsAt, {
|
|
2297
2313
|
locale: input.locale,
|
|
@@ -2447,6 +2463,38 @@ function readPublishedBlockPlacement(id, content) {
|
|
|
2447
2463
|
};
|
|
2448
2464
|
}
|
|
2449
2465
|
//#endregion
|
|
2466
|
+
//#region ../core/src/rich-text.ts
|
|
2467
|
+
function isRecord$18(value) {
|
|
2468
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
2469
|
+
}
|
|
2470
|
+
function hasOnlyKeys(value, allowed) {
|
|
2471
|
+
return Object.keys(value).every((key) => allowed.has(key));
|
|
2472
|
+
}
|
|
2473
|
+
const rootKeys = /* @__PURE__ */ new Set(["type", "content"]);
|
|
2474
|
+
const nodeKeys = /* @__PURE__ */ new Set([
|
|
2475
|
+
"type",
|
|
2476
|
+
"content",
|
|
2477
|
+
"text",
|
|
2478
|
+
"attrs",
|
|
2479
|
+
"marks"
|
|
2480
|
+
]);
|
|
2481
|
+
const markKeys = /* @__PURE__ */ new Set(["type", "attrs"]);
|
|
2482
|
+
function isDenseArrayOf(value, predicate) {
|
|
2483
|
+
for (let index = 0; index < value.length; index += 1) if (!(index in value) || !predicate(value[index])) return false;
|
|
2484
|
+
return true;
|
|
2485
|
+
}
|
|
2486
|
+
function isTipTapMark(value) {
|
|
2487
|
+
return isRecord$18(value) && hasOnlyKeys(value, markKeys) && typeof value.type === "string" && value.type.length > 0 && (value.attrs === void 0 || isRecord$18(value.attrs));
|
|
2488
|
+
}
|
|
2489
|
+
function isTipTapNode(value) {
|
|
2490
|
+
if (!isRecord$18(value) || !hasOnlyKeys(value, nodeKeys) || typeof value.type !== "string" || value.type.length === 0 || value.type === "doc" || value.attrs !== void 0 && !isRecord$18(value.attrs) || value.marks !== void 0 && (!Array.isArray(value.marks) || !isDenseArrayOf(value.marks, isTipTapMark)) || value.content !== void 0 && (!Array.isArray(value.content) || !isDenseArrayOf(value.content, isTipTapNode))) return false;
|
|
2491
|
+
if (value.type === "text") return typeof value.text === "string" && value.text.length > 0 && value.content === void 0;
|
|
2492
|
+
return value.text === void 0;
|
|
2493
|
+
}
|
|
2494
|
+
function isCanonicalRichTextDoc(value) {
|
|
2495
|
+
return isRecord$18(value) && hasOnlyKeys(value, rootKeys) && value.type === "doc" && Array.isArray(value.content) && isDenseArrayOf(value.content, isTipTapNode);
|
|
2496
|
+
}
|
|
2497
|
+
//#endregion
|
|
2450
2498
|
//#region ../core/src/mailing-list-identifiers.ts
|
|
2451
2499
|
const UUID_PATTERN = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/iu;
|
|
2452
2500
|
const OPAQUE_ID_PATTERN = /^[A-Za-z0-9_-]{1,100}$/u;
|
|
@@ -3793,6 +3841,7 @@ const EVENT_MANAGEMENT_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
|
3793
3841
|
"validation:invalid_input",
|
|
3794
3842
|
"resource:not_found",
|
|
3795
3843
|
"resource:already_exists",
|
|
3844
|
+
"resource:conflict",
|
|
3796
3845
|
"server:internal_error"
|
|
3797
3846
|
]
|
|
3798
3847
|
},
|
|
@@ -10124,6 +10173,8 @@ const API_ERROR_CODE_SET = /* @__PURE__ */ new Set([
|
|
|
10124
10173
|
"auth:impersonation_restricted",
|
|
10125
10174
|
"auth:lease_required",
|
|
10126
10175
|
"auth:lease_lost",
|
|
10176
|
+
"site_terms_changed",
|
|
10177
|
+
"site_terms_agreement_missing",
|
|
10127
10178
|
"validation:invalid_input",
|
|
10128
10179
|
"validation:missing_field",
|
|
10129
10180
|
"validation:invalid_format",
|
|
@@ -10675,7 +10726,7 @@ var SimpleCache = class {
|
|
|
10675
10726
|
* 1. This constant
|
|
10676
10727
|
* 2. The "version" field in package.json
|
|
10677
10728
|
*/
|
|
10678
|
-
const SDK_VERSION = "0.
|
|
10729
|
+
const SDK_VERSION = "0.155.0";
|
|
10679
10730
|
//#endregion
|
|
10680
10731
|
//#region src/client/error.ts
|
|
10681
10732
|
let _Symbol$for;
|
|
@@ -12723,7 +12774,7 @@ function shadeCandidates(seedToken, palette) {
|
|
|
12723
12774
|
const currentShade = match?.[2] ? Number(match[2]) : 500;
|
|
12724
12775
|
const seedHex = palette[seedToken];
|
|
12725
12776
|
const shades = Object.keys(palette).flatMap((token) => {
|
|
12726
|
-
const shade = token.match(new RegExp(`^${escapeRegExp(family)}-(\\d{2,3})$`));
|
|
12777
|
+
const shade = token.match(new RegExp(`^${escapeRegExp$1(family)}-(\\d{2,3})$`));
|
|
12727
12778
|
return shade?.[1] ? [Number(shade[1])] : [];
|
|
12728
12779
|
}).filter((shade) => Number.isFinite(shade)).sort((left, right) => left - right);
|
|
12729
12780
|
const lower = [...shades].filter((shade) => shade < currentShade).sort((left, right) => right - left);
|
|
@@ -12751,7 +12802,7 @@ function isSafeCandidate(token, palette, surface) {
|
|
|
12751
12802
|
if (!hasSafeTextContrast(token, palette)) return false;
|
|
12752
12803
|
return surface ? contrastRatio(palette[token] ?? "", surface.backgroundHex) >= BUTTON_CONTRAST_POLICY.nonTextMinimumRatio : true;
|
|
12753
12804
|
}
|
|
12754
|
-
function escapeRegExp(value) {
|
|
12805
|
+
function escapeRegExp$1(value) {
|
|
12755
12806
|
return value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
12756
12807
|
}
|
|
12757
12808
|
//#endregion
|
|
@@ -13774,6 +13825,7 @@ function canonicalHoverToken(reference, palette) {
|
|
|
13774
13825
|
}
|
|
13775
13826
|
return canonicalToken(reference, palette);
|
|
13776
13827
|
}
|
|
13828
|
+
/** Keep a candidate only when it meets ordinary-text contrast on the ground. */
|
|
13777
13829
|
function safeTokenOr(candidate, fallback, backgroundHex, palette) {
|
|
13778
13830
|
return firstSafeToken([candidate], backgroundHex, palette) ?? fallback;
|
|
13779
13831
|
}
|
|
@@ -14172,7 +14224,11 @@ function resolveSurface(spec, context) {
|
|
|
14172
14224
|
token: spec.token
|
|
14173
14225
|
}, {
|
|
14174
14226
|
...context,
|
|
14175
|
-
buttonContext: spec.buttonContext ?? context.buttonContext
|
|
14227
|
+
buttonContext: spec.buttonContext ?? context.buttonContext,
|
|
14228
|
+
...spec.foreground ? { foreground: {
|
|
14229
|
+
...context.foreground,
|
|
14230
|
+
...spec.foreground
|
|
14231
|
+
} } : {}
|
|
14176
14232
|
});
|
|
14177
14233
|
case "tint": return resolveTintSurface(spec, context);
|
|
14178
14234
|
}
|
|
@@ -14561,8 +14617,12 @@ const cardListKnobBlocks = [...cardListFamilyBlocks, "block.event-calendar"];
|
|
|
14561
14617
|
const lookKnobBlocks = {
|
|
14562
14618
|
actionStyle: cardListKnobBlocks,
|
|
14563
14619
|
titleSize: "block.hero",
|
|
14564
|
-
imagePosition: [
|
|
14565
|
-
|
|
14620
|
+
imagePosition: [
|
|
14621
|
+
"block.hero",
|
|
14622
|
+
"block.intro",
|
|
14623
|
+
"block.media-text"
|
|
14624
|
+
],
|
|
14625
|
+
imageShape: ["block.intro", "block.media-text"],
|
|
14566
14626
|
aspectRatio: "block.media-text",
|
|
14567
14627
|
stickerLine: "block.hero",
|
|
14568
14628
|
smallCaption: "block.hero",
|
|
@@ -14606,6 +14666,7 @@ function cardListKnobDefaults(block, arrangement, knobs, defaults) {
|
|
|
14606
14666
|
}
|
|
14607
14667
|
const arrangementLookTargets = {
|
|
14608
14668
|
hero: "hero",
|
|
14669
|
+
intro: "intro",
|
|
14609
14670
|
"feature-cards": "feature-cards",
|
|
14610
14671
|
"event-calendar": "events",
|
|
14611
14672
|
testimonials: "testimonials",
|
|
@@ -15512,14 +15573,20 @@ const appearancePresets = [
|
|
|
15512
15573
|
}
|
|
15513
15574
|
}),
|
|
15514
15575
|
defineArrangementLook("body-text-reading-column", "body-text", "Reading column", "prose", []),
|
|
15515
|
-
defineArrangementLook("form-beside-introduction-arched-panel", "form", "Introduction beside an arched form", "two-column", [], {
|
|
15516
|
-
|
|
15576
|
+
defineArrangementLook("form-beside-introduction-arched-panel", "form", "Introduction beside an arched form", "two-column", [], {
|
|
15577
|
+
slotRoles: { panel: "card" },
|
|
15578
|
+
styleFallback: [id$1("form-below-introduction")]
|
|
15579
|
+
}),
|
|
15580
|
+
defineArrangementLook("newsletter-signup-in-arch", "newsletter-signup", "Signup in an arch", "arch", [], { styleFallback: [id$1("newsletter-signup-text-beside")] }),
|
|
15517
15581
|
defineArrangementLook("image-gallery-square-tiles", "image-gallery", "Square tiles", "tiles", []),
|
|
15518
15582
|
defineArrangementLook("image-gallery-arched-captions", "image-gallery", "Arched photos with captions", "tiles", [], { styleFallback: [id$1("image-gallery-square-tiles")] }),
|
|
15519
|
-
defineArrangementLook("media-text-circle-beside-text", "media-text", "Circle beside the text", "circle-beside", ["imagePosition"], {
|
|
15520
|
-
|
|
15521
|
-
|
|
15522
|
-
|
|
15583
|
+
defineArrangementLook("media-text-circle-beside-text", "media-text", "Circle beside the text", "circle-beside", ["imagePosition"], {
|
|
15584
|
+
forcedKnobs: {
|
|
15585
|
+
imageShape: "circle",
|
|
15586
|
+
aspectRatio: "1/1"
|
|
15587
|
+
},
|
|
15588
|
+
styleFallback: [id$1("media-text-photo-beside-text")]
|
|
15589
|
+
}),
|
|
15523
15590
|
defineArrangementLook("hero-photo-beside-text", "hero", "Photo beside the text", "split", heroKnobs, { slotRoles: { sticker: "highlight" } }),
|
|
15524
15591
|
defineArrangementLook("hero-headline-row", "hero", "Big headline, then text and photo", "headline-row", heroKnobs, {
|
|
15525
15592
|
slotRoles: { sticker: "highlight" },
|
|
@@ -15540,6 +15607,15 @@ const appearancePresets = [
|
|
|
15540
15607
|
"text",
|
|
15541
15608
|
"action"
|
|
15542
15609
|
], ["showPhotos", "cardMarker"], { itemRoles: { items: "card" } }),
|
|
15610
|
+
defineCardListLook("card-list-accent-edged-cards", "Accent-edged cards", "cards", [
|
|
15611
|
+
"media",
|
|
15612
|
+
"title",
|
|
15613
|
+
"text",
|
|
15614
|
+
"action"
|
|
15615
|
+
], ["showPhotos", "cardMarker"], {
|
|
15616
|
+
itemRoles: { items: "card" },
|
|
15617
|
+
styleFallback: [id$1("feature-cards-cards")]
|
|
15618
|
+
}),
|
|
15543
15619
|
defineCardListLook("feature-cards-open-columns", "Open columns", "cards", [
|
|
15544
15620
|
"media",
|
|
15545
15621
|
"title",
|
|
@@ -15650,6 +15726,52 @@ const appearancePresets = [
|
|
|
15650
15726
|
defineArrangementLook("event-details-panel", "event-details", "Details panel", "details-panel", [], {
|
|
15651
15727
|
slotRoles: { panel: "card" },
|
|
15652
15728
|
styleFallback: [id$1("event-details-header")]
|
|
15729
|
+
}),
|
|
15730
|
+
defineArrangementLook("intro-statement-beside-text", "intro", "Big statement beside the text", "statement-copy", [], { styleFallback: [id$1("intro-photo-beside-text")] }),
|
|
15731
|
+
defineArrangementLook("intro-photo-beside-text", "intro", "Small photo beside the text", "media-copy", ["imagePosition", "imageShape"], { whenMissing: [{
|
|
15732
|
+
fact: "photo",
|
|
15733
|
+
look: id$1("intro-statement-beside-text")
|
|
15734
|
+
}] }),
|
|
15735
|
+
defineArrangementLook("media-text-photo-beside-text", "media-text", "Photo beside the text", "default", ["imagePosition", "imageShape"]),
|
|
15736
|
+
defineArrangementLook("newsletter-signup-one-row", "newsletter-signup", "Signup in one row", "inline", [], {
|
|
15737
|
+
slotRoles: { panel: "card" },
|
|
15738
|
+
styleFallback: [id$1("newsletter-signup-text-beside")]
|
|
15739
|
+
}),
|
|
15740
|
+
defineArrangementLook("newsletter-signup-text-beside", "newsletter-signup", "Text beside the signup", "editorial-split", [], {
|
|
15741
|
+
slotRoles: { panel: "card" },
|
|
15742
|
+
styleFallback: [id$1("newsletter-signup-in-arch")]
|
|
15743
|
+
}),
|
|
15744
|
+
defineArrangementLook("form-below-introduction", "form", "Form below its introduction", "default", [], {
|
|
15745
|
+
slotRoles: { panel: "card" },
|
|
15746
|
+
styleFallback: [id$1("form-beside-introduction-arched-panel")]
|
|
15747
|
+
}),
|
|
15748
|
+
defineCardListLook("card-list-wide-slides", "Wide cards, one at a time", "slides", [
|
|
15749
|
+
"media",
|
|
15750
|
+
"title",
|
|
15751
|
+
"text",
|
|
15752
|
+
"action"
|
|
15753
|
+
], ["showPhotos"], {
|
|
15754
|
+
itemRoles: { items: "card" },
|
|
15755
|
+
slotRoles: { date: "highlight" },
|
|
15756
|
+
knobDefaults: {
|
|
15757
|
+
actionStyle: "button",
|
|
15758
|
+
dates: "summary"
|
|
15759
|
+
},
|
|
15760
|
+
styleFallback: [id$1("card-list-plates"), id$1("feature-cards-cards")]
|
|
15761
|
+
}),
|
|
15762
|
+
defineCardListLook("card-list-scroll-row", "A row of cards you can scroll", "track", [
|
|
15763
|
+
"media",
|
|
15764
|
+
"title",
|
|
15765
|
+
"text",
|
|
15766
|
+
"action"
|
|
15767
|
+
], ["showPhotos"], {
|
|
15768
|
+
itemRoles: { items: "card" },
|
|
15769
|
+
slotRoles: { date: "highlight" },
|
|
15770
|
+
knobDefaults: {
|
|
15771
|
+
actionStyle: "button",
|
|
15772
|
+
dates: "summary"
|
|
15773
|
+
},
|
|
15774
|
+
styleFallback: [id$1("feature-cards-cards")]
|
|
15653
15775
|
})
|
|
15654
15776
|
];
|
|
15655
15777
|
//#endregion
|
|
@@ -17017,6 +17139,9 @@ const arrangementSlotNames = [
|
|
|
17017
17139
|
"social",
|
|
17018
17140
|
"base",
|
|
17019
17141
|
"section",
|
|
17142
|
+
"background",
|
|
17143
|
+
"schedule-section",
|
|
17144
|
+
"shop-section",
|
|
17020
17145
|
"stack",
|
|
17021
17146
|
"inline",
|
|
17022
17147
|
"grid",
|
|
@@ -18627,7 +18752,11 @@ const BUTTON_STYLE_IDS = [
|
|
|
18627
18752
|
"hairline-tab",
|
|
18628
18753
|
"marquee"
|
|
18629
18754
|
];
|
|
18630
|
-
const quietArrowParametersSchema = z.object({
|
|
18755
|
+
const quietArrowParametersSchema = z.object({
|
|
18756
|
+
secondaryTreatment: z.enum(["outlined", "solid-accent"]),
|
|
18757
|
+
size: z.enum(["comfortable"]).optional(),
|
|
18758
|
+
hoverTreatment: z.enum(["deep-and-sheet"]).optional()
|
|
18759
|
+
}).strict();
|
|
18631
18760
|
const flatInkHoverTreatmentSchema = z.enum([
|
|
18632
18761
|
"contextual",
|
|
18633
18762
|
"secondary",
|
|
@@ -19084,6 +19213,63 @@ const solidAccentSecondary = {
|
|
|
19084
19213
|
},
|
|
19085
19214
|
affordance: { iconId: "ArrowRight" }
|
|
19086
19215
|
};
|
|
19216
|
+
/** Selection-owned sizing leaves historical recipe output unchanged when absent. */
|
|
19217
|
+
function sizedQuietArrowRoles(roles, size) {
|
|
19218
|
+
if (size === void 0) return roles;
|
|
19219
|
+
return mapButtonRoleAppearances(roles, (appearance) => ({
|
|
19220
|
+
...appearance,
|
|
19221
|
+
states: mapButtonVisualAppearances(appearance.states, (state) => ({
|
|
19222
|
+
...state,
|
|
19223
|
+
sizes: {
|
|
19224
|
+
sm: {
|
|
19225
|
+
padding: "0.875rem 1.125rem",
|
|
19226
|
+
fontSize: "text-xs"
|
|
19227
|
+
},
|
|
19228
|
+
md: {
|
|
19229
|
+
padding: "0.75rem 1.375rem",
|
|
19230
|
+
fontSize: "text-sm"
|
|
19231
|
+
},
|
|
19232
|
+
lg: {
|
|
19233
|
+
padding: "0.875rem 1.75rem",
|
|
19234
|
+
fontSize: "text-sm"
|
|
19235
|
+
},
|
|
19236
|
+
xl: {
|
|
19237
|
+
padding: "1rem 2rem",
|
|
19238
|
+
fontSize: "text-base"
|
|
19239
|
+
}
|
|
19240
|
+
}
|
|
19241
|
+
}))
|
|
19242
|
+
}));
|
|
19243
|
+
}
|
|
19244
|
+
/** Forward sheet interaction is explicit selection data; absent preserves the captured recipe. */
|
|
19245
|
+
function quietArrowHoverRoles(roles, treatment) {
|
|
19246
|
+
if (treatment === void 0) return roles;
|
|
19247
|
+
const hover = (role, colour) => ({
|
|
19248
|
+
...roles[role],
|
|
19249
|
+
states: {
|
|
19250
|
+
...roles[role].states,
|
|
19251
|
+
hover: {
|
|
19252
|
+
...roles[role].states.hover,
|
|
19253
|
+
background: {
|
|
19254
|
+
type: "solid",
|
|
19255
|
+
colorToken: unsafeAsOpaqueButtonColourToken(colour)
|
|
19256
|
+
},
|
|
19257
|
+
text: "treatment",
|
|
19258
|
+
effects: [],
|
|
19259
|
+
...role === "secondary" ? { border: {
|
|
19260
|
+
widthClass: "border",
|
|
19261
|
+
marksBoundary: true,
|
|
19262
|
+
boundaryInk: unsafeAsOpaqueButtonColourToken("text")
|
|
19263
|
+
} } : {}
|
|
19264
|
+
}
|
|
19265
|
+
}
|
|
19266
|
+
});
|
|
19267
|
+
return {
|
|
19268
|
+
...roles,
|
|
19269
|
+
primary: hover("primary", "primary-800"),
|
|
19270
|
+
secondary: hover("secondary", "surface")
|
|
19271
|
+
};
|
|
19272
|
+
}
|
|
19087
19273
|
const quietArrowRecipe = defineButtonStyleRecipe({
|
|
19088
19274
|
id: "quiet-arrow",
|
|
19089
19275
|
accessibilityLabel: "Wide uppercase buttons with trailing arrows",
|
|
@@ -19107,10 +19293,10 @@ const quietArrowRecipe = defineButtonStyleRecipe({
|
|
|
19107
19293
|
label: "Solid accent"
|
|
19108
19294
|
}]
|
|
19109
19295
|
}],
|
|
19110
|
-
defineSystem: (parameters) => ({ roles: {
|
|
19296
|
+
defineSystem: (parameters) => ({ roles: quietArrowHoverRoles(sizedQuietArrowRoles({
|
|
19111
19297
|
...quietArrowSystem.roles,
|
|
19112
19298
|
secondary: parameters.secondaryTreatment === "solid-accent" ? solidAccentSecondary : quietArrowSystem.roles.secondary
|
|
19113
|
-
} })
|
|
19299
|
+
}, parameters.size), parameters.hoverTreatment) })
|
|
19114
19300
|
});
|
|
19115
19301
|
//#endregion
|
|
19116
19302
|
//#region ../theme-core/src/buttons/styles/recipes/flatInk.ts
|
|
@@ -25524,6 +25710,36 @@ const groundedSerifTypography = {
|
|
|
25524
25710
|
},
|
|
25525
25711
|
scale: "balanced"
|
|
25526
25712
|
};
|
|
25713
|
+
/** Folio keeps the practitioner pairing, with a larger serif and working sans names. */
|
|
25714
|
+
const folioTypography = {
|
|
25715
|
+
...groundedSerifTypography,
|
|
25716
|
+
body: {
|
|
25717
|
+
...groundedSerifTypography.body,
|
|
25718
|
+
family: "Open Sans, system-ui, sans-serif",
|
|
25719
|
+
size: "lg"
|
|
25720
|
+
},
|
|
25721
|
+
smallHeading: {
|
|
25722
|
+
family: "Open Sans, system-ui, sans-serif",
|
|
25723
|
+
weight: "semibold"
|
|
25724
|
+
},
|
|
25725
|
+
headings: {
|
|
25726
|
+
...groundedSerifTypography.headings,
|
|
25727
|
+
h1: {
|
|
25728
|
+
...groundedSerifTypography.headings.h1,
|
|
25729
|
+
lineHeight: "tight",
|
|
25730
|
+
letterSpacing: "tight"
|
|
25731
|
+
},
|
|
25732
|
+
h2: {
|
|
25733
|
+
...groundedSerifTypography.headings.h2,
|
|
25734
|
+
lineHeight: "tight",
|
|
25735
|
+
letterSpacing: "tight"
|
|
25736
|
+
},
|
|
25737
|
+
h3: {
|
|
25738
|
+
...groundedSerifTypography.headings.h3,
|
|
25739
|
+
lineHeight: "tight"
|
|
25740
|
+
}
|
|
25741
|
+
}
|
|
25742
|
+
};
|
|
25527
25743
|
const kirtanOrnateTypography = {
|
|
25528
25744
|
body: {
|
|
25529
25745
|
family: "Jost, system-ui, sans-serif",
|
|
@@ -26054,6 +26270,15 @@ const eyebrowTypographyStyleSchema = z.object({
|
|
|
26054
26270
|
});
|
|
26055
26271
|
const typographySchema = z.object({
|
|
26056
26272
|
body: bodyTypographyStyleSchema,
|
|
26273
|
+
smallHeading: z.object({
|
|
26274
|
+
family: z.string().min(1),
|
|
26275
|
+
weight: z.enum([
|
|
26276
|
+
"regular",
|
|
26277
|
+
"medium",
|
|
26278
|
+
"semibold",
|
|
26279
|
+
"bold"
|
|
26280
|
+
])
|
|
26281
|
+
}).optional(),
|
|
26057
26282
|
headings: z.object({
|
|
26058
26283
|
default: headingTypographyStyleSchema,
|
|
26059
26284
|
h1: headingTypographyOverridesSchema,
|
|
@@ -26806,6 +27031,7 @@ const headerContainerSchema = z.object({
|
|
|
26806
27031
|
"lg"
|
|
26807
27032
|
]).default("md"),
|
|
26808
27033
|
tint: z.string().nullable().optional(),
|
|
27034
|
+
mobileSheet: z.literal("inset").optional(),
|
|
26809
27035
|
opacity: z.number().min(0).max(1).default(.12)
|
|
26810
27036
|
}).optional();
|
|
26811
27037
|
//#endregion
|
|
@@ -27784,7 +28010,8 @@ const curatedSiteStyleIdValues = [
|
|
|
27784
28010
|
"site-style:grounded-practice",
|
|
27785
28011
|
"site-style:poster",
|
|
27786
28012
|
"site-style:lantern",
|
|
27787
|
-
"site-style:measure"
|
|
28013
|
+
"site-style:measure",
|
|
28014
|
+
"site-style:folio"
|
|
27788
28015
|
];
|
|
27789
28016
|
const quietBudget = {
|
|
27790
28017
|
accentDensity: "low",
|
|
@@ -28113,6 +28340,30 @@ const headerCurationBySiteStyle = {
|
|
|
28113
28340
|
"fine-line"
|
|
28114
28341
|
]
|
|
28115
28342
|
}]),
|
|
28343
|
+
"site-style:folio": defineHeaderCuration([
|
|
28344
|
+
{
|
|
28345
|
+
layoutId: "floating",
|
|
28346
|
+
styleIds: ["minimal-surface", "glass"]
|
|
28347
|
+
},
|
|
28348
|
+
{
|
|
28349
|
+
layoutId: "classic",
|
|
28350
|
+
styleIds: [
|
|
28351
|
+
"minimal",
|
|
28352
|
+
"serif-line",
|
|
28353
|
+
"fine-line",
|
|
28354
|
+
"soft-bar"
|
|
28355
|
+
]
|
|
28356
|
+
},
|
|
28357
|
+
{
|
|
28358
|
+
layoutId: "centered",
|
|
28359
|
+
styleIds: [
|
|
28360
|
+
"serif-line",
|
|
28361
|
+
"fine-line",
|
|
28362
|
+
"minimal",
|
|
28363
|
+
"soft-bar"
|
|
28364
|
+
]
|
|
28365
|
+
}
|
|
28366
|
+
]),
|
|
28116
28367
|
"site-style:measure": defineHeaderCuration([{
|
|
28117
28368
|
layoutId: "classic",
|
|
28118
28369
|
styleIds: ["fine-line", "minimal"]
|
|
@@ -28142,6 +28393,7 @@ function defineCuratedSiteStyle(input) {
|
|
|
28142
28393
|
recommendedAppearancePresetIds
|
|
28143
28394
|
},
|
|
28144
28395
|
headerCuration: headerCurationBySiteStyle[input.id],
|
|
28396
|
+
headerStyleRecipes: input.headerStyleRecipes,
|
|
28145
28397
|
footerLookRecipes: input.footerLookRecipes,
|
|
28146
28398
|
recommendedFooterLookIds: (input.recommendedFooterLookIds ?? []).map(asFooterLookId),
|
|
28147
28399
|
buttonStyleChoices: input.buttonStyleChoices,
|
|
@@ -28175,6 +28427,233 @@ function paletteRecommendation(authoringKey, note) {
|
|
|
28175
28427
|
const id = asAppearancePresetId;
|
|
28176
28428
|
const quieterOrStandard = { titleSize: ["quiet", "auto"] };
|
|
28177
28429
|
/** Fulcrum: cards are white sheets, the statement is the brand band, stickers are sheets too. */
|
|
28430
|
+
const folioRoles = {
|
|
28431
|
+
card: "sheet",
|
|
28432
|
+
statement: {
|
|
28433
|
+
default: "band",
|
|
28434
|
+
band: "sheet"
|
|
28435
|
+
},
|
|
28436
|
+
highlight: "band"
|
|
28437
|
+
};
|
|
28438
|
+
const folioLinks = { link: "primary" };
|
|
28439
|
+
const folioLooks = {
|
|
28440
|
+
kind: "offers",
|
|
28441
|
+
skin: "folio",
|
|
28442
|
+
skinTokens: {
|
|
28443
|
+
radius: "10px",
|
|
28444
|
+
rule: "1px",
|
|
28445
|
+
"mark-length": "44px",
|
|
28446
|
+
"mark-weight": "2px",
|
|
28447
|
+
gutter: "32px",
|
|
28448
|
+
"copy-gap": "1.25rem",
|
|
28449
|
+
"stack-gap": "2.5rem"
|
|
28450
|
+
},
|
|
28451
|
+
fontLoading: {
|
|
28452
|
+
extraHeadingFontWeights: [600],
|
|
28453
|
+
italicHeadingFontWeights: [500]
|
|
28454
|
+
},
|
|
28455
|
+
surfaces: {
|
|
28456
|
+
base: {
|
|
28457
|
+
kind: "token",
|
|
28458
|
+
token: "background",
|
|
28459
|
+
foreground: folioLinks
|
|
28460
|
+
},
|
|
28461
|
+
sheet: {
|
|
28462
|
+
kind: "token",
|
|
28463
|
+
token: "surface",
|
|
28464
|
+
roleOnly: true,
|
|
28465
|
+
foreground: folioLinks
|
|
28466
|
+
},
|
|
28467
|
+
band: {
|
|
28468
|
+
kind: "token",
|
|
28469
|
+
token: "muted",
|
|
28470
|
+
foreground: folioLinks
|
|
28471
|
+
},
|
|
28472
|
+
brand: {
|
|
28473
|
+
kind: "token",
|
|
28474
|
+
token: "primary",
|
|
28475
|
+
foreground: folioLinks
|
|
28476
|
+
},
|
|
28477
|
+
deep: {
|
|
28478
|
+
kind: "token",
|
|
28479
|
+
token: "primary-800",
|
|
28480
|
+
foreground: folioLinks
|
|
28481
|
+
}
|
|
28482
|
+
},
|
|
28483
|
+
rhythm: {
|
|
28484
|
+
"flow:quiet": [
|
|
28485
|
+
"base",
|
|
28486
|
+
"base",
|
|
28487
|
+
"band",
|
|
28488
|
+
"base",
|
|
28489
|
+
"band",
|
|
28490
|
+
"base"
|
|
28491
|
+
],
|
|
28492
|
+
"flow:balanced": [
|
|
28493
|
+
"base",
|
|
28494
|
+
"band",
|
|
28495
|
+
"base",
|
|
28496
|
+
"deep",
|
|
28497
|
+
"base",
|
|
28498
|
+
"band"
|
|
28499
|
+
],
|
|
28500
|
+
"flow:expressive": [
|
|
28501
|
+
"base",
|
|
28502
|
+
"band",
|
|
28503
|
+
"deep",
|
|
28504
|
+
"base",
|
|
28505
|
+
"band",
|
|
28506
|
+
"brand"
|
|
28507
|
+
]
|
|
28508
|
+
},
|
|
28509
|
+
offers: [
|
|
28510
|
+
{
|
|
28511
|
+
id: id("hero-photo-beside-text"),
|
|
28512
|
+
treatment: "hero-framed",
|
|
28513
|
+
knobValues: quieterOrStandard,
|
|
28514
|
+
roleMap: folioRoles
|
|
28515
|
+
},
|
|
28516
|
+
{
|
|
28517
|
+
id: id("hero-photo-behind-text"),
|
|
28518
|
+
treatment: "hero-panel",
|
|
28519
|
+
knobValues: quieterOrStandard,
|
|
28520
|
+
roleMap: folioRoles
|
|
28521
|
+
},
|
|
28522
|
+
{
|
|
28523
|
+
id: id("hero-page-head"),
|
|
28524
|
+
treatment: "hero-ruled",
|
|
28525
|
+
knobValues: quieterOrStandard,
|
|
28526
|
+
roleMap: folioRoles
|
|
28527
|
+
},
|
|
28528
|
+
{
|
|
28529
|
+
id: id("intro-photo-beside-text"),
|
|
28530
|
+
treatment: "intro-keyline",
|
|
28531
|
+
roleMap: folioRoles
|
|
28532
|
+
},
|
|
28533
|
+
{
|
|
28534
|
+
id: id("intro-statement-beside-text"),
|
|
28535
|
+
treatment: "intro-ruled-split",
|
|
28536
|
+
roleMap: folioRoles
|
|
28537
|
+
},
|
|
28538
|
+
{
|
|
28539
|
+
id: id("media-text-photo-beside-text"),
|
|
28540
|
+
treatment: "media-mount",
|
|
28541
|
+
roleMap: folioRoles
|
|
28542
|
+
},
|
|
28543
|
+
{
|
|
28544
|
+
id: id("media-text-circle-beside-text"),
|
|
28545
|
+
treatment: "media-circle",
|
|
28546
|
+
roleMap: folioRoles
|
|
28547
|
+
},
|
|
28548
|
+
{
|
|
28549
|
+
id: id("feature-cards-cards"),
|
|
28550
|
+
treatment: "cards-sheet",
|
|
28551
|
+
roleMap: folioRoles
|
|
28552
|
+
},
|
|
28553
|
+
{
|
|
28554
|
+
id: id("feature-cards-open-columns"),
|
|
28555
|
+
treatment: "cards-open",
|
|
28556
|
+
roleMap: folioRoles
|
|
28557
|
+
},
|
|
28558
|
+
{
|
|
28559
|
+
id: id("feature-cards-index"),
|
|
28560
|
+
treatment: "cards-register",
|
|
28561
|
+
roleMap: folioRoles
|
|
28562
|
+
},
|
|
28563
|
+
{
|
|
28564
|
+
id: id("body-text-reading-column"),
|
|
28565
|
+
treatment: "body-reading",
|
|
28566
|
+
roleMap: folioRoles
|
|
28567
|
+
},
|
|
28568
|
+
{
|
|
28569
|
+
id: id("event-calendar-ruled-rows"),
|
|
28570
|
+
treatment: "calendar-card",
|
|
28571
|
+
itemRoles: { container: "card" },
|
|
28572
|
+
surfaceTints: { date: {
|
|
28573
|
+
source: "text",
|
|
28574
|
+
opacity: 8
|
|
28575
|
+
} },
|
|
28576
|
+
roleMap: folioRoles
|
|
28577
|
+
},
|
|
28578
|
+
{
|
|
28579
|
+
id: id("event-calendar-session-cards"),
|
|
28580
|
+
treatment: "calendar-sheets",
|
|
28581
|
+
roleMap: folioRoles
|
|
28582
|
+
},
|
|
28583
|
+
{
|
|
28584
|
+
id: id("event-calendar-next-three"),
|
|
28585
|
+
treatment: "calendar-compact",
|
|
28586
|
+
roleMap: folioRoles
|
|
28587
|
+
},
|
|
28588
|
+
{
|
|
28589
|
+
id: id("event-calendar-month-grid"),
|
|
28590
|
+
treatment: "calendar-month",
|
|
28591
|
+
roleMap: folioRoles
|
|
28592
|
+
},
|
|
28593
|
+
{
|
|
28594
|
+
id: id("event-details-panel"),
|
|
28595
|
+
treatment: "details-sheet",
|
|
28596
|
+
roleMap: {
|
|
28597
|
+
...folioRoles,
|
|
28598
|
+
card: "section"
|
|
28599
|
+
}
|
|
28600
|
+
},
|
|
28601
|
+
{
|
|
28602
|
+
id: id("event-details-header"),
|
|
28603
|
+
treatment: "details-ruled",
|
|
28604
|
+
roleMap: folioRoles
|
|
28605
|
+
},
|
|
28606
|
+
{
|
|
28607
|
+
id: id("newsletter-signup-text-beside"),
|
|
28608
|
+
treatment: "signup-sheet",
|
|
28609
|
+
roleMap: {
|
|
28610
|
+
...folioRoles,
|
|
28611
|
+
card: "section"
|
|
28612
|
+
}
|
|
28613
|
+
},
|
|
28614
|
+
{
|
|
28615
|
+
id: id("newsletter-signup-one-row"),
|
|
28616
|
+
treatment: "signup-row",
|
|
28617
|
+
roleMap: {
|
|
28618
|
+
...folioRoles,
|
|
28619
|
+
card: "section"
|
|
28620
|
+
}
|
|
28621
|
+
},
|
|
28622
|
+
{
|
|
28623
|
+
id: id("form-below-introduction"),
|
|
28624
|
+
treatment: "form-sheet-below",
|
|
28625
|
+
roleMap: {
|
|
28626
|
+
...folioRoles,
|
|
28627
|
+
card: "section"
|
|
28628
|
+
}
|
|
28629
|
+
},
|
|
28630
|
+
{
|
|
28631
|
+
id: id("testimonials-lead-quote"),
|
|
28632
|
+
treatment: "quote-lead",
|
|
28633
|
+
roleMap: folioRoles
|
|
28634
|
+
},
|
|
28635
|
+
{
|
|
28636
|
+
id: id("testimonials-quote-cards"),
|
|
28637
|
+
treatment: "quote-sheets",
|
|
28638
|
+
roleMap: folioRoles
|
|
28639
|
+
},
|
|
28640
|
+
{
|
|
28641
|
+
id: id("card-list-accent-edged-cards"),
|
|
28642
|
+
treatment: "cards-accent-edged",
|
|
28643
|
+
roleMap: folioRoles
|
|
28644
|
+
},
|
|
28645
|
+
{
|
|
28646
|
+
id: id("card-list-wide-slides"),
|
|
28647
|
+
treatment: "carousel-wide-sheet",
|
|
28648
|
+
roleMap: folioRoles
|
|
28649
|
+
},
|
|
28650
|
+
{
|
|
28651
|
+
id: id("card-list-scroll-row"),
|
|
28652
|
+
treatment: "carousel-row-sheet",
|
|
28653
|
+
roleMap: folioRoles
|
|
28654
|
+
}
|
|
28655
|
+
]
|
|
28656
|
+
};
|
|
28178
28657
|
const fulcrumRoles = {
|
|
28179
28658
|
card: "sheet",
|
|
28180
28659
|
statement: {
|
|
@@ -28381,6 +28860,55 @@ const fulcrumLooks = {
|
|
|
28381
28860
|
id: id("testimonials-scroll-row"),
|
|
28382
28861
|
treatment: "cards",
|
|
28383
28862
|
roleMap: fulcrumRoles
|
|
28863
|
+
},
|
|
28864
|
+
{
|
|
28865
|
+
id: id("intro-photo-beside-text"),
|
|
28866
|
+
treatment: "intro-plate",
|
|
28867
|
+
roleMap: fulcrumRoles
|
|
28868
|
+
},
|
|
28869
|
+
{
|
|
28870
|
+
id: id("intro-statement-beside-text"),
|
|
28871
|
+
treatment: "lintel",
|
|
28872
|
+
roleMap: fulcrumRoles
|
|
28873
|
+
},
|
|
28874
|
+
{
|
|
28875
|
+
id: id("media-text-photo-beside-text"),
|
|
28876
|
+
treatment: "beside-plate",
|
|
28877
|
+
roleMap: fulcrumRoles
|
|
28878
|
+
},
|
|
28879
|
+
{
|
|
28880
|
+
id: id("newsletter-signup-one-row"),
|
|
28881
|
+
treatment: "signup-strip",
|
|
28882
|
+
roleMap: {
|
|
28883
|
+
...fulcrumRoles,
|
|
28884
|
+
card: "section"
|
|
28885
|
+
}
|
|
28886
|
+
},
|
|
28887
|
+
{
|
|
28888
|
+
id: id("newsletter-signup-text-beside"),
|
|
28889
|
+
treatment: "signup-beside-panel",
|
|
28890
|
+
roleMap: fulcrumRoles
|
|
28891
|
+
},
|
|
28892
|
+
{
|
|
28893
|
+
id: id("form-below-introduction"),
|
|
28894
|
+
treatment: "form-sheet",
|
|
28895
|
+
roleMap: fulcrumRoles
|
|
28896
|
+
},
|
|
28897
|
+
{
|
|
28898
|
+
id: id("card-list-wide-slides"),
|
|
28899
|
+
treatment: "carousel-wide-plate",
|
|
28900
|
+
roleMap: fulcrumRoles,
|
|
28901
|
+
knobValues: { actionStyle: ["link"] }
|
|
28902
|
+
},
|
|
28903
|
+
{
|
|
28904
|
+
id: id("card-list-scroll-row"),
|
|
28905
|
+
treatment: "carousel-row-cards",
|
|
28906
|
+
roleMap: fulcrumRoles
|
|
28907
|
+
},
|
|
28908
|
+
{
|
|
28909
|
+
id: id("card-list-accent-edged-cards"),
|
|
28910
|
+
treatment: "cards-accent-edged",
|
|
28911
|
+
roleMap: fulcrumRoles
|
|
28384
28912
|
}
|
|
28385
28913
|
]
|
|
28386
28914
|
};
|
|
@@ -28512,6 +29040,49 @@ const posterOffers = [
|
|
|
28512
29040
|
id: id("testimonials-scroll-row"),
|
|
28513
29041
|
treatment: "punchy",
|
|
28514
29042
|
roleMap: posterRoles
|
|
29043
|
+
},
|
|
29044
|
+
{
|
|
29045
|
+
id: id("intro-photo-beside-text"),
|
|
29046
|
+
treatment: "ink-edge",
|
|
29047
|
+
roleMap: posterRoles
|
|
29048
|
+
},
|
|
29049
|
+
{
|
|
29050
|
+
id: id("intro-statement-beside-text"),
|
|
29051
|
+
treatment: "headline",
|
|
29052
|
+
roleMap: posterRoles
|
|
29053
|
+
},
|
|
29054
|
+
{
|
|
29055
|
+
id: id("media-text-photo-beside-text"),
|
|
29056
|
+
treatment: "beside-slab",
|
|
29057
|
+
roleMap: posterRoles
|
|
29058
|
+
},
|
|
29059
|
+
{
|
|
29060
|
+
id: id("newsletter-signup-one-row"),
|
|
29061
|
+
treatment: "signup-ticket",
|
|
29062
|
+
roleMap: posterRoles
|
|
29063
|
+
},
|
|
29064
|
+
{
|
|
29065
|
+
id: id("newsletter-signup-text-beside"),
|
|
29066
|
+
treatment: "signup-block",
|
|
29067
|
+
roleMap: {
|
|
29068
|
+
...posterRoles,
|
|
29069
|
+
card: "pop"
|
|
29070
|
+
}
|
|
29071
|
+
},
|
|
29072
|
+
{
|
|
29073
|
+
id: id("form-below-introduction"),
|
|
29074
|
+
treatment: "form-heavy",
|
|
29075
|
+
roleMap: posterRoles
|
|
29076
|
+
},
|
|
29077
|
+
{
|
|
29078
|
+
id: id("card-list-wide-slides"),
|
|
29079
|
+
treatment: "carousel-wide-stamp",
|
|
29080
|
+
roleMap: posterRoles
|
|
29081
|
+
},
|
|
29082
|
+
{
|
|
29083
|
+
id: id("card-list-scroll-row"),
|
|
29084
|
+
treatment: "carousel-row-punchy",
|
|
29085
|
+
roleMap: posterRoles
|
|
28515
29086
|
}
|
|
28516
29087
|
];
|
|
28517
29088
|
const posterLooks = {
|
|
@@ -28856,6 +29427,48 @@ const lanternLooks = {
|
|
|
28856
29427
|
treatment: "quote-arch",
|
|
28857
29428
|
addKnobs: ["archFrame"],
|
|
28858
29429
|
roleMap: lanternRoles
|
|
29430
|
+
},
|
|
29431
|
+
{
|
|
29432
|
+
id: id("testimonials-scroll-row"),
|
|
29433
|
+
treatment: "quote-row-cards",
|
|
29434
|
+
addKnobs: ["archFrame"],
|
|
29435
|
+
roleMap: lanternRoles
|
|
29436
|
+
},
|
|
29437
|
+
{
|
|
29438
|
+
id: id("intro-photo-beside-text"),
|
|
29439
|
+
treatment: "ringed",
|
|
29440
|
+
roleMap: lanternRoles
|
|
29441
|
+
},
|
|
29442
|
+
{
|
|
29443
|
+
id: id("intro-statement-beside-text"),
|
|
29444
|
+
treatment: "divided",
|
|
29445
|
+
roleMap: lanternRoles
|
|
29446
|
+
},
|
|
29447
|
+
{
|
|
29448
|
+
id: id("media-text-photo-beside-text"),
|
|
29449
|
+
treatment: "outlined",
|
|
29450
|
+
roleMap: lanternRoles
|
|
29451
|
+
},
|
|
29452
|
+
{
|
|
29453
|
+
id: id("newsletter-signup-text-beside"),
|
|
29454
|
+
treatment: "signup-beside-arch",
|
|
29455
|
+
addKnobs: ["archFrame"],
|
|
29456
|
+
roleMap: lanternRoles
|
|
29457
|
+
},
|
|
29458
|
+
{
|
|
29459
|
+
id: id("form-below-introduction"),
|
|
29460
|
+
treatment: "form-arch-below",
|
|
29461
|
+
roleMap: lanternRoles
|
|
29462
|
+
},
|
|
29463
|
+
{
|
|
29464
|
+
id: id("card-list-wide-slides"),
|
|
29465
|
+
treatment: "carousel-wide-arch",
|
|
29466
|
+
roleMap: lanternRoles
|
|
29467
|
+
},
|
|
29468
|
+
{
|
|
29469
|
+
id: id("card-list-scroll-row"),
|
|
29470
|
+
treatment: "carousel-row-cards",
|
|
29471
|
+
roleMap: lanternRoles
|
|
28859
29472
|
}
|
|
28860
29473
|
]
|
|
28861
29474
|
};
|
|
@@ -29044,6 +29657,51 @@ const measureLooks = {
|
|
|
29044
29657
|
id: id("testimonials-one-at-a-time"),
|
|
29045
29658
|
treatment: "counter",
|
|
29046
29659
|
roleMap: measureRoles
|
|
29660
|
+
},
|
|
29661
|
+
{
|
|
29662
|
+
id: id("testimonials-scroll-row"),
|
|
29663
|
+
treatment: "quote-row-hairline",
|
|
29664
|
+
roleMap: measureRuledPanelRoles
|
|
29665
|
+
},
|
|
29666
|
+
{
|
|
29667
|
+
id: id("intro-photo-beside-text"),
|
|
29668
|
+
treatment: "rail-photo",
|
|
29669
|
+
roleMap: measureRoles
|
|
29670
|
+
},
|
|
29671
|
+
{
|
|
29672
|
+
id: id("intro-statement-beside-text"),
|
|
29673
|
+
treatment: "rule-split",
|
|
29674
|
+
roleMap: measureRoles
|
|
29675
|
+
},
|
|
29676
|
+
{
|
|
29677
|
+
id: id("media-text-photo-beside-text"),
|
|
29678
|
+
treatment: "beside-grid",
|
|
29679
|
+
roleMap: measureRoles
|
|
29680
|
+
},
|
|
29681
|
+
{
|
|
29682
|
+
id: id("newsletter-signup-one-row"),
|
|
29683
|
+
treatment: "signup-rail-row",
|
|
29684
|
+
roleMap: measureRuledPanelRoles
|
|
29685
|
+
},
|
|
29686
|
+
{
|
|
29687
|
+
id: id("newsletter-signup-text-beside"),
|
|
29688
|
+
treatment: "signup-split",
|
|
29689
|
+
roleMap: measureRoles
|
|
29690
|
+
},
|
|
29691
|
+
{
|
|
29692
|
+
id: id("form-below-introduction"),
|
|
29693
|
+
treatment: "form-rail",
|
|
29694
|
+
roleMap: measureRuledPanelRoles
|
|
29695
|
+
},
|
|
29696
|
+
{
|
|
29697
|
+
id: id("card-list-wide-slides"),
|
|
29698
|
+
treatment: "carousel-wide-sheet",
|
|
29699
|
+
roleMap: measureRoles
|
|
29700
|
+
},
|
|
29701
|
+
{
|
|
29702
|
+
id: id("card-list-scroll-row"),
|
|
29703
|
+
treatment: "carousel-row-sheets",
|
|
29704
|
+
roleMap: measureRoles
|
|
29047
29705
|
}
|
|
29048
29706
|
]
|
|
29049
29707
|
};
|
|
@@ -29507,7 +30165,10 @@ const curatedSiteStyles = [
|
|
|
29507
30165
|
headingDecoration: noHeadingDecoration,
|
|
29508
30166
|
description: "Calm and editorial: Newsreader over IBM Plex Sans, hairlines instead of boxes, flat ink actions, and photos mounted on an offset plate in the brand tone.",
|
|
29509
30167
|
generationBrief: "Use a calm, well-run voice: precise, reassuring and specific. Lead with what happens at a first visit, keep proof concrete (registrations, same-week appointments, outcomes), use sentence case throughout with no all-caps labels, and let photographs carry the boldness. Avoid spa or hard-sell wellness language and medical claims.",
|
|
29510
|
-
offering: {
|
|
30168
|
+
offering: {
|
|
30169
|
+
kind: "public",
|
|
30170
|
+
generation: { kind: "explicit_only" }
|
|
30171
|
+
},
|
|
29511
30172
|
tokenRecipes: {
|
|
29512
30173
|
palette: "brand-led",
|
|
29513
30174
|
contrast: "standard",
|
|
@@ -29642,7 +30303,10 @@ const curatedSiteStyles = [
|
|
|
29642
30303
|
headingDecoration: noHeadingDecoration,
|
|
29643
30304
|
description: "Loud but controlled: huge condensed type, flat colour blocks, hard offset shadows on anything you can press, and one sticker for the news.",
|
|
29644
30305
|
generationBrief: "Write like a gig poster: short, direct lines, one fact set big (a time, a price, an age range), sentence case throughout and no all-caps labels. Keep body copy plain and friendly, and save the sticker line for one piece of real news.",
|
|
29645
|
-
offering: {
|
|
30306
|
+
offering: {
|
|
30307
|
+
kind: "public",
|
|
30308
|
+
generation: { kind: "explicit_only" }
|
|
30309
|
+
},
|
|
29646
30310
|
tokenRecipes: {
|
|
29647
30311
|
palette: "brand-led",
|
|
29648
30312
|
contrast: "strong",
|
|
@@ -29694,8 +30358,8 @@ const curatedSiteStyles = [
|
|
|
29694
30358
|
description: "Dark, candlelit and symmetrical: Gloock display over Alegreya Sans, every photo seen through an arched window, one small lozenge rule above each heading, and a lit panel for the one thing you would pick.",
|
|
29695
30359
|
generationBrief: "Warm and ceremonial without being religious. Write plain invitations (\"Come along this Friday\") with real times and prices, sentence case throughout and no all-caps labels. Let the quiet, candlelit mood come from the photographs rather than from spiritual language.",
|
|
29696
30360
|
offering: {
|
|
29697
|
-
kind: "
|
|
29698
|
-
|
|
30361
|
+
kind: "public",
|
|
30362
|
+
generation: { kind: "explicit_only" }
|
|
29699
30363
|
},
|
|
29700
30364
|
tokenRecipes: {
|
|
29701
30365
|
palette: "brand-led",
|
|
@@ -29753,7 +30417,10 @@ const curatedSiteStyles = [
|
|
|
29753
30417
|
headingDecoration: noHeadingDecoration,
|
|
29754
30418
|
description: "Swiss and warm: one grotesque through weight and size, a visible twelve-column grid, a heavy rule and a small hanging title at the top of every section, square corners and no shadows. The accent is only ever a small square.",
|
|
29755
30419
|
generationBrief: "Calm and exact, for one-to-one practices. Number real sequences and nothing else, give times and fees as plain figures, keep sentence case throughout, and include a crisis line where a therapy site needs one. Avoid wellness cliches and promises of outcomes.",
|
|
29756
|
-
offering: {
|
|
30420
|
+
offering: {
|
|
30421
|
+
kind: "public",
|
|
30422
|
+
generation: { kind: "explicit_only" }
|
|
30423
|
+
},
|
|
29757
30424
|
tokenRecipes: {
|
|
29758
30425
|
palette: "brand-led",
|
|
29759
30426
|
contrast: "strong",
|
|
@@ -29782,6 +30449,104 @@ const curatedSiteStyles = [
|
|
|
29782
30449
|
paletteRecommendation("measure-plaster"),
|
|
29783
30450
|
paletteRecommendation("measure-night")
|
|
29784
30451
|
]
|
|
30452
|
+
}),
|
|
30453
|
+
defineCuratedSiteStyle({
|
|
30454
|
+
id: "site-style:folio",
|
|
30455
|
+
name: "Folio",
|
|
30456
|
+
offering: {
|
|
30457
|
+
kind: "public",
|
|
30458
|
+
generation: { kind: "explicit_only" }
|
|
30459
|
+
},
|
|
30460
|
+
description: "Calm and editorial: a classic serif over a plain sans, soft corners, thin rules and photos with room around them. For practitioners who teach classes, see clients and run workshops.",
|
|
30461
|
+
generationBrief: "Use restrained serif headings, clear sans-serif body copy, natural photography, practical calls to action and concrete class and workshop details.",
|
|
30462
|
+
headingDecoration: noHeadingDecoration,
|
|
30463
|
+
tokenRecipes: {
|
|
30464
|
+
palette: "warm-neutral",
|
|
30465
|
+
contrast: "standard",
|
|
30466
|
+
radius: "soft",
|
|
30467
|
+
shadow: "none",
|
|
30468
|
+
typography: "classic-serif",
|
|
30469
|
+
spacing: "airy",
|
|
30470
|
+
motion: "subtle"
|
|
30471
|
+
},
|
|
30472
|
+
compositionBudget: accentLedQuietBudget,
|
|
30473
|
+
typography: folioTypography,
|
|
30474
|
+
heroTypography: groundedSerifHeroTypography,
|
|
30475
|
+
looks: folioLooks,
|
|
30476
|
+
contentTemplateDefaults: { event: "event-header" },
|
|
30477
|
+
themeOverrides: {
|
|
30478
|
+
accordions: editorialDividedAccordionSystem,
|
|
30479
|
+
testimonialQuote: serifDisplayQuote
|
|
30480
|
+
},
|
|
30481
|
+
headerStyleRecipes: { "minimal-surface": {
|
|
30482
|
+
tone: "neutral",
|
|
30483
|
+
background: { kind: "transparent" },
|
|
30484
|
+
nav: {
|
|
30485
|
+
kind: "minimal",
|
|
30486
|
+
hoverColorToken: "primary"
|
|
30487
|
+
},
|
|
30488
|
+
navWeight: "medium",
|
|
30489
|
+
navLinkWeight: "medium",
|
|
30490
|
+
navTypography: "plain",
|
|
30491
|
+
border: "none",
|
|
30492
|
+
shadow: { kind: "absent" },
|
|
30493
|
+
frame: {
|
|
30494
|
+
kind: "container",
|
|
30495
|
+
rounded: "lg",
|
|
30496
|
+
padding: "sm",
|
|
30497
|
+
tint: "background",
|
|
30498
|
+
opacity: 1,
|
|
30499
|
+
shadow: false,
|
|
30500
|
+
mobileSheet: "inset"
|
|
30501
|
+
},
|
|
30502
|
+
cta: { treatment: "default" },
|
|
30503
|
+
openingPlacement: "photo-behind-text"
|
|
30504
|
+
} },
|
|
30505
|
+
footerLookRecipes: { "footer-links-row": {
|
|
30506
|
+
arrangement: "simple",
|
|
30507
|
+
ground: {
|
|
30508
|
+
kind: "token",
|
|
30509
|
+
token: "surface"
|
|
30510
|
+
},
|
|
30511
|
+
nav: {
|
|
30512
|
+
weight: "regular",
|
|
30513
|
+
colorToken: "text",
|
|
30514
|
+
hoverColorToken: "primary",
|
|
30515
|
+
typography: "body"
|
|
30516
|
+
},
|
|
30517
|
+
legal: {
|
|
30518
|
+
kind: "separate",
|
|
30519
|
+
bar: {
|
|
30520
|
+
fullBleed: false,
|
|
30521
|
+
background: {
|
|
30522
|
+
kind: "token",
|
|
30523
|
+
token: "surface"
|
|
30524
|
+
},
|
|
30525
|
+
textColor: "text",
|
|
30526
|
+
textAlign: "left",
|
|
30527
|
+
paddingY: "tight",
|
|
30528
|
+
paddingX: "none",
|
|
30529
|
+
borderTop: { width: "none" }
|
|
30530
|
+
}
|
|
30531
|
+
},
|
|
30532
|
+
brandAlign: "start",
|
|
30533
|
+
brandLogoSize: "md"
|
|
30534
|
+
} },
|
|
30535
|
+
recommendedFooterLookIds: ["footer-links-row"],
|
|
30536
|
+
buttonStyleChoices: [
|
|
30537
|
+
buttonChoice("quiet-arrow", void 0, {
|
|
30538
|
+
secondaryTreatment: "solid-accent",
|
|
30539
|
+
size: "comfortable",
|
|
30540
|
+
hoverTreatment: "deep-and-sheet"
|
|
30541
|
+
}),
|
|
30542
|
+
buttonChoice("flat-ink"),
|
|
30543
|
+
buttonChoice("editorial-link")
|
|
30544
|
+
],
|
|
30545
|
+
paletteRecommendations: [
|
|
30546
|
+
paletteRecommendation("warm-neutral-forest"),
|
|
30547
|
+
paletteRecommendation("soft-natural-sage"),
|
|
30548
|
+
paletteRecommendation("soft-natural-stone")
|
|
30549
|
+
]
|
|
29785
30550
|
})
|
|
29786
30551
|
];
|
|
29787
30552
|
new Map(curatedSiteStyles.map((style) => [style.id, style]));
|
|
@@ -30597,6 +31362,14 @@ const systemCustomizeFacetDefinitions = [
|
|
|
30597
31362
|
value: "right",
|
|
30598
31363
|
label: "Right"
|
|
30599
31364
|
}], "right"),
|
|
31365
|
+
fixedKnob("block.intro", "imageShape", "Media shape", standardImageShapeOptions, "default"),
|
|
31366
|
+
fixedKnob("block.intro", "imagePosition", "Photo side", [{
|
|
31367
|
+
value: "left",
|
|
31368
|
+
label: "Left"
|
|
31369
|
+
}, {
|
|
31370
|
+
value: "right",
|
|
31371
|
+
label: "Right"
|
|
31372
|
+
}], "left"),
|
|
30600
31373
|
fixedKnob("block.media-text", "imagePosition", "Photo side", [{
|
|
30601
31374
|
value: "left",
|
|
30602
31375
|
label: "Left"
|
|
@@ -33560,10 +34333,10 @@ function normalizeFieldValue(plan, value, ctx) {
|
|
|
33560
34333
|
case "string": return acceptsOptionalBlankAsMissing(plan, value) ? void 0 : value;
|
|
33561
34334
|
case "group": return normalizeObjectChildren(selectedGroupChildPlans(plan, value), value, childValidationContext(plan, ctx));
|
|
33562
34335
|
case "repeater": return normalizeRepeaterItems(plan, value, ctx);
|
|
34336
|
+
case "link":
|
|
33563
34337
|
case "boolean":
|
|
33564
34338
|
case "richText":
|
|
33565
34339
|
case "inlineText":
|
|
33566
|
-
case "link":
|
|
33567
34340
|
case "select":
|
|
33568
34341
|
case "passthrough": return value;
|
|
33569
34342
|
case "media": return value;
|
|
@@ -33615,12 +34388,12 @@ function validateNormalizedFieldValue(plan, value, ctx) {
|
|
|
33615
34388
|
if (value === null && (ctx.allowNull || acceptsOptionalNullValue(plan))) return [];
|
|
33616
34389
|
if (isMissingForPlan(plan, value)) return shouldRequireValue(plan, value, ctx) ? [requiredIssue(plan, value)] : [];
|
|
33617
34390
|
switch (plan.kind) {
|
|
33618
|
-
case "string": return validateStringPlan(plan, value);
|
|
34391
|
+
case "string": return validateStringPlan(plan, value, ctx);
|
|
33619
34392
|
case "number": return validateNumberPlan(plan, value);
|
|
33620
34393
|
case "boolean": return typeof value === "boolean" ? [] : [issue(plan, "wrongType", { expected: "a true/false value" })];
|
|
33621
34394
|
case "select": return validateSelectPlan(plan, value);
|
|
33622
34395
|
case "richText": return isValidRichTextDoc(value) ? [] : [issue(plan, "invalidRichText")];
|
|
33623
|
-
case "inlineText": return validateInlineTextPlan(plan, value);
|
|
34396
|
+
case "inlineText": return validateInlineTextPlan(plan, value, ctx);
|
|
33624
34397
|
case "media": return validateMediaPlan(plan, value, ctx);
|
|
33625
34398
|
case "link": return linkSchema.safeParse(value).success ? [] : [issue(plan, "invalidLink")];
|
|
33626
34399
|
case "repeater": return validateRepeaterPlan(plan, value, ctx);
|
|
@@ -33653,32 +34426,56 @@ function isMissingForPlan(plan, value) {
|
|
|
33653
34426
|
if (Array.isArray(value) && value.length === 0) return true;
|
|
33654
34427
|
return false;
|
|
33655
34428
|
}
|
|
33656
|
-
function validateStringPlan(plan, value) {
|
|
33657
|
-
if (plan.constraints.some((constraint) => constraint.kind === "blockIconValue")) return plan.constraints.flatMap((constraint) => validateStringConstraint(plan, constraint, value));
|
|
34429
|
+
function validateStringPlan(plan, value, ctx) {
|
|
34430
|
+
if (plan.constraints.some((constraint) => constraint.kind === "blockIconValue")) return plan.constraints.flatMap((constraint) => validateStringConstraint(plan, constraint, value, ctx));
|
|
33658
34431
|
if (typeof value !== "string") return [issue(plan, "wrongType", { expected: "text" })];
|
|
33659
|
-
return plan.constraints.flatMap((constraint) => validateStringConstraint(plan, constraint, value));
|
|
34432
|
+
return plan.constraints.flatMap((constraint) => validateStringConstraint(plan, constraint, value, ctx));
|
|
33660
34433
|
}
|
|
33661
|
-
function validateStringConstraint(plan, constraint, value) {
|
|
33662
|
-
|
|
33663
|
-
|
|
33664
|
-
|
|
33665
|
-
|
|
33666
|
-
|
|
33667
|
-
|
|
33668
|
-
|
|
33669
|
-
|
|
33670
|
-
|
|
33671
|
-
|
|
33672
|
-
|
|
33673
|
-
|
|
33674
|
-
|
|
33675
|
-
|
|
33676
|
-
|
|
33677
|
-
|
|
33678
|
-
|
|
33679
|
-
|
|
33680
|
-
|
|
34434
|
+
function validateStringConstraint(plan, constraint, value, ctx) {
|
|
34435
|
+
if (constraint.kind === "required") return [];
|
|
34436
|
+
if (constraint.kind === "blockIconValue") return isValidIconPickerValue(value) ? [] : [issue(plan, "wrongType", { expected: "text or icon" })];
|
|
34437
|
+
if (typeof value !== "string") return [issue(plan, "wrongType", { expected: "text" })];
|
|
34438
|
+
if (constraint.kind === "textType" || constraint.kind === "referenceText") return [];
|
|
34439
|
+
return constraint.kind === "maxLength" ? validateAuthoredTextLength(plan, value, constraint.maximum, ctx) : validateStringFormat(plan, constraint, value);
|
|
34440
|
+
}
|
|
34441
|
+
const SIMPLE_STRING_FORMATS = {
|
|
34442
|
+
emailFormat: {
|
|
34443
|
+
accepts: isCanonicalEmailValue,
|
|
34444
|
+
failure: "invalidEmail"
|
|
34445
|
+
},
|
|
34446
|
+
phoneFormat: {
|
|
34447
|
+
accepts: isCanonicalPhoneValue,
|
|
34448
|
+
failure: "invalidPhone"
|
|
34449
|
+
},
|
|
34450
|
+
dateFormat: {
|
|
34451
|
+
accepts: isValidDateString,
|
|
34452
|
+
failure: "invalidDate"
|
|
34453
|
+
},
|
|
34454
|
+
timeFormat: {
|
|
34455
|
+
accepts: isValidTimeString,
|
|
34456
|
+
failure: "invalidTime"
|
|
34457
|
+
},
|
|
34458
|
+
datetimeFormat: {
|
|
34459
|
+
accepts: isValidDateTimeInstantString,
|
|
34460
|
+
failure: "invalidDateTime"
|
|
34461
|
+
},
|
|
34462
|
+
slugFormat: {
|
|
34463
|
+
accepts: (value) => SLUG_PATTERN.test(value),
|
|
34464
|
+
failure: "invalidSlug"
|
|
34465
|
+
}
|
|
34466
|
+
};
|
|
34467
|
+
function validateStringFormat(plan, constraint, value) {
|
|
34468
|
+
if (constraint.kind === "patternFormat") {
|
|
34469
|
+
const pattern = compilePattern(constraint.pattern);
|
|
34470
|
+
return pattern && !pattern.test(value) ? [issue(plan, "invalidPattern")] : [];
|
|
33681
34471
|
}
|
|
34472
|
+
if (constraint.kind === "urlFormat") return isCanonicalUrlValue(value, { allowRelative: constraint.allowRelative }) ? [] : [issue(plan, "invalidUrl")];
|
|
34473
|
+
const format = SIMPLE_STRING_FORMATS[constraint.kind];
|
|
34474
|
+
return format.accepts(value) ? [] : [issue(plan, format.failure)];
|
|
34475
|
+
}
|
|
34476
|
+
/** Authoring limits govern stored block copy; resolved entry text has its own owner. */
|
|
34477
|
+
function validateAuthoredTextLength(plan, text, maximum, ctx) {
|
|
34478
|
+
return ctx.mode !== "render" && maximum !== void 0 && text.length > maximum ? [issue(plan, "tooLong", { maximum })] : [];
|
|
33682
34479
|
}
|
|
33683
34480
|
function isValidIconPickerValue(value) {
|
|
33684
34481
|
if (typeof value === "string") return true;
|
|
@@ -33815,13 +34612,10 @@ function rebaseFieldPlanPath(plan, fromPrefix, toPrefix) {
|
|
|
33815
34612
|
default: return assertNever$4(plan);
|
|
33816
34613
|
}
|
|
33817
34614
|
}
|
|
33818
|
-
function validateInlineTextPlan(plan, value) {
|
|
34615
|
+
function validateInlineTextPlan(plan, value, ctx) {
|
|
33819
34616
|
const parsed = parseInlineTextFromUnknown(value);
|
|
33820
34617
|
if (!parsed.ok) return [issue(plan, "invalidInlineText")];
|
|
33821
|
-
|
|
33822
|
-
const lengthIssue = plan.constraints.find((constraint) => constraint.kind === "maxPlainTextLength");
|
|
33823
|
-
if (lengthIssue && text.length > lengthIssue.maximum) return [issue(plan, "tooLong", { maximum: lengthIssue.maximum })];
|
|
33824
|
-
return [];
|
|
34618
|
+
return validateAuthoredTextLength(plan, inlineTextToPlainText(parsed.value), plan.constraints.find((constraint) => constraint.kind === "maxPlainTextLength")?.maximum, ctx);
|
|
33825
34619
|
}
|
|
33826
34620
|
function rebaseFieldPath(path, fromPrefix, toPrefix) {
|
|
33827
34621
|
if (!startsWithFieldPath(path, fromPrefix)) throw new Error(`Cannot rebase field path ${formatFieldPath(path)} from ${formatFieldPath(fromPrefix)}`);
|
|
@@ -34071,14 +34865,23 @@ function preprocessEmptyValues(content) {
|
|
|
34071
34865
|
* Compiles editor-facing manifest structure into the presentation-independent
|
|
34072
34866
|
* validation contract used by every manifest-content trust transition.
|
|
34073
34867
|
*/
|
|
34074
|
-
function compileManifestContentContract(manifestOrFields) {
|
|
34868
|
+
function compileManifestContentContract(manifestOrFields, options = {}) {
|
|
34075
34869
|
const plans = derivePlansFromManifestOrFields(manifestOrFields);
|
|
34076
34870
|
const strictOptions = { allowNull: false };
|
|
34077
34871
|
const strictStoredSchema = deriveStrictContentZodFromPlans(plans);
|
|
34078
34872
|
return Object.freeze({ [compiledManifestContentContract]: Object.freeze({
|
|
34079
34873
|
plans,
|
|
34080
34874
|
strictStoredSchema,
|
|
34081
|
-
writeSchema: deriveNormalizedContentZodFromPlans(plans, strictOptions, normalizeManifestContentForWrite).
|
|
34875
|
+
writeSchema: deriveNormalizedContentZodFromPlans(plans, strictOptions, normalizeManifestContentForWrite).superRefine((value, ctx) => {
|
|
34876
|
+
if (options.unknownFields !== "reject") return;
|
|
34877
|
+
unknownManifestFieldPaths(plans, value).forEach((path) => {
|
|
34878
|
+
ctx.addIssue({
|
|
34879
|
+
code: "custom",
|
|
34880
|
+
path,
|
|
34881
|
+
message: `Unknown content field: ${path.join(".")}`
|
|
34882
|
+
});
|
|
34883
|
+
});
|
|
34884
|
+
}).transform((value) => canonicalizeObjectForWrite(plans, value)),
|
|
34082
34885
|
draftSchema: deriveNormalizedContentZodFromPlans(plans, {
|
|
34083
34886
|
allowNull: true,
|
|
34084
34887
|
allowIncomplete: true,
|
|
@@ -34088,6 +34891,22 @@ function compileManifestContentContract(manifestOrFields) {
|
|
|
34088
34891
|
findNonPortableMediaPaths: (content) => findNonPortableMediaPaths(plans, content)
|
|
34089
34892
|
}) });
|
|
34090
34893
|
}
|
|
34894
|
+
function unknownManifestFieldPaths(plans, value, parent = [], discriminator) {
|
|
34895
|
+
if (!isPlainRecord(value)) return [];
|
|
34896
|
+
const known = /* @__PURE__ */ new Set([...plans.map((plan) => plan.fieldId), ...discriminator ? [discriminator] : []]);
|
|
34897
|
+
return [...Object.keys(value).filter((key) => !known.has(key)).map((key) => [...parent, key]), ...plans.flatMap((plan) => nestedUnknownManifestFieldPaths(plan, value[plan.fieldId], [...parent, plan.fieldId]))];
|
|
34898
|
+
}
|
|
34899
|
+
function nestedUnknownManifestFieldPaths(plan, value, path) {
|
|
34900
|
+
if (plan.kind === "group") {
|
|
34901
|
+
if (plan.valueContract === "boxBackground") return [];
|
|
34902
|
+
const selection = plan.childSelection;
|
|
34903
|
+
return unknownManifestFieldPaths(allGroupChildPlans(plan), value, path, selection.kind === "discriminatedTabs" ? selection.activeTabField : void 0);
|
|
34904
|
+
}
|
|
34905
|
+
if (plan.kind !== "repeater" || !Array.isArray(value)) return [];
|
|
34906
|
+
return value.flatMap((item, index) => {
|
|
34907
|
+
return unknownManifestFieldPaths((isPlainRecord(item) ? plan.repeatedItemVariants?.find((entry) => entry.typeId === item._type) : void 0)?.fields ?? plan.repeatedItemPlan ?? [], item, [...path, index], plan.repeatedItemVariants ? "_type" : void 0);
|
|
34908
|
+
});
|
|
34909
|
+
}
|
|
34091
34910
|
/**
|
|
34092
34911
|
* Re-admits renderable content after a transport boundary has erased its
|
|
34093
34912
|
* compile-time proof. Unlike write admission, this never canonicalizes or
|
|
@@ -34274,7 +35093,19 @@ function testimonialLoaderLimit(content) {
|
|
|
34274
35093
|
//#endregion
|
|
34275
35094
|
//#region ../blocks/src/system/node/fragments/lookSlot.ts
|
|
34276
35095
|
/** Compiler-owned slots are absent for legacy Looks, preserving their HTML. */
|
|
34277
|
-
const lookSlot = (name) =>
|
|
35096
|
+
const lookSlot = (name, source = "look") => source === "skin" ? { "data-slot": { $bind: {
|
|
35097
|
+
from: "theme.skin",
|
|
35098
|
+
transforms: [{
|
|
35099
|
+
id: "look.skinSlot",
|
|
35100
|
+
options: { slot: name }
|
|
35101
|
+
}]
|
|
35102
|
+
} } } : { "data-slot": { $bind: { from: `content._lookSlots.${name}` } } };
|
|
35103
|
+
/** Non-Look widgets expose section geometry only when a theme has a skin. */
|
|
35104
|
+
const lookSkinSlotTransform = {
|
|
35105
|
+
id: "look.skinSlot",
|
|
35106
|
+
kind: "string",
|
|
35107
|
+
run: (value, options) => typeof value === "string" && value.length > 0 ? arrangementSlotNames.find((slot) => slot === asPartialObject(options)?.slot) : void 0
|
|
35108
|
+
};
|
|
34278
35109
|
const lookLeadSlotTransform = {
|
|
34279
35110
|
id: "look.leadSlot",
|
|
34280
35111
|
kind: "string",
|
|
@@ -34285,6 +35116,13 @@ const lookQuoteLimitTransform = {
|
|
|
34285
35116
|
kind: "string",
|
|
34286
35117
|
run: (value) => testimonialLoaderLimit(asPartialObject(value) ?? {})
|
|
34287
35118
|
};
|
|
35119
|
+
/** Blank headings use the same non-empty region fallback as absent headings. */
|
|
35120
|
+
const lookCarouselRegionTransform = {
|
|
35121
|
+
schema: z.object({ fallback: z.string().trim().min(1) }),
|
|
35122
|
+
id: "look.carouselRegion",
|
|
35123
|
+
kind: "string",
|
|
35124
|
+
run: (value, options) => typeof value === "string" && value.trim() ? value.trim() : options?.fallback ?? "Carousel"
|
|
35125
|
+
};
|
|
34288
35126
|
//#endregion
|
|
34289
35127
|
//#region ../blocks/src/system/fields/imageLayout.ts
|
|
34290
35128
|
function createImageColSizeField(options = {}) {
|
|
@@ -35183,7 +36021,10 @@ const stack = (props, children, ...mods) => el("stack", props, children, ...mods
|
|
|
35183
36021
|
const inline = (props, children, ...mods) => el("inline", props, children, ...mods);
|
|
35184
36022
|
const accordion = (props, children, ...mods) => el("accordion", props, children, ...mods);
|
|
35185
36023
|
const accordionItem = (props, children, ...mods) => el("accordionItem", props, children, ...mods);
|
|
35186
|
-
const carousel = (props, children, ...mods) => el("carousel",
|
|
36024
|
+
const carousel = (props, children, ...mods) => el("carousel", {
|
|
36025
|
+
mode: "legacy",
|
|
36026
|
+
...props
|
|
36027
|
+
}, children, ...mods);
|
|
35187
36028
|
const text = (props, ...mods) => el("text", props, void 0, ...mods);
|
|
35188
36029
|
const richText = (props, ...mods) => el("richText", props, void 0, ...mods);
|
|
35189
36030
|
const icon = (props, ...mods) => el("icon", props, void 0, ...mods);
|
|
@@ -35317,7 +36158,7 @@ const BACKGROUND_FRAME_BASE_CLASS = "rb-background-frame rb-absolute rb-inset-0
|
|
|
35317
36158
|
* )
|
|
35318
36159
|
*/
|
|
35319
36160
|
function backgroundLayer(path, options = {}) {
|
|
35320
|
-
const { styleClassName = "background-style rb-absolute rb-inset-0 rb-z-neg-10 rb-h-full rb-w-full rb-pointer-events-none", imageClassName, overlayClassName = "background-overlay rb-absolute rb-inset-0 rb-z-neg-10 rb-h-full rb-w-full rb-pointer-events-none", fallbackToken, omitImageLayer = false, imageLoading, imageFetchPriority } = options;
|
|
36161
|
+
const { styleClassName = "background-style rb-absolute rb-inset-0 rb-z-neg-10 rb-h-full rb-w-full rb-pointer-events-none", imageClassName, overlayClassName = "background-overlay rb-absolute rb-inset-0 rb-z-neg-10 rb-h-full rb-w-full rb-pointer-events-none", fallbackToken, omitImageLayer = false, imageLoading, imageFetchPriority, imageSlot } = options;
|
|
35321
36162
|
const styleLayer = el("div", {
|
|
35322
36163
|
className: styleClassName,
|
|
35323
36164
|
style: { $bind: {
|
|
@@ -35330,7 +36171,8 @@ function backgroundLayer(path, options = {}) {
|
|
|
35330
36171
|
});
|
|
35331
36172
|
const imageLayer = createBackgroundImageNode(path, imageClassName, {
|
|
35332
36173
|
loading: imageLoading,
|
|
35333
|
-
fetchPriority: imageFetchPriority
|
|
36174
|
+
fetchPriority: imageFetchPriority,
|
|
36175
|
+
slot: imageSlot
|
|
35334
36176
|
});
|
|
35335
36177
|
const overlayLayer = createBackgroundOverlayNode(path, overlayClassName);
|
|
35336
36178
|
return omitImageLayer ? [styleLayer, overlayLayer] : [
|
|
@@ -35348,7 +36190,7 @@ function backgroundLayer(path, options = {}) {
|
|
|
35348
36190
|
* the decorative layer rather than changing the content root.
|
|
35349
36191
|
*/
|
|
35350
36192
|
function backgroundFrame(path, options = {}) {
|
|
35351
|
-
const { leadingNodes = [], ...layerOptions } = options;
|
|
36193
|
+
const { leadingNodes = [], frameSlot, ...layerOptions } = options;
|
|
35352
36194
|
const framedLayerOptions = {
|
|
35353
36195
|
...layerOptions,
|
|
35354
36196
|
styleClassName: layerOptions.styleClassName ?? "background-style rb-absolute rb-inset-0 rb-z-0 rb-h-full rb-w-full rb-pointer-events-none",
|
|
@@ -35356,6 +36198,7 @@ function backgroundFrame(path, options = {}) {
|
|
|
35356
36198
|
overlayClassName: layerOptions.overlayClassName ?? "background-overlay rb-absolute rb-inset-0 rb-z-0 rb-h-full rb-w-full rb-pointer-events-none"
|
|
35357
36199
|
};
|
|
35358
36200
|
return el("div", {
|
|
36201
|
+
...frameSlot ? lookSlot(frameSlot) : {},
|
|
35359
36202
|
className: { $bind: {
|
|
35360
36203
|
from: path,
|
|
35361
36204
|
transforms: [{
|
|
@@ -35396,6 +36239,7 @@ function backgroundFrame(path, options = {}) {
|
|
|
35396
36239
|
function createBackgroundImageNode(path, baseClassName = "rb-absolute rb-z-neg-10", options = {}) {
|
|
35397
36240
|
const imagePath = `${path}.image`;
|
|
35398
36241
|
return media({
|
|
36242
|
+
...options.slot ? lookSlot(options.slot) : {},
|
|
35399
36243
|
className: { $bind: {
|
|
35400
36244
|
from: path,
|
|
35401
36245
|
transforms: [{
|
|
@@ -35727,6 +36571,10 @@ const DEFAULT_SECTION_SPACING = "medium";
|
|
|
35727
36571
|
function styledSection(config) {
|
|
35728
36572
|
const { children, baseClass = "rb-px-6", spacing = DEFAULT_SECTION_SPACING, background = "background", bindFrom = "_sectionStyles", imageClassName = "rb-absolute rb-z-0", renderBackgroundImage = true, backgroundImageLoading, backgroundImageFetchPriority, fullWidthPath } = config;
|
|
35729
36573
|
const renderedBackgroundNode = backgroundFrame(`${bindFrom}.background`, {
|
|
36574
|
+
...config.backgroundLookSlots ? {
|
|
36575
|
+
frameSlot: "background",
|
|
36576
|
+
imageSlot: "photo"
|
|
36577
|
+
} : {},
|
|
35730
36578
|
imageClassName,
|
|
35731
36579
|
fallbackToken: background,
|
|
35732
36580
|
omitImageLayer: !renderBackgroundImage,
|
|
@@ -35739,12 +36587,13 @@ function styledSection(config) {
|
|
|
35739
36587
|
background,
|
|
35740
36588
|
baseClass,
|
|
35741
36589
|
spacing,
|
|
35742
|
-
fullWidthPath
|
|
36590
|
+
fullWidthPath,
|
|
36591
|
+
skinSlot: config.skinSlot
|
|
35743
36592
|
}), [renderedBackgroundNode, ...childrenArray]);
|
|
35744
36593
|
}
|
|
35745
36594
|
function sectionAppearanceProps(input) {
|
|
35746
36595
|
return {
|
|
35747
|
-
...lookSlot("section"),
|
|
36596
|
+
...input.skinSlot ? lookSlot(input.skinSlot, "skin") : lookSlot("section"),
|
|
35748
36597
|
"data-arrangement": { $bind: { from: "content._lookHooks.data-arrangement" } },
|
|
35749
36598
|
style: { $bind: {
|
|
35750
36599
|
from: `${input.bindFrom}.background`,
|
|
@@ -36116,6 +36965,27 @@ function footerNav(opts) {
|
|
|
36116
36965
|
return buildFooterNavAll(common);
|
|
36117
36966
|
}
|
|
36118
36967
|
//#endregion
|
|
36968
|
+
//#region ../theme-core/src/responsiveMode.ts
|
|
36969
|
+
const THEME_RESPONSIVE_MODE_ATTR = "data-rb-responsive-mode";
|
|
36970
|
+
function escapeRegExp(value) {
|
|
36971
|
+
return value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
36972
|
+
}
|
|
36973
|
+
new RegExp(buildResponsiveScopeRulePatternSource(), "g");
|
|
36974
|
+
new RegExp(buildResponsiveScopeRulePatternSource(), "y");
|
|
36975
|
+
function buildResponsiveScopeRulePatternSource() {
|
|
36976
|
+
return [
|
|
36977
|
+
"@scope",
|
|
36978
|
+
"\\(\\[",
|
|
36979
|
+
escapeRegExp(THEME_RESPONSIVE_MODE_ATTR),
|
|
36980
|
+
"=\"(?:viewport|container)\"\\]\\)",
|
|
36981
|
+
"to",
|
|
36982
|
+
"\\((?::scope )?\\[",
|
|
36983
|
+
escapeRegExp(THEME_RESPONSIVE_MODE_ATTR),
|
|
36984
|
+
"\\]\\)",
|
|
36985
|
+
"\\{"
|
|
36986
|
+
].join("\\s*");
|
|
36987
|
+
}
|
|
36988
|
+
//#endregion
|
|
36119
36989
|
//#region ../blocks/src/system/fields/backgroundContent.ts
|
|
36120
36990
|
function parseBackgroundContent(value) {
|
|
36121
36991
|
const result = boxBackgroundSchema.safeParse(value);
|
|
@@ -36794,7 +37664,8 @@ const boxStylesTransforms = [
|
|
|
36794
37664
|
id: "boxStyles.semanticGapValue",
|
|
36795
37665
|
kind: "string",
|
|
36796
37666
|
summary: "Map semantic gap value to CSS gap value for inline styles",
|
|
36797
|
-
run: (value, options,
|
|
37667
|
+
run: (value, options, context) => {
|
|
37668
|
+
if (options?.legacyOnly && asPartialObject(context.viewModel?.content)?._lookSlots !== void 0) return void 0;
|
|
36798
37669
|
const fallback = options?.fallback ?? "medium";
|
|
36799
37670
|
return GAP_VALUE_MAP[isSemanticSpacing(value) ? value : fallback];
|
|
36800
37671
|
}
|
|
@@ -36826,9 +37697,12 @@ function twoColumnProps(config) {
|
|
|
36826
37697
|
from: config.gapFrom,
|
|
36827
37698
|
transforms: [{
|
|
36828
37699
|
id: "boxStyles.semanticGapValue",
|
|
36829
|
-
options: {
|
|
37700
|
+
options: {
|
|
37701
|
+
fallback,
|
|
37702
|
+
legacyOnly: config.lookSlots === true
|
|
37703
|
+
}
|
|
36830
37704
|
}],
|
|
36831
|
-
fallback: GAP_VALUE_MAP[fallback]
|
|
37705
|
+
...config.lookSlots ? {} : { fallback: GAP_VALUE_MAP[fallback] }
|
|
36832
37706
|
} } } } : {}
|
|
36833
37707
|
};
|
|
36834
37708
|
}
|
|
@@ -37974,6 +38848,7 @@ function buildTestimonialCard(...mods) {
|
|
|
37974
38848
|
*/
|
|
37975
38849
|
function buildCarouselLayout() {
|
|
37976
38850
|
return carousel({
|
|
38851
|
+
mode: "legacy",
|
|
37977
38852
|
className: "rb-mt-12 rb-testimonials-carousel",
|
|
37978
38853
|
slidesToShow: {
|
|
37979
38854
|
mobile: { $bind: {
|
|
@@ -39704,6 +40579,7 @@ function heroContainerStack(children, gap) {
|
|
|
39704
40579
|
rootType: "stack",
|
|
39705
40580
|
baseClassName: "rb-relative rb-isolate",
|
|
39706
40581
|
rootProps: {
|
|
40582
|
+
...lookSlot("frame"),
|
|
39707
40583
|
gap: "none",
|
|
39708
40584
|
justify: { $bind: {
|
|
39709
40585
|
from: "content",
|
|
@@ -39737,6 +40613,7 @@ function heroSplitImagePane() {
|
|
|
39737
40613
|
}, when("_sectionStyles.background.image"), bind("_sectionStyles.background.image")), lookSticker]);
|
|
39738
40614
|
}
|
|
39739
40615
|
const classicLayout$1 = styledSection({
|
|
40616
|
+
backgroundLookSlots: true,
|
|
39740
40617
|
children: heroContainerStack(heroContentNodes, "md"),
|
|
39741
40618
|
baseClass: "",
|
|
39742
40619
|
backgroundImageLoading: heroPriorityMediaProps.loading,
|
|
@@ -40048,18 +40925,34 @@ function gapSelectField(options = {}) {
|
|
|
40048
40925
|
function introHeading(className) {
|
|
40049
40926
|
return text({
|
|
40050
40927
|
as: "h2",
|
|
40051
|
-
className
|
|
40052
|
-
|
|
40928
|
+
className,
|
|
40929
|
+
...lookSlot("heading")
|
|
40930
|
+
}, when("content.title", { authoringPresence: {
|
|
40931
|
+
kind: "recover-empty-when-active",
|
|
40932
|
+
placeholder: "Add heading"
|
|
40933
|
+
} }), bind("content.title"));
|
|
40053
40934
|
}
|
|
40054
40935
|
function introBody(className = "rb-prose rb-max-w-none") {
|
|
40055
|
-
return richText({
|
|
40936
|
+
return richText({
|
|
40937
|
+
className,
|
|
40938
|
+
...lookSlot("intro"),
|
|
40939
|
+
leadParagraphSlot: { $bind: { from: "content._lookSlots.lede" } },
|
|
40940
|
+
lookSlots: { $bind: { from: "content._lookSlots" } }
|
|
40941
|
+
}, bind("content.body"));
|
|
40056
40942
|
}
|
|
40057
40943
|
function introCtas(justify = "start") {
|
|
40058
|
-
|
|
40944
|
+
const row = ctaRow({
|
|
40059
40945
|
justify,
|
|
40060
40946
|
gap: "md",
|
|
40061
40947
|
containerClassName: "rb-mt-2"
|
|
40062
40948
|
});
|
|
40949
|
+
return {
|
|
40950
|
+
...row,
|
|
40951
|
+
props: {
|
|
40952
|
+
...row.props,
|
|
40953
|
+
...lookSlot("actions")
|
|
40954
|
+
}
|
|
40955
|
+
};
|
|
40063
40956
|
}
|
|
40064
40957
|
function introCopyStack(options = {}) {
|
|
40065
40958
|
return stack({
|
|
@@ -40072,6 +40965,7 @@ function introCopyStack(options = {}) {
|
|
|
40072
40965
|
]);
|
|
40073
40966
|
}
|
|
40074
40967
|
const introMedia = media({
|
|
40968
|
+
...lookSlot("photo"),
|
|
40075
40969
|
className: { $bind: {
|
|
40076
40970
|
from: "content.imageShape",
|
|
40077
40971
|
transforms: [{
|
|
@@ -40084,7 +40978,7 @@ const introMedia = media({
|
|
|
40084
40978
|
from: "content.aspectRatio",
|
|
40085
40979
|
fallback: "1/1"
|
|
40086
40980
|
} } }
|
|
40087
|
-
}, bind("content.media"));
|
|
40981
|
+
}, bind("content.media"), when("content.media"));
|
|
40088
40982
|
const centeredCopyLayout = styledSection({
|
|
40089
40983
|
children: styledContainer({
|
|
40090
40984
|
rootType: "stack",
|
|
@@ -40100,9 +40994,13 @@ const centeredCopyLayout = styledSection({
|
|
|
40100
40994
|
spacing: "medium"
|
|
40101
40995
|
});
|
|
40102
40996
|
const statementCopyLayout = styledSection({
|
|
40103
|
-
children: styledContainer({ children: [el("div", {
|
|
40997
|
+
children: styledContainer({ children: [el("div", {
|
|
40998
|
+
className: "rb-intro rb-intro-statement rb-grid rb-grid-cols-1 rb-gap-8 rb-md-grid-cols-2 rb-md-items-start",
|
|
40999
|
+
...lookSlot("frame")
|
|
41000
|
+
}, [introHeading("rb-intro-title rb-max-w-xl"), stack({
|
|
40104
41001
|
gap: "md",
|
|
40105
|
-
className: "rb-intro-copy rb-max-w-xl"
|
|
41002
|
+
className: "rb-intro-copy rb-max-w-xl",
|
|
41003
|
+
...lookSlot("copy")
|
|
40106
41004
|
}, [introBody(), introCtas("start")])])] }),
|
|
40107
41005
|
baseClass: "",
|
|
40108
41006
|
spacing: "medium"
|
|
@@ -40121,6 +41019,7 @@ const statementMediaLayout = styledSection({
|
|
|
40121
41019
|
});
|
|
40122
41020
|
const mediaCopyLayout = styledSection({
|
|
40123
41021
|
children: styledContainer({ children: [responsiveTwoColumn({
|
|
41022
|
+
lookSlots: true,
|
|
40124
41023
|
image: el("div", { className: "rb-intro-media-wrap rb-w-full" }, [introMedia]),
|
|
40125
41024
|
text: introCopyStack({
|
|
40126
41025
|
className: "rb-intro-copy rb-max-w-xl",
|
|
@@ -40192,20 +41091,26 @@ const introBlockDefinition = { manifest: createBlockManifest({
|
|
|
40192
41091
|
gapSelectField({
|
|
40193
41092
|
label: "Gap between media and text",
|
|
40194
41093
|
defaultValue: "comfortable",
|
|
40195
|
-
visibleWhen: {
|
|
41094
|
+
visibleWhen: { allOf: [{
|
|
40196
41095
|
field: "variant",
|
|
40197
41096
|
equals: "media-copy"
|
|
40198
|
-
}
|
|
41097
|
+
}, {
|
|
41098
|
+
field: "blockLook",
|
|
41099
|
+
notEquals: "intro-photo-beside-text"
|
|
41100
|
+
}] }
|
|
40199
41101
|
}),
|
|
40200
41102
|
createImageColSizeField({
|
|
40201
41103
|
id: "ratio",
|
|
40202
41104
|
label: "Media column size",
|
|
40203
41105
|
defaultValue: "1/2",
|
|
40204
41106
|
uiIntent: "display",
|
|
40205
|
-
visibleWhen: {
|
|
41107
|
+
visibleWhen: { allOf: [{
|
|
40206
41108
|
field: "variant",
|
|
40207
41109
|
equals: "media-copy"
|
|
40208
|
-
}
|
|
41110
|
+
}, {
|
|
41111
|
+
field: "blockLook",
|
|
41112
|
+
notEquals: "intro-photo-beside-text"
|
|
41113
|
+
}] }
|
|
40209
41114
|
}),
|
|
40210
41115
|
createAspectRatioField({
|
|
40211
41116
|
id: "aspectRatio",
|
|
@@ -40982,36 +41887,39 @@ const formSurface = styledContainer({
|
|
|
40982
41887
|
baseClassName: "rb-form-surface rb-relative rb-isolate rb-overflow-visible",
|
|
40983
41888
|
children: embedLayout$1
|
|
40984
41889
|
});
|
|
40985
|
-
|
|
40986
|
-
|
|
40987
|
-
|
|
40988
|
-
|
|
41890
|
+
const twoColumnFormLayout = styledSection({
|
|
41891
|
+
children: el("div", {
|
|
41892
|
+
className: "rb-container",
|
|
41893
|
+
...lookSlot("layout")
|
|
41894
|
+
}, [el("div", {
|
|
41895
|
+
className: "rb-form-two-column rb-grid rb-grid-cols-1 rb-gap-8 rb-lg-grid-cols-2 rb-lg-items-start",
|
|
41896
|
+
...lookSlot("frame")
|
|
41897
|
+
}, [stack({
|
|
41898
|
+
gap: "md",
|
|
41899
|
+
className: "rb-form-copy-column",
|
|
41900
|
+
...lookSlot("copy")
|
|
41901
|
+
}, [copyLayout]), formSurface])]),
|
|
41902
|
+
baseClass: "",
|
|
41903
|
+
spacing: "medium",
|
|
41904
|
+
background: "surface"
|
|
41905
|
+
});
|
|
41906
|
+
const formLayout = styledSection({
|
|
41907
|
+
children: [when("content._lookSlots", { not: true })(styledContainer({
|
|
41908
|
+
rootType: "stack",
|
|
41909
|
+
rootProps: { gap: "lg" },
|
|
41910
|
+
children: formComposition.layout
|
|
41911
|
+
})), when("content._lookSlots")(styledContainer({
|
|
41912
|
+
rootType: "stack",
|
|
41913
|
+
rootProps: {
|
|
41914
|
+
gap: "lg",
|
|
40989
41915
|
...lookSlot("layout")
|
|
40990
|
-
},
|
|
40991
|
-
|
|
40992
|
-
|
|
40993
|
-
|
|
40994
|
-
|
|
40995
|
-
|
|
40996
|
-
|
|
40997
|
-
}, [copyLayout]), formSurface])]),
|
|
40998
|
-
baseClass: "",
|
|
40999
|
-
spacing: "medium",
|
|
41000
|
-
background: "surface"
|
|
41001
|
-
});
|
|
41002
|
-
return styledSection({
|
|
41003
|
-
children: styledContainer({
|
|
41004
|
-
rootType: "stack",
|
|
41005
|
-
rootProps: { gap: "lg" },
|
|
41006
|
-
children: formComposition.layout
|
|
41007
|
-
}),
|
|
41008
|
-
baseClass: "",
|
|
41009
|
-
spacing: "medium",
|
|
41010
|
-
background: "surface"
|
|
41011
|
-
});
|
|
41012
|
-
}
|
|
41013
|
-
const formLayout = createFormLayout("default");
|
|
41014
|
-
const twoColumnFormLayout = createFormLayout("two-column");
|
|
41916
|
+
},
|
|
41917
|
+
children: el("div", lookSlot("frame"), [el("div", lookSlot("copy"), [copyLayout]), el("div", lookSlot("panel"), [embedLayout$1])])
|
|
41918
|
+
}))],
|
|
41919
|
+
baseClass: "",
|
|
41920
|
+
spacing: "medium",
|
|
41921
|
+
background: "surface"
|
|
41922
|
+
});
|
|
41015
41923
|
const dataLoaders$1 = buildFragmentDataLoaders(formComposition);
|
|
41016
41924
|
const formManifest = createBlockManifest({
|
|
41017
41925
|
variantMeaning: { kind: "arrangement" },
|
|
@@ -42795,17 +43703,31 @@ const quoteArrangement = (arrangement) => styledSection({
|
|
|
42795
43703
|
as: "p",
|
|
42796
43704
|
...lookSlot("intro")
|
|
42797
43705
|
}, when("content.subheading"), bind("content.subheading"))]), arrangement === "slides" || arrangement === "track" ? el("carousel", {
|
|
43706
|
+
mode: "arrangement",
|
|
42798
43707
|
arrangement,
|
|
42799
|
-
|
|
42800
|
-
|
|
42801
|
-
|
|
42802
|
-
|
|
42803
|
-
|
|
42804
|
-
|
|
42805
|
-
|
|
42806
|
-
|
|
42807
|
-
|
|
42808
|
-
|
|
43708
|
+
labels: {
|
|
43709
|
+
item: "quote",
|
|
43710
|
+
region: { $bind: {
|
|
43711
|
+
from: "content.heading",
|
|
43712
|
+
transforms: [{
|
|
43713
|
+
id: "look.carouselRegion",
|
|
43714
|
+
options: { fallback: "Quotes" }
|
|
43715
|
+
}]
|
|
43716
|
+
} }
|
|
43717
|
+
},
|
|
43718
|
+
indicator: "counter"
|
|
43719
|
+
}, [{
|
|
43720
|
+
type: "carouselSlide",
|
|
43721
|
+
props: { title: { $bind: {
|
|
43722
|
+
from: "testimonial.content.name",
|
|
43723
|
+
fallback: "Anonymous"
|
|
43724
|
+
} } },
|
|
43725
|
+
$repeat: quoteFigure(false).$repeat,
|
|
43726
|
+
children: [{
|
|
43727
|
+
...quoteFigure(false),
|
|
43728
|
+
$repeat: void 0
|
|
43729
|
+
}]
|
|
43730
|
+
}]) : el("div", lookSlot("items"), [quoteFigure(arrangement === "lead-rest")])]) })
|
|
42809
43731
|
});
|
|
42810
43732
|
const additionalFields = parseFieldDefinitions([
|
|
42811
43733
|
...testimonialsHeadingFragment.fields,
|
|
@@ -43725,6 +44647,33 @@ const leadCard = {
|
|
|
43725
44647
|
indexName: "cardIndex"
|
|
43726
44648
|
}
|
|
43727
44649
|
};
|
|
44650
|
+
const carouselCardsLayout = (arrangement) => arrangementCardsLayout(el("carousel", {
|
|
44651
|
+
mode: "arrangement",
|
|
44652
|
+
arrangement,
|
|
44653
|
+
cardList: true,
|
|
44654
|
+
labels: {
|
|
44655
|
+
item: "card",
|
|
44656
|
+
region: { $bind: {
|
|
44657
|
+
from: "content.title",
|
|
44658
|
+
transforms: [{
|
|
44659
|
+
id: "look.carouselRegion",
|
|
44660
|
+
options: { fallback: "Cards" }
|
|
44661
|
+
}]
|
|
44662
|
+
} }
|
|
44663
|
+
},
|
|
44664
|
+
indicator: arrangement === "slides" ? "dots" : "none"
|
|
44665
|
+
}, [{
|
|
44666
|
+
type: "carouselSlide",
|
|
44667
|
+
props: { title: { $bind: {
|
|
44668
|
+
from: "card.title",
|
|
44669
|
+
fallback: ""
|
|
44670
|
+
} } },
|
|
44671
|
+
$repeat: featureCard.$repeat,
|
|
44672
|
+
children: [{
|
|
44673
|
+
...featureCard,
|
|
44674
|
+
$repeat: void 0
|
|
44675
|
+
}]
|
|
44676
|
+
}]));
|
|
43728
44677
|
const leadSupportLayout = arrangementCardsLayout(el("div", lookSlot("items"), [leadCard]));
|
|
43729
44678
|
const indexRow = el("li", lookSlot("item"), [
|
|
43730
44679
|
el("div", {
|
|
@@ -43937,6 +44886,8 @@ const featureCardsBlockDefinition = { manifest: createBlockManifest({
|
|
|
43937
44886
|
promotedFields: ["_generatedIconSizePx"],
|
|
43938
44887
|
layout: cardsLayout,
|
|
43939
44888
|
variants: {
|
|
44889
|
+
slides: carouselCardsLayout("slides"),
|
|
44890
|
+
track: carouselCardsLayout("track"),
|
|
43940
44891
|
cards: cardsLayout,
|
|
43941
44892
|
"lead-support": leadSupportLayout,
|
|
43942
44893
|
index: indexLayout,
|
|
@@ -43949,7 +44900,9 @@ const featureCardsBlockDefinition = { manifest: createBlockManifest({
|
|
|
43949
44900
|
lookOnlyKeys: [
|
|
43950
44901
|
"lead-support",
|
|
43951
44902
|
"index",
|
|
43952
|
-
"sequence"
|
|
44903
|
+
"sequence",
|
|
44904
|
+
"slides",
|
|
44905
|
+
"track"
|
|
43953
44906
|
]
|
|
43954
44907
|
},
|
|
43955
44908
|
defaultVariant: "cards",
|
|
@@ -44303,17 +45256,22 @@ const mediaTextBlockDefinition = { manifest: createBlockManifest({
|
|
|
44303
45256
|
}],
|
|
44304
45257
|
fallback: ""
|
|
44305
45258
|
} };
|
|
44306
|
-
const
|
|
44307
|
-
className: titleClassNameFromAlignment,
|
|
44308
|
-
...lookSlot("head")
|
|
44309
|
-
}, [text({
|
|
45259
|
+
const headingNodes = [text({
|
|
44310
45260
|
as: "p",
|
|
44311
45261
|
className: eyebrowClassName("rb-eyebrow heading-eyebrow"),
|
|
44312
45262
|
...lookSlot("eyebrow")
|
|
44313
45263
|
}, when("content.eyebrow"), bind("content.eyebrow")), text({
|
|
44314
45264
|
as: "h2",
|
|
44315
45265
|
...lookSlot("heading")
|
|
44316
|
-
}, bind("content.title")
|
|
45266
|
+
}, bind("content.title"), when("content.title", { authoringPresence: {
|
|
45267
|
+
kind: "recover-empty-when-active",
|
|
45268
|
+
placeholder: "Add heading"
|
|
45269
|
+
} }))];
|
|
45270
|
+
const copyHeading = el("div", {
|
|
45271
|
+
className: titleClassNameFromAlignment,
|
|
45272
|
+
...lookSlot("head")
|
|
45273
|
+
}, headingNodes, when("content.title"));
|
|
45274
|
+
const lookCopyHeading = el("div", {}, headingNodes, when("content._lookSlots.head"));
|
|
44317
45275
|
const textContentNodes = (className) => {
|
|
44318
45276
|
const props = {
|
|
44319
45277
|
className,
|
|
@@ -44323,7 +45281,8 @@ const mediaTextBlockDefinition = { manifest: createBlockManifest({
|
|
|
44323
45281
|
};
|
|
44324
45282
|
return [styledCard([richText(props, bind("content.text"))], mediaTextCardOptions, when("content.wrapTextInCard")), richText(props, when("content.wrapTextInCard", { not: true }), bind("content.text"))];
|
|
44325
45283
|
};
|
|
44326
|
-
const
|
|
45284
|
+
const bodyTextColumn = el("div", {}, textContentNodes("rb-prose rb-max-w-none"));
|
|
45285
|
+
const defaultTextColumn = el("div", {}, [lookCopyHeading, ...textContentNodes("rb-prose rb-max-w-none")]);
|
|
44327
45286
|
const bioTextColumn = el("div", { className: "rb-flex rb-h-full rb-w-full rb-max-w-prose rb-flex-col rb-justify-center rb-gap-5" }, [copyHeading, ...textContentNodes(bodyClassNameFromAlignment)]);
|
|
44328
45287
|
const defaultImageCommonProps = {
|
|
44329
45288
|
...lookSlot("photo"),
|
|
@@ -44337,7 +45296,7 @@ const mediaTextBlockDefinition = { manifest: createBlockManifest({
|
|
|
44337
45296
|
} },
|
|
44338
45297
|
style: { aspectRatio: { $bind: { from: "content.aspectRatio" } } }
|
|
44339
45298
|
};
|
|
44340
|
-
const defaultSingleImage = media(defaultImageCommonProps, bind("content.images[0].image"));
|
|
45299
|
+
const defaultSingleImage = media(defaultImageCommonProps, bind("content.images[0].image"), when("content.images[0].image"));
|
|
44341
45300
|
const defaultCarouselImages = carousel({
|
|
44342
45301
|
className: "rb-media-text-carousel",
|
|
44343
45302
|
transition: { $bind: {
|
|
@@ -44389,7 +45348,11 @@ const mediaTextBlockDefinition = { manifest: createBlockManifest({
|
|
|
44389
45348
|
imageWrapperClassName: "rb-w-full rb-shrink-0",
|
|
44390
45349
|
textWrapperClassName: "rb-w-full rb-min-w-0 rb-flex-1 rb-self-stretch"
|
|
44391
45350
|
})], whenImagesLength(0, { not: true }));
|
|
44392
|
-
const defaultTextOnlyLayout = el("div", lookSlot("copy"),
|
|
45351
|
+
const defaultTextOnlyLayout = el("div", lookSlot("copy"), [
|
|
45352
|
+
el("div", lookSlot("media"), [defaultSingleImage], when("content._lookSlots.media")),
|
|
45353
|
+
lookCopyHeading,
|
|
45354
|
+
...textContentNodes("rb-prose rb-max-w-none")
|
|
45355
|
+
], whenImagesLength(0));
|
|
44393
45356
|
const bioTextOnlyLayout = el("div", {
|
|
44394
45357
|
className: "rb-flex rb-w-full rb-max-w-prose rb-flex-col rb-gap-5",
|
|
44395
45358
|
...lookSlot("copy")
|
|
@@ -44401,11 +45364,15 @@ const mediaTextBlockDefinition = { manifest: createBlockManifest({
|
|
|
44401
45364
|
const defaultInner = el("div", {}, [defaultImagesLayout, defaultTextOnlyLayout]);
|
|
44402
45365
|
const bioInner = el("div", {}, [bioImagesLayout, bioTextOnlyLayout]);
|
|
44403
45366
|
const defaultLayout = styledSection({
|
|
44404
|
-
children: styledContainer({
|
|
45367
|
+
children: [when("content._lookSlots.head", { not: true })(styledContainer({
|
|
44405
45368
|
rootType: "stack",
|
|
44406
45369
|
rootProps: { gap: "lg" },
|
|
44407
45370
|
children: [copyHeading, defaultInner]
|
|
44408
|
-
}),
|
|
45371
|
+
})), when("content._lookSlots.head")(styledContainer({
|
|
45372
|
+
rootType: "stack",
|
|
45373
|
+
rootProps: { gap: "lg" },
|
|
45374
|
+
children: [defaultInner]
|
|
45375
|
+
}))],
|
|
44409
45376
|
baseClass: "",
|
|
44410
45377
|
spacing: "medium"
|
|
44411
45378
|
});
|
|
@@ -44429,17 +45396,7 @@ const mediaTextBlockDefinition = { manifest: createBlockManifest({
|
|
|
44429
45396
|
el("div", {}, [when("content.images[0].image")(defaultSingleImage)], whenImagesLength(1)),
|
|
44430
45397
|
el("div", {}, [el("div", {}, [defaultCarouselImages], whenImagesLength(1, { not: true }))], whenImagesLength(0, { not: true })),
|
|
44431
45398
|
el("div", {}, [when("content.images[0].image")(defaultSingleImage)], whenImagesLength(0))
|
|
44432
|
-
]), el("div", lookSlot("copy"), [el("div", lookSlot("head"),
|
|
44433
|
-
as: "p",
|
|
44434
|
-
className: eyebrowClassName("rb-eyebrow heading-eyebrow"),
|
|
44435
|
-
...lookSlot("eyebrow")
|
|
44436
|
-
}, when("content.eyebrow"), bind("content.eyebrow")), text({
|
|
44437
|
-
as: "h2",
|
|
44438
|
-
...lookSlot("heading")
|
|
44439
|
-
}, bind("content.title"), when("content.title", { authoringPresence: {
|
|
44440
|
-
kind: "recover-empty-when-active",
|
|
44441
|
-
placeholder: "Add heading"
|
|
44442
|
-
} }))]), defaultTextColumn])]) })
|
|
45399
|
+
]), el("div", lookSlot("copy"), [el("div", lookSlot("head"), headingNodes), bodyTextColumn])]) })
|
|
44443
45400
|
})
|
|
44444
45401
|
},
|
|
44445
45402
|
variantMeaning: {
|
|
@@ -44491,6 +45448,7 @@ const bookingWizard = bookingForm(withApiBindings({
|
|
|
44491
45448
|
form: { $bind: { from: "data.form" } },
|
|
44492
45449
|
services: { $bind: { from: "data.services" } },
|
|
44493
45450
|
mailingList: { $bind: { from: "$root.mailingList" } },
|
|
45451
|
+
siteTerms: { $bind: { from: "$root.siteTerms" } },
|
|
44494
45452
|
siteName: { $bind: { from: "$root.siteName" } }
|
|
44495
45453
|
}));
|
|
44496
45454
|
/** Both variants sit in the same section shell; only the inner layout differs. */
|
|
@@ -44619,7 +45577,9 @@ const appointmentServicesBlockDefinition = {
|
|
|
44619
45577
|
"cards",
|
|
44620
45578
|
"lead-support",
|
|
44621
45579
|
"index",
|
|
44622
|
-
"sequence"
|
|
45580
|
+
"sequence",
|
|
45581
|
+
"slides",
|
|
45582
|
+
"track"
|
|
44623
45583
|
]
|
|
44624
45584
|
},
|
|
44625
45585
|
id: "block.appointment-services",
|
|
@@ -45335,6 +46295,7 @@ const publicEventBaseSchema = z.object({
|
|
|
45335
46295
|
cutoffHours: z.number(),
|
|
45336
46296
|
method: z.enum(["original_payment_method", "site_credit"])
|
|
45337
46297
|
}) }),
|
|
46298
|
+
asksSiteTerms: z.boolean(),
|
|
45338
46299
|
consent: blockBookingConsentSchema.nullable(),
|
|
45339
46300
|
accessRestriction: accessRestrictionSchema,
|
|
45340
46301
|
allowedCategoryIds: z.array(z.string()),
|
|
@@ -45651,6 +46612,31 @@ const occurrenceContextSchema = z.object({
|
|
|
45651
46612
|
overrides: z.record(z.string(), z.unknown()).nullable().optional()
|
|
45652
46613
|
}).nullable();
|
|
45653
46614
|
//#endregion
|
|
46615
|
+
//#region ../blocks/src/system/blocks/shared/siteTerms.ts
|
|
46616
|
+
const versionId = z.string().uuid().transform((value, ctx) => {
|
|
46617
|
+
const parsed = parseSiteTermsVersionId(value);
|
|
46618
|
+
if (parsed.ok) return parsed.value;
|
|
46619
|
+
ctx.addIssue({
|
|
46620
|
+
code: "custom",
|
|
46621
|
+
message: "Invalid site terms version"
|
|
46622
|
+
});
|
|
46623
|
+
return z.NEVER;
|
|
46624
|
+
});
|
|
46625
|
+
const blockSiteTermsSchema = z.discriminatedUnion("kind", [z.object({ kind: z.literal("none") }), z.object({
|
|
46626
|
+
kind: z.literal("published"),
|
|
46627
|
+
version: z.object({
|
|
46628
|
+
id: versionId,
|
|
46629
|
+
number: z.number().int().positive(),
|
|
46630
|
+
generation: z.number().int().positive()
|
|
46631
|
+
}),
|
|
46632
|
+
businessName: z.string(),
|
|
46633
|
+
href: z.string().min(1).nullable()
|
|
46634
|
+
})]);
|
|
46635
|
+
z.object({
|
|
46636
|
+
versionId,
|
|
46637
|
+
alreadyAgreed: z.boolean()
|
|
46638
|
+
});
|
|
46639
|
+
//#endregion
|
|
45654
46640
|
//#region ../blocks/src/system/runtime/nodes/events/domain/capacity.ts
|
|
45655
46641
|
/**
|
|
45656
46642
|
* Compute remaining spots for an event from `availableSpots` with a fallback
|
|
@@ -46101,27 +47087,48 @@ function eventListWindowEvents(events, window) {
|
|
|
46101
47087
|
});
|
|
46102
47088
|
}
|
|
46103
47089
|
//#endregion
|
|
46104
|
-
//#region ../blocks/src/system/runtime/nodes/event-registration/
|
|
46105
|
-
function
|
|
46106
|
-
return
|
|
47090
|
+
//#region ../blocks/src/system/runtime/nodes/event-registration/registrationEventAdapter.ts
|
|
47091
|
+
function toRegistrationEvent(event) {
|
|
47092
|
+
return {
|
|
47093
|
+
...event,
|
|
47094
|
+
selectionId: event.id,
|
|
47095
|
+
registrationSubject: {
|
|
47096
|
+
kind: "occurrence",
|
|
47097
|
+
occurrenceId: event.occurrenceId
|
|
47098
|
+
}
|
|
47099
|
+
};
|
|
46107
47100
|
}
|
|
46108
|
-
function
|
|
46109
|
-
|
|
46110
|
-
if (!occurrenceContext) return input.scopedEvents.length === 1 ? input.scopedEvents[0] ?? null : null;
|
|
46111
|
-
const contextDate = getBookingLocalDateKey(toScheduledBookingDateTime({
|
|
46112
|
-
startsAt: occurrenceContext.startsAt,
|
|
46113
|
-
timeZone: occurrenceContext.timeZone
|
|
46114
|
-
}));
|
|
46115
|
-
return input.scopedEvents.find((event) => eventMatchesOccurrenceId(event, occurrenceContext.id) || getBookingLocalDateKey(toScheduledBookingDateTime({
|
|
46116
|
-
startsAt: event.startsAt,
|
|
46117
|
-
timeZone: event.timeZone
|
|
46118
|
-
})) === contextDate) ?? null;
|
|
47101
|
+
function toRegistrationEvents(events) {
|
|
47102
|
+
return events.filter((event) => event.bookingScope === "single_occurrence").map(toRegistrationEvent);
|
|
46119
47103
|
}
|
|
46120
|
-
|
|
46121
|
-
|
|
46122
|
-
|
|
46123
|
-
|
|
46124
|
-
|
|
47104
|
+
/**
|
|
47105
|
+
* Project one whole-series run onto the registration surface.
|
|
47106
|
+
*
|
|
47107
|
+
* Capacity, pricing, payment terms and consent come straight off the canonical
|
|
47108
|
+
* Event record; only the schedule is widened from the single occurrence to the
|
|
47109
|
+
* live run. A run without live sessions has no registration event.
|
|
47110
|
+
*/
|
|
47111
|
+
function toWholeSeriesRegistrationEvent(group) {
|
|
47112
|
+
const { representative, run } = group;
|
|
47113
|
+
const sessions = orderedLiveRunSessions(run.sessions);
|
|
47114
|
+
const firstSession = sessions[0];
|
|
47115
|
+
if (!firstSession) return null;
|
|
47116
|
+
const lastSession = sessions[sessions.length - 1] ?? firstSession;
|
|
47117
|
+
return {
|
|
47118
|
+
...representative,
|
|
47119
|
+
selectionId: run.eventSeriesId,
|
|
47120
|
+
registrationSubject: {
|
|
47121
|
+
kind: "wholeSeries",
|
|
47122
|
+
eventSeriesId: run.eventSeriesId,
|
|
47123
|
+
sessions
|
|
47124
|
+
},
|
|
47125
|
+
startsAt: firstSession.startsAt,
|
|
47126
|
+
endsAt: lastSession.endsAt,
|
|
47127
|
+
timeZone: firstSession.timeZone
|
|
47128
|
+
};
|
|
47129
|
+
}
|
|
47130
|
+
function toWholeSeriesRegistrationEvents(events) {
|
|
47131
|
+
return groupPublicEventsByRun(events).map(toWholeSeriesRegistrationEvent).filter((event) => event !== null);
|
|
46125
47132
|
}
|
|
46126
47133
|
//#endregion
|
|
46127
47134
|
//#region ../blocks/src/system/runtime/nodes/event-registration/utils.ts
|
|
@@ -46145,7 +47152,7 @@ function bookingClock(startsAt, input) {
|
|
|
46145
47152
|
return formatBookingTime(bookingInstant(startsAt, input), {
|
|
46146
47153
|
hour: "numeric",
|
|
46147
47154
|
minute: "2-digit",
|
|
46148
|
-
|
|
47155
|
+
hourCycle: "h12"
|
|
46149
47156
|
}).replace(/\s*([ap])\.?\s?m\.?$/i, (_match, period) => `${period.toLowerCase()}m`);
|
|
46150
47157
|
}
|
|
46151
47158
|
/** "7:00pm – 8:15pm", or just the start when there's no distinct end. */
|
|
@@ -46254,6 +47261,29 @@ function scheduleInput(event, occurrence) {
|
|
|
46254
47261
|
};
|
|
46255
47262
|
}
|
|
46256
47263
|
//#endregion
|
|
47264
|
+
//#region ../blocks/src/system/runtime/nodes/event-registration/registrationDerivations.ts
|
|
47265
|
+
function eventMatchesOccurrenceId(event, occurrenceId) {
|
|
47266
|
+
return event.registrationSubject.kind === "occurrence" && (event.registrationSubject.occurrenceId === occurrenceId || event.selectionId === occurrenceId);
|
|
47267
|
+
}
|
|
47268
|
+
function findPreSelectedEvent(input) {
|
|
47269
|
+
const occurrenceContext = input.occurrenceContext;
|
|
47270
|
+
if (!occurrenceContext) return input.scopedEvents.length === 1 ? input.scopedEvents[0] ?? null : null;
|
|
47271
|
+
const contextDate = getBookingLocalDateKey(toScheduledBookingDateTime({
|
|
47272
|
+
startsAt: occurrenceContext.startsAt,
|
|
47273
|
+
timeZone: occurrenceContext.timeZone
|
|
47274
|
+
}));
|
|
47275
|
+
return input.scopedEvents.find((event) => eventMatchesOccurrenceId(event, occurrenceContext.id) || getBookingLocalDateKey(toScheduledBookingDateTime({
|
|
47276
|
+
startsAt: event.startsAt,
|
|
47277
|
+
timeZone: event.timeZone
|
|
47278
|
+
})) === contextDate) ?? null;
|
|
47279
|
+
}
|
|
47280
|
+
function resolveEventRequiresPayment(input) {
|
|
47281
|
+
if (input.eligibility) return input.eligibility.requiresPayment;
|
|
47282
|
+
if (input.selectedTicketType) return input.selectedTicketType.priceAmount > 0;
|
|
47283
|
+
if (!input.event) return false;
|
|
47284
|
+
return publicEventPricingType(input.event.pricing) === "paid";
|
|
47285
|
+
}
|
|
47286
|
+
//#endregion
|
|
46257
47287
|
//#region ../blocks/src/system/runtime/nodes/event-registration/wizardSteps.ts
|
|
46258
47288
|
function registrationRoute(input) {
|
|
46259
47289
|
const base = input.chooseEvent ? [
|
|
@@ -46542,50 +47572,6 @@ function lowerCased(noun) {
|
|
|
46542
47572
|
};
|
|
46543
47573
|
}
|
|
46544
47574
|
//#endregion
|
|
46545
|
-
//#region ../blocks/src/system/runtime/nodes/event-registration/registrationEventAdapter.ts
|
|
46546
|
-
function toRegistrationEvent(event) {
|
|
46547
|
-
return {
|
|
46548
|
-
...event,
|
|
46549
|
-
selectionId: event.id,
|
|
46550
|
-
registrationSubject: {
|
|
46551
|
-
kind: "occurrence",
|
|
46552
|
-
occurrenceId: event.occurrenceId
|
|
46553
|
-
}
|
|
46554
|
-
};
|
|
46555
|
-
}
|
|
46556
|
-
function toRegistrationEvents(events) {
|
|
46557
|
-
return events.filter((event) => event.bookingScope === "single_occurrence").map(toRegistrationEvent);
|
|
46558
|
-
}
|
|
46559
|
-
/**
|
|
46560
|
-
* Project one whole-series run onto the registration surface.
|
|
46561
|
-
*
|
|
46562
|
-
* Capacity, pricing, payment terms and consent come straight off the canonical
|
|
46563
|
-
* Event record; only the schedule is widened from the single occurrence to the
|
|
46564
|
-
* live run. A run without live sessions has no registration event.
|
|
46565
|
-
*/
|
|
46566
|
-
function toWholeSeriesRegistrationEvent(group) {
|
|
46567
|
-
const { representative, run } = group;
|
|
46568
|
-
const sessions = orderedLiveRunSessions(run.sessions);
|
|
46569
|
-
const firstSession = sessions[0];
|
|
46570
|
-
if (!firstSession) return null;
|
|
46571
|
-
const lastSession = sessions[sessions.length - 1] ?? firstSession;
|
|
46572
|
-
return {
|
|
46573
|
-
...representative,
|
|
46574
|
-
selectionId: run.eventSeriesId,
|
|
46575
|
-
registrationSubject: {
|
|
46576
|
-
kind: "wholeSeries",
|
|
46577
|
-
eventSeriesId: run.eventSeriesId,
|
|
46578
|
-
sessions
|
|
46579
|
-
},
|
|
46580
|
-
startsAt: firstSession.startsAt,
|
|
46581
|
-
endsAt: lastSession.endsAt,
|
|
46582
|
-
timeZone: firstSession.timeZone
|
|
46583
|
-
};
|
|
46584
|
-
}
|
|
46585
|
-
function toWholeSeriesRegistrationEvents(events) {
|
|
46586
|
-
return groupPublicEventsByRun(events).map(toWholeSeriesRegistrationEvent).filter((event) => event !== null);
|
|
46587
|
-
}
|
|
46588
|
-
//#endregion
|
|
46589
47575
|
//#region ../blocks/src/system/runtime/nodes/event-registration/bookingCardDisplay.ts
|
|
46590
47576
|
/**
|
|
46591
47577
|
* The booking card the server renders on CMS pages (issue 1581), and the
|
|
@@ -46823,6 +47809,7 @@ const eventRegistrationCommonSchemaShape = {
|
|
|
46823
47809
|
const parsed = parseMailingListRuntimeContext(value);
|
|
46824
47810
|
return parsed.ok ? parsed.value : void 0;
|
|
46825
47811
|
}),
|
|
47812
|
+
siteTerms: blockSiteTermsSchema.optional(),
|
|
46826
47813
|
siteName: z.string().optional()
|
|
46827
47814
|
};
|
|
46828
47815
|
const eventRegistrationEventSourceSchema = z.discriminatedUnion("kind", [z.object({
|
|
@@ -47006,6 +47993,7 @@ const eventRegistrationBlockRuntime = defineClientOwnedBlockRuntime({
|
|
|
47006
47993
|
sitePasses: source.sitePasses ?? null,
|
|
47007
47994
|
siteMemberships: source.siteMemberships ?? null,
|
|
47008
47995
|
mailingList: source.mailingList,
|
|
47996
|
+
siteTerms: source.siteTerms,
|
|
47009
47997
|
siteName: source.siteName,
|
|
47010
47998
|
offeringNoun: resolveOfferingNoun(source, scopedSourceEvents)
|
|
47011
47999
|
}
|
|
@@ -47177,6 +48165,7 @@ const eventRegistrationBlockDefinition = {
|
|
|
47177
48165
|
wholeSeriesRunEvents: { $bind: { from: "data.wholeSeriesRunEvents" } },
|
|
47178
48166
|
loaderFailures: { $bind: { from: "$root.loaderFailures" } },
|
|
47179
48167
|
mailingList: { $bind: { from: "$root.mailingList" } },
|
|
48168
|
+
siteTerms: { $bind: { from: "$root.siteTerms" } },
|
|
47180
48169
|
siteName: { $bind: { from: "$root.siteName" } },
|
|
47181
48170
|
bookingOfferingPresets: { $bind: {
|
|
47182
48171
|
from: "$root.bookingOfferingPresets",
|
|
@@ -50098,6 +51087,7 @@ function projectRecurringSchedule(events) {
|
|
|
50098
51087
|
//#endregion
|
|
50099
51088
|
//#region ../blocks/src/system/blocks/events/recurring-schedule.ts
|
|
50100
51089
|
const recurringScheduleLayout = styledSection({
|
|
51090
|
+
skinSlot: "schedule-section",
|
|
50101
51091
|
children: styledContainer({
|
|
50102
51092
|
rootType: "stack",
|
|
50103
51093
|
rootProps: {
|
|
@@ -50555,6 +51545,8 @@ function offeringsPreviewHeaderNodes() {
|
|
|
50555
51545
|
const offeringsPreviewLayout = [styledSection({
|
|
50556
51546
|
children: sectionContainer([el("offerings-preview", {
|
|
50557
51547
|
...cardListPresentationBindings,
|
|
51548
|
+
carouselRegion: { $bind: { from: "content.heading" } },
|
|
51549
|
+
renderInput: { $bind: { from: "content._offeringsPreviewInput" } },
|
|
50558
51550
|
displayMode: { $bind: displayModeBinding },
|
|
50559
51551
|
pathname: { $bind: { from: "$root.pathname" } },
|
|
50560
51552
|
catalogueEvents: { $bind: { from: "data.catalogueEvents" } },
|
|
@@ -50603,7 +51595,9 @@ const offeringsPreviewManifest = createBlockManifest({
|
|
|
50603
51595
|
"lead-support",
|
|
50604
51596
|
"index",
|
|
50605
51597
|
"sequence",
|
|
50606
|
-
"plates"
|
|
51598
|
+
"plates",
|
|
51599
|
+
"slides",
|
|
51600
|
+
"track"
|
|
50607
51601
|
]
|
|
50608
51602
|
},
|
|
50609
51603
|
id: "block.offerings-preview",
|
|
@@ -51637,6 +52631,7 @@ const gridLayout = grid$1({ className: "rb-grid rb-grid-cols-1 rb-gap-4 rb-sm-gr
|
|
|
51637
52631
|
bindAspectRatio: true
|
|
51638
52632
|
})]);
|
|
51639
52633
|
const carouselLayout = carousel({
|
|
52634
|
+
mode: "legacy",
|
|
51640
52635
|
className: { $bind: {
|
|
51641
52636
|
from: "content.fullBleed",
|
|
51642
52637
|
transforms: [{
|
|
@@ -52738,6 +53733,7 @@ const shopSourceSchema = z.object({
|
|
|
52738
53733
|
memberships: z.array(publicMembershipProductSchema).nullable().optional(),
|
|
52739
53734
|
products: z.array(publicProductSchema).nullable().optional(),
|
|
52740
53735
|
siteId: z.string().optional(),
|
|
53736
|
+
siteTerms: blockSiteTermsSchema.optional(),
|
|
52741
53737
|
demoEmailSuppressed: z.boolean().optional(),
|
|
52742
53738
|
apiBaseUrl: z.string().optional(),
|
|
52743
53739
|
readAuthority: browserReadAuthoritySchema.optional(),
|
|
@@ -52866,6 +53862,7 @@ const passesMembershipsHydrationSchema = z.object({
|
|
|
52866
53862
|
memberships: z.array(publicMembershipProductSchema),
|
|
52867
53863
|
passPurchaseMode: z.enum(["add_to_cart", "buy_now"]),
|
|
52868
53864
|
buttonVariant: blockButtonRoleSchema,
|
|
53865
|
+
siteTerms: blockSiteTermsSchema.optional(),
|
|
52869
53866
|
demoEmailSuppressed: z.boolean().optional()
|
|
52870
53867
|
});
|
|
52871
53868
|
const productListHydrationSchema = z.object({
|
|
@@ -52889,6 +53886,7 @@ const cartHydrationSchema = z.object({
|
|
|
52889
53886
|
const checkoutHydrationSchema = z.object({
|
|
52890
53887
|
emptyStateText: z.string(),
|
|
52891
53888
|
submitButtonText: z.string(),
|
|
53889
|
+
siteTerms: blockSiteTermsSchema.optional(),
|
|
52892
53890
|
demoEmailSuppressed: z.boolean().optional()
|
|
52893
53891
|
});
|
|
52894
53892
|
const passesMembershipsRenderSchema = z.object({
|
|
@@ -52949,6 +53947,7 @@ const shopBlockRuntime = defineProgressiveBlockRuntime({
|
|
|
52949
53947
|
memberships: source.showMemberships === false ? [] : source.memberships ?? [],
|
|
52950
53948
|
passPurchaseMode,
|
|
52951
53949
|
buttonVariant: source.buttonVariant ?? "primary",
|
|
53950
|
+
siteTerms: source.siteTerms,
|
|
52952
53951
|
demoEmailSuppressed: source.demoEmailSuppressed
|
|
52953
53952
|
}
|
|
52954
53953
|
};
|
|
@@ -53043,6 +54042,7 @@ const checkoutBlockRuntime = defineClientOwnedBlockRuntime({
|
|
|
53043
54042
|
hydration: {
|
|
53044
54043
|
emptyStateText: source.emptyStateText ?? "Add something to your cart to continue.",
|
|
53045
54044
|
submitButtonText: source.submitButtonText ?? "Checkout",
|
|
54045
|
+
siteTerms: source.siteTerms,
|
|
53046
54046
|
demoEmailSuppressed: source.demoEmailSuppressed
|
|
53047
54047
|
}
|
|
53048
54048
|
})
|
|
@@ -53258,10 +54258,12 @@ const shopBlockDefinition = {
|
|
|
53258
54258
|
],
|
|
53259
54259
|
icon: "ShoppingBag",
|
|
53260
54260
|
layout: [styledSection({
|
|
54261
|
+
skinSlot: "shop-section",
|
|
53261
54262
|
baseClass: "",
|
|
53262
54263
|
spacing: "spacious",
|
|
53263
54264
|
children: sectionContainer([shop(withApiBindings({
|
|
53264
54265
|
readAuthority: { $bind: { from: "$root.readAuthority" } },
|
|
54266
|
+
siteTerms: { $bind: { from: "$root.siteTerms" } },
|
|
53265
54267
|
demoEmailSuppressed: { $bind: {
|
|
53266
54268
|
from: "$root.demoEmailSuppressed",
|
|
53267
54269
|
fallback: false
|
|
@@ -53333,12 +54335,18 @@ const shopBlockDefinition = {
|
|
|
53333
54335
|
dataLoaders: {
|
|
53334
54336
|
passes: {
|
|
53335
54337
|
endpoint: "listPublicPasses",
|
|
53336
|
-
params: {
|
|
54338
|
+
params: {
|
|
54339
|
+
siteTerms: { $bind: { from: "$root.siteTerms" } },
|
|
54340
|
+
siteId: { $bind: { from: "$root.siteId" } }
|
|
54341
|
+
},
|
|
53337
54342
|
mode: "server"
|
|
53338
54343
|
},
|
|
53339
54344
|
memberships: {
|
|
53340
54345
|
endpoint: "listPublicMemberships",
|
|
53341
|
-
params: {
|
|
54346
|
+
params: {
|
|
54347
|
+
siteTerms: { $bind: { from: "$root.siteTerms" } },
|
|
54348
|
+
siteId: { $bind: { from: "$root.siteId" } }
|
|
54349
|
+
},
|
|
53342
54350
|
mode: "server"
|
|
53343
54351
|
}
|
|
53344
54352
|
}
|
|
@@ -53866,6 +54874,7 @@ const publicGiftingOffersResponseSchema = z.object({
|
|
|
53866
54874
|
vouchers: z.array(publicVoucherOfferSchema)
|
|
53867
54875
|
});
|
|
53868
54876
|
const giftingSourceSchema = z.object({
|
|
54877
|
+
siteTerms: blockSiteTermsSchema.optional(),
|
|
53869
54878
|
siteId: z.string().optional(),
|
|
53870
54879
|
apiBaseUrl: z.string().optional(),
|
|
53871
54880
|
offers: publicGiftingOffersResponseSchema.nullable().optional(),
|
|
@@ -53889,6 +54898,7 @@ const giftingDisplaySchema = z.object({
|
|
|
53889
54898
|
emptyStateText: z.string()
|
|
53890
54899
|
});
|
|
53891
54900
|
const giftingHydrationSchema = z.object({
|
|
54901
|
+
siteTerms: blockSiteTermsSchema.optional(),
|
|
53892
54902
|
offers: publicGiftingOffersResponseSchema.nullable(),
|
|
53893
54903
|
checkoutButtonText: z.string(),
|
|
53894
54904
|
successMessage: z.string()
|
|
@@ -53922,6 +54932,7 @@ const giftingBlockRuntime = defineClientOwnedBlockRuntime({
|
|
|
53922
54932
|
buildRender: (source) => ({
|
|
53923
54933
|
display: buildGiftingDisplay(source),
|
|
53924
54934
|
hydration: {
|
|
54935
|
+
siteTerms: source.siteTerms,
|
|
53925
54936
|
offers: source.offers ?? null,
|
|
53926
54937
|
checkoutButtonText: source.checkoutButtonText?.trim() || "Continue",
|
|
53927
54938
|
successMessage: source.successMessage?.trim() || "Thanks. Your purchase is complete and your gift will be sent shortly."
|
|
@@ -54059,7 +55070,10 @@ const giftingBlockDefinition = {
|
|
|
54059
55070
|
dataSchemas: { offers: publicGiftingOffersResponseSchema.optional() },
|
|
54060
55071
|
dataLoaders: { offers: {
|
|
54061
55072
|
endpoint: "listPublicGiftingOffers",
|
|
54062
|
-
params: {
|
|
55073
|
+
params: {
|
|
55074
|
+
siteTerms: { $bind: { from: "$root.siteTerms" } },
|
|
55075
|
+
siteId: { $bind: { from: "$root.siteId" } }
|
|
55076
|
+
},
|
|
54063
55077
|
mode: "server"
|
|
54064
55078
|
} }
|
|
54065
55079
|
};
|
|
@@ -54385,10 +55399,10 @@ const stackedLayout = styledSection({
|
|
|
54385
55399
|
background: "surface"
|
|
54386
55400
|
});
|
|
54387
55401
|
const inlineLayout = styledSection({
|
|
54388
|
-
children:
|
|
55402
|
+
children: [when("content._lookSlots", { not: true })(sectionContainer(stackedComposition.layout, {
|
|
54389
55403
|
gap: "md",
|
|
54390
55404
|
className: "newsletter-inline"
|
|
54391
|
-
})),
|
|
55405
|
+
})), when("content._lookSlots")(props(lookSlot("layout"))(sectionContainer([el("div", lookSlot("head"), newsletterCopyFragment.layout), el("div", lookSlot("panel"), newsletterFormFragment.layout)], { gap: "md" })))],
|
|
54392
55406
|
baseClass: "",
|
|
54393
55407
|
spacing: "medium",
|
|
54394
55408
|
background: "surface"
|
|
@@ -56642,6 +57656,8 @@ const defaultTransforms = createTransformRegistry([
|
|
|
56642
57656
|
offeringsPreviewDatesReadEnabled,
|
|
56643
57657
|
lookLeadSlotTransform,
|
|
56644
57658
|
lookQuoteLimitTransform,
|
|
57659
|
+
lookCarouselRegionTransform,
|
|
57660
|
+
lookSkinSlotTransform,
|
|
56645
57661
|
{
|
|
56646
57662
|
id: "events.calendarListWindow",
|
|
56647
57663
|
kind: "formatter",
|
|
@@ -56735,6 +57751,10 @@ function planArrangementContent(blockKind, manifest, content, audience) {
|
|
|
56735
57751
|
...activeContent,
|
|
56736
57752
|
...effectiveContent,
|
|
56737
57753
|
...photoContent,
|
|
57754
|
+
...arrangementShapeContent(effective.look.id, {
|
|
57755
|
+
...activeContent,
|
|
57756
|
+
...effectiveContent
|
|
57757
|
+
}),
|
|
56738
57758
|
...arrangementPanelContent(activeContent, effective, mode),
|
|
56739
57759
|
...arrangementQuoteContent(blockKind, effective, values),
|
|
56740
57760
|
_effectiveLook: effective,
|
|
@@ -56744,10 +57764,19 @@ function planArrangementContent(blockKind, manifest, content, audience) {
|
|
|
56744
57764
|
}, values, visiblePhotos.photoCount),
|
|
56745
57765
|
_effectiveKnobs: knobs,
|
|
56746
57766
|
_lookAudience: audience,
|
|
56747
|
-
_lookSlots:
|
|
57767
|
+
_lookSlots: arrangementContentSlots(blockKind),
|
|
56748
57768
|
blockLook: effective.look.id
|
|
56749
57769
|
};
|
|
56750
57770
|
}
|
|
57771
|
+
/** Widget section hooks use the theme; hero background geometry never travels to list islands. */
|
|
57772
|
+
function arrangementContentSlots(blockKind) {
|
|
57773
|
+
return Object.fromEntries(arrangementSlotNames.filter((slot) => slot !== "schedule-section" && slot !== "shop-section" && (slot !== "background" || blockKind === "block.hero")).map((slot) => [slot, slot]));
|
|
57774
|
+
}
|
|
57775
|
+
/** C photo Looks render shape-specific crops without rewriting authored preferences. */
|
|
57776
|
+
function arrangementShapeContent(lookId, content) {
|
|
57777
|
+
if (lookId !== "intro-photo-beside-text" && lookId !== "media-text-photo-beside-text") return {};
|
|
57778
|
+
return content.imageShape === "circle" ? { aspectRatio: "1/1" } : content.imageShape === "arch" ? { aspectRatio: "4/5" } : {};
|
|
57779
|
+
}
|
|
56751
57780
|
function arrangementQuoteContent(blockKind, effective, values) {
|
|
56752
57781
|
if (blockKind !== "block.testimonials") return {};
|
|
56753
57782
|
const single = effective.look.structure.byMode.default === "single";
|
|
@@ -56793,6 +57822,7 @@ function arrangementContentFacts(content) {
|
|
|
56793
57822
|
function arrangementPhotoCount(content) {
|
|
56794
57823
|
if (Array.isArray(content.cards)) return content.cards.filter((card) => isObjectRecord$1(card) && isObjectRecord$1(card.media)).length;
|
|
56795
57824
|
if (Array.isArray(content.images)) return content.images.filter((item) => isObjectRecord$1(item) && isObjectRecord$1(item.image)).length;
|
|
57825
|
+
if (isObjectRecord$1(content.media)) return 1;
|
|
56796
57826
|
const section = isObjectRecord$1(content._sectionStyles) ? content._sectionStyles : {};
|
|
56797
57827
|
return isObjectRecord$1((isObjectRecord$1(section.background) ? section.background : {}).image) ? 1 : 0;
|
|
56798
57828
|
}
|
|
@@ -60875,6 +61905,53 @@ z.object({
|
|
|
60875
61905
|
toolCallsUsed: z.number()
|
|
60876
61906
|
});
|
|
60877
61907
|
//#endregion
|
|
61908
|
+
//#region ../api/src/siteTerms.ts
|
|
61909
|
+
const versionIdSchema = z.string().uuid().transform((value, ctx) => {
|
|
61910
|
+
const parsed = parseSiteTermsVersionId(value);
|
|
61911
|
+
if (parsed.ok) return parsed.value;
|
|
61912
|
+
ctx.addIssue({
|
|
61913
|
+
code: "custom",
|
|
61914
|
+
message: "Invalid site terms version"
|
|
61915
|
+
});
|
|
61916
|
+
return z.NEVER;
|
|
61917
|
+
});
|
|
61918
|
+
z.object({
|
|
61919
|
+
shown: z.discriminatedUnion("kind", [
|
|
61920
|
+
z.object({ kind: z.literal("nothing") }),
|
|
61921
|
+
z.object({
|
|
61922
|
+
kind: z.literal("checkbox"),
|
|
61923
|
+
versionId: versionIdSchema
|
|
61924
|
+
}),
|
|
61925
|
+
z.object({
|
|
61926
|
+
kind: z.literal("already_agreed_line"),
|
|
61927
|
+
versionId: versionIdSchema
|
|
61928
|
+
})
|
|
61929
|
+
]),
|
|
61930
|
+
agreed: z.boolean()
|
|
61931
|
+
});
|
|
61932
|
+
const siteTermsSourceSchema = z.discriminatedUnion("kind", [z.object({
|
|
61933
|
+
kind: z.literal("written"),
|
|
61934
|
+
body: z.custom(isCanonicalRichTextDoc)
|
|
61935
|
+
}), z.object({
|
|
61936
|
+
kind: z.literal("link"),
|
|
61937
|
+
destination: z.discriminatedUnion("kind", [z.object({
|
|
61938
|
+
kind: z.literal("page"),
|
|
61939
|
+
identifier: z.string().trim().min(1)
|
|
61940
|
+
}), z.object({
|
|
61941
|
+
kind: z.literal("url"),
|
|
61942
|
+
href: z.url({ protocol: /^https?$/ })
|
|
61943
|
+
})])
|
|
61944
|
+
})]);
|
|
61945
|
+
z.discriminatedUnion("kind", [z.object({
|
|
61946
|
+
kind: z.literal("publish"),
|
|
61947
|
+
expectedRevision: z.number().int().positive().nullable(),
|
|
61948
|
+
source: siteTermsSourceSchema,
|
|
61949
|
+
askAgain: z.boolean()
|
|
61950
|
+
}).strict(), z.object({
|
|
61951
|
+
kind: z.literal("stop"),
|
|
61952
|
+
expectedRevision: z.number().int().positive()
|
|
61953
|
+
}).strict()]);
|
|
61954
|
+
//#endregion
|
|
60878
61955
|
//#region src/data/prefetchBlockData.ts
|
|
60879
61956
|
const SUPPORTED_LOADER_ENDPOINTS = SUPPORTED_LOADER_ENDPOINTS$1;
|
|
60880
61957
|
function isSupportedLoaderEndpoint(endpoint) {
|
|
@@ -61291,8 +62368,9 @@ function buildSiteRenderSupport(site, mediaAssets) {
|
|
|
61291
62368
|
site: site.site,
|
|
61292
62369
|
sdkConfig: site.sdkConfig ?? null,
|
|
61293
62370
|
bookingOfferingPresets: site.bookingOfferingPresets ?? [],
|
|
62371
|
+
siteTerms: site.siteTerms,
|
|
61294
62372
|
mailingList: site.mailingList,
|
|
61295
|
-
bookingTimeZone: site.bookingTimeZone
|
|
62373
|
+
bookingTimeZone: resolveBookingBusinessTimeZone(site.bookingTimeZone),
|
|
61296
62374
|
...customBlocks ? { customBlocks } : {},
|
|
61297
62375
|
supabaseUrl: site.supabaseUrl,
|
|
61298
62376
|
routeMap: site.routes,
|
|
@@ -61572,6 +62650,7 @@ async function loadPageWithDeps(deps, params) {
|
|
|
61572
62650
|
},
|
|
61573
62651
|
resolvedData,
|
|
61574
62652
|
bookingOfferingPresets: support.bookingOfferingPresets,
|
|
62653
|
+
siteTerms: support.siteTerms,
|
|
61575
62654
|
mailingList: support.mailingList,
|
|
61576
62655
|
bookingTimeZone: support.bookingTimeZone,
|
|
61577
62656
|
supabaseUrl: support.supabaseUrl,
|
|
@@ -62095,6 +63174,7 @@ function getRejectedReason(result) {
|
|
|
62095
63174
|
function toTemplateContentRenderSupport(support, siteId) {
|
|
62096
63175
|
return {
|
|
62097
63176
|
bookingOfferingPresets: support.bookingOfferingPresets,
|
|
63177
|
+
siteTerms: support.siteTerms,
|
|
62098
63178
|
mailingList: support.mailingList,
|
|
62099
63179
|
bookingTimeZone: support.bookingTimeZone,
|
|
62100
63180
|
...support.customBlocks ? { customBlocks: support.customBlocks } : {},
|
|
@@ -62366,6 +63446,7 @@ async function loadContentFromContentResponseWithDeps(deps, params) {
|
|
|
62366
63446
|
resolvedData,
|
|
62367
63447
|
dataContext: { previewStage },
|
|
62368
63448
|
bookingOfferingPresets: support.bookingOfferingPresets,
|
|
63449
|
+
siteTerms: support.siteTerms,
|
|
62369
63450
|
mailingList: support.mailingList,
|
|
62370
63451
|
bookingTimeZone: support.bookingTimeZone,
|
|
62371
63452
|
site: support.site,
|