@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.
Files changed (253) hide show
  1. package/README.md +2 -0
  2. package/dist/{EventEmbeddedCheckoutStep-ba9npQtb.mjs → EventEmbeddedCheckoutStep-DALtAjqG.mjs} +1 -1
  3. package/dist/{PreviewEditorSidebar-C7FiaxlF.mjs → PreviewEditorSidebar-CbSbqmz3.mjs} +29 -20
  4. package/dist/{PreviewEditorUI-DFst50q1.mjs → PreviewEditorUI-CKKnAw11.mjs} +9 -17
  5. package/dist/{SdkPreviewModeRuntime-BUNV_YHZ.mjs → SdkPreviewModeRuntime-wLkXrWy9.mjs} +132 -56
  6. package/dist/{SiteChromeCustomizeContext-DEj7qppF.mjs → SiteChromeCustomizeContext-BQ8vvKb-.mjs} +6324 -3566
  7. package/dist/{ThemedButton-C8kzu0hY.mjs → ThemedButton-Bi0rgijy.mjs} +83 -5
  8. package/dist/_dts/ai/src/contracts/proposals.d.ts +42213 -16421
  9. package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +3322 -258
  10. package/dist/_dts/api/src/bookingConfig.d.ts +4 -12
  11. package/dist/_dts/api/src/bookingManagementEventEndpointTypes.d.ts +2 -2
  12. package/dist/_dts/api/src/bookingOperations.d.ts +4 -0
  13. package/dist/_dts/api/src/bookingPeople.d.ts +1 -1
  14. package/dist/_dts/api/src/bookingRecords.d.ts +1 -0
  15. package/dist/_dts/api/src/bookings.d.ts +8 -1
  16. package/dist/_dts/api/src/commercePortalEndpoints.d.ts +1 -1
  17. package/dist/_dts/api/src/common/envelope.d.ts +2 -2
  18. package/dist/_dts/api/src/contentRuntime.d.ts +4 -3
  19. package/dist/_dts/api/src/endpoints.d.ts +1 -1
  20. package/dist/_dts/api/src/eventManagementContracts.d.ts +20 -11
  21. package/dist/_dts/api/src/eventManagementEndpointDefinitions.d.ts +1 -1
  22. package/dist/_dts/api/src/index.d.ts +5 -2
  23. package/dist/_dts/api/src/privacyPolicy.d.ts +20 -2
  24. package/dist/_dts/api/src/public/types.d.ts +1 -0
  25. package/dist/_dts/api/src/publicAppointmentBookingContracts.d.ts +1 -0
  26. package/dist/_dts/api/src/publicBookingService.d.ts +1 -0
  27. package/dist/_dts/api/src/publicExperience/commerceEndpoints.d.ts +4 -0
  28. package/dist/_dts/api/src/sdk-event-management.d.ts +1 -0
  29. package/dist/_dts/api/src/sdk-event-upsert.d.ts +22 -7
  30. package/dist/_dts/api/src/sdkContracts.d.ts +2 -0
  31. package/dist/_dts/api/src/sdkManagedEventContracts.d.ts +5 -3
  32. package/dist/_dts/api/src/sdkPullEventContracts.d.ts +15 -4
  33. package/dist/_dts/api/src/sdkThemeWire.d.ts +10 -0
  34. package/dist/_dts/api/src/siteManagementEndpoints.d.ts +2 -2
  35. package/dist/_dts/api/src/siteTerms.d.ts +100 -0
  36. package/dist/_dts/api/src/types.d.ts +2 -1
  37. package/dist/_dts/api/src/webhooks.d.ts +9 -9
  38. package/dist/_dts/block-form/src/client/index.d.ts +2 -1
  39. package/dist/_dts/block-form/src/widgets/DateField/DateField.d.ts +3 -1
  40. package/dist/_dts/block-form/src/widgets/DateField/datePickerPopover.d.ts +3 -1
  41. package/dist/_dts/block-form/src/widgets/DateTimeField/DateTimeField.d.ts +3 -1
  42. package/dist/_dts/blocks/src/client/carousel.d.ts +1 -0
  43. package/dist/_dts/blocks/src/contracts/non-block-islands.d.ts +12 -33
  44. package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +22 -22
  45. package/dist/_dts/blocks/src/index.d.ts +2 -2
  46. package/dist/_dts/blocks/src/pageRenderAdmission.d.ts +1 -0
  47. package/dist/_dts/blocks/src/pageRenderPlan.d.ts +8 -1
  48. package/dist/_dts/blocks/src/pageRendererContracts.d.ts +1 -0
  49. package/dist/_dts/blocks/src/rendering/server.d.ts +1 -0
  50. package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +9 -5
  51. package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +1 -0
  52. package/dist/_dts/blocks/src/system/blocks/offerings-preview/catalogue.d.ts +7 -1
  53. package/dist/_dts/blocks/src/system/blocks/offerings-preview/index.d.ts +14 -0
  54. package/dist/_dts/blocks/src/system/blocks/offerings-preview/itemData.d.ts +12 -0
  55. package/dist/_dts/blocks/src/system/blocks/offerings-preview/model.d.ts +56 -6
  56. package/dist/_dts/blocks/src/system/blocks/offerings-preview/photoCount.d.ts +3 -12
  57. package/dist/_dts/blocks/src/system/blocks/shared/siteTerms.d.ts +17 -0
  58. package/dist/_dts/blocks/src/system/customize/facets.d.ts +44 -0
  59. package/dist/_dts/blocks/src/system/manifest/fieldValidation/index.d.ts +2 -1
  60. package/dist/_dts/blocks/src/system/manifest/validation.d.ts +3 -1
  61. package/dist/_dts/blocks/src/system/node/fragments/backgroundLayer.d.ts +6 -0
  62. package/dist/_dts/blocks/src/system/node/fragments/lookSlot.d.ts +22 -3
  63. package/dist/_dts/blocks/src/system/node/fragments/styledSection.d.ts +4 -0
  64. package/dist/_dts/blocks/src/system/runtime/api/client.d.ts +2 -0
  65. package/dist/_dts/blocks/src/system/runtime/api/endpoints.d.ts +7 -0
  66. package/dist/_dts/blocks/src/system/runtime/api/types/events.d.ts +2 -0
  67. package/dist/_dts/blocks/src/system/runtime/api/types/portal.d.ts +1 -0
  68. package/dist/_dts/blocks/src/system/runtime/api/types/shop.d.ts +3 -0
  69. package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +33 -0
  70. package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +12 -0
  71. package/dist/_dts/blocks/src/system/runtime/hooks/useBookingFlowController.d.ts +2 -0
  72. package/dist/_dts/blocks/src/system/runtime/hooks/useBookingSubmission.d.ts +3 -2
  73. package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessBookingFlow.d.ts +4 -0
  74. package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessEventRegistrationFlow.d.ts +2 -0
  75. package/dist/_dts/blocks/src/system/runtime/hooks/useSiteTermsAgreement.d.ts +17 -0
  76. package/dist/_dts/blocks/src/system/runtime/hooks/useSiteTermsAgreement.state.d.ts +42 -0
  77. package/dist/_dts/blocks/src/system/runtime/lookSurfaces.d.ts +6 -0
  78. package/dist/_dts/blocks/src/system/runtime/nodes/appointment-services.d.ts +6 -2
  79. package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.headless.state.d.ts +4 -0
  80. package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.interactive.d.ts +15 -0
  81. package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.state.d.ts +1 -0
  82. package/dist/_dts/blocks/src/system/runtime/nodes/booking-runtime-sources.d.ts +3 -0
  83. package/dist/_dts/blocks/src/system/runtime/nodes/carousel.client.d.ts +5 -30
  84. package/dist/_dts/blocks/src/system/runtime/nodes/carousel.server.d.ts +3 -12
  85. package/dist/_dts/blocks/src/system/runtime/nodes/carousel.shared.d.ts +71 -1
  86. package/dist/_dts/blocks/src/system/runtime/nodes/event-details/lookPresentation.d.ts +6 -0
  87. package/dist/_dts/blocks/src/system/runtime/nodes/event-details/presentation.d.ts +1 -1
  88. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/AttendeeDetailsStep.d.ts +3 -0
  89. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/CalendarAction.d.ts +5 -0
  90. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/SuccessStep.d.ts +2 -0
  91. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/bookingCalendar.d.ts +16 -0
  92. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.contract.d.ts +2 -0
  93. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/finishedBooking.d.ts +8 -0
  94. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationStateMachine.d.ts +2 -0
  95. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/types.d.ts +3 -1
  96. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +42 -0
  97. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +5 -0
  98. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/CardListItem.d.ts +26 -1
  99. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/EventItem.d.ts +17 -3
  100. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCardListContent.d.ts +9 -1
  101. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +20 -4
  102. package/dist/_dts/blocks/src/system/runtime/nodes/gifting.interactive.d.ts +8 -0
  103. package/dist/_dts/blocks/src/system/runtime/nodes/offerings-preview-catalogue.d.ts +5 -3
  104. package/dist/_dts/blocks/src/system/runtime/nodes/offerings-preview-content.d.ts +4 -2
  105. package/dist/_dts/blocks/src/system/runtime/nodes/offerings-preview.d.ts +2 -2
  106. package/dist/_dts/blocks/src/system/runtime/nodes/shop.interactive.d.ts +14 -0
  107. package/dist/_dts/blocks/src/system/runtime/shared/components/CheckboxChoice.d.ts +3 -1
  108. package/dist/_dts/blocks/src/system/runtime/shared/components/SiteTermsAgreementField.d.ts +13 -0
  109. package/dist/_dts/blocks/src/system/runtime/shared/siteTermsAgreement.d.ts +81 -0
  110. package/dist/_dts/blocks/src/system/runtime/shared/siteTermsCheckoutApi.d.ts +14 -0
  111. package/dist/_dts/blocks/src/system/transforms/registry/boxStyles.d.ts +2 -0
  112. package/dist/_dts/blocks/src/system/transforms/typed.d.ts +2 -0
  113. package/dist/_dts/blocks/src/system/types/link.d.ts +2 -0
  114. package/dist/_dts/calendar/src/icsRenderer.d.ts +23 -0
  115. package/dist/_dts/calendar/src/index.d.ts +2 -0
  116. package/dist/_dts/commerce/src/purchase/checkoutErrorCodes.d.ts +1 -1
  117. package/dist/_dts/commerce/src/purchase/types.d.ts +5 -0
  118. package/dist/_dts/content-editor/src/controller/EntryControllerProvider.d.ts +3 -1
  119. package/dist/_dts/content-editor/src/controller/publicationDate.d.ts +5 -0
  120. package/dist/_dts/content-model/src/content-types/entryValidation.d.ts +6 -5
  121. package/dist/_dts/content-model/src/content-types/schema.d.ts +4 -0
  122. package/dist/_dts/content-model/src/contentManifest.d.ts +10 -2
  123. package/dist/_dts/content-model/src/definitions/shared.d.ts +2 -0
  124. package/dist/_dts/core/src/booking-date-time.d.ts +5 -0
  125. package/dist/_dts/core/src/booking-refunds.d.ts +43 -2
  126. package/dist/_dts/core/src/branded.d.ts +6 -0
  127. package/dist/_dts/core/src/date-display.d.ts +7 -2
  128. package/dist/_dts/core/src/index.d.ts +3 -2
  129. package/dist/_dts/core/src/site-terms.d.ts +94 -0
  130. package/dist/_dts/core/src/whole-series-run-schedule.d.ts +2 -0
  131. package/dist/_dts/db/src/generated/supabase/database.types.d.ts +306 -0
  132. package/dist/_dts/db/src/schemas/forms.d.ts +16 -16
  133. package/dist/_dts/editor/src/chrome/EditorChrome.d.ts +2 -2
  134. package/dist/_dts/editor/src/chrome/EditorStatusBar.d.ts +3 -2
  135. package/dist/_dts/editor/src/chrome/statusBarPresentation.d.ts +2 -2
  136. package/dist/_dts/editor-blocks/src/widgets/link/LinkContentList.d.ts +2 -1
  137. package/dist/_dts/editor-blocks/src/widgets/link/LinkPicker.d.ts +3 -0
  138. package/dist/_dts/editor-blocks/src/widgets/link/LinkPickerDialog.d.ts +1 -1
  139. package/dist/_dts/editor-blocks/src/widgets/link/LinkWidget.d.ts +3 -0
  140. package/dist/_dts/editor-blocks/src/widgets/link/draft.d.ts +6 -1
  141. package/dist/_dts/editor-blocks/src/widgets/link/index.d.ts +1 -0
  142. package/dist/_dts/preview-next/src/client/blocks/arrangementControlsModel.d.ts +8 -1
  143. package/dist/_dts/preview-next/src/client/blocks/previewCustomizeControlPlan.d.ts +4 -1
  144. package/dist/_dts/preview-next/src/client/preview/PreviewEntryControllerProvider.d.ts +3 -1
  145. package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +2 -0
  146. package/dist/_dts/preview-next/src/client/sdk/SdkPreviewMode.d.ts +2 -0
  147. package/dist/_dts/sdk/src/config/typed-entry-links.test-d.d.ts +1 -0
  148. package/dist/_dts/sdk/src/public-api/contracts.d.ts +3 -2
  149. package/dist/_dts/sdk/src/rendering/blocks-page-renderer.d.ts +1 -0
  150. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +3 -1
  151. package/dist/_dts/sdk/src/rendering/helpers/loadContent.d.ts +7 -4
  152. package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +3 -1
  153. package/dist/_dts/sdk/src/version.d.ts +1 -1
  154. package/dist/_dts/theme-core/src/ThemeFontLoader.d.ts +1 -0
  155. package/dist/_dts/theme-core/src/buttons/styles/recipes/quietArrow.d.ts +12 -8
  156. package/dist/_dts/theme-core/src/buttons/styles/registry.d.ts +12 -8
  157. package/dist/_dts/theme-core/src/buttons/styles/selection.d.ts +12 -0
  158. package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
  159. package/dist/_dts/theme-core/src/header/containerSchema.d.ts +1 -0
  160. package/dist/_dts/theme-core/src/header/generateHeaderCss.d.ts +3 -0
  161. package/dist/_dts/theme-core/src/inputs/checkable.d.ts +6 -0
  162. package/dist/_dts/theme-core/src/mock-themes/all.d.ts +15 -0
  163. package/dist/_dts/theme-core/src/schema.d.ts +21 -0
  164. package/dist/_dts/theme-core/src/site-styles/accessibleSurfaces.d.ts +2 -0
  165. package/dist/_dts/theme-core/src/site-styles/appearancePresetTypes.d.ts +3 -2
  166. package/dist/_dts/theme-core/src/site-styles/backgroundAppearance.d.ts +2 -2
  167. package/dist/_dts/theme-core/src/site-styles/curatedSiteStyles.d.ts +56 -1
  168. package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +4 -2
  169. package/dist/_dts/theme-core/src/site-styles/headerOpeningForeground.d.ts +4 -0
  170. package/dist/_dts/theme-core/src/site-styles/headerStyleRecipe.d.ts +13 -1
  171. package/dist/_dts/theme-core/src/site-styles/lookResolution.d.ts +1 -1
  172. package/dist/_dts/theme-core/src/site-styles/runtimeBackgroundResolution.d.ts +5 -0
  173. package/dist/_dts/theme-core/src/site-styles/siteStyleTypography.d.ts +46 -0
  174. package/dist/_dts/theme-core/src/status/generateStatusCss.d.ts +4 -1
  175. package/dist/_dts/theme-core/src/surfaces/resolveSurfaceForeground.d.ts +2 -0
  176. package/dist/_dts/theme-core/src/typography/schema.d.ts +9 -0
  177. package/dist/_dts/ui/src/calendar.d.ts +6 -1
  178. package/dist/_dts/ui/src/index.d.ts +1 -1
  179. package/dist/client/{BookingMailingListNote-CNoSqFtf.mjs → BookingMailingListNote-CiW1dsz7.mjs} +3 -3
  180. package/dist/client/{CardListItem-BkTkqBkh.mjs → CardListItem-DVYTlYpS.mjs} +70 -13
  181. package/dist/client/CheckboxChoice-CUnPrBlC.mjs +44 -0
  182. package/dist/client/DemoBookingPortalAccess-DEsn5F2C.mjs +770 -0
  183. package/dist/client/{EventCombined.client-BgeYMjHJ.mjs → EventCombined.client-BdctbwnV.mjs} +5 -5
  184. package/dist/client/{EventEmbeddedCheckoutStep-BTc_lTkM.mjs → EventEmbeddedCheckoutStep-DAhQs6Jb.mjs} +2 -5
  185. package/dist/client/{EventListing.client-ChRs9Hl2.mjs → EventListing.client-BviZXfAE.mjs} +2 -2
  186. package/dist/client/{mailingListSignupCopy-DZSHZrm6.mjs → FieldValidationMessage-AYanWFb-.mjs} +1 -14
  187. package/dist/client/{LeafletStaticMap-C_dNQgd0.mjs → LeafletStaticMap-BLTECfjU.mjs} +1 -1
  188. package/dist/client/{RichText-BI9bzbjo.mjs → RichText-D3oE1_pw.mjs} +4 -4
  189. package/dist/client/ThemedButton-Ckj0Rfr_.mjs +1256 -0
  190. package/dist/client/{accordion-6Yz8Wd83.mjs → accordion-yBx6d4O2.mjs} +1 -1
  191. package/dist/client/{bookingForm-i_pKIGiY.mjs → bookingForm-CPDEsQci.mjs} +64 -35
  192. package/dist/client/bookings.mjs +6572 -3274
  193. package/dist/client/carousel-DCqjwd2s.mjs +71 -0
  194. package/dist/client/{carousel.client-BUgjPbb6.mjs → carousel.client-Bx7XMF8-.mjs} +114 -39
  195. package/dist/client/{cart-D8OBHuF4.mjs → cart-DWJXrQxs.mjs} +3 -3
  196. package/dist/client/{checkout-F3-9IGLU.mjs → checkout-CH4ypSLS.mjs} +3 -3
  197. package/dist/client/client.mjs +7379 -2504
  198. package/dist/client/{context-Dg4ZrxDD.mjs → context-BOs0m_iw.mjs} +16 -12
  199. package/dist/client/{eventCalendar-BUc7YIBM.mjs → eventCalendar-CRylMllc.mjs} +8 -319
  200. package/dist/client/{eventCombined-BwfShk2a.mjs → eventCombined-DohTS3kp.mjs} +4 -4
  201. package/dist/client/{eventDetails-BMOVC3go.mjs → eventDetails-qf-u9zcF.mjs} +108 -36
  202. package/dist/client/{eventListing-BwE9PM-t.mjs → eventListing-Cg__X2vy.mjs} +4 -4
  203. package/dist/client/{eventRegistration-CCWPYDc7.mjs → eventRegistration-CybWxswy.mjs} +215 -237
  204. package/dist/client/{form-CXFr0Gd5.mjs → form-C-SGk6nq.mjs} +4 -4
  205. package/dist/client/{headerSection-BX8qw8kH.mjs → headerSection-BdzPaHqo.mjs} +3 -3
  206. package/dist/client/hooks.mjs +1283 -213
  207. package/dist/client/{locationMap-B3La71m0.mjs → locationMap-CEwIKmMb.mjs} +3 -3
  208. package/dist/client/mailingListSignupCopy-DS-_ePzG.mjs +14 -0
  209. package/dist/client/{media-B1Cbv721.mjs → media-V_ShXXru.mjs} +3 -3
  210. package/dist/client/{mediaContext-CwbbimYB.mjs → mediaContext-D-0tNVxE.mjs} +1 -1
  211. package/dist/client/{newsletterForm-DnGyR0x7.mjs → newsletterForm-CmwTltoS.mjs} +5 -4
  212. package/dist/client/{productDetail-BVgTqvkb.mjs → productDetail-DjIzUwg3.mjs} +3 -3
  213. package/dist/client/{productList-CcO7kUQw.mjs → productList-D6JGFnMF.mjs} +3 -3
  214. package/dist/client/{propsDecoder-B1OeWavE.mjs → propsDecoder-BRKz13eg.mjs} +5110 -2504
  215. package/dist/client/{renderableMediaAssetAdmission-CHkXYDC_.mjs → renderableMediaAssetAdmission-Cd3JSw2H.mjs} +3 -1
  216. package/dist/client/rendering/client.mjs +6176 -2738
  217. package/dist/client/rendering/islands.mjs +19 -19
  218. package/dist/client/rendering.mjs +7656 -2726
  219. package/dist/client/{routeIslandApiConfig-Dl4vglJm.mjs → routeIslandApiConfig-slAAILQ5.mjs} +1 -1
  220. package/dist/client/{shop-P72nX5Fs.mjs → shop-C45K96_0.mjs} +178 -157
  221. package/dist/client/{shop-commerce-Bt7uraDx.mjs → shop-commerce-oGBiKT5d.mjs} +23 -10
  222. package/dist/client/{shop-commerce-store-C1-mxSye.mjs → shop-commerce-store-H_HFPFZ8.mjs} +1 -1
  223. package/dist/client/{shopShared-Db-cRGu3.mjs → shopShared-D54T_LAV.mjs} +5 -5
  224. package/dist/client/{useDiscountCodeUi-jvAiUoUX.mjs → useDiscountCodeUi-Dm2EUa03.mjs} +1 -1
  225. package/dist/client/{useEventPagination-BdWpCniq.mjs → useEventPagination-0l_A8CxG.mjs} +62 -24
  226. package/dist/preview-next/before-render.mjs +1 -0
  227. package/dist/preview-next/client/runtime.mjs +3 -3
  228. package/dist/preview-next/keepAlive.mjs +1 -0
  229. package/dist/preview-next/middleware.mjs +1 -0
  230. package/dist/{sdk-runtime-DLhjF2Nw.mjs → sdk-runtime-CjTM32Ah.mjs} +1 -1
  231. package/dist/server/components.mjs +4514 -1408
  232. package/dist/server/config-validation.mjs +1181 -179
  233. package/dist/server/config.mjs +1147 -177
  234. package/dist/server/data.mjs +1204 -180
  235. package/dist/server/date-time.mjs +18 -7
  236. package/dist/server/index.mjs +4 -1
  237. package/dist/server/next.mjs +4533 -1429
  238. package/dist/server/page-converter.mjs +1054 -173
  239. package/dist/server/prebuild.mjs +1 -1
  240. package/dist/server/rendering/server.mjs +3775 -1015
  241. package/dist/server/rendering.mjs +4540 -1425
  242. package/dist/server/routing.mjs +1321 -247
  243. package/dist/server/server.mjs +1296 -215
  244. package/dist/server/theme-bridge.mjs +1864 -73
  245. package/dist/server/theme.mjs +74 -3
  246. package/dist/{spinner-MTooKfck.mjs → spinner-KVVZh8jd.mjs} +1 -1
  247. package/dist/src-BgmWy3P1.mjs +1667 -0
  248. package/dist/styles/index.css +942 -1
  249. package/package.json +1 -1
  250. package/dist/client/CheckboxChoice-CHJpsty4.mjs +0 -24
  251. package/dist/client/DemoBookingPortalAccess-C7KQKFNt.mjs +0 -344
  252. package/dist/client/ThemedButton-wl3Z3wkH.mjs +0 -411
  253. package/dist/client/carousel-DNqd_PjC.mjs +0 -38
