@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
@@ -1746,6 +1746,7 @@ const unsafeAsEventOfferingId = (id) => id;
1746
1746
  const unsafeAsEventSeriesId = (id) => id;
1747
1747
  const unsafeAsMediaAssetId = (id) => id;
1748
1748
  const unsafeAsUserId = (id) => id;
1749
+ const unsafeAsSiteTermsVersionId = (id) => id;
1749
1750
  const unsafeAsContentVersionId = (id) => id;
1750
1751
  const parseSiteId = (value) => parseUuidBrand(value, unsafeAsSiteId);
1751
1752
  const parseApiKeyId = (value) => parseUuidBrand(value, unsafeAsApiKeyId);
@@ -1753,6 +1754,7 @@ const parseEventOfferingId = (value) => parseUuidBrand(value, unsafeAsEventOffer
1753
1754
  const parseUserId = (value) => parseUuidBrand(value, unsafeAsUserId);
1754
1755
  const parseMediaAssetId = (value) => parseUuidBrand(value, unsafeAsMediaAssetId);
1755
1756
  const parseContentVersionId = (value) => parseUuidBrand(value, unsafeAsContentVersionId);
1757
+ const parseSiteTermsVersionId = (value) => parseUuidBrand(value, unsafeAsSiteTermsVersionId);
1756
1758
  const parseEventSeriesId = (value) => parseUuidBrand(value, unsafeAsEventSeriesId);
1757
1759
  //#endregion
1758
1760
  //#region ../core/src/assert-never.ts
@@ -2025,7 +2027,7 @@ function parseEventPageSurfaceDestinationMode(value) {
2025
2027
  return value === "cms-managed" || value === "system-managed" ? value : void 0;
2026
2028
  }
2027
2029
  function parseEventPageSurfaceSubject(value) {
2028
- if (!isRecord$11(value)) return err({ kind: "notObject" });
2030
+ if (!isRecord$12(value)) return err({ kind: "notObject" });
2029
2031
  switch (value.kind) {
2030
2032
  case "eventSeries": {
2031
2033
  const eventSeriesId = parseEventSeriesId(value.eventSeriesId);
@@ -2080,7 +2082,7 @@ function parseEventSeriesIdList(values) {
2080
2082
  }
2081
2083
  return ok(parsed);
2082
2084
  }
2083
- function isRecord$11(value) {
2085
+ function isRecord$12(value) {
2084
2086
  return typeof value === "object" && value !== null && !Array.isArray(value);
2085
2087
  }
2086
2088
  //#endregion
@@ -2098,14 +2100,23 @@ function validateBookingPaymentOptionKinds(kinds) {
2098
2100
  /** Shared Intl engine, internal to core's date presentation owners. */
2099
2101
  const FORMATTER_CACHE_LIMIT = 100;
2100
2102
  const dateTimeFormatterCache = /* @__PURE__ */ new Map();
2103
+ /** Intl's boolean clock option can select h11/h24 on other ICU builds. */
2104
+ function resolveClockCycle(format) {
2105
+ const { hour12, ...explicitFormat } = format;
2106
+ return hour12 === void 0 ? explicitFormat : {
2107
+ ...explicitFormat,
2108
+ hourCycle: hour12 ? "h12" : "h23"
2109
+ };
2110
+ }
2101
2111
  function getDateTimeFormatter(locale, timeZone, format) {
2102
- const key = `${locale}\u0000${timeZone}\u0000${JSON.stringify(Object.entries(format).sort(([left], [right]) => left.localeCompare(right)))}`;
2112
+ const explicitFormat = resolveClockCycle(format);
2113
+ const key = `${locale}\u0000${timeZone}\u0000${JSON.stringify(Object.entries(explicitFormat).sort(([left], [right]) => left.localeCompare(right)))}`;
2103
2114
  const cached = dateTimeFormatterCache.get(key);
2104
2115
  if (cached !== void 0) return cached;
2105
2116
  if (typeof locale !== "string" || Intl.DateTimeFormat.supportedLocalesOf([locale]).length === 0) throw new RangeError("An explicit supported locale is required");
2106
2117
  if (typeof timeZone !== "string" || timeZone.length === 0) throw new RangeError("An explicit time zone is required");
2107
2118
  const formatter = new Intl.DateTimeFormat(locale, {
2108
- ...format,
2119
+ ...explicitFormat,
2109
2120
  timeZone
2110
2121
  });
2111
2122
  if (dateTimeFormatterCache.size >= FORMATTER_CACHE_LIMIT) dateTimeFormatterCache.clear();
@@ -2175,7 +2186,7 @@ function getZonedDateTimeParts(date, timeZone) {
2175
2186
  hour: "2-digit",
2176
2187
  minute: "2-digit",
2177
2188
  second: "2-digit",
2178
- hour12: false
2189
+ hourCycle: "h23"
2179
2190
  });
2180
2191
  const read = (type) => Number(parts.get(type) ?? "");
2181
2192
  return {
@@ -2270,7 +2281,7 @@ function formatBookingDate(input, format = {
2270
2281
  function formatBookingTime(input, format = {
2271
2282
  hour: "numeric",
2272
2283
  minute: "2-digit",
2273
- hour12: true
2284
+ hourCycle: "h12"
2274
2285
  }) {
2275
2286
  return formatBookingInstant(input.startsAt, {
2276
2287
  locale: input.locale,
@@ -2406,6 +2417,38 @@ function toLocationCoordinates(value) {
2406
2417
  };
2407
2418
  }
2408
2419
  //#endregion
2420
+ //#region ../core/src/rich-text.ts
2421
+ function isRecord$11(value) {
2422
+ return typeof value === "object" && value !== null && !Array.isArray(value);
2423
+ }
2424
+ function hasOnlyKeys(value, allowed) {
2425
+ return Object.keys(value).every((key) => allowed.has(key));
2426
+ }
2427
+ const rootKeys = /* @__PURE__ */ new Set(["type", "content"]);
2428
+ const nodeKeys = /* @__PURE__ */ new Set([
2429
+ "type",
2430
+ "content",
2431
+ "text",
2432
+ "attrs",
2433
+ "marks"
2434
+ ]);
2435
+ const markKeys = /* @__PURE__ */ new Set(["type", "attrs"]);
2436
+ function isDenseArrayOf(value, predicate) {
2437
+ for (let index = 0; index < value.length; index += 1) if (!(index in value) || !predicate(value[index])) return false;
2438
+ return true;
2439
+ }
2440
+ function isTipTapMark(value) {
2441
+ return isRecord$11(value) && hasOnlyKeys(value, markKeys) && typeof value.type === "string" && value.type.length > 0 && (value.attrs === void 0 || isRecord$11(value.attrs));
2442
+ }
2443
+ function isTipTapNode(value) {
2444
+ if (!isRecord$11(value) || !hasOnlyKeys(value, nodeKeys) || typeof value.type !== "string" || value.type.length === 0 || value.type === "doc" || value.attrs !== void 0 && !isRecord$11(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;
2445
+ if (value.type === "text") return typeof value.text === "string" && value.text.length > 0 && value.content === void 0;
2446
+ return value.text === void 0;
2447
+ }
2448
+ function isCanonicalRichTextDoc(value) {
2449
+ return isRecord$11(value) && hasOnlyKeys(value, rootKeys) && value.type === "doc" && Array.isArray(value.content) && isDenseArrayOf(value.content, isTipTapNode);
2450
+ }
2451
+ //#endregion
2409
2452
  //#region ../core/src/mailing-list-identifiers.ts
2410
2453
  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;
2411
2454
  const OPAQUE_ID_PATTERN = /^[A-Za-z0-9_-]{1,100}$/u;
@@ -3749,6 +3792,7 @@ const EVENT_MANAGEMENT_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
3749
3792
  "validation:invalid_input",
3750
3793
  "resource:not_found",
3751
3794
  "resource:already_exists",
3795
+ "resource:conflict",
3752
3796
  "server:internal_error"
3753
3797
  ]
3754
3798
  },
@@ -7766,6 +7810,15 @@ const eyebrowTypographyStyleSchema = z.object({
7766
7810
  });
7767
7811
  const typographySchema = z.object({
7768
7812
  body: bodyTypographyStyleSchema,
7813
+ smallHeading: z.object({
7814
+ family: z.string().min(1),
7815
+ weight: z.enum([
7816
+ "regular",
7817
+ "medium",
7818
+ "semibold",
7819
+ "bold"
7820
+ ])
7821
+ }).optional(),
7769
7822
  headings: z.object({
7770
7823
  default: headingTypographyStyleSchema,
7771
7824
  h1: headingTypographyOverridesSchema,
@@ -9278,7 +9331,7 @@ function shadeCandidates(seedToken, palette) {
9278
9331
  const currentShade = match?.[2] ? Number(match[2]) : 500;
9279
9332
  const seedHex = palette[seedToken];
9280
9333
  const shades = Object.keys(palette).flatMap((token) => {
9281
- const shade = token.match(new RegExp(`^${escapeRegExp(family)}-(\\d{2,3})$`));
9334
+ const shade = token.match(new RegExp(`^${escapeRegExp$1(family)}-(\\d{2,3})$`));
9282
9335
  return shade?.[1] ? [Number(shade[1])] : [];
9283
9336
  }).filter((shade) => Number.isFinite(shade)).sort((left, right) => left - right);
9284
9337
  const lower = [...shades].filter((shade) => shade < currentShade).sort((left, right) => right - left);
@@ -9306,7 +9359,7 @@ function isSafeCandidate(token, palette, surface) {
9306
9359
  if (!hasSafeTextContrast(token, palette)) return false;
9307
9360
  return surface ? contrastRatio(palette[token] ?? "", surface.backgroundHex) >= BUTTON_CONTRAST_POLICY.nonTextMinimumRatio : true;
9308
9361
  }
9309
- function escapeRegExp(value) {
9362
+ function escapeRegExp$1(value) {
9310
9363
  return value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
9311
9364
  }
9312
9365
  //#endregion
@@ -9986,6 +10039,7 @@ function canonicalHoverToken(reference, palette) {
9986
10039
  }
9987
10040
  return canonicalToken(reference, palette);
9988
10041
  }
10042
+ /** Keep a candidate only when it meets ordinary-text contrast on the ground. */
9989
10043
  function safeTokenOr(candidate, fallback, backgroundHex, palette) {
9990
10044
  return firstSafeToken([candidate], backgroundHex, palette) ?? fallback;
9991
10045
  }
@@ -11739,7 +11793,11 @@ const BUTTON_STYLE_IDS = [
11739
11793
  "hairline-tab",
11740
11794
  "marquee"
11741
11795
  ];
11742
- const quietArrowParametersSchema = z.object({ secondaryTreatment: z.enum(["outlined", "solid-accent"]) }).strict();
11796
+ const quietArrowParametersSchema = z.object({
11797
+ secondaryTreatment: z.enum(["outlined", "solid-accent"]),
11798
+ size: z.enum(["comfortable"]).optional(),
11799
+ hoverTreatment: z.enum(["deep-and-sheet"]).optional()
11800
+ }).strict();
11743
11801
  const flatInkHoverTreatmentSchema = z.enum([
11744
11802
  "contextual",
11745
11803
  "secondary",
@@ -12196,6 +12254,63 @@ const solidAccentSecondary = {
12196
12254
  },
12197
12255
  affordance: { iconId: "ArrowRight" }
12198
12256
  };
12257
+ /** Selection-owned sizing leaves historical recipe output unchanged when absent. */
12258
+ function sizedQuietArrowRoles(roles, size) {
12259
+ if (size === void 0) return roles;
12260
+ return mapButtonRoleAppearances(roles, (appearance) => ({
12261
+ ...appearance,
12262
+ states: mapButtonVisualAppearances(appearance.states, (state) => ({
12263
+ ...state,
12264
+ sizes: {
12265
+ sm: {
12266
+ padding: "0.875rem 1.125rem",
12267
+ fontSize: "text-xs"
12268
+ },
12269
+ md: {
12270
+ padding: "0.75rem 1.375rem",
12271
+ fontSize: "text-sm"
12272
+ },
12273
+ lg: {
12274
+ padding: "0.875rem 1.75rem",
12275
+ fontSize: "text-sm"
12276
+ },
12277
+ xl: {
12278
+ padding: "1rem 2rem",
12279
+ fontSize: "text-base"
12280
+ }
12281
+ }
12282
+ }))
12283
+ }));
12284
+ }
12285
+ /** Forward sheet interaction is explicit selection data; absent preserves the captured recipe. */
12286
+ function quietArrowHoverRoles(roles, treatment) {
12287
+ if (treatment === void 0) return roles;
12288
+ const hover = (role, colour) => ({
12289
+ ...roles[role],
12290
+ states: {
12291
+ ...roles[role].states,
12292
+ hover: {
12293
+ ...roles[role].states.hover,
12294
+ background: {
12295
+ type: "solid",
12296
+ colorToken: unsafeAsOpaqueButtonColourToken(colour)
12297
+ },
12298
+ text: "treatment",
12299
+ effects: [],
12300
+ ...role === "secondary" ? { border: {
12301
+ widthClass: "border",
12302
+ marksBoundary: true,
12303
+ boundaryInk: unsafeAsOpaqueButtonColourToken("text")
12304
+ } } : {}
12305
+ }
12306
+ }
12307
+ });
12308
+ return {
12309
+ ...roles,
12310
+ primary: hover("primary", "primary-800"),
12311
+ secondary: hover("secondary", "surface")
12312
+ };
12313
+ }
12199
12314
  const quietArrowRecipe = defineButtonStyleRecipe({
12200
12315
  id: "quiet-arrow",
12201
12316
  accessibilityLabel: "Wide uppercase buttons with trailing arrows",
@@ -12219,10 +12334,10 @@ const quietArrowRecipe = defineButtonStyleRecipe({
12219
12334
  label: "Solid accent"
12220
12335
  }]
12221
12336
  }],
12222
- defineSystem: (parameters) => ({ roles: {
12337
+ defineSystem: (parameters) => ({ roles: quietArrowHoverRoles(sizedQuietArrowRoles({
12223
12338
  ...quietArrowSystem.roles,
12224
12339
  secondary: parameters.secondaryTreatment === "solid-accent" ? solidAccentSecondary : quietArrowSystem.roles.secondary
12225
- } })
12340
+ }, parameters.size), parameters.hoverTreatment) })
12226
12341
  });
12227
12342
  //#endregion
12228
12343
  //#region ../theme-core/src/buttons/styles/recipes/flatInk.ts
@@ -16004,7 +16119,11 @@ function resolveSurface(spec, context) {
16004
16119
  token: spec.token
16005
16120
  }, {
16006
16121
  ...context,
16007
- buttonContext: spec.buttonContext ?? context.buttonContext
16122
+ buttonContext: spec.buttonContext ?? context.buttonContext,
16123
+ ...spec.foreground ? { foreground: {
16124
+ ...context.foreground,
16125
+ ...spec.foreground
16126
+ } } : {}
16008
16127
  });
16009
16128
  case "tint": return resolveTintSurface(spec, context);
16010
16129
  }
@@ -17079,6 +17198,7 @@ const headerContainerSchema = z.object({
17079
17198
  "lg"
17080
17199
  ]).default("md"),
17081
17200
  tint: z.string().nullable().optional(),
17201
+ mobileSheet: z.literal("inset").optional(),
17082
17202
  opacity: z.number().min(0).max(1).default(.12)
17083
17203
  }).optional();
17084
17204
  //#endregion
@@ -17798,8 +17918,12 @@ const cardListKnobBlocks = [...cardListFamilyBlocks, "block.event-calendar"];
17798
17918
  const lookKnobBlocks = {
17799
17919
  actionStyle: cardListKnobBlocks,
17800
17920
  titleSize: "block.hero",
17801
- imagePosition: ["block.hero", "block.media-text"],
17802
- imageShape: "block.media-text",
17921
+ imagePosition: [
17922
+ "block.hero",
17923
+ "block.intro",
17924
+ "block.media-text"
17925
+ ],
17926
+ imageShape: ["block.intro", "block.media-text"],
17803
17927
  aspectRatio: "block.media-text",
17804
17928
  stickerLine: "block.hero",
17805
17929
  smallCaption: "block.hero",
@@ -17843,6 +17967,7 @@ function cardListKnobDefaults(block, arrangement, knobs, defaults) {
17843
17967
  }
17844
17968
  const arrangementLookTargets = {
17845
17969
  hero: "hero",
17970
+ intro: "intro",
17846
17971
  "feature-cards": "feature-cards",
17847
17972
  "event-calendar": "events",
17848
17973
  testimonials: "testimonials",
@@ -18680,14 +18805,20 @@ const appearancePresets = [
18680
18805
  }
18681
18806
  }),
18682
18807
  defineArrangementLook("body-text-reading-column", "body-text", "Reading column", "prose", []),
18683
- defineArrangementLook("form-beside-introduction-arched-panel", "form", "Introduction beside an arched form", "two-column", [], { slotRoles: { panel: "card" } }),
18684
- defineArrangementLook("newsletter-signup-in-arch", "newsletter-signup", "Signup in an arch", "arch", []),
18808
+ defineArrangementLook("form-beside-introduction-arched-panel", "form", "Introduction beside an arched form", "two-column", [], {
18809
+ slotRoles: { panel: "card" },
18810
+ styleFallback: [id$1("form-below-introduction")]
18811
+ }),
18812
+ defineArrangementLook("newsletter-signup-in-arch", "newsletter-signup", "Signup in an arch", "arch", [], { styleFallback: [id$1("newsletter-signup-text-beside")] }),
18685
18813
  defineArrangementLook("image-gallery-square-tiles", "image-gallery", "Square tiles", "tiles", []),
18686
18814
  defineArrangementLook("image-gallery-arched-captions", "image-gallery", "Arched photos with captions", "tiles", [], { styleFallback: [id$1("image-gallery-square-tiles")] }),
18687
- defineArrangementLook("media-text-circle-beside-text", "media-text", "Circle beside the text", "circle-beside", ["imagePosition"], { forcedKnobs: {
18688
- imageShape: "circle",
18689
- aspectRatio: "1/1"
18690
- } }),
18815
+ defineArrangementLook("media-text-circle-beside-text", "media-text", "Circle beside the text", "circle-beside", ["imagePosition"], {
18816
+ forcedKnobs: {
18817
+ imageShape: "circle",
18818
+ aspectRatio: "1/1"
18819
+ },
18820
+ styleFallback: [id$1("media-text-photo-beside-text")]
18821
+ }),
18691
18822
  defineArrangementLook("hero-photo-beside-text", "hero", "Photo beside the text", "split", heroKnobs, { slotRoles: { sticker: "highlight" } }),
18692
18823
  defineArrangementLook("hero-headline-row", "hero", "Big headline, then text and photo", "headline-row", heroKnobs, {
18693
18824
  slotRoles: { sticker: "highlight" },
@@ -18708,6 +18839,15 @@ const appearancePresets = [
18708
18839
  "text",
18709
18840
  "action"
18710
18841
  ], ["showPhotos", "cardMarker"], { itemRoles: { items: "card" } }),
18842
+ defineCardListLook("card-list-accent-edged-cards", "Accent-edged cards", "cards", [
18843
+ "media",
18844
+ "title",
18845
+ "text",
18846
+ "action"
18847
+ ], ["showPhotos", "cardMarker"], {
18848
+ itemRoles: { items: "card" },
18849
+ styleFallback: [id$1("feature-cards-cards")]
18850
+ }),
18711
18851
  defineCardListLook("feature-cards-open-columns", "Open columns", "cards", [
18712
18852
  "media",
18713
18853
  "title",
@@ -18818,6 +18958,52 @@ const appearancePresets = [
18818
18958
  defineArrangementLook("event-details-panel", "event-details", "Details panel", "details-panel", [], {
18819
18959
  slotRoles: { panel: "card" },
18820
18960
  styleFallback: [id$1("event-details-header")]
18961
+ }),
18962
+ defineArrangementLook("intro-statement-beside-text", "intro", "Big statement beside the text", "statement-copy", [], { styleFallback: [id$1("intro-photo-beside-text")] }),
18963
+ defineArrangementLook("intro-photo-beside-text", "intro", "Small photo beside the text", "media-copy", ["imagePosition", "imageShape"], { whenMissing: [{
18964
+ fact: "photo",
18965
+ look: id$1("intro-statement-beside-text")
18966
+ }] }),
18967
+ defineArrangementLook("media-text-photo-beside-text", "media-text", "Photo beside the text", "default", ["imagePosition", "imageShape"]),
18968
+ defineArrangementLook("newsletter-signup-one-row", "newsletter-signup", "Signup in one row", "inline", [], {
18969
+ slotRoles: { panel: "card" },
18970
+ styleFallback: [id$1("newsletter-signup-text-beside")]
18971
+ }),
18972
+ defineArrangementLook("newsletter-signup-text-beside", "newsletter-signup", "Text beside the signup", "editorial-split", [], {
18973
+ slotRoles: { panel: "card" },
18974
+ styleFallback: [id$1("newsletter-signup-in-arch")]
18975
+ }),
18976
+ defineArrangementLook("form-below-introduction", "form", "Form below its introduction", "default", [], {
18977
+ slotRoles: { panel: "card" },
18978
+ styleFallback: [id$1("form-beside-introduction-arched-panel")]
18979
+ }),
18980
+ defineCardListLook("card-list-wide-slides", "Wide cards, one at a time", "slides", [
18981
+ "media",
18982
+ "title",
18983
+ "text",
18984
+ "action"
18985
+ ], ["showPhotos"], {
18986
+ itemRoles: { items: "card" },
18987
+ slotRoles: { date: "highlight" },
18988
+ knobDefaults: {
18989
+ actionStyle: "button",
18990
+ dates: "summary"
18991
+ },
18992
+ styleFallback: [id$1("card-list-plates"), id$1("feature-cards-cards")]
18993
+ }),
18994
+ defineCardListLook("card-list-scroll-row", "A row of cards you can scroll", "track", [
18995
+ "media",
18996
+ "title",
18997
+ "text",
18998
+ "action"
18999
+ ], ["showPhotos"], {
19000
+ itemRoles: { items: "card" },
19001
+ slotRoles: { date: "highlight" },
19002
+ knobDefaults: {
19003
+ actionStyle: "button",
19004
+ dates: "summary"
19005
+ },
19006
+ styleFallback: [id$1("feature-cards-cards")]
18821
19007
  })
18822
19008
  ];
18823
19009
  //#endregion
@@ -19480,6 +19666,9 @@ const arrangementSlotNames = [
19480
19666
  "social",
19481
19667
  "base",
19482
19668
  "section",
19669
+ "background",
19670
+ "schedule-section",
19671
+ "shop-section",
19483
19672
  "stack",
19484
19673
  "inline",
19485
19674
  "grid",
@@ -20799,6 +20988,36 @@ const groundedSerifTypography = {
20799
20988
  },
20800
20989
  scale: "balanced"
20801
20990
  };
20991
+ /** Folio keeps the practitioner pairing, with a larger serif and working sans names. */
20992
+ const folioTypography = {
20993
+ ...groundedSerifTypography,
20994
+ body: {
20995
+ ...groundedSerifTypography.body,
20996
+ family: "Open Sans, system-ui, sans-serif",
20997
+ size: "lg"
20998
+ },
20999
+ smallHeading: {
21000
+ family: "Open Sans, system-ui, sans-serif",
21001
+ weight: "semibold"
21002
+ },
21003
+ headings: {
21004
+ ...groundedSerifTypography.headings,
21005
+ h1: {
21006
+ ...groundedSerifTypography.headings.h1,
21007
+ lineHeight: "tight",
21008
+ letterSpacing: "tight"
21009
+ },
21010
+ h2: {
21011
+ ...groundedSerifTypography.headings.h2,
21012
+ lineHeight: "tight",
21013
+ letterSpacing: "tight"
21014
+ },
21015
+ h3: {
21016
+ ...groundedSerifTypography.headings.h3,
21017
+ lineHeight: "tight"
21018
+ }
21019
+ }
21020
+ };
20802
21021
  const kirtanOrnateTypography = {
20803
21022
  body: {
20804
21023
  family: "Jost, system-ui, sans-serif",
@@ -21590,7 +21809,8 @@ const curatedSiteStyleIdValues = [
21590
21809
  "site-style:grounded-practice",
21591
21810
  "site-style:poster",
21592
21811
  "site-style:lantern",
21593
- "site-style:measure"
21812
+ "site-style:measure",
21813
+ "site-style:folio"
21594
21814
  ];
21595
21815
  const quietBudget = {
21596
21816
  accentDensity: "low",
@@ -21919,6 +22139,30 @@ const headerCurationBySiteStyle = {
21919
22139
  "fine-line"
21920
22140
  ]
21921
22141
  }]),
22142
+ "site-style:folio": defineHeaderCuration([
22143
+ {
22144
+ layoutId: "floating",
22145
+ styleIds: ["minimal-surface", "glass"]
22146
+ },
22147
+ {
22148
+ layoutId: "classic",
22149
+ styleIds: [
22150
+ "minimal",
22151
+ "serif-line",
22152
+ "fine-line",
22153
+ "soft-bar"
22154
+ ]
22155
+ },
22156
+ {
22157
+ layoutId: "centered",
22158
+ styleIds: [
22159
+ "serif-line",
22160
+ "fine-line",
22161
+ "minimal",
22162
+ "soft-bar"
22163
+ ]
22164
+ }
22165
+ ]),
21922
22166
  "site-style:measure": defineHeaderCuration([{
21923
22167
  layoutId: "classic",
21924
22168
  styleIds: ["fine-line", "minimal"]
@@ -21948,6 +22192,7 @@ function defineCuratedSiteStyle(input) {
21948
22192
  recommendedAppearancePresetIds
21949
22193
  },
21950
22194
  headerCuration: headerCurationBySiteStyle[input.id],
22195
+ headerStyleRecipes: input.headerStyleRecipes,
21951
22196
  footerLookRecipes: input.footerLookRecipes,
21952
22197
  recommendedFooterLookIds: (input.recommendedFooterLookIds ?? []).map(asFooterLookId),
21953
22198
  buttonStyleChoices: input.buttonStyleChoices,
@@ -21981,6 +22226,233 @@ function paletteRecommendation(authoringKey, note) {
21981
22226
  const id = asAppearancePresetId;
21982
22227
  const quieterOrStandard = { titleSize: ["quiet", "auto"] };
21983
22228
  /** Fulcrum: cards are white sheets, the statement is the brand band, stickers are sheets too. */
22229
+ const folioRoles = {
22230
+ card: "sheet",
22231
+ statement: {
22232
+ default: "band",
22233
+ band: "sheet"
22234
+ },
22235
+ highlight: "band"
22236
+ };
22237
+ const folioLinks = { link: "primary" };
22238
+ const folioLooks = {
22239
+ kind: "offers",
22240
+ skin: "folio",
22241
+ skinTokens: {
22242
+ radius: "10px",
22243
+ rule: "1px",
22244
+ "mark-length": "44px",
22245
+ "mark-weight": "2px",
22246
+ gutter: "32px",
22247
+ "copy-gap": "1.25rem",
22248
+ "stack-gap": "2.5rem"
22249
+ },
22250
+ fontLoading: {
22251
+ extraHeadingFontWeights: [600],
22252
+ italicHeadingFontWeights: [500]
22253
+ },
22254
+ surfaces: {
22255
+ base: {
22256
+ kind: "token",
22257
+ token: "background",
22258
+ foreground: folioLinks
22259
+ },
22260
+ sheet: {
22261
+ kind: "token",
22262
+ token: "surface",
22263
+ roleOnly: true,
22264
+ foreground: folioLinks
22265
+ },
22266
+ band: {
22267
+ kind: "token",
22268
+ token: "muted",
22269
+ foreground: folioLinks
22270
+ },
22271
+ brand: {
22272
+ kind: "token",
22273
+ token: "primary",
22274
+ foreground: folioLinks
22275
+ },
22276
+ deep: {
22277
+ kind: "token",
22278
+ token: "primary-800",
22279
+ foreground: folioLinks
22280
+ }
22281
+ },
22282
+ rhythm: {
22283
+ "flow:quiet": [
22284
+ "base",
22285
+ "base",
22286
+ "band",
22287
+ "base",
22288
+ "band",
22289
+ "base"
22290
+ ],
22291
+ "flow:balanced": [
22292
+ "base",
22293
+ "band",
22294
+ "base",
22295
+ "deep",
22296
+ "base",
22297
+ "band"
22298
+ ],
22299
+ "flow:expressive": [
22300
+ "base",
22301
+ "band",
22302
+ "deep",
22303
+ "base",
22304
+ "band",
22305
+ "brand"
22306
+ ]
22307
+ },
22308
+ offers: [
22309
+ {
22310
+ id: id("hero-photo-beside-text"),
22311
+ treatment: "hero-framed",
22312
+ knobValues: quieterOrStandard,
22313
+ roleMap: folioRoles
22314
+ },
22315
+ {
22316
+ id: id("hero-photo-behind-text"),
22317
+ treatment: "hero-panel",
22318
+ knobValues: quieterOrStandard,
22319
+ roleMap: folioRoles
22320
+ },
22321
+ {
22322
+ id: id("hero-page-head"),
22323
+ treatment: "hero-ruled",
22324
+ knobValues: quieterOrStandard,
22325
+ roleMap: folioRoles
22326
+ },
22327
+ {
22328
+ id: id("intro-photo-beside-text"),
22329
+ treatment: "intro-keyline",
22330
+ roleMap: folioRoles
22331
+ },
22332
+ {
22333
+ id: id("intro-statement-beside-text"),
22334
+ treatment: "intro-ruled-split",
22335
+ roleMap: folioRoles
22336
+ },
22337
+ {
22338
+ id: id("media-text-photo-beside-text"),
22339
+ treatment: "media-mount",
22340
+ roleMap: folioRoles
22341
+ },
22342
+ {
22343
+ id: id("media-text-circle-beside-text"),
22344
+ treatment: "media-circle",
22345
+ roleMap: folioRoles
22346
+ },
22347
+ {
22348
+ id: id("feature-cards-cards"),
22349
+ treatment: "cards-sheet",
22350
+ roleMap: folioRoles
22351
+ },
22352
+ {
22353
+ id: id("feature-cards-open-columns"),
22354
+ treatment: "cards-open",
22355
+ roleMap: folioRoles
22356
+ },
22357
+ {
22358
+ id: id("feature-cards-index"),
22359
+ treatment: "cards-register",
22360
+ roleMap: folioRoles
22361
+ },
22362
+ {
22363
+ id: id("body-text-reading-column"),
22364
+ treatment: "body-reading",
22365
+ roleMap: folioRoles
22366
+ },
22367
+ {
22368
+ id: id("event-calendar-ruled-rows"),
22369
+ treatment: "calendar-card",
22370
+ itemRoles: { container: "card" },
22371
+ surfaceTints: { date: {
22372
+ source: "text",
22373
+ opacity: 8
22374
+ } },
22375
+ roleMap: folioRoles
22376
+ },
22377
+ {
22378
+ id: id("event-calendar-session-cards"),
22379
+ treatment: "calendar-sheets",
22380
+ roleMap: folioRoles
22381
+ },
22382
+ {
22383
+ id: id("event-calendar-next-three"),
22384
+ treatment: "calendar-compact",
22385
+ roleMap: folioRoles
22386
+ },
22387
+ {
22388
+ id: id("event-calendar-month-grid"),
22389
+ treatment: "calendar-month",
22390
+ roleMap: folioRoles
22391
+ },
22392
+ {
22393
+ id: id("event-details-panel"),
22394
+ treatment: "details-sheet",
22395
+ roleMap: {
22396
+ ...folioRoles,
22397
+ card: "section"
22398
+ }
22399
+ },
22400
+ {
22401
+ id: id("event-details-header"),
22402
+ treatment: "details-ruled",
22403
+ roleMap: folioRoles
22404
+ },
22405
+ {
22406
+ id: id("newsletter-signup-text-beside"),
22407
+ treatment: "signup-sheet",
22408
+ roleMap: {
22409
+ ...folioRoles,
22410
+ card: "section"
22411
+ }
22412
+ },
22413
+ {
22414
+ id: id("newsletter-signup-one-row"),
22415
+ treatment: "signup-row",
22416
+ roleMap: {
22417
+ ...folioRoles,
22418
+ card: "section"
22419
+ }
22420
+ },
22421
+ {
22422
+ id: id("form-below-introduction"),
22423
+ treatment: "form-sheet-below",
22424
+ roleMap: {
22425
+ ...folioRoles,
22426
+ card: "section"
22427
+ }
22428
+ },
22429
+ {
22430
+ id: id("testimonials-lead-quote"),
22431
+ treatment: "quote-lead",
22432
+ roleMap: folioRoles
22433
+ },
22434
+ {
22435
+ id: id("testimonials-quote-cards"),
22436
+ treatment: "quote-sheets",
22437
+ roleMap: folioRoles
22438
+ },
22439
+ {
22440
+ id: id("card-list-accent-edged-cards"),
22441
+ treatment: "cards-accent-edged",
22442
+ roleMap: folioRoles
22443
+ },
22444
+ {
22445
+ id: id("card-list-wide-slides"),
22446
+ treatment: "carousel-wide-sheet",
22447
+ roleMap: folioRoles
22448
+ },
22449
+ {
22450
+ id: id("card-list-scroll-row"),
22451
+ treatment: "carousel-row-sheet",
22452
+ roleMap: folioRoles
22453
+ }
22454
+ ]
22455
+ };
21984
22456
  const fulcrumRoles = {
21985
22457
  card: "sheet",
21986
22458
  statement: {
@@ -22187,6 +22659,55 @@ const fulcrumLooks = {
22187
22659
  id: id("testimonials-scroll-row"),
22188
22660
  treatment: "cards",
22189
22661
  roleMap: fulcrumRoles
22662
+ },
22663
+ {
22664
+ id: id("intro-photo-beside-text"),
22665
+ treatment: "intro-plate",
22666
+ roleMap: fulcrumRoles
22667
+ },
22668
+ {
22669
+ id: id("intro-statement-beside-text"),
22670
+ treatment: "lintel",
22671
+ roleMap: fulcrumRoles
22672
+ },
22673
+ {
22674
+ id: id("media-text-photo-beside-text"),
22675
+ treatment: "beside-plate",
22676
+ roleMap: fulcrumRoles
22677
+ },
22678
+ {
22679
+ id: id("newsletter-signup-one-row"),
22680
+ treatment: "signup-strip",
22681
+ roleMap: {
22682
+ ...fulcrumRoles,
22683
+ card: "section"
22684
+ }
22685
+ },
22686
+ {
22687
+ id: id("newsletter-signup-text-beside"),
22688
+ treatment: "signup-beside-panel",
22689
+ roleMap: fulcrumRoles
22690
+ },
22691
+ {
22692
+ id: id("form-below-introduction"),
22693
+ treatment: "form-sheet",
22694
+ roleMap: fulcrumRoles
22695
+ },
22696
+ {
22697
+ id: id("card-list-wide-slides"),
22698
+ treatment: "carousel-wide-plate",
22699
+ roleMap: fulcrumRoles,
22700
+ knobValues: { actionStyle: ["link"] }
22701
+ },
22702
+ {
22703
+ id: id("card-list-scroll-row"),
22704
+ treatment: "carousel-row-cards",
22705
+ roleMap: fulcrumRoles
22706
+ },
22707
+ {
22708
+ id: id("card-list-accent-edged-cards"),
22709
+ treatment: "cards-accent-edged",
22710
+ roleMap: fulcrumRoles
22190
22711
  }
22191
22712
  ]
22192
22713
  };
@@ -22318,6 +22839,49 @@ const posterOffers = [
22318
22839
  id: id("testimonials-scroll-row"),
22319
22840
  treatment: "punchy",
22320
22841
  roleMap: posterRoles
22842
+ },
22843
+ {
22844
+ id: id("intro-photo-beside-text"),
22845
+ treatment: "ink-edge",
22846
+ roleMap: posterRoles
22847
+ },
22848
+ {
22849
+ id: id("intro-statement-beside-text"),
22850
+ treatment: "headline",
22851
+ roleMap: posterRoles
22852
+ },
22853
+ {
22854
+ id: id("media-text-photo-beside-text"),
22855
+ treatment: "beside-slab",
22856
+ roleMap: posterRoles
22857
+ },
22858
+ {
22859
+ id: id("newsletter-signup-one-row"),
22860
+ treatment: "signup-ticket",
22861
+ roleMap: posterRoles
22862
+ },
22863
+ {
22864
+ id: id("newsletter-signup-text-beside"),
22865
+ treatment: "signup-block",
22866
+ roleMap: {
22867
+ ...posterRoles,
22868
+ card: "pop"
22869
+ }
22870
+ },
22871
+ {
22872
+ id: id("form-below-introduction"),
22873
+ treatment: "form-heavy",
22874
+ roleMap: posterRoles
22875
+ },
22876
+ {
22877
+ id: id("card-list-wide-slides"),
22878
+ treatment: "carousel-wide-stamp",
22879
+ roleMap: posterRoles
22880
+ },
22881
+ {
22882
+ id: id("card-list-scroll-row"),
22883
+ treatment: "carousel-row-punchy",
22884
+ roleMap: posterRoles
22321
22885
  }
22322
22886
  ];
22323
22887
  const posterLooks = {
@@ -22662,6 +23226,48 @@ const lanternLooks = {
22662
23226
  treatment: "quote-arch",
22663
23227
  addKnobs: ["archFrame"],
22664
23228
  roleMap: lanternRoles
23229
+ },
23230
+ {
23231
+ id: id("testimonials-scroll-row"),
23232
+ treatment: "quote-row-cards",
23233
+ addKnobs: ["archFrame"],
23234
+ roleMap: lanternRoles
23235
+ },
23236
+ {
23237
+ id: id("intro-photo-beside-text"),
23238
+ treatment: "ringed",
23239
+ roleMap: lanternRoles
23240
+ },
23241
+ {
23242
+ id: id("intro-statement-beside-text"),
23243
+ treatment: "divided",
23244
+ roleMap: lanternRoles
23245
+ },
23246
+ {
23247
+ id: id("media-text-photo-beside-text"),
23248
+ treatment: "outlined",
23249
+ roleMap: lanternRoles
23250
+ },
23251
+ {
23252
+ id: id("newsletter-signup-text-beside"),
23253
+ treatment: "signup-beside-arch",
23254
+ addKnobs: ["archFrame"],
23255
+ roleMap: lanternRoles
23256
+ },
23257
+ {
23258
+ id: id("form-below-introduction"),
23259
+ treatment: "form-arch-below",
23260
+ roleMap: lanternRoles
23261
+ },
23262
+ {
23263
+ id: id("card-list-wide-slides"),
23264
+ treatment: "carousel-wide-arch",
23265
+ roleMap: lanternRoles
23266
+ },
23267
+ {
23268
+ id: id("card-list-scroll-row"),
23269
+ treatment: "carousel-row-cards",
23270
+ roleMap: lanternRoles
22665
23271
  }
22666
23272
  ]
22667
23273
  };
@@ -22850,6 +23456,51 @@ const measureLooks = {
22850
23456
  id: id("testimonials-one-at-a-time"),
22851
23457
  treatment: "counter",
22852
23458
  roleMap: measureRoles
23459
+ },
23460
+ {
23461
+ id: id("testimonials-scroll-row"),
23462
+ treatment: "quote-row-hairline",
23463
+ roleMap: measureRuledPanelRoles
23464
+ },
23465
+ {
23466
+ id: id("intro-photo-beside-text"),
23467
+ treatment: "rail-photo",
23468
+ roleMap: measureRoles
23469
+ },
23470
+ {
23471
+ id: id("intro-statement-beside-text"),
23472
+ treatment: "rule-split",
23473
+ roleMap: measureRoles
23474
+ },
23475
+ {
23476
+ id: id("media-text-photo-beside-text"),
23477
+ treatment: "beside-grid",
23478
+ roleMap: measureRoles
23479
+ },
23480
+ {
23481
+ id: id("newsletter-signup-one-row"),
23482
+ treatment: "signup-rail-row",
23483
+ roleMap: measureRuledPanelRoles
23484
+ },
23485
+ {
23486
+ id: id("newsletter-signup-text-beside"),
23487
+ treatment: "signup-split",
23488
+ roleMap: measureRoles
23489
+ },
23490
+ {
23491
+ id: id("form-below-introduction"),
23492
+ treatment: "form-rail",
23493
+ roleMap: measureRuledPanelRoles
23494
+ },
23495
+ {
23496
+ id: id("card-list-wide-slides"),
23497
+ treatment: "carousel-wide-sheet",
23498
+ roleMap: measureRoles
23499
+ },
23500
+ {
23501
+ id: id("card-list-scroll-row"),
23502
+ treatment: "carousel-row-sheets",
23503
+ roleMap: measureRoles
22853
23504
  }
22854
23505
  ]
22855
23506
  };
@@ -23313,7 +23964,10 @@ const curatedSiteStyles = [
23313
23964
  headingDecoration: noHeadingDecoration,
23314
23965
  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.",
23315
23966
  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.",
23316
- offering: { kind: "lab" },
23967
+ offering: {
23968
+ kind: "public",
23969
+ generation: { kind: "explicit_only" }
23970
+ },
23317
23971
  tokenRecipes: {
23318
23972
  palette: "brand-led",
23319
23973
  contrast: "standard",
@@ -23448,7 +24102,10 @@ const curatedSiteStyles = [
23448
24102
  headingDecoration: noHeadingDecoration,
23449
24103
  description: "Loud but controlled: huge condensed type, flat colour blocks, hard offset shadows on anything you can press, and one sticker for the news.",
23450
24104
  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.",
23451
- offering: { kind: "lab" },
24105
+ offering: {
24106
+ kind: "public",
24107
+ generation: { kind: "explicit_only" }
24108
+ },
23452
24109
  tokenRecipes: {
23453
24110
  palette: "brand-led",
23454
24111
  contrast: "strong",
@@ -23500,8 +24157,8 @@ const curatedSiteStyles = [
23500
24157
  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.",
23501
24158
  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.",
23502
24159
  offering: {
23503
- kind: "client",
23504
- siteSlugs: ["kirtan-lucy"]
24160
+ kind: "public",
24161
+ generation: { kind: "explicit_only" }
23505
24162
  },
23506
24163
  tokenRecipes: {
23507
24164
  palette: "brand-led",
@@ -23559,7 +24216,10 @@ const curatedSiteStyles = [
23559
24216
  headingDecoration: noHeadingDecoration,
23560
24217
  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.",
23561
24218
  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.",
23562
- offering: { kind: "lab" },
24219
+ offering: {
24220
+ kind: "public",
24221
+ generation: { kind: "explicit_only" }
24222
+ },
23563
24223
  tokenRecipes: {
23564
24224
  palette: "brand-led",
23565
24225
  contrast: "strong",
@@ -23588,6 +24248,104 @@ const curatedSiteStyles = [
23588
24248
  paletteRecommendation("measure-plaster"),
23589
24249
  paletteRecommendation("measure-night")
23590
24250
  ]
24251
+ }),
24252
+ defineCuratedSiteStyle({
24253
+ id: "site-style:folio",
24254
+ name: "Folio",
24255
+ offering: {
24256
+ kind: "public",
24257
+ generation: { kind: "explicit_only" }
24258
+ },
24259
+ 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.",
24260
+ generationBrief: "Use restrained serif headings, clear sans-serif body copy, natural photography, practical calls to action and concrete class and workshop details.",
24261
+ headingDecoration: noHeadingDecoration,
24262
+ tokenRecipes: {
24263
+ palette: "warm-neutral",
24264
+ contrast: "standard",
24265
+ radius: "soft",
24266
+ shadow: "none",
24267
+ typography: "classic-serif",
24268
+ spacing: "airy",
24269
+ motion: "subtle"
24270
+ },
24271
+ compositionBudget: accentLedQuietBudget,
24272
+ typography: folioTypography,
24273
+ heroTypography: groundedSerifHeroTypography,
24274
+ looks: folioLooks,
24275
+ contentTemplateDefaults: { event: "event-header" },
24276
+ themeOverrides: {
24277
+ accordions: editorialDividedAccordionSystem,
24278
+ testimonialQuote: serifDisplayQuote
24279
+ },
24280
+ headerStyleRecipes: { "minimal-surface": {
24281
+ tone: "neutral",
24282
+ background: { kind: "transparent" },
24283
+ nav: {
24284
+ kind: "minimal",
24285
+ hoverColorToken: "primary"
24286
+ },
24287
+ navWeight: "medium",
24288
+ navLinkWeight: "medium",
24289
+ navTypography: "plain",
24290
+ border: "none",
24291
+ shadow: { kind: "absent" },
24292
+ frame: {
24293
+ kind: "container",
24294
+ rounded: "lg",
24295
+ padding: "sm",
24296
+ tint: "background",
24297
+ opacity: 1,
24298
+ shadow: false,
24299
+ mobileSheet: "inset"
24300
+ },
24301
+ cta: { treatment: "default" },
24302
+ openingPlacement: "photo-behind-text"
24303
+ } },
24304
+ footerLookRecipes: { "footer-links-row": {
24305
+ arrangement: "simple",
24306
+ ground: {
24307
+ kind: "token",
24308
+ token: "surface"
24309
+ },
24310
+ nav: {
24311
+ weight: "regular",
24312
+ colorToken: "text",
24313
+ hoverColorToken: "primary",
24314
+ typography: "body"
24315
+ },
24316
+ legal: {
24317
+ kind: "separate",
24318
+ bar: {
24319
+ fullBleed: false,
24320
+ background: {
24321
+ kind: "token",
24322
+ token: "surface"
24323
+ },
24324
+ textColor: "text",
24325
+ textAlign: "left",
24326
+ paddingY: "tight",
24327
+ paddingX: "none",
24328
+ borderTop: { width: "none" }
24329
+ }
24330
+ },
24331
+ brandAlign: "start",
24332
+ brandLogoSize: "md"
24333
+ } },
24334
+ recommendedFooterLookIds: ["footer-links-row"],
24335
+ buttonStyleChoices: [
24336
+ buttonChoice("quiet-arrow", void 0, {
24337
+ secondaryTreatment: "solid-accent",
24338
+ size: "comfortable",
24339
+ hoverTreatment: "deep-and-sheet"
24340
+ }),
24341
+ buttonChoice("flat-ink"),
24342
+ buttonChoice("editorial-link")
24343
+ ],
24344
+ paletteRecommendations: [
24345
+ paletteRecommendation("warm-neutral-forest"),
24346
+ paletteRecommendation("soft-natural-sage"),
24347
+ paletteRecommendation("soft-natural-stone")
24348
+ ]
23591
24349
  })
23592
24350
  ];
23593
24351
  new Map(curatedSiteStyles.map((style) => [style.id, style]));
@@ -24074,6 +24832,27 @@ z.object({
24074
24832
  motion: z.enum(themeTokenRecipeOptions.motion)
24075
24833
  });
24076
24834
  //#endregion
24835
+ //#region ../theme-core/src/responsiveMode.ts
24836
+ const THEME_RESPONSIVE_MODE_ATTR = "data-rb-responsive-mode";
24837
+ function escapeRegExp(value) {
24838
+ return value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
24839
+ }
24840
+ new RegExp(buildResponsiveScopeRulePatternSource(), "g");
24841
+ new RegExp(buildResponsiveScopeRulePatternSource(), "y");
24842
+ function buildResponsiveScopeRulePatternSource() {
24843
+ return [
24844
+ "@scope",
24845
+ "\\(\\[",
24846
+ escapeRegExp(THEME_RESPONSIVE_MODE_ATTR),
24847
+ "=\"(?:viewport|container)\"\\]\\)",
24848
+ "to",
24849
+ "\\((?::scope )?\\[",
24850
+ escapeRegExp(THEME_RESPONSIVE_MODE_ATTR),
24851
+ "\\]\\)",
24852
+ "\\{"
24853
+ ].join("\\s*");
24854
+ }
24855
+ //#endregion
24077
24856
  //#region ../theme-core/src/siteChromeOverlayClearance.ts
24078
24857
  const SITE_CHROME_VISIBLE_HEADER_ATTR = "data-site-chrome-visible-header";
24079
24858
  //#endregion
@@ -25217,7 +25996,19 @@ function testimonialLoaderLimit(content) {
25217
25996
  //#endregion
25218
25997
  //#region ../blocks/src/system/node/fragments/lookSlot.ts
25219
25998
  /** Compiler-owned slots are absent for legacy Looks, preserving their HTML. */
25220
- const lookSlot = (name) => ({ "data-slot": { $bind: { from: `content._lookSlots.${name}` } } });
25999
+ const lookSlot = (name, source = "look") => source === "skin" ? { "data-slot": { $bind: {
26000
+ from: "theme.skin",
26001
+ transforms: [{
26002
+ id: "look.skinSlot",
26003
+ options: { slot: name }
26004
+ }]
26005
+ } } } : { "data-slot": { $bind: { from: `content._lookSlots.${name}` } } };
26006
+ /** Non-Look widgets expose section geometry only when a theme has a skin. */
26007
+ const lookSkinSlotTransform = {
26008
+ id: "look.skinSlot",
26009
+ kind: "string",
26010
+ run: (value, options) => typeof value === "string" && value.length > 0 ? arrangementSlotNames.find((slot) => slot === asPartialObject(options)?.slot) : void 0
26011
+ };
25221
26012
  const lookLeadSlotTransform = {
25222
26013
  id: "look.leadSlot",
25223
26014
  kind: "string",
@@ -25228,6 +26019,13 @@ const lookQuoteLimitTransform = {
25228
26019
  kind: "string",
25229
26020
  run: (value) => testimonialLoaderLimit(asPartialObject(value) ?? {})
25230
26021
  };
26022
+ /** Blank headings use the same non-empty region fallback as absent headings. */
26023
+ const lookCarouselRegionTransform = {
26024
+ schema: z.object({ fallback: z.string().trim().min(1) }),
26025
+ id: "look.carouselRegion",
26026
+ kind: "string",
26027
+ run: (value, options) => typeof value === "string" && value.trim() ? value.trim() : options?.fallback ?? "Carousel"
26028
+ };
25231
26029
  //#endregion
25232
26030
  //#region ../blocks/src/system/fields/imageLayout.ts
25233
26031
  function createImageColSizeField(options = {}) {
@@ -26166,7 +26964,10 @@ const stack = (props, children, ...mods) => el("stack", props, children, ...mods
26166
26964
  const inline = (props, children, ...mods) => el("inline", props, children, ...mods);
26167
26965
  const accordion = (props, children, ...mods) => el("accordion", props, children, ...mods);
26168
26966
  const accordionItem = (props, children, ...mods) => el("accordionItem", props, children, ...mods);
26169
- const carousel = (props, children, ...mods) => el("carousel", props, children, ...mods);
26967
+ const carousel = (props, children, ...mods) => el("carousel", {
26968
+ mode: "legacy",
26969
+ ...props
26970
+ }, children, ...mods);
26170
26971
  const text = (props, ...mods) => el("text", props, void 0, ...mods);
26171
26972
  const richText = (props, ...mods) => el("richText", props, void 0, ...mods);
26172
26973
  const icon = (props, ...mods) => el("icon", props, void 0, ...mods);
@@ -26300,7 +27101,7 @@ const BACKGROUND_FRAME_BASE_CLASS = "rb-background-frame rb-absolute rb-inset-0
26300
27101
  * )
26301
27102
  */
26302
27103
  function backgroundLayer(path, options = {}) {
26303
- 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;
27104
+ 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;
26304
27105
  const styleLayer = el("div", {
26305
27106
  className: styleClassName,
26306
27107
  style: { $bind: {
@@ -26313,7 +27114,8 @@ function backgroundLayer(path, options = {}) {
26313
27114
  });
26314
27115
  const imageLayer = createBackgroundImageNode(path, imageClassName, {
26315
27116
  loading: imageLoading,
26316
- fetchPriority: imageFetchPriority
27117
+ fetchPriority: imageFetchPriority,
27118
+ slot: imageSlot
26317
27119
  });
26318
27120
  const overlayLayer = createBackgroundOverlayNode(path, overlayClassName);
26319
27121
  return omitImageLayer ? [styleLayer, overlayLayer] : [
@@ -26331,7 +27133,7 @@ function backgroundLayer(path, options = {}) {
26331
27133
  * the decorative layer rather than changing the content root.
26332
27134
  */
26333
27135
  function backgroundFrame(path, options = {}) {
26334
- const { leadingNodes = [], ...layerOptions } = options;
27136
+ const { leadingNodes = [], frameSlot, ...layerOptions } = options;
26335
27137
  const framedLayerOptions = {
26336
27138
  ...layerOptions,
26337
27139
  styleClassName: layerOptions.styleClassName ?? "background-style rb-absolute rb-inset-0 rb-z-0 rb-h-full rb-w-full rb-pointer-events-none",
@@ -26339,6 +27141,7 @@ function backgroundFrame(path, options = {}) {
26339
27141
  overlayClassName: layerOptions.overlayClassName ?? "background-overlay rb-absolute rb-inset-0 rb-z-0 rb-h-full rb-w-full rb-pointer-events-none"
26340
27142
  };
26341
27143
  return el("div", {
27144
+ ...frameSlot ? lookSlot(frameSlot) : {},
26342
27145
  className: { $bind: {
26343
27146
  from: path,
26344
27147
  transforms: [{
@@ -26379,6 +27182,7 @@ function backgroundFrame(path, options = {}) {
26379
27182
  function createBackgroundImageNode(path, baseClassName = "rb-absolute rb-z-neg-10", options = {}) {
26380
27183
  const imagePath = `${path}.image`;
26381
27184
  return media({
27185
+ ...options.slot ? lookSlot(options.slot) : {},
26382
27186
  className: { $bind: {
26383
27187
  from: path,
26384
27188
  transforms: [{
@@ -26710,6 +27514,10 @@ const DEFAULT_SECTION_SPACING = "medium";
26710
27514
  function styledSection(config) {
26711
27515
  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;
26712
27516
  const renderedBackgroundNode = backgroundFrame(`${bindFrom}.background`, {
27517
+ ...config.backgroundLookSlots ? {
27518
+ frameSlot: "background",
27519
+ imageSlot: "photo"
27520
+ } : {},
26713
27521
  imageClassName,
26714
27522
  fallbackToken: background,
26715
27523
  omitImageLayer: !renderBackgroundImage,
@@ -26722,12 +27530,13 @@ function styledSection(config) {
26722
27530
  background,
26723
27531
  baseClass,
26724
27532
  spacing,
26725
- fullWidthPath
27533
+ fullWidthPath,
27534
+ skinSlot: config.skinSlot
26726
27535
  }), [renderedBackgroundNode, ...childrenArray]);
26727
27536
  }
26728
27537
  function sectionAppearanceProps(input) {
26729
27538
  return {
26730
- ...lookSlot("section"),
27539
+ ...input.skinSlot ? lookSlot(input.skinSlot, "skin") : lookSlot("section"),
26731
27540
  "data-arrangement": { $bind: { from: "content._lookHooks.data-arrangement" } },
26732
27541
  style: { $bind: {
26733
27542
  from: `${input.bindFrom}.background`,
@@ -27777,7 +28586,8 @@ const boxStylesTransforms = [
27777
28586
  id: "boxStyles.semanticGapValue",
27778
28587
  kind: "string",
27779
28588
  summary: "Map semantic gap value to CSS gap value for inline styles",
27780
- run: (value, options, _context) => {
28589
+ run: (value, options, context) => {
28590
+ if (options?.legacyOnly && asPartialObject(context.viewModel?.content)?._lookSlots !== void 0) return void 0;
27781
28591
  const fallback = options?.fallback ?? "medium";
27782
28592
  return GAP_VALUE_MAP[isSemanticSpacing(value) ? value : fallback];
27783
28593
  }
@@ -27809,9 +28619,12 @@ function twoColumnProps(config) {
27809
28619
  from: config.gapFrom,
27810
28620
  transforms: [{
27811
28621
  id: "boxStyles.semanticGapValue",
27812
- options: { fallback }
28622
+ options: {
28623
+ fallback,
28624
+ legacyOnly: config.lookSlots === true
28625
+ }
27813
28626
  }],
27814
- fallback: GAP_VALUE_MAP[fallback]
28627
+ ...config.lookSlots ? {} : { fallback: GAP_VALUE_MAP[fallback] }
27815
28628
  } } } } : {}
27816
28629
  };
27817
28630
  }
@@ -28980,6 +29793,7 @@ function buildTestimonialCard(...mods) {
28980
29793
  */
28981
29794
  function buildCarouselLayout() {
28982
29795
  return carousel({
29796
+ mode: "legacy",
28983
29797
  className: "rb-mt-12 rb-testimonials-carousel",
28984
29798
  slidesToShow: {
28985
29799
  mobile: { $bind: {
@@ -30710,6 +31524,7 @@ function heroContainerStack(children, gap) {
30710
31524
  rootType: "stack",
30711
31525
  baseClassName: "rb-relative rb-isolate",
30712
31526
  rootProps: {
31527
+ ...lookSlot("frame"),
30713
31528
  gap: "none",
30714
31529
  justify: { $bind: {
30715
31530
  from: "content",
@@ -30743,6 +31558,7 @@ function heroSplitImagePane() {
30743
31558
  }, when("_sectionStyles.background.image"), bind("_sectionStyles.background.image")), lookSticker]);
30744
31559
  }
30745
31560
  const classicLayout$1 = styledSection({
31561
+ backgroundLookSlots: true,
30746
31562
  children: heroContainerStack(heroContentNodes, "md"),
30747
31563
  baseClass: "",
30748
31564
  backgroundImageLoading: heroPriorityMediaProps.loading,
@@ -31098,18 +31914,34 @@ function createAspectRatioField(options = {}) {
31098
31914
  function introHeading(className) {
31099
31915
  return text({
31100
31916
  as: "h2",
31101
- className
31102
- }, when("content.title"), bind("content.title"));
31917
+ className,
31918
+ ...lookSlot("heading")
31919
+ }, when("content.title", { authoringPresence: {
31920
+ kind: "recover-empty-when-active",
31921
+ placeholder: "Add heading"
31922
+ } }), bind("content.title"));
31103
31923
  }
31104
31924
  function introBody(className = "rb-prose rb-max-w-none") {
31105
- return richText({ className }, bind("content.body"));
31925
+ return richText({
31926
+ className,
31927
+ ...lookSlot("intro"),
31928
+ leadParagraphSlot: { $bind: { from: "content._lookSlots.lede" } },
31929
+ lookSlots: { $bind: { from: "content._lookSlots" } }
31930
+ }, bind("content.body"));
31106
31931
  }
31107
31932
  function introCtas(justify = "start") {
31108
- return ctaRow({
31933
+ const row = ctaRow({
31109
31934
  justify,
31110
31935
  gap: "md",
31111
31936
  containerClassName: "rb-mt-2"
31112
31937
  });
31938
+ return {
31939
+ ...row,
31940
+ props: {
31941
+ ...row.props,
31942
+ ...lookSlot("actions")
31943
+ }
31944
+ };
31113
31945
  }
31114
31946
  function introCopyStack(options = {}) {
31115
31947
  return stack({
@@ -31122,6 +31954,7 @@ function introCopyStack(options = {}) {
31122
31954
  ]);
31123
31955
  }
31124
31956
  const introMedia = media({
31957
+ ...lookSlot("photo"),
31125
31958
  className: { $bind: {
31126
31959
  from: "content.imageShape",
31127
31960
  transforms: [{
@@ -31134,7 +31967,7 @@ const introMedia = media({
31134
31967
  from: "content.aspectRatio",
31135
31968
  fallback: "1/1"
31136
31969
  } } }
31137
- }, bind("content.media"));
31970
+ }, bind("content.media"), when("content.media"));
31138
31971
  const centeredCopyLayout = styledSection({
31139
31972
  children: styledContainer({
31140
31973
  rootType: "stack",
@@ -31150,9 +31983,13 @@ const centeredCopyLayout = styledSection({
31150
31983
  spacing: "medium"
31151
31984
  });
31152
31985
  const statementCopyLayout = styledSection({
31153
- 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({
31986
+ children: styledContainer({ children: [el("div", {
31987
+ className: "rb-intro rb-intro-statement rb-grid rb-grid-cols-1 rb-gap-8 rb-md-grid-cols-2 rb-md-items-start",
31988
+ ...lookSlot("frame")
31989
+ }, [introHeading("rb-intro-title rb-max-w-xl"), stack({
31154
31990
  gap: "md",
31155
- className: "rb-intro-copy rb-max-w-xl"
31991
+ className: "rb-intro-copy rb-max-w-xl",
31992
+ ...lookSlot("copy")
31156
31993
  }, [introBody(), introCtas("start")])])] }),
31157
31994
  baseClass: "",
31158
31995
  spacing: "medium"
@@ -31171,6 +32008,7 @@ const statementMediaLayout = styledSection({
31171
32008
  });
31172
32009
  const mediaCopyLayout = styledSection({
31173
32010
  children: styledContainer({ children: [responsiveTwoColumn({
32011
+ lookSlots: true,
31174
32012
  image: el("div", { className: "rb-intro-media-wrap rb-w-full" }, [introMedia]),
31175
32013
  text: introCopyStack({
31176
32014
  className: "rb-intro-copy rb-max-w-xl",
@@ -31242,20 +32080,26 @@ const introBlockDefinition = { manifest: createBlockManifest({
31242
32080
  gapSelectField({
31243
32081
  label: "Gap between media and text",
31244
32082
  defaultValue: "comfortable",
31245
- visibleWhen: {
32083
+ visibleWhen: { allOf: [{
31246
32084
  field: "variant",
31247
32085
  equals: "media-copy"
31248
- }
32086
+ }, {
32087
+ field: "blockLook",
32088
+ notEquals: "intro-photo-beside-text"
32089
+ }] }
31249
32090
  }),
31250
32091
  createImageColSizeField({
31251
32092
  id: "ratio",
31252
32093
  label: "Media column size",
31253
32094
  defaultValue: "1/2",
31254
32095
  uiIntent: "display",
31255
- visibleWhen: {
32096
+ visibleWhen: { allOf: [{
31256
32097
  field: "variant",
31257
32098
  equals: "media-copy"
31258
- }
32099
+ }, {
32100
+ field: "blockLook",
32101
+ notEquals: "intro-photo-beside-text"
32102
+ }] }
31259
32103
  }),
31260
32104
  createAspectRatioField({
31261
32105
  id: "aspectRatio",
@@ -32032,36 +32876,39 @@ const formSurface = styledContainer({
32032
32876
  baseClassName: "rb-form-surface rb-relative rb-isolate rb-overflow-visible",
32033
32877
  children: embedLayout$1
32034
32878
  });
32035
- function createFormLayout(variant) {
32036
- if (variant === "two-column") return styledSection({
32037
- children: el("div", {
32038
- className: "rb-container",
32879
+ const twoColumnFormLayout = styledSection({
32880
+ children: el("div", {
32881
+ className: "rb-container",
32882
+ ...lookSlot("layout")
32883
+ }, [el("div", {
32884
+ className: "rb-form-two-column rb-grid rb-grid-cols-1 rb-gap-8 rb-lg-grid-cols-2 rb-lg-items-start",
32885
+ ...lookSlot("frame")
32886
+ }, [stack({
32887
+ gap: "md",
32888
+ className: "rb-form-copy-column",
32889
+ ...lookSlot("copy")
32890
+ }, [copyLayout]), formSurface])]),
32891
+ baseClass: "",
32892
+ spacing: "medium",
32893
+ background: "surface"
32894
+ });
32895
+ const formLayout = styledSection({
32896
+ children: [when("content._lookSlots", { not: true })(styledContainer({
32897
+ rootType: "stack",
32898
+ rootProps: { gap: "lg" },
32899
+ children: formComposition.layout
32900
+ })), when("content._lookSlots")(styledContainer({
32901
+ rootType: "stack",
32902
+ rootProps: {
32903
+ gap: "lg",
32039
32904
  ...lookSlot("layout")
32040
- }, [el("div", {
32041
- className: "rb-form-two-column rb-grid rb-grid-cols-1 rb-gap-8 rb-lg-grid-cols-2 rb-lg-items-start",
32042
- ...lookSlot("frame")
32043
- }, [stack({
32044
- gap: "md",
32045
- className: "rb-form-copy-column",
32046
- ...lookSlot("copy")
32047
- }, [copyLayout]), formSurface])]),
32048
- baseClass: "",
32049
- spacing: "medium",
32050
- background: "surface"
32051
- });
32052
- return styledSection({
32053
- children: styledContainer({
32054
- rootType: "stack",
32055
- rootProps: { gap: "lg" },
32056
- children: formComposition.layout
32057
- }),
32058
- baseClass: "",
32059
- spacing: "medium",
32060
- background: "surface"
32061
- });
32062
- }
32063
- const formLayout = createFormLayout("default");
32064
- const twoColumnFormLayout = createFormLayout("two-column");
32905
+ },
32906
+ children: el("div", lookSlot("frame"), [el("div", lookSlot("copy"), [copyLayout]), el("div", lookSlot("panel"), [embedLayout$1])])
32907
+ }))],
32908
+ baseClass: "",
32909
+ spacing: "medium",
32910
+ background: "surface"
32911
+ });
32065
32912
  const dataLoaders$1 = buildFragmentDataLoaders(formComposition);
32066
32913
  const formManifest = createBlockManifest({
32067
32914
  variantMeaning: { kind: "arrangement" },
@@ -34472,17 +35319,31 @@ const quoteArrangement = (arrangement) => styledSection({
34472
35319
  as: "p",
34473
35320
  ...lookSlot("intro")
34474
35321
  }, when("content.subheading"), bind("content.subheading"))]), arrangement === "slides" || arrangement === "track" ? el("carousel", {
35322
+ mode: "arrangement",
34475
35323
  arrangement,
34476
- autoplay: false,
34477
- loop: false,
34478
- showControls: true,
34479
- arrowVisibility: "always",
34480
- slidesToShow: arrangement === "slides" ? 1 : {
34481
- mobile: 1,
34482
- tablet: 2,
34483
- desktop: 3
34484
- }
34485
- }, [quoteFigure(false)]) : el("div", lookSlot("items"), [quoteFigure(arrangement === "lead-rest")])]) })
35324
+ labels: {
35325
+ item: "quote",
35326
+ region: { $bind: {
35327
+ from: "content.heading",
35328
+ transforms: [{
35329
+ id: "look.carouselRegion",
35330
+ options: { fallback: "Quotes" }
35331
+ }]
35332
+ } }
35333
+ },
35334
+ indicator: "counter"
35335
+ }, [{
35336
+ type: "carouselSlide",
35337
+ props: { title: { $bind: {
35338
+ from: "testimonial.content.name",
35339
+ fallback: "Anonymous"
35340
+ } } },
35341
+ $repeat: quoteFigure(false).$repeat,
35342
+ children: [{
35343
+ ...quoteFigure(false),
35344
+ $repeat: void 0
35345
+ }]
35346
+ }]) : el("div", lookSlot("items"), [quoteFigure(arrangement === "lead-rest")])]) })
34486
35347
  });
34487
35348
  const additionalFields = parseFieldDefinitions([
34488
35349
  ...testimonialsHeadingFragment.fields,
@@ -35402,6 +36263,33 @@ const leadCard = {
35402
36263
  indexName: "cardIndex"
35403
36264
  }
35404
36265
  };
36266
+ const carouselCardsLayout = (arrangement) => arrangementCardsLayout(el("carousel", {
36267
+ mode: "arrangement",
36268
+ arrangement,
36269
+ cardList: true,
36270
+ labels: {
36271
+ item: "card",
36272
+ region: { $bind: {
36273
+ from: "content.title",
36274
+ transforms: [{
36275
+ id: "look.carouselRegion",
36276
+ options: { fallback: "Cards" }
36277
+ }]
36278
+ } }
36279
+ },
36280
+ indicator: arrangement === "slides" ? "dots" : "none"
36281
+ }, [{
36282
+ type: "carouselSlide",
36283
+ props: { title: { $bind: {
36284
+ from: "card.title",
36285
+ fallback: ""
36286
+ } } },
36287
+ $repeat: featureCard.$repeat,
36288
+ children: [{
36289
+ ...featureCard,
36290
+ $repeat: void 0
36291
+ }]
36292
+ }]));
35405
36293
  const leadSupportLayout = arrangementCardsLayout(el("div", lookSlot("items"), [leadCard]));
35406
36294
  const indexRow = el("li", lookSlot("item"), [
35407
36295
  el("div", {
@@ -35614,6 +36502,8 @@ const featureCardsBlockDefinition = { manifest: createBlockManifest({
35614
36502
  promotedFields: ["_generatedIconSizePx"],
35615
36503
  layout: cardsLayout,
35616
36504
  variants: {
36505
+ slides: carouselCardsLayout("slides"),
36506
+ track: carouselCardsLayout("track"),
35617
36507
  cards: cardsLayout,
35618
36508
  "lead-support": leadSupportLayout,
35619
36509
  index: indexLayout,
@@ -35626,7 +36516,9 @@ const featureCardsBlockDefinition = { manifest: createBlockManifest({
35626
36516
  lookOnlyKeys: [
35627
36517
  "lead-support",
35628
36518
  "index",
35629
- "sequence"
36519
+ "sequence",
36520
+ "slides",
36521
+ "track"
35630
36522
  ]
35631
36523
  },
35632
36524
  defaultVariant: "cards",
@@ -35980,17 +36872,22 @@ const mediaTextBlockDefinition = { manifest: createBlockManifest({
35980
36872
  }],
35981
36873
  fallback: ""
35982
36874
  } };
35983
- const copyHeading = el("div", {
35984
- className: titleClassNameFromAlignment,
35985
- ...lookSlot("head")
35986
- }, [text({
36875
+ const headingNodes = [text({
35987
36876
  as: "p",
35988
36877
  className: eyebrowClassName("rb-eyebrow heading-eyebrow"),
35989
36878
  ...lookSlot("eyebrow")
35990
36879
  }, when("content.eyebrow"), bind("content.eyebrow")), text({
35991
36880
  as: "h2",
35992
36881
  ...lookSlot("heading")
35993
- }, bind("content.title"))], when("content.title"));
36882
+ }, bind("content.title"), when("content.title", { authoringPresence: {
36883
+ kind: "recover-empty-when-active",
36884
+ placeholder: "Add heading"
36885
+ } }))];
36886
+ const copyHeading = el("div", {
36887
+ className: titleClassNameFromAlignment,
36888
+ ...lookSlot("head")
36889
+ }, headingNodes, when("content.title"));
36890
+ const lookCopyHeading = el("div", {}, headingNodes, when("content._lookSlots.head"));
35994
36891
  const textContentNodes = (className) => {
35995
36892
  const props = {
35996
36893
  className,
@@ -36000,7 +36897,8 @@ const mediaTextBlockDefinition = { manifest: createBlockManifest({
36000
36897
  };
36001
36898
  return [styledCard([richText(props, bind("content.text"))], mediaTextCardOptions, when("content.wrapTextInCard")), richText(props, when("content.wrapTextInCard", { not: true }), bind("content.text"))];
36002
36899
  };
36003
- const defaultTextColumn = el("div", {}, textContentNodes("rb-prose rb-max-w-none"));
36900
+ const bodyTextColumn = el("div", {}, textContentNodes("rb-prose rb-max-w-none"));
36901
+ const defaultTextColumn = el("div", {}, [lookCopyHeading, ...textContentNodes("rb-prose rb-max-w-none")]);
36004
36902
  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)]);
36005
36903
  const defaultImageCommonProps = {
36006
36904
  ...lookSlot("photo"),
@@ -36014,7 +36912,7 @@ const mediaTextBlockDefinition = { manifest: createBlockManifest({
36014
36912
  } },
36015
36913
  style: { aspectRatio: { $bind: { from: "content.aspectRatio" } } }
36016
36914
  };
36017
- const defaultSingleImage = media(defaultImageCommonProps, bind("content.images[0].image"));
36915
+ const defaultSingleImage = media(defaultImageCommonProps, bind("content.images[0].image"), when("content.images[0].image"));
36018
36916
  const defaultCarouselImages = carousel({
36019
36917
  className: "rb-media-text-carousel",
36020
36918
  transition: { $bind: {
@@ -36066,7 +36964,11 @@ const mediaTextBlockDefinition = { manifest: createBlockManifest({
36066
36964
  imageWrapperClassName: "rb-w-full rb-shrink-0",
36067
36965
  textWrapperClassName: "rb-w-full rb-min-w-0 rb-flex-1 rb-self-stretch"
36068
36966
  })], whenImagesLength(0, { not: true }));
36069
- const defaultTextOnlyLayout = el("div", lookSlot("copy"), textContentNodes("rb-prose rb-max-w-none"), whenImagesLength(0));
36967
+ const defaultTextOnlyLayout = el("div", lookSlot("copy"), [
36968
+ el("div", lookSlot("media"), [defaultSingleImage], when("content._lookSlots.media")),
36969
+ lookCopyHeading,
36970
+ ...textContentNodes("rb-prose rb-max-w-none")
36971
+ ], whenImagesLength(0));
36070
36972
  const bioTextOnlyLayout = el("div", {
36071
36973
  className: "rb-flex rb-w-full rb-max-w-prose rb-flex-col rb-gap-5",
36072
36974
  ...lookSlot("copy")
@@ -36078,11 +36980,15 @@ const mediaTextBlockDefinition = { manifest: createBlockManifest({
36078
36980
  const defaultInner = el("div", {}, [defaultImagesLayout, defaultTextOnlyLayout]);
36079
36981
  const bioInner = el("div", {}, [bioImagesLayout, bioTextOnlyLayout]);
36080
36982
  const defaultLayout = styledSection({
36081
- children: styledContainer({
36983
+ children: [when("content._lookSlots.head", { not: true })(styledContainer({
36082
36984
  rootType: "stack",
36083
36985
  rootProps: { gap: "lg" },
36084
36986
  children: [copyHeading, defaultInner]
36085
- }),
36987
+ })), when("content._lookSlots.head")(styledContainer({
36988
+ rootType: "stack",
36989
+ rootProps: { gap: "lg" },
36990
+ children: [defaultInner]
36991
+ }))],
36086
36992
  baseClass: "",
36087
36993
  spacing: "medium"
36088
36994
  });
@@ -36106,17 +37012,7 @@ const mediaTextBlockDefinition = { manifest: createBlockManifest({
36106
37012
  el("div", {}, [when("content.images[0].image")(defaultSingleImage)], whenImagesLength(1)),
36107
37013
  el("div", {}, [el("div", {}, [defaultCarouselImages], whenImagesLength(1, { not: true }))], whenImagesLength(0, { not: true })),
36108
37014
  el("div", {}, [when("content.images[0].image")(defaultSingleImage)], whenImagesLength(0))
36109
- ]), el("div", lookSlot("copy"), [el("div", lookSlot("head"), [text({
36110
- as: "p",
36111
- className: eyebrowClassName("rb-eyebrow heading-eyebrow"),
36112
- ...lookSlot("eyebrow")
36113
- }, when("content.eyebrow"), bind("content.eyebrow")), text({
36114
- as: "h2",
36115
- ...lookSlot("heading")
36116
- }, bind("content.title"), when("content.title", { authoringPresence: {
36117
- kind: "recover-empty-when-active",
36118
- placeholder: "Add heading"
36119
- } }))]), defaultTextColumn])]) })
37015
+ ]), el("div", lookSlot("copy"), [el("div", lookSlot("head"), headingNodes), bodyTextColumn])]) })
36120
37016
  })
36121
37017
  },
36122
37018
  variantMeaning: {
@@ -36168,6 +37064,7 @@ const bookingWizard = bookingForm(withApiBindings({
36168
37064
  form: { $bind: { from: "data.form" } },
36169
37065
  services: { $bind: { from: "data.services" } },
36170
37066
  mailingList: { $bind: { from: "$root.mailingList" } },
37067
+ siteTerms: { $bind: { from: "$root.siteTerms" } },
36171
37068
  siteName: { $bind: { from: "$root.siteName" } }
36172
37069
  }));
36173
37070
  /** Both variants sit in the same section shell; only the inner layout differs. */
@@ -36296,7 +37193,9 @@ const appointmentServicesBlockDefinition = {
36296
37193
  "cards",
36297
37194
  "lead-support",
36298
37195
  "index",
36299
- "sequence"
37196
+ "sequence",
37197
+ "slides",
37198
+ "track"
36300
37199
  ]
36301
37200
  },
36302
37201
  id: "block.appointment-services",
@@ -37081,6 +37980,7 @@ const publicEventBaseSchema = z.object({
37081
37980
  cutoffHours: z.number(),
37082
37981
  method: z.enum(["original_payment_method", "site_credit"])
37083
37982
  }) }),
37983
+ asksSiteTerms: z.boolean(),
37084
37984
  consent: blockBookingConsentSchema.nullable(),
37085
37985
  accessRestriction: accessRestrictionSchema,
37086
37986
  allowedCategoryIds: z.array(z.string()),
@@ -37397,6 +38297,31 @@ const occurrenceContextSchema = z.object({
37397
38297
  overrides: z.record(z.string(), z.unknown()).nullable().optional()
37398
38298
  }).nullable();
37399
38299
  //#endregion
38300
+ //#region ../blocks/src/system/blocks/shared/siteTerms.ts
38301
+ const versionId = z.string().uuid().transform((value, ctx) => {
38302
+ const parsed = parseSiteTermsVersionId(value);
38303
+ if (parsed.ok) return parsed.value;
38304
+ ctx.addIssue({
38305
+ code: "custom",
38306
+ message: "Invalid site terms version"
38307
+ });
38308
+ return z.NEVER;
38309
+ });
38310
+ const blockSiteTermsSchema = z.discriminatedUnion("kind", [z.object({ kind: z.literal("none") }), z.object({
38311
+ kind: z.literal("published"),
38312
+ version: z.object({
38313
+ id: versionId,
38314
+ number: z.number().int().positive(),
38315
+ generation: z.number().int().positive()
38316
+ }),
38317
+ businessName: z.string(),
38318
+ href: z.string().min(1).nullable()
38319
+ })]);
38320
+ z.object({
38321
+ versionId,
38322
+ alreadyAgreed: z.boolean()
38323
+ });
38324
+ //#endregion
37400
38325
  //#region ../blocks/src/system/runtime/nodes/events/domain/capacity.ts
37401
38326
  /**
37402
38327
  * Compute remaining spots for an event from `availableSpots` with a fallback
@@ -37847,27 +38772,48 @@ function eventListWindowEvents(events, window) {
37847
38772
  });
37848
38773
  }
37849
38774
  //#endregion
37850
- //#region ../blocks/src/system/runtime/nodes/event-registration/registrationDerivations.ts
37851
- function eventMatchesOccurrenceId(event, occurrenceId) {
37852
- return event.registrationSubject.kind === "occurrence" && (event.registrationSubject.occurrenceId === occurrenceId || event.selectionId === occurrenceId);
38775
+ //#region ../blocks/src/system/runtime/nodes/event-registration/registrationEventAdapter.ts
38776
+ function toRegistrationEvent(event) {
38777
+ return {
38778
+ ...event,
38779
+ selectionId: event.id,
38780
+ registrationSubject: {
38781
+ kind: "occurrence",
38782
+ occurrenceId: event.occurrenceId
38783
+ }
38784
+ };
37853
38785
  }
37854
- function findPreSelectedEvent(input) {
37855
- const occurrenceContext = input.occurrenceContext;
37856
- if (!occurrenceContext) return input.scopedEvents.length === 1 ? input.scopedEvents[0] ?? null : null;
37857
- const contextDate = getBookingLocalDateKey(toScheduledBookingDateTime({
37858
- startsAt: occurrenceContext.startsAt,
37859
- timeZone: occurrenceContext.timeZone
37860
- }));
37861
- return input.scopedEvents.find((event) => eventMatchesOccurrenceId(event, occurrenceContext.id) || getBookingLocalDateKey(toScheduledBookingDateTime({
37862
- startsAt: event.startsAt,
37863
- timeZone: event.timeZone
37864
- })) === contextDate) ?? null;
38786
+ function toRegistrationEvents(events) {
38787
+ return events.filter((event) => event.bookingScope === "single_occurrence").map(toRegistrationEvent);
37865
38788
  }
37866
- function resolveEventRequiresPayment(input) {
37867
- if (input.eligibility) return input.eligibility.requiresPayment;
37868
- if (input.selectedTicketType) return input.selectedTicketType.priceAmount > 0;
37869
- if (!input.event) return false;
37870
- return publicEventPricingType(input.event.pricing) === "paid";
38789
+ /**
38790
+ * Project one whole-series run onto the registration surface.
38791
+ *
38792
+ * Capacity, pricing, payment terms and consent come straight off the canonical
38793
+ * Event record; only the schedule is widened from the single occurrence to the
38794
+ * live run. A run without live sessions has no registration event.
38795
+ */
38796
+ function toWholeSeriesRegistrationEvent(group) {
38797
+ const { representative, run } = group;
38798
+ const sessions = orderedLiveRunSessions(run.sessions);
38799
+ const firstSession = sessions[0];
38800
+ if (!firstSession) return null;
38801
+ const lastSession = sessions[sessions.length - 1] ?? firstSession;
38802
+ return {
38803
+ ...representative,
38804
+ selectionId: run.eventSeriesId,
38805
+ registrationSubject: {
38806
+ kind: "wholeSeries",
38807
+ eventSeriesId: run.eventSeriesId,
38808
+ sessions
38809
+ },
38810
+ startsAt: firstSession.startsAt,
38811
+ endsAt: lastSession.endsAt,
38812
+ timeZone: firstSession.timeZone
38813
+ };
38814
+ }
38815
+ function toWholeSeriesRegistrationEvents(events) {
38816
+ return groupPublicEventsByRun(events).map(toWholeSeriesRegistrationEvent).filter((event) => event !== null);
37871
38817
  }
37872
38818
  //#endregion
37873
38819
  //#region ../blocks/src/system/runtime/nodes/event-registration/utils.ts
@@ -37891,7 +38837,7 @@ function bookingClock(startsAt, input) {
37891
38837
  return formatBookingTime(bookingInstant(startsAt, input), {
37892
38838
  hour: "numeric",
37893
38839
  minute: "2-digit",
37894
- hour12: true
38840
+ hourCycle: "h12"
37895
38841
  }).replace(/\s*([ap])\.?\s?m\.?$/i, (_match, period) => `${period.toLowerCase()}m`);
37896
38842
  }
37897
38843
  /** "7:00pm – 8:15pm", or just the start when there's no distinct end. */
@@ -38000,6 +38946,29 @@ function scheduleInput(event, occurrence) {
38000
38946
  };
38001
38947
  }
38002
38948
  //#endregion
38949
+ //#region ../blocks/src/system/runtime/nodes/event-registration/registrationDerivations.ts
38950
+ function eventMatchesOccurrenceId(event, occurrenceId) {
38951
+ return event.registrationSubject.kind === "occurrence" && (event.registrationSubject.occurrenceId === occurrenceId || event.selectionId === occurrenceId);
38952
+ }
38953
+ function findPreSelectedEvent(input) {
38954
+ const occurrenceContext = input.occurrenceContext;
38955
+ if (!occurrenceContext) return input.scopedEvents.length === 1 ? input.scopedEvents[0] ?? null : null;
38956
+ const contextDate = getBookingLocalDateKey(toScheduledBookingDateTime({
38957
+ startsAt: occurrenceContext.startsAt,
38958
+ timeZone: occurrenceContext.timeZone
38959
+ }));
38960
+ return input.scopedEvents.find((event) => eventMatchesOccurrenceId(event, occurrenceContext.id) || getBookingLocalDateKey(toScheduledBookingDateTime({
38961
+ startsAt: event.startsAt,
38962
+ timeZone: event.timeZone
38963
+ })) === contextDate) ?? null;
38964
+ }
38965
+ function resolveEventRequiresPayment(input) {
38966
+ if (input.eligibility) return input.eligibility.requiresPayment;
38967
+ if (input.selectedTicketType) return input.selectedTicketType.priceAmount > 0;
38968
+ if (!input.event) return false;
38969
+ return publicEventPricingType(input.event.pricing) === "paid";
38970
+ }
38971
+ //#endregion
38003
38972
  //#region ../blocks/src/system/runtime/nodes/event-registration/wizardSteps.ts
38004
38973
  function registrationRoute(input) {
38005
38974
  const base = input.chooseEvent ? [
@@ -38288,50 +39257,6 @@ function lowerCased(noun) {
38288
39257
  };
38289
39258
  }
38290
39259
  //#endregion
38291
- //#region ../blocks/src/system/runtime/nodes/event-registration/registrationEventAdapter.ts
38292
- function toRegistrationEvent(event) {
38293
- return {
38294
- ...event,
38295
- selectionId: event.id,
38296
- registrationSubject: {
38297
- kind: "occurrence",
38298
- occurrenceId: event.occurrenceId
38299
- }
38300
- };
38301
- }
38302
- function toRegistrationEvents(events) {
38303
- return events.filter((event) => event.bookingScope === "single_occurrence").map(toRegistrationEvent);
38304
- }
38305
- /**
38306
- * Project one whole-series run onto the registration surface.
38307
- *
38308
- * Capacity, pricing, payment terms and consent come straight off the canonical
38309
- * Event record; only the schedule is widened from the single occurrence to the
38310
- * live run. A run without live sessions has no registration event.
38311
- */
38312
- function toWholeSeriesRegistrationEvent(group) {
38313
- const { representative, run } = group;
38314
- const sessions = orderedLiveRunSessions(run.sessions);
38315
- const firstSession = sessions[0];
38316
- if (!firstSession) return null;
38317
- const lastSession = sessions[sessions.length - 1] ?? firstSession;
38318
- return {
38319
- ...representative,
38320
- selectionId: run.eventSeriesId,
38321
- registrationSubject: {
38322
- kind: "wholeSeries",
38323
- eventSeriesId: run.eventSeriesId,
38324
- sessions
38325
- },
38326
- startsAt: firstSession.startsAt,
38327
- endsAt: lastSession.endsAt,
38328
- timeZone: firstSession.timeZone
38329
- };
38330
- }
38331
- function toWholeSeriesRegistrationEvents(events) {
38332
- return groupPublicEventsByRun(events).map(toWholeSeriesRegistrationEvent).filter((event) => event !== null);
38333
- }
38334
- //#endregion
38335
39260
  //#region ../blocks/src/system/runtime/nodes/event-registration/bookingCardDisplay.ts
38336
39261
  /**
38337
39262
  * The booking card the server renders on CMS pages (issue 1581), and the
@@ -38667,6 +39592,7 @@ const eventRegistrationCommonSchemaShape = {
38667
39592
  const parsed = parseMailingListRuntimeContext(value);
38668
39593
  return parsed.ok ? parsed.value : void 0;
38669
39594
  }),
39595
+ siteTerms: blockSiteTermsSchema.optional(),
38670
39596
  siteName: z.string().optional()
38671
39597
  };
38672
39598
  const eventRegistrationEventSourceSchema = z.discriminatedUnion("kind", [z.object({
@@ -38850,6 +39776,7 @@ const eventRegistrationBlockRuntime = defineClientOwnedBlockRuntime({
38850
39776
  sitePasses: source.sitePasses ?? null,
38851
39777
  siteMemberships: source.siteMemberships ?? null,
38852
39778
  mailingList: source.mailingList,
39779
+ siteTerms: source.siteTerms,
38853
39780
  siteName: source.siteName,
38854
39781
  offeringNoun: resolveOfferingNoun(source, scopedSourceEvents)
38855
39782
  }
@@ -39021,6 +39948,7 @@ const eventRegistrationBlockDefinition = {
39021
39948
  wholeSeriesRunEvents: { $bind: { from: "data.wholeSeriesRunEvents" } },
39022
39949
  loaderFailures: { $bind: { from: "$root.loaderFailures" } },
39023
39950
  mailingList: { $bind: { from: "$root.mailingList" } },
39951
+ siteTerms: { $bind: { from: "$root.siteTerms" } },
39024
39952
  siteName: { $bind: { from: "$root.siteName" } },
39025
39953
  bookingOfferingPresets: { $bind: {
39026
39954
  from: "$root.bookingOfferingPresets",
@@ -41718,6 +42646,7 @@ const recurringScheduleProjectionSchema = z.object({
41718
42646
  //#endregion
41719
42647
  //#region ../blocks/src/system/blocks/events/recurring-schedule.ts
41720
42648
  const recurringScheduleLayout = styledSection({
42649
+ skinSlot: "schedule-section",
41721
42650
  children: styledContainer({
41722
42651
  rootType: "stack",
41723
42652
  rootProps: {
@@ -42175,6 +43104,8 @@ function offeringsPreviewHeaderNodes() {
42175
43104
  const offeringsPreviewLayout = [styledSection({
42176
43105
  children: sectionContainer([el("offerings-preview", {
42177
43106
  ...cardListPresentationBindings,
43107
+ carouselRegion: { $bind: { from: "content.heading" } },
43108
+ renderInput: { $bind: { from: "content._offeringsPreviewInput" } },
42178
43109
  displayMode: { $bind: displayModeBinding },
42179
43110
  pathname: { $bind: { from: "$root.pathname" } },
42180
43111
  catalogueEvents: { $bind: { from: "data.catalogueEvents" } },
@@ -42223,7 +43154,9 @@ const offeringsPreviewManifest = createBlockManifest({
42223
43154
  "lead-support",
42224
43155
  "index",
42225
43156
  "sequence",
42226
- "plates"
43157
+ "plates",
43158
+ "slides",
43159
+ "track"
42227
43160
  ]
42228
43161
  },
42229
43162
  id: "block.offerings-preview",
@@ -43257,6 +44190,7 @@ const gridLayout = grid$1({ className: "rb-grid rb-grid-cols-1 rb-gap-4 rb-sm-gr
43257
44190
  bindAspectRatio: true
43258
44191
  })]);
43259
44192
  const carouselLayout = carousel({
44193
+ mode: "legacy",
43260
44194
  className: { $bind: {
43261
44195
  from: "content.fullBleed",
43262
44196
  transforms: [{
@@ -44366,6 +45300,7 @@ const shopSourceSchema = z.object({
44366
45300
  memberships: z.array(publicMembershipProductSchema).nullable().optional(),
44367
45301
  products: z.array(publicProductSchema).nullable().optional(),
44368
45302
  siteId: z.string().optional(),
45303
+ siteTerms: blockSiteTermsSchema.optional(),
44369
45304
  demoEmailSuppressed: z.boolean().optional(),
44370
45305
  apiBaseUrl: z.string().optional(),
44371
45306
  readAuthority: browserReadAuthoritySchema.optional(),
@@ -44494,6 +45429,7 @@ const passesMembershipsHydrationSchema = z.object({
44494
45429
  memberships: z.array(publicMembershipProductSchema),
44495
45430
  passPurchaseMode: z.enum(["add_to_cart", "buy_now"]),
44496
45431
  buttonVariant: blockButtonRoleSchema,
45432
+ siteTerms: blockSiteTermsSchema.optional(),
44497
45433
  demoEmailSuppressed: z.boolean().optional()
44498
45434
  });
44499
45435
  const productListHydrationSchema = z.object({
@@ -44517,6 +45453,7 @@ const cartHydrationSchema = z.object({
44517
45453
  const checkoutHydrationSchema = z.object({
44518
45454
  emptyStateText: z.string(),
44519
45455
  submitButtonText: z.string(),
45456
+ siteTerms: blockSiteTermsSchema.optional(),
44520
45457
  demoEmailSuppressed: z.boolean().optional()
44521
45458
  });
44522
45459
  const passesMembershipsRenderSchema = z.object({
@@ -44577,6 +45514,7 @@ const shopBlockRuntime = defineProgressiveBlockRuntime({
44577
45514
  memberships: source.showMemberships === false ? [] : source.memberships ?? [],
44578
45515
  passPurchaseMode,
44579
45516
  buttonVariant: source.buttonVariant ?? "primary",
45517
+ siteTerms: source.siteTerms,
44580
45518
  demoEmailSuppressed: source.demoEmailSuppressed
44581
45519
  }
44582
45520
  };
@@ -44671,6 +45609,7 @@ const checkoutBlockRuntime = defineClientOwnedBlockRuntime({
44671
45609
  hydration: {
44672
45610
  emptyStateText: source.emptyStateText ?? "Add something to your cart to continue.",
44673
45611
  submitButtonText: source.submitButtonText ?? "Checkout",
45612
+ siteTerms: source.siteTerms,
44674
45613
  demoEmailSuppressed: source.demoEmailSuppressed
44675
45614
  }
44676
45615
  })
@@ -44886,10 +45825,12 @@ const shopBlockDefinition = {
44886
45825
  ],
44887
45826
  icon: "ShoppingBag",
44888
45827
  layout: [styledSection({
45828
+ skinSlot: "shop-section",
44889
45829
  baseClass: "",
44890
45830
  spacing: "spacious",
44891
45831
  children: sectionContainer([shop(withApiBindings({
44892
45832
  readAuthority: { $bind: { from: "$root.readAuthority" } },
45833
+ siteTerms: { $bind: { from: "$root.siteTerms" } },
44893
45834
  demoEmailSuppressed: { $bind: {
44894
45835
  from: "$root.demoEmailSuppressed",
44895
45836
  fallback: false
@@ -44961,12 +45902,18 @@ const shopBlockDefinition = {
44961
45902
  dataLoaders: {
44962
45903
  passes: {
44963
45904
  endpoint: "listPublicPasses",
44964
- params: { siteId: { $bind: { from: "$root.siteId" } } },
45905
+ params: {
45906
+ siteTerms: { $bind: { from: "$root.siteTerms" } },
45907
+ siteId: { $bind: { from: "$root.siteId" } }
45908
+ },
44965
45909
  mode: "server"
44966
45910
  },
44967
45911
  memberships: {
44968
45912
  endpoint: "listPublicMemberships",
44969
- params: { siteId: { $bind: { from: "$root.siteId" } } },
45913
+ params: {
45914
+ siteTerms: { $bind: { from: "$root.siteTerms" } },
45915
+ siteId: { $bind: { from: "$root.siteId" } }
45916
+ },
44970
45917
  mode: "server"
44971
45918
  }
44972
45919
  }
@@ -45494,6 +46441,7 @@ const publicGiftingOffersResponseSchema = z.object({
45494
46441
  vouchers: z.array(publicVoucherOfferSchema)
45495
46442
  });
45496
46443
  const giftingSourceSchema = z.object({
46444
+ siteTerms: blockSiteTermsSchema.optional(),
45497
46445
  siteId: z.string().optional(),
45498
46446
  apiBaseUrl: z.string().optional(),
45499
46447
  offers: publicGiftingOffersResponseSchema.nullable().optional(),
@@ -45517,6 +46465,7 @@ const giftingDisplaySchema = z.object({
45517
46465
  emptyStateText: z.string()
45518
46466
  });
45519
46467
  const giftingHydrationSchema = z.object({
46468
+ siteTerms: blockSiteTermsSchema.optional(),
45520
46469
  offers: publicGiftingOffersResponseSchema.nullable(),
45521
46470
  checkoutButtonText: z.string(),
45522
46471
  successMessage: z.string()
@@ -45550,6 +46499,7 @@ const giftingBlockRuntime = defineClientOwnedBlockRuntime({
45550
46499
  buildRender: (source) => ({
45551
46500
  display: buildGiftingDisplay(source),
45552
46501
  hydration: {
46502
+ siteTerms: source.siteTerms,
45553
46503
  offers: source.offers ?? null,
45554
46504
  checkoutButtonText: source.checkoutButtonText?.trim() || "Continue",
45555
46505
  successMessage: source.successMessage?.trim() || "Thanks. Your purchase is complete and your gift will be sent shortly."
@@ -45687,7 +46637,10 @@ const giftingBlockDefinition = {
45687
46637
  dataSchemas: { offers: publicGiftingOffersResponseSchema.optional() },
45688
46638
  dataLoaders: { offers: {
45689
46639
  endpoint: "listPublicGiftingOffers",
45690
- params: { siteId: { $bind: { from: "$root.siteId" } } },
46640
+ params: {
46641
+ siteTerms: { $bind: { from: "$root.siteTerms" } },
46642
+ siteId: { $bind: { from: "$root.siteId" } }
46643
+ },
45691
46644
  mode: "server"
45692
46645
  } }
45693
46646
  };
@@ -46013,10 +46966,10 @@ const stackedLayout = styledSection({
46013
46966
  background: "surface"
46014
46967
  });
46015
46968
  const inlineLayout = styledSection({
46016
- children: props(lookSlot("layout"))(sectionContainer(stackedComposition.layout, {
46969
+ children: [when("content._lookSlots", { not: true })(sectionContainer(stackedComposition.layout, {
46017
46970
  gap: "md",
46018
46971
  className: "newsletter-inline"
46019
- })),
46972
+ })), when("content._lookSlots")(props(lookSlot("layout"))(sectionContainer([el("div", lookSlot("head"), newsletterCopyFragment.layout), el("div", lookSlot("panel"), newsletterFormFragment.layout)], { gap: "md" })))],
46020
46973
  baseClass: "",
46021
46974
  spacing: "medium",
46022
46975
  background: "surface"
@@ -48267,6 +49220,8 @@ const builtinTransformDefinitions = [
48267
49220
  offeringsPreviewDatesReadEnabled,
48268
49221
  lookLeadSlotTransform,
48269
49222
  lookQuoteLimitTransform,
49223
+ lookCarouselRegionTransform,
49224
+ lookSkinSlotTransform,
48270
49225
  {
48271
49226
  id: "events.calendarListWindow",
48272
49227
  kind: "formatter",
@@ -49585,6 +50540,53 @@ z.object({
49585
50540
  toolCallsUsed: z.number()
49586
50541
  });
49587
50542
  //#endregion
50543
+ //#region ../api/src/siteTerms.ts
50544
+ const versionIdSchema = z.string().uuid().transform((value, ctx) => {
50545
+ const parsed = parseSiteTermsVersionId(value);
50546
+ if (parsed.ok) return parsed.value;
50547
+ ctx.addIssue({
50548
+ code: "custom",
50549
+ message: "Invalid site terms version"
50550
+ });
50551
+ return z.NEVER;
50552
+ });
50553
+ z.object({
50554
+ shown: z.discriminatedUnion("kind", [
50555
+ z.object({ kind: z.literal("nothing") }),
50556
+ z.object({
50557
+ kind: z.literal("checkbox"),
50558
+ versionId: versionIdSchema
50559
+ }),
50560
+ z.object({
50561
+ kind: z.literal("already_agreed_line"),
50562
+ versionId: versionIdSchema
50563
+ })
50564
+ ]),
50565
+ agreed: z.boolean()
50566
+ });
50567
+ const siteTermsSourceSchema = z.discriminatedUnion("kind", [z.object({
50568
+ kind: z.literal("written"),
50569
+ body: z.custom(isCanonicalRichTextDoc)
50570
+ }), z.object({
50571
+ kind: z.literal("link"),
50572
+ destination: z.discriminatedUnion("kind", [z.object({
50573
+ kind: z.literal("page"),
50574
+ identifier: z.string().trim().min(1)
50575
+ }), z.object({
50576
+ kind: z.literal("url"),
50577
+ href: z.url({ protocol: /^https?$/ })
50578
+ })])
50579
+ })]);
50580
+ z.discriminatedUnion("kind", [z.object({
50581
+ kind: z.literal("publish"),
50582
+ expectedRevision: z.number().int().positive().nullable(),
50583
+ source: siteTermsSourceSchema,
50584
+ askAgain: z.boolean()
50585
+ }).strict(), z.object({
50586
+ kind: z.literal("stop"),
50587
+ expectedRevision: z.number().int().positive()
50588
+ }).strict()]);
50589
+ //#endregion
49588
50590
  //#region src/types/block-kinds.ts
49589
50591
  /**
49590
50592
  * System block kind identifiers.