@@ -115,6 +115,7 @@ const unsafeAsEventOfferingId = (id) => id;
115
115
  const unsafeAsEventSeriesId = (id) => id;
116
116
  const unsafeAsMediaAssetId = (id) => id;
117
117
  const unsafeAsUserId = (id) => id;
118
+ const unsafeAsSiteTermsVersionId = (id) => id;
118
119
  const unsafeAsContentVersionId = (id) => id;
119
120
  const parseSiteId = (value) => parseUuidBrand(value, unsafeAsSiteId);
120
121
  const parseApiKeyId = (value) => parseUuidBrand(value, unsafeAsApiKeyId);
@@ -122,6 +123,7 @@ const parseEventOfferingId = (value) => parseUuidBrand(value, unsafeAsEventOffer
122
123
  const parseUserId = (value) => parseUuidBrand(value, unsafeAsUserId);
123
124
  const parseMediaAssetId = (value) => parseUuidBrand(value, unsafeAsMediaAssetId);
124
125
  const parseContentVersionId = (value) => parseUuidBrand(value, unsafeAsContentVersionId);
126
+ const parseSiteTermsVersionId = (value) => parseUuidBrand(value, unsafeAsSiteTermsVersionId);
125
127
  const parseEventSeriesId = (value) => parseUuidBrand(value, unsafeAsEventSeriesId);
126
128
  //#endregion
127
129
  //#region ../core/src/assert-never.ts
@@ -394,7 +396,7 @@ function parseEventPageSurfaceDestinationMode(value) {
394
396
  return value === "cms-managed" || value === "system-managed" ? value : void 0;
395
397
  }
396
398
  function parseEventPageSurfaceSubject(value) {
397
- if (!isRecord$16(value)) return err({ kind: "notObject" });
399
+ if (!isRecord$17(value)) return err({ kind: "notObject" });
398
400
  switch (value.kind) {
399
401
  case "eventSeries": {
400
402
  const eventSeriesId = parseEventSeriesId(value.eventSeriesId);
@@ -449,7 +451,7 @@ function parseEventSeriesIdList(values) {
449
451
  }
450
452
  return ok(parsed);
451
453
  }
452
- function isRecord$16(value) {
454
+ function isRecord$17(value) {
453
455
  return typeof value === "object" && value !== null && !Array.isArray(value);
454
456
  }
455
457
  //#endregion
@@ -467,14 +469,23 @@ function validateBookingPaymentOptionKinds(kinds) {
467
469
  /** Shared Intl engine, internal to core's date presentation owners. */
468
470
  const FORMATTER_CACHE_LIMIT = 100;
469
471
  const dateTimeFormatterCache = /* @__PURE__ */ new Map();
472
+ /** Intl's boolean clock option can select h11/h24 on other ICU builds. */
473
+ function resolveClockCycle(format) {
474
+ const { hour12, ...explicitFormat } = format;
475
+ return hour12 === void 0 ? explicitFormat : {
476
+ ...explicitFormat,
477
+ hourCycle: hour12 ? "h12" : "h23"
478
+ };
479
+ }
470
480
  function getDateTimeFormatter(locale, timeZone, format) {
471
- const key = `${locale}\u0000${timeZone}\u0000${JSON.stringify(Object.entries(format).sort(([left], [right]) => left.localeCompare(right)))}`;
481
+ const explicitFormat = resolveClockCycle(format);
482
+ const key = `${locale}\u0000${timeZone}\u0000${JSON.stringify(Object.entries(explicitFormat).sort(([left], [right]) => left.localeCompare(right)))}`;
472
483
  const cached = dateTimeFormatterCache.get(key);
473
484
  if (cached !== void 0) return cached;
474
485
  if (typeof locale !== "string" || Intl.DateTimeFormat.supportedLocalesOf([locale]).length === 0) throw new RangeError("An explicit supported locale is required");
475
486
  if (typeof timeZone !== "string" || timeZone.length === 0) throw new RangeError("An explicit time zone is required");
476
487
  const formatter = new Intl.DateTimeFormat(locale, {
477
- ...format,
488
+ ...explicitFormat,
478
489
  timeZone
479
490
  });
480
491
  if (dateTimeFormatterCache.size >= FORMATTER_CACHE_LIMIT) dateTimeFormatterCache.clear();
@@ -544,7 +555,7 @@ function getZonedDateTimeParts(date, timeZone) {
544
555
  hour: "2-digit",
545
556
  minute: "2-digit",
546
557
  second: "2-digit",
547
- hour12: false
558
+ hourCycle: "h23"
548
559
  });
549
560
  const read = (type) => Number(parts.get(type) ?? "");
550
561
  return {
@@ -639,7 +650,7 @@ function formatBookingDate(input, format = {
639
650
  function formatBookingTime(input, format = {
640
651
  hour: "numeric",
641
652
  minute: "2-digit",
642
- hour12: true
653
+ hourCycle: "h12"
643
654
  }) {
644
655
  return formatBookingInstant(input.startsAt, {
645
656
  locale: input.locale,
@@ -795,6 +806,38 @@ function readPublishedBlockPlacement(id, content) {
795
806
  };
796
807
  }
797
808
  //#endregion
809
+ //#region ../core/src/rich-text.ts
810
+ function isRecord$16(value) {
811
+ return typeof value === "object" && value !== null && !Array.isArray(value);
812
+ }
813
+ function hasOnlyKeys(value, allowed) {
814
+ return Object.keys(value).every((key) => allowed.has(key));
815
+ }
816
+ const rootKeys = /* @__PURE__ */ new Set(["type", "content"]);
817
+ const nodeKeys = /* @__PURE__ */ new Set([
818
+ "type",
819
+ "content",
820
+ "text",
821
+ "attrs",
822
+ "marks"
823
+ ]);
824
+ const markKeys = /* @__PURE__ */ new Set(["type", "attrs"]);
825
+ function isDenseArrayOf(value, predicate) {
826
+ for (let index = 0; index < value.length; index += 1) if (!(index in value) || !predicate(value[index])) return false;
827
+ return true;
828
+ }
829
+ function isTipTapMark(value) {
830
+ return isRecord$16(value) && hasOnlyKeys(value, markKeys) && typeof value.type === "string" && value.type.length > 0 && (value.attrs === void 0 || isRecord$16(value.attrs));
831
+ }
832
+ function isTipTapNode(value) {
833
+ if (!isRecord$16(value) || !hasOnlyKeys(value, nodeKeys) || typeof value.type !== "string" || value.type.length === 0 || value.type === "doc" || value.attrs !== void 0 && !isRecord$16(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;
834
+ if (value.type === "text") return typeof value.text === "string" && value.text.length > 0 && value.content === void 0;
835
+ return value.text === void 0;
836
+ }
837
+ function isCanonicalRichTextDoc(value) {
838
+ return isRecord$16(value) && hasOnlyKeys(value, rootKeys) && value.type === "doc" && Array.isArray(value.content) && isDenseArrayOf(value.content, isTipTapNode);
839
+ }
840
+ //#endregion
798
841
  //#region ../core/src/mailing-list-identifiers.ts
799
842
  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;
800
843
  const OPAQUE_ID_PATTERN = /^[A-Za-z0-9_-]{1,100}$/u;
@@ -2584,6 +2627,7 @@ const publicEventBaseSchema = z.object({
2584
2627
  cutoffHours: z.number(),
2585
2628
  method: z.enum(["original_payment_method", "site_credit"])
2586
2629
  }) }),
2630
+ asksSiteTerms: z.boolean(),
2587
2631
  consent: blockBookingConsentSchema.nullable(),
2588
2632
  accessRestriction: accessRestrictionSchema,
2589
2633
  allowedCategoryIds: z.array(z.string()),
@@ -4921,6 +4965,7 @@ const EVENT_MANAGEMENT_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
4921
4965
  "validation:invalid_input",
4922
4966
  "resource:not_found",
4923
4967
  "resource:already_exists",
4968
+ "resource:conflict",
4924
4969
  "server:internal_error"
4925
4970
  ]
4926
4971
  },
@@ -8959,6 +9004,15 @@ const eyebrowTypographyStyleSchema = z.object({
8959
9004
  });
8960
9005
  const typographySchema = z.object({
8961
9006
  body: bodyTypographyStyleSchema,
9007
+ smallHeading: z.object({
9008
+ family: z.string().min(1),
9009
+ weight: z.enum([
9010
+ "regular",
9011
+ "medium",
9012
+ "semibold",
9013
+ "bold"
9014
+ ])
9015
+ }).optional(),
8962
9016
  headings: z.object({
8963
9017
  default: headingTypographyStyleSchema,
8964
9018
  h1: headingTypographyOverridesSchema,
@@ -10205,7 +10259,7 @@ function shadeCandidates(seedToken, palette) {
10205
10259
  const currentShade = match?.[2] ? Number(match[2]) : 500;
10206
10260
  const seedHex = palette[seedToken];
10207
10261
  const shades = Object.keys(palette).flatMap((token) => {
10208
- const shade = token.match(new RegExp(`^${escapeRegExp(family)}-(\\d{2,3})$`));
10262
+ const shade = token.match(new RegExp(`^${escapeRegExp$1(family)}-(\\d{2,3})$`));
10209
10263
  return shade?.[1] ? [Number(shade[1])] : [];
10210
10264
  }).filter((shade) => Number.isFinite(shade)).sort((left, right) => left - right);
10211
10265
  const lower = [...shades].filter((shade) => shade < currentShade).sort((left, right) => right - left);
@@ -10233,7 +10287,7 @@ function isSafeCandidate(token, palette, surface) {
10233
10287
  if (!hasSafeTextContrast(token, palette)) return false;
10234
10288
  return surface ? contrastRatio(palette[token] ?? "", surface.backgroundHex) >= BUTTON_CONTRAST_POLICY.nonTextMinimumRatio : true;
10235
10289
  }
10236
- function escapeRegExp(value) {
10290
+ function escapeRegExp$1(value) {
10237
10291
  return value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
10238
10292
  }
10239
10293
  //#endregion
@@ -11015,6 +11069,7 @@ function canonicalHoverToken(reference, palette) {
11015
11069
  }
11016
11070
  return canonicalToken(reference, palette);
11017
11071
  }
11072
+ /** Keep a candidate only when it meets ordinary-text contrast on the ground. */
11018
11073
  function safeTokenOr(candidate, fallback, backgroundHex, palette) {
11019
11074
  return firstSafeToken([candidate], backgroundHex, palette) ?? fallback;
11020
11075
  }
@@ -12767,7 +12822,11 @@ const BUTTON_STYLE_IDS = [
12767
12822
  "hairline-tab",
12768
12823
  "marquee"
12769
12824
  ];
12770
- const quietArrowParametersSchema = z.object({ secondaryTreatment: z.enum(["outlined", "solid-accent"]) }).strict();
12825
+ const quietArrowParametersSchema = z.object({
12826
+ secondaryTreatment: z.enum(["outlined", "solid-accent"]),
12827
+ size: z.enum(["comfortable"]).optional(),
12828
+ hoverTreatment: z.enum(["deep-and-sheet"]).optional()
12829
+ }).strict();
12771
12830
  const flatInkHoverTreatmentSchema = z.enum([
12772
12831
  "contextual",
12773
12832
  "secondary",
@@ -13224,6 +13283,63 @@ const solidAccentSecondary = {
13224
13283
  },
13225
13284
  affordance: { iconId: "ArrowRight" }
13226
13285
  };
13286
+ /** Selection-owned sizing leaves historical recipe output unchanged when absent. */
13287
+ function sizedQuietArrowRoles(roles, size) {
13288
+ if (size === void 0) return roles;
13289
+ return mapButtonRoleAppearances(roles, (appearance) => ({
13290
+ ...appearance,
13291
+ states: mapButtonVisualAppearances(appearance.states, (state) => ({
13292
+ ...state,
13293
+ sizes: {
13294
+ sm: {
13295
+ padding: "0.875rem 1.125rem",
13296
+ fontSize: "text-xs"
13297
+ },
13298
+ md: {
13299
+ padding: "0.75rem 1.375rem",
13300
+ fontSize: "text-sm"
13301
+ },
13302
+ lg: {
13303
+ padding: "0.875rem 1.75rem",
13304
+ fontSize: "text-sm"
13305
+ },
13306
+ xl: {
13307
+ padding: "1rem 2rem",
13308
+ fontSize: "text-base"
13309
+ }
13310
+ }
13311
+ }))
13312
+ }));
13313
+ }
13314
+ /** Forward sheet interaction is explicit selection data; absent preserves the captured recipe. */
13315
+ function quietArrowHoverRoles(roles, treatment) {
13316
+ if (treatment === void 0) return roles;
13317
+ const hover = (role, colour) => ({
13318
+ ...roles[role],
13319
+ states: {
13320
+ ...roles[role].states,
13321
+ hover: {
13322
+ ...roles[role].states.hover,
13323
+ background: {
13324
+ type: "solid",
13325
+ colorToken: unsafeAsOpaqueButtonColourToken(colour)
13326
+ },
13327
+ text: "treatment",
13328
+ effects: [],
13329
+ ...role === "secondary" ? { border: {
13330
+ widthClass: "border",
13331
+ marksBoundary: true,
13332
+ boundaryInk: unsafeAsOpaqueButtonColourToken("text")
13333
+ } } : {}
13334
+ }
13335
+ }
13336
+ });
13337
+ return {
13338
+ ...roles,
13339
+ primary: hover("primary", "primary-800"),
13340
+ secondary: hover("secondary", "surface")
13341
+ };
13342
+ }
13227
13343
  const quietArrowRecipe = defineButtonStyleRecipe({
13228
13344
  id: "quiet-arrow",
13229
13345
  accessibilityLabel: "Wide uppercase buttons with trailing arrows",
@@ -13247,10 +13363,10 @@ const quietArrowRecipe = defineButtonStyleRecipe({
13247
13363
  label: "Solid accent"
13248
13364
  }]
13249
13365
  }],
13250
- defineSystem: (parameters) => ({ roles: {
13366
+ defineSystem: (parameters) => ({ roles: quietArrowHoverRoles(sizedQuietArrowRoles({
13251
13367
  ...quietArrowSystem.roles,
13252
13368
  secondary: parameters.secondaryTreatment === "solid-accent" ? solidAccentSecondary : quietArrowSystem.roles.secondary
13253
- } })
13369
+ }, parameters.size), parameters.hoverTreatment) })
13254
13370
  });
13255
13371
  //#endregion
13256
13372
  //#region ../theme-core/src/buttons/styles/recipes/flatInk.ts
@@ -17032,7 +17148,11 @@ function resolveSurface(spec, context) {
17032
17148
  token: spec.token
17033
17149
  }, {
17034
17150
  ...context,
17035
- buttonContext: spec.buttonContext ?? context.buttonContext
17151
+ buttonContext: spec.buttonContext ?? context.buttonContext,
17152
+ ...spec.foreground ? { foreground: {
17153
+ ...context.foreground,
17154
+ ...spec.foreground
17155
+ } } : {}
17036
17156
  });
17037
17157
  case "tint": return resolveTintSurface(spec, context);
17038
17158
  }
@@ -18107,6 +18227,7 @@ const headerContainerSchema = z.object({
18107
18227
  "lg"
18108
18228
  ]).default("md"),
18109
18229
  tint: z.string().nullable().optional(),
18230
+ mobileSheet: z.literal("inset").optional(),
18110
18231
  opacity: z.number().min(0).max(1).default(.12)
18111
18232
  }).optional();
18112
18233
  //#endregion
@@ -18826,8 +18947,12 @@ const cardListKnobBlocks = [...cardListFamilyBlocks, "block.event-calendar"];
18826
18947
  const lookKnobBlocks = {
18827
18948
  actionStyle: cardListKnobBlocks,
18828
18949
  titleSize: "block.hero",
18829
- imagePosition: ["block.hero", "block.media-text"],
18830
- imageShape: "block.media-text",
18950
+ imagePosition: [
18951
+ "block.hero",
18952
+ "block.intro",
18953
+ "block.media-text"
18954
+ ],
18955
+ imageShape: ["block.intro", "block.media-text"],
18831
18956
  aspectRatio: "block.media-text",
18832
18957
  stickerLine: "block.hero",
18833
18958
  smallCaption: "block.hero",
@@ -18871,6 +18996,7 @@ function cardListKnobDefaults(block, arrangement, knobs, defaults) {
18871
18996
  }
18872
18997
  const arrangementLookTargets = {
18873
18998
  hero: "hero",
18999
+ intro: "intro",
18874
19000
  "feature-cards": "feature-cards",
18875
19001
  "event-calendar": "events",
18876
19002
  testimonials: "testimonials",
@@ -19777,14 +19903,20 @@ const appearancePresets = [
19777
19903
  }
19778
19904
  }),
19779
19905
  defineArrangementLook("body-text-reading-column", "body-text", "Reading column", "prose", []),
19780
- defineArrangementLook("form-beside-introduction-arched-panel", "form", "Introduction beside an arched form", "two-column", [], { slotRoles: { panel: "card" } }),
19781
- defineArrangementLook("newsletter-signup-in-arch", "newsletter-signup", "Signup in an arch", "arch", []),
19906
+ defineArrangementLook("form-beside-introduction-arched-panel", "form", "Introduction beside an arched form", "two-column", [], {
19907
+ slotRoles: { panel: "card" },
19908
+ styleFallback: [id$1("form-below-introduction")]
19909
+ }),
19910
+ defineArrangementLook("newsletter-signup-in-arch", "newsletter-signup", "Signup in an arch", "arch", [], { styleFallback: [id$1("newsletter-signup-text-beside")] }),
19782
19911
  defineArrangementLook("image-gallery-square-tiles", "image-gallery", "Square tiles", "tiles", []),
19783
19912
  defineArrangementLook("image-gallery-arched-captions", "image-gallery", "Arched photos with captions", "tiles", [], { styleFallback: [id$1("image-gallery-square-tiles")] }),
19784
- defineArrangementLook("media-text-circle-beside-text", "media-text", "Circle beside the text", "circle-beside", ["imagePosition"], { forcedKnobs: {
19785
- imageShape: "circle",
19786
- aspectRatio: "1/1"
19787
- } }),
19913
+ defineArrangementLook("media-text-circle-beside-text", "media-text", "Circle beside the text", "circle-beside", ["imagePosition"], {
19914
+ forcedKnobs: {
19915
+ imageShape: "circle",
19916
+ aspectRatio: "1/1"
19917
+ },
19918
+ styleFallback: [id$1("media-text-photo-beside-text")]
19919
+ }),
19788
19920
  defineArrangementLook("hero-photo-beside-text", "hero", "Photo beside the text", "split", heroKnobs, { slotRoles: { sticker: "highlight" } }),
19789
19921
  defineArrangementLook("hero-headline-row", "hero", "Big headline, then text and photo", "headline-row", heroKnobs, {
19790
19922
  slotRoles: { sticker: "highlight" },
@@ -19805,6 +19937,15 @@ const appearancePresets = [
19805
19937
  "text",
19806
19938
  "action"
19807
19939
  ], ["showPhotos", "cardMarker"], { itemRoles: { items: "card" } }),
19940
+ defineCardListLook("card-list-accent-edged-cards", "Accent-edged cards", "cards", [
19941
+ "media",
19942
+ "title",
19943
+ "text",
19944
+ "action"
19945
+ ], ["showPhotos", "cardMarker"], {
19946
+ itemRoles: { items: "card" },
19947
+ styleFallback: [id$1("feature-cards-cards")]
19948
+ }),
19808
19949
  defineCardListLook("feature-cards-open-columns", "Open columns", "cards", [
19809
19950
  "media",
19810
19951
  "title",
@@ -19915,6 +20056,52 @@ const appearancePresets = [
19915
20056
  defineArrangementLook("event-details-panel", "event-details", "Details panel", "details-panel", [], {
19916
20057
  slotRoles: { panel: "card" },
19917
20058
  styleFallback: [id$1("event-details-header")]
20059
+ }),
20060
+ defineArrangementLook("intro-statement-beside-text", "intro", "Big statement beside the text", "statement-copy", [], { styleFallback: [id$1("intro-photo-beside-text")] }),
20061
+ defineArrangementLook("intro-photo-beside-text", "intro", "Small photo beside the text", "media-copy", ["imagePosition", "imageShape"], { whenMissing: [{
20062
+ fact: "photo",
20063
+ look: id$1("intro-statement-beside-text")
20064
+ }] }),
20065
+ defineArrangementLook("media-text-photo-beside-text", "media-text", "Photo beside the text", "default", ["imagePosition", "imageShape"]),
20066
+ defineArrangementLook("newsletter-signup-one-row", "newsletter-signup", "Signup in one row", "inline", [], {
20067
+ slotRoles: { panel: "card" },
20068
+ styleFallback: [id$1("newsletter-signup-text-beside")]
20069
+ }),
20070
+ defineArrangementLook("newsletter-signup-text-beside", "newsletter-signup", "Text beside the signup", "editorial-split", [], {
20071
+ slotRoles: { panel: "card" },
20072
+ styleFallback: [id$1("newsletter-signup-in-arch")]
20073
+ }),
20074
+ defineArrangementLook("form-below-introduction", "form", "Form below its introduction", "default", [], {
20075
+ slotRoles: { panel: "card" },
20076
+ styleFallback: [id$1("form-beside-introduction-arched-panel")]
20077
+ }),
20078
+ defineCardListLook("card-list-wide-slides", "Wide cards, one at a time", "slides", [
20079
+ "media",
20080
+ "title",
20081
+ "text",
20082
+ "action"
20083
+ ], ["showPhotos"], {
20084
+ itemRoles: { items: "card" },
20085
+ slotRoles: { date: "highlight" },
20086
+ knobDefaults: {
20087
+ actionStyle: "button",
20088
+ dates: "summary"
20089
+ },
20090
+ styleFallback: [id$1("card-list-plates"), id$1("feature-cards-cards")]
20091
+ }),
20092
+ defineCardListLook("card-list-scroll-row", "A row of cards you can scroll", "track", [
20093
+ "media",
20094
+ "title",
20095
+ "text",
20096
+ "action"
20097
+ ], ["showPhotos"], {
20098
+ itemRoles: { items: "card" },
20099
+ slotRoles: { date: "highlight" },
20100
+ knobDefaults: {
20101
+ actionStyle: "button",
20102
+ dates: "summary"
20103
+ },
20104
+ styleFallback: [id$1("feature-cards-cards")]
19918
20105
  })
19919
20106
  ];
19920
20107
  //#endregion
@@ -20577,6 +20764,9 @@ const arrangementSlotNames = [
20577
20764
  "social",
20578
20765
  "base",
20579
20766
  "section",
20767
+ "background",
20768
+ "schedule-section",
20769
+ "shop-section",
20580
20770
  "stack",
20581
20771
  "inline",
20582
20772
  "grid",
@@ -21896,6 +22086,36 @@ const groundedSerifTypography = {
21896
22086
  },
21897
22087
  scale: "balanced"
21898
22088
  };
22089
+ /** Folio keeps the practitioner pairing, with a larger serif and working sans names. */
22090
+ const folioTypography = {
22091
+ ...groundedSerifTypography,
22092
+ body: {
22093
+ ...groundedSerifTypography.body,
22094
+ family: "Open Sans, system-ui, sans-serif",
22095
+ size: "lg"
22096
+ },
22097
+ smallHeading: {
22098
+ family: "Open Sans, system-ui, sans-serif",
22099
+ weight: "semibold"
22100
+ },
22101
+ headings: {
22102
+ ...groundedSerifTypography.headings,
22103
+ h1: {
22104
+ ...groundedSerifTypography.headings.h1,
22105
+ lineHeight: "tight",
22106
+ letterSpacing: "tight"
22107
+ },
22108
+ h2: {
22109
+ ...groundedSerifTypography.headings.h2,
22110
+ lineHeight: "tight",
22111
+ letterSpacing: "tight"
22112
+ },
22113
+ h3: {
22114
+ ...groundedSerifTypography.headings.h3,
22115
+ lineHeight: "tight"
22116
+ }
22117
+ }
22118
+ };
21899
22119
  const kirtanOrnateTypography = {
21900
22120
  body: {
21901
22121
  family: "Jost, system-ui, sans-serif",
@@ -22687,7 +22907,8 @@ const curatedSiteStyleIdValues = [
22687
22907
  "site-style:grounded-practice",
22688
22908
  "site-style:poster",
22689
22909
  "site-style:lantern",
22690
- "site-style:measure"
22910
+ "site-style:measure",
22911
+ "site-style:folio"
22691
22912
  ];
22692
22913
  const quietBudget = {
22693
22914
  accentDensity: "low",
@@ -23016,6 +23237,30 @@ const headerCurationBySiteStyle = {
23016
23237
  "fine-line"
23017
23238
  ]
23018
23239
  }]),
23240
+ "site-style:folio": defineHeaderCuration([
23241
+ {
23242
+ layoutId: "floating",
23243
+ styleIds: ["minimal-surface", "glass"]
23244
+ },
23245
+ {
23246
+ layoutId: "classic",
23247
+ styleIds: [
23248
+ "minimal",
23249
+ "serif-line",
23250
+ "fine-line",
23251
+ "soft-bar"
23252
+ ]
23253
+ },
23254
+ {
23255
+ layoutId: "centered",
23256
+ styleIds: [
23257
+ "serif-line",
23258
+ "fine-line",
23259
+ "minimal",
23260
+ "soft-bar"
23261
+ ]
23262
+ }
23263
+ ]),
23019
23264
  "site-style:measure": defineHeaderCuration([{
23020
23265
  layoutId: "classic",
23021
23266
  styleIds: ["fine-line", "minimal"]
@@ -23045,6 +23290,7 @@ function defineCuratedSiteStyle(input) {
23045
23290
  recommendedAppearancePresetIds
23046
23291
  },
23047
23292
  headerCuration: headerCurationBySiteStyle[input.id],
23293
+ headerStyleRecipes: input.headerStyleRecipes,
23048
23294
  footerLookRecipes: input.footerLookRecipes,
23049
23295
  recommendedFooterLookIds: (input.recommendedFooterLookIds ?? []).map(asFooterLookId),
23050
23296
  buttonStyleChoices: input.buttonStyleChoices,
@@ -23078,6 +23324,233 @@ function paletteRecommendation(authoringKey, note) {
23078
23324
  const id = asAppearancePresetId;
23079
23325
  const quieterOrStandard = { titleSize: ["quiet", "auto"] };
23080
23326
  /** Fulcrum: cards are white sheets, the statement is the brand band, stickers are sheets too. */
23327
+ const folioRoles = {
23328
+ card: "sheet",
23329
+ statement: {
23330
+ default: "band",
23331
+ band: "sheet"
23332
+ },
23333
+ highlight: "band"
23334
+ };
23335
+ const folioLinks = { link: "primary" };
23336
+ const folioLooks = {
23337
+ kind: "offers",
23338
+ skin: "folio",
23339
+ skinTokens: {
23340
+ radius: "10px",
23341
+ rule: "1px",
23342
+ "mark-length": "44px",
23343
+ "mark-weight": "2px",
23344
+ gutter: "32px",
23345
+ "copy-gap": "1.25rem",
23346
+ "stack-gap": "2.5rem"
23347
+ },
23348
+ fontLoading: {
23349
+ extraHeadingFontWeights: [600],
23350
+ italicHeadingFontWeights: [500]
23351
+ },
23352
+ surfaces: {
23353
+ base: {
23354
+ kind: "token",
23355
+ token: "background",
23356
+ foreground: folioLinks
23357
+ },
23358
+ sheet: {
23359
+ kind: "token",
23360
+ token: "surface",
23361
+ roleOnly: true,
23362
+ foreground: folioLinks
23363
+ },
23364
+ band: {
23365
+ kind: "token",
23366
+ token: "muted",
23367
+ foreground: folioLinks
23368
+ },
23369
+ brand: {
23370
+ kind: "token",
23371
+ token: "primary",
23372
+ foreground: folioLinks
23373
+ },
23374
+ deep: {
23375
+ kind: "token",
23376
+ token: "primary-800",
23377
+ foreground: folioLinks
23378
+ }
23379
+ },
23380
+ rhythm: {
23381
+ "flow:quiet": [
23382
+ "base",
23383
+ "base",
23384
+ "band",
23385
+ "base",
23386
+ "band",
23387
+ "base"
23388
+ ],
23389
+ "flow:balanced": [
23390
+ "base",
23391
+ "band",
23392
+ "base",
23393
+ "deep",
23394
+ "base",
23395
+ "band"
23396
+ ],
23397
+ "flow:expressive": [
23398
+ "base",
23399
+ "band",
23400
+ "deep",
23401
+ "base",
23402
+ "band",
23403
+ "brand"
23404
+ ]
23405
+ },
23406
+ offers: [
23407
+ {
23408
+ id: id("hero-photo-beside-text"),
23409
+ treatment: "hero-framed",
23410
+ knobValues: quieterOrStandard,
23411
+ roleMap: folioRoles
23412
+ },
23413
+ {
23414
+ id: id("hero-photo-behind-text"),
23415
+ treatment: "hero-panel",
23416
+ knobValues: quieterOrStandard,
23417
+ roleMap: folioRoles
23418
+ },
23419
+ {
23420
+ id: id("hero-page-head"),
23421
+ treatment: "hero-ruled",
23422
+ knobValues: quieterOrStandard,
23423
+ roleMap: folioRoles
23424
+ },
23425
+ {
23426
+ id: id("intro-photo-beside-text"),
23427
+ treatment: "intro-keyline",
23428
+ roleMap: folioRoles
23429
+ },
23430
+ {
23431
+ id: id("intro-statement-beside-text"),
23432
+ treatment: "intro-ruled-split",
23433
+ roleMap: folioRoles
23434
+ },
23435
+ {
23436
+ id: id("media-text-photo-beside-text"),
23437
+ treatment: "media-mount",
23438
+ roleMap: folioRoles
23439
+ },
23440
+ {
23441
+ id: id("media-text-circle-beside-text"),
23442
+ treatment: "media-circle",
23443
+ roleMap: folioRoles
23444
+ },
23445
+ {
23446
+ id: id("feature-cards-cards"),
23447
+ treatment: "cards-sheet",
23448
+ roleMap: folioRoles
23449
+ },
23450
+ {
23451
+ id: id("feature-cards-open-columns"),
23452
+ treatment: "cards-open",
23453
+ roleMap: folioRoles
23454
+ },
23455
+ {
23456
+ id: id("feature-cards-index"),
23457
+ treatment: "cards-register",
23458
+ roleMap: folioRoles
23459
+ },
23460
+ {
23461
+ id: id("body-text-reading-column"),
23462
+ treatment: "body-reading",
23463
+ roleMap: folioRoles
23464
+ },
23465
+ {
23466
+ id: id("event-calendar-ruled-rows"),
23467
+ treatment: "calendar-card",
23468
+ itemRoles: { container: "card" },
23469
+ surfaceTints: { date: {
23470
+ source: "text",
23471
+ opacity: 8
23472
+ } },
23473
+ roleMap: folioRoles
23474
+ },
23475
+ {
23476
+ id: id("event-calendar-session-cards"),
23477
+ treatment: "calendar-sheets",
23478
+ roleMap: folioRoles
23479
+ },
23480
+ {
23481
+ id: id("event-calendar-next-three"),
23482
+ treatment: "calendar-compact",
23483
+ roleMap: folioRoles
23484
+ },
23485
+ {
23486
+ id: id("event-calendar-month-grid"),
23487
+ treatment: "calendar-month",
23488
+ roleMap: folioRoles
23489
+ },
23490
+ {
23491
+ id: id("event-details-panel"),
23492
+ treatment: "details-sheet",
23493
+ roleMap: {
23494
+ ...folioRoles,
23495
+ card: "section"
23496
+ }
23497
+ },
23498
+ {
23499
+ id: id("event-details-header"),
23500
+ treatment: "details-ruled",
23501
+ roleMap: folioRoles
23502
+ },
23503
+ {
23504
+ id: id("newsletter-signup-text-beside"),
23505
+ treatment: "signup-sheet",
23506
+ roleMap: {
23507
+ ...folioRoles,
23508
+ card: "section"
23509
+ }
23510
+ },
23511
+ {
23512
+ id: id("newsletter-signup-one-row"),
23513
+ treatment: "signup-row",
23514
+ roleMap: {
23515
+ ...folioRoles,
23516
+ card: "section"
23517
+ }
23518
+ },
23519
+ {
23520
+ id: id("form-below-introduction"),
23521
+ treatment: "form-sheet-below",
23522
+ roleMap: {
23523
+ ...folioRoles,
23524
+ card: "section"
23525
+ }
23526
+ },
23527
+ {
23528
+ id: id("testimonials-lead-quote"),
23529
+ treatment: "quote-lead",
23530
+ roleMap: folioRoles
23531
+ },
23532
+ {
23533
+ id: id("testimonials-quote-cards"),
23534
+ treatment: "quote-sheets",
23535
+ roleMap: folioRoles
23536
+ },
23537
+ {
23538
+ id: id("card-list-accent-edged-cards"),
23539
+ treatment: "cards-accent-edged",
23540
+ roleMap: folioRoles
23541
+ },
23542
+ {
23543
+ id: id("card-list-wide-slides"),
23544
+ treatment: "carousel-wide-sheet",
23545
+ roleMap: folioRoles
23546
+ },
23547
+ {
23548
+ id: id("card-list-scroll-row"),
23549
+ treatment: "carousel-row-sheet",
23550
+ roleMap: folioRoles
23551
+ }
23552
+ ]
23553
+ };
23081
23554
  const fulcrumRoles = {
23082
23555
  card: "sheet",
23083
23556
  statement: {
@@ -23284,6 +23757,55 @@ const fulcrumLooks = {
23284
23757
  id: id("testimonials-scroll-row"),
23285
23758
  treatment: "cards",
23286
23759
  roleMap: fulcrumRoles
23760
+ },
23761
+ {
23762
+ id: id("intro-photo-beside-text"),
23763
+ treatment: "intro-plate",
23764
+ roleMap: fulcrumRoles
23765
+ },
23766
+ {
23767
+ id: id("intro-statement-beside-text"),
23768
+ treatment: "lintel",
23769
+ roleMap: fulcrumRoles
23770
+ },
23771
+ {
23772
+ id: id("media-text-photo-beside-text"),
23773
+ treatment: "beside-plate",
23774
+ roleMap: fulcrumRoles
23775
+ },
23776
+ {
23777
+ id: id("newsletter-signup-one-row"),
23778
+ treatment: "signup-strip",
23779
+ roleMap: {
23780
+ ...fulcrumRoles,
23781
+ card: "section"
23782
+ }
23783
+ },
23784
+ {
23785
+ id: id("newsletter-signup-text-beside"),
23786
+ treatment: "signup-beside-panel",
23787
+ roleMap: fulcrumRoles
23788
+ },
23789
+ {
23790
+ id: id("form-below-introduction"),
23791
+ treatment: "form-sheet",
23792
+ roleMap: fulcrumRoles
23793
+ },
23794
+ {
23795
+ id: id("card-list-wide-slides"),
23796
+ treatment: "carousel-wide-plate",
23797
+ roleMap: fulcrumRoles,
23798
+ knobValues: { actionStyle: ["link"] }
23799
+ },
23800
+ {
23801
+ id: id("card-list-scroll-row"),
23802
+ treatment: "carousel-row-cards",
23803
+ roleMap: fulcrumRoles
23804
+ },
23805
+ {
23806
+ id: id("card-list-accent-edged-cards"),
23807
+ treatment: "cards-accent-edged",
23808
+ roleMap: fulcrumRoles
23287
23809
  }
23288
23810
  ]
23289
23811
  };
@@ -23415,6 +23937,49 @@ const posterOffers = [
23415
23937
  id: id("testimonials-scroll-row"),
23416
23938
  treatment: "punchy",
23417
23939
  roleMap: posterRoles
23940
+ },
23941
+ {
23942
+ id: id("intro-photo-beside-text"),
23943
+ treatment: "ink-edge",
23944
+ roleMap: posterRoles
23945
+ },
23946
+ {
23947
+ id: id("intro-statement-beside-text"),
23948
+ treatment: "headline",
23949
+ roleMap: posterRoles
23950
+ },
23951
+ {
23952
+ id: id("media-text-photo-beside-text"),
23953
+ treatment: "beside-slab",
23954
+ roleMap: posterRoles
23955
+ },
23956
+ {
23957
+ id: id("newsletter-signup-one-row"),
23958
+ treatment: "signup-ticket",
23959
+ roleMap: posterRoles
23960
+ },
23961
+ {
23962
+ id: id("newsletter-signup-text-beside"),
23963
+ treatment: "signup-block",
23964
+ roleMap: {
23965
+ ...posterRoles,
23966
+ card: "pop"
23967
+ }
23968
+ },
23969
+ {
23970
+ id: id("form-below-introduction"),
23971
+ treatment: "form-heavy",
23972
+ roleMap: posterRoles
23973
+ },
23974
+ {
23975
+ id: id("card-list-wide-slides"),
23976
+ treatment: "carousel-wide-stamp",
23977
+ roleMap: posterRoles
23978
+ },
23979
+ {
23980
+ id: id("card-list-scroll-row"),
23981
+ treatment: "carousel-row-punchy",
23982
+ roleMap: posterRoles
23418
23983
  }
23419
23984
  ];
23420
23985
  const posterLooks = {
@@ -23759,6 +24324,48 @@ const lanternLooks = {
23759
24324
  treatment: "quote-arch",
23760
24325
  addKnobs: ["archFrame"],
23761
24326
  roleMap: lanternRoles
24327
+ },
24328
+ {
24329
+ id: id("testimonials-scroll-row"),
24330
+ treatment: "quote-row-cards",
24331
+ addKnobs: ["archFrame"],
24332
+ roleMap: lanternRoles
24333
+ },
24334
+ {
24335
+ id: id("intro-photo-beside-text"),
24336
+ treatment: "ringed",
24337
+ roleMap: lanternRoles
24338
+ },
24339
+ {
24340
+ id: id("intro-statement-beside-text"),
24341
+ treatment: "divided",
24342
+ roleMap: lanternRoles
24343
+ },
24344
+ {
24345
+ id: id("media-text-photo-beside-text"),
24346
+ treatment: "outlined",
24347
+ roleMap: lanternRoles
24348
+ },
24349
+ {
24350
+ id: id("newsletter-signup-text-beside"),
24351
+ treatment: "signup-beside-arch",
24352
+ addKnobs: ["archFrame"],
24353
+ roleMap: lanternRoles
24354
+ },
24355
+ {
24356
+ id: id("form-below-introduction"),
24357
+ treatment: "form-arch-below",
24358
+ roleMap: lanternRoles
24359
+ },
24360
+ {
24361
+ id: id("card-list-wide-slides"),
24362
+ treatment: "carousel-wide-arch",
24363
+ roleMap: lanternRoles
24364
+ },
24365
+ {
24366
+ id: id("card-list-scroll-row"),
24367
+ treatment: "carousel-row-cards",
24368
+ roleMap: lanternRoles
23762
24369
  }
23763
24370
  ]
23764
24371
  };
@@ -23947,6 +24554,51 @@ const measureLooks = {
23947
24554
  id: id("testimonials-one-at-a-time"),
23948
24555
  treatment: "counter",
23949
24556
  roleMap: measureRoles
24557
+ },
24558
+ {
24559
+ id: id("testimonials-scroll-row"),
24560
+ treatment: "quote-row-hairline",
24561
+ roleMap: measureRuledPanelRoles
24562
+ },
24563
+ {
24564
+ id: id("intro-photo-beside-text"),
24565
+ treatment: "rail-photo",
24566
+ roleMap: measureRoles
24567
+ },
24568
+ {
24569
+ id: id("intro-statement-beside-text"),
24570
+ treatment: "rule-split",
24571
+ roleMap: measureRoles
24572
+ },
24573
+ {
24574
+ id: id("media-text-photo-beside-text"),
24575
+ treatment: "beside-grid",
24576
+ roleMap: measureRoles
24577
+ },
24578
+ {
24579
+ id: id("newsletter-signup-one-row"),
24580
+ treatment: "signup-rail-row",
24581
+ roleMap: measureRuledPanelRoles
24582
+ },
24583
+ {
24584
+ id: id("newsletter-signup-text-beside"),
24585
+ treatment: "signup-split",
24586
+ roleMap: measureRoles
24587
+ },
24588
+ {
24589
+ id: id("form-below-introduction"),
24590
+ treatment: "form-rail",
24591
+ roleMap: measureRuledPanelRoles
24592
+ },
24593
+ {
24594
+ id: id("card-list-wide-slides"),
24595
+ treatment: "carousel-wide-sheet",
24596
+ roleMap: measureRoles
24597
+ },
24598
+ {
24599
+ id: id("card-list-scroll-row"),
24600
+ treatment: "carousel-row-sheets",
24601
+ roleMap: measureRoles
23950
24602
  }
23951
24603
  ]
23952
24604
  };
@@ -24410,7 +25062,10 @@ const curatedSiteStyles = [
24410
25062
  headingDecoration: noHeadingDecoration,
24411
25063
  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.",
24412
25064
  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.",
24413
- offering: { kind: "lab" },
25065
+ offering: {
25066
+ kind: "public",
25067
+ generation: { kind: "explicit_only" }
25068
+ },
24414
25069
  tokenRecipes: {
24415
25070
  palette: "brand-led",
24416
25071
  contrast: "standard",
@@ -24545,7 +25200,10 @@ const curatedSiteStyles = [
24545
25200
  headingDecoration: noHeadingDecoration,
24546
25201
  description: "Loud but controlled: huge condensed type, flat colour blocks, hard offset shadows on anything you can press, and one sticker for the news.",
24547
25202
  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.",
24548
- offering: { kind: "lab" },
25203
+ offering: {
25204
+ kind: "public",
25205
+ generation: { kind: "explicit_only" }
25206
+ },
24549
25207
  tokenRecipes: {
24550
25208
  palette: "brand-led",
24551
25209
  contrast: "strong",
@@ -24597,8 +25255,8 @@ const curatedSiteStyles = [
24597
25255
  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.",
24598
25256
  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.",
24599
25257
  offering: {
24600
- kind: "client",
24601
- siteSlugs: ["kirtan-lucy"]
25258
+ kind: "public",
25259
+ generation: { kind: "explicit_only" }
24602
25260
  },
24603
25261
  tokenRecipes: {
24604
25262
  palette: "brand-led",
@@ -24656,7 +25314,10 @@ const curatedSiteStyles = [
24656
25314
  headingDecoration: noHeadingDecoration,
24657
25315
  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.",
24658
25316
  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.",
24659
- offering: { kind: "lab" },
25317
+ offering: {
25318
+ kind: "public",
25319
+ generation: { kind: "explicit_only" }
25320
+ },
24660
25321
  tokenRecipes: {
24661
25322
  palette: "brand-led",
24662
25323
  contrast: "strong",
@@ -24685,6 +25346,104 @@ const curatedSiteStyles = [
24685
25346
  paletteRecommendation("measure-plaster"),
24686
25347
  paletteRecommendation("measure-night")
24687
25348
  ]
25349
+ }),
25350
+ defineCuratedSiteStyle({
25351
+ id: "site-style:folio",
25352
+ name: "Folio",
25353
+ offering: {
25354
+ kind: "public",
25355
+ generation: { kind: "explicit_only" }
25356
+ },
25357
+ 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.",
25358
+ generationBrief: "Use restrained serif headings, clear sans-serif body copy, natural photography, practical calls to action and concrete class and workshop details.",
25359
+ headingDecoration: noHeadingDecoration,
25360
+ tokenRecipes: {
25361
+ palette: "warm-neutral",
25362
+ contrast: "standard",
25363
+ radius: "soft",
25364
+ shadow: "none",
25365
+ typography: "classic-serif",
25366
+ spacing: "airy",
25367
+ motion: "subtle"
25368
+ },
25369
+ compositionBudget: accentLedQuietBudget,
25370
+ typography: folioTypography,
25371
+ heroTypography: groundedSerifHeroTypography,
25372
+ looks: folioLooks,
25373
+ contentTemplateDefaults: { event: "event-header" },
25374
+ themeOverrides: {
25375
+ accordions: editorialDividedAccordionSystem,
25376
+ testimonialQuote: serifDisplayQuote
25377
+ },
25378
+ headerStyleRecipes: { "minimal-surface": {
25379
+ tone: "neutral",
25380
+ background: { kind: "transparent" },
25381
+ nav: {
25382
+ kind: "minimal",
25383
+ hoverColorToken: "primary"
25384
+ },
25385
+ navWeight: "medium",
25386
+ navLinkWeight: "medium",
25387
+ navTypography: "plain",
25388
+ border: "none",
25389
+ shadow: { kind: "absent" },
25390
+ frame: {
25391
+ kind: "container",
25392
+ rounded: "lg",
25393
+ padding: "sm",
25394
+ tint: "background",
25395
+ opacity: 1,
25396
+ shadow: false,
25397
+ mobileSheet: "inset"
25398
+ },
25399
+ cta: { treatment: "default" },
25400
+ openingPlacement: "photo-behind-text"
25401
+ } },
25402
+ footerLookRecipes: { "footer-links-row": {
25403
+ arrangement: "simple",
25404
+ ground: {
25405
+ kind: "token",
25406
+ token: "surface"
25407
+ },
25408
+ nav: {
25409
+ weight: "regular",
25410
+ colorToken: "text",
25411
+ hoverColorToken: "primary",
25412
+ typography: "body"
25413
+ },
25414
+ legal: {
25415
+ kind: "separate",
25416
+ bar: {
25417
+ fullBleed: false,
25418
+ background: {
25419
+ kind: "token",
25420
+ token: "surface"
25421
+ },
25422
+ textColor: "text",
25423
+ textAlign: "left",
25424
+ paddingY: "tight",
25425
+ paddingX: "none",
25426
+ borderTop: { width: "none" }
25427
+ }
25428
+ },
25429
+ brandAlign: "start",
25430
+ brandLogoSize: "md"
25431
+ } },
25432
+ recommendedFooterLookIds: ["footer-links-row"],
25433
+ buttonStyleChoices: [
25434
+ buttonChoice("quiet-arrow", void 0, {
25435
+ secondaryTreatment: "solid-accent",
25436
+ size: "comfortable",
25437
+ hoverTreatment: "deep-and-sheet"
25438
+ }),
25439
+ buttonChoice("flat-ink"),
25440
+ buttonChoice("editorial-link")
25441
+ ],
25442
+ paletteRecommendations: [
25443
+ paletteRecommendation("warm-neutral-forest"),
25444
+ paletteRecommendation("soft-natural-sage"),
25445
+ paletteRecommendation("soft-natural-stone")
25446
+ ]
24688
25447
  })
24689
25448
  ];
24690
25449
  new Map(curatedSiteStyles.map((style) => [style.id, style]));
@@ -25193,6 +25952,27 @@ z.object({
25193
25952
  motion: z.enum(themeTokenRecipeOptions.motion)
25194
25953
  });
25195
25954
  //#endregion
25955
+ //#region ../theme-core/src/responsiveMode.ts
25956
+ const THEME_RESPONSIVE_MODE_ATTR = "data-rb-responsive-mode";
25957
+ function escapeRegExp(value) {
25958
+ return value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
25959
+ }
25960
+ new RegExp(buildResponsiveScopeRulePatternSource(), "g");
25961
+ new RegExp(buildResponsiveScopeRulePatternSource(), "y");
25962
+ function buildResponsiveScopeRulePatternSource() {
25963
+ return [
25964
+ "@scope",
25965
+ "\\(\\[",
25966
+ escapeRegExp(THEME_RESPONSIVE_MODE_ATTR),
25967
+ "=\"(?:viewport|container)\"\\]\\)",
25968
+ "to",
25969
+ "\\((?::scope )?\\[",
25970
+ escapeRegExp(THEME_RESPONSIVE_MODE_ATTR),
25971
+ "\\]\\)",
25972
+ "\\{"
25973
+ ].join("\\s*");
25974
+ }
25975
+ //#endregion
25196
25976
  //#region ../theme-core/src/siteChromeOverlayClearance.ts
25197
25977
  const SITE_CHROME_VISIBLE_HEADER_ATTR = "data-site-chrome-visible-header";
25198
25978
  //#endregion
@@ -27342,10 +28122,10 @@ function normalizeFieldValue(plan, value, ctx) {
27342
28122
  case "string": return acceptsOptionalBlankAsMissing(plan, value) ? void 0 : value;
27343
28123
  case "group": return normalizeObjectChildren(selectedGroupChildPlans(plan, value), value, childValidationContext(plan, ctx));
27344
28124
  case "repeater": return normalizeRepeaterItems(plan, value, ctx);
28125
+ case "link":
27345
28126
  case "boolean":
27346
28127
  case "richText":
27347
28128
  case "inlineText":
27348
- case "link":
27349
28129
  case "select":
27350
28130
  case "passthrough": return value;
27351
28131
  case "media": return value;
@@ -27397,12 +28177,12 @@ function validateNormalizedFieldValue(plan, value, ctx) {
27397
28177
  if (value === null && (ctx.allowNull || acceptsOptionalNullValue(plan))) return [];
27398
28178
  if (isMissingForPlan(plan, value)) return shouldRequireValue(plan, value, ctx) ? [requiredIssue(plan, value)] : [];
27399
28179
  switch (plan.kind) {
27400
- case "string": return validateStringPlan(plan, value);
28180
+ case "string": return validateStringPlan(plan, value, ctx);
27401
28181
  case "number": return validateNumberPlan(plan, value);
27402
28182
  case "boolean": return typeof value === "boolean" ? [] : [issue(plan, "wrongType", { expected: "a true/false value" })];
27403
28183
  case "select": return validateSelectPlan(plan, value);
27404
28184
  case "richText": return isValidRichTextDoc(value) ? [] : [issue(plan, "invalidRichText")];
27405
- case "inlineText": return validateInlineTextPlan(plan, value);
28185
+ case "inlineText": return validateInlineTextPlan(plan, value, ctx);
27406
28186
  case "media": return validateMediaPlan(plan, value, ctx);
27407
28187
  case "link": return linkSchema.safeParse(value).success ? [] : [issue(plan, "invalidLink")];
27408
28188
  case "repeater": return validateRepeaterPlan(plan, value, ctx);
@@ -27435,32 +28215,56 @@ function isMissingForPlan(plan, value) {
27435
28215
  if (Array.isArray(value) && value.length === 0) return true;
27436
28216
  return false;
27437
28217
  }
27438
- function validateStringPlan(plan, value) {
27439
- if (plan.constraints.some((constraint) => constraint.kind === "blockIconValue")) return plan.constraints.flatMap((constraint) => validateStringConstraint(plan, constraint, value));
28218
+ function validateStringPlan(plan, value, ctx) {
28219
+ if (plan.constraints.some((constraint) => constraint.kind === "blockIconValue")) return plan.constraints.flatMap((constraint) => validateStringConstraint(plan, constraint, value, ctx));
27440
28220
  if (typeof value !== "string") return [issue(plan, "wrongType", { expected: "text" })];
27441
- return plan.constraints.flatMap((constraint) => validateStringConstraint(plan, constraint, value));
28221
+ return plan.constraints.flatMap((constraint) => validateStringConstraint(plan, constraint, value, ctx));
27442
28222
  }
27443
- function validateStringConstraint(plan, constraint, value) {
27444
- switch (constraint.kind) {
27445
- case "required": return [];
27446
- case "textType":
27447
- case "referenceText": return typeof value === "string" ? [] : [issue(plan, "wrongType", { expected: "text" })];
27448
- case "blockIconValue": return isValidIconPickerValue(value) ? [] : [issue(plan, "wrongType", { expected: "text or icon" })];
27449
- case "maxLength": return typeof value === "string" && value.length > constraint.maximum ? [issue(plan, "tooLong", { maximum: constraint.maximum })] : [];
27450
- case "emailFormat": return typeof value === "string" && isCanonicalEmailValue(value) ? [] : [issue(plan, "invalidEmail")];
27451
- case "phoneFormat": return typeof value === "string" && isCanonicalPhoneValue(value) ? [] : [issue(plan, "invalidPhone")];
27452
- case "patternFormat": {
27453
- if (typeof value !== "string") return [issue(plan, "wrongType", { expected: "text" })];
27454
- const re = compilePattern(constraint.pattern);
27455
- return re && !re.test(value) ? [issue(plan, "invalidPattern")] : [];
27456
- }
27457
- case "urlFormat": return typeof value === "string" && isCanonicalUrlValue(value, { allowRelative: constraint.allowRelative }) ? [] : [issue(plan, "invalidUrl")];
27458
- case "dateFormat": return typeof value === "string" && isValidDateString(value) ? [] : [issue(plan, "invalidDate")];
27459
- case "timeFormat": return typeof value === "string" && isValidTimeString(value) ? [] : [issue(plan, "invalidTime")];
27460
- case "datetimeFormat": return typeof value === "string" && isValidDateTimeInstantString(value) ? [] : [issue(plan, "invalidDateTime")];
27461
- case "slugFormat": return typeof value === "string" && SLUG_PATTERN.test(value) ? [] : [issue(plan, "invalidSlug")];
27462
- default: return assertNever$1(constraint);
28223
+ function validateStringConstraint(plan, constraint, value, ctx) {
28224
+ if (constraint.kind === "required") return [];
28225
+ if (constraint.kind === "blockIconValue") return isValidIconPickerValue(value) ? [] : [issue(plan, "wrongType", { expected: "text or icon" })];
28226
+ if (typeof value !== "string") return [issue(plan, "wrongType", { expected: "text" })];
28227
+ if (constraint.kind === "textType" || constraint.kind === "referenceText") return [];
28228
+ return constraint.kind === "maxLength" ? validateAuthoredTextLength(plan, value, constraint.maximum, ctx) : validateStringFormat(plan, constraint, value);
28229
+ }
28230
+ const SIMPLE_STRING_FORMATS = {
28231
+ emailFormat: {
28232
+ accepts: isCanonicalEmailValue,
28233
+ failure: "invalidEmail"
28234
+ },
28235
+ phoneFormat: {
28236
+ accepts: isCanonicalPhoneValue,
28237
+ failure: "invalidPhone"
28238
+ },
28239
+ dateFormat: {
28240
+ accepts: isValidDateString,
28241
+ failure: "invalidDate"
28242
+ },
28243
+ timeFormat: {
28244
+ accepts: isValidTimeString,
28245
+ failure: "invalidTime"
28246
+ },
28247
+ datetimeFormat: {
28248
+ accepts: isValidDateTimeInstantString,
28249
+ failure: "invalidDateTime"
28250
+ },
28251
+ slugFormat: {
28252
+ accepts: (value) => SLUG_PATTERN.test(value),
28253
+ failure: "invalidSlug"
28254
+ }
28255
+ };
28256
+ function validateStringFormat(plan, constraint, value) {
28257
+ if (constraint.kind === "patternFormat") {
28258
+ const pattern = compilePattern(constraint.pattern);
28259
+ return pattern && !pattern.test(value) ? [issue(plan, "invalidPattern")] : [];
27463
28260
  }
28261
+ if (constraint.kind === "urlFormat") return isCanonicalUrlValue(value, { allowRelative: constraint.allowRelative }) ? [] : [issue(plan, "invalidUrl")];
28262
+ const format = SIMPLE_STRING_FORMATS[constraint.kind];
28263
+ return format.accepts(value) ? [] : [issue(plan, format.failure)];
28264
+ }
28265
+ /** Authoring limits govern stored block copy; resolved entry text has its own owner. */
28266
+ function validateAuthoredTextLength(plan, text, maximum, ctx) {
28267
+ return ctx.mode !== "render" && maximum !== void 0 && text.length > maximum ? [issue(plan, "tooLong", { maximum })] : [];
27464
28268
  }
27465
28269
  function isValidIconPickerValue(value) {
27466
28270
  if (typeof value === "string") return true;
@@ -27597,13 +28401,10 @@ function rebaseFieldPlanPath(plan, fromPrefix, toPrefix) {
27597
28401
  default: return assertNever$1(plan);
27598
28402
  }
27599
28403
  }
27600
- function validateInlineTextPlan(plan, value) {
28404
+ function validateInlineTextPlan(plan, value, ctx) {
27601
28405
  const parsed = parseInlineTextFromUnknown(value);
27602
28406
  if (!parsed.ok) return [issue(plan, "invalidInlineText")];
27603
- const text = inlineTextToPlainText(parsed.value);
27604
- const lengthIssue = plan.constraints.find((constraint) => constraint.kind === "maxPlainTextLength");
27605
- if (lengthIssue && text.length > lengthIssue.maximum) return [issue(plan, "tooLong", { maximum: lengthIssue.maximum })];
27606
- return [];
28407
+ return validateAuthoredTextLength(plan, inlineTextToPlainText(parsed.value), plan.constraints.find((constraint) => constraint.kind === "maxPlainTextLength")?.maximum, ctx);
27607
28408
  }
27608
28409
  function rebaseFieldPath(path, fromPrefix, toPrefix) {
27609
28410
  if (!startsWithFieldPath(path, fromPrefix)) throw new Error(`Cannot rebase field path ${formatFieldPath(path)} from ${formatFieldPath(fromPrefix)}`);
@@ -27853,14 +28654,23 @@ function preprocessEmptyValues(content) {
27853
28654
  * Compiles editor-facing manifest structure into the presentation-independent
27854
28655
  * validation contract used by every manifest-content trust transition.
27855
28656
  */
27856
- function compileManifestContentContract(manifestOrFields) {
28657
+ function compileManifestContentContract(manifestOrFields, options = {}) {
27857
28658
  const plans = derivePlansFromManifestOrFields(manifestOrFields);
27858
28659
  const strictOptions = { allowNull: false };
27859
28660
  const strictStoredSchema = deriveStrictContentZodFromPlans(plans);
27860
28661
  return Object.freeze({ [compiledManifestContentContract]: Object.freeze({
27861
28662
  plans,
27862
28663
  strictStoredSchema,
27863
- writeSchema: deriveNormalizedContentZodFromPlans(plans, strictOptions, normalizeManifestContentForWrite).transform((value) => canonicalizeObjectForWrite(plans, value)),
28664
+ writeSchema: deriveNormalizedContentZodFromPlans(plans, strictOptions, normalizeManifestContentForWrite).superRefine((value, ctx) => {
28665
+ if (options.unknownFields !== "reject") return;
28666
+ unknownManifestFieldPaths(plans, value).forEach((path) => {
28667
+ ctx.addIssue({
28668
+ code: "custom",
28669
+ path,
28670
+ message: `Unknown content field: ${path.join(".")}`
28671
+ });
28672
+ });
28673
+ }).transform((value) => canonicalizeObjectForWrite(plans, value)),
27864
28674
  draftSchema: deriveNormalizedContentZodFromPlans(plans, {
27865
28675
  allowNull: true,
27866
28676
  allowIncomplete: true,
@@ -27870,6 +28680,22 @@ function compileManifestContentContract(manifestOrFields) {
27870
28680
  findNonPortableMediaPaths: (content) => findNonPortableMediaPaths(plans, content)
27871
28681
  }) });
27872
28682
  }
28683
+ function unknownManifestFieldPaths(plans, value, parent = [], discriminator) {
28684
+ if (!isPlainRecord(value)) return [];
28685
+ const known = /* @__PURE__ */ new Set([...plans.map((plan) => plan.fieldId), ...discriminator ? [discriminator] : []]);
28686
+ return [...Object.keys(value).filter((key) => !known.has(key)).map((key) => [...parent, key]), ...plans.flatMap((plan) => nestedUnknownManifestFieldPaths(plan, value[plan.fieldId], [...parent, plan.fieldId]))];
28687
+ }
28688
+ function nestedUnknownManifestFieldPaths(plan, value, path) {
28689
+ if (plan.kind === "group") {
28690
+ if (plan.valueContract === "boxBackground") return [];
28691
+ const selection = plan.childSelection;
28692
+ return unknownManifestFieldPaths(allGroupChildPlans(plan), value, path, selection.kind === "discriminatedTabs" ? selection.activeTabField : void 0);
28693
+ }
28694
+ if (plan.kind !== "repeater" || !Array.isArray(value)) return [];
28695
+ return value.flatMap((item, index) => {
28696
+ 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);
28697
+ });
28698
+ }
27873
28699
  /**
27874
28700
  * Re-admits renderable content after a transport boundary has erased its
27875
28701
  * compile-time proof. Unlike write admission, this never canonicalizes or
@@ -28083,7 +28909,19 @@ function testimonialLoaderLimit(content) {
28083
28909
  //#endregion
28084
28910
  //#region ../blocks/src/system/node/fragments/lookSlot.ts
28085
28911
  /** Compiler-owned slots are absent for legacy Looks, preserving their HTML. */
28086
- const lookSlot = (name) => ({ "data-slot": { $bind: { from: `content._lookSlots.${name}` } } });
28912
+ const lookSlot = (name, source = "look") => source === "skin" ? { "data-slot": { $bind: {
28913
+ from: "theme.skin",
28914
+ transforms: [{
28915
+ id: "look.skinSlot",
28916
+ options: { slot: name }
28917
+ }]
28918
+ } } } : { "data-slot": { $bind: { from: `content._lookSlots.${name}` } } };
28919
+ /** Non-Look widgets expose section geometry only when a theme has a skin. */
28920
+ const lookSkinSlotTransform = {
28921
+ id: "look.skinSlot",
28922
+ kind: "string",
28923
+ run: (value, options) => typeof value === "string" && value.length > 0 ? arrangementSlotNames.find((slot) => slot === asPartialObject(options)?.slot) : void 0
28924
+ };
28087
28925
  const lookLeadSlotTransform = {
28088
28926
  id: "look.leadSlot",
28089
28927
  kind: "string",
@@ -28094,6 +28932,13 @@ const lookQuoteLimitTransform = {
28094
28932
  kind: "string",
28095
28933
  run: (value) => testimonialLoaderLimit(asPartialObject(value) ?? {})
28096
28934
  };
28935
+ /** Blank headings use the same non-empty region fallback as absent headings. */
28936
+ const lookCarouselRegionTransform = {
28937
+ schema: z.object({ fallback: z.string().trim().min(1) }),
28938
+ id: "look.carouselRegion",
28939
+ kind: "string",
28940
+ run: (value, options) => typeof value === "string" && value.trim() ? value.trim() : options?.fallback ?? "Carousel"
28941
+ };
28097
28942
  //#endregion
28098
28943
  //#region ../blocks/src/system/fields/imageLayout.ts
28099
28944
  function createImageColSizeField(options = {}) {
@@ -29032,7 +29877,10 @@ const stack = (props, children, ...mods) => el("stack", props, children, ...mods
29032
29877
  const inline = (props, children, ...mods) => el("inline", props, children, ...mods);
29033
29878
  const accordion = (props, children, ...mods) => el("accordion", props, children, ...mods);
29034
29879
  const accordionItem = (props, children, ...mods) => el("accordionItem", props, children, ...mods);
29035
- const carousel = (props, children, ...mods) => el("carousel", props, children, ...mods);
29880
+ const carousel = (props, children, ...mods) => el("carousel", {
29881
+ mode: "legacy",
29882
+ ...props
29883
+ }, children, ...mods);
29036
29884
  const text = (props, ...mods) => el("text", props, void 0, ...mods);
29037
29885
  const richText = (props, ...mods) => el("richText", props, void 0, ...mods);
29038
29886
  const icon = (props, ...mods) => el("icon", props, void 0, ...mods);
@@ -29166,7 +30014,7 @@ const BACKGROUND_FRAME_BASE_CLASS = "rb-background-frame rb-absolute rb-inset-0
29166
30014
  * )
29167
30015
  */
29168
30016
  function backgroundLayer(path, options = {}) {
29169
- 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;
30017
+ 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;
29170
30018
  const styleLayer = el("div", {
29171
30019
  className: styleClassName,
29172
30020
  style: { $bind: {
@@ -29179,7 +30027,8 @@ function backgroundLayer(path, options = {}) {
29179
30027
  });
29180
30028
  const imageLayer = createBackgroundImageNode(path, imageClassName, {
29181
30029
  loading: imageLoading,
29182
- fetchPriority: imageFetchPriority
30030
+ fetchPriority: imageFetchPriority,
30031
+ slot: imageSlot
29183
30032
  });
29184
30033
  const overlayLayer = createBackgroundOverlayNode(path, overlayClassName);
29185
30034
  return omitImageLayer ? [styleLayer, overlayLayer] : [
@@ -29197,7 +30046,7 @@ function backgroundLayer(path, options = {}) {
29197
30046
  * the decorative layer rather than changing the content root.
29198
30047
  */
29199
30048
  function backgroundFrame(path, options = {}) {
29200
- const { leadingNodes = [], ...layerOptions } = options;
30049
+ const { leadingNodes = [], frameSlot, ...layerOptions } = options;
29201
30050
  const framedLayerOptions = {
29202
30051
  ...layerOptions,
29203
30052
  styleClassName: layerOptions.styleClassName ?? "background-style rb-absolute rb-inset-0 rb-z-0 rb-h-full rb-w-full rb-pointer-events-none",
@@ -29205,6 +30054,7 @@ function backgroundFrame(path, options = {}) {
29205
30054
  overlayClassName: layerOptions.overlayClassName ?? "background-overlay rb-absolute rb-inset-0 rb-z-0 rb-h-full rb-w-full rb-pointer-events-none"
29206
30055
  };
29207
30056
  return el("div", {
30057
+ ...frameSlot ? lookSlot(frameSlot) : {},
29208
30058
  className: { $bind: {
29209
30059
  from: path,
29210
30060
  transforms: [{
@@ -29245,6 +30095,7 @@ function backgroundFrame(path, options = {}) {
29245
30095
  function createBackgroundImageNode(path, baseClassName = "rb-absolute rb-z-neg-10", options = {}) {
29246
30096
  const imagePath = `${path}.image`;
29247
30097
  return media({
30098
+ ...options.slot ? lookSlot(options.slot) : {},
29248
30099
  className: { $bind: {
29249
30100
  from: path,
29250
30101
  transforms: [{
@@ -29576,6 +30427,10 @@ const DEFAULT_SECTION_SPACING = "medium";
29576
30427
  function styledSection(config) {
29577
30428
  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;
29578
30429
  const renderedBackgroundNode = backgroundFrame(`${bindFrom}.background`, {
30430
+ ...config.backgroundLookSlots ? {
30431
+ frameSlot: "background",
30432
+ imageSlot: "photo"
30433
+ } : {},
29579
30434
  imageClassName,
29580
30435
  fallbackToken: background,
29581
30436
  omitImageLayer: !renderBackgroundImage,
@@ -29588,12 +30443,13 @@ function styledSection(config) {
29588
30443
  background,
29589
30444
  baseClass,
29590
30445
  spacing,
29591
- fullWidthPath
30446
+ fullWidthPath,
30447
+ skinSlot: config.skinSlot
29592
30448
  }), [renderedBackgroundNode, ...childrenArray]);
29593
30449
  }
29594
30450
  function sectionAppearanceProps(input) {
29595
30451
  return {
29596
- ...lookSlot("section"),
30452
+ ...input.skinSlot ? lookSlot(input.skinSlot, "skin") : lookSlot("section"),
29597
30453
  "data-arrangement": { $bind: { from: "content._lookHooks.data-arrangement" } },
29598
30454
  style: { $bind: {
29599
30455
  from: `${input.bindFrom}.background`,
@@ -30639,7 +31495,8 @@ const boxStylesTransforms = [
30639
31495
  id: "boxStyles.semanticGapValue",
30640
31496
  kind: "string",
30641
31497
  summary: "Map semantic gap value to CSS gap value for inline styles",
30642
- run: (value, options, _context) => {
31498
+ run: (value, options, context) => {
31499
+ if (options?.legacyOnly && asPartialObject(context.viewModel?.content)?._lookSlots !== void 0) return void 0;
30643
31500
  const fallback = options?.fallback ?? "medium";
30644
31501
  return GAP_VALUE_MAP[isSemanticSpacing(value) ? value : fallback];
30645
31502
  }
@@ -30671,9 +31528,12 @@ function twoColumnProps(config) {
30671
31528
  from: config.gapFrom,
30672
31529
  transforms: [{
30673
31530
  id: "boxStyles.semanticGapValue",
30674
- options: { fallback }
31531
+ options: {
31532
+ fallback,
31533
+ legacyOnly: config.lookSlots === true
31534
+ }
30675
31535
  }],
30676
- fallback: GAP_VALUE_MAP[fallback]
31536
+ ...config.lookSlots ? {} : { fallback: GAP_VALUE_MAP[fallback] }
30677
31537
  } } } } : {}
30678
31538
  };
30679
31539
  }
@@ -31842,6 +32702,7 @@ function buildTestimonialCard(...mods) {
31842
32702
  */
31843
32703
  function buildCarouselLayout() {
31844
32704
  return carousel({
32705
+ mode: "legacy",
31845
32706
  className: "rb-mt-12 rb-testimonials-carousel",
31846
32707
  slidesToShow: {
31847
32708
  mobile: { $bind: {
@@ -33572,6 +34433,7 @@ function heroContainerStack(children, gap) {
33572
34433
  rootType: "stack",
33573
34434
  baseClassName: "rb-relative rb-isolate",
33574
34435
  rootProps: {
34436
+ ...lookSlot("frame"),
33575
34437
  gap: "none",
33576
34438
  justify: { $bind: {
33577
34439
  from: "content",
@@ -33605,6 +34467,7 @@ function heroSplitImagePane() {
33605
34467
  }, when("_sectionStyles.background.image"), bind("_sectionStyles.background.image")), lookSticker]);
33606
34468
  }
33607
34469
  const classicLayout$1 = styledSection({
34470
+ backgroundLookSlots: true,
33608
34471
  children: heroContainerStack(heroContentNodes, "md"),
33609
34472
  baseClass: "",
33610
34473
  backgroundImageLoading: heroPriorityMediaProps.loading,
@@ -33960,18 +34823,34 @@ function createAspectRatioField(options = {}) {
33960
34823
  function introHeading(className) {
33961
34824
  return text({
33962
34825
  as: "h2",
33963
- className
33964
- }, when("content.title"), bind("content.title"));
34826
+ className,
34827
+ ...lookSlot("heading")
34828
+ }, when("content.title", { authoringPresence: {
34829
+ kind: "recover-empty-when-active",
34830
+ placeholder: "Add heading"
34831
+ } }), bind("content.title"));
33965
34832
  }
33966
34833
  function introBody(className = "rb-prose rb-max-w-none") {
33967
- return richText({ className }, bind("content.body"));
34834
+ return richText({
34835
+ className,
34836
+ ...lookSlot("intro"),
34837
+ leadParagraphSlot: { $bind: { from: "content._lookSlots.lede" } },
34838
+ lookSlots: { $bind: { from: "content._lookSlots" } }
34839
+ }, bind("content.body"));
33968
34840
  }
33969
34841
  function introCtas(justify = "start") {
33970
- return ctaRow({
34842
+ const row = ctaRow({
33971
34843
  justify,
33972
34844
  gap: "md",
33973
34845
  containerClassName: "rb-mt-2"
33974
34846
  });
34847
+ return {
34848
+ ...row,
34849
+ props: {
34850
+ ...row.props,
34851
+ ...lookSlot("actions")
34852
+ }
34853
+ };
33975
34854
  }
33976
34855
  function introCopyStack(options = {}) {
33977
34856
  return stack({
@@ -33984,6 +34863,7 @@ function introCopyStack(options = {}) {
33984
34863
  ]);
33985
34864
  }
33986
34865
  const introMedia = media({
34866
+ ...lookSlot("photo"),
33987
34867
  className: { $bind: {
33988
34868
  from: "content.imageShape",
33989
34869
  transforms: [{
@@ -33996,7 +34876,7 @@ const introMedia = media({
33996
34876
  from: "content.aspectRatio",
33997
34877
  fallback: "1/1"
33998
34878
  } } }
33999
- }, bind("content.media"));
34879
+ }, bind("content.media"), when("content.media"));
34000
34880
  const centeredCopyLayout = styledSection({
34001
34881
  children: styledContainer({
34002
34882
  rootType: "stack",
@@ -34012,9 +34892,13 @@ const centeredCopyLayout = styledSection({
34012
34892
  spacing: "medium"
34013
34893
  });
34014
34894
  const statementCopyLayout = styledSection({
34015
- children: styledContainer({ children: [el("div", { className: "rb-intro rb-intro-statement rb-grid rb-grid-cols-1 rb-gap-8 rb-md-grid-cols-2 rb-md-items-start" }, [introHeading("rb-intro-title rb-max-w-xl"), stack({
34895
+ children: styledContainer({ children: [el("div", {
34896
+ className: "rb-intro rb-intro-statement rb-grid rb-grid-cols-1 rb-gap-8 rb-md-grid-cols-2 rb-md-items-start",
34897
+ ...lookSlot("frame")
34898
+ }, [introHeading("rb-intro-title rb-max-w-xl"), stack({
34016
34899
  gap: "md",
34017
- className: "rb-intro-copy rb-max-w-xl"
34900
+ className: "rb-intro-copy rb-max-w-xl",
34901
+ ...lookSlot("copy")
34018
34902
  }, [introBody(), introCtas("start")])])] }),
34019
34903
  baseClass: "",
34020
34904
  spacing: "medium"
@@ -34033,6 +34917,7 @@ const statementMediaLayout = styledSection({
34033
34917
  });
34034
34918
  const mediaCopyLayout = styledSection({
34035
34919
  children: styledContainer({ children: [responsiveTwoColumn({
34920
+ lookSlots: true,
34036
34921
  image: el("div", { className: "rb-intro-media-wrap rb-w-full" }, [introMedia]),
34037
34922
  text: introCopyStack({
34038
34923
  className: "rb-intro-copy rb-max-w-xl",
@@ -34104,20 +34989,26 @@ const introBlockDefinition = { manifest: createBlockManifest({
34104
34989
  gapSelectField({
34105
34990
  label: "Gap between media and text",
34106
34991
  defaultValue: "comfortable",
34107
- visibleWhen: {
34992
+ visibleWhen: { allOf: [{
34108
34993
  field: "variant",
34109
34994
  equals: "media-copy"
34110
- }
34995
+ }, {
34996
+ field: "blockLook",
34997
+ notEquals: "intro-photo-beside-text"
34998
+ }] }
34111
34999
  }),
34112
35000
  createImageColSizeField({
34113
35001
  id: "ratio",
34114
35002
  label: "Media column size",
34115
35003
  defaultValue: "1/2",
34116
35004
  uiIntent: "display",
34117
- visibleWhen: {
35005
+ visibleWhen: { allOf: [{
34118
35006
  field: "variant",
34119
35007
  equals: "media-copy"
34120
- }
35008
+ }, {
35009
+ field: "blockLook",
35010
+ notEquals: "intro-photo-beside-text"
35011
+ }] }
34121
35012
  }),
34122
35013
  createAspectRatioField({
34123
35014
  id: "aspectRatio",
@@ -34894,36 +35785,39 @@ const formSurface = styledContainer({
34894
35785
  baseClassName: "rb-form-surface rb-relative rb-isolate rb-overflow-visible",
34895
35786
  children: embedLayout$1
34896
35787
  });
34897
- function createFormLayout(variant) {
34898
- if (variant === "two-column") return styledSection({
34899
- children: el("div", {
34900
- className: "rb-container",
35788
+ const twoColumnFormLayout = styledSection({
35789
+ children: el("div", {
35790
+ className: "rb-container",
35791
+ ...lookSlot("layout")
35792
+ }, [el("div", {
35793
+ className: "rb-form-two-column rb-grid rb-grid-cols-1 rb-gap-8 rb-lg-grid-cols-2 rb-lg-items-start",
35794
+ ...lookSlot("frame")
35795
+ }, [stack({
35796
+ gap: "md",
35797
+ className: "rb-form-copy-column",
35798
+ ...lookSlot("copy")
35799
+ }, [copyLayout]), formSurface])]),
35800
+ baseClass: "",
35801
+ spacing: "medium",
35802
+ background: "surface"
35803
+ });
35804
+ const formLayout = styledSection({
35805
+ children: [when("content._lookSlots", { not: true })(styledContainer({
35806
+ rootType: "stack",
35807
+ rootProps: { gap: "lg" },
35808
+ children: formComposition.layout
35809
+ })), when("content._lookSlots")(styledContainer({
35810
+ rootType: "stack",
35811
+ rootProps: {
35812
+ gap: "lg",
34901
35813
  ...lookSlot("layout")
34902
- }, [el("div", {
34903
- className: "rb-form-two-column rb-grid rb-grid-cols-1 rb-gap-8 rb-lg-grid-cols-2 rb-lg-items-start",
34904
- ...lookSlot("frame")
34905
- }, [stack({
34906
- gap: "md",
34907
- className: "rb-form-copy-column",
34908
- ...lookSlot("copy")
34909
- }, [copyLayout]), formSurface])]),
34910
- baseClass: "",
34911
- spacing: "medium",
34912
- background: "surface"
34913
- });
34914
- return styledSection({
34915
- children: styledContainer({
34916
- rootType: "stack",
34917
- rootProps: { gap: "lg" },
34918
- children: formComposition.layout
34919
- }),
34920
- baseClass: "",
34921
- spacing: "medium",
34922
- background: "surface"
34923
- });
34924
- }
34925
- const formLayout = createFormLayout("default");
34926
- const twoColumnFormLayout = createFormLayout("two-column");
35814
+ },
35815
+ children: el("div", lookSlot("frame"), [el("div", lookSlot("copy"), [copyLayout]), el("div", lookSlot("panel"), [embedLayout$1])])
35816
+ }))],
35817
+ baseClass: "",
35818
+ spacing: "medium",
35819
+ background: "surface"
35820
+ });
34927
35821
  const dataLoaders$1 = buildFragmentDataLoaders(formComposition);
34928
35822
  const formManifest = createBlockManifest({
34929
35823
  variantMeaning: { kind: "arrangement" },
@@ -37198,17 +38092,31 @@ const quoteArrangement = (arrangement) => styledSection({
37198
38092
  as: "p",
37199
38093
  ...lookSlot("intro")
37200
38094
  }, when("content.subheading"), bind("content.subheading"))]), arrangement === "slides" || arrangement === "track" ? el("carousel", {
38095
+ mode: "arrangement",
37201
38096
  arrangement,
37202
- autoplay: false,
37203
- loop: false,
37204
- showControls: true,
37205
- arrowVisibility: "always",
37206
- slidesToShow: arrangement === "slides" ? 1 : {
37207
- mobile: 1,
37208
- tablet: 2,
37209
- desktop: 3
37210
- }
37211
- }, [quoteFigure(false)]) : el("div", lookSlot("items"), [quoteFigure(arrangement === "lead-rest")])]) })
38097
+ labels: {
38098
+ item: "quote",
38099
+ region: { $bind: {
38100
+ from: "content.heading",
38101
+ transforms: [{
38102
+ id: "look.carouselRegion",
38103
+ options: { fallback: "Quotes" }
38104
+ }]
38105
+ } }
38106
+ },
38107
+ indicator: "counter"
38108
+ }, [{
38109
+ type: "carouselSlide",
38110
+ props: { title: { $bind: {
38111
+ from: "testimonial.content.name",
38112
+ fallback: "Anonymous"
38113
+ } } },
38114
+ $repeat: quoteFigure(false).$repeat,
38115
+ children: [{
38116
+ ...quoteFigure(false),
38117
+ $repeat: void 0
38118
+ }]
38119
+ }]) : el("div", lookSlot("items"), [quoteFigure(arrangement === "lead-rest")])]) })
37212
38120
  });
37213
38121
  const additionalFields = parseFieldDefinitions([
37214
38122
  ...testimonialsHeadingFragment.fields,
@@ -38128,6 +39036,33 @@ const leadCard = {
38128
39036
  indexName: "cardIndex"
38129
39037
  }
38130
39038
  };
39039
+ const carouselCardsLayout = (arrangement) => arrangementCardsLayout(el("carousel", {
39040
+ mode: "arrangement",
39041
+ arrangement,
39042
+ cardList: true,
39043
+ labels: {
39044
+ item: "card",
39045
+ region: { $bind: {
39046
+ from: "content.title",
39047
+ transforms: [{
39048
+ id: "look.carouselRegion",
39049
+ options: { fallback: "Cards" }
39050
+ }]
39051
+ } }
39052
+ },
39053
+ indicator: arrangement === "slides" ? "dots" : "none"
39054
+ }, [{
39055
+ type: "carouselSlide",
39056
+ props: { title: { $bind: {
39057
+ from: "card.title",
39058
+ fallback: ""
39059
+ } } },
39060
+ $repeat: featureCard.$repeat,
39061
+ children: [{
39062
+ ...featureCard,
39063
+ $repeat: void 0
39064
+ }]
39065
+ }]));
38131
39066
  const leadSupportLayout = arrangementCardsLayout(el("div", lookSlot("items"), [leadCard]));
38132
39067
  const indexRow = el("li", lookSlot("item"), [
38133
39068
  el("div", {
@@ -38340,6 +39275,8 @@ const featureCardsBlockDefinition = { manifest: createBlockManifest({
38340
39275
  promotedFields: ["_generatedIconSizePx"],
38341
39276
  layout: cardsLayout,
38342
39277
  variants: {
39278
+ slides: carouselCardsLayout("slides"),
39279
+ track: carouselCardsLayout("track"),
38343
39280
  cards: cardsLayout,
38344
39281
  "lead-support": leadSupportLayout,
38345
39282
  index: indexLayout,
@@ -38352,7 +39289,9 @@ const featureCardsBlockDefinition = { manifest: createBlockManifest({
38352
39289
  lookOnlyKeys: [
38353
39290
  "lead-support",
38354
39291
  "index",
38355
- "sequence"
39292
+ "sequence",
39293
+ "slides",
39294
+ "track"
38356
39295
  ]
38357
39296
  },
38358
39297
  defaultVariant: "cards",
@@ -38706,17 +39645,22 @@ const mediaTextBlockDefinition = { manifest: createBlockManifest({
38706
39645
  }],
38707
39646
  fallback: ""
38708
39647
  } };
38709
- const copyHeading = el("div", {
38710
- className: titleClassNameFromAlignment,
38711
- ...lookSlot("head")
38712
- }, [text({
39648
+ const headingNodes = [text({
38713
39649
  as: "p",
38714
39650
  className: eyebrowClassName("rb-eyebrow heading-eyebrow"),
38715
39651
  ...lookSlot("eyebrow")
38716
39652
  }, when("content.eyebrow"), bind("content.eyebrow")), text({
38717
39653
  as: "h2",
38718
39654
  ...lookSlot("heading")
38719
- }, bind("content.title"))], when("content.title"));
39655
+ }, bind("content.title"), when("content.title", { authoringPresence: {
39656
+ kind: "recover-empty-when-active",
39657
+ placeholder: "Add heading"
39658
+ } }))];
39659
+ const copyHeading = el("div", {
39660
+ className: titleClassNameFromAlignment,
39661
+ ...lookSlot("head")
39662
+ }, headingNodes, when("content.title"));
39663
+ const lookCopyHeading = el("div", {}, headingNodes, when("content._lookSlots.head"));
38720
39664
  const textContentNodes = (className) => {
38721
39665
  const props = {
38722
39666
  className,
@@ -38726,7 +39670,8 @@ const mediaTextBlockDefinition = { manifest: createBlockManifest({
38726
39670
  };
38727
39671
  return [styledCard([richText(props, bind("content.text"))], mediaTextCardOptions, when("content.wrapTextInCard")), richText(props, when("content.wrapTextInCard", { not: true }), bind("content.text"))];
38728
39672
  };
38729
- const defaultTextColumn = el("div", {}, textContentNodes("rb-prose rb-max-w-none"));
39673
+ const bodyTextColumn = el("div", {}, textContentNodes("rb-prose rb-max-w-none"));
39674
+ const defaultTextColumn = el("div", {}, [lookCopyHeading, ...textContentNodes("rb-prose rb-max-w-none")]);
38730
39675
  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)]);
38731
39676
  const defaultImageCommonProps = {
38732
39677
  ...lookSlot("photo"),
@@ -38740,7 +39685,7 @@ const mediaTextBlockDefinition = { manifest: createBlockManifest({
38740
39685
  } },
38741
39686
  style: { aspectRatio: { $bind: { from: "content.aspectRatio" } } }
38742
39687
  };
38743
- const defaultSingleImage = media(defaultImageCommonProps, bind("content.images[0].image"));
39688
+ const defaultSingleImage = media(defaultImageCommonProps, bind("content.images[0].image"), when("content.images[0].image"));
38744
39689
  const defaultCarouselImages = carousel({
38745
39690
  className: "rb-media-text-carousel",
38746
39691
  transition: { $bind: {
@@ -38792,7 +39737,11 @@ const mediaTextBlockDefinition = { manifest: createBlockManifest({
38792
39737
  imageWrapperClassName: "rb-w-full rb-shrink-0",
38793
39738
  textWrapperClassName: "rb-w-full rb-min-w-0 rb-flex-1 rb-self-stretch"
38794
39739
  })], whenImagesLength(0, { not: true }));
38795
- const defaultTextOnlyLayout = el("div", lookSlot("copy"), textContentNodes("rb-prose rb-max-w-none"), whenImagesLength(0));
39740
+ const defaultTextOnlyLayout = el("div", lookSlot("copy"), [
39741
+ el("div", lookSlot("media"), [defaultSingleImage], when("content._lookSlots.media")),
39742
+ lookCopyHeading,
39743
+ ...textContentNodes("rb-prose rb-max-w-none")
39744
+ ], whenImagesLength(0));
38796
39745
  const bioTextOnlyLayout = el("div", {
38797
39746
  className: "rb-flex rb-w-full rb-max-w-prose rb-flex-col rb-gap-5",
38798
39747
  ...lookSlot("copy")
@@ -38804,11 +39753,15 @@ const mediaTextBlockDefinition = { manifest: createBlockManifest({
38804
39753
  const defaultInner = el("div", {}, [defaultImagesLayout, defaultTextOnlyLayout]);
38805
39754
  const bioInner = el("div", {}, [bioImagesLayout, bioTextOnlyLayout]);
38806
39755
  const defaultLayout = styledSection({
38807
- children: styledContainer({
39756
+ children: [when("content._lookSlots.head", { not: true })(styledContainer({
38808
39757
  rootType: "stack",
38809
39758
  rootProps: { gap: "lg" },
38810
39759
  children: [copyHeading, defaultInner]
38811
- }),
39760
+ })), when("content._lookSlots.head")(styledContainer({
39761
+ rootType: "stack",
39762
+ rootProps: { gap: "lg" },
39763
+ children: [defaultInner]
39764
+ }))],
38812
39765
  baseClass: "",
38813
39766
  spacing: "medium"
38814
39767
  });
@@ -38832,17 +39785,7 @@ const mediaTextBlockDefinition = { manifest: createBlockManifest({
38832
39785
  el("div", {}, [when("content.images[0].image")(defaultSingleImage)], whenImagesLength(1)),
38833
39786
  el("div", {}, [el("div", {}, [defaultCarouselImages], whenImagesLength(1, { not: true }))], whenImagesLength(0, { not: true })),
38834
39787
  el("div", {}, [when("content.images[0].image")(defaultSingleImage)], whenImagesLength(0))
38835
- ]), el("div", lookSlot("copy"), [el("div", lookSlot("head"), [text({
38836
- as: "p",
38837
- className: eyebrowClassName("rb-eyebrow heading-eyebrow"),
38838
- ...lookSlot("eyebrow")
38839
- }, when("content.eyebrow"), bind("content.eyebrow")), text({
38840
- as: "h2",
38841
- ...lookSlot("heading")
38842
- }, bind("content.title"), when("content.title", { authoringPresence: {
38843
- kind: "recover-empty-when-active",
38844
- placeholder: "Add heading"
38845
- } }))]), defaultTextColumn])]) })
39788
+ ]), el("div", lookSlot("copy"), [el("div", lookSlot("head"), headingNodes), bodyTextColumn])]) })
38846
39789
  })
38847
39790
  },
38848
39791
  variantMeaning: {
@@ -38894,6 +39837,7 @@ const bookingWizard = bookingForm(withApiBindings({
38894
39837
  form: { $bind: { from: "data.form" } },
38895
39838
  services: { $bind: { from: "data.services" } },
38896
39839
  mailingList: { $bind: { from: "$root.mailingList" } },
39840
+ siteTerms: { $bind: { from: "$root.siteTerms" } },
38897
39841
  siteName: { $bind: { from: "$root.siteName" } }
38898
39842
  }));
38899
39843
  /** Both variants sit in the same section shell; only the inner layout differs. */
@@ -39022,7 +39966,9 @@ const appointmentServicesBlockDefinition = {
39022
39966
  "cards",
39023
39967
  "lead-support",
39024
39968
  "index",
39025
- "sequence"
39969
+ "sequence",
39970
+ "slides",
39971
+ "track"
39026
39972
  ]
39027
39973
  },
39028
39974
  id: "block.appointment-services",
@@ -39555,6 +40501,31 @@ const occurrenceContextSchema = z.object({
39555
40501
  overrides: z.record(z.string(), z.unknown()).nullable().optional()
39556
40502
  }).nullable();
39557
40503
  //#endregion
40504
+ //#region ../blocks/src/system/blocks/shared/siteTerms.ts
40505
+ const versionId = z.string().uuid().transform((value, ctx) => {
40506
+ const parsed = parseSiteTermsVersionId(value);
40507
+ if (parsed.ok) return parsed.value;
40508
+ ctx.addIssue({
40509
+ code: "custom",
40510
+ message: "Invalid site terms version"
40511
+ });
40512
+ return z.NEVER;
40513
+ });
40514
+ const blockSiteTermsSchema = z.discriminatedUnion("kind", [z.object({ kind: z.literal("none") }), z.object({
40515
+ kind: z.literal("published"),
40516
+ version: z.object({
40517
+ id: versionId,
40518
+ number: z.number().int().positive(),
40519
+ generation: z.number().int().positive()
40520
+ }),
40521
+ businessName: z.string(),
40522
+ href: z.string().min(1).nullable()
40523
+ })]);
40524
+ z.object({
40525
+ versionId,
40526
+ alreadyAgreed: z.boolean()
40527
+ });
40528
+ //#endregion
39558
40529
  //#region ../blocks/src/system/runtime/nodes/events/domain/capacity.ts
39559
40530
  /**
39560
40531
  * Compute remaining spots for an event from `availableSpots` with a fallback
@@ -39921,27 +40892,48 @@ function eventListWindowEvents(events, window) {
39921
40892
  });
39922
40893
  }
39923
40894
  //#endregion
39924
- //#region ../blocks/src/system/runtime/nodes/event-registration/registrationDerivations.ts
39925
- function eventMatchesOccurrenceId(event, occurrenceId) {
39926
- return event.registrationSubject.kind === "occurrence" && (event.registrationSubject.occurrenceId === occurrenceId || event.selectionId === occurrenceId);
40895
+ //#region ../blocks/src/system/runtime/nodes/event-registration/registrationEventAdapter.ts
40896
+ function toRegistrationEvent(event) {
40897
+ return {
40898
+ ...event,
40899
+ selectionId: event.id,
40900
+ registrationSubject: {
40901
+ kind: "occurrence",
40902
+ occurrenceId: event.occurrenceId
40903
+ }
40904
+ };
39927
40905
  }
39928
- function findPreSelectedEvent(input) {
39929
- const occurrenceContext = input.occurrenceContext;
39930
- if (!occurrenceContext) return input.scopedEvents.length === 1 ? input.scopedEvents[0] ?? null : null;
39931
- const contextDate = getBookingLocalDateKey(toScheduledBookingDateTime({
39932
- startsAt: occurrenceContext.startsAt,
39933
- timeZone: occurrenceContext.timeZone
39934
- }));
39935
- return input.scopedEvents.find((event) => eventMatchesOccurrenceId(event, occurrenceContext.id) || getBookingLocalDateKey(toScheduledBookingDateTime({
39936
- startsAt: event.startsAt,
39937
- timeZone: event.timeZone
39938
- })) === contextDate) ?? null;
40906
+ function toRegistrationEvents(events) {
40907
+ return events.filter((event) => event.bookingScope === "single_occurrence").map(toRegistrationEvent);
39939
40908
  }
39940
- function resolveEventRequiresPayment(input) {
39941
- if (input.eligibility) return input.eligibility.requiresPayment;
39942
- if (input.selectedTicketType) return input.selectedTicketType.priceAmount > 0;
39943
- if (!input.event) return false;
39944
- return publicEventPricingType(input.event.pricing) === "paid";
40909
+ /**
40910
+ * Project one whole-series run onto the registration surface.
40911
+ *
40912
+ * Capacity, pricing, payment terms and consent come straight off the canonical
40913
+ * Event record; only the schedule is widened from the single occurrence to the
40914
+ * live run. A run without live sessions has no registration event.
40915
+ */
40916
+ function toWholeSeriesRegistrationEvent(group) {
40917
+ const { representative, run } = group;
40918
+ const sessions = orderedLiveRunSessions(run.sessions);
40919
+ const firstSession = sessions[0];
40920
+ if (!firstSession) return null;
40921
+ const lastSession = sessions[sessions.length - 1] ?? firstSession;
40922
+ return {
40923
+ ...representative,
40924
+ selectionId: run.eventSeriesId,
40925
+ registrationSubject: {
40926
+ kind: "wholeSeries",
40927
+ eventSeriesId: run.eventSeriesId,
40928
+ sessions
40929
+ },
40930
+ startsAt: firstSession.startsAt,
40931
+ endsAt: lastSession.endsAt,
40932
+ timeZone: firstSession.timeZone
40933
+ };
40934
+ }
40935
+ function toWholeSeriesRegistrationEvents(events) {
40936
+ return groupPublicEventsByRun(events).map(toWholeSeriesRegistrationEvent).filter((event) => event !== null);
39945
40937
  }
39946
40938
  //#endregion
39947
40939
  //#region ../blocks/src/system/runtime/nodes/event-registration/utils.ts
@@ -39965,7 +40957,7 @@ function bookingClock(startsAt, input) {
39965
40957
  return formatBookingTime(bookingInstant(startsAt, input), {
39966
40958
  hour: "numeric",
39967
40959
  minute: "2-digit",
39968
- hour12: true
40960
+ hourCycle: "h12"
39969
40961
  }).replace(/\s*([ap])\.?\s?m\.?$/i, (_match, period) => `${period.toLowerCase()}m`);
39970
40962
  }
39971
40963
  /** "7:00pm – 8:15pm", or just the start when there's no distinct end. */
@@ -40074,6 +41066,29 @@ function scheduleInput(event, occurrence) {
40074
41066
  };
40075
41067
  }
40076
41068
  //#endregion
41069
+ //#region ../blocks/src/system/runtime/nodes/event-registration/registrationDerivations.ts
41070
+ function eventMatchesOccurrenceId(event, occurrenceId) {
41071
+ return event.registrationSubject.kind === "occurrence" && (event.registrationSubject.occurrenceId === occurrenceId || event.selectionId === occurrenceId);
41072
+ }
41073
+ function findPreSelectedEvent(input) {
41074
+ const occurrenceContext = input.occurrenceContext;
41075
+ if (!occurrenceContext) return input.scopedEvents.length === 1 ? input.scopedEvents[0] ?? null : null;
41076
+ const contextDate = getBookingLocalDateKey(toScheduledBookingDateTime({
41077
+ startsAt: occurrenceContext.startsAt,
41078
+ timeZone: occurrenceContext.timeZone
41079
+ }));
41080
+ return input.scopedEvents.find((event) => eventMatchesOccurrenceId(event, occurrenceContext.id) || getBookingLocalDateKey(toScheduledBookingDateTime({
41081
+ startsAt: event.startsAt,
41082
+ timeZone: event.timeZone
41083
+ })) === contextDate) ?? null;
41084
+ }
41085
+ function resolveEventRequiresPayment(input) {
41086
+ if (input.eligibility) return input.eligibility.requiresPayment;
41087
+ if (input.selectedTicketType) return input.selectedTicketType.priceAmount > 0;
41088
+ if (!input.event) return false;
41089
+ return publicEventPricingType(input.event.pricing) === "paid";
41090
+ }
41091
+ //#endregion
40077
41092
  //#region ../blocks/src/system/runtime/nodes/event-registration/wizardSteps.ts
40078
41093
  function registrationRoute(input) {
40079
41094
  const base = input.chooseEvent ? [
@@ -40362,50 +41377,6 @@ function lowerCased(noun) {
40362
41377
  };
40363
41378
  }
40364
41379
  //#endregion
40365
- //#region ../blocks/src/system/runtime/nodes/event-registration/registrationEventAdapter.ts
40366
- function toRegistrationEvent(event) {
40367
- return {
40368
- ...event,
40369
- selectionId: event.id,
40370
- registrationSubject: {
40371
- kind: "occurrence",
40372
- occurrenceId: event.occurrenceId
40373
- }
40374
- };
40375
- }
40376
- function toRegistrationEvents(events) {
40377
- return events.filter((event) => event.bookingScope === "single_occurrence").map(toRegistrationEvent);
40378
- }
40379
- /**
40380
- * Project one whole-series run onto the registration surface.
40381
- *
40382
- * Capacity, pricing, payment terms and consent come straight off the canonical
40383
- * Event record; only the schedule is widened from the single occurrence to the
40384
- * live run. A run without live sessions has no registration event.
40385
- */
40386
- function toWholeSeriesRegistrationEvent(group) {
40387
- const { representative, run } = group;
40388
- const sessions = orderedLiveRunSessions(run.sessions);
40389
- const firstSession = sessions[0];
40390
- if (!firstSession) return null;
40391
- const lastSession = sessions[sessions.length - 1] ?? firstSession;
40392
- return {
40393
- ...representative,
40394
- selectionId: run.eventSeriesId,
40395
- registrationSubject: {
40396
- kind: "wholeSeries",
40397
- eventSeriesId: run.eventSeriesId,
40398
- sessions
40399
- },
40400
- startsAt: firstSession.startsAt,
40401
- endsAt: lastSession.endsAt,
40402
- timeZone: firstSession.timeZone
40403
- };
40404
- }
40405
- function toWholeSeriesRegistrationEvents(events) {
40406
- return groupPublicEventsByRun(events).map(toWholeSeriesRegistrationEvent).filter((event) => event !== null);
40407
- }
40408
- //#endregion
40409
41380
  //#region ../blocks/src/system/runtime/nodes/event-registration/bookingCardDisplay.ts
40410
41381
  /**
40411
41382
  * The booking card the server renders on CMS pages (issue 1581), and the
@@ -40643,6 +41614,7 @@ const eventRegistrationCommonSchemaShape = {
40643
41614
  const parsed = parseMailingListRuntimeContext(value);
40644
41615
  return parsed.ok ? parsed.value : void 0;
40645
41616
  }),
41617
+ siteTerms: blockSiteTermsSchema.optional(),
40646
41618
  siteName: z.string().optional()
40647
41619
  };
40648
41620
  const eventRegistrationEventSourceSchema = z.discriminatedUnion("kind", [z.object({
@@ -40826,6 +41798,7 @@ const eventRegistrationBlockRuntime = defineClientOwnedBlockRuntime({
40826
41798
  sitePasses: source.sitePasses ?? null,
40827
41799
  siteMemberships: source.siteMemberships ?? null,
40828
41800
  mailingList: source.mailingList,
41801
+ siteTerms: source.siteTerms,
40829
41802
  siteName: source.siteName,
40830
41803
  offeringNoun: resolveOfferingNoun(source, scopedSourceEvents)
40831
41804
  }
@@ -40997,6 +41970,7 @@ const eventRegistrationBlockDefinition = {
40997
41970
  wholeSeriesRunEvents: { $bind: { from: "data.wholeSeriesRunEvents" } },
40998
41971
  loaderFailures: { $bind: { from: "$root.loaderFailures" } },
40999
41972
  mailingList: { $bind: { from: "$root.mailingList" } },
41973
+ siteTerms: { $bind: { from: "$root.siteTerms" } },
41000
41974
  siteName: { $bind: { from: "$root.siteName" } },
41001
41975
  bookingOfferingPresets: { $bind: {
41002
41976
  from: "$root.bookingOfferingPresets",
@@ -43827,6 +44801,7 @@ function projectRecurringSchedule(events) {
43827
44801
  //#endregion
43828
44802
  //#region ../blocks/src/system/blocks/events/recurring-schedule.ts
43829
44803
  const recurringScheduleLayout = styledSection({
44804
+ skinSlot: "schedule-section",
43830
44805
  children: styledContainer({
43831
44806
  rootType: "stack",
43832
44807
  rootProps: {
@@ -44284,6 +45259,8 @@ function offeringsPreviewHeaderNodes() {
44284
45259
  const offeringsPreviewLayout = [styledSection({
44285
45260
  children: sectionContainer([el("offerings-preview", {
44286
45261
  ...cardListPresentationBindings,
45262
+ carouselRegion: { $bind: { from: "content.heading" } },
45263
+ renderInput: { $bind: { from: "content._offeringsPreviewInput" } },
44287
45264
  displayMode: { $bind: displayModeBinding },
44288
45265
  pathname: { $bind: { from: "$root.pathname" } },
44289
45266
  catalogueEvents: { $bind: { from: "data.catalogueEvents" } },
@@ -44332,7 +45309,9 @@ const offeringsPreviewManifest = createBlockManifest({
44332
45309
  "lead-support",
44333
45310
  "index",
44334
45311
  "sequence",
44335
- "plates"
45312
+ "plates",
45313
+ "slides",
45314
+ "track"
44336
45315
  ]
44337
45316
  },
44338
45317
  id: "block.offerings-preview",
@@ -45366,6 +46345,7 @@ const gridLayout = grid$1({ className: "rb-grid rb-grid-cols-1 rb-gap-4 rb-sm-gr
45366
46345
  bindAspectRatio: true
45367
46346
  })]);
45368
46347
  const carouselLayout = carousel({
46348
+ mode: "legacy",
45369
46349
  className: { $bind: {
45370
46350
  from: "content.fullBleed",
45371
46351
  transforms: [{
@@ -46467,6 +47447,7 @@ const shopSourceSchema = z.object({
46467
47447
  memberships: z.array(publicMembershipProductSchema).nullable().optional(),
46468
47448
  products: z.array(publicProductSchema).nullable().optional(),
46469
47449
  siteId: z.string().optional(),
47450
+ siteTerms: blockSiteTermsSchema.optional(),
46470
47451
  demoEmailSuppressed: z.boolean().optional(),
46471
47452
  apiBaseUrl: z.string().optional(),
46472
47453
  readAuthority: browserReadAuthoritySchema.optional(),
@@ -46595,6 +47576,7 @@ const passesMembershipsHydrationSchema = z.object({
46595
47576
  memberships: z.array(publicMembershipProductSchema),
46596
47577
  passPurchaseMode: z.enum(["add_to_cart", "buy_now"]),
46597
47578
  buttonVariant: blockButtonRoleSchema,
47579
+ siteTerms: blockSiteTermsSchema.optional(),
46598
47580
  demoEmailSuppressed: z.boolean().optional()
46599
47581
  });
46600
47582
  const productListHydrationSchema = z.object({
@@ -46618,6 +47600,7 @@ const cartHydrationSchema = z.object({
46618
47600
  const checkoutHydrationSchema = z.object({
46619
47601
  emptyStateText: z.string(),
46620
47602
  submitButtonText: z.string(),
47603
+ siteTerms: blockSiteTermsSchema.optional(),
46621
47604
  demoEmailSuppressed: z.boolean().optional()
46622
47605
  });
46623
47606
  const passesMembershipsRenderSchema = z.object({
@@ -46678,6 +47661,7 @@ const shopBlockRuntime = defineProgressiveBlockRuntime({
46678
47661
  memberships: source.showMemberships === false ? [] : source.memberships ?? [],
46679
47662
  passPurchaseMode,
46680
47663
  buttonVariant: source.buttonVariant ?? "primary",
47664
+ siteTerms: source.siteTerms,
46681
47665
  demoEmailSuppressed: source.demoEmailSuppressed
46682
47666
  }
46683
47667
  };
@@ -46772,6 +47756,7 @@ const checkoutBlockRuntime = defineClientOwnedBlockRuntime({
46772
47756
  hydration: {
46773
47757
  emptyStateText: source.emptyStateText ?? "Add something to your cart to continue.",
46774
47758
  submitButtonText: source.submitButtonText ?? "Checkout",
47759
+ siteTerms: source.siteTerms,
46775
47760
  demoEmailSuppressed: source.demoEmailSuppressed
46776
47761
  }
46777
47762
  })
@@ -46987,10 +47972,12 @@ const shopBlockDefinition = {
46987
47972
  ],
46988
47973
  icon: "ShoppingBag",
46989
47974
  layout: [styledSection({
47975
+ skinSlot: "shop-section",
46990
47976
  baseClass: "",
46991
47977
  spacing: "spacious",
46992
47978
  children: sectionContainer([shop(withApiBindings({
46993
47979
  readAuthority: { $bind: { from: "$root.readAuthority" } },
47980
+ siteTerms: { $bind: { from: "$root.siteTerms" } },
46994
47981
  demoEmailSuppressed: { $bind: {
46995
47982
  from: "$root.demoEmailSuppressed",
46996
47983
  fallback: false
@@ -47062,12 +48049,18 @@ const shopBlockDefinition = {
47062
48049
  dataLoaders: {
47063
48050
  passes: {
47064
48051
  endpoint: "listPublicPasses",
47065
- params: { siteId: { $bind: { from: "$root.siteId" } } },
48052
+ params: {
48053
+ siteTerms: { $bind: { from: "$root.siteTerms" } },
48054
+ siteId: { $bind: { from: "$root.siteId" } }
48055
+ },
47066
48056
  mode: "server"
47067
48057
  },
47068
48058
  memberships: {
47069
48059
  endpoint: "listPublicMemberships",
47070
- params: { siteId: { $bind: { from: "$root.siteId" } } },
48060
+ params: {
48061
+ siteTerms: { $bind: { from: "$root.siteTerms" } },
48062
+ siteId: { $bind: { from: "$root.siteId" } }
48063
+ },
47071
48064
  mode: "server"
47072
48065
  }
47073
48066
  }
@@ -47595,6 +48588,7 @@ const publicGiftingOffersResponseSchema = z.object({
47595
48588
  vouchers: z.array(publicVoucherOfferSchema)
47596
48589
  });
47597
48590
  const giftingSourceSchema = z.object({
48591
+ siteTerms: blockSiteTermsSchema.optional(),
47598
48592
  siteId: z.string().optional(),
47599
48593
  apiBaseUrl: z.string().optional(),
47600
48594
  offers: publicGiftingOffersResponseSchema.nullable().optional(),
@@ -47618,6 +48612,7 @@ const giftingDisplaySchema = z.object({
47618
48612
  emptyStateText: z.string()
47619
48613
  });
47620
48614
  const giftingHydrationSchema = z.object({
48615
+ siteTerms: blockSiteTermsSchema.optional(),
47621
48616
  offers: publicGiftingOffersResponseSchema.nullable(),
47622
48617
  checkoutButtonText: z.string(),
47623
48618
  successMessage: z.string()
@@ -47651,6 +48646,7 @@ const giftingBlockRuntime = defineClientOwnedBlockRuntime({
47651
48646
  buildRender: (source) => ({
47652
48647
  display: buildGiftingDisplay(source),
47653
48648
  hydration: {
48649
+ siteTerms: source.siteTerms,
47654
48650
  offers: source.offers ?? null,
47655
48651
  checkoutButtonText: source.checkoutButtonText?.trim() || "Continue",
47656
48652
  successMessage: source.successMessage?.trim() || "Thanks. Your purchase is complete and your gift will be sent shortly."
@@ -47788,7 +48784,10 @@ const giftingBlockDefinition = {
47788
48784
  dataSchemas: { offers: publicGiftingOffersResponseSchema.optional() },
47789
48785
  dataLoaders: { offers: {
47790
48786
  endpoint: "listPublicGiftingOffers",
47791
- params: { siteId: { $bind: { from: "$root.siteId" } } },
48787
+ params: {
48788
+ siteTerms: { $bind: { from: "$root.siteTerms" } },
48789
+ siteId: { $bind: { from: "$root.siteId" } }
48790
+ },
47792
48791
  mode: "server"
47793
48792
  } }
47794
48793
  };
@@ -48114,10 +49113,10 @@ const stackedLayout = styledSection({
48114
49113
  background: "surface"
48115
49114
  });
48116
49115
  const inlineLayout = styledSection({
48117
- children: props(lookSlot("layout"))(sectionContainer(stackedComposition.layout, {
49116
+ children: [when("content._lookSlots", { not: true })(sectionContainer(stackedComposition.layout, {
48118
49117
  gap: "md",
48119
49118
  className: "newsletter-inline"
48120
- })),
49119
+ })), when("content._lookSlots")(props(lookSlot("layout"))(sectionContainer([el("div", lookSlot("head"), newsletterCopyFragment.layout), el("div", lookSlot("panel"), newsletterFormFragment.layout)], { gap: "md" })))],
48121
49120
  baseClass: "",
48122
49121
  spacing: "medium",
48123
49122
  background: "surface"
@@ -50371,6 +51370,8 @@ const defaultTransforms = createTransformRegistry([
50371
51370
  offeringsPreviewDatesReadEnabled,
50372
51371
  lookLeadSlotTransform,
50373
51372
  lookQuoteLimitTransform,
51373
+ lookCarouselRegionTransform,
51374
+ lookSkinSlotTransform,
50374
51375
  {
50375
51376
  id: "events.calendarListWindow",
50376
51377
  kind: "formatter",
@@ -50548,6 +51549,14 @@ const systemCustomizeFacetDefinitions = [
50548
51549
  value: "right",
50549
51550
  label: "Right"
50550
51551
  }], "right"),
51552
+ fixedKnob("block.intro", "imageShape", "Media shape", standardImageShapeOptions, "default"),
51553
+ fixedKnob("block.intro", "imagePosition", "Photo side", [{
51554
+ value: "left",
51555
+ label: "Left"
51556
+ }, {
51557
+ value: "right",
51558
+ label: "Right"
51559
+ }], "left"),
50551
51560
  fixedKnob("block.media-text", "imagePosition", "Photo side", [{
50552
51561
  value: "left",
50553
51562
  label: "Left"
@@ -50702,6 +51711,10 @@ function planArrangementContent(blockKind, manifest, content, audience) {
50702
51711
  ...activeContent,
50703
51712
  ...effectiveContent,
50704
51713
  ...photoContent,
51714
+ ...arrangementShapeContent(effective.look.id, {
51715
+ ...activeContent,
51716
+ ...effectiveContent
51717
+ }),
50705
51718
  ...arrangementPanelContent(activeContent, effective, mode),
50706
51719
  ...arrangementQuoteContent(blockKind, effective, values),
50707
51720
  _effectiveLook: effective,
@@ -50711,10 +51724,19 @@ function planArrangementContent(blockKind, manifest, content, audience) {
50711
51724
  }, values, visiblePhotos.photoCount),
50712
51725
  _effectiveKnobs: knobs,
50713
51726
  _lookAudience: audience,
50714
- _lookSlots: Object.fromEntries(arrangementSlotNames.map((slot) => [slot, slot])),
51727
+ _lookSlots: arrangementContentSlots(blockKind),
50715
51728
  blockLook: effective.look.id
50716
51729
  };
50717
51730
  }
51731
+ /** Widget section hooks use the theme; hero background geometry never travels to list islands. */
51732
+ function arrangementContentSlots(blockKind) {
51733
+ return Object.fromEntries(arrangementSlotNames.filter((slot) => slot !== "schedule-section" && slot !== "shop-section" && (slot !== "background" || blockKind === "block.hero")).map((slot) => [slot, slot]));
51734
+ }
51735
+ /** C photo Looks render shape-specific crops without rewriting authored preferences. */
51736
+ function arrangementShapeContent(lookId, content) {
51737
+ if (lookId !== "intro-photo-beside-text" && lookId !== "media-text-photo-beside-text") return {};
51738
+ return content.imageShape === "circle" ? { aspectRatio: "1/1" } : content.imageShape === "arch" ? { aspectRatio: "4/5" } : {};
51739
+ }
50718
51740
  function arrangementQuoteContent(blockKind, effective, values) {
50719
51741
  if (blockKind !== "block.testimonials") return {};
50720
51742
  const single = effective.look.structure.byMode.default === "single";
@@ -50760,6 +51782,7 @@ function arrangementContentFacts(content) {
50760
51782
  function arrangementPhotoCount(content) {
50761
51783
  if (Array.isArray(content.cards)) return content.cards.filter((card) => isObjectRecord$1(card) && isObjectRecord$1(card.media)).length;
50762
51784
  if (Array.isArray(content.images)) return content.images.filter((item) => isObjectRecord$1(item) && isObjectRecord$1(item.image)).length;
51785
+ if (isObjectRecord$1(content.media)) return 1;
50763
51786
  const section = isObjectRecord$1(content._sectionStyles) ? content._sectionStyles : {};
50764
51787
  return isObjectRecord$1((isObjectRecord$1(section.background) ? section.background : {}).image) ? 1 : 0;
50765
51788
  }
@@ -52542,6 +53565,53 @@ z.object({
52542
53565
  toolCallsUsed: z.number()
52543
53566
  });
52544
53567
  //#endregion
53568
+ //#region ../api/src/siteTerms.ts
53569
+ const versionIdSchema = z.string().uuid().transform((value, ctx) => {
53570
+ const parsed = parseSiteTermsVersionId(value);
53571
+ if (parsed.ok) return parsed.value;
53572
+ ctx.addIssue({
53573
+ code: "custom",
53574
+ message: "Invalid site terms version"
53575
+ });
53576
+ return z.NEVER;
53577
+ });
53578
+ z.object({
53579
+ shown: z.discriminatedUnion("kind", [
53580
+ z.object({ kind: z.literal("nothing") }),
53581
+ z.object({
53582
+ kind: z.literal("checkbox"),
53583
+ versionId: versionIdSchema
53584
+ }),
53585
+ z.object({
53586
+ kind: z.literal("already_agreed_line"),
53587
+ versionId: versionIdSchema
53588
+ })
53589
+ ]),
53590
+ agreed: z.boolean()
53591
+ });
53592
+ const siteTermsSourceSchema = z.discriminatedUnion("kind", [z.object({
53593
+ kind: z.literal("written"),
53594
+ body: z.custom(isCanonicalRichTextDoc)
53595
+ }), z.object({
53596
+ kind: z.literal("link"),
53597
+ destination: z.discriminatedUnion("kind", [z.object({
53598
+ kind: z.literal("page"),
53599
+ identifier: z.string().trim().min(1)
53600
+ }), z.object({
53601
+ kind: z.literal("url"),
53602
+ href: z.url({ protocol: /^https?$/ })
53603
+ })])
53604
+ })]);
53605
+ z.discriminatedUnion("kind", [z.object({
53606
+ kind: z.literal("publish"),
53607
+ expectedRevision: z.number().int().positive().nullable(),
53608
+ source: siteTermsSourceSchema,
53609
+ askAgain: z.boolean()
53610
+ }).strict(), z.object({
53611
+ kind: z.literal("stop"),
53612
+ expectedRevision: z.number().int().positive()
53613
+ }).strict()]);
53614
+ //#endregion
52545
53615
  //#region src/data/prefetchBlockData.ts
52546
53616
  const SUPPORTED_LOADER_ENDPOINTS = SUPPORTED_LOADER_ENDPOINTS$1;
52547
53617
  function isSupportedLoaderEndpoint(endpoint) {